@burdenoff/microfe-auth 2026.1030.1 → 2026.1101.1
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/auth/AuthRoot.js +14 -11
- package/dist/auth/AuthRoot.js.map +1 -1
- package/dist/auth/AuthRoutes.js +1 -2
- package/dist/auth/AuthRoutes.js.map +1 -1
- package/dist/auth/components/AuthIcons.js +1 -2
- package/dist/auth/components/AuthIcons.js.map +1 -1
- package/dist/auth/components/AuthLayout.js +1 -2
- package/dist/auth/components/AuthLayout.js.map +1 -1
- package/dist/auth/components/CaptchaV2.js +9 -10
- package/dist/auth/components/CaptchaV2.js.map +1 -1
- package/dist/auth/components/ConfirmActionDialog.js +1 -2
- package/dist/auth/components/ConfirmActionDialog.js.map +1 -1
- package/dist/auth/components/profile/UserProfileMenu.js +7 -6
- package/dist/auth/components/profile/UserProfileMenu.js.map +1 -1
- package/dist/auth/components/workspace/WorkspaceSelector.js +1 -2
- package/dist/auth/components/workspace/WorkspaceSelector.js.map +1 -1
- package/dist/auth/constants/permissions.js +1 -2
- package/dist/auth/constants/permissions.js.map +1 -1
- package/dist/auth/constants/sessionKeys.js +1 -2
- package/dist/auth/constants/sessionKeys.js.map +1 -1
- package/dist/auth/hooks/contextDeepLink.js +1 -2
- package/dist/auth/hooks/contextDeepLink.js.map +1 -1
- package/dist/auth/hooks/index.js +12 -11
- package/dist/auth/hooks/useAccountOperations.js +1 -2
- package/dist/auth/hooks/useAccountOperations.js.map +1 -1
- package/dist/auth/hooks/useActiveContextBootstrapMirror.js +1 -2
- package/dist/auth/hooks/useActiveContextBootstrapMirror.js.map +1 -1
- package/dist/auth/hooks/useAuthOperations.js +37 -37
- package/dist/auth/hooks/useAuthOperations.js.map +1 -1
- package/dist/auth/hooks/useAuthPermissions.js +1 -2
- package/dist/auth/hooks/useAuthPermissions.js.map +1 -1
- package/dist/auth/hooks/useCaptchaV3.js +1 -2
- package/dist/auth/hooks/useCaptchaV3.js.map +1 -1
- package/dist/auth/hooks/useContextSwitcherData.js +81 -78
- package/dist/auth/hooks/useContextSwitcherData.js.map +1 -1
- package/dist/auth/hooks/useMfaOperations.js +4 -5
- package/dist/auth/hooks/useMfaOperations.js.map +1 -1
- package/dist/auth/hooks/useMyWorkspaces.js +4 -5
- package/dist/auth/hooks/useMyWorkspaces.js.map +1 -1
- package/dist/auth/hooks/useOAuthOperations.js +11 -12
- package/dist/auth/hooks/useOAuthOperations.js.map +1 -1
- package/dist/auth/hooks/usePasswordOperations.js +1 -2
- package/dist/auth/hooks/usePasswordOperations.js.map +1 -1
- package/dist/auth/hooks/useSessionOperations.js +3 -4
- package/dist/auth/hooks/useSessionOperations.js.map +1 -1
- package/dist/auth/hooks/useSignupCaptcha.js +1 -2
- package/dist/auth/hooks/useSignupCaptcha.js.map +1 -1
- package/dist/auth/hooks/useSsoOperations.js +80 -81
- package/dist/auth/hooks/useSsoOperations.js.map +1 -1
- package/dist/auth/hooks/useTokenRefresh.js +8 -12
- package/dist/auth/hooks/useTokenRefresh.js.map +1 -1
- package/dist/auth/hooks/useUserOperations.js +1 -2
- package/dist/auth/hooks/useUserOperations.js.map +1 -1
- package/dist/auth/hooks/useWorkspaceOperations.js +1 -2
- package/dist/auth/hooks/useWorkspaceOperations.js.map +1 -1
- package/dist/auth/hooks/useWorkspaceToken.js +1 -2
- package/dist/auth/hooks/useWorkspaceToken.js.map +1 -1
- package/dist/auth/index.js +19 -18
- package/dist/auth/pages/AuditLogPage.js +21 -22
- package/dist/auth/pages/AuditLogPage.js.map +1 -1
- package/dist/auth/pages/EmailVerifyPage.js +70 -64
- package/dist/auth/pages/EmailVerifyPage.js.map +1 -1
- package/dist/auth/pages/LoginPage.js +89 -105
- package/dist/auth/pages/LoginPage.js.map +1 -1
- package/dist/auth/pages/MagicLinkPage.js +30 -31
- package/dist/auth/pages/MagicLinkPage.js.map +1 -1
- package/dist/auth/pages/MfaSetupPage.js +18 -20
- package/dist/auth/pages/MfaSetupPage.js.map +1 -1
- package/dist/auth/pages/MfaVerifyPage.js +31 -35
- package/dist/auth/pages/MfaVerifyPage.js.map +1 -1
- package/dist/auth/pages/OAuthCallbackPage.js +4 -11
- package/dist/auth/pages/OAuthCallbackPage.js.map +1 -1
- package/dist/auth/pages/PasswordResetPage.js +20 -23
- package/dist/auth/pages/PasswordResetPage.js.map +1 -1
- package/dist/auth/pages/ReactivatePage.js +14 -18
- package/dist/auth/pages/ReactivatePage.js.map +1 -1
- package/dist/auth/pages/RegisterPage.js +180 -181
- package/dist/auth/pages/RegisterPage.js.map +1 -1
- package/dist/auth/pages/SSOClearPage.js +9 -10
- package/dist/auth/pages/SSOClearPage.js.map +1 -1
- package/dist/auth/pages/SSODepositPage.js +9 -13
- package/dist/auth/pages/SSODepositPage.js.map +1 -1
- package/dist/auth/pages/SSORelayCallbackPage.js +3 -7
- package/dist/auth/pages/SSORelayCallbackPage.js.map +1 -1
- package/dist/auth/pages/SSORelayPage.js +11 -10
- package/dist/auth/pages/SSORelayPage.js.map +1 -1
- package/dist/auth/pages/SecurityPage.js +19 -21
- package/dist/auth/pages/SecurityPage.js.map +1 -1
- package/dist/auth/pages/SessionBridgePage.js +9 -16
- package/dist/auth/pages/SessionBridgePage.js.map +1 -1
- package/dist/auth/pages/SessionsPage.js +17 -18
- package/dist/auth/pages/SessionsPage.js.map +1 -1
- package/dist/auth/pages/SsoCallbackPage.js +17 -22
- package/dist/auth/pages/SsoCallbackPage.js.map +1 -1
- package/dist/auth/pages/SsoConfigPage.js +69 -69
- package/dist/auth/pages/SsoConfigPage.js.map +1 -1
- package/dist/auth/pages/SsoLoginPage.js +9 -10
- package/dist/auth/pages/SsoLoginPage.js.map +1 -1
- package/dist/auth/pages/UserDetailsPage.js +16 -23
- package/dist/auth/pages/UserDetailsPage.js.map +1 -1
- package/dist/auth/pages/UserProfilePage.js +140 -141
- package/dist/auth/pages/UserProfilePage.js.map +1 -1
- package/dist/auth/pages/UsersPage.js +446 -453
- package/dist/auth/pages/UsersPage.js.map +1 -1
- package/dist/auth/providers/AuthProvider.js +1 -2
- package/dist/auth/providers/AuthProvider.js.map +1 -1
- package/dist/auth/providers/CaptchaProvider.js +1 -2
- package/dist/auth/providers/CaptchaProvider.js.map +1 -1
- package/dist/auth/store/authStore.js +5 -12
- package/dist/auth/store/authStore.js.map +1 -1
- package/dist/auth/utils/captchaConfig.js +5 -8
- package/dist/auth/utils/captchaConfig.js.map +1 -1
- package/dist/auth/utils/formatters.js +1 -2
- package/dist/auth/utils/formatters.js.map +1 -1
- package/dist/auth/utils/gatewayBaseUrls.js +1 -2
- package/dist/auth/utils/gatewayBaseUrls.js.map +1 -1
- package/dist/auth/utils/legalUrls.js +2 -3
- package/dist/auth/utils/legalUrls.js.map +1 -1
- package/dist/auth/utils/redirect.js +1 -2
- package/dist/auth/utils/redirect.js.map +1 -1
- package/dist/auth/utils/ssoOrigins.js +2 -3
- package/dist/auth/utils/ssoOrigins.js.map +1 -1
- package/dist/auth/utils/validation.js +34 -36
- package/dist/auth/utils/validation.js.map +1 -1
- package/dist/generated/global-operations.js +2 -3
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/wspace-operations.js +2 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/microfe-auth.css +1 -1
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/dist/translations/en.js +1 -2
- package/dist/translations/en.js.map +1 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +7 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
|
+
import { validateEmail as t, validatePassword as ee, validateUserFields as te } from "../utils/validation.js";
|
|
3
|
+
import { resolveLegalUrl as n } from "../utils/legalUrls.js";
|
|
4
|
+
import { useAuthOperations as r } from "../hooks/useAuthOperations.js";
|
|
5
|
+
import { useOAuthOperations as i } from "../hooks/useOAuthOperations.js";
|
|
6
|
+
import { AuthLayout as a } from "../components/AuthLayout.js";
|
|
7
|
+
import { AlertIcon as o, CheckIcon as s, EmailIcon as c, EyeIcon as l, EyeOffIcon as u, GitHubIcon as ne, GoogleIcon as d, LockIcon as re, MicrosoftIcon as f, SpinnerIcon as p, UserIcon as m, XIcon as h } from "../components/AuthIcons.js";
|
|
8
|
+
import { useAuth as ie } from "../providers/AuthProvider.js";
|
|
9
9
|
import { CaptchaV2 as ae } from "../components/CaptchaV2.js";
|
|
10
10
|
import { useSignupCaptcha as oe } from "../hooks/useSignupCaptcha.js";
|
|
11
11
|
import { useState as g } from "react";
|
|
12
|
-
import { useNavigate as
|
|
13
|
-
import { Fragment as
|
|
14
|
-
import { Button as
|
|
15
|
-
import { PagePurpose as
|
|
16
|
-
|
|
17
|
-
function
|
|
18
|
-
let
|
|
12
|
+
import { useNavigate as se } from "react-router";
|
|
13
|
+
import { Fragment as ce, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
14
|
+
import { Button as y } from "@burdenoff/fe-libs/button";
|
|
15
|
+
import { PagePurpose as le } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
// src/auth/pages/RegisterPage.tsx
|
|
17
|
+
function b() {
|
|
18
|
+
let b = e(), { productName: x } = ie(), S = se(), { signUp: C, resendVerification: w, isLoading: T, errorCode: E } = r(), { initiateGoogleOAuth: ue, initiateMicrosoftOAuth: de, isProviderConfigured: D } = i(), [O, fe] = g(!1), [k, A] = g({
|
|
19
19
|
email: "",
|
|
20
20
|
username: "",
|
|
21
21
|
password: "",
|
|
@@ -25,120 +25,120 @@ function x() {
|
|
|
25
25
|
let e = k.password;
|
|
26
26
|
return [
|
|
27
27
|
{
|
|
28
|
-
label:
|
|
28
|
+
label: b("auth.register.pwMin8", "At least 12 characters"),
|
|
29
29
|
met: e.length >= 12
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
label:
|
|
32
|
+
label: b("auth.register.pwUppercase", "One uppercase letter"),
|
|
33
33
|
met: /[A-Z]/.test(e)
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
label:
|
|
36
|
+
label: b("auth.register.pwLowercase", "One lowercase letter"),
|
|
37
37
|
met: /[a-z]/.test(e)
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
label:
|
|
40
|
+
label: b("auth.register.pwNumber", "One number"),
|
|
41
41
|
met: /\d/.test(e)
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
label:
|
|
44
|
+
label: b("auth.register.pwSpecial", "One special character"),
|
|
45
45
|
met: /[!@#$%^&*(),.?":{}|<>]/.test(e)
|
|
46
46
|
}
|
|
47
47
|
];
|
|
48
48
|
})(), Z = (() => {
|
|
49
49
|
let e = X.filter((e) => e.met).length;
|
|
50
50
|
return e <= 2 ? {
|
|
51
|
-
level:
|
|
51
|
+
level: b("auth.register.passwordStrengthWeak", "weak"),
|
|
52
52
|
color: "bg-status-error-bg-subtle0",
|
|
53
53
|
width: "w-1/4"
|
|
54
54
|
} : e <= 3 ? {
|
|
55
|
-
level:
|
|
55
|
+
level: b("auth.register.passwordStrengthFair", "fair"),
|
|
56
56
|
color: "bg-status-warning-text",
|
|
57
57
|
width: "w-2/4"
|
|
58
58
|
} : e <= 4 ? {
|
|
59
|
-
level:
|
|
59
|
+
level: b("auth.register.passwordStrengthGood", "good"),
|
|
60
60
|
color: "bg-status-warning-bg-subtle0",
|
|
61
61
|
width: "w-3/4"
|
|
62
62
|
} : {
|
|
63
|
-
level:
|
|
63
|
+
level: b("auth.register.passwordStrengthStrong", "strong"),
|
|
64
64
|
color: "bg-status-success-text",
|
|
65
65
|
width: "w-full"
|
|
66
66
|
};
|
|
67
67
|
})(), he = async (e) => {
|
|
68
68
|
e.preventDefault();
|
|
69
|
-
let
|
|
70
|
-
|
|
71
|
-
let
|
|
72
|
-
|
|
73
|
-
let
|
|
74
|
-
if (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
69
|
+
let n = [];
|
|
70
|
+
t(k.email) || n.push(b("auth.register.invalidEmail", "Please enter a valid email address"));
|
|
71
|
+
let r = te(k);
|
|
72
|
+
r.valid || n.push(...r.errors.map((e) => b(`auth.register.${e.field}_${e.code}`, e.message)));
|
|
73
|
+
let i = ee(k.password);
|
|
74
|
+
if (i.valid || n.push(...i.errors), H && !z && n.push(b("auth.register.completeCaptcha", "Please complete the reCAPTCHA verification")), n.length > 0) M(n);
|
|
75
|
+
else {
|
|
76
|
+
M([]), I(null);
|
|
77
|
+
try {
|
|
78
|
+
let e = r.values;
|
|
79
|
+
await C({
|
|
80
|
+
...k,
|
|
81
|
+
firstName: e.firstName,
|
|
82
|
+
lastName: e.lastName,
|
|
83
|
+
username: e.username,
|
|
84
|
+
...z ? { recaptchaToken: z } : {}
|
|
85
|
+
}), P(!0);
|
|
86
|
+
} catch (e) {
|
|
87
|
+
let t = e instanceof Error ? e.message : b("auth.register.signUpFailed", "Sign up failed");
|
|
88
|
+
I(t), console.error("Sign up failed:", e), H && (B(null), pe((e) => e + 1));
|
|
89
|
+
}
|
|
90
90
|
}
|
|
91
91
|
}, ge = () => {
|
|
92
92
|
R(null);
|
|
93
93
|
try {
|
|
94
94
|
ue();
|
|
95
95
|
} catch (e) {
|
|
96
|
-
R(e instanceof Error ? e.message :
|
|
96
|
+
R(e instanceof Error ? e.message : b("auth.register.googleSignUpFailed", "Failed to initiate Google sign up"));
|
|
97
97
|
}
|
|
98
98
|
}, _e = () => {
|
|
99
99
|
R(null);
|
|
100
100
|
try {
|
|
101
101
|
de();
|
|
102
102
|
} catch (e) {
|
|
103
|
-
R(e instanceof Error ? e.message :
|
|
103
|
+
R(e instanceof Error ? e.message : b("auth.register.microsoftSignUpFailed", "Failed to initiate Microsoft sign up"));
|
|
104
104
|
}
|
|
105
105
|
}, Q = D("google"), $ = D("microsoft"), ve = [
|
|
106
106
|
{
|
|
107
107
|
name: "Google",
|
|
108
|
-
icon:
|
|
108
|
+
icon: d,
|
|
109
109
|
onClick: ge,
|
|
110
110
|
disabled: !Q,
|
|
111
|
-
tooltip: Q ? void 0 :
|
|
111
|
+
tooltip: Q ? void 0 : b("auth.register.googleNotConfigured", "Google sign up is not configured")
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
name: "GitHub",
|
|
115
|
-
icon:
|
|
115
|
+
icon: ne,
|
|
116
116
|
onClick: () => {},
|
|
117
117
|
disabled: !0,
|
|
118
|
-
tooltip:
|
|
118
|
+
tooltip: b("auth.register.githubNotConfigured", "GitHub sign up is not configured")
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
name: "Microsoft",
|
|
122
|
-
icon:
|
|
122
|
+
icon: f,
|
|
123
123
|
onClick: _e,
|
|
124
124
|
disabled: !$,
|
|
125
|
-
tooltip: $ ? void 0 :
|
|
125
|
+
tooltip: $ ? void 0 : b("auth.register.microsoftNotConfigured", "Microsoft sign up is not configured")
|
|
126
126
|
}
|
|
127
|
-
], [ye, be = ""] =
|
|
128
|
-
return N ? /* @__PURE__ */
|
|
129
|
-
title:
|
|
130
|
-
subtitle:
|
|
131
|
-
children: /* @__PURE__ */
|
|
127
|
+
], [ye, be = ""] = b("auth.register.verificationEmailSentTo", "We've sent a verification email to {{email}}. Please check your inbox and click the verification link to activate your account.").split("{{email}}");
|
|
128
|
+
return N ? /* @__PURE__ */ _(a, {
|
|
129
|
+
title: b("auth.register.checkEmail", "Check your email"),
|
|
130
|
+
subtitle: b("auth.register.verificationLinkSent", "We've sent you a verification link"),
|
|
131
|
+
children: /* @__PURE__ */ v("div", {
|
|
132
132
|
className: "flex flex-col items-center justify-center py-6",
|
|
133
133
|
children: [
|
|
134
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ _("div", {
|
|
135
135
|
className: "size-20 rounded-full bg-status-success-bg-subtle flex items-center justify-center mb-6",
|
|
136
|
-
children: /* @__PURE__ */
|
|
136
|
+
children: /* @__PURE__ */ _("svg", {
|
|
137
137
|
className: "size-10 text-status-success-text",
|
|
138
138
|
fill: "none",
|
|
139
139
|
viewBox: "0 0 24 24",
|
|
140
140
|
stroke: "currentColor",
|
|
141
|
-
children: /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ _("path", {
|
|
142
142
|
strokeLinecap: "round",
|
|
143
143
|
strokeLinejoin: "round",
|
|
144
144
|
strokeWidth: 2,
|
|
@@ -146,56 +146,56 @@ function x() {
|
|
|
146
146
|
})
|
|
147
147
|
})
|
|
148
148
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ _("h3", {
|
|
150
150
|
className: "text-lg font-semibold text-[var(--color-text-primary)] mb-2",
|
|
151
|
-
children:
|
|
151
|
+
children: b("auth.register.accountCreated", "Account created successfully!")
|
|
152
152
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ v("p", {
|
|
154
154
|
className: "text-center text-[var(--color-text-secondary)] mb-8 max-w-sm",
|
|
155
155
|
children: [
|
|
156
156
|
ye,
|
|
157
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ _("span", {
|
|
158
158
|
className: "font-medium text-[var(--color-text-primary)]",
|
|
159
159
|
children: k.email
|
|
160
160
|
}),
|
|
161
161
|
be
|
|
162
162
|
]
|
|
163
163
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ v("div", {
|
|
165
165
|
className: "space-y-3 w-full",
|
|
166
166
|
children: [
|
|
167
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ _(y, {
|
|
168
168
|
type: "button",
|
|
169
|
-
onClick: () =>
|
|
169
|
+
onClick: () => S("/auth/login"),
|
|
170
170
|
variant: "default",
|
|
171
171
|
size: "lg",
|
|
172
172
|
className: "w-full font-semibold",
|
|
173
|
-
children:
|
|
173
|
+
children: b("auth.register.continueToSignIn", "Continue to sign in")
|
|
174
174
|
}),
|
|
175
|
-
G && /* @__PURE__ */
|
|
175
|
+
G && /* @__PURE__ */ _("p", {
|
|
176
176
|
className: "text-center text-sm text-status-error-text",
|
|
177
177
|
children: G
|
|
178
178
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ v("p", {
|
|
180
180
|
className: "text-center text-sm text-[var(--color-text-tertiary)]",
|
|
181
181
|
children: [
|
|
182
|
-
|
|
182
|
+
b("auth.register.didntReceiveEmail", "Didn't receive the email? Check your spam folder or"),
|
|
183
183
|
" ",
|
|
184
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ _("button", {
|
|
185
185
|
type: "button",
|
|
186
186
|
disabled: U,
|
|
187
187
|
onClick: async () => {
|
|
188
188
|
K(null), W(!0);
|
|
189
189
|
try {
|
|
190
|
-
await
|
|
190
|
+
await w(k.email);
|
|
191
191
|
} catch (e) {
|
|
192
|
-
K(e instanceof Error ? e.message :
|
|
192
|
+
K(e instanceof Error ? e.message : b("auth.register.resendFailed", "Failed to resend verification email"));
|
|
193
193
|
} finally {
|
|
194
194
|
W(!1);
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
className: "text-text-link hover:text-text-linkHover font-medium disabled:opacity-50 disabled:cursor-not-allowed",
|
|
198
|
-
children: U ?
|
|
198
|
+
children: U ? b("auth.register.resending", "resending...") : b("auth.register.tryAgain", "try again")
|
|
199
199
|
})
|
|
200
200
|
]
|
|
201
201
|
})
|
|
@@ -203,122 +203,122 @@ function x() {
|
|
|
203
203
|
})
|
|
204
204
|
]
|
|
205
205
|
})
|
|
206
|
-
}) : /* @__PURE__ */
|
|
207
|
-
title:
|
|
208
|
-
subtitle:
|
|
209
|
-
productName:
|
|
206
|
+
}) : /* @__PURE__ */ v(a, {
|
|
207
|
+
title: b("auth.register.createAccount", "Create your account"),
|
|
208
|
+
subtitle: b("auth.register.startJourney", "Start your journey with {{productName}}").replace("{{productName}}", x || "Burdenoff Workspaces"),
|
|
209
|
+
productName: x,
|
|
210
210
|
children: [
|
|
211
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ _(le, {
|
|
212
212
|
className: "mb-5",
|
|
213
|
-
children:
|
|
213
|
+
children: b("auth.register.purpose", "Create your account to get a personal workspace and start collaborating. You'll verify your email, then you can sign in and invite your team.")
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ v("form", {
|
|
216
216
|
onSubmit: he,
|
|
217
217
|
className: "space-y-5",
|
|
218
218
|
children: [
|
|
219
|
-
q && /* @__PURE__ */
|
|
219
|
+
q && /* @__PURE__ */ v("div", {
|
|
220
220
|
className: "flex items-start gap-3 p-4 rounded-xl bg-status-warning-bg-subtle border border-status-warning-border",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
221
|
+
children: [/* @__PURE__ */ _(o, { className: "size-5 text-status-warning-text flex-shrink-0 mt-0.5" }), /* @__PURE__ */ v("div", {
|
|
222
222
|
className: "space-y-2",
|
|
223
223
|
children: [
|
|
224
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ _("p", {
|
|
225
225
|
className: "text-sm font-medium text-status-warning-text",
|
|
226
|
-
children:
|
|
226
|
+
children: b("auth.register.accountDeactivated", "This email belongs to a deactivated account.")
|
|
227
227
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ _("p", {
|
|
229
229
|
className: "text-xs text-status-warning-text/80",
|
|
230
|
-
children:
|
|
230
|
+
children: b("auth.register.accountDeactivatedHelp", "If this is your account, you can reactivate it instead of creating a new one.")
|
|
231
231
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ _("button", {
|
|
233
233
|
type: "button",
|
|
234
|
-
onClick: () =>
|
|
234
|
+
onClick: () => S("/auth/reactivate", { state: { email: k.email } }),
|
|
235
235
|
className: "text-sm font-semibold text-status-warning-text underline underline-offset-2",
|
|
236
|
-
children:
|
|
236
|
+
children: b("auth.register.reactivateCta", "Reactivate my account")
|
|
237
237
|
})
|
|
238
238
|
]
|
|
239
239
|
})]
|
|
240
240
|
}),
|
|
241
|
-
(J || Y) && /* @__PURE__ */
|
|
241
|
+
(J || Y) && /* @__PURE__ */ v("div", {
|
|
242
242
|
className: "flex items-start gap-3 p-4 rounded-xl bg-status-warning-bg-subtle border border-status-warning-border",
|
|
243
|
-
children: [/* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ _(o, { className: "size-5 text-status-warning-text flex-shrink-0 mt-0.5" }), /* @__PURE__ */ _("p", {
|
|
244
244
|
className: "text-sm text-status-warning-text",
|
|
245
245
|
children: F
|
|
246
246
|
})]
|
|
247
247
|
}),
|
|
248
|
-
(F && !q && !J && !Y || j.length > 0) && /* @__PURE__ */
|
|
248
|
+
(F && !q && !J && !Y || j.length > 0) && /* @__PURE__ */ v("div", {
|
|
249
249
|
className: "flex items-start gap-3 p-4 rounded-xl bg-status-error-bg-subtle border border-status-error-border",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ _(o, { className: "size-5 text-status-error-text flex-shrink-0 mt-0.5" }), /* @__PURE__ */ v("div", {
|
|
251
251
|
className: "space-y-1",
|
|
252
|
-
children: [F && !q && !J && !Y && /* @__PURE__ */
|
|
252
|
+
children: [F && !q && !J && !Y && /* @__PURE__ */ _("p", {
|
|
253
253
|
className: "text-sm text-status-error-text",
|
|
254
254
|
children: F
|
|
255
|
-
}), j.map((e) => /* @__PURE__ */
|
|
255
|
+
}), j.map((e) => /* @__PURE__ */ _("p", {
|
|
256
256
|
className: "text-sm text-status-error-text",
|
|
257
257
|
children: e
|
|
258
258
|
}, e))]
|
|
259
259
|
})]
|
|
260
260
|
}),
|
|
261
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ v("div", {
|
|
262
262
|
className: "grid grid-cols-2 gap-4",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ v("div", {
|
|
264
264
|
className: "space-y-2",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ _("label", {
|
|
266
266
|
htmlFor: "firstName",
|
|
267
267
|
className: "block text-sm font-medium text-[var(--color-text-primary)]",
|
|
268
|
-
children:
|
|
269
|
-
}), /* @__PURE__ */
|
|
268
|
+
children: b("auth.register.firstName", "First Name")
|
|
269
|
+
}), /* @__PURE__ */ _("input", {
|
|
270
270
|
id: "firstName",
|
|
271
271
|
type: "text",
|
|
272
272
|
required: !0,
|
|
273
273
|
"aria-required": "true",
|
|
274
|
-
"aria-label":
|
|
274
|
+
"aria-label": b("auth.register.firstName", "First Name"),
|
|
275
275
|
value: k.firstName,
|
|
276
276
|
onChange: (e) => A({
|
|
277
277
|
...k,
|
|
278
278
|
firstName: e.target.value
|
|
279
279
|
}),
|
|
280
280
|
className: "block w-full px-4 py-3 rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] placeholder:text-[var(--color-text-tertiary)] focus:outline-none focus:ring-2 focus:ring-action-primary-bg/20 focus:border-action-primary-bg transition-all",
|
|
281
|
-
placeholder:
|
|
281
|
+
placeholder: b("auth.register.firstNamePlaceholder", "Enter first name")
|
|
282
282
|
})]
|
|
283
|
-
}), /* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ v("div", {
|
|
284
284
|
className: "space-y-2",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ _("label", {
|
|
286
286
|
htmlFor: "lastName",
|
|
287
287
|
className: "block text-sm font-medium text-[var(--color-text-primary)]",
|
|
288
|
-
children:
|
|
289
|
-
}), /* @__PURE__ */
|
|
288
|
+
children: b("auth.register.lastName", "Last Name")
|
|
289
|
+
}), /* @__PURE__ */ _("input", {
|
|
290
290
|
id: "lastName",
|
|
291
291
|
type: "text",
|
|
292
292
|
required: !0,
|
|
293
293
|
"aria-required": "true",
|
|
294
|
-
"aria-label":
|
|
294
|
+
"aria-label": b("auth.register.lastName", "Last Name"),
|
|
295
295
|
value: k.lastName,
|
|
296
296
|
onChange: (e) => A({
|
|
297
297
|
...k,
|
|
298
298
|
lastName: e.target.value
|
|
299
299
|
}),
|
|
300
300
|
className: "block w-full px-4 py-3 rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] placeholder:text-[var(--color-text-tertiary)] focus:outline-none focus:ring-2 focus:ring-action-primary-bg/20 focus:border-action-primary-bg transition-all",
|
|
301
|
-
placeholder:
|
|
301
|
+
placeholder: b("auth.register.lastNamePlaceholder", "Enter last name")
|
|
302
302
|
})]
|
|
303
303
|
})]
|
|
304
304
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ v("div", {
|
|
306
306
|
className: "space-y-2",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
307
|
+
children: [/* @__PURE__ */ _("label", {
|
|
308
308
|
htmlFor: "username",
|
|
309
309
|
className: "block text-sm font-medium text-[var(--color-text-primary)]",
|
|
310
|
-
children:
|
|
311
|
-
}), /* @__PURE__ */
|
|
310
|
+
children: b("auth.register.username", "Username")
|
|
311
|
+
}), /* @__PURE__ */ v("div", {
|
|
312
312
|
className: "relative",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ _("div", {
|
|
314
314
|
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
315
|
-
children: /* @__PURE__ */
|
|
316
|
-
}), /* @__PURE__ */
|
|
315
|
+
children: /* @__PURE__ */ _(m, { className: "size-5 text-[var(--color-text-tertiary)]" })
|
|
316
|
+
}), /* @__PURE__ */ _("input", {
|
|
317
317
|
id: "username",
|
|
318
318
|
type: "text",
|
|
319
319
|
required: !0,
|
|
320
320
|
"aria-required": "true",
|
|
321
|
-
"aria-label":
|
|
321
|
+
"aria-label": b("auth.register.username", "Username"),
|
|
322
322
|
autoComplete: "username",
|
|
323
323
|
value: k.username,
|
|
324
324
|
onChange: (e) => A({
|
|
@@ -326,27 +326,27 @@ function x() {
|
|
|
326
326
|
username: e.target.value
|
|
327
327
|
}),
|
|
328
328
|
className: "block w-full pl-[3.5rem] pr-4 py-3 rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] placeholder:text-[var(--color-text-tertiary)] focus:outline-none focus:ring-2 focus:ring-action-primary-bg/20 focus:border-action-primary-bg transition-all",
|
|
329
|
-
placeholder:
|
|
329
|
+
placeholder: b("auth.register.usernamePlaceholder", "Choose a username")
|
|
330
330
|
})]
|
|
331
331
|
})]
|
|
332
332
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ v("div", {
|
|
334
334
|
className: "space-y-2",
|
|
335
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ _("label", {
|
|
336
336
|
htmlFor: "email",
|
|
337
337
|
className: "block text-sm font-medium text-[var(--color-text-primary)]",
|
|
338
|
-
children:
|
|
339
|
-
}), /* @__PURE__ */
|
|
338
|
+
children: b("auth.register.email", "Email")
|
|
339
|
+
}), /* @__PURE__ */ v("div", {
|
|
340
340
|
className: "relative",
|
|
341
|
-
children: [/* @__PURE__ */
|
|
341
|
+
children: [/* @__PURE__ */ _("div", {
|
|
342
342
|
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
343
|
-
children: /* @__PURE__ */
|
|
344
|
-
}), /* @__PURE__ */
|
|
343
|
+
children: /* @__PURE__ */ _(c, { className: "size-5 text-[var(--color-text-tertiary)]" })
|
|
344
|
+
}), /* @__PURE__ */ _("input", {
|
|
345
345
|
id: "email",
|
|
346
346
|
type: "email",
|
|
347
347
|
required: !0,
|
|
348
348
|
"aria-required": "true",
|
|
349
|
-
"aria-label":
|
|
349
|
+
"aria-label": b("auth.register.email", "Email"),
|
|
350
350
|
autoComplete: "email",
|
|
351
351
|
value: k.email,
|
|
352
352
|
onChange: (e) => A({
|
|
@@ -354,31 +354,31 @@ function x() {
|
|
|
354
354
|
email: e.target.value
|
|
355
355
|
}),
|
|
356
356
|
className: "block w-full pl-[3.5rem] pr-4 py-3 rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] placeholder:text-[var(--color-text-tertiary)] focus:outline-none focus:ring-2 focus:ring-action-primary-bg/20 focus:border-action-primary-bg transition-all",
|
|
357
|
-
placeholder:
|
|
357
|
+
placeholder: b("auth.register.emailPlaceholder", "you@example.com")
|
|
358
358
|
})]
|
|
359
359
|
})]
|
|
360
360
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ v("div", {
|
|
362
362
|
className: "space-y-2",
|
|
363
363
|
children: [
|
|
364
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ _("label", {
|
|
365
365
|
htmlFor: "password",
|
|
366
366
|
className: "block text-sm font-medium text-[var(--color-text-primary)]",
|
|
367
|
-
children:
|
|
367
|
+
children: b("auth.register.password", "Password")
|
|
368
368
|
}),
|
|
369
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ v("div", {
|
|
370
370
|
className: "relative",
|
|
371
371
|
children: [
|
|
372
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ _("div", {
|
|
373
373
|
className: "absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",
|
|
374
|
-
children: /* @__PURE__ */
|
|
374
|
+
children: /* @__PURE__ */ _(re, { className: "size-5 text-[var(--color-text-tertiary)]" })
|
|
375
375
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ _("input", {
|
|
377
377
|
id: "password",
|
|
378
378
|
type: O ? "text" : "password",
|
|
379
379
|
required: !0,
|
|
380
380
|
"aria-required": "true",
|
|
381
|
-
"aria-label":
|
|
381
|
+
"aria-label": b("auth.register.password", "Password"),
|
|
382
382
|
autoComplete: "new-password",
|
|
383
383
|
value: k.password,
|
|
384
384
|
onChange: (e) => A({
|
|
@@ -386,40 +386,40 @@ function x() {
|
|
|
386
386
|
password: e.target.value
|
|
387
387
|
}),
|
|
388
388
|
className: "block w-full pl-[3.5rem] pr-12 py-3 rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] placeholder:text-[var(--color-text-tertiary)] focus:outline-none focus:ring-2 focus:ring-action-primary-bg/20 focus:border-action-primary-bg transition-all",
|
|
389
|
-
placeholder:
|
|
389
|
+
placeholder: b("auth.register.passwordPlaceholder", "Create a strong password")
|
|
390
390
|
}),
|
|
391
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ _("button", {
|
|
392
392
|
type: "button",
|
|
393
393
|
onClick: () => fe(!O),
|
|
394
|
-
"aria-label": O ?
|
|
394
|
+
"aria-label": O ? b("auth.register.hidePassword", "Hide password") : b("auth.register.showPassword", "Show password"),
|
|
395
395
|
className: "absolute inset-y-0 right-0 pr-3.5 flex items-center text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] transition-colors",
|
|
396
|
-
children:
|
|
396
|
+
children: _(O ? u : l, { className: "size-5" })
|
|
397
397
|
})
|
|
398
398
|
]
|
|
399
399
|
}),
|
|
400
|
-
k.password && /* @__PURE__ */
|
|
400
|
+
k.password && /* @__PURE__ */ v("div", {
|
|
401
401
|
className: "space-y-3 pt-2",
|
|
402
|
-
children: [/* @__PURE__ */
|
|
402
|
+
children: [/* @__PURE__ */ v("div", {
|
|
403
403
|
className: "space-y-1",
|
|
404
|
-
children: [/* @__PURE__ */
|
|
404
|
+
children: [/* @__PURE__ */ _("div", {
|
|
405
405
|
className: "h-1.5 bg-[var(--color-bg-sunken)] rounded-full overflow-hidden",
|
|
406
|
-
children: /* @__PURE__ */
|
|
407
|
-
}), /* @__PURE__ */
|
|
406
|
+
children: /* @__PURE__ */ _("div", { className: `h-full ${Z.color} ${Z.width} transition-all duration-300` })
|
|
407
|
+
}), /* @__PURE__ */ v("p", {
|
|
408
408
|
className: "text-xs text-[var(--color-text-tertiary)] capitalize",
|
|
409
409
|
children: [
|
|
410
|
-
|
|
410
|
+
b("auth.register.passwordStrength", "Password strength:"),
|
|
411
411
|
" ",
|
|
412
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ _("span", {
|
|
413
413
|
className: "font-medium",
|
|
414
414
|
children: Z.level
|
|
415
415
|
})
|
|
416
416
|
]
|
|
417
417
|
})]
|
|
418
|
-
}), /* @__PURE__ */
|
|
418
|
+
}), /* @__PURE__ */ _("div", {
|
|
419
419
|
className: "grid grid-cols-2 gap-2",
|
|
420
|
-
children: X.map((e) => /* @__PURE__ */
|
|
420
|
+
children: X.map((e) => /* @__PURE__ */ v("div", {
|
|
421
421
|
className: "flex items-center gap-2",
|
|
422
|
-
children: [e.met ? /* @__PURE__ */
|
|
422
|
+
children: [e.met ? /* @__PURE__ */ _(s, { className: "size-4 text-status-success-text" }) : /* @__PURE__ */ _(h, { className: "size-4 text-[var(--color-text-tertiary)]" }), /* @__PURE__ */ _("span", {
|
|
423
423
|
className: `text-xs ${e.met ? "text-status-success-text" : "text-[var(--color-text-tertiary)]"}`,
|
|
424
424
|
children: e.label
|
|
425
425
|
})]
|
|
@@ -428,98 +428,97 @@ function x() {
|
|
|
428
428
|
})
|
|
429
429
|
]
|
|
430
430
|
}),
|
|
431
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ v("p", {
|
|
432
432
|
className: "text-xs text-[var(--color-text-tertiary)] leading-relaxed",
|
|
433
433
|
children: [
|
|
434
|
-
|
|
434
|
+
b("auth.register.agreeToTerms", "By creating an account, you agree to our"),
|
|
435
435
|
" ",
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
href:
|
|
436
|
+
/* @__PURE__ */ _("a", {
|
|
437
|
+
href: n("/terms"),
|
|
438
438
|
target: "_blank",
|
|
439
439
|
rel: "noopener noreferrer",
|
|
440
440
|
className: "text-text-link underline underline-offset-2",
|
|
441
|
-
children:
|
|
441
|
+
children: b("auth.register.termsOfService", "Terms of Service")
|
|
442
442
|
}),
|
|
443
443
|
" ",
|
|
444
|
-
|
|
444
|
+
b("auth.register.and", "and"),
|
|
445
445
|
" ",
|
|
446
|
-
/* @__PURE__ */
|
|
447
|
-
href:
|
|
446
|
+
/* @__PURE__ */ _("a", {
|
|
447
|
+
href: n("/privacy"),
|
|
448
448
|
target: "_blank",
|
|
449
449
|
rel: "noopener noreferrer",
|
|
450
450
|
className: "text-text-link underline underline-offset-2",
|
|
451
|
-
children:
|
|
451
|
+
children: b("auth.register.privacyPolicy", "Privacy Policy")
|
|
452
452
|
}),
|
|
453
453
|
"."
|
|
454
454
|
]
|
|
455
455
|
}),
|
|
456
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ _(ae, {
|
|
457
457
|
enabled: H,
|
|
458
458
|
siteKey: me,
|
|
459
459
|
onVerify: B,
|
|
460
460
|
onExpired: () => B(null)
|
|
461
461
|
}, V),
|
|
462
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ _(y, {
|
|
463
463
|
type: "submit",
|
|
464
464
|
disabled: T,
|
|
465
465
|
variant: "default",
|
|
466
466
|
size: "lg",
|
|
467
467
|
className: "w-full font-semibold",
|
|
468
|
-
children: T ? /* @__PURE__ */
|
|
468
|
+
children: T ? /* @__PURE__ */ v(ce, { children: [/* @__PURE__ */ _(p, { className: "size-5 animate-spin" }), /* @__PURE__ */ _("span", { children: b("auth.register.creatingAccount", "Creating account...") })] }) : b("auth.register.createAccountBtn", "Create account")
|
|
469
469
|
})
|
|
470
470
|
]
|
|
471
471
|
}),
|
|
472
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ v("div", {
|
|
473
473
|
className: "relative my-8",
|
|
474
|
-
children: [/* @__PURE__ */
|
|
474
|
+
children: [/* @__PURE__ */ _("div", {
|
|
475
475
|
className: "absolute inset-0 flex items-center",
|
|
476
|
-
children: /* @__PURE__ */
|
|
477
|
-
}), /* @__PURE__ */
|
|
476
|
+
children: /* @__PURE__ */ _("div", { className: "w-full border-t border-[var(--color-border-default)]" })
|
|
477
|
+
}), /* @__PURE__ */ _("div", {
|
|
478
478
|
className: "relative flex justify-center",
|
|
479
|
-
children: /* @__PURE__ */
|
|
479
|
+
children: /* @__PURE__ */ _("span", {
|
|
480
480
|
className: "px-4 bg-[var(--color-bg-canvas)] text-sm text-[var(--color-text-tertiary)]",
|
|
481
|
-
children:
|
|
481
|
+
children: b("auth.register.orSignUpWith", "or sign up with")
|
|
482
482
|
})
|
|
483
483
|
})]
|
|
484
484
|
}),
|
|
485
|
-
L && /* @__PURE__ */
|
|
485
|
+
L && /* @__PURE__ */ v("div", {
|
|
486
486
|
className: "flex items-start gap-3 p-4 rounded-xl border bg-status-error-bg-subtle border-status-error-border",
|
|
487
|
-
children: [/* @__PURE__ */
|
|
487
|
+
children: [/* @__PURE__ */ _(o, { className: "size-5 flex-shrink-0 mt-0.5 text-status-error-text" }), /* @__PURE__ */ _("p", {
|
|
488
488
|
className: "text-sm text-status-error-text",
|
|
489
489
|
children: L
|
|
490
490
|
})]
|
|
491
491
|
}),
|
|
492
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ _("div", {
|
|
493
493
|
className: "grid grid-cols-3 gap-3",
|
|
494
|
-
children: ve.map((e) => /* @__PURE__ */
|
|
494
|
+
children: ve.map((e) => /* @__PURE__ */ v("button", {
|
|
495
495
|
type: "button",
|
|
496
496
|
onClick: e.onClick,
|
|
497
497
|
disabled: e.disabled,
|
|
498
498
|
title: e.tooltip,
|
|
499
499
|
className: `flex items-center justify-center gap-2 px-4 py-3 rounded-xl border transition-all duration-200 group ${e.disabled ? "border-[var(--color-border-subtle)] bg-[var(--color-bg-disabled)] cursor-not-allowed opacity-50" : "border-[var(--color-border-default)] bg-[var(--color-bg-surface)] hover:bg-[var(--color-bg-sunken)] hover:border-[var(--color-border-strong)]"}`,
|
|
500
|
-
children: [/* @__PURE__ */
|
|
500
|
+
children: [/* @__PURE__ */ _(e.icon, { className: `size-5 ${e.disabled ? "opacity-50" : ""}` }), /* @__PURE__ */ _("span", {
|
|
501
501
|
className: `sr-only sm:not-sr-only text-sm font-medium transition-colors ${e.disabled ? "text-[var(--color-text-disabled)]" : "text-[var(--color-text-secondary)] group-hover:text-[var(--color-text-primary)]"}`,
|
|
502
502
|
children: e.name
|
|
503
503
|
})]
|
|
504
504
|
}, e.name))
|
|
505
505
|
}),
|
|
506
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ v("p", {
|
|
507
507
|
className: "mt-8 text-center text-sm text-[var(--color-text-secondary)]",
|
|
508
508
|
children: [
|
|
509
|
-
|
|
509
|
+
b("auth.register.alreadyHaveAccount", "Already have an account?"),
|
|
510
510
|
" ",
|
|
511
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ _("button", {
|
|
512
512
|
type: "button",
|
|
513
|
-
onClick: () =>
|
|
513
|
+
onClick: () => S("/auth/login"),
|
|
514
514
|
className: "font-semibold text-text-link hover:text-text-linkHover transition-colors",
|
|
515
|
-
children:
|
|
515
|
+
children: b("auth.register.signIn", "Sign in")
|
|
516
516
|
})
|
|
517
517
|
]
|
|
518
518
|
})
|
|
519
519
|
]
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
|
-
|
|
523
|
-
export { x as RegisterPage };
|
|
522
|
+
export { b as RegisterPage };
|
|
524
523
|
|
|
525
524
|
//# sourceMappingURL=RegisterPage.js.map
|