@s8lab/sso-client 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +20 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +502 -485
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as h, Fragment as tn, jsxs as
|
|
1
|
+
import { jsx as h, Fragment as tn, jsxs as D } from "react/jsx-runtime";
|
|
2
2
|
import * as w from "react";
|
|
3
3
|
import Ne, { createContext as Rs, useState as Ae, useRef as lt, useCallback as gt, useEffect as qa, useMemo as Sn, useContext as Os, forwardRef as yr, createElement as Ut, Component as Ga, useImperativeHandle as Ha } from "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -65,7 +65,7 @@ function Ka(t) {
|
|
|
65
65
|
Lt = null;
|
|
66
66
|
}), Lt);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Ql({
|
|
69
69
|
children: t,
|
|
70
70
|
apiUrl: e,
|
|
71
71
|
projectId: r,
|
|
@@ -82,11 +82,11 @@ function Xl({
|
|
|
82
82
|
p.current = r;
|
|
83
83
|
const m = lt(n ?? En);
|
|
84
84
|
m.current = n ?? En;
|
|
85
|
-
const b = gt(async (j,
|
|
85
|
+
const b = gt(async (j, z = {}) => {
|
|
86
86
|
const B = () => m.current(j, {
|
|
87
|
-
...
|
|
87
|
+
...z,
|
|
88
88
|
headers: {
|
|
89
|
-
...Ts(
|
|
89
|
+
...Ts(z.headers),
|
|
90
90
|
"X-Project-Id": p.current
|
|
91
91
|
}
|
|
92
92
|
});
|
|
@@ -101,7 +101,7 @@ function Xl({
|
|
|
101
101
|
}, []);
|
|
102
102
|
qa(() => {
|
|
103
103
|
let j = !1;
|
|
104
|
-
async function
|
|
104
|
+
async function z() {
|
|
105
105
|
var re;
|
|
106
106
|
let B;
|
|
107
107
|
try {
|
|
@@ -123,35 +123,35 @@ function Xl({
|
|
|
123
123
|
j || f({ user: null, isLoading: !1, isAuthenticated: !1 });
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
return
|
|
126
|
+
return z(), () => {
|
|
127
127
|
j = !0;
|
|
128
128
|
};
|
|
129
129
|
}, []);
|
|
130
130
|
const v = gt(
|
|
131
131
|
async (j) => {
|
|
132
|
-
f((
|
|
132
|
+
f((z) => ({ ...z, isLoading: !0 }));
|
|
133
133
|
try {
|
|
134
|
-
const
|
|
134
|
+
const z = await b(
|
|
135
135
|
`${d.current}/auth/login`,
|
|
136
136
|
{ method: "POST", body: JSON.stringify(j) }
|
|
137
137
|
);
|
|
138
|
-
f({ user:
|
|
139
|
-
} catch (
|
|
140
|
-
throw f((B) => ({ ...B, isLoading: !1 })),
|
|
138
|
+
f({ user: z.user, isLoading: !1, isAuthenticated: !0 });
|
|
139
|
+
} catch (z) {
|
|
140
|
+
throw f((B) => ({ ...B, isLoading: !1 })), z;
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
143
|
[b]
|
|
144
144
|
), S = gt(
|
|
145
145
|
async (j) => {
|
|
146
|
-
f((
|
|
146
|
+
f((z) => ({ ...z, isLoading: !0 }));
|
|
147
147
|
try {
|
|
148
|
-
const
|
|
148
|
+
const z = await b(
|
|
149
149
|
`${d.current}/auth/signup`,
|
|
150
150
|
{ method: "POST", body: JSON.stringify(j) }
|
|
151
151
|
);
|
|
152
|
-
f({ user:
|
|
153
|
-
} catch (
|
|
154
|
-
throw f((B) => ({ ...B, isLoading: !1 })),
|
|
152
|
+
f({ user: z.user, isLoading: !1, isAuthenticated: !0 });
|
|
153
|
+
} catch (z) {
|
|
154
|
+
throw f((B) => ({ ...B, isLoading: !1 })), z;
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
[b]
|
|
@@ -173,7 +173,7 @@ function Xl({
|
|
|
173
173
|
});
|
|
174
174
|
},
|
|
175
175
|
[b]
|
|
176
|
-
),
|
|
176
|
+
), U = gt(
|
|
177
177
|
async (j) => {
|
|
178
178
|
await b(`${d.current}/auth/magic-link`, {
|
|
179
179
|
method: "POST",
|
|
@@ -183,7 +183,7 @@ function Xl({
|
|
|
183
183
|
[b]
|
|
184
184
|
), I = gt((j) => {
|
|
185
185
|
f(
|
|
186
|
-
(
|
|
186
|
+
(z) => z.user ? { ...z, user: { ...z.user, ...j } } : z
|
|
187
187
|
);
|
|
188
188
|
}, []), x = Sn(
|
|
189
189
|
() => ({
|
|
@@ -192,10 +192,10 @@ function Xl({
|
|
|
192
192
|
signup: S,
|
|
193
193
|
logout: k,
|
|
194
194
|
forgotPassword: C,
|
|
195
|
-
sendMagicLink:
|
|
195
|
+
sendMagicLink: U,
|
|
196
196
|
updateUser: I
|
|
197
197
|
}),
|
|
198
|
-
[l, v, S, k, C,
|
|
198
|
+
[l, v, S, k, C, U, I]
|
|
199
199
|
), Z = Sn(
|
|
200
200
|
() => ({ config: a, configLoading: o, apiUrl: e, rootPath: s }),
|
|
201
201
|
[a, o, e, s]
|
|
@@ -212,13 +212,30 @@ function gr() {
|
|
|
212
212
|
if (!t) throw new Error("useAuthConfig must be used inside <AuthProvider>");
|
|
213
213
|
return t;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Ja() {
|
|
216
|
+
return /* @__PURE__ */ h("div", { className: "flex min-h-screen items-center justify-center bg-background p-4", children: /* @__PURE__ */ D("div", { className: "w-full max-w-sm animate-pulse space-y-6 rounded-xl border bg-card p-8 shadow-sm", children: [
|
|
217
|
+
/* @__PURE__ */ D("div", { className: "space-y-2", children: [
|
|
218
|
+
/* @__PURE__ */ h("div", { className: "mx-auto h-8 w-24 rounded-md bg-muted" }),
|
|
219
|
+
/* @__PURE__ */ h("div", { className: "mx-auto h-4 w-40 rounded bg-muted" })
|
|
220
|
+
] }),
|
|
221
|
+
/* @__PURE__ */ D("div", { className: "space-y-3", children: [
|
|
222
|
+
/* @__PURE__ */ h("div", { className: "h-4 w-16 rounded bg-muted" }),
|
|
223
|
+
/* @__PURE__ */ h("div", { className: "h-10 w-full rounded-md bg-muted" })
|
|
224
|
+
] }),
|
|
225
|
+
/* @__PURE__ */ D("div", { className: "space-y-3", children: [
|
|
226
|
+
/* @__PURE__ */ h("div", { className: "h-4 w-20 rounded bg-muted" }),
|
|
227
|
+
/* @__PURE__ */ h("div", { className: "h-10 w-full rounded-md bg-muted" })
|
|
228
|
+
] }),
|
|
229
|
+
/* @__PURE__ */ h("div", { className: "h-10 w-full rounded-md bg-muted" })
|
|
230
|
+
] }) });
|
|
231
|
+
}
|
|
232
|
+
function eu({ children: t }) {
|
|
216
233
|
const { isAuthenticated: e, isLoading: r } = Pt(), { rootPath: n } = gr();
|
|
217
|
-
return r ?
|
|
234
|
+
return r ? /* @__PURE__ */ h(Ja, {}) : e ? (window.location.replace(n), null) : /* @__PURE__ */ h(tn, { children: t });
|
|
218
235
|
}
|
|
219
236
|
var qt = (t) => t.type === "checkbox", vt = (t) => t instanceof Date, Ve = (t) => t == null;
|
|
220
237
|
const Is = (t) => typeof t == "object";
|
|
221
|
-
var _e = (t) => !Ve(t) && !Array.isArray(t) && Is(t) && !vt(t),
|
|
238
|
+
var _e = (t) => !Ve(t) && !Array.isArray(t) && Is(t) && !vt(t), Xa = (t) => _e(t) && t.target ? qt(t.target) ? t.target.checked : t.target.value : t, Ls = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Qa = (t, e) => t.has(Ls(e)), ei = (t) => {
|
|
222
239
|
const e = t.constructor && t.constructor.prototype;
|
|
223
240
|
return _e(e) && e.hasOwnProperty("isPrototypeOf");
|
|
224
241
|
}, nn = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -229,7 +246,7 @@ function Ce(t) {
|
|
|
229
246
|
if (nn && (t instanceof Blob || e))
|
|
230
247
|
return t;
|
|
231
248
|
const r = Array.isArray(t);
|
|
232
|
-
if (!r && !(_e(t) &&
|
|
249
|
+
if (!r && !(_e(t) && ei(t)))
|
|
233
250
|
return t;
|
|
234
251
|
const n = r ? [] : Object.create(Object.getPrototypeOf(t));
|
|
235
252
|
for (const s in t)
|
|
@@ -276,9 +293,9 @@ const _t = {
|
|
|
276
293
|
pattern: "pattern",
|
|
277
294
|
required: "required",
|
|
278
295
|
validate: "validate"
|
|
279
|
-
}, Sr = "form", js = "root",
|
|
280
|
-
|
|
281
|
-
var
|
|
296
|
+
}, Sr = "form", js = "root", ti = Ne.createContext(null);
|
|
297
|
+
ti.displayName = "HookFormControlContext";
|
|
298
|
+
var ri = (t, e, r, n = !0) => {
|
|
282
299
|
const s = {
|
|
283
300
|
defaultValues: e._defaultValues
|
|
284
301
|
};
|
|
@@ -291,8 +308,8 @@ var ti = (t, e, r, n = !0) => {
|
|
|
291
308
|
});
|
|
292
309
|
return s;
|
|
293
310
|
};
|
|
294
|
-
const
|
|
295
|
-
var Ie = (t) => typeof t == "string",
|
|
311
|
+
const ni = typeof window < "u" ? Ne.useLayoutEffect : Ne.useEffect;
|
|
312
|
+
var Ie = (t) => typeof t == "string", si = (t, e, r, n, s) => Ie(t) ? (n && e.watch.add(t), L(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), L(r, a))) : (n && (e.watchAll = !0), r), $r = (t) => Ve(t) || !Is(t);
|
|
296
313
|
function it(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
297
314
|
if ($r(t) || $r(e))
|
|
298
315
|
return Object.is(t, e);
|
|
@@ -316,8 +333,8 @@ function it(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
316
333
|
}
|
|
317
334
|
return !0;
|
|
318
335
|
}
|
|
319
|
-
const
|
|
320
|
-
|
|
336
|
+
const ai = Ne.createContext(null);
|
|
337
|
+
ai.displayName = "HookFormContext";
|
|
321
338
|
var Ms = (t, e, r, n, s) => e ? {
|
|
322
339
|
...r[t],
|
|
323
340
|
types: {
|
|
@@ -361,32 +378,32 @@ var Pe = (t) => _e(t) && !Object.keys(t).length, on = (t) => t.type === "file",
|
|
|
361
378
|
return !1;
|
|
362
379
|
const e = t ? t.ownerDocument : 0;
|
|
363
380
|
return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
|
|
364
|
-
}, $s = (t) => t.type === "select-multiple", cn = (t) => t.type === "radio",
|
|
365
|
-
function
|
|
381
|
+
}, $s = (t) => t.type === "select-multiple", cn = (t) => t.type === "radio", ii = (t) => cn(t) || qt(t), Cr = (t) => sr(t) && t.isConnected;
|
|
382
|
+
function oi(t, e) {
|
|
366
383
|
const r = e.slice(0, -1).length;
|
|
367
384
|
let n = 0;
|
|
368
385
|
for (; n < r; )
|
|
369
386
|
t = xe(t) ? n++ : t[e[n++]];
|
|
370
387
|
return t;
|
|
371
388
|
}
|
|
372
|
-
function
|
|
389
|
+
function ci(t) {
|
|
373
390
|
for (const e in t)
|
|
374
391
|
if (t.hasOwnProperty(e) && !xe(t[e]))
|
|
375
392
|
return !1;
|
|
376
393
|
return !0;
|
|
377
394
|
}
|
|
378
395
|
function ke(t, e) {
|
|
379
|
-
const r = Array.isArray(e) ? e : vr(e) ? [e] : an(e), n = r.length === 1 ? t :
|
|
380
|
-
return n && delete n[a], s !== 0 && (_e(n) && Pe(n) || Array.isArray(n) &&
|
|
396
|
+
const r = Array.isArray(e) ? e : vr(e) ? [e] : an(e), n = r.length === 1 ? t : oi(t, r), s = r.length - 1, a = r[s];
|
|
397
|
+
return n && delete n[a], s !== 0 && (_e(n) && Pe(n) || Array.isArray(n) && ci(n)) && ke(t, r.slice(0, -1)), t;
|
|
381
398
|
}
|
|
382
|
-
var
|
|
399
|
+
var li = (t) => {
|
|
383
400
|
for (const e in t)
|
|
384
401
|
if (Ye(t[e]))
|
|
385
402
|
return !0;
|
|
386
403
|
return !1;
|
|
387
404
|
};
|
|
388
405
|
function Fs(t) {
|
|
389
|
-
return Array.isArray(t) || _e(t) && !
|
|
406
|
+
return Array.isArray(t) || _e(t) && !li(t);
|
|
390
407
|
}
|
|
391
408
|
function Fr(t, e = {}) {
|
|
392
409
|
for (const r in t) {
|
|
@@ -437,7 +454,7 @@ function Tn(t) {
|
|
|
437
454
|
const e = t.ref;
|
|
438
455
|
return on(e) ? e.files : cn(e) ? zs(t.refs).value : $s(e) ? [...e.selectedOptions].map(({ value: r }) => r) : qt(e) ? Ds(t.refs).value : Us(xe(e.value) ? t.ref.value : e.value, t);
|
|
439
456
|
}
|
|
440
|
-
var
|
|
457
|
+
var ui = (t, e, r, n) => {
|
|
441
458
|
const s = {};
|
|
442
459
|
for (const a of t) {
|
|
443
460
|
const i = L(e, a);
|
|
@@ -457,7 +474,7 @@ var li = (t, e, r, n) => {
|
|
|
457
474
|
isOnTouch: t === Ke.onTouched
|
|
458
475
|
});
|
|
459
476
|
const In = "AsyncFunction";
|
|
460
|
-
var
|
|
477
|
+
var di = (t) => !!t && !!t.validate && !!(Ye(t.validate) && t.validate.constructor.name === In || _e(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === In)), fi = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Ln = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
|
|
461
478
|
const Dt = (t, e, r, n) => {
|
|
462
479
|
for (const s of r || Object.keys(t)) {
|
|
463
480
|
const a = L(t, s);
|
|
@@ -503,11 +520,11 @@ function jn(t, e, r) {
|
|
|
503
520
|
name: r
|
|
504
521
|
};
|
|
505
522
|
}
|
|
506
|
-
var
|
|
523
|
+
var hi = (t, e, r, n) => {
|
|
507
524
|
r(t);
|
|
508
525
|
const { name: s, ...a } = t;
|
|
509
526
|
return Pe(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((i) => e[i] === (!n || Ke.all));
|
|
510
|
-
},
|
|
527
|
+
}, pi = (t, e, r) => !t || !e || t === e || Ft(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), mi = (t, e, r, n, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(e || t) : (r ? n.isOnBlur : s.isOnBlur) ? !t : (r ? n.isOnChange : s.isOnChange) ? t : !0, yi = (t, e) => !sn(L(t, e)).length && ke(t, e), gi = (t, e, r) => {
|
|
511
528
|
const n = Ft(L(t, r));
|
|
512
529
|
return ye(n, js, e[r]), ye(t, r, n), t;
|
|
513
530
|
};
|
|
@@ -526,9 +543,9 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
|
|
|
526
543
|
const { ref: i, refs: o, required: c, maxLength: l, minLength: f, min: d, max: p, pattern: m, validate: b, name: v, valueAsNumber: S, mount: k } = t._f, C = L(r, v);
|
|
527
544
|
if (!k || e.has(v))
|
|
528
545
|
return {};
|
|
529
|
-
const
|
|
530
|
-
s &&
|
|
531
|
-
}, x = {}, Z = cn(i), j = qt(i),
|
|
546
|
+
const U = o ? o[0] : i, I = (M) => {
|
|
547
|
+
s && U.reportValidity && (U.setCustomValidity(Xe(M) ? "" : M || ""), U.reportValidity());
|
|
548
|
+
}, x = {}, Z = cn(i), j = qt(i), z = Z || j, B = (S || on(i)) && xe(i.value) && xe(C) || sr(i) && i.value === "" || C === "" || Array.isArray(C) && !C.length, re = Ms.bind(null, v, n, x), he = (M, W, ne, ve = Ge.maxLength, ue = Ge.minLength) => {
|
|
532
549
|
const be = M ? W : ne;
|
|
533
550
|
x[v] = {
|
|
534
551
|
type: M ? ve : ue,
|
|
@@ -537,12 +554,12 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
|
|
|
537
554
|
...re(M ? ve : ue, be)
|
|
538
555
|
};
|
|
539
556
|
};
|
|
540
|
-
if (a ? !Array.isArray(C) || !C.length : c && (!
|
|
557
|
+
if (a ? !Array.isArray(C) || !C.length : c && (!z && (B || Ve(C)) || Xe(C) && !C || j && !Ds(o).isValid || Z && !zs(o).isValid)) {
|
|
541
558
|
const { value: M, message: W } = Ie(c) ? { value: !!c, message: c } : wt(c);
|
|
542
559
|
if (M && (x[v] = {
|
|
543
560
|
type: Ge.required,
|
|
544
561
|
message: W,
|
|
545
|
-
ref:
|
|
562
|
+
ref: U,
|
|
546
563
|
...re(Ge.required, W)
|
|
547
564
|
}, !n))
|
|
548
565
|
return I(W), x;
|
|
@@ -577,7 +594,7 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
|
|
|
577
594
|
}
|
|
578
595
|
if (b) {
|
|
579
596
|
if (Ye(b)) {
|
|
580
|
-
const M = await b(C, r), W = Mn(M,
|
|
597
|
+
const M = await b(C, r), W = Mn(M, U);
|
|
581
598
|
if (W && (x[v] = {
|
|
582
599
|
...W,
|
|
583
600
|
...re(Ge.validate, W.message)
|
|
@@ -588,14 +605,14 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
|
|
|
588
605
|
for (const W in b) {
|
|
589
606
|
if (!Pe(M) && !n)
|
|
590
607
|
break;
|
|
591
|
-
const ne = Mn(await b[W](C, r),
|
|
608
|
+
const ne = Mn(await b[W](C, r), U, W);
|
|
592
609
|
ne && (M = {
|
|
593
610
|
...ne,
|
|
594
611
|
...re(W, ne.message)
|
|
595
612
|
}, I(ne.message), n && (x[v] = M));
|
|
596
613
|
}
|
|
597
614
|
if (!Pe(M) && (x[v] = {
|
|
598
|
-
ref:
|
|
615
|
+
ref: U,
|
|
599
616
|
...M
|
|
600
617
|
}, !n))
|
|
601
618
|
return x;
|
|
@@ -603,14 +620,14 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
|
|
|
603
620
|
}
|
|
604
621
|
return I(!0), x;
|
|
605
622
|
};
|
|
606
|
-
const
|
|
623
|
+
const vi = {
|
|
607
624
|
mode: Ke.onSubmit,
|
|
608
625
|
reValidateMode: Ke.onChange,
|
|
609
626
|
shouldFocusError: !0
|
|
610
627
|
};
|
|
611
|
-
function
|
|
628
|
+
function bi(t = {}) {
|
|
612
629
|
let e = {
|
|
613
|
-
...
|
|
630
|
+
...vi,
|
|
614
631
|
...t
|
|
615
632
|
}, r = {
|
|
616
633
|
submitCount: 0,
|
|
@@ -661,7 +678,7 @@ function vi(t = {}) {
|
|
|
661
678
|
}, S = async (u) => {
|
|
662
679
|
if (!i.keepIsValid && !e.disabled && (d.isValid || p.isValid || u)) {
|
|
663
680
|
let y;
|
|
664
|
-
e.resolver ? (y = Pe((await
|
|
681
|
+
e.resolver ? (y = Pe((await z()).errors), k()) : y = await he({
|
|
665
682
|
fields: n,
|
|
666
683
|
onlyCheckValid: !0,
|
|
667
684
|
eventType: _t.VALID
|
|
@@ -684,7 +701,7 @@ function vi(t = {}) {
|
|
|
684
701
|
}
|
|
685
702
|
if (N && Array.isArray(L(r.errors, u))) {
|
|
686
703
|
const F = g(L(r.errors, u), A.argA, A.argB);
|
|
687
|
-
O && ye(r.errors, u, F),
|
|
704
|
+
O && ye(r.errors, u, F), yi(r.errors, u);
|
|
688
705
|
}
|
|
689
706
|
if ((d.touchedFields || p.touchedFields) && N && Array.isArray(L(r.touchedFields, u))) {
|
|
690
707
|
const F = g(L(r.touchedFields, u), A.argA, A.argB);
|
|
@@ -703,7 +720,7 @@ function vi(t = {}) {
|
|
|
703
720
|
});
|
|
704
721
|
} else
|
|
705
722
|
ye(a, u, y);
|
|
706
|
-
},
|
|
723
|
+
}, U = (u, y) => {
|
|
707
724
|
ye(r.errors, u, y), m.state.next({
|
|
708
725
|
errors: r.errors
|
|
709
726
|
});
|
|
@@ -738,7 +755,7 @@ function vi(t = {}) {
|
|
|
738
755
|
return N ? J : {};
|
|
739
756
|
}, j = (u, y, g, A) => {
|
|
740
757
|
const O = L(r.errors, u), N = (d.isValid || p.isValid) && Xe(y) && r.isValid !== y;
|
|
741
|
-
if (e.delayError && g ? (c = v(() =>
|
|
758
|
+
if (e.delayError && g ? (c = v(() => U(u, g)), c(e.delayError)) : (clearTimeout(l), c = null, g ? ye(r.errors, u, g) : ke(r.errors, u)), (g ? !it(O, g) : O) || !Pe(A) || N) {
|
|
742
759
|
const F = {
|
|
743
760
|
...A,
|
|
744
761
|
...N && Xe(y) ? { isValid: y } : {},
|
|
@@ -750,8 +767,8 @@ function vi(t = {}) {
|
|
|
750
767
|
...F
|
|
751
768
|
}, m.state.next(F);
|
|
752
769
|
}
|
|
753
|
-
},
|
|
754
|
-
const { errors: y } = await
|
|
770
|
+
}, z = async (u) => (k(u, !0), await e.resolver(a, e.context, ui(u || o.mount, n, e.criteriaMode, e.shouldUseNativeValidation))), B = async (u) => {
|
|
771
|
+
const { errors: y } = await z(u);
|
|
755
772
|
if (k(u), u)
|
|
756
773
|
for (const g of u) {
|
|
757
774
|
const A = L(y, g);
|
|
@@ -795,10 +812,10 @@ function vi(t = {}) {
|
|
|
795
812
|
if (F) {
|
|
796
813
|
const { _f: J, ...pe } = F;
|
|
797
814
|
if (J) {
|
|
798
|
-
const $e = o.array.has(J.name), Je = F._f &&
|
|
815
|
+
const $e = o.array.has(J.name), Je = F._f && di(F._f);
|
|
799
816
|
Je && d.validatingFields && k([J.name], !0);
|
|
800
817
|
const Le = await Vn(F, o.disabled, a, b, e.shouldUseNativeValidation && !y, $e);
|
|
801
|
-
if (Je && d.validatingFields && k([J.name]), Le[J.name] && (O.valid = !1, y) || (!y && (L(Le, J.name) ? $e ?
|
|
818
|
+
if (Je && d.validatingFields && k([J.name]), Le[J.name] && (O.valid = !1, y) || (!y && (L(Le, J.name) ? $e ? gi(r.errors, Le, J.name) : ye(r.errors, J.name, Le[J.name]) : ke(r.errors, J.name)), t.shouldUseNativeValidation && Le[J.name]))
|
|
802
819
|
break;
|
|
803
820
|
}
|
|
804
821
|
!Pe(pe) && await he({
|
|
@@ -817,7 +834,7 @@ function vi(t = {}) {
|
|
|
817
834
|
y && (y._f.refs ? y._f.refs.every((g) => !Cr(g)) : !Cr(y._f.ref)) && oe(u);
|
|
818
835
|
}
|
|
819
836
|
o.unMount = /* @__PURE__ */ new Set();
|
|
820
|
-
}, W = (u, y) => !e.disabled && (u && y && ye(a, u, y), !it(G(), s)), ne = (u, y, g) =>
|
|
837
|
+
}, W = (u, y) => !e.disabled && (u && y && ye(a, u, y), !it(G(), s)), ne = (u, y, g) => si(u, o, {
|
|
821
838
|
...i.mount ? a : xe(y) ? s : Ie(u) ? { [u]: y } : y
|
|
822
839
|
}, g, y), ve = (u) => sn(L(i.mount ? a : s, u, e.shouldUnregister ? L(s, u, []) : [])), ue = (u, y, g = {}) => {
|
|
823
840
|
const A = L(n, u);
|
|
@@ -865,7 +882,7 @@ function vi(t = {}) {
|
|
|
865
882
|
}, F = Pn(e.mode), J = Pn(e.reValidateMode);
|
|
866
883
|
if (O) {
|
|
867
884
|
let pe, $e;
|
|
868
|
-
const Je = y.type ? Tn(O._f) :
|
|
885
|
+
const Je = y.type ? Tn(O._f) : Xa(u), Le = u.type === _t.BLUR || u.type === _t.FOCUS_OUT, Za = !fi(O._f) && !t.validate && !e.resolver && !L(r.errors, g) && !O._f.deps || mi(Le, L(r.touchedFields, g), r.isSubmitted, J, F), wr = Ln(g, o, Le);
|
|
869
886
|
ye(a, g, Je), Le ? (!y || !y.readOnly) && (O._f.onBlur && O._f.onBlur(u), c && c(0)) : O._f.onChange && O._f.onChange(u);
|
|
870
887
|
const kr = Z(g, Je, Le), Ba = !Pe(kr) || wr;
|
|
871
888
|
if (!Le && m.state.next({
|
|
@@ -878,7 +895,7 @@ function vi(t = {}) {
|
|
|
878
895
|
name: g,
|
|
879
896
|
eventType: u.type
|
|
880
897
|
}), !Le && wr && m.state.next({ ...r }), e.resolver) {
|
|
881
|
-
const { errors: wn } = await
|
|
898
|
+
const { errors: wn } = await z([g]);
|
|
882
899
|
if (k([g]), N(Je), A) {
|
|
883
900
|
const Wa = jn(r.errors, n, g), kn = jn(wn, n, Wa.name || g);
|
|
884
901
|
pe = kn.error, g = kn.name, $e = Pe(wn);
|
|
@@ -953,7 +970,7 @@ function vi(t = {}) {
|
|
|
953
970
|
next: (g) => "values" in g && u(ne(void 0, y), g)
|
|
954
971
|
}) : ne(u, y, !0), ee = (u) => m.state.subscribe({
|
|
955
972
|
next: (y) => {
|
|
956
|
-
|
|
973
|
+
pi(u.name, y.name, u.exact) && hi(y, u.formState || d, za, u.reRenderRoot) && u.callback({
|
|
957
974
|
values: { ...a },
|
|
958
975
|
...r,
|
|
959
976
|
...y,
|
|
@@ -1013,7 +1030,7 @@ function vi(t = {}) {
|
|
|
1013
1030
|
ref: (O) => {
|
|
1014
1031
|
if (O) {
|
|
1015
1032
|
Re(u, y), g = L(n, u);
|
|
1016
|
-
const N = xe(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, F =
|
|
1033
|
+
const N = xe(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, F = ii(N), J = g._f.refs || [];
|
|
1017
1034
|
if (F ? J.find((pe) => pe === N) : N === g._f.ref)
|
|
1018
1035
|
return;
|
|
1019
1036
|
ye(n, u, {
|
|
@@ -1030,7 +1047,7 @@ function vi(t = {}) {
|
|
|
1030
1047
|
}
|
|
1031
1048
|
}), x(u, !1, void 0, N);
|
|
1032
1049
|
} else
|
|
1033
|
-
g = L(n, u, {}), g._f && (g._f.mount = !1), (e.shouldUnregister || y.shouldUnregister) && !(
|
|
1050
|
+
g = L(n, u, {}), g._f && (g._f.mount = !1), (e.shouldUnregister || y.shouldUnregister) && !(Qa(o.array, u) && i.action) && o.unMount.add(u);
|
|
1034
1051
|
}
|
|
1035
1052
|
};
|
|
1036
1053
|
}, T = () => e.shouldFocusError && Dt(n, _, o.mount), Ue = (u) => {
|
|
@@ -1047,7 +1064,7 @@ function vi(t = {}) {
|
|
|
1047
1064
|
if (m.state.next({
|
|
1048
1065
|
isSubmitting: !0
|
|
1049
1066
|
}), e.resolver) {
|
|
1050
|
-
const { errors: N, values: F } = await
|
|
1067
|
+
const { errors: N, values: F } = await z();
|
|
1051
1068
|
k(), r.errors = N, O = Ce(F);
|
|
1052
1069
|
} else
|
|
1053
1070
|
await he({
|
|
@@ -1157,7 +1174,7 @@ function vi(t = {}) {
|
|
|
1157
1174
|
handleSubmit: yt,
|
|
1158
1175
|
setError: se,
|
|
1159
1176
|
_subscribe: ee,
|
|
1160
|
-
_runSchema:
|
|
1177
|
+
_runSchema: z,
|
|
1161
1178
|
_updateIsValidating: k,
|
|
1162
1179
|
_focusError: T,
|
|
1163
1180
|
_getWatch: ne,
|
|
@@ -1256,14 +1273,14 @@ function ir(t = {}) {
|
|
|
1256
1273
|
formState: n
|
|
1257
1274
|
}, t.defaultValues && !Ye(t.defaultValues) && t.formControl.reset(t.defaultValues, t.resetOptions);
|
|
1258
1275
|
else {
|
|
1259
|
-
const { formControl: i, ...o } =
|
|
1276
|
+
const { formControl: i, ...o } = bi(t);
|
|
1260
1277
|
e.current = {
|
|
1261
1278
|
...o,
|
|
1262
1279
|
formState: n
|
|
1263
1280
|
};
|
|
1264
1281
|
}
|
|
1265
1282
|
const a = e.current.control;
|
|
1266
|
-
return a._options = t,
|
|
1283
|
+
return a._options = t, ni(() => {
|
|
1267
1284
|
const i = a._subscribe({
|
|
1268
1285
|
formState: a._proxyFormState,
|
|
1269
1286
|
callback: () => s({ ...a._formState }),
|
|
@@ -1296,7 +1313,7 @@ function ir(t = {}) {
|
|
|
1296
1313
|
}), !((i = a._options.resetOptions) === null || i === void 0) && i.keepIsValid || a._setValid(), r.current = t.values, s((o) => ({ ...o }))) : a._resetDefaultValues();
|
|
1297
1314
|
}, [a, t.values]), Ne.useEffect(() => {
|
|
1298
1315
|
a._state.mount || (a._setValid(), a._state.mount = !0), a._state.watch && (a._state.watch = !1, a._subjects.state.next({ ...a._formState })), a._removeUnmounted();
|
|
1299
|
-
}), e.current.formState = Ne.useMemo(() =>
|
|
1316
|
+
}), e.current.formState = Ne.useMemo(() => ri(n, a), [a, n]), e.current;
|
|
1300
1317
|
}
|
|
1301
1318
|
const $n = (t, e, r) => {
|
|
1302
1319
|
if (t && "reportValidity" in t) {
|
|
@@ -1308,19 +1325,19 @@ const $n = (t, e, r) => {
|
|
|
1308
1325
|
const n = e.fields[r];
|
|
1309
1326
|
n && n.ref && "reportValidity" in n.ref ? $n(n.ref, r, t) : n.refs && n.refs.forEach((s) => $n(s, r, t));
|
|
1310
1327
|
}
|
|
1311
|
-
},
|
|
1328
|
+
}, xi = (t, e) => {
|
|
1312
1329
|
e.shouldUseNativeValidation && Zs(t, e);
|
|
1313
1330
|
const r = {};
|
|
1314
1331
|
for (const n in t) {
|
|
1315
1332
|
const s = L(e.fields, n), a = Object.assign(t[n] || {}, { ref: s && s.ref });
|
|
1316
|
-
if (
|
|
1333
|
+
if (_i(e.names || Object.keys(t), n)) {
|
|
1317
1334
|
const i = Object.assign({}, L(r, n));
|
|
1318
1335
|
ye(i, "root", a), ye(r, n, i);
|
|
1319
1336
|
} else ye(r, n, a);
|
|
1320
1337
|
}
|
|
1321
1338
|
return r;
|
|
1322
|
-
},
|
|
1323
|
-
var
|
|
1339
|
+
}, _i = (t, e) => t.some((r) => r.startsWith(e + "."));
|
|
1340
|
+
var wi = function(t, e) {
|
|
1324
1341
|
for (var r = {}; t.length; ) {
|
|
1325
1342
|
var n = t[0], s = n.code, a = n.message, i = n.path.join(".");
|
|
1326
1343
|
if (!r[i]) if ("unionErrors" in n) {
|
|
@@ -1353,7 +1370,7 @@ var _i = function(t, e) {
|
|
|
1353
1370
|
})(0, function(i) {
|
|
1354
1371
|
if ((function(o) {
|
|
1355
1372
|
return Array.isArray(o == null ? void 0 : o.errors);
|
|
1356
|
-
})(i)) return { values: {}, errors:
|
|
1373
|
+
})(i)) return { values: {}, errors: xi(wi(i.errors, !a.shouldUseNativeValidation && a.criteriaMode === "all"), a) };
|
|
1357
1374
|
throw i;
|
|
1358
1375
|
}));
|
|
1359
1376
|
} catch (i) {
|
|
@@ -1585,11 +1602,11 @@ const Dr = (t, e) => {
|
|
|
1585
1602
|
}
|
|
1586
1603
|
return { message: r };
|
|
1587
1604
|
};
|
|
1588
|
-
let
|
|
1589
|
-
function
|
|
1590
|
-
return
|
|
1605
|
+
let ki = Dr;
|
|
1606
|
+
function Si() {
|
|
1607
|
+
return ki;
|
|
1591
1608
|
}
|
|
1592
|
-
const
|
|
1609
|
+
const Ci = (t) => {
|
|
1593
1610
|
const { data: e, path: r, errorMaps: n, issueData: s } = t, a = [...r, ...s.path || []], i = {
|
|
1594
1611
|
...s,
|
|
1595
1612
|
path: a
|
|
@@ -1611,7 +1628,7 @@ const Si = (t) => {
|
|
|
1611
1628
|
};
|
|
1612
1629
|
};
|
|
1613
1630
|
function P(t, e) {
|
|
1614
|
-
const r =
|
|
1631
|
+
const r = Si(), n = Ci({
|
|
1615
1632
|
issueData: e,
|
|
1616
1633
|
data: t.data,
|
|
1617
1634
|
path: t.path,
|
|
@@ -1894,7 +1911,7 @@ class ce {
|
|
|
1894
1911
|
});
|
|
1895
1912
|
}
|
|
1896
1913
|
brand() {
|
|
1897
|
-
return new
|
|
1914
|
+
return new Hi({
|
|
1898
1915
|
typeName: Y.ZodBranded,
|
|
1899
1916
|
type: this,
|
|
1900
1917
|
...te(this._def)
|
|
@@ -1929,28 +1946,28 @@ class ce {
|
|
|
1929
1946
|
return this.safeParse(null).success;
|
|
1930
1947
|
}
|
|
1931
1948
|
}
|
|
1932
|
-
const
|
|
1949
|
+
const Ei = /^c[^\s-]{8,}$/i, Ri = /^[0-9a-z]+$/, Oi = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Ni = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Ai = /^[a-z0-9_-]{21}$/i, Ti = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Pi = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ii = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Li = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
1933
1950
|
let Er;
|
|
1934
|
-
const
|
|
1951
|
+
const ji = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Mi = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Vi = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, $i = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Fi = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Di = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Bs = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Ui = new RegExp(`^${Bs}$`);
|
|
1935
1952
|
function Ws(t) {
|
|
1936
1953
|
let e = "[0-5]\\d";
|
|
1937
1954
|
t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
|
|
1938
1955
|
const r = t.precision ? "+" : "?";
|
|
1939
1956
|
return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`;
|
|
1940
1957
|
}
|
|
1941
|
-
function
|
|
1958
|
+
function zi(t) {
|
|
1942
1959
|
return new RegExp(`^${Ws(t)}$`);
|
|
1943
1960
|
}
|
|
1944
|
-
function
|
|
1961
|
+
function Zi(t) {
|
|
1945
1962
|
let e = `${Bs}T${Ws(t)}`;
|
|
1946
1963
|
const r = [];
|
|
1947
1964
|
return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
|
|
1948
1965
|
}
|
|
1949
|
-
function Zi(t, e) {
|
|
1950
|
-
return !!((e === "v4" || !e) && Li.test(t) || (e === "v6" || !e) && Mi.test(t));
|
|
1951
|
-
}
|
|
1952
1966
|
function Bi(t, e) {
|
|
1953
|
-
|
|
1967
|
+
return !!((e === "v4" || !e) && ji.test(t) || (e === "v6" || !e) && Vi.test(t));
|
|
1968
|
+
}
|
|
1969
|
+
function Wi(t, e) {
|
|
1970
|
+
if (!Ti.test(t))
|
|
1954
1971
|
return !1;
|
|
1955
1972
|
try {
|
|
1956
1973
|
const [r] = t.split(".");
|
|
@@ -1962,8 +1979,8 @@ function Bi(t, e) {
|
|
|
1962
1979
|
return !1;
|
|
1963
1980
|
}
|
|
1964
1981
|
}
|
|
1965
|
-
function
|
|
1966
|
-
return !!((e === "v4" || !e) &&
|
|
1982
|
+
function qi(t, e) {
|
|
1983
|
+
return !!((e === "v4" || !e) && Mi.test(t) || (e === "v6" || !e) && $i.test(t));
|
|
1967
1984
|
}
|
|
1968
1985
|
class ct extends ce {
|
|
1969
1986
|
_parse(e) {
|
|
@@ -2014,43 +2031,43 @@ class ct extends ce {
|
|
|
2014
2031
|
message: a.message
|
|
2015
2032
|
}), n.dirty());
|
|
2016
2033
|
} else if (a.kind === "email")
|
|
2017
|
-
|
|
2034
|
+
Ii.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2018
2035
|
validation: "email",
|
|
2019
2036
|
code: E.invalid_string,
|
|
2020
2037
|
message: a.message
|
|
2021
2038
|
}), n.dirty());
|
|
2022
2039
|
else if (a.kind === "emoji")
|
|
2023
|
-
Er || (Er = new RegExp(
|
|
2040
|
+
Er || (Er = new RegExp(Li, "u")), Er.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2024
2041
|
validation: "emoji",
|
|
2025
2042
|
code: E.invalid_string,
|
|
2026
2043
|
message: a.message
|
|
2027
2044
|
}), n.dirty());
|
|
2028
2045
|
else if (a.kind === "uuid")
|
|
2029
|
-
|
|
2046
|
+
Ni.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2030
2047
|
validation: "uuid",
|
|
2031
2048
|
code: E.invalid_string,
|
|
2032
2049
|
message: a.message
|
|
2033
2050
|
}), n.dirty());
|
|
2034
2051
|
else if (a.kind === "nanoid")
|
|
2035
|
-
|
|
2052
|
+
Ai.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2036
2053
|
validation: "nanoid",
|
|
2037
2054
|
code: E.invalid_string,
|
|
2038
2055
|
message: a.message
|
|
2039
2056
|
}), n.dirty());
|
|
2040
2057
|
else if (a.kind === "cuid")
|
|
2041
|
-
|
|
2058
|
+
Ei.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2042
2059
|
validation: "cuid",
|
|
2043
2060
|
code: E.invalid_string,
|
|
2044
2061
|
message: a.message
|
|
2045
2062
|
}), n.dirty());
|
|
2046
2063
|
else if (a.kind === "cuid2")
|
|
2047
|
-
|
|
2064
|
+
Ri.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2048
2065
|
validation: "cuid2",
|
|
2049
2066
|
code: E.invalid_string,
|
|
2050
2067
|
message: a.message
|
|
2051
2068
|
}), n.dirty());
|
|
2052
2069
|
else if (a.kind === "ulid")
|
|
2053
|
-
|
|
2070
|
+
Oi.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2054
2071
|
validation: "ulid",
|
|
2055
2072
|
code: E.invalid_string,
|
|
2056
2073
|
message: a.message
|
|
@@ -2081,39 +2098,39 @@ class ct extends ce {
|
|
|
2081
2098
|
code: E.invalid_string,
|
|
2082
2099
|
validation: { endsWith: a.value },
|
|
2083
2100
|
message: a.message
|
|
2084
|
-
}), n.dirty()) : a.kind === "datetime" ?
|
|
2101
|
+
}), n.dirty()) : a.kind === "datetime" ? Zi(a).test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2085
2102
|
code: E.invalid_string,
|
|
2086
2103
|
validation: "datetime",
|
|
2087
2104
|
message: a.message
|
|
2088
|
-
}), n.dirty()) : a.kind === "date" ?
|
|
2105
|
+
}), n.dirty()) : a.kind === "date" ? Ui.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2089
2106
|
code: E.invalid_string,
|
|
2090
2107
|
validation: "date",
|
|
2091
2108
|
message: a.message
|
|
2092
|
-
}), n.dirty()) : a.kind === "time" ?
|
|
2109
|
+
}), n.dirty()) : a.kind === "time" ? zi(a).test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2093
2110
|
code: E.invalid_string,
|
|
2094
2111
|
validation: "time",
|
|
2095
2112
|
message: a.message
|
|
2096
|
-
}), n.dirty()) : a.kind === "duration" ?
|
|
2113
|
+
}), n.dirty()) : a.kind === "duration" ? Pi.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2097
2114
|
validation: "duration",
|
|
2098
2115
|
code: E.invalid_string,
|
|
2099
2116
|
message: a.message
|
|
2100
|
-
}), n.dirty()) : a.kind === "ip" ?
|
|
2117
|
+
}), n.dirty()) : a.kind === "ip" ? Bi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2101
2118
|
validation: "ip",
|
|
2102
2119
|
code: E.invalid_string,
|
|
2103
2120
|
message: a.message
|
|
2104
|
-
}), n.dirty()) : a.kind === "jwt" ?
|
|
2121
|
+
}), n.dirty()) : a.kind === "jwt" ? Wi(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2105
2122
|
validation: "jwt",
|
|
2106
2123
|
code: E.invalid_string,
|
|
2107
2124
|
message: a.message
|
|
2108
|
-
}), n.dirty()) : a.kind === "cidr" ?
|
|
2125
|
+
}), n.dirty()) : a.kind === "cidr" ? qi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2109
2126
|
validation: "cidr",
|
|
2110
2127
|
code: E.invalid_string,
|
|
2111
2128
|
message: a.message
|
|
2112
|
-
}), n.dirty()) : a.kind === "base64" ?
|
|
2129
|
+
}), n.dirty()) : a.kind === "base64" ? Fi.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2113
2130
|
validation: "base64",
|
|
2114
2131
|
code: E.invalid_string,
|
|
2115
2132
|
message: a.message
|
|
2116
|
-
}), n.dirty()) : a.kind === "base64url" ?
|
|
2133
|
+
}), n.dirty()) : a.kind === "base64url" ? Di.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2117
2134
|
validation: "base64url",
|
|
2118
2135
|
code: E.invalid_string,
|
|
2119
2136
|
message: a.message
|
|
@@ -2348,7 +2365,7 @@ ct.create = (t) => new ct({
|
|
|
2348
2365
|
coerce: (t == null ? void 0 : t.coerce) ?? !1,
|
|
2349
2366
|
...te(t)
|
|
2350
2367
|
});
|
|
2351
|
-
function
|
|
2368
|
+
function Gi(t, e) {
|
|
2352
2369
|
const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = r > n ? r : n, a = Number.parseInt(t.toFixed(s).replace(".", "")), i = Number.parseInt(e.toFixed(s).replace(".", ""));
|
|
2353
2370
|
return a % i / 10 ** s;
|
|
2354
2371
|
}
|
|
@@ -2387,7 +2404,7 @@ class zt extends ce {
|
|
|
2387
2404
|
inclusive: a.inclusive,
|
|
2388
2405
|
exact: !1,
|
|
2389
2406
|
message: a.message
|
|
2390
|
-
}), s.dirty()) : a.kind === "multipleOf" ?
|
|
2407
|
+
}), s.dirty()) : a.kind === "multipleOf" ? Gi(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), P(n, {
|
|
2391
2408
|
code: E.not_multiple_of,
|
|
2392
2409
|
multipleOf: a.value,
|
|
2393
2410
|
message: a.message
|
|
@@ -3884,7 +3901,7 @@ Qn.create = (t) => new Qn({
|
|
|
3884
3901
|
typeName: Y.ZodNaN,
|
|
3885
3902
|
...te(t)
|
|
3886
3903
|
});
|
|
3887
|
-
class
|
|
3904
|
+
class Hi extends ce {
|
|
3888
3905
|
_parse(e) {
|
|
3889
3906
|
const { ctx: r } = this._processInputParams(e), n = r.data;
|
|
3890
3907
|
return this._def.type._parse({
|
|
@@ -3962,7 +3979,7 @@ const br = Se.create;
|
|
|
3962
3979
|
ur.create;
|
|
3963
3980
|
dr.create;
|
|
3964
3981
|
bt.create;
|
|
3965
|
-
const
|
|
3982
|
+
const Yi = zr.create;
|
|
3966
3983
|
Rt.create;
|
|
3967
3984
|
fr.create;
|
|
3968
3985
|
ut.create;
|
|
@@ -3973,14 +3990,14 @@ Nt.create;
|
|
|
3973
3990
|
* This source code is licensed under the ISC license.
|
|
3974
3991
|
* See the LICENSE file in the root directory of this source tree.
|
|
3975
3992
|
*/
|
|
3976
|
-
const
|
|
3993
|
+
const Ki = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Gs = (...t) => t.filter((e, r, n) => !!e && e.trim() !== "" && n.indexOf(e) === r).join(" ").trim();
|
|
3977
3994
|
/**
|
|
3978
3995
|
* @license lucide-react v0.468.0 - ISC
|
|
3979
3996
|
*
|
|
3980
3997
|
* This source code is licensed under the ISC license.
|
|
3981
3998
|
* See the LICENSE file in the root directory of this source tree.
|
|
3982
3999
|
*/
|
|
3983
|
-
var
|
|
4000
|
+
var Ji = {
|
|
3984
4001
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3985
4002
|
width: 24,
|
|
3986
4003
|
height: 24,
|
|
@@ -3997,7 +4014,7 @@ var Ki = {
|
|
|
3997
4014
|
* This source code is licensed under the ISC license.
|
|
3998
4015
|
* See the LICENSE file in the root directory of this source tree.
|
|
3999
4016
|
*/
|
|
4000
|
-
const
|
|
4017
|
+
const Xi = yr(
|
|
4001
4018
|
({
|
|
4002
4019
|
color: t = "currentColor",
|
|
4003
4020
|
size: e = 24,
|
|
@@ -4011,7 +4028,7 @@ const Ji = yr(
|
|
|
4011
4028
|
"svg",
|
|
4012
4029
|
{
|
|
4013
4030
|
ref: c,
|
|
4014
|
-
...
|
|
4031
|
+
...Ji,
|
|
4015
4032
|
width: e,
|
|
4016
4033
|
height: e,
|
|
4017
4034
|
stroke: t,
|
|
@@ -4033,10 +4050,10 @@ const Ji = yr(
|
|
|
4033
4050
|
*/
|
|
4034
4051
|
const mt = (t, e) => {
|
|
4035
4052
|
const r = yr(
|
|
4036
|
-
({ className: n, ...s }, a) => Ut(
|
|
4053
|
+
({ className: n, ...s }, a) => Ut(Xi, {
|
|
4037
4054
|
ref: a,
|
|
4038
4055
|
iconNode: e,
|
|
4039
|
-
className: Gs(`lucide-${
|
|
4056
|
+
className: Gs(`lucide-${Ki(t)}`, n),
|
|
4040
4057
|
...s
|
|
4041
4058
|
})
|
|
4042
4059
|
);
|
|
@@ -4048,14 +4065,14 @@ const mt = (t, e) => {
|
|
|
4048
4065
|
* This source code is licensed under the ISC license.
|
|
4049
4066
|
* See the LICENSE file in the root directory of this source tree.
|
|
4050
4067
|
*/
|
|
4051
|
-
const
|
|
4068
|
+
const Qi = mt("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
4052
4069
|
/**
|
|
4053
4070
|
* @license lucide-react v0.468.0 - ISC
|
|
4054
4071
|
*
|
|
4055
4072
|
* This source code is licensed under the ISC license.
|
|
4056
4073
|
* See the LICENSE file in the root directory of this source tree.
|
|
4057
4074
|
*/
|
|
4058
|
-
const
|
|
4075
|
+
const eo = mt("CircleCheck", [
|
|
4059
4076
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
4060
4077
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
4061
4078
|
]);
|
|
@@ -4065,7 +4082,7 @@ const Qi = mt("CircleCheck", [
|
|
|
4065
4082
|
* This source code is licensed under the ISC license.
|
|
4066
4083
|
* See the LICENSE file in the root directory of this source tree.
|
|
4067
4084
|
*/
|
|
4068
|
-
const
|
|
4085
|
+
const to = mt("Github", [
|
|
4069
4086
|
[
|
|
4070
4087
|
"path",
|
|
4071
4088
|
{
|
|
@@ -4090,7 +4107,7 @@ const hr = mt("LoaderCircle", [
|
|
|
4090
4107
|
* This source code is licensed under the ISC license.
|
|
4091
4108
|
* See the LICENSE file in the root directory of this source tree.
|
|
4092
4109
|
*/
|
|
4093
|
-
const
|
|
4110
|
+
const ro = mt("LogOut", [
|
|
4094
4111
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
|
|
4095
4112
|
["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
|
|
4096
4113
|
["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
|
|
@@ -4101,7 +4118,7 @@ const to = mt("LogOut", [
|
|
|
4101
4118
|
* This source code is licensed under the ISC license.
|
|
4102
4119
|
* See the LICENSE file in the root directory of this source tree.
|
|
4103
4120
|
*/
|
|
4104
|
-
const
|
|
4121
|
+
const no = mt("Mail", [
|
|
4105
4122
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
|
|
4106
4123
|
["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
|
|
4107
4124
|
]);
|
|
@@ -4111,7 +4128,7 @@ const ro = mt("Mail", [
|
|
|
4111
4128
|
* This source code is licensed under the ISC license.
|
|
4112
4129
|
* See the LICENSE file in the root directory of this source tree.
|
|
4113
4130
|
*/
|
|
4114
|
-
const
|
|
4131
|
+
const so = mt("Pencil", [
|
|
4115
4132
|
[
|
|
4116
4133
|
"path",
|
|
4117
4134
|
{
|
|
@@ -4127,7 +4144,7 @@ const no = mt("Pencil", [
|
|
|
4127
4144
|
* This source code is licensed under the ISC license.
|
|
4128
4145
|
* See the LICENSE file in the root directory of this source tree.
|
|
4129
4146
|
*/
|
|
4130
|
-
const
|
|
4147
|
+
const ao = mt("Phone", [
|
|
4131
4148
|
[
|
|
4132
4149
|
"path",
|
|
4133
4150
|
{
|
|
@@ -4149,15 +4166,15 @@ function Ys() {
|
|
|
4149
4166
|
for (var t, e, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (e = Hs(t)) && (n && (n += " "), n += e);
|
|
4150
4167
|
return n;
|
|
4151
4168
|
}
|
|
4152
|
-
const un = "-",
|
|
4153
|
-
const e =
|
|
4169
|
+
const un = "-", io = (t) => {
|
|
4170
|
+
const e = co(t), {
|
|
4154
4171
|
conflictingClassGroups: r,
|
|
4155
4172
|
conflictingClassGroupModifiers: n
|
|
4156
4173
|
} = t;
|
|
4157
4174
|
return {
|
|
4158
4175
|
getClassGroupId: (i) => {
|
|
4159
4176
|
const o = i.split(un);
|
|
4160
|
-
return o[0] === "" && o.length !== 1 && o.shift(), Ks(o, e) ||
|
|
4177
|
+
return o[0] === "" && o.length !== 1 && o.shift(), Ks(o, e) || oo(i);
|
|
4161
4178
|
},
|
|
4162
4179
|
getConflictingClassGroupIds: (i, o) => {
|
|
4163
4180
|
const c = r[i] || [];
|
|
@@ -4177,13 +4194,13 @@ const un = "-", ao = (t) => {
|
|
|
4177
4194
|
return (i = e.validators.find(({
|
|
4178
4195
|
validator: o
|
|
4179
4196
|
}) => o(a))) == null ? void 0 : i.classGroupId;
|
|
4180
|
-
}, es = /^\[(.+)\]$/,
|
|
4197
|
+
}, es = /^\[(.+)\]$/, oo = (t) => {
|
|
4181
4198
|
if (es.test(t)) {
|
|
4182
4199
|
const e = es.exec(t)[1], r = e == null ? void 0 : e.substring(0, e.indexOf(":"));
|
|
4183
4200
|
if (r)
|
|
4184
4201
|
return "arbitrary.." + r;
|
|
4185
4202
|
}
|
|
4186
|
-
},
|
|
4203
|
+
}, co = (t) => {
|
|
4187
4204
|
const {
|
|
4188
4205
|
theme: e,
|
|
4189
4206
|
prefix: r
|
|
@@ -4191,7 +4208,7 @@ const un = "-", ao = (t) => {
|
|
|
4191
4208
|
nextPart: /* @__PURE__ */ new Map(),
|
|
4192
4209
|
validators: []
|
|
4193
4210
|
};
|
|
4194
|
-
return
|
|
4211
|
+
return uo(Object.entries(t.classGroups), r).forEach(([a, i]) => {
|
|
4195
4212
|
qr(i, n, a, e);
|
|
4196
4213
|
}), n;
|
|
4197
4214
|
}, qr = (t, e, r, n) => {
|
|
@@ -4202,7 +4219,7 @@ const un = "-", ao = (t) => {
|
|
|
4202
4219
|
return;
|
|
4203
4220
|
}
|
|
4204
4221
|
if (typeof s == "function") {
|
|
4205
|
-
if (
|
|
4222
|
+
if (lo(s)) {
|
|
4206
4223
|
qr(s(n), e, r, n);
|
|
4207
4224
|
return;
|
|
4208
4225
|
}
|
|
@@ -4224,10 +4241,10 @@ const un = "-", ao = (t) => {
|
|
|
4224
4241
|
validators: []
|
|
4225
4242
|
}), r = r.nextPart.get(n);
|
|
4226
4243
|
}), r;
|
|
4227
|
-
},
|
|
4244
|
+
}, lo = (t) => t.isThemeGetter, uo = (t, e) => e ? t.map(([r, n]) => {
|
|
4228
4245
|
const s = n.map((a) => typeof a == "string" ? e + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([i, o]) => [e + i, o])) : a);
|
|
4229
4246
|
return [r, s];
|
|
4230
|
-
}) : t,
|
|
4247
|
+
}) : t, fo = (t) => {
|
|
4231
4248
|
if (t < 1)
|
|
4232
4249
|
return {
|
|
4233
4250
|
get: () => {
|
|
@@ -4251,7 +4268,7 @@ const un = "-", ao = (t) => {
|
|
|
4251
4268
|
r.has(a) ? r.set(a, i) : s(a, i);
|
|
4252
4269
|
}
|
|
4253
4270
|
};
|
|
4254
|
-
}, Js = "!",
|
|
4271
|
+
}, Js = "!", ho = (t) => {
|
|
4255
4272
|
const {
|
|
4256
4273
|
separator: e,
|
|
4257
4274
|
experimentalParseClassName: r
|
|
@@ -4284,7 +4301,7 @@ const un = "-", ao = (t) => {
|
|
|
4284
4301
|
className: o,
|
|
4285
4302
|
parseClassName: i
|
|
4286
4303
|
}) : i;
|
|
4287
|
-
},
|
|
4304
|
+
}, po = (t) => {
|
|
4288
4305
|
if (t.length <= 1)
|
|
4289
4306
|
return t;
|
|
4290
4307
|
const e = [];
|
|
@@ -4292,16 +4309,16 @@ const un = "-", ao = (t) => {
|
|
|
4292
4309
|
return t.forEach((n) => {
|
|
4293
4310
|
n[0] === "[" ? (e.push(...r.sort(), n), r = []) : r.push(n);
|
|
4294
4311
|
}), e.push(...r.sort()), e;
|
|
4295
|
-
},
|
|
4296
|
-
cache:
|
|
4297
|
-
parseClassName:
|
|
4298
|
-
...
|
|
4299
|
-
}),
|
|
4312
|
+
}, mo = (t) => ({
|
|
4313
|
+
cache: fo(t.cacheSize),
|
|
4314
|
+
parseClassName: ho(t),
|
|
4315
|
+
...io(t)
|
|
4316
|
+
}), yo = /\s+/, go = (t, e) => {
|
|
4300
4317
|
const {
|
|
4301
4318
|
parseClassName: r,
|
|
4302
4319
|
getClassGroupId: n,
|
|
4303
4320
|
getConflictingClassGroupIds: s
|
|
4304
|
-
} = e, a = [], i = t.trim().split(
|
|
4321
|
+
} = e, a = [], i = t.trim().split(yo);
|
|
4305
4322
|
let o = "";
|
|
4306
4323
|
for (let c = i.length - 1; c >= 0; c -= 1) {
|
|
4307
4324
|
const l = i[c], {
|
|
@@ -4322,20 +4339,20 @@ const un = "-", ao = (t) => {
|
|
|
4322
4339
|
}
|
|
4323
4340
|
b = !1;
|
|
4324
4341
|
}
|
|
4325
|
-
const S =
|
|
4342
|
+
const S = po(f).join(":"), k = d ? S + Js : S, C = k + v;
|
|
4326
4343
|
if (a.includes(C))
|
|
4327
4344
|
continue;
|
|
4328
4345
|
a.push(C);
|
|
4329
|
-
const
|
|
4330
|
-
for (let I = 0; I <
|
|
4331
|
-
const x =
|
|
4346
|
+
const U = s(v, b);
|
|
4347
|
+
for (let I = 0; I < U.length; ++I) {
|
|
4348
|
+
const x = U[I];
|
|
4332
4349
|
a.push(k + x);
|
|
4333
4350
|
}
|
|
4334
4351
|
o = l + (o.length > 0 ? " " + o : o);
|
|
4335
4352
|
}
|
|
4336
4353
|
return o;
|
|
4337
4354
|
};
|
|
4338
|
-
function
|
|
4355
|
+
function vo() {
|
|
4339
4356
|
let t = 0, e, r, n = "";
|
|
4340
4357
|
for (; t < arguments.length; )
|
|
4341
4358
|
(e = arguments[t++]) && (r = Xs(e)) && (n && (n += " "), n += r);
|
|
@@ -4349,36 +4366,36 @@ const Xs = (t) => {
|
|
|
4349
4366
|
t[n] && (e = Xs(t[n])) && (r && (r += " "), r += e);
|
|
4350
4367
|
return r;
|
|
4351
4368
|
};
|
|
4352
|
-
function
|
|
4369
|
+
function bo(t, ...e) {
|
|
4353
4370
|
let r, n, s, a = i;
|
|
4354
4371
|
function i(c) {
|
|
4355
4372
|
const l = e.reduce((f, d) => d(f), t());
|
|
4356
|
-
return r =
|
|
4373
|
+
return r = mo(l), n = r.cache.get, s = r.cache.set, a = o, o(c);
|
|
4357
4374
|
}
|
|
4358
4375
|
function o(c) {
|
|
4359
4376
|
const l = n(c);
|
|
4360
4377
|
if (l)
|
|
4361
4378
|
return l;
|
|
4362
|
-
const f =
|
|
4379
|
+
const f = go(c, r);
|
|
4363
4380
|
return s(c, f), f;
|
|
4364
4381
|
}
|
|
4365
4382
|
return function() {
|
|
4366
|
-
return a(
|
|
4383
|
+
return a(vo.apply(null, arguments));
|
|
4367
4384
|
};
|
|
4368
4385
|
}
|
|
4369
4386
|
const ge = (t) => {
|
|
4370
4387
|
const e = (r) => r[t] || [];
|
|
4371
4388
|
return e.isThemeGetter = !0, e;
|
|
4372
|
-
}, Qs = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
4389
|
+
}, Qs = /^\[(?:([a-z-]+):)?(.+)\]$/i, xo = /^\d+\/\d+$/, _o = /* @__PURE__ */ new Set(["px", "full", "screen"]), wo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ko = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, So = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Eo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tt = (t) => Ct(t) || _o.has(t) || xo.test(t), nt = (t) => It(t, "length", Lo), Ct = (t) => !!t && !Number.isNaN(Number(t)), Rr = (t) => It(t, "number", Ct), Mt = (t) => !!t && Number.isInteger(Number(t)), Ro = (t) => t.endsWith("%") && Ct(t.slice(0, -1)), X = (t) => Qs.test(t), st = (t) => wo.test(t), Oo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), No = (t) => It(t, Oo, ea), Ao = (t) => It(t, "position", ea), To = /* @__PURE__ */ new Set(["image", "url"]), Po = (t) => It(t, To, Mo), Io = (t) => It(t, "", jo), Vt = () => !0, It = (t, e, r) => {
|
|
4373
4390
|
const n = Qs.exec(t);
|
|
4374
4391
|
return n ? n[1] ? typeof e == "string" ? n[1] === e : e.has(n[1]) : r(n[2]) : !1;
|
|
4375
|
-
},
|
|
4392
|
+
}, Lo = (t) => (
|
|
4376
4393
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
4377
4394
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
4378
4395
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
4379
|
-
|
|
4380
|
-
), ea = () => !1,
|
|
4381
|
-
const t = ge("colors"), e = ge("spacing"), r = ge("blur"), n = ge("brightness"), s = ge("borderColor"), a = ge("borderRadius"), i = ge("borderSpacing"), o = ge("borderWidth"), c = ge("contrast"), l = ge("grayscale"), f = ge("hueRotate"), d = ge("invert"), p = ge("gap"), m = ge("gradientColorStops"), b = ge("gradientColorStopPositions"), v = ge("inset"), S = ge("margin"), k = ge("opacity"), C = ge("padding"),
|
|
4396
|
+
ko.test(t) && !So.test(t)
|
|
4397
|
+
), ea = () => !1, jo = (t) => Co.test(t), Mo = (t) => Eo.test(t), Vo = () => {
|
|
4398
|
+
const t = ge("colors"), e = ge("spacing"), r = ge("blur"), n = ge("brightness"), s = ge("borderColor"), a = ge("borderRadius"), i = ge("borderSpacing"), o = ge("borderWidth"), c = ge("contrast"), l = ge("grayscale"), f = ge("hueRotate"), d = ge("invert"), p = ge("gap"), m = ge("gradientColorStops"), b = ge("gradientColorStopPositions"), v = ge("inset"), S = ge("margin"), k = ge("opacity"), C = ge("padding"), U = ge("saturate"), I = ge("scale"), x = ge("sepia"), Z = ge("skew"), j = ge("space"), z = ge("translate"), B = () => ["auto", "contain", "none"], re = () => ["auto", "hidden", "clip", "visible", "scroll"], he = () => ["auto", X, e], M = () => [X, e], W = () => ["", tt, nt], ne = () => ["auto", Ct, X], ve = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ue = () => ["solid", "dashed", "dotted", "double", "none"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], we = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Ee = () => ["", "0", X], _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], R = () => [Ct, X];
|
|
4382
4399
|
return {
|
|
4383
4400
|
cacheSize: 500,
|
|
4384
4401
|
separator: ":",
|
|
@@ -4397,7 +4414,7 @@ const ge = (t) => {
|
|
|
4397
4414
|
invert: Ee(),
|
|
4398
4415
|
gap: M(),
|
|
4399
4416
|
gradientColorStops: [t],
|
|
4400
|
-
gradientColorStopPositions: [
|
|
4417
|
+
gradientColorStopPositions: [Ro, nt],
|
|
4401
4418
|
inset: he(),
|
|
4402
4419
|
margin: he(),
|
|
4403
4420
|
opacity: R(),
|
|
@@ -5310,7 +5327,7 @@ const ge = (t) => {
|
|
|
5310
5327
|
* @see https://tailwindcss.com/docs/background-position
|
|
5311
5328
|
*/
|
|
5312
5329
|
"bg-position": [{
|
|
5313
|
-
bg: [...ve(),
|
|
5330
|
+
bg: [...ve(), Ao]
|
|
5314
5331
|
}],
|
|
5315
5332
|
/**
|
|
5316
5333
|
* Background Repeat
|
|
@@ -5326,7 +5343,7 @@ const ge = (t) => {
|
|
|
5326
5343
|
* @see https://tailwindcss.com/docs/background-size
|
|
5327
5344
|
*/
|
|
5328
5345
|
"bg-size": [{
|
|
5329
|
-
bg: ["auto", "cover", "contain",
|
|
5346
|
+
bg: ["auto", "cover", "contain", No]
|
|
5330
5347
|
}],
|
|
5331
5348
|
/**
|
|
5332
5349
|
* Background Image
|
|
@@ -5335,7 +5352,7 @@ const ge = (t) => {
|
|
|
5335
5352
|
"bg-image": [{
|
|
5336
5353
|
bg: ["none", {
|
|
5337
5354
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
5338
|
-
},
|
|
5355
|
+
}, Po]
|
|
5339
5356
|
}],
|
|
5340
5357
|
/**
|
|
5341
5358
|
* Background Color
|
|
@@ -5751,7 +5768,7 @@ const ge = (t) => {
|
|
|
5751
5768
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
5752
5769
|
*/
|
|
5753
5770
|
shadow: [{
|
|
5754
|
-
shadow: ["", "inner", "none", st,
|
|
5771
|
+
shadow: ["", "inner", "none", st, Io]
|
|
5755
5772
|
}],
|
|
5756
5773
|
/**
|
|
5757
5774
|
* Box Shadow Color
|
|
@@ -5844,7 +5861,7 @@ const ge = (t) => {
|
|
|
5844
5861
|
* @see https://tailwindcss.com/docs/saturate
|
|
5845
5862
|
*/
|
|
5846
5863
|
saturate: [{
|
|
5847
|
-
saturate: [
|
|
5864
|
+
saturate: [U]
|
|
5848
5865
|
}],
|
|
5849
5866
|
/**
|
|
5850
5867
|
* Sepia
|
|
@@ -5915,7 +5932,7 @@ const ge = (t) => {
|
|
|
5915
5932
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
5916
5933
|
*/
|
|
5917
5934
|
"backdrop-saturate": [{
|
|
5918
|
-
"backdrop-saturate": [
|
|
5935
|
+
"backdrop-saturate": [U]
|
|
5919
5936
|
}],
|
|
5920
5937
|
/**
|
|
5921
5938
|
* Backdrop Sepia
|
|
@@ -6044,14 +6061,14 @@ const ge = (t) => {
|
|
|
6044
6061
|
* @see https://tailwindcss.com/docs/translate
|
|
6045
6062
|
*/
|
|
6046
6063
|
"translate-x": [{
|
|
6047
|
-
"translate-x": [
|
|
6064
|
+
"translate-x": [z]
|
|
6048
6065
|
}],
|
|
6049
6066
|
/**
|
|
6050
6067
|
* Translate Y
|
|
6051
6068
|
* @see https://tailwindcss.com/docs/translate
|
|
6052
6069
|
*/
|
|
6053
6070
|
"translate-y": [{
|
|
6054
|
-
"translate-y": [
|
|
6071
|
+
"translate-y": [z]
|
|
6055
6072
|
}],
|
|
6056
6073
|
/**
|
|
6057
6074
|
* Skew X
|
|
@@ -6406,9 +6423,9 @@ const ge = (t) => {
|
|
|
6406
6423
|
"font-size": ["leading"]
|
|
6407
6424
|
}
|
|
6408
6425
|
};
|
|
6409
|
-
},
|
|
6426
|
+
}, $o = /* @__PURE__ */ bo(Vo);
|
|
6410
6427
|
function me(...t) {
|
|
6411
|
-
return
|
|
6428
|
+
return $o(Ys(t));
|
|
6412
6429
|
}
|
|
6413
6430
|
function ta(t) {
|
|
6414
6431
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -6423,11 +6440,11 @@ var Yt = { exports: {} }, Kt = { exports: {} }, de = {};
|
|
|
6423
6440
|
* LICENSE file in the root directory of this source tree.
|
|
6424
6441
|
*/
|
|
6425
6442
|
var rs;
|
|
6426
|
-
function
|
|
6443
|
+
function Fo() {
|
|
6427
6444
|
if (rs) return de;
|
|
6428
6445
|
rs = 1;
|
|
6429
6446
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, k = t ? Symbol.for("react.responder") : 60118, C = t ? Symbol.for("react.scope") : 60119;
|
|
6430
|
-
function
|
|
6447
|
+
function U(x) {
|
|
6431
6448
|
if (typeof x == "object" && x !== null) {
|
|
6432
6449
|
var Z = x.$$typeof;
|
|
6433
6450
|
switch (Z) {
|
|
@@ -6458,35 +6475,35 @@ function $o() {
|
|
|
6458
6475
|
}
|
|
6459
6476
|
}
|
|
6460
6477
|
function I(x) {
|
|
6461
|
-
return
|
|
6478
|
+
return U(x) === l;
|
|
6462
6479
|
}
|
|
6463
6480
|
return de.AsyncMode = c, de.ConcurrentMode = l, de.ContextConsumer = o, de.ContextProvider = i, de.Element = e, de.ForwardRef = f, de.Fragment = n, de.Lazy = b, de.Memo = m, de.Portal = r, de.Profiler = a, de.StrictMode = s, de.Suspense = d, de.isAsyncMode = function(x) {
|
|
6464
|
-
return I(x) ||
|
|
6481
|
+
return I(x) || U(x) === c;
|
|
6465
6482
|
}, de.isConcurrentMode = I, de.isContextConsumer = function(x) {
|
|
6466
|
-
return
|
|
6483
|
+
return U(x) === o;
|
|
6467
6484
|
}, de.isContextProvider = function(x) {
|
|
6468
|
-
return
|
|
6485
|
+
return U(x) === i;
|
|
6469
6486
|
}, de.isElement = function(x) {
|
|
6470
6487
|
return typeof x == "object" && x !== null && x.$$typeof === e;
|
|
6471
6488
|
}, de.isForwardRef = function(x) {
|
|
6472
|
-
return
|
|
6489
|
+
return U(x) === f;
|
|
6473
6490
|
}, de.isFragment = function(x) {
|
|
6474
|
-
return
|
|
6491
|
+
return U(x) === n;
|
|
6475
6492
|
}, de.isLazy = function(x) {
|
|
6476
|
-
return
|
|
6493
|
+
return U(x) === b;
|
|
6477
6494
|
}, de.isMemo = function(x) {
|
|
6478
|
-
return
|
|
6495
|
+
return U(x) === m;
|
|
6479
6496
|
}, de.isPortal = function(x) {
|
|
6480
|
-
return
|
|
6497
|
+
return U(x) === r;
|
|
6481
6498
|
}, de.isProfiler = function(x) {
|
|
6482
|
-
return
|
|
6499
|
+
return U(x) === a;
|
|
6483
6500
|
}, de.isStrictMode = function(x) {
|
|
6484
|
-
return
|
|
6501
|
+
return U(x) === s;
|
|
6485
6502
|
}, de.isSuspense = function(x) {
|
|
6486
|
-
return
|
|
6503
|
+
return U(x) === d;
|
|
6487
6504
|
}, de.isValidElementType = function(x) {
|
|
6488
6505
|
return typeof x == "string" || typeof x == "function" || x === n || x === l || x === a || x === s || x === d || x === p || typeof x == "object" && x !== null && (x.$$typeof === b || x.$$typeof === m || x.$$typeof === i || x.$$typeof === o || x.$$typeof === f || x.$$typeof === S || x.$$typeof === k || x.$$typeof === C || x.$$typeof === v);
|
|
6489
|
-
}, de.typeOf =
|
|
6506
|
+
}, de.typeOf = U, de;
|
|
6490
6507
|
}
|
|
6491
6508
|
var fe = {};
|
|
6492
6509
|
/** @license React v16.13.1
|
|
@@ -6498,10 +6515,10 @@ var fe = {};
|
|
|
6498
6515
|
* LICENSE file in the root directory of this source tree.
|
|
6499
6516
|
*/
|
|
6500
6517
|
var ns;
|
|
6501
|
-
function
|
|
6518
|
+
function Do() {
|
|
6502
6519
|
return ns || (ns = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
6503
6520
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, k = t ? Symbol.for("react.responder") : 60118, C = t ? Symbol.for("react.scope") : 60119;
|
|
6504
|
-
function
|
|
6521
|
+
function U(T) {
|
|
6505
6522
|
return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
6506
6523
|
T === n || T === l || T === a || T === s || T === d || T === p || typeof T == "object" && T !== null && (T.$$typeof === b || T.$$typeof === m || T.$$typeof === i || T.$$typeof === o || T.$$typeof === f || T.$$typeof === S || T.$$typeof === k || T.$$typeof === C || T.$$typeof === v);
|
|
6507
6524
|
}
|
|
@@ -6537,7 +6554,7 @@ function Fo() {
|
|
|
6537
6554
|
}
|
|
6538
6555
|
}
|
|
6539
6556
|
}
|
|
6540
|
-
var x = c, Z = l, j = o,
|
|
6557
|
+
var x = c, Z = l, j = o, z = i, B = e, re = f, he = n, M = b, W = m, ne = r, ve = a, ue = s, be = d, we = !1;
|
|
6541
6558
|
function Ee(T) {
|
|
6542
6559
|
return we || (we = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(T) || I(T) === c;
|
|
6543
6560
|
}
|
|
@@ -6577,12 +6594,12 @@ function Fo() {
|
|
|
6577
6594
|
function Re(T) {
|
|
6578
6595
|
return I(T) === d;
|
|
6579
6596
|
}
|
|
6580
|
-
fe.AsyncMode = x, fe.ConcurrentMode = Z, fe.ContextConsumer = j, fe.ContextProvider =
|
|
6597
|
+
fe.AsyncMode = x, fe.ConcurrentMode = Z, fe.ContextConsumer = j, fe.ContextProvider = z, fe.Element = B, fe.ForwardRef = re, fe.Fragment = he, fe.Lazy = M, fe.Memo = W, fe.Portal = ne, fe.Profiler = ve, fe.StrictMode = ue, fe.Suspense = be, fe.isAsyncMode = Ee, fe.isConcurrentMode = _, fe.isContextConsumer = R, fe.isContextProvider = G, fe.isElement = q, fe.isForwardRef = K, fe.isFragment = se, fe.isLazy = Q, fe.isMemo = ee, fe.isPortal = ie, fe.isProfiler = oe, fe.isStrictMode = ae, fe.isSuspense = Re, fe.isValidElementType = U, fe.typeOf = I;
|
|
6581
6598
|
})()), fe;
|
|
6582
6599
|
}
|
|
6583
6600
|
var ss;
|
|
6584
6601
|
function dn() {
|
|
6585
|
-
return ss || (ss = 1, process.env.NODE_ENV === "production" ? Kt.exports =
|
|
6602
|
+
return ss || (ss = 1, process.env.NODE_ENV === "production" ? Kt.exports = Fo() : Kt.exports = Do()), Kt.exports;
|
|
6586
6603
|
}
|
|
6587
6604
|
/*
|
|
6588
6605
|
object-assign
|
|
@@ -6590,7 +6607,7 @@ object-assign
|
|
|
6590
6607
|
@license MIT
|
|
6591
6608
|
*/
|
|
6592
6609
|
var Or, as;
|
|
6593
|
-
function
|
|
6610
|
+
function Uo() {
|
|
6594
6611
|
if (as) return Or;
|
|
6595
6612
|
as = 1;
|
|
6596
6613
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
@@ -6647,7 +6664,7 @@ function ra() {
|
|
|
6647
6664
|
return os || (os = 1, Ar = Function.call.bind(Object.prototype.hasOwnProperty)), Ar;
|
|
6648
6665
|
}
|
|
6649
6666
|
var Tr, cs;
|
|
6650
|
-
function
|
|
6667
|
+
function zo() {
|
|
6651
6668
|
if (cs) return Tr;
|
|
6652
6669
|
cs = 1;
|
|
6653
6670
|
var t = function() {
|
|
@@ -6696,10 +6713,10 @@ function Uo() {
|
|
|
6696
6713
|
}, Tr = s, Tr;
|
|
6697
6714
|
}
|
|
6698
6715
|
var Pr, ls;
|
|
6699
|
-
function
|
|
6716
|
+
function Zo() {
|
|
6700
6717
|
if (ls) return Pr;
|
|
6701
6718
|
ls = 1;
|
|
6702
|
-
var t = dn(), e =
|
|
6719
|
+
var t = dn(), e = Uo(), r = /* @__PURE__ */ fn(), n = /* @__PURE__ */ ra(), s = /* @__PURE__ */ zo(), a = function() {
|
|
6703
6720
|
};
|
|
6704
6721
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
6705
6722
|
var c = "Warning: " + o;
|
|
@@ -6729,12 +6746,12 @@ function zo() {
|
|
|
6729
6746
|
string: k("string"),
|
|
6730
6747
|
symbol: k("symbol"),
|
|
6731
6748
|
any: C(),
|
|
6732
|
-
arrayOf:
|
|
6749
|
+
arrayOf: U,
|
|
6733
6750
|
element: I(),
|
|
6734
6751
|
elementType: x(),
|
|
6735
6752
|
instanceOf: Z,
|
|
6736
6753
|
node: re(),
|
|
6737
|
-
objectOf:
|
|
6754
|
+
objectOf: z,
|
|
6738
6755
|
oneOf: j,
|
|
6739
6756
|
oneOfType: B,
|
|
6740
6757
|
shape: M,
|
|
@@ -6787,7 +6804,7 @@ function zo() {
|
|
|
6787
6804
|
function C() {
|
|
6788
6805
|
return S(i);
|
|
6789
6806
|
}
|
|
6790
|
-
function
|
|
6807
|
+
function U(_) {
|
|
6791
6808
|
function R(G, q, K, se, Q) {
|
|
6792
6809
|
if (typeof _ != "function")
|
|
6793
6810
|
return new v("Property `" + Q + "` of component `" + K + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -6854,7 +6871,7 @@ function zo() {
|
|
|
6854
6871
|
}
|
|
6855
6872
|
return S(R);
|
|
6856
6873
|
}
|
|
6857
|
-
function
|
|
6874
|
+
function z(_) {
|
|
6858
6875
|
function R(G, q, K, se, Q) {
|
|
6859
6876
|
if (typeof _ != "function")
|
|
6860
6877
|
return new v("Property `" + Q + "` of component `" + K + "` has invalid PropType notation inside objectOf.");
|
|
@@ -7017,7 +7034,7 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
7017
7034
|
}, Pr;
|
|
7018
7035
|
}
|
|
7019
7036
|
var Ir, us;
|
|
7020
|
-
function
|
|
7037
|
+
function Bo() {
|
|
7021
7038
|
if (us) return Ir;
|
|
7022
7039
|
us = 1;
|
|
7023
7040
|
var t = /* @__PURE__ */ fn();
|
|
@@ -7065,18 +7082,18 @@ function Zo() {
|
|
|
7065
7082
|
}, Ir;
|
|
7066
7083
|
}
|
|
7067
7084
|
var ds;
|
|
7068
|
-
function
|
|
7085
|
+
function Wo() {
|
|
7069
7086
|
if (ds) return Yt.exports;
|
|
7070
7087
|
if (ds = 1, process.env.NODE_ENV !== "production") {
|
|
7071
7088
|
var t = dn(), e = !0;
|
|
7072
|
-
Yt.exports = /* @__PURE__ */
|
|
7089
|
+
Yt.exports = /* @__PURE__ */ Zo()(t.isElement, e);
|
|
7073
7090
|
} else
|
|
7074
|
-
Yt.exports = /* @__PURE__ */
|
|
7091
|
+
Yt.exports = /* @__PURE__ */ Bo()();
|
|
7075
7092
|
return Yt.exports;
|
|
7076
7093
|
}
|
|
7077
|
-
var
|
|
7078
|
-
const Me = /* @__PURE__ */ ta(
|
|
7079
|
-
var
|
|
7094
|
+
var qo = /* @__PURE__ */ Wo();
|
|
7095
|
+
const Me = /* @__PURE__ */ ta(qo);
|
|
7096
|
+
var Go = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
|
|
7080
7097
|
function Gr() {
|
|
7081
7098
|
return Gr = Object.assign ? Object.assign.bind() : function(t) {
|
|
7082
7099
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -7087,7 +7104,7 @@ function Gr() {
|
|
|
7087
7104
|
return t;
|
|
7088
7105
|
}, Gr.apply(this, arguments);
|
|
7089
7106
|
}
|
|
7090
|
-
function
|
|
7107
|
+
function Ho(t, e) {
|
|
7091
7108
|
if (t == null) return {};
|
|
7092
7109
|
var r = {}, n = Object.keys(t), s, a;
|
|
7093
7110
|
for (a = 0; a < n.length; a++)
|
|
@@ -7099,7 +7116,7 @@ function Jt(t) {
|
|
|
7099
7116
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7100
7117
|
return t;
|
|
7101
7118
|
}
|
|
7102
|
-
function
|
|
7119
|
+
function Yo(t, e) {
|
|
7103
7120
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Hr(t, e);
|
|
7104
7121
|
}
|
|
7105
7122
|
function Hr(t, e) {
|
|
@@ -7108,7 +7125,7 @@ function Hr(t, e) {
|
|
|
7108
7125
|
}, Hr(t, e);
|
|
7109
7126
|
}
|
|
7110
7127
|
var xr = /* @__PURE__ */ (function(t) {
|
|
7111
|
-
|
|
7128
|
+
Yo(e, t);
|
|
7112
7129
|
function e() {
|
|
7113
7130
|
var n;
|
|
7114
7131
|
return n = t.call(this) || this, n.handleExpired = n.handleExpired.bind(Jt(n)), n.handleErrored = n.handleErrored.bind(Jt(n)), n.handleChange = n.handleChange.bind(Jt(n)), n.handleRecaptchaRef = n.handleRecaptchaRef.bind(Jt(n)), n;
|
|
@@ -7172,7 +7189,7 @@ var xr = /* @__PURE__ */ (function(t) {
|
|
|
7172
7189
|
}, r.render = function() {
|
|
7173
7190
|
var s = this.props;
|
|
7174
7191
|
s.sitekey, s.onChange, s.theme, s.type, s.tabindex, s.onExpired, s.onErrored, s.size, s.stoken, s.grecaptcha, s.badge, s.hl, s.isolated;
|
|
7175
|
-
var a =
|
|
7192
|
+
var a = Ho(s, Go);
|
|
7176
7193
|
return /* @__PURE__ */ w.createElement("div", Gr({}, a, {
|
|
7177
7194
|
ref: this.handleRecaptchaRef
|
|
7178
7195
|
}));
|
|
@@ -7204,7 +7221,7 @@ xr.defaultProps = {
|
|
|
7204
7221
|
badge: "bottomright"
|
|
7205
7222
|
};
|
|
7206
7223
|
var Lr, fs;
|
|
7207
|
-
function
|
|
7224
|
+
function Ko() {
|
|
7208
7225
|
if (fs) return Lr;
|
|
7209
7226
|
fs = 1;
|
|
7210
7227
|
var t = dn(), e = {
|
|
@@ -7254,9 +7271,9 @@ function Yo() {
|
|
|
7254
7271
|
}
|
|
7255
7272
|
var C = c(v);
|
|
7256
7273
|
l && (C = C.concat(l(v)));
|
|
7257
|
-
for (var
|
|
7274
|
+
for (var U = i(b), I = i(v), x = 0; x < C.length; ++x) {
|
|
7258
7275
|
var Z = C[x];
|
|
7259
|
-
if (!r[Z] && !(S && S[Z]) && !(I && I[Z]) && !(
|
|
7276
|
+
if (!r[Z] && !(S && S[Z]) && !(I && I[Z]) && !(U && U[Z])) {
|
|
7260
7277
|
var j = f(v, Z);
|
|
7261
7278
|
try {
|
|
7262
7279
|
o(b, Z, j);
|
|
@@ -7269,8 +7286,8 @@ function Yo() {
|
|
|
7269
7286
|
}
|
|
7270
7287
|
return Lr = m, Lr;
|
|
7271
7288
|
}
|
|
7272
|
-
var
|
|
7273
|
-
const
|
|
7289
|
+
var Jo = Ko();
|
|
7290
|
+
const Xo = /* @__PURE__ */ ta(Jo);
|
|
7274
7291
|
function Yr() {
|
|
7275
7292
|
return Yr = Object.assign || function(t) {
|
|
7276
7293
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -7281,28 +7298,28 @@ function Yr() {
|
|
|
7281
7298
|
return t;
|
|
7282
7299
|
}, Yr.apply(this, arguments);
|
|
7283
7300
|
}
|
|
7284
|
-
function
|
|
7301
|
+
function Qo(t, e) {
|
|
7285
7302
|
if (t == null) return {};
|
|
7286
7303
|
var r = {}, n = Object.keys(t), s, a;
|
|
7287
7304
|
for (a = 0; a < n.length; a++)
|
|
7288
7305
|
s = n[a], !(e.indexOf(s) >= 0) && (r[s] = t[s]);
|
|
7289
7306
|
return r;
|
|
7290
7307
|
}
|
|
7291
|
-
function
|
|
7308
|
+
function ec(t, e) {
|
|
7292
7309
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
7293
7310
|
}
|
|
7294
|
-
var qe = {},
|
|
7295
|
-
function
|
|
7311
|
+
var qe = {}, tc = 0;
|
|
7312
|
+
function rc(t, e) {
|
|
7296
7313
|
return e = e || {}, function(n) {
|
|
7297
7314
|
var s = n.displayName || n.name || "Component", a = /* @__PURE__ */ (function(o) {
|
|
7298
|
-
|
|
7315
|
+
ec(c, o);
|
|
7299
7316
|
function c(f, d) {
|
|
7300
7317
|
var p;
|
|
7301
7318
|
return p = o.call(this, f, d) || this, p.state = {}, p.__scriptURL = "", p;
|
|
7302
7319
|
}
|
|
7303
7320
|
var l = c.prototype;
|
|
7304
7321
|
return l.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
7305
|
-
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" +
|
|
7322
|
+
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + tc++), this.__scriptLoaderID;
|
|
7306
7323
|
}, l.setupScriptURL = function() {
|
|
7307
7324
|
return this.__scriptURL = typeof t == "function" ? t() : t, this.__scriptURL;
|
|
7308
7325
|
}, l.asyncScriptLoaderHandleLoad = function(d) {
|
|
@@ -7333,36 +7350,36 @@ function tc(t, e) {
|
|
|
7333
7350
|
};
|
|
7334
7351
|
return;
|
|
7335
7352
|
}
|
|
7336
|
-
var
|
|
7337
|
-
|
|
7353
|
+
var U = {};
|
|
7354
|
+
U[m] = function(j) {
|
|
7338
7355
|
return d.asyncScriptLoaderHandleLoad(j);
|
|
7339
7356
|
}, qe[p] = {
|
|
7340
7357
|
loaded: !1,
|
|
7341
|
-
observers:
|
|
7358
|
+
observers: U
|
|
7342
7359
|
};
|
|
7343
7360
|
var I = document.createElement("script");
|
|
7344
7361
|
I.src = p, I.async = !0;
|
|
7345
7362
|
for (var x in e.attributes)
|
|
7346
7363
|
I.setAttribute(x, e.attributes[x]);
|
|
7347
7364
|
k && (I.id = k);
|
|
7348
|
-
var Z = function(
|
|
7365
|
+
var Z = function(z) {
|
|
7349
7366
|
if (qe[p]) {
|
|
7350
7367
|
var B = qe[p], re = B.observers;
|
|
7351
7368
|
for (var he in re)
|
|
7352
|
-
|
|
7369
|
+
z(re[he]) && delete re[he];
|
|
7353
7370
|
}
|
|
7354
7371
|
};
|
|
7355
7372
|
S && typeof window < "u" && (window[S] = function() {
|
|
7356
7373
|
return d.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
7357
7374
|
}), I.onload = function() {
|
|
7358
7375
|
var j = qe[p];
|
|
7359
|
-
j && (j.loaded = !0, Z(function(
|
|
7360
|
-
return S ? !1 : (
|
|
7376
|
+
j && (j.loaded = !0, Z(function(z) {
|
|
7377
|
+
return S ? !1 : (z(j), !0);
|
|
7361
7378
|
}));
|
|
7362
7379
|
}, I.onerror = function() {
|
|
7363
7380
|
var j = qe[p];
|
|
7364
|
-
j && (j.errored = !0, Z(function(
|
|
7365
|
-
return
|
|
7381
|
+
j && (j.errored = !0, Z(function(z) {
|
|
7382
|
+
return z(j), !0;
|
|
7366
7383
|
}));
|
|
7367
7384
|
}, document.body.appendChild(I);
|
|
7368
7385
|
}, l.componentWillUnmount = function() {
|
|
@@ -7375,7 +7392,7 @@ function tc(t, e) {
|
|
|
7375
7392
|
}, l.render = function() {
|
|
7376
7393
|
var d = e.globalName, p = this.props;
|
|
7377
7394
|
p.asyncScriptOnLoad;
|
|
7378
|
-
var m = p.forwardedRef, b =
|
|
7395
|
+
var m = p.forwardedRef, b = Qo(p, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
7379
7396
|
return d && typeof window < "u" && (b[d] = typeof window[d] < "u" ? window[d] : void 0), b.ref = m, Ut(n, b);
|
|
7380
7397
|
}, c;
|
|
7381
7398
|
})(Ga), i = yr(function(o, c) {
|
|
@@ -7385,20 +7402,20 @@ function tc(t, e) {
|
|
|
7385
7402
|
});
|
|
7386
7403
|
return i.displayName = "AsyncScriptLoader(" + s + ")", i.propTypes = {
|
|
7387
7404
|
asyncScriptOnLoad: Me.func
|
|
7388
|
-
},
|
|
7405
|
+
}, Xo(i, n);
|
|
7389
7406
|
};
|
|
7390
7407
|
}
|
|
7391
|
-
var Kr = "onloadcallback",
|
|
7408
|
+
var Kr = "onloadcallback", nc = "grecaptcha";
|
|
7392
7409
|
function Jr() {
|
|
7393
7410
|
return typeof window < "u" && window.recaptchaOptions || {};
|
|
7394
7411
|
}
|
|
7395
|
-
function
|
|
7412
|
+
function sc() {
|
|
7396
7413
|
var t = Jr(), e = t.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
|
|
7397
7414
|
return t.enterprise ? "https://" + e + "/recaptcha/enterprise.js?onload=" + Kr + "&render=explicit" : "https://" + e + "/recaptcha/api.js?onload=" + Kr + "&render=explicit";
|
|
7398
7415
|
}
|
|
7399
|
-
const
|
|
7416
|
+
const ac = rc(sc, {
|
|
7400
7417
|
callbackName: Kr,
|
|
7401
|
-
globalName:
|
|
7418
|
+
globalName: nc,
|
|
7402
7419
|
attributes: Jr().nonce ? {
|
|
7403
7420
|
nonce: Jr().nonce
|
|
7404
7421
|
} : {}
|
|
@@ -7412,14 +7429,14 @@ function Xr(t, e) {
|
|
|
7412
7429
|
return r.__proto__ = n, r;
|
|
7413
7430
|
}, Xr(t, e);
|
|
7414
7431
|
}
|
|
7415
|
-
function
|
|
7432
|
+
function ic(t, e) {
|
|
7416
7433
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Xr(t, e);
|
|
7417
7434
|
}
|
|
7418
|
-
var
|
|
7435
|
+
var oc = Object.defineProperty, cc = Object.defineProperties, lc = Object.getOwnPropertyDescriptors, pr = Object.getOwnPropertySymbols, na = Object.prototype.hasOwnProperty, sa = Object.prototype.propertyIsEnumerable, Qr = (t, e, r) => e in t ? oc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Fe = (t, e) => {
|
|
7419
7436
|
for (var r in e || (e = {})) na.call(e, r) && Qr(t, r, e[r]);
|
|
7420
7437
|
if (pr) for (var r of pr(e)) sa.call(e, r) && Qr(t, r, e[r]);
|
|
7421
7438
|
return t;
|
|
7422
|
-
}, aa = (t, e) =>
|
|
7439
|
+
}, aa = (t, e) => cc(t, lc(e)), uc = (t, e) => {
|
|
7423
7440
|
var r = {};
|
|
7424
7441
|
for (var n in t) na.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
7425
7442
|
if (t != null && pr) for (var n of pr(t)) e.indexOf(n) < 0 && sa.call(t, n) && (r[n] = t[n]);
|
|
@@ -7439,8 +7456,8 @@ var ic = Object.defineProperty, oc = Object.defineProperties, cc = Object.getOwn
|
|
|
7439
7456
|
}
|
|
7440
7457
|
}, o = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
|
|
7441
7458
|
o((r = r.apply(t, e)).next());
|
|
7442
|
-
}),
|
|
7443
|
-
function
|
|
7459
|
+
}), dc = "hCaptcha-script", rr = "hCaptchaOnLoad", hs = "script-error", ot = "@hCaptcha/loader";
|
|
7460
|
+
function fc(t) {
|
|
7444
7461
|
return Object.entries(t).filter(([, e]) => e || e === !1).map(([e, r]) => `${encodeURIComponent(e)}=${encodeURIComponent(String(r))}`).join("&");
|
|
7445
7462
|
}
|
|
7446
7463
|
function ia(t) {
|
|
@@ -7450,25 +7467,25 @@ function ia(t) {
|
|
|
7450
7467
|
function oa(t) {
|
|
7451
7468
|
return t || document.head;
|
|
7452
7469
|
}
|
|
7453
|
-
function
|
|
7470
|
+
function hc(t) {
|
|
7454
7471
|
var e;
|
|
7455
|
-
t.setTag("source", ot), t.setTag("url", document.URL), t.setContext("os", { UA: navigator.userAgent }), t.setContext("browser", Fe({},
|
|
7472
|
+
t.setTag("source", ot), t.setTag("url", document.URL), t.setContext("os", { UA: navigator.userAgent }), t.setContext("browser", Fe({}, pc())), t.setContext("device", aa(Fe({}, yc()), { screen_width_pixels: screen.width, screen_height_pixels: screen.height, language: navigator.language, orientation: ((e = screen.orientation) == null ? void 0 : e.type) || "Unknown", processor_count: navigator.hardwareConcurrency, platform: navigator.platform }));
|
|
7456
7473
|
}
|
|
7457
|
-
function
|
|
7474
|
+
function pc() {
|
|
7458
7475
|
var t, e, r, n, s, a;
|
|
7459
7476
|
let i = navigator.userAgent, o, c;
|
|
7460
7477
|
return i.indexOf("Firefox") !== -1 ? (o = "Firefox", c = (t = i.match(/Firefox\/([\d.]+)/)) == null ? void 0 : t[1]) : i.indexOf("Edg") !== -1 ? (o = "Microsoft Edge", c = (e = i.match(/Edg\/([\d.]+)/)) == null ? void 0 : e[1]) : i.indexOf("Chrome") !== -1 && i.indexOf("Safari") !== -1 ? (o = "Chrome", c = (r = i.match(/Chrome\/([\d.]+)/)) == null ? void 0 : r[1]) : i.indexOf("Safari") !== -1 && i.indexOf("Chrome") === -1 ? (o = "Safari", c = (n = i.match(/Version\/([\d.]+)/)) == null ? void 0 : n[1]) : i.indexOf("Opera") !== -1 || i.indexOf("OPR") !== -1 ? (o = "Opera", c = (s = i.match(/(Opera|OPR)\/([\d.]+)/)) == null ? void 0 : s[2]) : i.indexOf("MSIE") !== -1 || i.indexOf("Trident") !== -1 ? (o = "Internet Explorer", c = (a = i.match(/(MSIE |rv:)([\d.]+)/)) == null ? void 0 : a[2]) : (o = "Unknown", c = "Unknown"), { name: o, version: c };
|
|
7461
7478
|
}
|
|
7462
|
-
function
|
|
7479
|
+
function mc(t) {
|
|
7463
7480
|
return new Promise((e) => setTimeout(e, t));
|
|
7464
7481
|
}
|
|
7465
|
-
function
|
|
7482
|
+
function yc() {
|
|
7466
7483
|
let t = navigator.userAgent, e;
|
|
7467
7484
|
t.indexOf("Win") !== -1 ? e = "Windows" : t.indexOf("Mac") !== -1 ? e = "Mac" : t.indexOf("Linux") !== -1 ? e = "Linux" : t.indexOf("Android") !== -1 ? e = "Android" : t.indexOf("like Mac") !== -1 || t.indexOf("iPhone") !== -1 || t.indexOf("iPad") !== -1 ? e = "iOS" : e = "Unknown";
|
|
7468
7485
|
let r;
|
|
7469
7486
|
return /Mobile|iPhone|iPod|Android/i.test(t) ? r = "Mobile" : /Tablet|iPad/i.test(t) ? r = "Tablet" : r = "Desktop", { model: e, family: e, device: r };
|
|
7470
7487
|
}
|
|
7471
|
-
var
|
|
7488
|
+
var gc = class ca {
|
|
7472
7489
|
constructor(e) {
|
|
7473
7490
|
Oe(this, "_parent"), Oe(this, "breadcrumbs", []), Oe(this, "context", {}), Oe(this, "extra", {}), Oe(this, "tags", {}), Oe(this, "request"), Oe(this, "user"), this._parent = e;
|
|
7474
7491
|
}
|
|
@@ -7525,27 +7542,27 @@ var yc = class ca {
|
|
|
7525
7542
|
clear() {
|
|
7526
7543
|
this.breadcrumbs = [], this.context = {}, this.tags = {}, this.user = void 0;
|
|
7527
7544
|
}
|
|
7528
|
-
},
|
|
7529
|
-
function
|
|
7545
|
+
}, vc = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, bc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, xc = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, _c = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/, Xt = "?", ps = "An unknown error occurred", wc = "0.0.4";
|
|
7546
|
+
function kc(t) {
|
|
7530
7547
|
for (let e = 0; e < t.length; e++) t[e] = Math.floor(Math.random() * 256);
|
|
7531
7548
|
return t;
|
|
7532
7549
|
}
|
|
7533
7550
|
function Te(t) {
|
|
7534
7551
|
return (t + 256).toString(16).substring(1);
|
|
7535
7552
|
}
|
|
7536
|
-
function
|
|
7537
|
-
let t =
|
|
7553
|
+
function Sc() {
|
|
7554
|
+
let t = kc(new Array(16));
|
|
7538
7555
|
return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, Te(t[0]) + Te(t[1]) + Te(t[2]) + Te(t[3]) + "-" + Te(t[4]) + Te(t[5]) + "-" + Te(t[6]) + Te(t[7]) + "-" + Te(t[8]) + Te(t[9]) + "-" + Te(t[10]) + Te(t[11]) + Te(t[12]) + Te(t[13]) + Te(t[14]) + Te(t[15]);
|
|
7539
7556
|
}
|
|
7540
|
-
var
|
|
7541
|
-
function
|
|
7557
|
+
var Cc = [[vc, "chrome"], [xc, "winjs"], [bc, "gecko"]];
|
|
7558
|
+
function Ec(t) {
|
|
7542
7559
|
var e, r, n, s;
|
|
7543
7560
|
if (!t.stack) return null;
|
|
7544
7561
|
let a = [], i = (n = (r = (e = t.stack).split) == null ? void 0 : r.call(e, `
|
|
7545
7562
|
`)) != null ? n : [];
|
|
7546
7563
|
for (let o = 0; o < i.length; ++o) {
|
|
7547
7564
|
let c = null, l = null, f = null;
|
|
7548
|
-
for (let [d, p] of
|
|
7565
|
+
for (let [d, p] of Cc) if (l = d.exec(i[o]), l) {
|
|
7549
7566
|
f = p;
|
|
7550
7567
|
break;
|
|
7551
7568
|
}
|
|
@@ -7559,38 +7576,38 @@ function Cc(t) {
|
|
|
7559
7576
|
}
|
|
7560
7577
|
return a.length ? a.reverse() : null;
|
|
7561
7578
|
}
|
|
7562
|
-
function
|
|
7563
|
-
let e =
|
|
7579
|
+
function Rc(t) {
|
|
7580
|
+
let e = Ec(t);
|
|
7564
7581
|
return { type: t.name, value: t.message, stacktrace: { frames: e ?? [] } };
|
|
7565
7582
|
}
|
|
7566
|
-
function
|
|
7567
|
-
let e =
|
|
7583
|
+
function Oc(t) {
|
|
7584
|
+
let e = _c.exec(t), r = e ? e.slice(1) : [];
|
|
7568
7585
|
if (r.length !== 6) throw new Error("Invalid DSN");
|
|
7569
7586
|
let n = r[5].split("/"), s = n.slice(0, -1).join("/");
|
|
7570
7587
|
return r[0] + "://" + r[3] + (r[4] ? ":" + r[4] : "") + (s ? "/" + s : "") + "/api/" + n.pop() + "/envelope/?sentry_version=7&sentry_key=" + r[1] + (r[2] ? "&sentry_secret=" + r[2] : "");
|
|
7571
7588
|
}
|
|
7572
|
-
function
|
|
7589
|
+
function Nc(t, e, r) {
|
|
7573
7590
|
var n, s;
|
|
7574
|
-
let a = Fe({ event_id:
|
|
7591
|
+
let a = Fe({ event_id: Sc().replaceAll("-", ""), platform: "javascript", sdk: { name: "@hcaptcha/sentry", version: wc }, environment: e, release: r, timestamp: Date.now() / 1e3 }, t.scope.toBody());
|
|
7575
7592
|
if (t.type === "exception") {
|
|
7576
7593
|
a.message = (s = (n = t.error) == null ? void 0 : n.message) != null ? s : "Unknown error", a.fingerprint = [a.message];
|
|
7577
7594
|
let i = [], o = t.error;
|
|
7578
|
-
for (let c = 0; c < 5 && o && (i.push(
|
|
7595
|
+
for (let c = 0; c < 5 && o && (i.push(Rc(o)), !(!o.cause || !(o.cause instanceof Error))); c++) o = o.cause;
|
|
7579
7596
|
a.exception = { values: i.reverse() };
|
|
7580
7597
|
}
|
|
7581
7598
|
return t.type === "message" && (a.message = t.message, a.level = t.level), a;
|
|
7582
7599
|
}
|
|
7583
|
-
function
|
|
7600
|
+
function Ac(t) {
|
|
7584
7601
|
if (t instanceof Error) return t;
|
|
7585
7602
|
if (typeof t == "string") return new Error(t);
|
|
7586
7603
|
if (typeof t == "object" && t !== null && !Array.isArray(t)) {
|
|
7587
|
-
let r = t, { message: n } = r, s =
|
|
7604
|
+
let r = t, { message: n } = r, s = uc(r, ["message"]), a = new Error(typeof n == "string" ? n : ps);
|
|
7588
7605
|
return Object.assign(a, s);
|
|
7589
7606
|
}
|
|
7590
7607
|
let e = new Error(ps);
|
|
7591
7608
|
return Object.assign(e, { cause: t });
|
|
7592
7609
|
}
|
|
7593
|
-
function
|
|
7610
|
+
function Tc(t, e, r) {
|
|
7594
7611
|
return At(this, null, function* () {
|
|
7595
7612
|
var n, s;
|
|
7596
7613
|
try {
|
|
@@ -7626,7 +7643,7 @@ var je, en = (je = class {
|
|
|
7626
7643
|
constructor(t) {
|
|
7627
7644
|
Oe(this, "apiURL"), Oe(this, "dsn"), Oe(this, "environment"), Oe(this, "release"), Oe(this, "sampleRate"), Oe(this, "debug"), Oe(this, "_scope"), Oe(this, "shouldBuffer", !1), Oe(this, "bufferlimit", 20), Oe(this, "buffer", []);
|
|
7628
7645
|
var e, r, n, s, a;
|
|
7629
|
-
this.environment = t.environment, this.release = t.release, this.sampleRate = (e = t.sampleRate) != null ? e : 1, this.debug = (r = t.debug) != null ? r : !1, this._scope = (n = t.scope) != null ? n : new
|
|
7646
|
+
this.environment = t.environment, this.release = t.release, this.sampleRate = (e = t.sampleRate) != null ? e : 1, this.debug = (r = t.debug) != null ? r : !1, this._scope = (n = t.scope) != null ? n : new gc(), this.apiURL = Oc(t.dsn), this.dsn = t.dsn, this.shouldBuffer = (s = t.buffer) != null ? s : !1, this.bufferlimit = (a = t.bufferLimit) != null ? a : 20;
|
|
7630
7647
|
}
|
|
7631
7648
|
static init(t) {
|
|
7632
7649
|
je._instance || (je._instance = new je(t));
|
|
@@ -7652,7 +7669,7 @@ var je, en = (je = class {
|
|
|
7652
7669
|
je.instance.withScope(t);
|
|
7653
7670
|
}
|
|
7654
7671
|
captureException(t, e) {
|
|
7655
|
-
this.captureEvent({ type: "exception", level: "error", error:
|
|
7672
|
+
this.captureEvent({ type: "exception", level: "error", error: Ac(t), scope: e ?? this._scope });
|
|
7656
7673
|
}
|
|
7657
7674
|
static captureException(t, e) {
|
|
7658
7675
|
je.instance.captureException(t, e);
|
|
@@ -7677,9 +7694,9 @@ var je, en = (je = class {
|
|
|
7677
7694
|
return At(this, null, function* () {
|
|
7678
7695
|
try {
|
|
7679
7696
|
this.log("Sending sentry event", t);
|
|
7680
|
-
let r =
|
|
7697
|
+
let r = Nc(t, this.environment, this.release), n = { event_id: r.event_id, dsn: this.dsn }, s = { type: "event" }, a = JSON.stringify(n) + `
|
|
7681
7698
|
` + JSON.stringify(s) + `
|
|
7682
|
-
` + JSON.stringify(r), i = yield
|
|
7699
|
+
` + JSON.stringify(r), i = yield Tc(this.apiURL, { method: "POST", headers: { "Content-Type": "application/x-sentry-envelope" }, body: a }, e);
|
|
7683
7700
|
this.log("Sentry response", i.status), i.status !== 200 && (console.log(i.body), console.error("Failed to send event to Sentry", i));
|
|
7684
7701
|
} catch (r) {
|
|
7685
7702
|
console.error("Failed to send event", r);
|
|
@@ -7703,12 +7720,12 @@ var je, en = (je = class {
|
|
|
7703
7720
|
static reset() {
|
|
7704
7721
|
je._instance = void 0;
|
|
7705
7722
|
}
|
|
7706
|
-
}, Oe(je, "_instance"), je),
|
|
7707
|
-
function
|
|
7723
|
+
}, Oe(je, "_instance"), je), Pc = "https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6", Ic = "2.3.0", Lc = "production";
|
|
7724
|
+
function jc(t = !0) {
|
|
7708
7725
|
if (!t) return ms();
|
|
7709
|
-
en.init({ dsn:
|
|
7726
|
+
en.init({ dsn: Pc, release: Ic, environment: Lc });
|
|
7710
7727
|
let e = en.scope;
|
|
7711
|
-
return
|
|
7728
|
+
return hc(e), ms(e);
|
|
7712
7729
|
}
|
|
7713
7730
|
function ms(t = null) {
|
|
7714
7731
|
return { addBreadcrumb: (e) => {
|
|
@@ -7719,11 +7736,11 @@ function ms(t = null) {
|
|
|
7719
7736
|
t && en.captureException(e, t);
|
|
7720
7737
|
} };
|
|
7721
7738
|
}
|
|
7722
|
-
function
|
|
7739
|
+
function Mc({ scriptLocation: t, query: e, loadAsync: r = !0, crossOrigin: n = "anonymous", apihost: s = "https://js.hcaptcha.com", cleanup: a = !1, secureApi: i = !1, scriptSource: o = "" } = {}, c) {
|
|
7723
7740
|
let l = oa(t), f = ia(l);
|
|
7724
7741
|
return new Promise((d, p) => {
|
|
7725
7742
|
let m = f.document.createElement("script");
|
|
7726
|
-
m.id =
|
|
7743
|
+
m.id = dc, o ? m.src = `${o}?onload=${rr}` : i ? m.src = `${s}/1/secure-api.js?onload=${rr}` : m.src = `${s}/1/api.js?onload=${rr}`, m.crossOrigin = n, m.async = r;
|
|
7727
7744
|
let b = (v, S) => {
|
|
7728
7745
|
try {
|
|
7729
7746
|
!i && a && l.removeChild(m), S(v);
|
|
@@ -7737,7 +7754,7 @@ function jc({ scriptLocation: t, query: e, loadAsync: r = !0, crossOrigin: n = "
|
|
|
7737
7754
|
});
|
|
7738
7755
|
}
|
|
7739
7756
|
var Qt = [];
|
|
7740
|
-
function
|
|
7757
|
+
function Vc(t = { cleanup: !1 }, e) {
|
|
7741
7758
|
try {
|
|
7742
7759
|
e.addBreadcrumb({ category: ot, message: "hCaptcha loader params", data: t });
|
|
7743
7760
|
let r = oa(t.scriptLocation), n = ia(r), s = Qt.find(({ scope: i }) => i === n.window);
|
|
@@ -7747,8 +7764,8 @@ function Mc(t = { cleanup: !1 }, e) {
|
|
|
7747
7764
|
n.window[rr] = () => {
|
|
7748
7765
|
e.addBreadcrumb({ category: ot, message: "hCaptcha script called onload function" }), i(n.window.hcaptcha);
|
|
7749
7766
|
};
|
|
7750
|
-
let c =
|
|
7751
|
-
yield
|
|
7767
|
+
let c = fc({ custom: t.custom, render: t.render, sentry: t.sentry, assethost: t.assethost, imghost: t.imghost, reportapi: t.reportapi, endpoint: t.endpoint, host: t.host, recaptchacompat: t.recaptchacompat, hl: t.hl, uj: t.uj });
|
|
7768
|
+
yield Mc(Fe({ query: c }, t), (l) => {
|
|
7752
7769
|
e.captureRequest({ url: l, method: "GET" });
|
|
7753
7770
|
}), e.addBreadcrumb({ category: ot, message: "hCaptcha loaded", data: s });
|
|
7754
7771
|
} catch {
|
|
@@ -7767,15 +7784,15 @@ function la(t, e, r = 0) {
|
|
|
7767
7784
|
var n, s;
|
|
7768
7785
|
let a = (n = t.maxRetries) != null ? n : 2, i = (s = t.retryDelay) != null ? s : 1e3, o = r < a ? "Retry loading hCaptcha Api" : "Exceeded maximum retries";
|
|
7769
7786
|
try {
|
|
7770
|
-
return yield
|
|
7787
|
+
return yield Vc(t, e);
|
|
7771
7788
|
} catch (c) {
|
|
7772
|
-
return e.addBreadcrumb({ category: ot, message: o }), r >= a ? (e.captureException(c), Promise.reject(c)) : (e.addBreadcrumb({ category: ot, message: `Waiting ${i}ms before retry attempt ${r + 1}` }), yield
|
|
7789
|
+
return e.addBreadcrumb({ category: ot, message: o }), r >= a ? (e.captureException(c), Promise.reject(c)) : (e.addBreadcrumb({ category: ot, message: `Waiting ${i}ms before retry attempt ${r + 1}` }), yield mc(i), r += 1, la(t, e, r));
|
|
7773
7790
|
}
|
|
7774
7791
|
});
|
|
7775
7792
|
}
|
|
7776
|
-
function
|
|
7793
|
+
function $c() {
|
|
7777
7794
|
return At(this, arguments, function* (t = {}) {
|
|
7778
|
-
let e =
|
|
7795
|
+
let e = jc(t.sentry);
|
|
7779
7796
|
return yield la(t, e);
|
|
7780
7797
|
});
|
|
7781
7798
|
}
|
|
@@ -7789,8 +7806,8 @@ function ys(t) {
|
|
|
7789
7806
|
function gs(t) {
|
|
7790
7807
|
return t || document.head;
|
|
7791
7808
|
}
|
|
7792
|
-
var
|
|
7793
|
-
|
|
7809
|
+
var Fc = /* @__PURE__ */ (function(t) {
|
|
7810
|
+
ic(e, t);
|
|
7794
7811
|
function e(n) {
|
|
7795
7812
|
var s;
|
|
7796
7813
|
return s = t.call(this, n) || this, s._hcaptcha = void 0, s.renderCaptcha = s.renderCaptcha.bind(ze(s)), s.resetCaptcha = s.resetCaptcha.bind(ze(s)), s.removeCaptcha = s.removeCaptcha.bind(ze(s)), s.isReady = s.isReady.bind(ze(s)), s._onReady = null, s.loadCaptcha = s.loadCaptcha.bind(ze(s)), s.handleOnLoad = s.handleOnLoad.bind(ze(s)), s.handleSubmit = s.handleSubmit.bind(ze(s)), s.handleExpire = s.handleExpire.bind(ze(s)), s.handleError = s.handleError.bind(ze(s)), s.handleOpen = s.handleOpen.bind(ze(s)), s.handleClose = s.handleClose.bind(ze(s)), s.handleChallengeExpired = s.handleChallengeExpired.bind(ze(s)), s.ref = /* @__PURE__ */ w.createRef(), s.apiScriptRequested = !1, s.sentryHub = null, s.captchaId = "", s._pendingExecute = null, s.state = {
|
|
@@ -7827,7 +7844,7 @@ var $c = /* @__PURE__ */ (function(t) {
|
|
|
7827
7844
|
});
|
|
7828
7845
|
}, r.loadCaptcha = function() {
|
|
7829
7846
|
if (!this.apiScriptRequested) {
|
|
7830
|
-
var s = this.props, a = s.apihost, i = s.assethost, o = s.endpoint, c = s.host, l = s.imghost, f = s.languageOverride, d = s.reCaptchaCompat, p = s.reportapi, m = s.sentry, b = s.custom, v = s.loadAsync, S = s.scriptLocation, k = s.scriptSource, C = s.secureApi,
|
|
7847
|
+
var s = this.props, a = s.apihost, i = s.assethost, o = s.endpoint, c = s.host, l = s.imghost, f = s.languageOverride, d = s.reCaptchaCompat, p = s.reportapi, m = s.sentry, b = s.custom, v = s.loadAsync, S = s.scriptLocation, k = s.scriptSource, C = s.secureApi, U = s.cleanup, I = U === void 0 ? !0 : U, x = s.userJourneys, Z = {
|
|
7831
7848
|
render: "explicit",
|
|
7832
7849
|
apihost: a,
|
|
7833
7850
|
assethost: i,
|
|
@@ -7846,7 +7863,7 @@ var $c = /* @__PURE__ */ (function(t) {
|
|
|
7846
7863
|
cleanup: I,
|
|
7847
7864
|
uj: x !== void 0 ? x : !1
|
|
7848
7865
|
};
|
|
7849
|
-
|
|
7866
|
+
$c(Z).then(this.handleOnLoad, this.handleError).catch(this.handleError), this.apiScriptRequested = !0;
|
|
7850
7867
|
}
|
|
7851
7868
|
}, r.renderCaptcha = function(s) {
|
|
7852
7869
|
var a = this, i = this.props.onReady, o = this.state.isApiReady, c = this.captchaId;
|
|
@@ -7987,7 +8004,7 @@ const Wt = yr(
|
|
|
7987
8004
|
(i = s.current) == null || i.reset(), (o = a.current) == null || o.resetCaptcha();
|
|
7988
8005
|
}
|
|
7989
8006
|
})), !t.enabled || !t.siteKey ? null : t.provider === "hcaptcha" ? /* @__PURE__ */ h(
|
|
7990
|
-
|
|
8007
|
+
Fc,
|
|
7991
8008
|
{
|
|
7992
8009
|
ref: a,
|
|
7993
8010
|
sitekey: t.siteKey,
|
|
@@ -7995,7 +8012,7 @@ const Wt = yr(
|
|
|
7995
8012
|
onExpire: r
|
|
7996
8013
|
}
|
|
7997
8014
|
) : t.version !== "v3" ? /* @__PURE__ */ h(
|
|
7998
|
-
|
|
8015
|
+
ac,
|
|
7999
8016
|
{
|
|
8000
8017
|
ref: s,
|
|
8001
8018
|
sitekey: t.siteKey,
|
|
@@ -8030,19 +8047,19 @@ function hn(...t) {
|
|
|
8030
8047
|
function pn(...t) {
|
|
8031
8048
|
return w.useCallback(hn(...t), t);
|
|
8032
8049
|
}
|
|
8033
|
-
var
|
|
8034
|
-
function
|
|
8050
|
+
var Dc = Symbol.for("react.lazy"), mr = w[" use ".trim().toString()];
|
|
8051
|
+
function Uc(t) {
|
|
8035
8052
|
return typeof t == "object" && t !== null && "then" in t;
|
|
8036
8053
|
}
|
|
8037
8054
|
function ua(t) {
|
|
8038
|
-
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof ===
|
|
8055
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Dc && "_payload" in t && Uc(t._payload);
|
|
8039
8056
|
}
|
|
8040
8057
|
// @__NO_SIDE_EFFECTS__
|
|
8041
8058
|
function da(t) {
|
|
8042
|
-
const e = /* @__PURE__ */
|
|
8059
|
+
const e = /* @__PURE__ */ Zc(t), r = w.forwardRef((n, s) => {
|
|
8043
8060
|
let { children: a, ...i } = n;
|
|
8044
8061
|
ua(a) && typeof mr == "function" && (a = mr(a._payload));
|
|
8045
|
-
const o = w.Children.toArray(a), c = o.find(
|
|
8062
|
+
const o = w.Children.toArray(a), c = o.find(Wc);
|
|
8046
8063
|
if (c) {
|
|
8047
8064
|
const l = c.props.children, f = o.map((d) => d === c ? w.Children.count(l) > 1 ? w.Children.only(null) : w.isValidElement(l) ? l.props.children : null : d);
|
|
8048
8065
|
return /* @__PURE__ */ h(e, { ...i, ref: s, children: w.isValidElement(l) ? w.cloneElement(l, void 0, f) : null });
|
|
@@ -8051,24 +8068,24 @@ function da(t) {
|
|
|
8051
8068
|
});
|
|
8052
8069
|
return r.displayName = `${t}.Slot`, r;
|
|
8053
8070
|
}
|
|
8054
|
-
var
|
|
8071
|
+
var zc = /* @__PURE__ */ da("Slot");
|
|
8055
8072
|
// @__NO_SIDE_EFFECTS__
|
|
8056
|
-
function
|
|
8073
|
+
function Zc(t) {
|
|
8057
8074
|
const e = w.forwardRef((r, n) => {
|
|
8058
8075
|
let { children: s, ...a } = r;
|
|
8059
8076
|
if (ua(s) && typeof mr == "function" && (s = mr(s._payload)), w.isValidElement(s)) {
|
|
8060
|
-
const i =
|
|
8077
|
+
const i = Gc(s), o = qc(a, s.props);
|
|
8061
8078
|
return s.type !== w.Fragment && (o.ref = n ? hn(n, i) : i), w.cloneElement(s, o);
|
|
8062
8079
|
}
|
|
8063
8080
|
return w.Children.count(s) > 1 ? w.Children.only(null) : null;
|
|
8064
8081
|
});
|
|
8065
8082
|
return e.displayName = `${t}.SlotClone`, e;
|
|
8066
8083
|
}
|
|
8067
|
-
var
|
|
8068
|
-
function
|
|
8069
|
-
return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
8084
|
+
var Bc = Symbol("radix.slottable");
|
|
8085
|
+
function Wc(t) {
|
|
8086
|
+
return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Bc;
|
|
8070
8087
|
}
|
|
8071
|
-
function
|
|
8088
|
+
function qc(t, e) {
|
|
8072
8089
|
const r = { ...e };
|
|
8073
8090
|
for (const n in e) {
|
|
8074
8091
|
const s = t[n], a = e[n];
|
|
@@ -8079,7 +8096,7 @@ function Wc(t, e) {
|
|
|
8079
8096
|
}
|
|
8080
8097
|
return { ...t, ...r };
|
|
8081
8098
|
}
|
|
8082
|
-
function
|
|
8099
|
+
function Gc(t) {
|
|
8083
8100
|
var n, s;
|
|
8084
8101
|
let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
8085
8102
|
return r ? t.ref : (e = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
|
|
@@ -8113,7 +8130,7 @@ const bs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xs = Ys, f
|
|
|
8113
8130
|
] : l;
|
|
8114
8131
|
}, []);
|
|
8115
8132
|
return xs(t, i, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
8116
|
-
},
|
|
8133
|
+
}, Hc = fa(
|
|
8117
8134
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
8118
8135
|
{
|
|
8119
8136
|
variants: {
|
|
@@ -8139,9 +8156,9 @@ const bs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xs = Ys, f
|
|
|
8139
8156
|
}
|
|
8140
8157
|
), pt = w.forwardRef(
|
|
8141
8158
|
({ className: t, variant: e, size: r, asChild: n = !1, ...s }, a) => /* @__PURE__ */ h(
|
|
8142
|
-
n ?
|
|
8159
|
+
n ? zc : "button",
|
|
8143
8160
|
{
|
|
8144
|
-
className: me(
|
|
8161
|
+
className: me(Hc({ variant: e, size: r, className: t })),
|
|
8145
8162
|
ref: a,
|
|
8146
8163
|
...s
|
|
8147
8164
|
}
|
|
@@ -8163,7 +8180,7 @@ const He = w.forwardRef(
|
|
|
8163
8180
|
)
|
|
8164
8181
|
);
|
|
8165
8182
|
He.displayName = "Input";
|
|
8166
|
-
var
|
|
8183
|
+
var Yc = [
|
|
8167
8184
|
"a",
|
|
8168
8185
|
"button",
|
|
8169
8186
|
"div",
|
|
@@ -8181,13 +8198,13 @@ var Hc = [
|
|
|
8181
8198
|
"span",
|
|
8182
8199
|
"svg",
|
|
8183
8200
|
"ul"
|
|
8184
|
-
], Gt =
|
|
8201
|
+
], Gt = Yc.reduce((t, e) => {
|
|
8185
8202
|
const r = /* @__PURE__ */ da(`Primitive.${e}`), n = w.forwardRef((s, a) => {
|
|
8186
8203
|
const { asChild: i, ...o } = s, c = i ? r : e;
|
|
8187
8204
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(c, { ...o, ref: a });
|
|
8188
8205
|
});
|
|
8189
8206
|
return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
|
|
8190
|
-
}, {}),
|
|
8207
|
+
}, {}), Kc = "Label", ha = w.forwardRef((t, e) => /* @__PURE__ */ h(
|
|
8191
8208
|
Gt.label,
|
|
8192
8209
|
{
|
|
8193
8210
|
...t,
|
|
@@ -8198,15 +8215,15 @@ var Hc = [
|
|
|
8198
8215
|
}
|
|
8199
8216
|
}
|
|
8200
8217
|
));
|
|
8201
|
-
ha.displayName =
|
|
8218
|
+
ha.displayName = Kc;
|
|
8202
8219
|
var pa = ha;
|
|
8203
|
-
const
|
|
8220
|
+
const Jc = fa(
|
|
8204
8221
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
8205
8222
|
), Ze = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
8206
8223
|
pa,
|
|
8207
8224
|
{
|
|
8208
8225
|
ref: r,
|
|
8209
|
-
className: me(
|
|
8226
|
+
className: me(Jc(), t),
|
|
8210
8227
|
...e
|
|
8211
8228
|
}
|
|
8212
8229
|
));
|
|
@@ -8255,7 +8272,7 @@ const ga = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
|
8255
8272
|
ga.displayName = "CardDescription";
|
|
8256
8273
|
const nr = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: me("p-6 pt-0", t), ...e }));
|
|
8257
8274
|
nr.displayName = "CardContent";
|
|
8258
|
-
const
|
|
8275
|
+
const Xc = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
8259
8276
|
"div",
|
|
8260
8277
|
{
|
|
8261
8278
|
ref: r,
|
|
@@ -8263,8 +8280,8 @@ const Jc = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
|
8263
8280
|
...e
|
|
8264
8281
|
}
|
|
8265
8282
|
));
|
|
8266
|
-
|
|
8267
|
-
function
|
|
8283
|
+
Xc.displayName = "CardFooter";
|
|
8284
|
+
function Qc(t, e = []) {
|
|
8268
8285
|
let r = [];
|
|
8269
8286
|
function n(a, i) {
|
|
8270
8287
|
const o = w.createContext(i), c = r.length;
|
|
@@ -8294,9 +8311,9 @@ function Xc(t, e = []) {
|
|
|
8294
8311
|
);
|
|
8295
8312
|
};
|
|
8296
8313
|
};
|
|
8297
|
-
return s.scopeName = t, [n,
|
|
8314
|
+
return s.scopeName = t, [n, el(s, ...e)];
|
|
8298
8315
|
}
|
|
8299
|
-
function
|
|
8316
|
+
function el(...t) {
|
|
8300
8317
|
const e = t[0];
|
|
8301
8318
|
if (t.length === 1) return e;
|
|
8302
8319
|
const r = () => {
|
|
@@ -8321,15 +8338,15 @@ function _s(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
8321
8338
|
};
|
|
8322
8339
|
}
|
|
8323
8340
|
var xt = globalThis != null && globalThis.document ? w.useLayoutEffect : () => {
|
|
8324
|
-
},
|
|
8325
|
-
function
|
|
8341
|
+
}, tl = w[" useInsertionEffect ".trim().toString()] || xt;
|
|
8342
|
+
function rl({
|
|
8326
8343
|
prop: t,
|
|
8327
8344
|
defaultProp: e,
|
|
8328
8345
|
onChange: r = () => {
|
|
8329
8346
|
},
|
|
8330
8347
|
caller: n
|
|
8331
8348
|
}) {
|
|
8332
|
-
const [s, a, i] =
|
|
8349
|
+
const [s, a, i] = nl({
|
|
8333
8350
|
defaultProp: e,
|
|
8334
8351
|
onChange: r
|
|
8335
8352
|
}), o = t !== void 0, c = o ? t : s;
|
|
@@ -8346,7 +8363,7 @@ function tl({
|
|
|
8346
8363
|
(f) => {
|
|
8347
8364
|
var d;
|
|
8348
8365
|
if (o) {
|
|
8349
|
-
const p =
|
|
8366
|
+
const p = sl(f) ? f(t) : f;
|
|
8350
8367
|
p !== t && ((d = i.current) == null || d.call(i, p));
|
|
8351
8368
|
} else
|
|
8352
8369
|
a(f);
|
|
@@ -8355,26 +8372,26 @@ function tl({
|
|
|
8355
8372
|
);
|
|
8356
8373
|
return [c, l];
|
|
8357
8374
|
}
|
|
8358
|
-
function
|
|
8375
|
+
function nl({
|
|
8359
8376
|
defaultProp: t,
|
|
8360
8377
|
onChange: e
|
|
8361
8378
|
}) {
|
|
8362
8379
|
const [r, n] = w.useState(t), s = w.useRef(r), a = w.useRef(e);
|
|
8363
|
-
return
|
|
8380
|
+
return tl(() => {
|
|
8364
8381
|
a.current = e;
|
|
8365
8382
|
}, [e]), w.useEffect(() => {
|
|
8366
8383
|
var i;
|
|
8367
8384
|
s.current !== r && ((i = a.current) == null || i.call(a, r), s.current = r);
|
|
8368
8385
|
}, [r, s]), [r, n, a];
|
|
8369
8386
|
}
|
|
8370
|
-
function
|
|
8387
|
+
function sl(t) {
|
|
8371
8388
|
return typeof t == "function";
|
|
8372
8389
|
}
|
|
8373
|
-
function
|
|
8390
|
+
function al(t) {
|
|
8374
8391
|
const e = w.useRef({ value: t, previous: t });
|
|
8375
8392
|
return w.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
|
|
8376
8393
|
}
|
|
8377
|
-
function
|
|
8394
|
+
function il(t) {
|
|
8378
8395
|
const [e, r] = w.useState(void 0);
|
|
8379
8396
|
return xt(() => {
|
|
8380
8397
|
if (t) {
|
|
@@ -8396,16 +8413,16 @@ function al(t) {
|
|
|
8396
8413
|
r(void 0);
|
|
8397
8414
|
}, [t]), e;
|
|
8398
8415
|
}
|
|
8399
|
-
function
|
|
8416
|
+
function ol(t, e) {
|
|
8400
8417
|
return w.useReducer((r, n) => e[r][n] ?? r, t);
|
|
8401
8418
|
}
|
|
8402
8419
|
var va = (t) => {
|
|
8403
|
-
const { present: e, children: r } = t, n =
|
|
8420
|
+
const { present: e, children: r } = t, n = cl(e), s = typeof r == "function" ? r({ present: n.isPresent }) : w.Children.only(r), a = pn(n.ref, ll(s));
|
|
8404
8421
|
return typeof r == "function" || n.isPresent ? w.cloneElement(s, { ref: a }) : null;
|
|
8405
8422
|
};
|
|
8406
8423
|
va.displayName = "Presence";
|
|
8407
|
-
function
|
|
8408
|
-
const [e, r] = w.useState(), n = w.useRef(null), s = w.useRef(t), a = w.useRef("none"), i = t ? "mounted" : "unmounted", [o, c] =
|
|
8424
|
+
function cl(t) {
|
|
8425
|
+
const [e, r] = w.useState(), n = w.useRef(null), s = w.useRef(t), a = w.useRef("none"), i = t ? "mounted" : "unmounted", [o, c] = ol(i, {
|
|
8409
8426
|
mounted: {
|
|
8410
8427
|
UNMOUNT: "unmounted",
|
|
8411
8428
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -8456,15 +8473,15 @@ function ol(t) {
|
|
|
8456
8473
|
function er(t) {
|
|
8457
8474
|
return (t == null ? void 0 : t.animationName) || "none";
|
|
8458
8475
|
}
|
|
8459
|
-
function
|
|
8476
|
+
function ll(t) {
|
|
8460
8477
|
var n, s;
|
|
8461
8478
|
let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
8462
8479
|
return r ? t.ref : (e = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
|
|
8463
8480
|
}
|
|
8464
8481
|
// @__NO_SIDE_EFFECTS__
|
|
8465
|
-
function
|
|
8466
|
-
const e = /* @__PURE__ */
|
|
8467
|
-
const { children: a, ...i } = n, o = w.Children.toArray(a), c = o.find(
|
|
8482
|
+
function ul(t) {
|
|
8483
|
+
const e = /* @__PURE__ */ dl(t), r = w.forwardRef((n, s) => {
|
|
8484
|
+
const { children: a, ...i } = n, o = w.Children.toArray(a), c = o.find(hl);
|
|
8468
8485
|
if (c) {
|
|
8469
8486
|
const l = c.props.children, f = o.map((d) => d === c ? w.Children.count(l) > 1 ? w.Children.only(null) : w.isValidElement(l) ? l.props.children : null : d);
|
|
8470
8487
|
return /* @__PURE__ */ h(e, { ...i, ref: s, children: w.isValidElement(l) ? w.cloneElement(l, void 0, f) : null });
|
|
@@ -8474,22 +8491,22 @@ function ll(t) {
|
|
|
8474
8491
|
return r.displayName = `${t}.Slot`, r;
|
|
8475
8492
|
}
|
|
8476
8493
|
// @__NO_SIDE_EFFECTS__
|
|
8477
|
-
function
|
|
8494
|
+
function dl(t) {
|
|
8478
8495
|
const e = w.forwardRef((r, n) => {
|
|
8479
8496
|
const { children: s, ...a } = r;
|
|
8480
8497
|
if (w.isValidElement(s)) {
|
|
8481
|
-
const i =
|
|
8498
|
+
const i = ml(s), o = pl(a, s.props);
|
|
8482
8499
|
return s.type !== w.Fragment && (o.ref = n ? hn(n, i) : i), w.cloneElement(s, o);
|
|
8483
8500
|
}
|
|
8484
8501
|
return w.Children.count(s) > 1 ? w.Children.only(null) : null;
|
|
8485
8502
|
});
|
|
8486
8503
|
return e.displayName = `${t}.SlotClone`, e;
|
|
8487
8504
|
}
|
|
8488
|
-
var
|
|
8489
|
-
function
|
|
8490
|
-
return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
8505
|
+
var fl = Symbol("radix.slottable");
|
|
8506
|
+
function hl(t) {
|
|
8507
|
+
return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === fl;
|
|
8491
8508
|
}
|
|
8492
|
-
function
|
|
8509
|
+
function pl(t, e) {
|
|
8493
8510
|
const r = { ...e };
|
|
8494
8511
|
for (const n in e) {
|
|
8495
8512
|
const s = t[n], a = e[n];
|
|
@@ -8500,12 +8517,12 @@ function hl(t, e) {
|
|
|
8500
8517
|
}
|
|
8501
8518
|
return { ...t, ...r };
|
|
8502
8519
|
}
|
|
8503
|
-
function
|
|
8520
|
+
function ml(t) {
|
|
8504
8521
|
var n, s;
|
|
8505
8522
|
let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
8506
8523
|
return r ? t.ref : (e = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
|
|
8507
8524
|
}
|
|
8508
|
-
var
|
|
8525
|
+
var yl = [
|
|
8509
8526
|
"a",
|
|
8510
8527
|
"button",
|
|
8511
8528
|
"div",
|
|
@@ -8523,14 +8540,14 @@ var ml = [
|
|
|
8523
8540
|
"span",
|
|
8524
8541
|
"svg",
|
|
8525
8542
|
"ul"
|
|
8526
|
-
], mn =
|
|
8527
|
-
const r = /* @__PURE__ */
|
|
8543
|
+
], mn = yl.reduce((t, e) => {
|
|
8544
|
+
const r = /* @__PURE__ */ ul(`Primitive.${e}`), n = w.forwardRef((s, a) => {
|
|
8528
8545
|
const { asChild: i, ...o } = s, c = i ? r : e;
|
|
8529
8546
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(c, { ...o, ref: a });
|
|
8530
8547
|
});
|
|
8531
8548
|
return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
|
|
8532
|
-
}, {}), _r = "Checkbox", [
|
|
8533
|
-
function
|
|
8549
|
+
}, {}), _r = "Checkbox", [gl] = Qc(_r), [vl, yn] = gl(_r);
|
|
8550
|
+
function bl(t) {
|
|
8534
8551
|
const {
|
|
8535
8552
|
__scopeCheckbox: e,
|
|
8536
8553
|
checked: r,
|
|
@@ -8544,12 +8561,12 @@ function vl(t) {
|
|
|
8544
8561
|
value: f = "on",
|
|
8545
8562
|
// @ts-expect-error
|
|
8546
8563
|
internal_do_not_use_render: d
|
|
8547
|
-
} = t, [p, m] =
|
|
8564
|
+
} = t, [p, m] = rl({
|
|
8548
8565
|
prop: r,
|
|
8549
8566
|
defaultProp: s ?? !1,
|
|
8550
8567
|
onChange: c,
|
|
8551
8568
|
caller: _r
|
|
8552
|
-
}), [b, v] = w.useState(null), [S, k] = w.useState(null), C = w.useRef(!1),
|
|
8569
|
+
}), [b, v] = w.useState(null), [S, k] = w.useState(null), C = w.useRef(!1), U = b ? !!i || !!b.closest("form") : (
|
|
8553
8570
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
8554
8571
|
!0
|
|
8555
8572
|
), I = {
|
|
@@ -8564,16 +8581,16 @@ function vl(t) {
|
|
|
8564
8581
|
hasConsumerStoppedPropagationRef: C,
|
|
8565
8582
|
required: l,
|
|
8566
8583
|
defaultChecked: dt(s) ? !1 : s,
|
|
8567
|
-
isFormControl:
|
|
8584
|
+
isFormControl: U,
|
|
8568
8585
|
bubbleInput: S,
|
|
8569
8586
|
setBubbleInput: k
|
|
8570
8587
|
};
|
|
8571
8588
|
return /* @__PURE__ */ h(
|
|
8572
|
-
|
|
8589
|
+
vl,
|
|
8573
8590
|
{
|
|
8574
8591
|
scope: e,
|
|
8575
8592
|
...I,
|
|
8576
|
-
children:
|
|
8593
|
+
children: xl(d) ? d(I) : n
|
|
8577
8594
|
}
|
|
8578
8595
|
);
|
|
8579
8596
|
}
|
|
@@ -8636,7 +8653,7 @@ var gn = w.forwardRef(
|
|
|
8636
8653
|
...d
|
|
8637
8654
|
} = t;
|
|
8638
8655
|
return /* @__PURE__ */ h(
|
|
8639
|
-
|
|
8656
|
+
bl,
|
|
8640
8657
|
{
|
|
8641
8658
|
__scopeCheckbox: r,
|
|
8642
8659
|
checked: s,
|
|
@@ -8647,7 +8664,7 @@ var gn = w.forwardRef(
|
|
|
8647
8664
|
name: n,
|
|
8648
8665
|
form: f,
|
|
8649
8666
|
value: c,
|
|
8650
|
-
internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */
|
|
8667
|
+
internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ D(tn, { children: [
|
|
8651
8668
|
/* @__PURE__ */ h(
|
|
8652
8669
|
xa,
|
|
8653
8670
|
{
|
|
@@ -8704,12 +8721,12 @@ var ka = "CheckboxBubbleInput", Sa = w.forwardRef(
|
|
|
8704
8721
|
form: d,
|
|
8705
8722
|
bubbleInput: p,
|
|
8706
8723
|
setBubbleInput: m
|
|
8707
|
-
} = yn(ka, t), b = pn(r, m), v =
|
|
8724
|
+
} = yn(ka, t), b = pn(r, m), v = al(a), S = il(n);
|
|
8708
8725
|
w.useEffect(() => {
|
|
8709
8726
|
const C = p;
|
|
8710
8727
|
if (!C) return;
|
|
8711
|
-
const
|
|
8712
|
-
|
|
8728
|
+
const U = window.HTMLInputElement.prototype, x = Object.getOwnPropertyDescriptor(
|
|
8729
|
+
U,
|
|
8713
8730
|
"checked"
|
|
8714
8731
|
).set, Z = !s.current;
|
|
8715
8732
|
if (v !== a && x) {
|
|
@@ -8749,7 +8766,7 @@ var ka = "CheckboxBubbleInput", Sa = w.forwardRef(
|
|
|
8749
8766
|
}
|
|
8750
8767
|
);
|
|
8751
8768
|
Sa.displayName = ka;
|
|
8752
|
-
function
|
|
8769
|
+
function xl(t) {
|
|
8753
8770
|
return typeof t == "function";
|
|
8754
8771
|
}
|
|
8755
8772
|
function dt(t) {
|
|
@@ -8767,12 +8784,12 @@ const Ea = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
|
8767
8784
|
t
|
|
8768
8785
|
),
|
|
8769
8786
|
...e,
|
|
8770
|
-
children: /* @__PURE__ */ h(wa, { className: "flex items-center justify-center text-current", children: /* @__PURE__ */ h(
|
|
8787
|
+
children: /* @__PURE__ */ h(wa, { className: "flex items-center justify-center text-current", children: /* @__PURE__ */ h(Qi, { className: "h-3.5 w-3.5" }) })
|
|
8771
8788
|
}
|
|
8772
8789
|
));
|
|
8773
8790
|
Ea.displayName = gn.displayName;
|
|
8774
|
-
var
|
|
8775
|
-
const { decorative: r, orientation: n = ws, ...s } = t, a =
|
|
8791
|
+
var _l = "Separator", ws = "horizontal", wl = ["horizontal", "vertical"], Ra = w.forwardRef((t, e) => {
|
|
8792
|
+
const { decorative: r, orientation: n = ws, ...s } = t, a = kl(n) ? n : ws, o = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
8776
8793
|
return /* @__PURE__ */ h(
|
|
8777
8794
|
Gt.div,
|
|
8778
8795
|
{
|
|
@@ -8783,9 +8800,9 @@ var xl = "Separator", ws = "horizontal", _l = ["horizontal", "vertical"], Ra = w
|
|
|
8783
8800
|
}
|
|
8784
8801
|
);
|
|
8785
8802
|
});
|
|
8786
|
-
Ra.displayName =
|
|
8787
|
-
function
|
|
8788
|
-
return
|
|
8803
|
+
Ra.displayName = _l;
|
|
8804
|
+
function kl(t) {
|
|
8805
|
+
return wl.includes(t);
|
|
8789
8806
|
}
|
|
8790
8807
|
var Oa = Ra;
|
|
8791
8808
|
const Tt = w.forwardRef(
|
|
@@ -8805,14 +8822,14 @@ const Tt = w.forwardRef(
|
|
|
8805
8822
|
)
|
|
8806
8823
|
);
|
|
8807
8824
|
Tt.displayName = Oa.displayName;
|
|
8808
|
-
const
|
|
8825
|
+
const Sl = br({
|
|
8809
8826
|
email: Qe().email("Enter a valid email address"),
|
|
8810
8827
|
password: Qe().min(6, "Password must be at least 6 characters")
|
|
8811
|
-
}),
|
|
8828
|
+
}), Cl = br({
|
|
8812
8829
|
email: Qe().email("Enter a valid email address")
|
|
8813
8830
|
});
|
|
8814
|
-
function
|
|
8815
|
-
return /* @__PURE__ */
|
|
8831
|
+
function El() {
|
|
8832
|
+
return /* @__PURE__ */ D(
|
|
8816
8833
|
"svg",
|
|
8817
8834
|
{
|
|
8818
8835
|
"aria-hidden": "true",
|
|
@@ -8853,25 +8870,25 @@ function Cl() {
|
|
|
8853
8870
|
}
|
|
8854
8871
|
);
|
|
8855
8872
|
}
|
|
8856
|
-
function El({ provider: t }) {
|
|
8857
|
-
return t === "google" ? /* @__PURE__ */ h(Cl, {}) : t === "github" ? /* @__PURE__ */ h(eo, { className: "h-4 w-4" }) : null;
|
|
8858
|
-
}
|
|
8859
8873
|
function Rl({ provider: t }) {
|
|
8874
|
+
return t === "google" ? /* @__PURE__ */ h(El, {}) : t === "github" ? /* @__PURE__ */ h(to, { className: "h-4 w-4" }) : null;
|
|
8875
|
+
}
|
|
8876
|
+
function Ol({ provider: t }) {
|
|
8860
8877
|
const e = t.label ?? t.provider.charAt(0).toUpperCase() + t.provider.slice(1);
|
|
8861
|
-
return /* @__PURE__ */ h("a", { href: t.url, children: /* @__PURE__ */
|
|
8878
|
+
return /* @__PURE__ */ h("a", { href: t.url, children: /* @__PURE__ */ D(
|
|
8862
8879
|
pt,
|
|
8863
8880
|
{
|
|
8864
8881
|
type: "button",
|
|
8865
8882
|
variant: "outline",
|
|
8866
8883
|
className: "w-full gap-2 rounded-full",
|
|
8867
8884
|
children: [
|
|
8868
|
-
/* @__PURE__ */ h(
|
|
8885
|
+
/* @__PURE__ */ h(Rl, { provider: t.provider }),
|
|
8869
8886
|
e
|
|
8870
8887
|
]
|
|
8871
8888
|
}
|
|
8872
8889
|
) });
|
|
8873
8890
|
}
|
|
8874
|
-
function
|
|
8891
|
+
function Nl({
|
|
8875
8892
|
mode: t,
|
|
8876
8893
|
onChange: e
|
|
8877
8894
|
}) {
|
|
@@ -8889,8 +8906,8 @@ function Ol({
|
|
|
8889
8906
|
r
|
|
8890
8907
|
)) });
|
|
8891
8908
|
}
|
|
8892
|
-
function
|
|
8893
|
-
return /* @__PURE__ */
|
|
8909
|
+
function Al() {
|
|
8910
|
+
return /* @__PURE__ */ D("div", { className: "space-y-4 p-6", children: [
|
|
8894
8911
|
/* @__PURE__ */ h("div", { className: "h-6 w-3/4 animate-pulse rounded bg-muted mx-auto" }),
|
|
8895
8912
|
/* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }),
|
|
8896
8913
|
/* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }),
|
|
@@ -8898,7 +8915,7 @@ function Nl() {
|
|
|
8898
8915
|
/* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" })
|
|
8899
8916
|
] });
|
|
8900
8917
|
}
|
|
8901
|
-
function
|
|
8918
|
+
function tu({
|
|
8902
8919
|
className: t,
|
|
8903
8920
|
onSuccess: e,
|
|
8904
8921
|
onError: r,
|
|
@@ -8907,10 +8924,10 @@ function eu({
|
|
|
8907
8924
|
title: a = "Sign in to your account"
|
|
8908
8925
|
}) {
|
|
8909
8926
|
var be, we, Ee;
|
|
8910
|
-
const { login: i, sendMagicLink: o } = Pt(), { config: c, configLoading: l } = gr(), [f, d] = Ae("password"), [p, m] = Ae(""), [b, v] = Ae(null), [S, k] = Ae(null), [C,
|
|
8911
|
-
resolver: or(kl)
|
|
8912
|
-
}), U = ir({
|
|
8927
|
+
const { login: i, sendMagicLink: o } = Pt(), { config: c, configLoading: l } = gr(), [f, d] = Ae("password"), [p, m] = Ae(""), [b, v] = Ae(null), [S, k] = Ae(null), [C, U] = Ae(!1), [I, x] = Ae(!1), Z = lt(null), j = ir({
|
|
8913
8928
|
resolver: or(Sl)
|
|
8929
|
+
}), z = ir({
|
|
8930
|
+
resolver: or(Cl)
|
|
8914
8931
|
});
|
|
8915
8932
|
async function B() {
|
|
8916
8933
|
return c != null && c.captcha.enabled ? c.captcha.provider === "recaptcha" && c.captcha.version === "v3" && c.captcha.siteKey ? rn(c.captcha.siteKey, "login") : p || (v("Please complete the captcha"), null) : "";
|
|
@@ -8935,12 +8952,12 @@ function eu({
|
|
|
8935
8952
|
const q = G instanceof Error ? G : new Error("Login failed");
|
|
8936
8953
|
k(q.message), r == null || r(q);
|
|
8937
8954
|
}
|
|
8938
|
-
}), M =
|
|
8955
|
+
}), M = z.handleSubmit(async (_) => {
|
|
8939
8956
|
k(null);
|
|
8940
8957
|
const R = await B();
|
|
8941
8958
|
if (R !== null)
|
|
8942
8959
|
try {
|
|
8943
|
-
await o({ email: _.email, captchaToken: R }), re(),
|
|
8960
|
+
await o({ email: _.email, captchaToken: R }), re(), U(!0);
|
|
8944
8961
|
} catch (G) {
|
|
8945
8962
|
re();
|
|
8946
8963
|
const q = G instanceof Error ? G : new Error("Failed to send magic link");
|
|
@@ -8948,28 +8965,28 @@ function eu({
|
|
|
8948
8965
|
}
|
|
8949
8966
|
});
|
|
8950
8967
|
if (C)
|
|
8951
|
-
return /* @__PURE__ */
|
|
8968
|
+
return /* @__PURE__ */ D(Be, { className: me("w-full max-w-sm p-8 text-center space-y-3", t), children: [
|
|
8952
8969
|
/* @__PURE__ */ h("div", { className: "text-4xl", children: "✉️" }),
|
|
8953
8970
|
/* @__PURE__ */ h("p", { className: "font-semibold", children: "Check your inbox" }),
|
|
8954
|
-
/* @__PURE__ */
|
|
8971
|
+
/* @__PURE__ */ D("p", { className: "text-sm text-muted-foreground", children: [
|
|
8955
8972
|
"We sent a sign-in link to",
|
|
8956
8973
|
" ",
|
|
8957
|
-
/* @__PURE__ */ h("span", { className: "font-medium text-foreground", children:
|
|
8974
|
+
/* @__PURE__ */ h("span", { className: "font-medium text-foreground", children: z.getValues("email") })
|
|
8958
8975
|
] }),
|
|
8959
8976
|
/* @__PURE__ */ h(
|
|
8960
8977
|
"button",
|
|
8961
8978
|
{
|
|
8962
8979
|
type: "button",
|
|
8963
|
-
onClick: () =>
|
|
8980
|
+
onClick: () => U(!1),
|
|
8964
8981
|
className: "text-sm text-primary underline-offset-4 hover:underline",
|
|
8965
8982
|
children: "Use a different email"
|
|
8966
8983
|
}
|
|
8967
8984
|
)
|
|
8968
8985
|
] });
|
|
8969
8986
|
if (l)
|
|
8970
|
-
return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(
|
|
8971
|
-
const W = j.formState.isSubmitting, ne =
|
|
8972
|
-
return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */
|
|
8987
|
+
return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Al, {}) });
|
|
8988
|
+
const W = j.formState.isSubmitting, ne = z.formState.isSubmitting, ve = W || ne, ue = (((be = c == null ? void 0 : c.oauthProviders) == null ? void 0 : be.length) ?? 0) > 0;
|
|
8989
|
+
return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ D("div", { className: "p-6 space-y-5", children: [
|
|
8973
8990
|
(c == null ? void 0 : c.logoUrl) && /* @__PURE__ */ h(
|
|
8974
8991
|
"img",
|
|
8975
8992
|
{
|
|
@@ -8986,16 +9003,16 @@ function eu({
|
|
|
8986
9003
|
"grid gap-2",
|
|
8987
9004
|
(((we = c == null ? void 0 : c.oauthProviders) == null ? void 0 : we.length) ?? 0) === 1 ? "grid-cols-1" : "grid-cols-2"
|
|
8988
9005
|
),
|
|
8989
|
-
children: (Ee = c == null ? void 0 : c.oauthProviders) == null ? void 0 : Ee.map((_) => /* @__PURE__ */ h(
|
|
9006
|
+
children: (Ee = c == null ? void 0 : c.oauthProviders) == null ? void 0 : Ee.map((_) => /* @__PURE__ */ h(Ol, { provider: _ }, _.provider))
|
|
8990
9007
|
}
|
|
8991
9008
|
),
|
|
8992
|
-
ue && /* @__PURE__ */
|
|
9009
|
+
ue && /* @__PURE__ */ D("div", { className: "flex items-center gap-3", children: [
|
|
8993
9010
|
/* @__PURE__ */ h(Tt, { className: "flex-1" }),
|
|
8994
9011
|
/* @__PURE__ */ h("span", { className: "text-[10px] font-medium uppercase tracking-widest text-muted-foreground", children: "Or continue with email" }),
|
|
8995
9012
|
/* @__PURE__ */ h(Tt, { className: "flex-1" })
|
|
8996
9013
|
] }),
|
|
8997
9014
|
(c == null ? void 0 : c.allowMagicLink) && /* @__PURE__ */ h(
|
|
8998
|
-
|
|
9015
|
+
Nl,
|
|
8999
9016
|
{
|
|
9000
9017
|
mode: f,
|
|
9001
9018
|
onChange: (_) => {
|
|
@@ -9003,9 +9020,9 @@ function eu({
|
|
|
9003
9020
|
}
|
|
9004
9021
|
}
|
|
9005
9022
|
),
|
|
9006
|
-
f === "password" && /* @__PURE__ */
|
|
9023
|
+
f === "password" && /* @__PURE__ */ D("form", { onSubmit: he, noValidate: !0, className: "space-y-4", children: [
|
|
9007
9024
|
S && /* @__PURE__ */ h("p", { className: "rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive", children: S }),
|
|
9008
|
-
/* @__PURE__ */
|
|
9025
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9009
9026
|
/* @__PURE__ */ h(Ze, { htmlFor: "login-email", children: "Email" }),
|
|
9010
9027
|
/* @__PURE__ */ h(
|
|
9011
9028
|
He,
|
|
@@ -9019,8 +9036,8 @@ function eu({
|
|
|
9019
9036
|
),
|
|
9020
9037
|
j.formState.errors.email && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: j.formState.errors.email.message })
|
|
9021
9038
|
] }),
|
|
9022
|
-
/* @__PURE__ */
|
|
9023
|
-
/* @__PURE__ */
|
|
9039
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9040
|
+
/* @__PURE__ */ D("div", { className: "flex items-center justify-between", children: [
|
|
9024
9041
|
/* @__PURE__ */ h(Ze, { htmlFor: "login-password", children: "Password" }),
|
|
9025
9042
|
n && /* @__PURE__ */ h(
|
|
9026
9043
|
"a",
|
|
@@ -9043,7 +9060,7 @@ function eu({
|
|
|
9043
9060
|
),
|
|
9044
9061
|
j.formState.errors.password && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: j.formState.errors.password.message })
|
|
9045
9062
|
] }),
|
|
9046
|
-
/* @__PURE__ */
|
|
9063
|
+
/* @__PURE__ */ D("div", { className: "flex items-center gap-2", children: [
|
|
9047
9064
|
/* @__PURE__ */ h(
|
|
9048
9065
|
Ea,
|
|
9049
9066
|
{
|
|
@@ -9061,7 +9078,7 @@ function eu({
|
|
|
9061
9078
|
}
|
|
9062
9079
|
)
|
|
9063
9080
|
] }),
|
|
9064
|
-
(c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */
|
|
9081
|
+
(c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */ D("div", { className: "space-y-1", children: [
|
|
9065
9082
|
/* @__PURE__ */ h(
|
|
9066
9083
|
Wt,
|
|
9067
9084
|
{
|
|
@@ -9075,7 +9092,7 @@ function eu({
|
|
|
9075
9092
|
),
|
|
9076
9093
|
b && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: b })
|
|
9077
9094
|
] }),
|
|
9078
|
-
/* @__PURE__ */
|
|
9095
|
+
/* @__PURE__ */ D(
|
|
9079
9096
|
pt,
|
|
9080
9097
|
{
|
|
9081
9098
|
type: "submit",
|
|
@@ -9088,9 +9105,9 @@ function eu({
|
|
|
9088
9105
|
}
|
|
9089
9106
|
)
|
|
9090
9107
|
] }),
|
|
9091
|
-
f === "magic-link" && /* @__PURE__ */
|
|
9108
|
+
f === "magic-link" && /* @__PURE__ */ D("form", { onSubmit: M, noValidate: !0, className: "space-y-4", children: [
|
|
9092
9109
|
S && /* @__PURE__ */ h("p", { className: "rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive", children: S }),
|
|
9093
|
-
/* @__PURE__ */
|
|
9110
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9094
9111
|
/* @__PURE__ */ h(Ze, { htmlFor: "magic-email", children: "Email" }),
|
|
9095
9112
|
/* @__PURE__ */ h(
|
|
9096
9113
|
He,
|
|
@@ -9099,12 +9116,12 @@ function eu({
|
|
|
9099
9116
|
type: "email",
|
|
9100
9117
|
placeholder: "name@example.com",
|
|
9101
9118
|
autoComplete: "email",
|
|
9102
|
-
...
|
|
9119
|
+
...z.register("email")
|
|
9103
9120
|
}
|
|
9104
9121
|
),
|
|
9105
|
-
|
|
9122
|
+
z.formState.errors.email && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: z.formState.errors.email.message })
|
|
9106
9123
|
] }),
|
|
9107
|
-
(c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */
|
|
9124
|
+
(c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */ D("div", { className: "space-y-1", children: [
|
|
9108
9125
|
/* @__PURE__ */ h(
|
|
9109
9126
|
Wt,
|
|
9110
9127
|
{
|
|
@@ -9118,12 +9135,12 @@ function eu({
|
|
|
9118
9135
|
),
|
|
9119
9136
|
b && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: b })
|
|
9120
9137
|
] }),
|
|
9121
|
-
/* @__PURE__ */
|
|
9138
|
+
/* @__PURE__ */ D(pt, { type: "submit", className: "w-full", disabled: ve, children: [
|
|
9122
9139
|
ne && /* @__PURE__ */ h(hr, { className: "animate-spin" }),
|
|
9123
9140
|
ne ? "Sending…" : "Send Magic Link"
|
|
9124
9141
|
] })
|
|
9125
9142
|
] }),
|
|
9126
|
-
((c == null ? void 0 : c.termsOfServiceUrl) || (c == null ? void 0 : c.privacyPolicyUrl)) && /* @__PURE__ */
|
|
9143
|
+
((c == null ? void 0 : c.termsOfServiceUrl) || (c == null ? void 0 : c.privacyPolicyUrl)) && /* @__PURE__ */ D("p", { className: "text-center text-xs text-muted-foreground", children: [
|
|
9127
9144
|
"By continuing, you agree to our",
|
|
9128
9145
|
" ",
|
|
9129
9146
|
c.termsOfServiceUrl && /* @__PURE__ */ h(
|
|
@@ -9145,7 +9162,7 @@ function eu({
|
|
|
9145
9162
|
),
|
|
9146
9163
|
"."
|
|
9147
9164
|
] }),
|
|
9148
|
-
(c == null ? void 0 : c.allowSignup) && s && /* @__PURE__ */
|
|
9165
|
+
(c == null ? void 0 : c.allowSignup) && s && /* @__PURE__ */ D("p", { className: "text-center text-sm text-muted-foreground", children: [
|
|
9149
9166
|
"Don't have an account?",
|
|
9150
9167
|
" ",
|
|
9151
9168
|
/* @__PURE__ */ h(
|
|
@@ -9159,21 +9176,21 @@ function eu({
|
|
|
9159
9176
|
] })
|
|
9160
9177
|
] }) });
|
|
9161
9178
|
}
|
|
9162
|
-
const
|
|
9179
|
+
const Tl = br({
|
|
9163
9180
|
firstName: Qe().min(1, "First name is required"),
|
|
9164
9181
|
lastName: Qe().min(1, "Last name is required"),
|
|
9165
9182
|
email: Qe().email("Enter a valid email address"),
|
|
9166
9183
|
password: Qe().min(8, "Password must be at least 8 characters").regex(/[A-Z]/, "Must contain an uppercase letter").regex(/[0-9]/, "Must contain a number"),
|
|
9167
9184
|
confirmPassword: Qe(),
|
|
9168
|
-
whatsappNumber: Qe().regex(/^\+?[1-9]\d{6,14}$/, "Enter a valid WhatsApp number").optional().or(
|
|
9185
|
+
whatsappNumber: Qe().regex(/^\+?[1-9]\d{6,14}$/, "Enter a valid WhatsApp number").optional().or(Yi(""))
|
|
9169
9186
|
}).refine((t) => t.password === t.confirmPassword, {
|
|
9170
9187
|
message: "Passwords do not match",
|
|
9171
9188
|
path: ["confirmPassword"]
|
|
9172
9189
|
});
|
|
9173
|
-
function
|
|
9190
|
+
function Pl() {
|
|
9174
9191
|
return /* @__PURE__ */ h("div", { className: "space-y-4 p-6", children: [...Array(5)].map((t, e) => /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }, e)) });
|
|
9175
9192
|
}
|
|
9176
|
-
function
|
|
9193
|
+
function ru({
|
|
9177
9194
|
className: t,
|
|
9178
9195
|
onSuccess: e,
|
|
9179
9196
|
onError: r,
|
|
@@ -9184,8 +9201,8 @@ function tu({
|
|
|
9184
9201
|
register: v,
|
|
9185
9202
|
handleSubmit: S,
|
|
9186
9203
|
formState: { errors: k, isSubmitting: C }
|
|
9187
|
-
} = ir({ resolver: or(
|
|
9188
|
-
async function
|
|
9204
|
+
} = ir({ resolver: or(Tl) });
|
|
9205
|
+
async function U() {
|
|
9189
9206
|
return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? rn(i.captcha.siteKey, "signup") : c || (d("Please complete the captcha"), null) : "";
|
|
9190
9207
|
}
|
|
9191
9208
|
function I() {
|
|
@@ -9194,7 +9211,7 @@ function tu({
|
|
|
9194
9211
|
}
|
|
9195
9212
|
const x = S(async (Z) => {
|
|
9196
9213
|
m(null);
|
|
9197
|
-
const j = await
|
|
9214
|
+
const j = await U();
|
|
9198
9215
|
if (j !== null)
|
|
9199
9216
|
try {
|
|
9200
9217
|
await a({
|
|
@@ -9205,13 +9222,13 @@ function tu({
|
|
|
9205
9222
|
whatsappNumber: Z.whatsappNumber || void 0,
|
|
9206
9223
|
captchaToken: j
|
|
9207
9224
|
}), I(), e == null || e({});
|
|
9208
|
-
} catch (
|
|
9225
|
+
} catch (z) {
|
|
9209
9226
|
I();
|
|
9210
|
-
const B =
|
|
9227
|
+
const B = z instanceof Error ? z : new Error("Signup failed");
|
|
9211
9228
|
m(B.message), r == null || r(B);
|
|
9212
9229
|
}
|
|
9213
9230
|
});
|
|
9214
|
-
return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(
|
|
9231
|
+
return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Pl, {}) }) : /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ D("div", { className: "p-6 space-y-5", children: [
|
|
9215
9232
|
(i == null ? void 0 : i.logoUrl) && /* @__PURE__ */ h(
|
|
9216
9233
|
"img",
|
|
9217
9234
|
{
|
|
@@ -9221,10 +9238,10 @@ function tu({
|
|
|
9221
9238
|
}
|
|
9222
9239
|
),
|
|
9223
9240
|
/* @__PURE__ */ h("h1", { className: "text-center text-xl font-bold tracking-tight", children: s }),
|
|
9224
|
-
/* @__PURE__ */
|
|
9241
|
+
/* @__PURE__ */ D("form", { onSubmit: x, noValidate: !0, className: "space-y-4", children: [
|
|
9225
9242
|
p && /* @__PURE__ */ h("p", { className: "rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive", children: p }),
|
|
9226
|
-
/* @__PURE__ */
|
|
9227
|
-
/* @__PURE__ */
|
|
9243
|
+
/* @__PURE__ */ D("div", { className: "grid grid-cols-2 gap-3", children: [
|
|
9244
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9228
9245
|
/* @__PURE__ */ h(Ze, { htmlFor: "signup-first", children: "First name" }),
|
|
9229
9246
|
/* @__PURE__ */ h(
|
|
9230
9247
|
He,
|
|
@@ -9237,7 +9254,7 @@ function tu({
|
|
|
9237
9254
|
),
|
|
9238
9255
|
k.firstName && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.firstName.message })
|
|
9239
9256
|
] }),
|
|
9240
|
-
/* @__PURE__ */
|
|
9257
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9241
9258
|
/* @__PURE__ */ h(Ze, { htmlFor: "signup-last", children: "Last name" }),
|
|
9242
9259
|
/* @__PURE__ */ h(
|
|
9243
9260
|
He,
|
|
@@ -9251,7 +9268,7 @@ function tu({
|
|
|
9251
9268
|
k.lastName && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.lastName.message })
|
|
9252
9269
|
] })
|
|
9253
9270
|
] }),
|
|
9254
|
-
/* @__PURE__ */
|
|
9271
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9255
9272
|
/* @__PURE__ */ h(Ze, { htmlFor: "signup-email", children: "Email" }),
|
|
9256
9273
|
/* @__PURE__ */ h(
|
|
9257
9274
|
He,
|
|
@@ -9265,8 +9282,8 @@ function tu({
|
|
|
9265
9282
|
),
|
|
9266
9283
|
k.email && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.email.message })
|
|
9267
9284
|
] }),
|
|
9268
|
-
/* @__PURE__ */
|
|
9269
|
-
/* @__PURE__ */
|
|
9285
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9286
|
+
/* @__PURE__ */ D(Ze, { htmlFor: "signup-whatsapp", children: [
|
|
9270
9287
|
"WhatsApp",
|
|
9271
9288
|
" ",
|
|
9272
9289
|
/* @__PURE__ */ h("span", { className: "text-muted-foreground font-normal", children: "(optional)" })
|
|
@@ -9283,7 +9300,7 @@ function tu({
|
|
|
9283
9300
|
),
|
|
9284
9301
|
k.whatsappNumber && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.whatsappNumber.message })
|
|
9285
9302
|
] }),
|
|
9286
|
-
/* @__PURE__ */
|
|
9303
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9287
9304
|
/* @__PURE__ */ h(Ze, { htmlFor: "signup-password", children: "Password" }),
|
|
9288
9305
|
/* @__PURE__ */ h(
|
|
9289
9306
|
He,
|
|
@@ -9297,7 +9314,7 @@ function tu({
|
|
|
9297
9314
|
),
|
|
9298
9315
|
k.password && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.password.message })
|
|
9299
9316
|
] }),
|
|
9300
|
-
/* @__PURE__ */
|
|
9317
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9301
9318
|
/* @__PURE__ */ h(Ze, { htmlFor: "signup-confirm", children: "Confirm password" }),
|
|
9302
9319
|
/* @__PURE__ */ h(
|
|
9303
9320
|
He,
|
|
@@ -9311,7 +9328,7 @@ function tu({
|
|
|
9311
9328
|
),
|
|
9312
9329
|
k.confirmPassword && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.confirmPassword.message })
|
|
9313
9330
|
] }),
|
|
9314
|
-
(i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */
|
|
9331
|
+
(i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */ D("div", { className: "space-y-1", children: [
|
|
9315
9332
|
/* @__PURE__ */ h(
|
|
9316
9333
|
Wt,
|
|
9317
9334
|
{
|
|
@@ -9325,12 +9342,12 @@ function tu({
|
|
|
9325
9342
|
),
|
|
9326
9343
|
f && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: f })
|
|
9327
9344
|
] }),
|
|
9328
|
-
/* @__PURE__ */
|
|
9345
|
+
/* @__PURE__ */ D(pt, { type: "submit", className: "w-full", disabled: C, children: [
|
|
9329
9346
|
C && /* @__PURE__ */ h(hr, { className: "animate-spin" }),
|
|
9330
9347
|
C ? "Creating account…" : "Create account"
|
|
9331
9348
|
] })
|
|
9332
9349
|
] }),
|
|
9333
|
-
((i == null ? void 0 : i.termsOfServiceUrl) || (i == null ? void 0 : i.privacyPolicyUrl)) && /* @__PURE__ */
|
|
9350
|
+
((i == null ? void 0 : i.termsOfServiceUrl) || (i == null ? void 0 : i.privacyPolicyUrl)) && /* @__PURE__ */ D("p", { className: "text-center text-xs text-muted-foreground", children: [
|
|
9334
9351
|
"By continuing, you agree to our",
|
|
9335
9352
|
" ",
|
|
9336
9353
|
i.termsOfServiceUrl && /* @__PURE__ */ h(
|
|
@@ -9353,7 +9370,7 @@ function tu({
|
|
|
9353
9370
|
"."
|
|
9354
9371
|
] }),
|
|
9355
9372
|
/* @__PURE__ */ h(Tt, {}),
|
|
9356
|
-
n && /* @__PURE__ */
|
|
9373
|
+
n && /* @__PURE__ */ D("p", { className: "text-center text-sm text-muted-foreground", children: [
|
|
9357
9374
|
"Already have an account?",
|
|
9358
9375
|
" ",
|
|
9359
9376
|
/* @__PURE__ */ h(
|
|
@@ -9367,17 +9384,17 @@ function tu({
|
|
|
9367
9384
|
] })
|
|
9368
9385
|
] }) });
|
|
9369
9386
|
}
|
|
9370
|
-
const
|
|
9387
|
+
const Il = br({
|
|
9371
9388
|
email: Qe().email("Enter a valid email address")
|
|
9372
9389
|
});
|
|
9373
|
-
function
|
|
9374
|
-
return /* @__PURE__ */
|
|
9390
|
+
function Ll() {
|
|
9391
|
+
return /* @__PURE__ */ D("div", { className: "space-y-4 p-6", children: [
|
|
9375
9392
|
/* @__PURE__ */ h("div", { className: "h-6 w-3/4 animate-pulse rounded bg-muted mx-auto" }),
|
|
9376
9393
|
/* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }),
|
|
9377
9394
|
/* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" })
|
|
9378
9395
|
] });
|
|
9379
9396
|
}
|
|
9380
|
-
function
|
|
9397
|
+
function nu({
|
|
9381
9398
|
className: t,
|
|
9382
9399
|
onSuccess: e,
|
|
9383
9400
|
onError: r,
|
|
@@ -9387,9 +9404,9 @@ function ru({
|
|
|
9387
9404
|
const { forgotPassword: a } = Pt(), { config: i, configLoading: o } = gr(), [c, l] = Ae(""), [f, d] = Ae(null), [p, m] = Ae(null), [b, v] = Ae(!1), S = lt(null), {
|
|
9388
9405
|
register: k,
|
|
9389
9406
|
handleSubmit: C,
|
|
9390
|
-
getValues:
|
|
9407
|
+
getValues: U,
|
|
9391
9408
|
formState: { errors: I, isSubmitting: x }
|
|
9392
|
-
} = ir({ resolver: or(
|
|
9409
|
+
} = ir({ resolver: or(Il) });
|
|
9393
9410
|
async function Z() {
|
|
9394
9411
|
return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? rn(i.captcha.siteKey, "forgot_password") : c || (d("Please complete the captcha"), null) : "";
|
|
9395
9412
|
}
|
|
@@ -9397,7 +9414,7 @@ function ru({
|
|
|
9397
9414
|
var B;
|
|
9398
9415
|
(B = S.current) == null || B.reset(), l(""), d(null);
|
|
9399
9416
|
}
|
|
9400
|
-
const
|
|
9417
|
+
const z = C(async (B) => {
|
|
9401
9418
|
m(null);
|
|
9402
9419
|
const re = await Z();
|
|
9403
9420
|
if (re !== null)
|
|
@@ -9409,14 +9426,14 @@ function ru({
|
|
|
9409
9426
|
m(M.message), r == null || r(M);
|
|
9410
9427
|
}
|
|
9411
9428
|
});
|
|
9412
|
-
return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(
|
|
9413
|
-
/* @__PURE__ */ h(
|
|
9414
|
-
/* @__PURE__ */
|
|
9429
|
+
return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Ll, {}) }) : b ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ D("div", { className: "flex flex-col items-center gap-4 p-8 text-center", children: [
|
|
9430
|
+
/* @__PURE__ */ h(eo, { className: "h-12 w-12 text-primary" }),
|
|
9431
|
+
/* @__PURE__ */ D("div", { className: "space-y-1", children: [
|
|
9415
9432
|
/* @__PURE__ */ h("p", { className: "font-semibold", children: "Check your inbox" }),
|
|
9416
|
-
/* @__PURE__ */
|
|
9433
|
+
/* @__PURE__ */ D("p", { className: "text-sm text-muted-foreground", children: [
|
|
9417
9434
|
"We sent a reset link to",
|
|
9418
9435
|
" ",
|
|
9419
|
-
/* @__PURE__ */ h("span", { className: "font-medium text-foreground", children:
|
|
9436
|
+
/* @__PURE__ */ h("span", { className: "font-medium text-foreground", children: U("email") })
|
|
9420
9437
|
] })
|
|
9421
9438
|
] }),
|
|
9422
9439
|
n && /* @__PURE__ */ h(
|
|
@@ -9427,7 +9444,7 @@ function ru({
|
|
|
9427
9444
|
children: "Back to sign in"
|
|
9428
9445
|
}
|
|
9429
9446
|
)
|
|
9430
|
-
] }) }) : /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */
|
|
9447
|
+
] }) }) : /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ D("div", { className: "p-6 space-y-5", children: [
|
|
9431
9448
|
(i == null ? void 0 : i.logoUrl) && /* @__PURE__ */ h(
|
|
9432
9449
|
"img",
|
|
9433
9450
|
{
|
|
@@ -9436,13 +9453,13 @@ function ru({
|
|
|
9436
9453
|
className: "mx-auto h-8 object-contain"
|
|
9437
9454
|
}
|
|
9438
9455
|
),
|
|
9439
|
-
/* @__PURE__ */
|
|
9456
|
+
/* @__PURE__ */ D("div", { className: "space-y-1 text-center", children: [
|
|
9440
9457
|
/* @__PURE__ */ h("h1", { className: "text-xl font-bold tracking-tight", children: s }),
|
|
9441
9458
|
/* @__PURE__ */ h("p", { className: "text-sm text-muted-foreground", children: "Enter your email and we'll send you a reset link" })
|
|
9442
9459
|
] }),
|
|
9443
|
-
/* @__PURE__ */
|
|
9460
|
+
/* @__PURE__ */ D("form", { onSubmit: z, noValidate: !0, className: "space-y-4", children: [
|
|
9444
9461
|
p && /* @__PURE__ */ h("p", { className: "rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive", children: p }),
|
|
9445
|
-
/* @__PURE__ */
|
|
9462
|
+
/* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
|
|
9446
9463
|
/* @__PURE__ */ h(Ze, { htmlFor: "forgot-email", children: "Email" }),
|
|
9447
9464
|
/* @__PURE__ */ h(
|
|
9448
9465
|
He,
|
|
@@ -9456,7 +9473,7 @@ function ru({
|
|
|
9456
9473
|
),
|
|
9457
9474
|
I.email && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: I.email.message })
|
|
9458
9475
|
] }),
|
|
9459
|
-
(i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */
|
|
9476
|
+
(i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */ D("div", { className: "space-y-1", children: [
|
|
9460
9477
|
/* @__PURE__ */ h(
|
|
9461
9478
|
Wt,
|
|
9462
9479
|
{
|
|
@@ -9470,7 +9487,7 @@ function ru({
|
|
|
9470
9487
|
),
|
|
9471
9488
|
f && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: f })
|
|
9472
9489
|
] }),
|
|
9473
|
-
/* @__PURE__ */
|
|
9490
|
+
/* @__PURE__ */ D(pt, { type: "submit", className: "w-full", disabled: x, children: [
|
|
9474
9491
|
x && /* @__PURE__ */ h(hr, { className: "animate-spin" }),
|
|
9475
9492
|
x ? "Sending…" : "Send reset link"
|
|
9476
9493
|
] })
|
|
@@ -9485,7 +9502,7 @@ function ru({
|
|
|
9485
9502
|
) })
|
|
9486
9503
|
] }) });
|
|
9487
9504
|
}
|
|
9488
|
-
function
|
|
9505
|
+
function jl({
|
|
9489
9506
|
className: t,
|
|
9490
9507
|
onSuccess: e,
|
|
9491
9508
|
onError: r,
|
|
@@ -9513,7 +9530,7 @@ function Ll({
|
|
|
9513
9530
|
onKeyDown: (l) => l.key === "Enter" && c(),
|
|
9514
9531
|
children: s({ isLoading: i })
|
|
9515
9532
|
}
|
|
9516
|
-
) : /* @__PURE__ */
|
|
9533
|
+
) : /* @__PURE__ */ D(
|
|
9517
9534
|
pt,
|
|
9518
9535
|
{
|
|
9519
9536
|
variant: "outline",
|
|
@@ -9521,13 +9538,13 @@ function Ll({
|
|
|
9521
9538
|
disabled: i,
|
|
9522
9539
|
className: me("gap-2", t),
|
|
9523
9540
|
children: [
|
|
9524
|
-
/* @__PURE__ */ h(
|
|
9541
|
+
/* @__PURE__ */ h(ro, { className: "h-4 w-4" }),
|
|
9525
9542
|
i ? "Signing out…" : n
|
|
9526
9543
|
]
|
|
9527
9544
|
}
|
|
9528
9545
|
);
|
|
9529
9546
|
}
|
|
9530
|
-
function
|
|
9547
|
+
function Ml(t, e = []) {
|
|
9531
9548
|
let r = [];
|
|
9532
9549
|
function n(a, i) {
|
|
9533
9550
|
const o = w.createContext(i);
|
|
@@ -9559,9 +9576,9 @@ function jl(t, e = []) {
|
|
|
9559
9576
|
);
|
|
9560
9577
|
};
|
|
9561
9578
|
};
|
|
9562
|
-
return s.scopeName = t, [n,
|
|
9579
|
+
return s.scopeName = t, [n, Vl(s, ...e)];
|
|
9563
9580
|
}
|
|
9564
|
-
function
|
|
9581
|
+
function Vl(...t) {
|
|
9565
9582
|
const e = t[0];
|
|
9566
9583
|
if (t.length === 1) return e;
|
|
9567
9584
|
const r = () => {
|
|
@@ -9579,7 +9596,7 @@ function Ml(...t) {
|
|
|
9579
9596
|
};
|
|
9580
9597
|
return r.scopeName = e.scopeName, r;
|
|
9581
9598
|
}
|
|
9582
|
-
function
|
|
9599
|
+
function $l(t) {
|
|
9583
9600
|
const e = w.useRef(t);
|
|
9584
9601
|
return w.useEffect(() => {
|
|
9585
9602
|
e.current = t;
|
|
@@ -9599,7 +9616,7 @@ var tr = { exports: {} }, jr = {};
|
|
|
9599
9616
|
* LICENSE file in the root directory of this source tree.
|
|
9600
9617
|
*/
|
|
9601
9618
|
var ks;
|
|
9602
|
-
function
|
|
9619
|
+
function Fl() {
|
|
9603
9620
|
if (ks) return jr;
|
|
9604
9621
|
ks = 1;
|
|
9605
9622
|
var t = Ne;
|
|
@@ -9650,7 +9667,7 @@ var Mr = {};
|
|
|
9650
9667
|
* LICENSE file in the root directory of this source tree.
|
|
9651
9668
|
*/
|
|
9652
9669
|
var Ss;
|
|
9653
|
-
function
|
|
9670
|
+
function Dl() {
|
|
9654
9671
|
return Ss || (Ss = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
9655
9672
|
function t(m, b) {
|
|
9656
9673
|
return m === b && (m !== 0 || 1 / m === 1 / b) || m !== m && b !== b;
|
|
@@ -9703,26 +9720,26 @@ function Fl() {
|
|
|
9703
9720
|
})()), Mr;
|
|
9704
9721
|
}
|
|
9705
9722
|
var Cs;
|
|
9706
|
-
function
|
|
9707
|
-
return Cs || (Cs = 1, process.env.NODE_ENV === "production" ? tr.exports =
|
|
9723
|
+
function Ul() {
|
|
9724
|
+
return Cs || (Cs = 1, process.env.NODE_ENV === "production" ? tr.exports = Fl() : tr.exports = Dl()), tr.exports;
|
|
9708
9725
|
}
|
|
9709
|
-
var
|
|
9710
|
-
function
|
|
9711
|
-
return
|
|
9712
|
-
|
|
9726
|
+
var zl = Ul();
|
|
9727
|
+
function Zl() {
|
|
9728
|
+
return zl.useSyncExternalStore(
|
|
9729
|
+
Bl,
|
|
9713
9730
|
() => !0,
|
|
9714
9731
|
() => !1
|
|
9715
9732
|
);
|
|
9716
9733
|
}
|
|
9717
|
-
function
|
|
9734
|
+
function Bl() {
|
|
9718
9735
|
return () => {
|
|
9719
9736
|
};
|
|
9720
9737
|
}
|
|
9721
|
-
var vn = "Avatar", [
|
|
9738
|
+
var vn = "Avatar", [Wl] = Ml(vn), [ql, Na] = Wl(vn), Aa = w.forwardRef(
|
|
9722
9739
|
(t, e) => {
|
|
9723
9740
|
const { __scopeAvatar: r, ...n } = t, [s, a] = w.useState("idle");
|
|
9724
9741
|
return /* @__PURE__ */ h(
|
|
9725
|
-
|
|
9742
|
+
ql,
|
|
9726
9743
|
{
|
|
9727
9744
|
scope: r,
|
|
9728
9745
|
imageLoadingStatus: s,
|
|
@@ -9736,7 +9753,7 @@ Aa.displayName = vn;
|
|
|
9736
9753
|
var Ta = "AvatarImage", Pa = w.forwardRef(
|
|
9737
9754
|
(t, e) => {
|
|
9738
9755
|
const { __scopeAvatar: r, src: n, onLoadingStatusChange: s = () => {
|
|
9739
|
-
}, ...a } = t, i = Na(Ta, r), o =
|
|
9756
|
+
}, ...a } = t, i = Na(Ta, r), o = Gl(n, a), c = $l((l) => {
|
|
9740
9757
|
s(l), i.onImageLoadingStatusChange(l);
|
|
9741
9758
|
});
|
|
9742
9759
|
return xt(() => {
|
|
@@ -9760,8 +9777,8 @@ La.displayName = Ia;
|
|
|
9760
9777
|
function Es(t, e) {
|
|
9761
9778
|
return t ? e ? (t.src !== e && (t.src = e), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
9762
9779
|
}
|
|
9763
|
-
function
|
|
9764
|
-
const n =
|
|
9780
|
+
function Gl(t, { referrerPolicy: e, crossOrigin: r }) {
|
|
9781
|
+
const n = Zl(), s = w.useRef(null), a = n ? (s.current || (s.current = new window.Image()), s.current) : null, [i, o] = w.useState(
|
|
9765
9782
|
() => Es(a, t)
|
|
9766
9783
|
);
|
|
9767
9784
|
return xt(() => {
|
|
@@ -9811,7 +9828,7 @@ const Da = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
|
9811
9828
|
}
|
|
9812
9829
|
));
|
|
9813
9830
|
Da.displayName = Va.displayName;
|
|
9814
|
-
function
|
|
9831
|
+
function su({
|
|
9815
9832
|
className: t,
|
|
9816
9833
|
onEditProfile: e,
|
|
9817
9834
|
showLogout: r = !0,
|
|
@@ -9824,13 +9841,13 @@ function nu({
|
|
|
9824
9841
|
if (!i || !s)
|
|
9825
9842
|
return /* @__PURE__ */ h(Be, { className: me("w-full max-w-md", t), children: /* @__PURE__ */ h(nr, { className: "py-10 text-center", children: /* @__PURE__ */ h("p", { className: "text-sm text-muted-foreground", children: "Not signed in" }) }) });
|
|
9826
9843
|
const o = [(l = s.firstName) == null ? void 0 : l[0], (f = s.lastName) == null ? void 0 : f[0]].filter(Boolean).join("").toUpperCase(), c = [s.firstName, s.lastName].filter(Boolean).join(" ");
|
|
9827
|
-
return /* @__PURE__ */
|
|
9828
|
-
/* @__PURE__ */ h(ma, { children: /* @__PURE__ */
|
|
9829
|
-
/* @__PURE__ */
|
|
9844
|
+
return /* @__PURE__ */ D(Be, { className: me("w-full max-w-md", t), children: [
|
|
9845
|
+
/* @__PURE__ */ h(ma, { children: /* @__PURE__ */ D("div", { className: "flex items-start gap-4", children: [
|
|
9846
|
+
/* @__PURE__ */ D($a, { className: "h-16 w-16", children: [
|
|
9830
9847
|
s.avatarUrl && /* @__PURE__ */ h(Fa, { src: s.avatarUrl, alt: c }),
|
|
9831
9848
|
/* @__PURE__ */ h(Da, { className: "text-lg", children: o })
|
|
9832
9849
|
] }),
|
|
9833
|
-
/* @__PURE__ */
|
|
9850
|
+
/* @__PURE__ */ D("div", { className: "flex-1 space-y-1", children: [
|
|
9834
9851
|
/* @__PURE__ */ h(ya, { className: "text-xl", children: c }),
|
|
9835
9852
|
/* @__PURE__ */ h(ga, { children: s.email })
|
|
9836
9853
|
] }),
|
|
@@ -9841,16 +9858,16 @@ function nu({
|
|
|
9841
9858
|
size: "icon",
|
|
9842
9859
|
onClick: () => e(s),
|
|
9843
9860
|
"aria-label": "Edit profile",
|
|
9844
|
-
children: /* @__PURE__ */ h(
|
|
9861
|
+
children: /* @__PURE__ */ h(so, { className: "h-4 w-4" })
|
|
9845
9862
|
}
|
|
9846
9863
|
)
|
|
9847
9864
|
] }) }),
|
|
9848
9865
|
/* @__PURE__ */ h(Tt, {}),
|
|
9849
|
-
/* @__PURE__ */
|
|
9866
|
+
/* @__PURE__ */ D(nr, { className: "space-y-4 pt-4", children: [
|
|
9850
9867
|
/* @__PURE__ */ h(
|
|
9851
9868
|
Vr,
|
|
9852
9869
|
{
|
|
9853
|
-
icon: /* @__PURE__ */ h(
|
|
9870
|
+
icon: /* @__PURE__ */ h(no, { className: "h-4 w-4 text-muted-foreground" }),
|
|
9854
9871
|
label: "Email",
|
|
9855
9872
|
value: s.email
|
|
9856
9873
|
}
|
|
@@ -9858,7 +9875,7 @@ function nu({
|
|
|
9858
9875
|
s.whatsappNumber && /* @__PURE__ */ h(
|
|
9859
9876
|
Vr,
|
|
9860
9877
|
{
|
|
9861
|
-
icon: /* @__PURE__ */ h(
|
|
9878
|
+
icon: /* @__PURE__ */ h(ao, { className: "h-4 w-4 text-muted-foreground" }),
|
|
9862
9879
|
label: "WhatsApp",
|
|
9863
9880
|
value: s.whatsappNumber
|
|
9864
9881
|
}
|
|
@@ -9869,16 +9886,16 @@ function nu({
|
|
|
9869
9886
|
([d, p]) => typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ h(
|
|
9870
9887
|
Vr,
|
|
9871
9888
|
{
|
|
9872
|
-
label:
|
|
9889
|
+
label: Hl(d),
|
|
9873
9890
|
value: String(p)
|
|
9874
9891
|
},
|
|
9875
9892
|
d
|
|
9876
9893
|
) : null
|
|
9877
9894
|
),
|
|
9878
|
-
r && /* @__PURE__ */
|
|
9895
|
+
r && /* @__PURE__ */ D(tn, { children: [
|
|
9879
9896
|
/* @__PURE__ */ h(Tt, {}),
|
|
9880
9897
|
/* @__PURE__ */ h(
|
|
9881
|
-
|
|
9898
|
+
jl,
|
|
9882
9899
|
{
|
|
9883
9900
|
className: "w-full",
|
|
9884
9901
|
onSuccess: n
|
|
@@ -9889,25 +9906,25 @@ function nu({
|
|
|
9889
9906
|
] });
|
|
9890
9907
|
}
|
|
9891
9908
|
function Vr({ icon: t, label: e, value: r }) {
|
|
9892
|
-
return /* @__PURE__ */
|
|
9909
|
+
return /* @__PURE__ */ D("div", { className: "flex items-center gap-3", children: [
|
|
9893
9910
|
t && /* @__PURE__ */ h("span", { className: "shrink-0", children: t }),
|
|
9894
|
-
/* @__PURE__ */
|
|
9911
|
+
/* @__PURE__ */ D("div", { className: "min-w-0", children: [
|
|
9895
9912
|
/* @__PURE__ */ h("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: e }),
|
|
9896
9913
|
/* @__PURE__ */ h("p", { className: "truncate text-sm", children: r })
|
|
9897
9914
|
] })
|
|
9898
9915
|
] });
|
|
9899
9916
|
}
|
|
9900
|
-
function
|
|
9917
|
+
function Hl(t) {
|
|
9901
9918
|
return t.replace(/([A-Z])/g, " $1").replace(/_/g, " ").trim().replace(/^\w/, (e) => e.toUpperCase());
|
|
9902
9919
|
}
|
|
9903
9920
|
export {
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9921
|
+
Ql as AuthProvider,
|
|
9922
|
+
nu as ForgotPasswordForm,
|
|
9923
|
+
eu as GuestRoute,
|
|
9924
|
+
tu as LoginForm,
|
|
9925
|
+
jl as LogoutButton,
|
|
9926
|
+
su as ProfileComponent,
|
|
9927
|
+
ru as SignupForm,
|
|
9911
9928
|
Pt as useAuth,
|
|
9912
9929
|
gr as useAuthConfig
|
|
9913
9930
|
};
|