@datatechsolutions/ui 3.6.0 → 3.6.2
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/astrlabe/graph-node.js +8 -5
- package/dist/astrlabe/graph-node.mjs +4 -1
- package/dist/astrlabe/index.js +115 -114
- package/dist/astrlabe/index.mjs +7 -6
- package/dist/astrlabe/workflow-canvas.js +7 -6
- package/dist/astrlabe/workflow-canvas.mjs +6 -5
- package/dist/{chunk-I63NFWIA.mjs → chunk-2OPBUVTQ.mjs} +3 -3
- package/dist/{chunk-I63NFWIA.mjs.map → chunk-2OPBUVTQ.mjs.map} +1 -1
- package/dist/{chunk-XTXLRQ3H.mjs → chunk-34XRH2FX.mjs} +28 -28
- package/dist/chunk-34XRH2FX.mjs.map +1 -0
- package/dist/{chunk-QHP2MR2F.js → chunk-3JZGRXSG.js} +4 -4
- package/dist/{chunk-QHP2MR2F.js.map → chunk-3JZGRXSG.js.map} +1 -1
- package/dist/{chunk-JQYDJ75Q.mjs → chunk-3VYD7QL2.mjs} +3 -3
- package/dist/{chunk-JQYDJ75Q.mjs.map → chunk-3VYD7QL2.mjs.map} +1 -1
- package/dist/{chunk-MRRFDIUQ.mjs → chunk-4JRMXHPU.mjs} +5 -4
- package/dist/chunk-4JRMXHPU.mjs.map +1 -0
- package/dist/{chunk-4OFG6POC.mjs → chunk-5LCWQKGQ.mjs} +207 -1128
- package/dist/chunk-5LCWQKGQ.mjs.map +1 -0
- package/dist/{chunk-W5YCZOXO.js → chunk-7YK4WXHO.js} +79 -78
- package/dist/chunk-7YK4WXHO.js.map +1 -0
- package/dist/{chunk-YOJIPZ72.js → chunk-BBLBSDPN.js} +9 -9
- package/dist/{chunk-YOJIPZ72.js.map → chunk-BBLBSDPN.js.map} +1 -1
- package/dist/chunk-BHOT22QL.js +998 -0
- package/dist/chunk-BHOT22QL.js.map +1 -0
- package/dist/{chunk-DYWSG42B.mjs → chunk-C4AJWDFB.mjs} +11 -10
- package/dist/chunk-C4AJWDFB.mjs.map +1 -0
- package/dist/{chunk-UOABOFKO.mjs → chunk-CBFK4W4C.mjs} +3 -3
- package/dist/{chunk-UOABOFKO.mjs.map → chunk-CBFK4W4C.mjs.map} +1 -1
- package/dist/{chunk-P5F257N3.js → chunk-CVZXZK2X.js} +35 -34
- package/dist/chunk-CVZXZK2X.js.map +1 -0
- package/dist/{chunk-IHHGT3LP.mjs → chunk-CYAAL3BY.mjs} +6 -5
- package/dist/chunk-CYAAL3BY.mjs.map +1 -0
- package/dist/{chunk-LVK7VXW7.js → chunk-DMPBNWJB.js} +37 -36
- package/dist/chunk-DMPBNWJB.js.map +1 -0
- package/dist/{chunk-ESLKQJQS.mjs → chunk-DXLATMGD.mjs} +6 -5
- package/dist/chunk-DXLATMGD.mjs.map +1 -0
- package/dist/{chunk-P4YYEM4B.js → chunk-EZQ2D47U.js} +7 -10
- package/dist/chunk-EZQ2D47U.js.map +1 -0
- package/dist/{chunk-UWSMHKOF.js → chunk-FUHNEP3Y.js} +164 -163
- package/dist/chunk-FUHNEP3Y.js.map +1 -0
- package/dist/{chunk-YTE6WCBX.js → chunk-JHN2OUWG.js} +64 -63
- package/dist/chunk-JHN2OUWG.js.map +1 -0
- package/dist/{chunk-AMYQSPQC.js → chunk-JLECJI7S.js} +18 -17
- package/dist/chunk-JLECJI7S.js.map +1 -0
- package/dist/{chunk-VPOIX2DY.js → chunk-KMNWPC64.js} +40 -39
- package/dist/chunk-KMNWPC64.js.map +1 -0
- package/dist/{chunk-VUAGVZJM.mjs → chunk-NJ6HH4QP.mjs} +6 -5
- package/dist/chunk-NJ6HH4QP.mjs.map +1 -0
- package/dist/{chunk-OZNTQROP.mjs → chunk-PLTLRL2V.mjs} +7 -10
- package/dist/chunk-PLTLRL2V.mjs.map +1 -0
- package/dist/{chunk-WEZ722BS.mjs → chunk-PMMP76MV.mjs} +7 -6
- package/dist/chunk-PMMP76MV.mjs.map +1 -0
- package/dist/{chunk-NJZIE4EH.js → chunk-QF6WL7XU.js} +6 -5
- package/dist/chunk-QF6WL7XU.js.map +1 -0
- package/dist/{chunk-QRNFTG6A.js → chunk-QGLGQXJE.js} +4 -4
- package/dist/{chunk-QRNFTG6A.js.map → chunk-QGLGQXJE.js.map} +1 -1
- package/dist/{chunk-GCYYGSHU.js → chunk-R4EKPXX3.js} +564 -1525
- package/dist/chunk-R4EKPXX3.js.map +1 -0
- package/dist/{chunk-S7AV6XEY.js → chunk-RWYG7QHP.js} +128 -138
- package/dist/chunk-RWYG7QHP.js.map +1 -0
- package/dist/{chunk-WBEZATIB.js → chunk-RZ3NDH5S.js} +13 -13
- package/dist/{chunk-WBEZATIB.js.map → chunk-RZ3NDH5S.js.map} +1 -1
- package/dist/{chunk-HGWVJ3VB.mjs → chunk-SJVKID3E.mjs} +4 -3
- package/dist/chunk-SJVKID3E.mjs.map +1 -0
- package/dist/{chunk-7LILNZMR.mjs → chunk-TJEZL72T.mjs} +4 -3
- package/dist/chunk-TJEZL72T.mjs.map +1 -0
- package/dist/{chunk-3WXMBAGN.js → chunk-UDYEUTJC.js} +50 -50
- package/dist/chunk-UDYEUTJC.js.map +1 -0
- package/dist/{chunk-UGJZ3M4Q.js → chunk-VDLMWOQM.js} +55 -54
- package/dist/chunk-VDLMWOQM.js.map +1 -0
- package/dist/{chunk-QTA5I6FC.mjs → chunk-VZIUQE7B.mjs} +54 -64
- package/dist/chunk-VZIUQE7B.mjs.map +1 -0
- package/dist/chunk-WR55H7DH.mjs +934 -0
- package/dist/chunk-WR55H7DH.mjs.map +1 -0
- package/dist/{chunk-ZYVDDSAC.mjs → chunk-YRXDETBK.mjs} +6 -6
- package/dist/{chunk-ZYVDDSAC.mjs.map → chunk-YRXDETBK.mjs.map} +1 -1
- package/dist/{chunk-VDLAZR7S.mjs → chunk-ZYRL3WER.mjs} +5 -4
- package/dist/chunk-ZYRL3WER.mjs.map +1 -0
- package/dist/index.js +826 -825
- package/dist/index.mjs +4 -3
- package/dist/platform/admin/index.js +13 -12
- package/dist/platform/admin/index.mjs +7 -6
- package/dist/platform/agents-workspace.js +10 -9
- package/dist/platform/agents-workspace.mjs +9 -8
- package/dist/platform/app-shell.js +6 -5
- package/dist/platform/app-shell.mjs +5 -4
- package/dist/platform/auth/index.js +30 -29
- package/dist/platform/auth/index.mjs +7 -6
- package/dist/platform/billing/index.js +6 -5
- package/dist/platform/billing/index.mjs +5 -4
- package/dist/platform/impersonation/index.js +6 -5
- package/dist/platform/impersonation/index.mjs +5 -4
- package/dist/platform/index.js +87 -93
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.mjs +23 -29
- package/dist/platform/index.mjs.map +1 -1
- package/dist/platform/pages/index.js +476 -470
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +326 -320
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +10 -9
- package/dist/platform/settings/index.mjs +9 -8
- package/dist/platform/workflow-canvas-shell.js +8 -7
- package/dist/platform/workflow-canvas-shell.mjs +7 -6
- package/package.json +1 -1
- package/dist/chunk-3WXMBAGN.js.map +0 -1
- package/dist/chunk-4OFG6POC.mjs.map +0 -1
- package/dist/chunk-7LILNZMR.mjs.map +0 -1
- package/dist/chunk-AMYQSPQC.js.map +0 -1
- package/dist/chunk-DYWSG42B.mjs.map +0 -1
- package/dist/chunk-ESLKQJQS.mjs.map +0 -1
- package/dist/chunk-GCYYGSHU.js.map +0 -1
- package/dist/chunk-HGWVJ3VB.mjs.map +0 -1
- package/dist/chunk-IHHGT3LP.mjs.map +0 -1
- package/dist/chunk-LVK7VXW7.js.map +0 -1
- package/dist/chunk-MRRFDIUQ.mjs.map +0 -1
- package/dist/chunk-NJZIE4EH.js.map +0 -1
- package/dist/chunk-OZNTQROP.mjs.map +0 -1
- package/dist/chunk-P4YYEM4B.js.map +0 -1
- package/dist/chunk-P5F257N3.js.map +0 -1
- package/dist/chunk-QTA5I6FC.mjs.map +0 -1
- package/dist/chunk-S7AV6XEY.js.map +0 -1
- package/dist/chunk-UGJZ3M4Q.js.map +0 -1
- package/dist/chunk-UWSMHKOF.js.map +0 -1
- package/dist/chunk-VDLAZR7S.mjs.map +0 -1
- package/dist/chunk-VPOIX2DY.js.map +0 -1
- package/dist/chunk-VUAGVZJM.mjs.map +0 -1
- package/dist/chunk-W5YCZOXO.js.map +0 -1
- package/dist/chunk-WEZ722BS.mjs.map +0 -1
- package/dist/chunk-XTXLRQ3H.mjs.map +0 -1
- package/dist/chunk-YTE6WCBX.js.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
|
|
4
|
+
var chunkQGLGQXJE_js = require('./chunk-QGLGQXJE.js');
|
|
5
|
+
var chunkR4EKPXX3_js = require('./chunk-R4EKPXX3.js');
|
|
7
6
|
var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
|
|
7
|
+
var chunkBHOT22QL_js = require('./chunk-BHOT22QL.js');
|
|
8
|
+
var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
|
|
8
9
|
var react = require('react');
|
|
9
10
|
var outline = require('@heroicons/react/24/outline');
|
|
10
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -19,7 +20,7 @@ function MfaChallenge({
|
|
|
19
20
|
embedded = false
|
|
20
21
|
}) {
|
|
21
22
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
22
|
-
const { verifyMFA } =
|
|
23
|
+
const { verifyMFA } = chunkR4EKPXX3_js.useAuth();
|
|
23
24
|
const [method, setMethod] = react.useState("totp");
|
|
24
25
|
const [totpCode, setTotpCode] = react.useState("");
|
|
25
26
|
const [backupCode, setBackupCode] = react.useState("");
|
|
@@ -83,7 +84,7 @@ function MfaChallenge({
|
|
|
83
84
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: method === "totp" ? t("mfa.challenge.descriptionTotp") : t("mfa.challenge.descriptionBackup") })
|
|
84
85
|
] }),
|
|
85
86
|
availableMethods.length > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
-
|
|
87
|
+
chunkR4EKPXX3_js.SegmentedControl,
|
|
87
88
|
{
|
|
88
89
|
segments,
|
|
89
90
|
value: method,
|
|
@@ -94,7 +95,7 @@ function MfaChallenge({
|
|
|
94
95
|
failureCount >= 3 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl border border-red-500/30 bg-red-500/10 px-4 py-3 text-sm text-red-600 dark:text-red-400 text-center", children: t("mfa.challenge.lockoutWarning") }),
|
|
95
96
|
method === "totp" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
96
97
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
-
|
|
98
|
+
chunkQGLGQXJE_js.OtpInput,
|
|
98
99
|
{
|
|
99
100
|
value: totpCode,
|
|
100
101
|
onChange: setTotpCode,
|
|
@@ -104,11 +105,11 @@ function MfaChallenge({
|
|
|
104
105
|
autoFocus: true
|
|
105
106
|
}
|
|
106
107
|
),
|
|
107
|
-
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
108
|
+
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Spinner, {}) })
|
|
108
109
|
] }),
|
|
109
110
|
method === "backup" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
110
111
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
111
|
-
|
|
112
|
+
chunkR4EKPXX3_js.Input,
|
|
112
113
|
{
|
|
113
114
|
value: backupCode,
|
|
114
115
|
onChange: (event) => setBackupCode(event.target.value),
|
|
@@ -120,7 +121,7 @@ function MfaChallenge({
|
|
|
120
121
|
}
|
|
121
122
|
),
|
|
122
123
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
123
|
-
|
|
124
|
+
chunkBHOT22QL_js.Button,
|
|
124
125
|
{
|
|
125
126
|
color: "ios-glass-blue",
|
|
126
127
|
fullWidth: true,
|
|
@@ -145,7 +146,7 @@ function MfaChallenge({
|
|
|
145
146
|
) })
|
|
146
147
|
] });
|
|
147
148
|
if (embedded) return content;
|
|
148
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
149
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: content });
|
|
149
150
|
}
|
|
150
151
|
function SignIn({
|
|
151
152
|
onSuccess,
|
|
@@ -159,8 +160,8 @@ function SignIn({
|
|
|
159
160
|
heroPanel
|
|
160
161
|
}) {
|
|
161
162
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
162
|
-
const { loginWithCredentials, loginWithProvider } =
|
|
163
|
-
const discovered =
|
|
163
|
+
const { loginWithCredentials, loginWithProvider } = chunkR4EKPXX3_js.useAuth();
|
|
164
|
+
const discovered = chunkR4EKPXX3_js.useSocialProviders();
|
|
164
165
|
const effectiveSocialProviders = socialProviders ?? discovered.providers;
|
|
165
166
|
const [email, setEmail] = react.useState(defaultEmail);
|
|
166
167
|
const [password, setPassword] = react.useState("");
|
|
@@ -213,7 +214,7 @@ function SignIn({
|
|
|
213
214
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red", role: "alert", children: error }),
|
|
214
215
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
215
216
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
216
|
-
|
|
217
|
+
chunkR4EKPXX3_js.Input,
|
|
217
218
|
{
|
|
218
219
|
label: t("emailLabel"),
|
|
219
220
|
type: "email",
|
|
@@ -226,7 +227,7 @@ function SignIn({
|
|
|
226
227
|
}
|
|
227
228
|
),
|
|
228
229
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
229
|
-
|
|
230
|
+
chunkR4EKPXX3_js.PasswordInput,
|
|
230
231
|
{
|
|
231
232
|
label: t("passwordLabel"),
|
|
232
233
|
value: password,
|
|
@@ -247,7 +248,7 @@ function SignIn({
|
|
|
247
248
|
}
|
|
248
249
|
) }),
|
|
249
250
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
250
|
-
|
|
251
|
+
chunkBHOT22QL_js.Button,
|
|
251
252
|
{
|
|
252
253
|
type: "submit",
|
|
253
254
|
color: "ios-glass-green",
|
|
@@ -265,7 +266,7 @@ function SignIn({
|
|
|
265
266
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-xs", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-white/80 px-3 text-gray-400 dark:bg-gray-900/80 dark:text-gray-500", children: t("orContinueWith") }) })
|
|
266
267
|
] }),
|
|
267
268
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
-
|
|
269
|
+
chunkQGLGQXJE_js.SocialLoginButtons,
|
|
269
270
|
{
|
|
270
271
|
providers: [...effectiveSocialProviders],
|
|
271
272
|
onProviderClick: handleSocialLogin,
|
|
@@ -275,7 +276,7 @@ function SignIn({
|
|
|
275
276
|
)
|
|
276
277
|
] }),
|
|
277
278
|
allowPasswordless && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
278
|
-
|
|
279
|
+
chunkBHOT22QL_js.Button,
|
|
279
280
|
{
|
|
280
281
|
type: "button",
|
|
281
282
|
color: "ios-glass-blue",
|
|
@@ -303,7 +304,7 @@ function SignIn({
|
|
|
303
304
|
] })
|
|
304
305
|
] });
|
|
305
306
|
if (embedded) return content;
|
|
306
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
307
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQGLGQXJE_js.AuthLayout, { heroPanel, children: content });
|
|
307
308
|
}
|
|
308
309
|
var RESEND_COOLDOWN_SECONDS = 60;
|
|
309
310
|
function VerifyEmail({
|
|
@@ -313,7 +314,7 @@ function VerifyEmail({
|
|
|
313
314
|
embedded = false
|
|
314
315
|
}) {
|
|
315
316
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
316
|
-
const { client } =
|
|
317
|
+
const { client } = chunkR4EKPXX3_js.useAuth();
|
|
317
318
|
const [code, setCode] = react.useState("");
|
|
318
319
|
const [error, setError] = react.useState(null);
|
|
319
320
|
const [isSubmitting, setIsSubmitting] = react.useState(false);
|
|
@@ -371,7 +372,7 @@ function VerifyEmail({
|
|
|
371
372
|
] }),
|
|
372
373
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red text-center", role: "alert", children: error }),
|
|
373
374
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
374
|
-
|
|
375
|
+
chunkQGLGQXJE_js.OtpInput,
|
|
375
376
|
{
|
|
376
377
|
value: code,
|
|
377
378
|
onChange: setCode,
|
|
@@ -381,11 +382,11 @@ function VerifyEmail({
|
|
|
381
382
|
autoFocus: true
|
|
382
383
|
}
|
|
383
384
|
),
|
|
384
|
-
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
385
|
+
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Spinner, {}) }),
|
|
385
386
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-1", children: [
|
|
386
387
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: t("verifyEmailNoCode") }),
|
|
387
388
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
388
|
-
|
|
389
|
+
chunkBHOT22QL_js.Button,
|
|
389
390
|
{
|
|
390
391
|
type: "button",
|
|
391
392
|
outline: true,
|
|
@@ -398,7 +399,7 @@ function VerifyEmail({
|
|
|
398
399
|
] })
|
|
399
400
|
] });
|
|
400
401
|
if (embedded) return content;
|
|
401
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
402
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: content });
|
|
402
403
|
}
|
|
403
404
|
function SignUp({
|
|
404
405
|
onSuccess,
|
|
@@ -409,8 +410,8 @@ function SignUp({
|
|
|
409
410
|
heroPanel
|
|
410
411
|
}) {
|
|
411
412
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
412
|
-
const { client, loginWithProvider } =
|
|
413
|
-
const discovered =
|
|
413
|
+
const { client, loginWithProvider } = chunkR4EKPXX3_js.useAuth();
|
|
414
|
+
const discovered = chunkR4EKPXX3_js.useSocialProviders();
|
|
414
415
|
const effectiveSocialProviders = socialProviders ?? discovered.providers;
|
|
415
416
|
const [phase, setPhase] = react.useState("form");
|
|
416
417
|
const [registeredEmail, setRegisteredEmail] = react.useState("");
|
|
@@ -465,7 +466,7 @@ function SignUp({
|
|
|
465
466
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red", role: "alert", children: error }),
|
|
466
467
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
467
468
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
468
|
-
|
|
469
|
+
chunkR4EKPXX3_js.Input,
|
|
469
470
|
{
|
|
470
471
|
label: t("nameLabel"),
|
|
471
472
|
type: "text",
|
|
@@ -479,7 +480,7 @@ function SignUp({
|
|
|
479
480
|
}
|
|
480
481
|
),
|
|
481
482
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
482
|
-
|
|
483
|
+
chunkR4EKPXX3_js.Input,
|
|
483
484
|
{
|
|
484
485
|
label: t("emailLabel"),
|
|
485
486
|
type: "email",
|
|
@@ -494,7 +495,7 @@ function SignUp({
|
|
|
494
495
|
),
|
|
495
496
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
496
497
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
497
|
-
|
|
498
|
+
chunkR4EKPXX3_js.PasswordInput,
|
|
498
499
|
{
|
|
499
500
|
label: t("passwordLabel"),
|
|
500
501
|
value: password,
|
|
@@ -507,7 +508,7 @@ function SignUp({
|
|
|
507
508
|
}
|
|
508
509
|
),
|
|
509
510
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
510
|
-
|
|
511
|
+
chunkQGLGQXJE_js.PasswordStrengthMeter,
|
|
511
512
|
{
|
|
512
513
|
password,
|
|
513
514
|
policy: passwordPolicy,
|
|
@@ -516,7 +517,7 @@ function SignUp({
|
|
|
516
517
|
)
|
|
517
518
|
] }),
|
|
518
519
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
519
|
-
|
|
520
|
+
chunkR4EKPXX3_js.FormCheckbox,
|
|
520
521
|
{
|
|
521
522
|
checked: termsAccepted,
|
|
522
523
|
onChange: setTermsAccepted,
|
|
@@ -526,7 +527,7 @@ function SignUp({
|
|
|
526
527
|
}
|
|
527
528
|
),
|
|
528
529
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
529
|
-
|
|
530
|
+
chunkBHOT22QL_js.Button,
|
|
530
531
|
{
|
|
531
532
|
type: "submit",
|
|
532
533
|
color: "ios-glass-blue",
|
|
@@ -543,7 +544,7 @@ function SignUp({
|
|
|
543
544
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-xs", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-white dark:bg-gray-900 px-3 text-gray-400 dark:text-gray-500", children: t("orContinueWith") }) })
|
|
544
545
|
] }),
|
|
545
546
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
546
|
-
|
|
547
|
+
chunkQGLGQXJE_js.SocialLoginButtons,
|
|
547
548
|
{
|
|
548
549
|
providers: [...effectiveSocialProviders],
|
|
549
550
|
onProviderClick: handleSocialLogin,
|
|
@@ -567,7 +568,7 @@ function SignUp({
|
|
|
567
568
|
] })
|
|
568
569
|
] });
|
|
569
570
|
if (embedded) return content;
|
|
570
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
571
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQGLGQXJE_js.AuthLayout, { heroPanel, children: content });
|
|
571
572
|
}
|
|
572
573
|
function ForgotPassword({
|
|
573
574
|
onSuccess,
|
|
@@ -576,7 +577,7 @@ function ForgotPassword({
|
|
|
576
577
|
embedded = false
|
|
577
578
|
}) {
|
|
578
579
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
579
|
-
const { client } =
|
|
580
|
+
const { client } = chunkR4EKPXX3_js.useAuth();
|
|
580
581
|
const [phase, setPhase] = react.useState("form");
|
|
581
582
|
const [email, setEmail] = react.useState(defaultEmail);
|
|
582
583
|
const [error, setError] = react.useState(null);
|
|
@@ -600,7 +601,7 @@ function ForgotPassword({
|
|
|
600
601
|
);
|
|
601
602
|
const sentContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
|
|
602
603
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
603
|
-
|
|
604
|
+
chunkR4EKPXX3_js.EmptyState,
|
|
604
605
|
{
|
|
605
606
|
variant: "minimal",
|
|
606
607
|
icon: outline.CheckCircleIcon,
|
|
@@ -625,7 +626,7 @@ function ForgotPassword({
|
|
|
625
626
|
] }),
|
|
626
627
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red", role: "alert", children: error }),
|
|
627
628
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
628
|
-
|
|
629
|
+
chunkR4EKPXX3_js.BaseForm,
|
|
629
630
|
{
|
|
630
631
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.EnvelopeIcon, { className: "h-5 w-5" }),
|
|
631
632
|
iconColor: "blue",
|
|
@@ -637,7 +638,7 @@ function ForgotPassword({
|
|
|
637
638
|
submitDisabled: !email.trim(),
|
|
638
639
|
showHeader: false,
|
|
639
640
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
640
|
-
|
|
641
|
+
chunkR4EKPXX3_js.Input,
|
|
641
642
|
{
|
|
642
643
|
label: t("emailLabel"),
|
|
643
644
|
type: "email",
|
|
@@ -665,7 +666,7 @@ function ForgotPassword({
|
|
|
665
666
|
] });
|
|
666
667
|
const activeContent = phase === "sent" ? sentContent : formContent;
|
|
667
668
|
if (embedded) return activeContent;
|
|
668
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
669
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: activeContent });
|
|
669
670
|
}
|
|
670
671
|
function ResetPassword({
|
|
671
672
|
token,
|
|
@@ -674,7 +675,7 @@ function ResetPassword({
|
|
|
674
675
|
embedded = false
|
|
675
676
|
}) {
|
|
676
677
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
677
|
-
const { client } =
|
|
678
|
+
const { client } = chunkR4EKPXX3_js.useAuth();
|
|
678
679
|
const [phase, setPhase] = react.useState("form");
|
|
679
680
|
const [password, setPassword] = react.useState("");
|
|
680
681
|
const [confirmPassword, setConfirmPassword] = react.useState("");
|
|
@@ -704,7 +705,7 @@ function ResetPassword({
|
|
|
704
705
|
[client, token, password, passwordsMatch, onSuccess, t]
|
|
705
706
|
);
|
|
706
707
|
const successContent = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-5", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
707
|
-
|
|
708
|
+
chunkR4EKPXX3_js.EmptyState,
|
|
708
709
|
{
|
|
709
710
|
variant: "minimal",
|
|
710
711
|
icon: outline.CheckCircleIcon,
|
|
@@ -721,7 +722,7 @@ function ResetPassword({
|
|
|
721
722
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
722
723
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
723
724
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
724
|
-
|
|
725
|
+
chunkR4EKPXX3_js.PasswordInput,
|
|
725
726
|
{
|
|
726
727
|
label: t("newPasswordLabel"),
|
|
727
728
|
value: password,
|
|
@@ -735,7 +736,7 @@ function ResetPassword({
|
|
|
735
736
|
}
|
|
736
737
|
),
|
|
737
738
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
738
|
-
|
|
739
|
+
chunkQGLGQXJE_js.PasswordStrengthMeter,
|
|
739
740
|
{
|
|
740
741
|
password,
|
|
741
742
|
policy: passwordPolicy,
|
|
@@ -744,7 +745,7 @@ function ResetPassword({
|
|
|
744
745
|
)
|
|
745
746
|
] }),
|
|
746
747
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
747
|
-
|
|
748
|
+
chunkR4EKPXX3_js.PasswordInput,
|
|
748
749
|
{
|
|
749
750
|
label: t("confirmPasswordLabel"),
|
|
750
751
|
value: confirmPassword,
|
|
@@ -759,7 +760,7 @@ function ResetPassword({
|
|
|
759
760
|
}
|
|
760
761
|
),
|
|
761
762
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
762
|
-
|
|
763
|
+
chunkBHOT22QL_js.Button,
|
|
763
764
|
{
|
|
764
765
|
type: "submit",
|
|
765
766
|
color: "ios-glass-blue",
|
|
@@ -773,7 +774,7 @@ function ResetPassword({
|
|
|
773
774
|
] });
|
|
774
775
|
const activeContent = phase === "success" ? successContent : formContent;
|
|
775
776
|
if (embedded) return activeContent;
|
|
776
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
777
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: activeContent });
|
|
777
778
|
}
|
|
778
779
|
function PasswordlessSignIn({
|
|
779
780
|
defaultMethod = "email",
|
|
@@ -784,7 +785,7 @@ function PasswordlessSignIn({
|
|
|
784
785
|
embedded = false
|
|
785
786
|
}) {
|
|
786
787
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
787
|
-
const { client } =
|
|
788
|
+
const { client } = chunkR4EKPXX3_js.useAuth();
|
|
788
789
|
const [step, setStep] = react.useState("input");
|
|
789
790
|
const [channel, setChannel] = react.useState(
|
|
790
791
|
allowedChannels.includes(defaultMethod) ? defaultMethod : allowedChannels[0] ?? "email"
|
|
@@ -834,7 +835,7 @@ function PasswordlessSignIn({
|
|
|
834
835
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: t("passwordlessSubtitle") })
|
|
835
836
|
] }),
|
|
836
837
|
allowedChannels.length > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
837
|
-
|
|
838
|
+
chunkR4EKPXX3_js.SegmentedControl,
|
|
838
839
|
{
|
|
839
840
|
segments: channelSegments,
|
|
840
841
|
value: channel,
|
|
@@ -848,7 +849,7 @@ function PasswordlessSignIn({
|
|
|
848
849
|
) }),
|
|
849
850
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red", role: "alert", children: error }),
|
|
850
851
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
851
|
-
|
|
852
|
+
chunkR4EKPXX3_js.Input,
|
|
852
853
|
{
|
|
853
854
|
label: channel === "email" ? t("emailLabel") : t("phoneLabel"),
|
|
854
855
|
type: channel === "email" ? "email" : "tel",
|
|
@@ -862,7 +863,7 @@ function PasswordlessSignIn({
|
|
|
862
863
|
}
|
|
863
864
|
),
|
|
864
865
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
865
|
-
|
|
866
|
+
chunkBHOT22QL_js.Button,
|
|
866
867
|
{
|
|
867
868
|
type: "button",
|
|
868
869
|
color: "ios-glass-blue",
|
|
@@ -885,7 +886,7 @@ function PasswordlessSignIn({
|
|
|
885
886
|
] });
|
|
886
887
|
const sentContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
887
888
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
888
|
-
|
|
889
|
+
chunkR4EKPXX3_js.EmptyState,
|
|
889
890
|
{
|
|
890
891
|
variant: "minimal",
|
|
891
892
|
icon: outline.PaperAirplaneIcon,
|
|
@@ -893,7 +894,7 @@ function PasswordlessSignIn({
|
|
|
893
894
|
description: channel === "email" ? t("passwordlessCodeSentEmailDescription", { email: identifier }) : t("passwordlessCodeSentSmsDescription", { phone: identifier })
|
|
894
895
|
}
|
|
895
896
|
),
|
|
896
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
897
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Spinner, {}) })
|
|
897
898
|
] });
|
|
898
899
|
const verifyContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
899
900
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
|
|
@@ -902,7 +903,7 @@ function PasswordlessSignIn({
|
|
|
902
903
|
] }),
|
|
903
904
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-red-50 dark:bg-red-900/20 px-4 py-3 text-sm text-ios-red text-center", role: "alert", children: error }),
|
|
904
905
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
905
|
-
|
|
906
|
+
chunkQGLGQXJE_js.OtpInput,
|
|
906
907
|
{
|
|
907
908
|
value: code,
|
|
908
909
|
onChange: setCode,
|
|
@@ -912,7 +913,7 @@ function PasswordlessSignIn({
|
|
|
912
913
|
autoFocus: true
|
|
913
914
|
}
|
|
914
915
|
),
|
|
915
|
-
isVerifying && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
916
|
+
isVerifying && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Spinner, {}) }),
|
|
916
917
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
917
918
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
918
919
|
"button",
|
|
@@ -945,7 +946,7 @@ function PasswordlessSignIn({
|
|
|
945
946
|
] });
|
|
946
947
|
const activeContent = step === "input" ? inputContent : step === "sent" ? sentContent : verifyContent;
|
|
947
948
|
if (embedded) return activeContent;
|
|
948
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
949
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: activeContent });
|
|
949
950
|
}
|
|
950
951
|
function ConsentScreen({
|
|
951
952
|
application,
|
|
@@ -979,10 +980,10 @@ function ConsentScreen({
|
|
|
979
980
|
onDeny();
|
|
980
981
|
}, [onDeny]);
|
|
981
982
|
const appInitials = application.name.split(" ").map((word) => word[0]).join("").slice(0, 2).toUpperCase();
|
|
982
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
983
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQGLGQXJE_js.AuthLayout, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Card, { variant: "glass", className: "mx-auto w-full max-w-md", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkR4EKPXX3_js.CardContent, { className: "space-y-6 p-6 sm:p-8", children: [
|
|
983
984
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
984
985
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
985
|
-
|
|
986
|
+
chunkR4EKPXX3_js.Avatar,
|
|
986
987
|
{
|
|
987
988
|
src: application.logoUrl,
|
|
988
989
|
initials: appInitials,
|
|
@@ -992,7 +993,7 @@ function ConsentScreen({
|
|
|
992
993
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
993
994
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2", children: [
|
|
994
995
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: application.name }),
|
|
995
|
-
application.verified ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
996
|
+
application.verified ? /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Badge, { color: "green", children: t("consent.verified") }) : /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Badge, { color: "amber", children: t("consent.unverified") })
|
|
996
997
|
] }),
|
|
997
998
|
application.url && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: application.url }),
|
|
998
999
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-600 dark:text-gray-300", children: t("consent.wantsAccess") })
|
|
@@ -1004,11 +1005,11 @@ function ConsentScreen({
|
|
|
1004
1005
|
] }),
|
|
1005
1006
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1006
1007
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-medium uppercase tracking-wide text-gray-500 dark:text-gray-400", children: t("consent.permissionsLabel") }),
|
|
1007
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1008
|
-
|
|
1008
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.ListCard, { children: scopes.map((scope) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1009
|
+
chunkR4EKPXX3_js.ListCardItem,
|
|
1009
1010
|
{
|
|
1010
1011
|
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1011
|
-
|
|
1012
|
+
chunkR4EKPXX3_js.FormCheckbox,
|
|
1012
1013
|
{
|
|
1013
1014
|
checked: checkedScopes.has(scope.id),
|
|
1014
1015
|
onChange: (checked) => handleScopeToggle(scope.id, checked),
|
|
@@ -1026,7 +1027,7 @@ function ConsentScreen({
|
|
|
1026
1027
|
] }),
|
|
1027
1028
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 sm:flex-row-reverse", children: [
|
|
1028
1029
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1029
|
-
|
|
1030
|
+
chunkBHOT22QL_js.Button,
|
|
1030
1031
|
{
|
|
1031
1032
|
color: "ios-glass-blue",
|
|
1032
1033
|
fullWidth: true,
|
|
@@ -1037,7 +1038,7 @@ function ConsentScreen({
|
|
|
1037
1038
|
}
|
|
1038
1039
|
),
|
|
1039
1040
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1040
|
-
|
|
1041
|
+
chunkBHOT22QL_js.Button,
|
|
1041
1042
|
{
|
|
1042
1043
|
outline: true,
|
|
1043
1044
|
fullWidth: true,
|
|
@@ -1054,20 +1055,20 @@ function SsoConnectorList({ connectors, onSelect, loading = false }) {
|
|
|
1054
1055
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
1055
1056
|
if (loading) {
|
|
1056
1057
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2 py-8 text-sm text-gray-500 dark:text-gray-400", children: [
|
|
1057
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1058
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.InlineSpinner, {}),
|
|
1058
1059
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t("sso.connectorList.loading") })
|
|
1059
1060
|
] });
|
|
1060
1061
|
}
|
|
1061
1062
|
if (connectors.length === 0) {
|
|
1062
1063
|
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "py-6 text-center text-sm text-gray-500 dark:text-gray-400", children: t("sso.connectorList.empty") });
|
|
1063
1064
|
}
|
|
1064
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1065
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.ListCard, { children: connectors.map((connector) => {
|
|
1065
1066
|
const initials = connector.name.split(" ").map((word) => word[0]).join("").slice(0, 2).toUpperCase();
|
|
1066
1067
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1067
|
-
|
|
1068
|
+
chunkR4EKPXX3_js.ListCardItem,
|
|
1068
1069
|
{
|
|
1069
1070
|
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1070
|
-
|
|
1071
|
+
chunkR4EKPXX3_js.Avatar,
|
|
1071
1072
|
{
|
|
1072
1073
|
src: connector.logoUrl,
|
|
1073
1074
|
initials,
|
|
@@ -1075,7 +1076,7 @@ function SsoConnectorList({ connectors, onSelect, loading = false }) {
|
|
|
1075
1076
|
}
|
|
1076
1077
|
),
|
|
1077
1078
|
trailing: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1078
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1079
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Badge, { color: "zinc", children: connector.type === "saml" ? t("sso.connectorList.typeSaml") : t("sso.connectorList.typeOidc") }),
|
|
1079
1080
|
/* @__PURE__ */ jsxRuntime.jsx(solid.ChevronRightIcon, { className: "h-4 w-4 text-gray-400" })
|
|
1080
1081
|
] }),
|
|
1081
1082
|
onClick: () => onSelect(connector),
|
|
@@ -1161,16 +1162,16 @@ function SsoEmailForm({
|
|
|
1161
1162
|
) })
|
|
1162
1163
|
] });
|
|
1163
1164
|
if (embedded) return connectorsContent;
|
|
1164
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1165
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Card, { variant: "glass", className: "mx-auto w-full max-w-md", children: /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.CardContent, { className: "p-6 sm:p-8", children: connectorsContent }) });
|
|
1165
1166
|
}
|
|
1166
1167
|
const emailContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1167
1168
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
1168
1169
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-gray-900 dark:text-white", children: t("sso.emailForm.title") }),
|
|
1169
1170
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: t("sso.emailForm.subtitle") })
|
|
1170
1171
|
] }),
|
|
1171
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1172
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkR4EKPXX3_js.BaseForm, { onSubmit: handleEmailSubmit, submitLabel: t("sso.emailForm.continueButton"), showFooter: false, children: [
|
|
1172
1173
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1173
|
-
|
|
1174
|
+
chunkR4EKPXX3_js.Input,
|
|
1174
1175
|
{
|
|
1175
1176
|
type: "email",
|
|
1176
1177
|
label: t("sso.emailForm.emailLabel"),
|
|
@@ -1188,7 +1189,7 @@ function SsoEmailForm({
|
|
|
1188
1189
|
}
|
|
1189
1190
|
),
|
|
1190
1191
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1191
|
-
|
|
1192
|
+
chunkBHOT22QL_js.Button,
|
|
1192
1193
|
{
|
|
1193
1194
|
type: "submit",
|
|
1194
1195
|
color: "ios-glass-blue",
|
|
@@ -1201,7 +1202,7 @@ function SsoEmailForm({
|
|
|
1201
1202
|
] })
|
|
1202
1203
|
] });
|
|
1203
1204
|
if (embedded) return emailContent;
|
|
1204
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1205
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.Card, { variant: "glass", className: "mx-auto w-full max-w-md", children: /* @__PURE__ */ jsxRuntime.jsx(chunkR4EKPXX3_js.CardContent, { className: "p-6 sm:p-8", children: emailContent }) });
|
|
1205
1206
|
}
|
|
1206
1207
|
var DEFAULT_LABELS = {
|
|
1207
1208
|
menuLabel: "User menu",
|
|
@@ -1213,7 +1214,7 @@ var DEFAULT_LABELS = {
|
|
|
1213
1214
|
};
|
|
1214
1215
|
function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
1215
1216
|
const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
|
|
1216
|
-
const { user, logout, status } =
|
|
1217
|
+
const { user, logout, status } = chunkR4EKPXX3_js.useAuth();
|
|
1217
1218
|
const [confirmSignOut, setConfirmSignOut] = react.useState(false);
|
|
1218
1219
|
if (status !== "authenticated") {
|
|
1219
1220
|
return null;
|
|
@@ -1246,7 +1247,7 @@ function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
|
1246
1247
|
"aria-label": resolvedLabels.menuLabel,
|
|
1247
1248
|
children: [
|
|
1248
1249
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1249
|
-
|
|
1250
|
+
chunkR4EKPXX3_js.Avatar,
|
|
1250
1251
|
{
|
|
1251
1252
|
src: resolvedAvatarUrl,
|
|
1252
1253
|
initials: userInitials,
|
|
@@ -1270,7 +1271,7 @@ function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
|
1270
1271
|
children: /* @__PURE__ */ jsxRuntime.jsxs(react$1.Menu.Items, { className: "liquid-surface absolute right-0 z-50 mt-2 w-60 origin-top-right rounded-2xl shadow-lg ring-1 ring-black/5 focus:outline-none dark:ring-white/10", children: [
|
|
1271
1272
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 border-b border-gray-200/60 px-4 py-3 dark:border-white/10", children: [
|
|
1272
1273
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1273
|
-
|
|
1274
|
+
chunkR4EKPXX3_js.Avatar,
|
|
1274
1275
|
{
|
|
1275
1276
|
src: resolvedAvatarUrl,
|
|
1276
1277
|
initials: userInitials,
|
|
@@ -1317,7 +1318,7 @@ function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
|
1317
1318
|
)
|
|
1318
1319
|
] }),
|
|
1319
1320
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1320
|
-
|
|
1321
|
+
chunkR4EKPXX3_js.DynamicIslandConfirm,
|
|
1321
1322
|
{
|
|
1322
1323
|
open: confirmSignOut,
|
|
1323
1324
|
onClose: handleSignOutCancel,
|
|
@@ -1341,5 +1342,5 @@ exports.SsoConnectorList = SsoConnectorList;
|
|
|
1341
1342
|
exports.SsoEmailForm = SsoEmailForm;
|
|
1342
1343
|
exports.UserButton = UserButton;
|
|
1343
1344
|
exports.VerifyEmail = VerifyEmail;
|
|
1344
|
-
//# sourceMappingURL=chunk-
|
|
1345
|
-
//# sourceMappingURL=chunk-
|
|
1345
|
+
//# sourceMappingURL=chunk-7YK4WXHO.js.map
|
|
1346
|
+
//# sourceMappingURL=chunk-7YK4WXHO.js.map
|