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