@slashid/jump-page 0.0.8-package.12 → 0.0.8-package.13

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 (38) hide show
  1. package/dist/_astro/app.1e2eff21.js +101 -0
  2. package/dist/_astro/client.2acc8023.js +1 -0
  3. package/dist/_astro/index.2e7fe26b.js +32 -0
  4. package/dist/_astro/sdk.0e66b66d.css +1 -0
  5. package/dist/_astro/sdk.c4317c20.css +1 -0
  6. package/dist/sdk.html +1 -0
  7. package/package.json +2 -1
  8. package/package/astro.config.d.mts +0 -2
  9. package/package/main.js +0 -2819
  10. package/package/main.js.map +0 -1
  11. package/package/src/components/app/app.component.d.ts +0 -1
  12. package/package/src/components/app/app.context.d.ts +0 -22
  13. package/package/src/components/app/app.css.d.ts +0 -1
  14. package/package/src/components/app/index.d.ts +0 -1
  15. package/package/src/components/card/card.component.d.ts +0 -10
  16. package/package/src/components/card/card.css.d.ts +0 -4
  17. package/package/src/components/card/index.d.ts +0 -1
  18. package/package/src/components/flow/flow.component.d.ts +0 -1
  19. package/package/src/components/flow/flow.css.d.ts +0 -3
  20. package/package/src/components/flow/flow.error.d.ts +0 -5
  21. package/package/src/components/flow/flow.initial.d.ts +0 -1
  22. package/package/src/components/flow/flow.loader.d.ts +0 -1
  23. package/package/src/components/flow/flow.loading.d.ts +0 -1
  24. package/package/src/components/flow/flow.progress.d.ts +0 -11
  25. package/package/src/components/flow/flow.recover.d.ts +0 -1
  26. package/package/src/components/flow/flow.success.d.ts +0 -3
  27. package/package/src/components/flow/flow.types.d.ts +0 -37
  28. package/package/src/components/flow/index.d.ts +0 -3
  29. package/package/src/components/text/index.d.ts +0 -1
  30. package/package/src/components/text/text.component.d.ts +0 -6
  31. package/package/src/components/text/use-i18n.d.ts +0 -1
  32. package/package/src/config.d.ts +0 -4
  33. package/package/src/domain/errors.d.ts +0 -1
  34. package/package/src/domain/i18n.d.ts +0 -43
  35. package/package/src/main.d.ts +0 -9
  36. package/package/style.css +0 -1
  37. package/package/vite.config.d.ts +0 -2
  38. /package/{package → dist}/favicon.png +0 -0
package/package/main.js DELETED
@@ -1,2819 +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 Ce, { useLayoutEffect as dt, forwardRef as vs, useCallback as ms, useState as ue, createContext as zt, useMemo as Et, useContext as Cs, useEffect as St } 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 = Ce, e = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { 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) && !l.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: a.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 = Ce, e = Symbol.for("react.element"), s = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = 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(n) {
48
- if (n === null || typeof n != "object")
49
- return null;
50
- var i = B && n[B] || n[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(n) {
55
- {
56
- for (var i = arguments.length, u = new Array(i > 1 ? i - 1 : 0), h = 1; h < i; h++)
57
- u[h - 1] = arguments[h];
58
- M("error", n, u);
59
- }
60
- }
61
- function M(n, i, u) {
62
- {
63
- var h = A.ReactDebugCurrentFrame, g = h.getStackAddendum();
64
- g !== "" && (i += "%s", u = u.concat([g]));
65
- var v = u.map(function(p) {
66
- return String(p);
67
- });
68
- v.unshift("Warning: " + i), Function.prototype.apply.call(console[n], 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(n) {
74
- return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || K || n === a || n === b || n === x || m || n === S || je || Je || C || typeof n == "object" && n !== null && (n.$$typeof === O || n.$$typeof === w || n.$$typeof === c || n.$$typeof === f || n.$$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
- n.$$typeof === Z || n.getModuleId !== void 0));
79
- }
80
- function ne(n, i, u) {
81
- var h = n.displayName;
82
- if (h)
83
- return h;
84
- var g = i.displayName || i.name || "";
85
- return g !== "" ? u + "(" + g + ")" : u;
86
- }
87
- function Q(n) {
88
- return n.displayName || "Context";
89
- }
90
- function R(n) {
91
- if (n == null)
92
- return null;
93
- if (typeof n.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
94
- return n.displayName || n.name || null;
95
- if (typeof n == "string")
96
- return n;
97
- switch (n) {
98
- case r:
99
- return "Fragment";
100
- case s:
101
- return "Portal";
102
- case l:
103
- return "Profiler";
104
- case a:
105
- return "StrictMode";
106
- case b:
107
- return "Suspense";
108
- case x:
109
- return "SuspenseList";
110
- }
111
- if (typeof n == "object")
112
- switch (n.$$typeof) {
113
- case f:
114
- var i = n;
115
- return Q(i) + ".Consumer";
116
- case c:
117
- var u = n;
118
- return Q(u._context) + ".Provider";
119
- case d:
120
- return ne(n, n.render, "ForwardRef");
121
- case w:
122
- var h = n.displayName || null;
123
- return h !== null ? h : R(n.type) || "Memo";
124
- case O: {
125
- var g = n, 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, ae, X, Y, de, I, F, ee;
136
- function fe() {
137
- }
138
- fe.__reactDisabledLog = !0;
139
- function Ht() {
140
- {
141
- if (V === 0) {
142
- ae = console.log, X = console.info, Y = console.warn, de = console.error, I = console.group, F = console.groupCollapsed, ee = console.groupEnd;
143
- var n = {
144
- configurable: !0,
145
- enumerable: !0,
146
- value: fe,
147
- writable: !0
148
- };
149
- Object.defineProperties(console, {
150
- info: n,
151
- log: n,
152
- warn: n,
153
- error: n,
154
- group: n,
155
- groupCollapsed: n,
156
- groupEnd: n
157
- });
158
- }
159
- V++;
160
- }
161
- }
162
- function Gt() {
163
- {
164
- if (V--, V === 0) {
165
- var n = {
166
- configurable: !0,
167
- enumerable: !0,
168
- writable: !0
169
- };
170
- Object.defineProperties(console, {
171
- log: P({}, n, {
172
- value: ae
173
- }),
174
- info: P({}, n, {
175
- value: X
176
- }),
177
- warn: P({}, n, {
178
- value: Y
179
- }),
180
- error: P({}, n, {
181
- value: de
182
- }),
183
- group: P({}, n, {
184
- value: I
185
- }),
186
- groupCollapsed: P({}, n, {
187
- value: F
188
- }),
189
- groupEnd: P({}, n, {
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(n, i, u) {
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 + n;
209
- }
210
- }
211
- var Oe = !1, _e;
212
- {
213
- var Wt = typeof WeakMap == "function" ? WeakMap : Map;
214
- _e = new Wt();
215
- }
216
- function Ke(n, i) {
217
- if (!n || Oe)
218
- return "";
219
- {
220
- var u = _e.get(n);
221
- if (u !== void 0)
222
- return u;
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(n, [], p);
246
- } else {
247
- try {
248
- p.call();
249
- } catch (U) {
250
- h = U;
251
- }
252
- n.call(p.prototype);
253
- }
254
- } else {
255
- try {
256
- throw Error();
257
- } catch (U) {
258
- h = U;
259
- }
260
- n();
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 n.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", n.displayName)), typeof n == "function" && _e.set(n, 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 = n ? n.displayName || n.name : "", ut = se ? he(se) : "";
285
- return typeof n == "function" && _e.set(n, ut), ut;
286
- }
287
- function Jt(n, i, u) {
288
- return Ke(n, !1);
289
- }
290
- function Kt(n) {
291
- var i = n.prototype;
292
- return !!(i && i.isReactComponent);
293
- }
294
- function pe(n, i, u) {
295
- if (n == null)
296
- return "";
297
- if (typeof n == "function")
298
- return Ke(n, Kt(n));
299
- if (typeof n == "string")
300
- return he(n);
301
- switch (n) {
302
- case b:
303
- return he("Suspense");
304
- case x:
305
- return he("SuspenseList");
306
- }
307
- if (typeof n == "object")
308
- switch (n.$$typeof) {
309
- case d:
310
- return Jt(n.render);
311
- case w:
312
- return pe(n.type, i, u);
313
- case O: {
314
- var h = n, g = h._payload, v = h._init;
315
- try {
316
- return pe(v(g), i, u);
317
- } catch {
318
- }
319
- }
320
- }
321
- return "";
322
- }
323
- var be = Object.prototype.hasOwnProperty, Ze = {}, Qe = A.ReactDebugCurrentFrame;
324
- function ge(n) {
325
- if (n) {
326
- var i = n._owner, u = pe(n.type, n._source, i ? i.type : null);
327
- Qe.setExtraStackFrame(u);
328
- } else
329
- Qe.setExtraStackFrame(null);
330
- }
331
- function Zt(n, i, u, h, g) {
332
- {
333
- var v = Function.call.bind(be);
334
- for (var p in n)
335
- if (v(n, p)) {
336
- var _ = void 0;
337
- try {
338
- if (typeof n[p] != "function") {
339
- var T = Error((h || "React class") + ": " + u + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
- throw T.name = "Invariant Violation", T;
341
- }
342
- _ = n[p](i, p, h, u, 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", u, p, typeof _), ge(null)), _ instanceof Error && !(_.message in Ze) && (Ze[_.message] = !0, ge(g), j("Failed %s type: %s", u, _.message), ge(null));
347
- }
348
- }
349
- }
350
- var Qt = Array.isArray;
351
- function Me(n) {
352
- return Qt(n);
353
- }
354
- function Xt(n) {
355
- {
356
- var i = typeof Symbol == "function" && Symbol.toStringTag, u = i && n[Symbol.toStringTag] || n.constructor.name || "Object";
357
- return u;
358
- }
359
- }
360
- function es(n) {
361
- try {
362
- return Xe(n), !1;
363
- } catch {
364
- return !0;
365
- }
366
- }
367
- function Xe(n) {
368
- return "" + n;
369
- }
370
- function et(n) {
371
- if (es(n))
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(n)), Xe(n);
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(n) {
382
- if (be.call(n, "ref")) {
383
- var i = Object.getOwnPropertyDescriptor(n, "ref").get;
384
- if (i && i.isReactWarning)
385
- return !1;
386
- }
387
- return n.ref !== void 0;
388
- }
389
- function rs(n) {
390
- if (be.call(n, "key")) {
391
- var i = Object.getOwnPropertyDescriptor(n, "key").get;
392
- if (i && i.isReactWarning)
393
- return !1;
394
- }
395
- return n.key !== void 0;
396
- }
397
- function ns(n, i) {
398
- if (typeof n.ref == "string" && oe.current && i && oe.current.stateNode !== i) {
399
- var u = R(oe.current.type);
400
- ke[u] || (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), n.ref), ke[u] = !0);
401
- }
402
- }
403
- function as(n, i) {
404
- {
405
- var u = 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
- u.isReactWarning = !0, Object.defineProperty(n, "key", {
409
- get: u,
410
- configurable: !0
411
- });
412
- }
413
- }
414
- function os(n, i) {
415
- {
416
- var u = 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
- u.isReactWarning = !0, Object.defineProperty(n, "ref", {
420
- get: u,
421
- configurable: !0
422
- });
423
- }
424
- }
425
- var is = function(n, i, u, 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: n,
431
- key: i,
432
- ref: u,
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(n, i, u, h, g) {
455
- {
456
- var v, p = {}, _ = null, T = null;
457
- u !== void 0 && (et(u), _ = "" + u), rs(i) && (et(i.key), _ = "" + i.key), ss(i) && (T = i.ref, ns(i, g));
458
- for (v in i)
459
- be.call(i, v) && !ts.hasOwnProperty(v) && (p[v] = i[v]);
460
- if (n && n.defaultProps) {
461
- var y = n.defaultProps;
462
- for (v in y)
463
- p[v] === void 0 && (p[v] = y[v]);
464
- }
465
- if (_ || T) {
466
- var E = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
467
- _ && as(p, E), T && os(p, E);
468
- }
469
- return is(n, _, T, g, h, oe.current, p);
470
- }
471
- }
472
- var Pe = A.ReactCurrentOwner, rt = A.ReactDebugCurrentFrame;
473
- function te(n) {
474
- if (n) {
475
- var i = n._owner, u = pe(n.type, n._source, i ? i.type : null);
476
- rt.setExtraStackFrame(u);
477
- } else
478
- rt.setExtraStackFrame(null);
479
- }
480
- var Ne;
481
- Ne = !1;
482
- function De(n) {
483
- return typeof n == "object" && n !== null && n.$$typeof === e;
484
- }
485
- function nt() {
486
- {
487
- if (Pe.current) {
488
- var n = R(Pe.current.type);
489
- if (n)
490
- return `
491
-
492
- Check the render method of \`` + n + "`.";
493
- }
494
- return "";
495
- }
496
- }
497
- function us(n) {
498
- {
499
- if (n !== void 0) {
500
- var i = n.fileName.replace(/^.*[\\\/]/, ""), u = n.lineNumber;
501
- return `
502
-
503
- Check your code at ` + i + ":" + u + ".";
504
- }
505
- return "";
506
- }
507
- }
508
- var at = {};
509
- function cs(n) {
510
- {
511
- var i = nt();
512
- if (!i) {
513
- var u = typeof n == "string" ? n : n.displayName || n.name;
514
- u && (i = `
515
-
516
- Check the top-level render call using <` + u + ">.");
517
- }
518
- return i;
519
- }
520
- }
521
- function ot(n, i) {
522
- {
523
- if (!n._store || n._store.validated || n.key != null)
524
- return;
525
- n._store.validated = !0;
526
- var u = cs(i);
527
- if (at[u])
528
- return;
529
- at[u] = !0;
530
- var h = "";
531
- n && n._owner && n._owner !== Pe.current && (h = " It was passed a child from " + R(n._owner.type) + "."), te(n), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, h), te(null);
532
- }
533
- }
534
- function it(n, i) {
535
- {
536
- if (typeof n != "object")
537
- return;
538
- if (Me(n))
539
- for (var u = 0; u < n.length; u++) {
540
- var h = n[u];
541
- De(h) && ot(h, i);
542
- }
543
- else if (De(n))
544
- n._store && (n._store.validated = !0);
545
- else if (n) {
546
- var g = re(n);
547
- if (typeof g == "function" && g !== n.entries)
548
- for (var v = g.call(n), p; !(p = v.next()).done; )
549
- De(p.value) && ot(p.value, i);
550
- }
551
- }
552
- }
553
- function ds(n) {
554
- {
555
- var i = n.type;
556
- if (i == null || typeof i == "string")
557
- return;
558
- var u;
559
- if (typeof i == "function")
560
- u = 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
- u = i.propTypes;
565
- else
566
- return;
567
- if (u) {
568
- var h = R(i);
569
- Zt(u, n.props, "prop", h, n);
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(n) {
579
- {
580
- for (var i = Object.keys(n.props), u = 0; u < i.length; u++) {
581
- var h = i[u];
582
- if (h !== "children" && h !== "key") {
583
- te(n), 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
- n.ref !== null && (te(n), j("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
588
- }
589
- }
590
- function lt(n, i, u, h, g, v) {
591
- {
592
- var p = ce(n);
593
- if (!p) {
594
- var _ = "";
595
- (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).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 : _ += nt();
598
- var y;
599
- n === null ? y = "null" : Me(n) ? y = "array" : n !== void 0 && n.$$typeof === e ? (y = "<" + (R(n.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : y = typeof n, 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(n, i, u, 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], n);
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, n);
616
- }
617
- return n === r ? fs(E) : ds(E), E;
618
- }
619
- }
620
- function hs(n, i, u) {
621
- return lt(n, i, u, !0);
622
- }
623
- function _s(n, i, u) {
624
- return lt(n, i, u, !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 jt(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 a = t.length;
639
- for (e = 0; e < a; e++)
640
- t[e] && (s = jt(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 = "", a = arguments.length; s < a; s++)
648
- (t = arguments[s]) && (e = jt(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 Rt({ 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 = Rt({ theme: t, className: e });
670
- document.body.classList.add(...s.split(" "));
671
- }
672
- const Tt = ({ children: t }) => /* @__PURE__ */ o.jsx("div", { className: Rt({ theme: "light" }), children: t }), Os = ({ children: t, theme: e = "light", className: s }) => {
673
- const [r, a] = Ce.useState(!1);
674
- return dt(() => {
675
- r || a(!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(Tt, { children: t });
679
- };
680
- function Cn({ children: t, theme: e = "light", className: s }) {
681
- return Rs() ? /* @__PURE__ */ o.jsx(Os, { theme: e, className: s, children: t }) : /* @__PURE__ */ o.jsx(Tt, { children: t });
682
- }
683
- var Ms = { default: "_92y0ua2 _92y0ua1", short: "_92y0ua3 _92y0ua1" };
684
- const Ot = ({ 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 Mt = vs(
687
- ({
688
- children: t,
689
- onClick: e,
690
- className: s,
691
- type: r = "button",
692
- variant: a = "primary",
693
- testId: l,
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": l,
704
- type: r,
705
- disabled: f,
706
- className: N(
707
- "sid-button",
708
- `sid-button--${a}`,
709
- ks[a],
710
- { [Ps]: f },
711
- s
712
- ),
713
- onClick: e,
714
- children: d ? /* @__PURE__ */ o.jsx(Ot, { variant: "short", className: Ds[a] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
715
- c ? /* @__PURE__ */ o.jsx("i", { className: Ns, children: c }) : null,
716
- t
717
- ] })
718
- }
719
- )
720
- );
721
- Mt.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: a = "",
729
- value: l,
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: l,
752
- onChange: b,
753
- autoComplete: a
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 Vs() {
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 Ys = () => /* @__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
- ), $s = () => /* @__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
- ), Hs = () => /* @__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
- ), pt = (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($s, {}) : /* @__PURE__ */ o.jsx(Ys, {})
892
- }
893
- )
894
- ]
895
- }
896
- );
897
- };
898
- var Gs = "_1rf2mux3", Ws = "_1rf2mux5", Js = { blue: "_1rf2mux6 _1rf2mux4", red: "_1rf2mux7 _1rf2mux4", primary: "_1rf2mux8 _1rf2mux4" }, Ks = "_1rf2muxa", Zs = { blue: "_1rf2muxb _1rf2mux9", red: "_1rf2muxc _1rf2mux9", primary: "_1rf2muxd _1rf2mux9" }, Qs = "_1rf2muxf", Xs = { blue: "_1rf2muxg _1rf2muxe", red: "_1rf2muxh _1rf2muxe", primary: "_1rf2muxi _1rf2muxe" }, er = "_1rf2muxj";
899
- const Ye = ({
900
- children: t,
901
- className: e,
902
- variant: s = "blue",
903
- shouldAnimate: r = !0
904
- }) => /* @__PURE__ */ o.jsxs("div", { className: N(Gs, e), children: [
905
- /* @__PURE__ */ o.jsx(
906
- "div",
907
- {
908
- className: N(Js[s], {
909
- [Ws]: r
910
- })
911
- }
912
- ),
913
- /* @__PURE__ */ o.jsx(
914
- "div",
915
- {
916
- className: N(Zs[s], {
917
- [Ks]: r
918
- })
919
- }
920
- ),
921
- /* @__PURE__ */ o.jsx(
922
- "div",
923
- {
924
- className: N(Xs[s], {
925
- [Qs]: r
926
- })
927
- }
928
- ),
929
- /* @__PURE__ */ o.jsx("div", { className: er, children: t })
930
- ] });
931
- function tr(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 bt(t, e) {
940
- var s = Object.keys(t);
941
- if (Object.getOwnPropertySymbols) {
942
- var r = Object.getOwnPropertySymbols(t);
943
- e && (r = r.filter(function(a) {
944
- return Object.getOwnPropertyDescriptor(t, a).enumerable;
945
- })), s.push.apply(s, r);
946
- }
947
- return s;
948
- }
949
- function gt(t) {
950
- for (var e = 1; e < arguments.length; e++) {
951
- var s = arguments[e] != null ? arguments[e] : {};
952
- e % 2 ? bt(Object(s), !0).forEach(function(r) {
953
- tr(t, r, s[r]);
954
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(s)) : bt(Object(s)).forEach(function(r) {
955
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(s, r));
956
- });
957
- }
958
- return t;
959
- }
960
- var sr = (t, e, s) => {
961
- for (var r of Object.keys(t)) {
962
- var a;
963
- if (t[r] !== ((a = e[r]) !== null && a !== void 0 ? a : s[r]))
964
- return !1;
965
- }
966
- return !0;
967
- }, kt = (t) => (e) => {
968
- var s = t.defaultClassName, r = gt(gt({}, t.defaultVariants), e);
969
- for (var a in r) {
970
- var l, c = (l = r[a]) !== null && l !== void 0 ? l : t.defaultVariants[a];
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[a][f]
977
- );
978
- d && (s += " " + d);
979
- }
980
- }
981
- for (var [b, x] of t.compoundVariants)
982
- sr(b, r, t.defaultVariants) && (s += " " + x);
983
- return s;
984
- }, rr = kt({ defaultClassName: "s3l9sv0", variantClassNames: { direction: { vertical: "s3l9sv1", horizontal: "s3l9sv2" }, space: { between: "s3l9sv3", evenly: "s3l9sv4" } }, defaultVariants: { direction: "vertical" }, compoundVariants: [] });
985
- function nr(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 = nr(t, "string");
999
- return typeof e == "symbol" ? e : String(e);
1000
- }
1001
- function or(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 xt(t, e) {
1010
- var s = Object.keys(t);
1011
- if (Object.getOwnPropertySymbols) {
1012
- var r = Object.getOwnPropertySymbols(t);
1013
- e && (r = r.filter(function(a) {
1014
- return Object.getOwnPropertyDescriptor(t, a).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 ? xt(Object(s), !0).forEach(function(r) {
1023
- or(t, r, s[r]);
1024
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(s)) : xt(Object(s)).forEach(function(r) {
1025
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(s, r));
1026
- });
1027
- }
1028
- return t;
1029
- }
1030
- var ir = (t) => function() {
1031
- for (var e = arguments.length, s = new Array(e), r = 0; r < e; r++)
1032
- s[r] = arguments[r];
1033
- var a = Object.assign({}, ...s.map((d) => d.styles)), l = Object.keys(a), c = l.filter((d) => "mappings" in a[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 = a[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 = a[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 ne in C) {
1065
- var Q = C[ne];
1066
- if (Q != null) {
1067
- if (process.env.NODE_ENV !== "production" && !m.values[Q].conditions[ne])
1068
- throw new Error();
1069
- b.push(m.values[Q].conditions[ne]);
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 ae of C)
1096
- m.values[ae] || P(M, ae, 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(l)
1114
- });
1115
- }, lr = (t) => t, ur = function() {
1116
- return ir(lr)(...arguments);
1117
- }, Pt = ur({ 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 we = (t) => /* @__PURE__ */ o.jsx(
1119
- "div",
1120
- {
1121
- className: N(
1122
- "sid-stack",
1123
- rr(t.variant),
1124
- Pt({ gap: t.space || "2" }),
1125
- t.className
1126
- ),
1127
- style: t.style,
1128
- children: t.children
1129
- }
1130
- );
1131
- var cr = kt({ 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 dr = {
1133
- text: {}
1134
- }, $e = zt(dr);
1135
- $e.displayName = "SlashIDTextContext";
1136
- const wn = ({ text: t, children: e }) => {
1137
- const s = Et(() => ({
1138
- text: t
1139
- }), [t]);
1140
- return /* @__PURE__ */ o.jsx($e.Provider, { value: s, children: e });
1141
- };
1142
- function fr() {
1143
- const { text: t } = Ce.useContext($e);
1144
- return t;
1145
- }
1146
- const Le = {
1147
- opening: "{{",
1148
- closing: "}}"
1149
- };
1150
- function Nt(t, e) {
1151
- return t.includes(Le.opening) ? Object.keys(e).reduce(
1152
- (r, a) => r.replace(
1153
- `${Le.opening}${a}${Le.closing}`,
1154
- e[a]
1155
- ),
1156
- t
1157
- ) : t;
1158
- }
1159
- const Fe = ({
1160
- as: t,
1161
- t: e,
1162
- tokens: s,
1163
- variant: r,
1164
- className: a,
1165
- children: l
1166
- }) => {
1167
- const c = fr(), f = t || "p";
1168
- return /* @__PURE__ */ o.jsxs(
1169
- f,
1170
- {
1171
- className: N(
1172
- "sid-text",
1173
- `sid-text--${t}`,
1174
- cr(r),
1175
- a
1176
- ),
1177
- children: [
1178
- s ? Nt(c[e], s) : c[e],
1179
- l || null
1180
- ]
1181
- }
1182
- );
1183
- };
1184
- var hr = "iokgmp1";
1185
- function vt({
1186
- width: t,
1187
- height: e,
1188
- minHeight: s,
1189
- maxHeight: r,
1190
- minWidth: a,
1191
- maxWidth: l
1192
- }) {
1193
- return /* @__PURE__ */ o.jsx(
1194
- "div",
1195
- {
1196
- className: hr,
1197
- style: {
1198
- width: t,
1199
- height: e,
1200
- minHeight: s,
1201
- maxHeight: r,
1202
- minWidth: a,
1203
- maxWidth: l
1204
- }
1205
- }
1206
- );
1207
- }
1208
- const z = {
1209
- "footer.text": "Top-tier security by SlashID",
1210
- "initial.title": "Logging you in...",
1211
- "initial.details": "Please follow the on-screen instructions.",
1212
- "recover.password.title": "Reset password",
1213
- "recover.password.details": "Enter your new password.",
1214
- "recover.password.input.password.label": "Password",
1215
- "recover.password.input.confirmPassword.label": "Confirm password",
1216
- "recover.password.input.placeholder": "Type your new password",
1217
- "recover.password.submit": "Reset password",
1218
- "recover.password.validation.passwordsDoNotMatch": "Passwords do not match",
1219
- "recover.password.validation.length": "8-256 characters required",
1220
- "recover.password.validation.password_variants": "Contains word 'password'",
1221
- "recover.password.validation.admin_variants": "Contains word 'admin'",
1222
- "recover.password.validation.user_variants": "Contains word 'user'",
1223
- "recover.password.validation.alphanumeric_sequences_1": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1224
- "recover.password.validation.alphanumeric_sequences_2": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1225
- "recover.password.validation.numeric_sequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1226
- "recover.password.validation.numeric_subsequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1227
- "recover.password.validation.numeric_sequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1228
- "recover.password.validation.numeric_subsequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1229
- "recover.password.validation.common_password_xkcd": "Common password",
1230
- "success.title": "All done!",
1231
- "success.details": "Please return to the website.",
1232
- "error.title": "Something went wrong...",
1233
- "error.detail": "Please log in again."
1234
- }, _r = {
1235
- en: z,
1236
- ja: {
1237
- "footer.text": z["footer.text"],
1238
- "initial.title": "ログイン処理を行っています。",
1239
- "initial.details": "処理完了後、画面は自動で切り替わります。",
1240
- "success.title": "認証が完了しました!",
1241
- "success.details": "このページを閉じて、元のページへ戻ってください。",
1242
- "recover.password.title": z["recover.password.title"],
1243
- "recover.password.details": z["recover.password.details"],
1244
- "recover.password.input.password.label": z["recover.password.input.password.label"],
1245
- "recover.password.input.confirmPassword.label": z["recover.password.input.confirmPassword.label"],
1246
- "recover.password.input.placeholder": z["recover.password.input.placeholder"],
1247
- "recover.password.submit": z["recover.password.submit"],
1248
- "recover.password.validation.passwordsDoNotMatch": z["recover.password.validation.passwordsDoNotMatch"],
1249
- "recover.password.validation.length": z["recover.password.validation.length"],
1250
- "recover.password.validation.password_variants": z["recover.password.validation.password_variants"],
1251
- "recover.password.validation.admin_variants": z["recover.password.validation.admin_variants"],
1252
- "recover.password.validation.user_variants": z["recover.password.validation.user_variants"],
1253
- "recover.password.validation.alphanumeric_sequences_1": z["recover.password.validation.alphanumeric_sequences_1"],
1254
- "recover.password.validation.alphanumeric_sequences_2": z["recover.password.validation.alphanumeric_sequences_2"],
1255
- "recover.password.validation.numeric_sequences_ascending": z["recover.password.validation.numeric_sequences_ascending"],
1256
- "recover.password.validation.numeric_subsequences_ascending": z["recover.password.validation.numeric_subsequences_ascending"],
1257
- "recover.password.validation.numeric_sequences_descending": z["recover.password.validation.numeric_sequences_descending"],
1258
- "recover.password.validation.numeric_subsequences_descending": z["recover.password.validation.numeric_subsequences_descending"],
1259
- "recover.password.validation.common_password_xkcd": z["recover.password.validation.common_password_xkcd"],
1260
- "error.title": z["error.title"],
1261
- "error.detail": "再度ログインをしてください。"
1262
- }
1263
- }, pr = (t) => (e) => _r[t][e], br = {
1264
- logo: /* @__PURE__ */ o.jsx(Hs, {}),
1265
- language: "en",
1266
- state: "initial",
1267
- sdk: void 0,
1268
- setLogo: () => {
1269
- }
1270
- }, gr = zt(br), ye = () => Cs(gr), J = (t) => /* @__PURE__ */ o.jsx(Fe, { ...t });
1271
- var xr = "_1vg0oop0", vr = "_1vg0oop1", mr = "_1vg0oop2", Cr = "_1vg0oop3";
1272
- function wr() {
1273
- const { logo: t } = ye();
1274
- return /* @__PURE__ */ o.jsx("div", { className: Cr, children: t });
1275
- }
1276
- function yr() {
1277
- return /* @__PURE__ */ o.jsx(
1278
- J,
1279
- {
1280
- t: "footer.text",
1281
- variant: {
1282
- size: "xs",
1283
- weight: "semibold",
1284
- color: "placeholder"
1285
- }
1286
- }
1287
- );
1288
- }
1289
- function yn({ children: t, className: e, header: s = /* @__PURE__ */ o.jsx(wr, {}), footer: r = /* @__PURE__ */ o.jsx(yr, {}), style: a }) {
1290
- return /* @__PURE__ */ o.jsxs("article", { style: a, className: N(xr, e), children: [
1291
- s && /* @__PURE__ */ o.jsx("header", { className: vr, children: s }),
1292
- /* @__PURE__ */ o.jsx("div", { children: t }),
1293
- r && /* @__PURE__ */ o.jsx("footer", { className: mr, children: r })
1294
- ] });
1295
- }
1296
- function Dt() {
1297
- return /* @__PURE__ */ o.jsx(Ye, { variant: "primary", children: /* @__PURE__ */ o.jsx(Ot, {}) });
1298
- }
1299
- function zn() {
1300
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1301
- /* @__PURE__ */ o.jsxs(we, { space: "2", children: [
1302
- /* @__PURE__ */ o.jsx(vt, { width: "75%", height: 24 }),
1303
- /* @__PURE__ */ o.jsx(vt, { width: "50%", height: 16 })
1304
- ] }),
1305
- /* @__PURE__ */ o.jsx(Dt, {})
1306
- ] });
1307
- }
1308
- function zr({ type: t }) {
1309
- return /* @__PURE__ */ o.jsx(Ye, { variant: t === "warning" ? "blue" : "red", shouldAnimate: !1, children: /* @__PURE__ */ o.jsx(Vs, {}) });
1310
- }
1311
- function En({ type: t, redirectUri: e }) {
1312
- return e && window.location.replace(e), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1313
- /* @__PURE__ */ o.jsxs(we, { space: "0.25", children: [
1314
- /* @__PURE__ */ o.jsx(
1315
- J,
1316
- {
1317
- as: "h1",
1318
- variant: { size: "2xl-title", weight: "bold" },
1319
- t: "error.title"
1320
- }
1321
- ),
1322
- /* @__PURE__ */ o.jsx(
1323
- J,
1324
- {
1325
- as: "h2",
1326
- t: "error.detail",
1327
- variant: { color: "contrast", weight: "semibold" }
1328
- }
1329
- )
1330
- ] }),
1331
- /* @__PURE__ */ o.jsx(zr, { type: t })
1332
- ] });
1333
- }
1334
- const Er = () => /* @__PURE__ */ o.jsx(Ye, { children: /* @__PURE__ */ o.jsx(
1335
- "svg",
1336
- {
1337
- width: "21",
1338
- height: "18",
1339
- viewBox: "0 0 21 18",
1340
- fill: "none",
1341
- xmlns: "http://www.w3.org/2000/svg",
1342
- children: /* @__PURE__ */ o.jsx(
1343
- "path",
1344
- {
1345
- fillRule: "evenodd",
1346
- clipRule: "evenodd",
1347
- 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",
1348
- fill: "white"
1349
- }
1350
- )
1351
- }
1352
- ) });
1353
- function Sn({ redirectUri: t } = {}) {
1354
- return t && window.location.replace(t), /* @__PURE__ */ o.jsxs("article", { "data-testid": "sid-form-success-state", children: [
1355
- /* @__PURE__ */ o.jsx(
1356
- J,
1357
- {
1358
- as: "h1",
1359
- t: "success.title",
1360
- variant: { size: "2xl-title", weight: "bold" }
1361
- }
1362
- ),
1363
- /* @__PURE__ */ o.jsx(
1364
- J,
1365
- {
1366
- as: "h2",
1367
- t: "success.details",
1368
- variant: { color: "contrast", weight: "semibold" }
1369
- }
1370
- ),
1371
- /* @__PURE__ */ o.jsx(Er, {})
1372
- ] });
1373
- }
1374
- var Sr = "_8vopmj0", jr = "_8vopmj2";
1375
- function Rr() {
1376
- const { language: t } = ye();
1377
- return Et(() => pr(t), [t]);
1378
- }
1379
- function Tr(t) {
1380
- return `recover.password.validation.${t.failedRules[0].name}`;
1381
- }
1382
- function Or({
1383
- errorEvent: t,
1384
- password: e
1385
- }) {
1386
- const s = t.failedRules[0];
1387
- let r = "";
1388
- if (s.matchType === "must_not_match") {
1389
- const a = s.regexp.exec(e);
1390
- r = a !== null ? a[0] : "";
1391
- }
1392
- return r ? {
1393
- ILLEGAL_SEQUENCE: r
1394
- } : {};
1395
- }
1396
- function Mr({ message: t }) {
1397
- return /* @__PURE__ */ o.jsx("span", { className: jr, children: t });
1398
- }
1399
- function kr() {
1400
- const t = Rr(), { sdk: e } = ye(), [s, r] = ue(""), [a, l] = ue(""), [c, f] = ue(null), [d, b] = ue("initial");
1401
- St(() => {
1402
- const S = (B) => {
1403
- f(
1404
- Nt(
1405
- t(Tr(B)),
1406
- Or({ errorEvent: B, password: s })
1407
- )
1408
- ), b("initial");
1409
- };
1410
- return e == null || e.subscribe("invalidPasswordSubmitted", S), () => {
1411
- e == null || e.unsubscribe("invalidPasswordSubmitted", S);
1412
- };
1413
- }, [t, e, s, f]);
1414
- const x = (S) => {
1415
- if (S.preventDefault(), !!e) {
1416
- if (!s || s !== a) {
1417
- f(t("recover.password.validation.passwordsDoNotMatch"));
1418
- return;
1419
- }
1420
- e.publish("passwordSubmitted", s), b("submitting");
1421
- }
1422
- }, w = (S) => {
1423
- r(S.target.value), f(null);
1424
- }, O = (S) => {
1425
- l(S.target.value), f(null);
1426
- };
1427
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1428
- /* @__PURE__ */ o.jsxs(we, { space: "0.25", children: [
1429
- /* @__PURE__ */ o.jsx(Fe, { as: "h1", variant: { size: "2xl-title", weight: "bold" }, t: "recover.password.title" }),
1430
- /* @__PURE__ */ o.jsx(Fe, { variant: { color: "contrast", weight: "semibold" }, as: "h2", t: "recover.password.details" })
1431
- ] }),
1432
- /* @__PURE__ */ o.jsxs("form", { onSubmit: x, children: [
1433
- /* @__PURE__ */ o.jsxs("div", { className: Sr, children: [
1434
- /* @__PURE__ */ o.jsx(
1435
- pt,
1436
- {
1437
- id: "password-input",
1438
- label: t("recover.password.input.password.label"),
1439
- placeholder: t("recover.password.input.placeholder"),
1440
- name: "password",
1441
- value: s ?? "",
1442
- onChange: w,
1443
- error: !!c,
1444
- autoComplete: "new-password"
1445
- }
1446
- ),
1447
- /* @__PURE__ */ o.jsx(
1448
- pt,
1449
- {
1450
- id: "password-input-confirm",
1451
- label: t("recover.password.input.confirmPassword.label"),
1452
- placeholder: t("recover.password.input.placeholder"),
1453
- name: "passwordConfirm",
1454
- value: a ?? "",
1455
- onChange: O,
1456
- className: Pt({ marginTop: "4" }),
1457
- error: !!c,
1458
- autoComplete: "new-password"
1459
- }
1460
- ),
1461
- c && /* @__PURE__ */ o.jsx(Mr, { message: c })
1462
- ] }),
1463
- /* @__PURE__ */ o.jsx(
1464
- Mt,
1465
- {
1466
- type: "submit",
1467
- variant: "primary",
1468
- testId: "sid-form-initial-submit-button",
1469
- disabled: d === "submitting",
1470
- loading: d === "submitting",
1471
- children: t("recover.password.submit")
1472
- }
1473
- )
1474
- ] })
1475
- ] });
1476
- }
1477
- const Pr = Object.prototype.toString;
1478
- function Nr(t, e) {
1479
- return Pr.call(t) === `[object ${e}]`;
1480
- }
1481
- function It(t) {
1482
- return Nr(t, "Object");
1483
- }
1484
- function He(t) {
1485
- return !!(t && t.then && typeof t.then == "function");
1486
- }
1487
- function xe(t) {
1488
- return t && t.Math == Math ? t : void 0;
1489
- }
1490
- const D = typeof globalThis == "object" && xe(globalThis) || // eslint-disable-next-line no-restricted-globals
1491
- typeof window == "object" && xe(window) || typeof self == "object" && xe(self) || typeof global == "object" && xe(global) || /* @__PURE__ */ function() {
1492
- return this;
1493
- }() || {};
1494
- function Lt(t, e, s) {
1495
- const r = s || D, a = r.__SENTRY__ = r.__SENTRY__ || {};
1496
- return a[t] || (a[t] = e());
1497
- }
1498
- const Dr = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Ir = "Sentry Logger ", mt = [
1499
- "debug",
1500
- "info",
1501
- "warn",
1502
- "error",
1503
- "log",
1504
- "assert",
1505
- "trace"
1506
- ], Ct = {};
1507
- function At(t) {
1508
- if (!("console" in D))
1509
- return t();
1510
- const e = D.console, s = {}, r = Object.keys(Ct);
1511
- r.forEach((a) => {
1512
- const l = Ct[a];
1513
- s[a] = e[a], e[a] = l;
1514
- });
1515
- try {
1516
- return t();
1517
- } finally {
1518
- r.forEach((a) => {
1519
- e[a] = s[a];
1520
- });
1521
- }
1522
- }
1523
- function Lr() {
1524
- let t = !1;
1525
- const e = {
1526
- enable: () => {
1527
- t = !0;
1528
- },
1529
- disable: () => {
1530
- t = !1;
1531
- },
1532
- isEnabled: () => t
1533
- };
1534
- return Dr ? mt.forEach((s) => {
1535
- e[s] = (...r) => {
1536
- t && At(() => {
1537
- D.console[s](`${Ir}[${s}]:`, ...r);
1538
- });
1539
- };
1540
- }) : mt.forEach((s) => {
1541
- e[s] = () => {
1542
- };
1543
- }), e;
1544
- }
1545
- const H = Lr();
1546
- function G(t) {
1547
- return Ue(t, /* @__PURE__ */ new Map());
1548
- }
1549
- function Ue(t, e) {
1550
- if (Ar(t)) {
1551
- const s = e.get(t);
1552
- if (s !== void 0)
1553
- return s;
1554
- const r = {};
1555
- e.set(t, r);
1556
- for (const a of Object.keys(t))
1557
- typeof t[a] < "u" && (r[a] = Ue(t[a], e));
1558
- return r;
1559
- }
1560
- if (Array.isArray(t)) {
1561
- const s = e.get(t);
1562
- if (s !== void 0)
1563
- return s;
1564
- const r = [];
1565
- return e.set(t, r), t.forEach((a) => {
1566
- r.push(Ue(a, e));
1567
- }), r;
1568
- }
1569
- return t;
1570
- }
1571
- function Ar(t) {
1572
- if (!It(t))
1573
- return !1;
1574
- try {
1575
- const e = Object.getPrototypeOf(t).constructor.name;
1576
- return !e || e === "Object";
1577
- } catch {
1578
- return !0;
1579
- }
1580
- }
1581
- function L() {
1582
- const t = D, e = t.crypto || t.msCrypto;
1583
- let s = () => Math.random() * 16;
1584
- try {
1585
- if (e && e.randomUUID)
1586
- return e.randomUUID().replace(/-/g, "");
1587
- e && e.getRandomValues && (s = () => {
1588
- const r = new Uint8Array(1);
1589
- return e.getRandomValues(r), r[0];
1590
- });
1591
- } catch {
1592
- }
1593
- return ("10000000100040008000" + 1e11).replace(
1594
- /[018]/g,
1595
- (r) => (
1596
- // eslint-disable-next-line no-bitwise
1597
- (r ^ (s() & 15) >> r / 4).toString(16)
1598
- )
1599
- );
1600
- }
1601
- function Fr(t) {
1602
- return Array.isArray(t) ? t : [t];
1603
- }
1604
- var q;
1605
- (function(t) {
1606
- t[t.PENDING = 0] = "PENDING";
1607
- const s = 1;
1608
- t[t.RESOLVED = s] = "RESOLVED";
1609
- const r = 2;
1610
- t[t.REJECTED = r] = "REJECTED";
1611
- })(q || (q = {}));
1612
- class $ {
1613
- constructor(e) {
1614
- $.prototype.__init.call(this), $.prototype.__init2.call(this), $.prototype.__init3.call(this), $.prototype.__init4.call(this), this._state = q.PENDING, this._handlers = [];
1615
- try {
1616
- e(this._resolve, this._reject);
1617
- } catch (s) {
1618
- this._reject(s);
1619
- }
1620
- }
1621
- /** JSDoc */
1622
- then(e, s) {
1623
- return new $((r, a) => {
1624
- this._handlers.push([
1625
- !1,
1626
- (l) => {
1627
- if (!e)
1628
- r(l);
1629
- else
1630
- try {
1631
- r(e(l));
1632
- } catch (c) {
1633
- a(c);
1634
- }
1635
- },
1636
- (l) => {
1637
- if (!s)
1638
- a(l);
1639
- else
1640
- try {
1641
- r(s(l));
1642
- } catch (c) {
1643
- a(c);
1644
- }
1645
- }
1646
- ]), this._executeHandlers();
1647
- });
1648
- }
1649
- /** JSDoc */
1650
- catch(e) {
1651
- return this.then((s) => s, e);
1652
- }
1653
- /** JSDoc */
1654
- finally(e) {
1655
- return new $((s, r) => {
1656
- let a, l;
1657
- return this.then(
1658
- (c) => {
1659
- l = !1, a = c, e && e();
1660
- },
1661
- (c) => {
1662
- l = !0, a = c, e && e();
1663
- }
1664
- ).then(() => {
1665
- if (l) {
1666
- r(a);
1667
- return;
1668
- }
1669
- s(a);
1670
- });
1671
- });
1672
- }
1673
- /** JSDoc */
1674
- __init() {
1675
- this._resolve = (e) => {
1676
- this._setResult(q.RESOLVED, e);
1677
- };
1678
- }
1679
- /** JSDoc */
1680
- __init2() {
1681
- this._reject = (e) => {
1682
- this._setResult(q.REJECTED, e);
1683
- };
1684
- }
1685
- /** JSDoc */
1686
- __init3() {
1687
- this._setResult = (e, s) => {
1688
- if (this._state === q.PENDING) {
1689
- if (He(s)) {
1690
- s.then(this._resolve, this._reject);
1691
- return;
1692
- }
1693
- this._state = e, this._value = s, this._executeHandlers();
1694
- }
1695
- };
1696
- }
1697
- /** JSDoc */
1698
- __init4() {
1699
- this._executeHandlers = () => {
1700
- if (this._state === q.PENDING)
1701
- return;
1702
- const e = this._handlers.slice();
1703
- this._handlers = [], e.forEach((s) => {
1704
- s[0] || (this._state === q.RESOLVED && s[1](this._value), this._state === q.REJECTED && s[2](this._value), s[0] = !0);
1705
- });
1706
- };
1707
- }
1708
- }
1709
- const Ft = 1e3;
1710
- function Ge() {
1711
- return Date.now() / Ft;
1712
- }
1713
- function Ur() {
1714
- const { performance: t } = D;
1715
- if (!t || !t.now)
1716
- return Ge;
1717
- const e = Date.now() - t.now(), s = t.timeOrigin == null ? e : t.timeOrigin;
1718
- return () => (s + t.now()) / Ft;
1719
- }
1720
- const Ut = Ur();
1721
- (() => {
1722
- const { performance: t } = D;
1723
- if (!t || !t.now)
1724
- return;
1725
- const e = 3600 * 1e3, s = t.now(), r = Date.now(), a = t.timeOrigin ? Math.abs(t.timeOrigin + s - r) : e, l = a < e, c = t.timing && t.timing.navigationStart, d = typeof c == "number" ? Math.abs(c + s - r) : e, b = d < e;
1726
- return l || b ? a <= d ? t.timeOrigin : c : r;
1727
- })();
1728
- const ve = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, qt = "production";
1729
- function qr() {
1730
- return Lt("globalEventProcessors", () => []);
1731
- }
1732
- function qe(t, e, s, r = 0) {
1733
- return new $((a, l) => {
1734
- const c = t[r];
1735
- if (e === null || typeof c != "function")
1736
- a(e);
1737
- else {
1738
- const f = c({ ...e }, s);
1739
- 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(a)).then(null, l) : qe(t, f, s, r + 1).then(a).then(null, l);
1740
- }
1741
- });
1742
- }
1743
- function Br(t) {
1744
- const e = Ut(), s = {
1745
- sid: L(),
1746
- init: !0,
1747
- timestamp: e,
1748
- started: e,
1749
- duration: 0,
1750
- status: "ok",
1751
- errors: 0,
1752
- ignoreDuration: !1,
1753
- toJSON: () => Yr(s)
1754
- };
1755
- return t && ze(s, t), s;
1756
- }
1757
- function ze(t, e = {}) {
1758
- 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)
1759
- t.duration = void 0;
1760
- else if (typeof e.duration == "number")
1761
- t.duration = e.duration;
1762
- else {
1763
- const s = t.timestamp - t.started;
1764
- t.duration = s >= 0 ? s : 0;
1765
- }
1766
- 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);
1767
- }
1768
- function Vr(t, e) {
1769
- let s = {};
1770
- e ? s = { status: e } : t.status === "ok" && (s = { status: "exited" }), ze(t, s);
1771
- }
1772
- function Yr(t) {
1773
- return G({
1774
- sid: `${t.sid}`,
1775
- init: t.init,
1776
- // Make sure that sec is converted to ms for date constructor
1777
- started: new Date(t.started * 1e3).toISOString(),
1778
- timestamp: new Date(t.timestamp * 1e3).toISOString(),
1779
- status: t.status,
1780
- errors: t.errors,
1781
- did: typeof t.did == "number" || typeof t.did == "string" ? `${t.did}` : void 0,
1782
- duration: t.duration,
1783
- abnormal_mechanism: t.abnormal_mechanism,
1784
- attrs: {
1785
- release: t.release,
1786
- environment: t.environment,
1787
- ip_address: t.ipAddress,
1788
- user_agent: t.userAgent
1789
- }
1790
- });
1791
- }
1792
- const $r = 1;
1793
- function Hr(t) {
1794
- const { spanId: e, traceId: s } = t.spanContext(), { data: r, op: a, parent_span_id: l, status: c, tags: f, origin: d } = me(t);
1795
- return G({
1796
- data: r,
1797
- op: a,
1798
- parent_span_id: l,
1799
- span_id: e,
1800
- status: c,
1801
- tags: f,
1802
- trace_id: s,
1803
- origin: d
1804
- });
1805
- }
1806
- function me(t) {
1807
- return Gr(t) ? t.getSpanJSON() : typeof t.toJSON == "function" ? t.toJSON() : {};
1808
- }
1809
- function Gr(t) {
1810
- return typeof t.getSpanJSON == "function";
1811
- }
1812
- function Wr(t) {
1813
- const { traceFlags: e } = t.spanContext();
1814
- return !!(e & $r);
1815
- }
1816
- function Jr(t) {
1817
- if (t)
1818
- return Kr(t) ? { captureContext: t } : Qr(t) ? {
1819
- captureContext: t
1820
- } : t;
1821
- }
1822
- function Kr(t) {
1823
- return t instanceof W || typeof t == "function";
1824
- }
1825
- const Zr = [
1826
- "user",
1827
- "level",
1828
- "extra",
1829
- "contexts",
1830
- "tags",
1831
- "fingerprint",
1832
- "requestSession",
1833
- "propagationContext"
1834
- ];
1835
- function Qr(t) {
1836
- return Object.keys(t).some((e) => Zr.includes(e));
1837
- }
1838
- function Xr(t, e) {
1839
- return We().captureException(t, Jr(e));
1840
- }
1841
- function en() {
1842
- return We().getClient();
1843
- }
1844
- function tn() {
1845
- return We().getScope();
1846
- }
1847
- function Bt(t) {
1848
- return t.transaction;
1849
- }
1850
- function sn(t, e, s) {
1851
- const r = e.getOptions(), { publicKey: a } = e.getDsn() || {}, { segment: l } = s && s.getUser() || {}, c = G({
1852
- environment: r.environment || qt,
1853
- release: r.release,
1854
- user_segment: l,
1855
- public_key: a,
1856
- trace_id: t
1857
- });
1858
- return e.emit && e.emit("createDsc", c), c;
1859
- }
1860
- function rn(t) {
1861
- const e = en();
1862
- if (!e)
1863
- return {};
1864
- const s = sn(me(t).trace_id || "", e, tn()), r = Bt(t);
1865
- if (!r)
1866
- return s;
1867
- const a = r && r._frozenDynamicSamplingContext;
1868
- if (a)
1869
- return a;
1870
- const { sampleRate: l, source: c } = r.metadata;
1871
- l != null && (s.sample_rate = `${l}`);
1872
- const f = me(r);
1873
- return c && c !== "url" && (s.transaction = f.description), s.sampled = String(Wr(r)), e.emit && e.emit("createDsc", s), s;
1874
- }
1875
- function nn(t, e) {
1876
- const { fingerprint: s, span: r, breadcrumbs: a, sdkProcessingMetadata: l } = e;
1877
- an(t, e), r && un(t, r), cn(t, s), on(t, a), ln(t, l);
1878
- }
1879
- function an(t, e) {
1880
- const {
1881
- extra: s,
1882
- tags: r,
1883
- user: a,
1884
- contexts: l,
1885
- level: c,
1886
- // eslint-disable-next-line deprecation/deprecation
1887
- transactionName: f
1888
- } = e, d = G(s);
1889
- d && Object.keys(d).length && (t.extra = { ...d, ...t.extra });
1890
- const b = G(r);
1891
- b && Object.keys(b).length && (t.tags = { ...b, ...t.tags });
1892
- const x = G(a);
1893
- x && Object.keys(x).length && (t.user = { ...x, ...t.user });
1894
- const w = G(l);
1895
- w && Object.keys(w).length && (t.contexts = { ...w, ...t.contexts }), c && (t.level = c), f && (t.transaction = f);
1896
- }
1897
- function on(t, e) {
1898
- const s = [...t.breadcrumbs || [], ...e];
1899
- t.breadcrumbs = s.length ? s : void 0;
1900
- }
1901
- function ln(t, e) {
1902
- t.sdkProcessingMetadata = {
1903
- ...t.sdkProcessingMetadata,
1904
- ...e
1905
- };
1906
- }
1907
- function un(t, e) {
1908
- t.contexts = { trace: Hr(e), ...t.contexts };
1909
- const s = Bt(e);
1910
- if (s) {
1911
- t.sdkProcessingMetadata = {
1912
- dynamicSamplingContext: rn(e),
1913
- ...t.sdkProcessingMetadata
1914
- };
1915
- const r = me(s).description;
1916
- r && (t.tags = { transaction: r, ...t.tags });
1917
- }
1918
- }
1919
- function cn(t, e) {
1920
- t.fingerprint = t.fingerprint ? Fr(t.fingerprint) : [], e && (t.fingerprint = t.fingerprint.concat(e)), t.fingerprint && !t.fingerprint.length && delete t.fingerprint;
1921
- }
1922
- const dn = 100;
1923
- class W {
1924
- /** Flag if notifying is happening. */
1925
- /** Callback for client to receive scope changes. */
1926
- /** Callback list that will be called after {@link applyToEvent}. */
1927
- /** Array of breadcrumbs. */
1928
- /** User */
1929
- /** Tags */
1930
- /** Extra */
1931
- /** Contexts */
1932
- /** Attachments */
1933
- /** Propagation Context for distributed tracing */
1934
- /**
1935
- * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get
1936
- * sent to Sentry
1937
- */
1938
- /** Fingerprint */
1939
- /** Severity */
1940
- // eslint-disable-next-line deprecation/deprecation
1941
- /**
1942
- * Transaction Name
1943
- */
1944
- /** Span */
1945
- /** Session */
1946
- /** Request Mode Session Status */
1947
- /** The client on this scope */
1948
- // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
1949
- constructor() {
1950
- this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = wt();
1951
- }
1952
- /**
1953
- * Inherit values from the parent scope.
1954
- * @deprecated Use `scope.clone()` and `new Scope()` instead.
1955
- */
1956
- static clone(e) {
1957
- return e ? e.clone() : new W();
1958
- }
1959
- /**
1960
- * Clone this scope instance.
1961
- */
1962
- clone() {
1963
- const e = new W();
1964
- 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;
1965
- }
1966
- /** Update the client on the scope. */
1967
- setClient(e) {
1968
- this._client = e;
1969
- }
1970
- /**
1971
- * Get the client assigned to this scope.
1972
- *
1973
- * It is generally recommended to use the global function `Sentry.getClient()` instead, unless you know what you are doing.
1974
- */
1975
- getClient() {
1976
- return this._client;
1977
- }
1978
- /**
1979
- * Add internal on change listener. Used for sub SDKs that need to store the scope.
1980
- * @hidden
1981
- */
1982
- addScopeListener(e) {
1983
- this._scopeListeners.push(e);
1984
- }
1985
- /**
1986
- * @inheritDoc
1987
- */
1988
- addEventProcessor(e) {
1989
- return this._eventProcessors.push(e), this;
1990
- }
1991
- /**
1992
- * @inheritDoc
1993
- */
1994
- setUser(e) {
1995
- return this._user = e || {
1996
- email: void 0,
1997
- id: void 0,
1998
- ip_address: void 0,
1999
- segment: void 0,
2000
- username: void 0
2001
- }, this._session && ze(this._session, { user: e }), this._notifyScopeListeners(), this;
2002
- }
2003
- /**
2004
- * @inheritDoc
2005
- */
2006
- getUser() {
2007
- return this._user;
2008
- }
2009
- /**
2010
- * @inheritDoc
2011
- */
2012
- getRequestSession() {
2013
- return this._requestSession;
2014
- }
2015
- /**
2016
- * @inheritDoc
2017
- */
2018
- setRequestSession(e) {
2019
- return this._requestSession = e, this;
2020
- }
2021
- /**
2022
- * @inheritDoc
2023
- */
2024
- setTags(e) {
2025
- return this._tags = {
2026
- ...this._tags,
2027
- ...e
2028
- }, this._notifyScopeListeners(), this;
2029
- }
2030
- /**
2031
- * @inheritDoc
2032
- */
2033
- setTag(e, s) {
2034
- return this._tags = { ...this._tags, [e]: s }, this._notifyScopeListeners(), this;
2035
- }
2036
- /**
2037
- * @inheritDoc
2038
- */
2039
- setExtras(e) {
2040
- return this._extra = {
2041
- ...this._extra,
2042
- ...e
2043
- }, this._notifyScopeListeners(), this;
2044
- }
2045
- /**
2046
- * @inheritDoc
2047
- */
2048
- setExtra(e, s) {
2049
- return this._extra = { ...this._extra, [e]: s }, this._notifyScopeListeners(), this;
2050
- }
2051
- /**
2052
- * @inheritDoc
2053
- */
2054
- setFingerprint(e) {
2055
- return this._fingerprint = e, this._notifyScopeListeners(), this;
2056
- }
2057
- /**
2058
- * @inheritDoc
2059
- */
2060
- setLevel(e) {
2061
- return this._level = e, this._notifyScopeListeners(), this;
2062
- }
2063
- /**
2064
- * Sets the transaction name on the scope for future events.
2065
- */
2066
- setTransactionName(e) {
2067
- return this._transactionName = e, this._notifyScopeListeners(), this;
2068
- }
2069
- /**
2070
- * @inheritDoc
2071
- */
2072
- setContext(e, s) {
2073
- return s === null ? delete this._contexts[e] : this._contexts[e] = s, this._notifyScopeListeners(), this;
2074
- }
2075
- /**
2076
- * Sets the Span on the scope.
2077
- * @param span Span
2078
- * @deprecated Instead of setting a span on a scope, use `startSpan()`/`startSpanManual()` instead.
2079
- */
2080
- setSpan(e) {
2081
- return this._span = e, this._notifyScopeListeners(), this;
2082
- }
2083
- /**
2084
- * Returns the `Span` if there is one.
2085
- * @deprecated Use `getActiveSpan()` instead.
2086
- */
2087
- getSpan() {
2088
- return this._span;
2089
- }
2090
- /**
2091
- * Returns the `Transaction` attached to the scope (if there is one).
2092
- * @deprecated You should not rely on the transaction, but just use `startSpan()` APIs instead.
2093
- */
2094
- getTransaction() {
2095
- const e = this._span;
2096
- return e && e.transaction;
2097
- }
2098
- /**
2099
- * @inheritDoc
2100
- */
2101
- setSession(e) {
2102
- return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this;
2103
- }
2104
- /**
2105
- * @inheritDoc
2106
- */
2107
- getSession() {
2108
- return this._session;
2109
- }
2110
- /**
2111
- * @inheritDoc
2112
- */
2113
- update(e) {
2114
- if (!e)
2115
- return this;
2116
- const s = typeof e == "function" ? e(this) : e;
2117
- if (s instanceof W) {
2118
- const r = s.getScopeData();
2119
- 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);
2120
- } else if (It(s)) {
2121
- const r = e;
2122
- 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);
2123
- }
2124
- return this;
2125
- }
2126
- /**
2127
- * @inheritDoc
2128
- */
2129
- clear() {
2130
- 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 = wt(), this;
2131
- }
2132
- /**
2133
- * @inheritDoc
2134
- */
2135
- addBreadcrumb(e, s) {
2136
- const r = typeof s == "number" ? s : dn;
2137
- if (r <= 0)
2138
- return this;
2139
- const a = {
2140
- timestamp: Ge(),
2141
- ...e
2142
- }, l = this._breadcrumbs;
2143
- return l.push(a), this._breadcrumbs = l.length > r ? l.slice(-r) : l, this._notifyScopeListeners(), this;
2144
- }
2145
- /**
2146
- * @inheritDoc
2147
- */
2148
- getLastBreadcrumb() {
2149
- return this._breadcrumbs[this._breadcrumbs.length - 1];
2150
- }
2151
- /**
2152
- * @inheritDoc
2153
- */
2154
- clearBreadcrumbs() {
2155
- return this._breadcrumbs = [], this._notifyScopeListeners(), this;
2156
- }
2157
- /**
2158
- * @inheritDoc
2159
- */
2160
- addAttachment(e) {
2161
- return this._attachments.push(e), this;
2162
- }
2163
- /**
2164
- * @inheritDoc
2165
- * @deprecated Use `getScopeData()` instead.
2166
- */
2167
- getAttachments() {
2168
- return this.getScopeData().attachments;
2169
- }
2170
- /**
2171
- * @inheritDoc
2172
- */
2173
- clearAttachments() {
2174
- return this._attachments = [], this;
2175
- }
2176
- /** @inheritDoc */
2177
- getScopeData() {
2178
- const {
2179
- _breadcrumbs: e,
2180
- _attachments: s,
2181
- _contexts: r,
2182
- _tags: a,
2183
- _extra: l,
2184
- _user: c,
2185
- _level: f,
2186
- _fingerprint: d,
2187
- _eventProcessors: b,
2188
- _propagationContext: x,
2189
- _sdkProcessingMetadata: w,
2190
- _transactionName: O,
2191
- _span: S
2192
- } = this;
2193
- return {
2194
- breadcrumbs: e,
2195
- attachments: s,
2196
- contexts: r,
2197
- tags: a,
2198
- extra: l,
2199
- user: c,
2200
- level: f,
2201
- fingerprint: d || [],
2202
- eventProcessors: b,
2203
- propagationContext: x,
2204
- sdkProcessingMetadata: w,
2205
- transactionName: O,
2206
- span: S
2207
- };
2208
- }
2209
- /**
2210
- * Applies data from the scope to the event and runs all event processors on it.
2211
- *
2212
- * @param event Event
2213
- * @param hint Object containing additional information about the original exception, for use by the event processors.
2214
- * @hidden
2215
- * @deprecated Use `applyScopeDataToEvent()` directly
2216
- */
2217
- applyToEvent(e, s = {}, r = []) {
2218
- nn(e, this.getScopeData());
2219
- const a = [
2220
- ...r,
2221
- // eslint-disable-next-line deprecation/deprecation
2222
- ...qr(),
2223
- ...this._eventProcessors
2224
- ];
2225
- return qe(a, e, s);
2226
- }
2227
- /**
2228
- * Add data which will be accessible during event processing but won't get sent to Sentry
2229
- */
2230
- setSDKProcessingMetadata(e) {
2231
- return this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...e }, this;
2232
- }
2233
- /**
2234
- * @inheritDoc
2235
- */
2236
- setPropagationContext(e) {
2237
- return this._propagationContext = e, this;
2238
- }
2239
- /**
2240
- * @inheritDoc
2241
- */
2242
- getPropagationContext() {
2243
- return this._propagationContext;
2244
- }
2245
- /**
2246
- * Capture an exception for this scope.
2247
- *
2248
- * @param exception The exception to capture.
2249
- * @param hint Optinal additional data to attach to the Sentry event.
2250
- * @returns the id of the captured Sentry event.
2251
- */
2252
- captureException(e, s) {
2253
- const r = s && s.event_id ? s.event_id : L();
2254
- if (!this._client)
2255
- return H.warn("No client configured on scope - will not capture exception!"), r;
2256
- const a = new Error("Sentry syntheticException");
2257
- return this._client.captureException(
2258
- e,
2259
- {
2260
- originalException: e,
2261
- syntheticException: a,
2262
- ...s,
2263
- event_id: r
2264
- },
2265
- this
2266
- ), r;
2267
- }
2268
- /**
2269
- * Capture a message for this scope.
2270
- *
2271
- * @param message The message to capture.
2272
- * @param level An optional severity level to report the message with.
2273
- * @param hint Optional additional data to attach to the Sentry event.
2274
- * @returns the id of the captured message.
2275
- */
2276
- captureMessage(e, s, r) {
2277
- const a = r && r.event_id ? r.event_id : L();
2278
- if (!this._client)
2279
- return H.warn("No client configured on scope - will not capture message!"), a;
2280
- const l = new Error(e);
2281
- return this._client.captureMessage(
2282
- e,
2283
- s,
2284
- {
2285
- originalException: e,
2286
- syntheticException: l,
2287
- ...r,
2288
- event_id: a
2289
- },
2290
- this
2291
- ), a;
2292
- }
2293
- /**
2294
- * Captures a manually created event for this scope and sends it to Sentry.
2295
- *
2296
- * @param exception The event to capture.
2297
- * @param hint Optional additional data to attach to the Sentry event.
2298
- * @returns the id of the captured event.
2299
- */
2300
- captureEvent(e, s) {
2301
- const r = s && s.event_id ? s.event_id : L();
2302
- 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);
2303
- }
2304
- /**
2305
- * This will be called on every set call.
2306
- */
2307
- _notifyScopeListeners() {
2308
- this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => {
2309
- e(this);
2310
- }), this._notifyingListeners = !1);
2311
- }
2312
- }
2313
- function wt() {
2314
- return {
2315
- traceId: L(),
2316
- spanId: L().substring(16)
2317
- };
2318
- }
2319
- const fn = "7.108.0", Vt = parseFloat(fn), hn = 100;
2320
- class Yt {
2321
- /** Is a {@link Layer}[] containing the client and scope */
2322
- /** Contains the last event id of a captured event. */
2323
- /**
2324
- * Creates a new instance of the hub, will push one {@link Layer} into the
2325
- * internal stack on creation.
2326
- *
2327
- * @param client bound to the hub.
2328
- * @param scope bound to the hub.
2329
- * @param version number, higher number means higher priority.
2330
- *
2331
- * @deprecated Instantiation of Hub objects is deprecated and the constructor will be removed in version 8 of the SDK.
2332
- *
2333
- * If you are currently using the Hub for multi-client use like so:
2334
- *
2335
- * ```
2336
- * // OLD
2337
- * const hub = new Hub();
2338
- * hub.bindClient(client);
2339
- * makeMain(hub)
2340
- * ```
2341
- *
2342
- * instead initialize the client as follows:
2343
- *
2344
- * ```
2345
- * // NEW
2346
- * Sentry.withIsolationScope(() => {
2347
- * Sentry.setCurrentClient(client);
2348
- * client.init();
2349
- * });
2350
- * ```
2351
- *
2352
- * If you are using the Hub to capture events like so:
2353
- *
2354
- * ```
2355
- * // OLD
2356
- * const client = new Client();
2357
- * const hub = new Hub(client);
2358
- * hub.captureException()
2359
- * ```
2360
- *
2361
- * instead capture isolated events as follows:
2362
- *
2363
- * ```
2364
- * // NEW
2365
- * const client = new Client();
2366
- * const scope = new Scope();
2367
- * scope.setClient(client);
2368
- * scope.captureException();
2369
- * ```
2370
- */
2371
- constructor(e, s, r, a = Vt) {
2372
- this._version = a;
2373
- let l;
2374
- s ? l = s : (l = new W(), l.setClient(e));
2375
- let c;
2376
- r ? c = r : (c = new W(), c.setClient(e)), this._stack = [{ scope: l }], e && this.bindClient(e), this._isolationScope = c;
2377
- }
2378
- /**
2379
- * Checks if this hub's version is older than the given version.
2380
- *
2381
- * @param version A version number to compare to.
2382
- * @return True if the given version is newer; otherwise false.
2383
- *
2384
- * @deprecated This will be removed in v8.
2385
- */
2386
- isOlderThan(e) {
2387
- return this._version < e;
2388
- }
2389
- /**
2390
- * This binds the given client to the current scope.
2391
- * @param client An SDK client (client) instance.
2392
- *
2393
- * @deprecated Use `initAndBind()` directly, or `setCurrentClient()` and/or `client.init()` instead.
2394
- */
2395
- bindClient(e) {
2396
- const s = this.getStackTop();
2397
- s.client = e, s.scope.setClient(e), e && e.setupIntegrations && e.setupIntegrations();
2398
- }
2399
- /**
2400
- * @inheritDoc
2401
- *
2402
- * @deprecated Use `withScope` instead.
2403
- */
2404
- pushScope() {
2405
- const e = this.getScope().clone();
2406
- return this.getStack().push({
2407
- // eslint-disable-next-line deprecation/deprecation
2408
- client: this.getClient(),
2409
- scope: e
2410
- }), e;
2411
- }
2412
- /**
2413
- * @inheritDoc
2414
- *
2415
- * @deprecated Use `withScope` instead.
2416
- */
2417
- popScope() {
2418
- return this.getStack().length <= 1 ? !1 : !!this.getStack().pop();
2419
- }
2420
- /**
2421
- * @inheritDoc
2422
- *
2423
- * @deprecated Use `Sentry.withScope()` instead.
2424
- */
2425
- withScope(e) {
2426
- const s = this.pushScope();
2427
- let r;
2428
- try {
2429
- r = e(s);
2430
- } catch (a) {
2431
- throw this.popScope(), a;
2432
- }
2433
- return He(r) ? r.then(
2434
- (a) => (this.popScope(), a),
2435
- (a) => {
2436
- throw this.popScope(), a;
2437
- }
2438
- ) : (this.popScope(), r);
2439
- }
2440
- /**
2441
- * @inheritDoc
2442
- *
2443
- * @deprecated Use `Sentry.getClient()` instead.
2444
- */
2445
- getClient() {
2446
- return this.getStackTop().client;
2447
- }
2448
- /**
2449
- * Returns the scope of the top stack.
2450
- *
2451
- * @deprecated Use `Sentry.getCurrentScope()` instead.
2452
- */
2453
- getScope() {
2454
- return this.getStackTop().scope;
2455
- }
2456
- /**
2457
- * @deprecated Use `Sentry.getIsolationScope()` instead.
2458
- */
2459
- getIsolationScope() {
2460
- return this._isolationScope;
2461
- }
2462
- /**
2463
- * Returns the scope stack for domains or the process.
2464
- * @deprecated This will be removed in v8.
2465
- */
2466
- getStack() {
2467
- return this._stack;
2468
- }
2469
- /**
2470
- * Returns the topmost scope layer in the order domain > local > process.
2471
- * @deprecated This will be removed in v8.
2472
- */
2473
- getStackTop() {
2474
- return this._stack[this._stack.length - 1];
2475
- }
2476
- /**
2477
- * @inheritDoc
2478
- *
2479
- * @deprecated Use `Sentry.captureException()` instead.
2480
- */
2481
- captureException(e, s) {
2482
- const r = this._lastEventId = s && s.event_id ? s.event_id : L(), a = new Error("Sentry syntheticException");
2483
- return this.getScope().captureException(e, {
2484
- originalException: e,
2485
- syntheticException: a,
2486
- ...s,
2487
- event_id: r
2488
- }), r;
2489
- }
2490
- /**
2491
- * @inheritDoc
2492
- *
2493
- * @deprecated Use `Sentry.captureMessage()` instead.
2494
- */
2495
- captureMessage(e, s, r) {
2496
- const a = this._lastEventId = r && r.event_id ? r.event_id : L(), l = new Error(e);
2497
- return this.getScope().captureMessage(e, s, {
2498
- originalException: e,
2499
- syntheticException: l,
2500
- ...r,
2501
- event_id: a
2502
- }), a;
2503
- }
2504
- /**
2505
- * @inheritDoc
2506
- *
2507
- * @deprecated Use `Sentry.captureEvent()` instead.
2508
- */
2509
- captureEvent(e, s) {
2510
- const r = s && s.event_id ? s.event_id : L();
2511
- return e.type || (this._lastEventId = r), this.getScope().captureEvent(e, { ...s, event_id: r }), r;
2512
- }
2513
- /**
2514
- * @inheritDoc
2515
- *
2516
- * @deprecated This will be removed in v8.
2517
- */
2518
- lastEventId() {
2519
- return this._lastEventId;
2520
- }
2521
- /**
2522
- * @inheritDoc
2523
- *
2524
- * @deprecated Use `Sentry.addBreadcrumb()` instead.
2525
- */
2526
- addBreadcrumb(e, s) {
2527
- const { scope: r, client: a } = this.getStackTop();
2528
- if (!a)
2529
- return;
2530
- const { beforeBreadcrumb: l = null, maxBreadcrumbs: c = hn } = a.getOptions && a.getOptions() || {};
2531
- if (c <= 0)
2532
- return;
2533
- const d = { timestamp: Ge(), ...e }, b = l ? At(() => l(d, s)) : d;
2534
- b !== null && (a.emit && a.emit("beforeAddBreadcrumb", b, s), r.addBreadcrumb(b, c));
2535
- }
2536
- /**
2537
- * @inheritDoc
2538
- * @deprecated Use `Sentry.setUser()` instead.
2539
- */
2540
- setUser(e) {
2541
- this.getScope().setUser(e), this.getIsolationScope().setUser(e);
2542
- }
2543
- /**
2544
- * @inheritDoc
2545
- * @deprecated Use `Sentry.setTags()` instead.
2546
- */
2547
- setTags(e) {
2548
- this.getScope().setTags(e), this.getIsolationScope().setTags(e);
2549
- }
2550
- /**
2551
- * @inheritDoc
2552
- * @deprecated Use `Sentry.setExtras()` instead.
2553
- */
2554
- setExtras(e) {
2555
- this.getScope().setExtras(e), this.getIsolationScope().setExtras(e);
2556
- }
2557
- /**
2558
- * @inheritDoc
2559
- * @deprecated Use `Sentry.setTag()` instead.
2560
- */
2561
- setTag(e, s) {
2562
- this.getScope().setTag(e, s), this.getIsolationScope().setTag(e, s);
2563
- }
2564
- /**
2565
- * @inheritDoc
2566
- * @deprecated Use `Sentry.setExtra()` instead.
2567
- */
2568
- setExtra(e, s) {
2569
- this.getScope().setExtra(e, s), this.getIsolationScope().setExtra(e, s);
2570
- }
2571
- /**
2572
- * @inheritDoc
2573
- * @deprecated Use `Sentry.setContext()` instead.
2574
- */
2575
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2576
- setContext(e, s) {
2577
- this.getScope().setContext(e, s), this.getIsolationScope().setContext(e, s);
2578
- }
2579
- /**
2580
- * @inheritDoc
2581
- *
2582
- * @deprecated Use `getScope()` directly.
2583
- */
2584
- configureScope(e) {
2585
- const { scope: s, client: r } = this.getStackTop();
2586
- r && e(s);
2587
- }
2588
- /**
2589
- * @inheritDoc
2590
- */
2591
- run(e) {
2592
- const s = yt(this);
2593
- try {
2594
- e(this);
2595
- } finally {
2596
- yt(s);
2597
- }
2598
- }
2599
- /**
2600
- * @inheritDoc
2601
- * @deprecated Use `Sentry.getClient().getIntegrationByName()` instead.
2602
- */
2603
- getIntegration(e) {
2604
- const s = this.getClient();
2605
- if (!s)
2606
- return null;
2607
- try {
2608
- return s.getIntegration(e);
2609
- } catch {
2610
- return ve && H.warn(`Cannot retrieve integration ${e.id} from the current Hub`), null;
2611
- }
2612
- }
2613
- /**
2614
- * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
2615
- *
2616
- * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
2617
- * new child span within the transaction or any span, call the respective `.startChild()` method.
2618
- *
2619
- * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
2620
- *
2621
- * The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its
2622
- * finished child spans will be sent to Sentry.
2623
- *
2624
- * @param context Properties of the new `Transaction`.
2625
- * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent
2626
- * default values). See {@link Options.tracesSampler}.
2627
- *
2628
- * @returns The transaction which was just started
2629
- *
2630
- * @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.
2631
- */
2632
- startTransaction(e, s) {
2633
- const r = this._callExtensionMethod("startTransaction", e, s);
2634
- return ve && !r && (this.getClient() ? H.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
2635
- Sentry.addTracingExtensions();
2636
- Sentry.init({...});
2637
- `) : H.warn(
2638
- "Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'"
2639
- )), r;
2640
- }
2641
- /**
2642
- * @inheritDoc
2643
- * @deprecated Use `spanToTraceHeader()` instead.
2644
- */
2645
- traceHeaders() {
2646
- return this._callExtensionMethod("traceHeaders");
2647
- }
2648
- /**
2649
- * @inheritDoc
2650
- *
2651
- * @deprecated Use top level `captureSession` instead.
2652
- */
2653
- captureSession(e = !1) {
2654
- if (e)
2655
- return this.endSession();
2656
- this._sendSessionUpdate();
2657
- }
2658
- /**
2659
- * @inheritDoc
2660
- * @deprecated Use top level `endSession` instead.
2661
- */
2662
- endSession() {
2663
- const s = this.getStackTop().scope, r = s.getSession();
2664
- r && Vr(r), this._sendSessionUpdate(), s.setSession();
2665
- }
2666
- /**
2667
- * @inheritDoc
2668
- * @deprecated Use top level `startSession` instead.
2669
- */
2670
- startSession(e) {
2671
- const { scope: s, client: r } = this.getStackTop(), { release: a, environment: l = qt } = r && r.getOptions() || {}, { userAgent: c } = D.navigator || {}, f = Br({
2672
- release: a,
2673
- environment: l,
2674
- user: s.getUser(),
2675
- ...c && { userAgent: c },
2676
- ...e
2677
- }), d = s.getSession && s.getSession();
2678
- return d && d.status === "ok" && ze(d, { status: "exited" }), this.endSession(), s.setSession(f), f;
2679
- }
2680
- /**
2681
- * Returns if default PII should be sent to Sentry and propagated in ourgoing requests
2682
- * when Tracing is used.
2683
- *
2684
- * @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function
2685
- * only unnecessarily increased API surface but only wrapped accessing the option.
2686
- */
2687
- shouldSendDefaultPii() {
2688
- const e = this.getClient(), s = e && e.getOptions();
2689
- return !!(s && s.sendDefaultPii);
2690
- }
2691
- /**
2692
- * Sends the current Session on the scope
2693
- */
2694
- _sendSessionUpdate() {
2695
- const { scope: e, client: s } = this.getStackTop(), r = e.getSession();
2696
- r && s && s.captureSession && s.captureSession(r);
2697
- }
2698
- /**
2699
- * Calls global extension method and binding current instance to the function call
2700
- */
2701
- // @ts-expect-error Function lacks ending return statement and return type does not include 'undefined'. ts(2366)
2702
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2703
- _callExtensionMethod(e, ...s) {
2704
- const a = Ee().__SENTRY__;
2705
- if (a && a.extensions && typeof a.extensions[e] == "function")
2706
- return a.extensions[e].apply(this, s);
2707
- ve && H.warn(`Extension method ${e} couldn't be found, doing nothing.`);
2708
- }
2709
- }
2710
- function Ee() {
2711
- return D.__SENTRY__ = D.__SENTRY__ || {
2712
- extensions: {},
2713
- hub: void 0
2714
- }, D;
2715
- }
2716
- function yt(t) {
2717
- const e = Ee(), s = Be(e);
2718
- return $t(e, t), s;
2719
- }
2720
- function We() {
2721
- const t = Ee();
2722
- if (t.__SENTRY__ && t.__SENTRY__.acs) {
2723
- const e = t.__SENTRY__.acs.getCurrentHub();
2724
- if (e)
2725
- return e;
2726
- }
2727
- return _n(t);
2728
- }
2729
- function _n(t = Ee()) {
2730
- return (!pn(t) || // eslint-disable-next-line deprecation/deprecation
2731
- Be(t).isOlderThan(Vt)) && $t(t, new Yt()), Be(t);
2732
- }
2733
- function pn(t) {
2734
- return !!(t && t.__SENTRY__ && t.__SENTRY__.hub);
2735
- }
2736
- function Be(t) {
2737
- return Lt("hub", () => new Yt(), t);
2738
- }
2739
- function $t(t, e) {
2740
- if (!t)
2741
- return !1;
2742
- const s = t.__SENTRY__ = t.__SENTRY__ || {};
2743
- return s.hub = e, !0;
2744
- }
2745
- class bn extends Error {
2746
- constructor(s) {
2747
- super(s.length > 0 ? s[0].message : "Unknown SlashID error");
2748
- ct(this, "errors");
2749
- this.errors = s;
2750
- }
2751
- }
2752
- function gn(t) {
2753
- return !!(typeof t == "object" && t !== null && "errors" in t && Array.isArray(t.errors));
2754
- }
2755
- function xn(t) {
2756
- if (t instanceof Error)
2757
- return t;
2758
- if (gn(t))
2759
- return new bn(t.errors);
2760
- let e = "[Unable to stringify the thrown value]";
2761
- try {
2762
- e = JSON.stringify(t);
2763
- } catch {
2764
- }
2765
- return new Error(
2766
- `This value was thrown as is, not through an Error: ${e}`
2767
- );
2768
- }
2769
- function jn({ onSuccess: t, onError: e, flowType: s, onRedirectDiscovered: r }) {
2770
- const { sdk: a } = ye();
2771
- return St(() => {
2772
- if (!a)
2773
- return;
2774
- r && (a == null || a.subscribe("redirectUriDiscovered", r));
2775
- async function l() {
2776
- try {
2777
- await (a == null ? void 0 : a.getUserFromURL()), t();
2778
- } catch (c) {
2779
- const f = xn(c);
2780
- Xr(f), e({ error: f });
2781
- }
2782
- }
2783
- return l(), () => {
2784
- r && a.unsubscribe("redirectUriDiscovered", r);
2785
- };
2786
- }, [s, e, t, a]), s === "password-recovery" ? /* @__PURE__ */ o.jsx(kr, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2787
- /* @__PURE__ */ o.jsxs(we, { space: "0.25", children: [
2788
- /* @__PURE__ */ o.jsx(
2789
- J,
2790
- {
2791
- as: "h1",
2792
- variant: { size: "2xl-title", weight: "bold" },
2793
- t: "initial.title"
2794
- }
2795
- ),
2796
- /* @__PURE__ */ o.jsx(
2797
- J,
2798
- {
2799
- variant: { color: "contrast", weight: "semibold" },
2800
- as: "h2",
2801
- t: "initial.details"
2802
- }
2803
- )
2804
- ] }),
2805
- /* @__PURE__ */ o.jsx(Dt, {})
2806
- ] });
2807
- }
2808
- export {
2809
- yn as Card,
2810
- En as Error,
2811
- _r as I18N,
2812
- zn as Initial,
2813
- jn as Progress,
2814
- kr as Recover,
2815
- Sn as Success,
2816
- wn as TextProvider,
2817
- Cn as ThemeRoot
2818
- };
2819
- //# sourceMappingURL=main.js.map