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