@datatechsolutions/ui 3.5.0 → 3.5.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/astrlabe/contracts.d.mts +517 -0
- package/dist/astrlabe/contracts.d.ts +517 -0
- package/dist/astrlabe/graph-node.d.mts +28 -0
- package/dist/astrlabe/graph-node.d.ts +28 -0
- package/dist/astrlabe/index.d.mts +743 -0
- package/dist/astrlabe/index.d.ts +743 -0
- package/dist/astrlabe/index.js +108 -108
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/utils.d.mts +60 -0
- package/dist/astrlabe/utils.d.ts +60 -0
- package/dist/astrlabe/workflow-canvas.d.mts +6 -0
- package/dist/astrlabe/workflow-canvas.d.ts +6 -0
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/astrlabe/workflow-preview-canvas.d.mts +10 -0
- package/dist/astrlabe/workflow-preview-canvas.d.ts +10 -0
- package/dist/billing-panel-DsHhhJqG.d.mts +18 -0
- package/dist/billing-panel-DsHhhJqG.d.ts +18 -0
- package/dist/brand/index.d.mts +71 -0
- package/dist/brand/index.d.ts +71 -0
- package/dist/{chunk-UHMAKUON.mjs → chunk-2TBNOQ7M.mjs} +3 -3
- package/dist/{chunk-UHMAKUON.mjs.map → chunk-2TBNOQ7M.mjs.map} +1 -1
- package/dist/{chunk-CY2MBKVG.js → chunk-2UMDWOUY.js} +4 -4
- package/dist/{chunk-CY2MBKVG.js.map → chunk-2UMDWOUY.js.map} +1 -1
- package/dist/{chunk-6V3DUBOZ.mjs → chunk-37ZLBCJF.mjs} +7 -7
- package/dist/{chunk-6V3DUBOZ.mjs.map → chunk-37ZLBCJF.mjs.map} +1 -1
- package/dist/{chunk-NCDBNGIB.js → chunk-5AVO5DJO.js} +62 -62
- package/dist/{chunk-NCDBNGIB.js.map → chunk-5AVO5DJO.js.map} +1 -1
- package/dist/{chunk-QPSHM2JQ.mjs → chunk-7OZ4MVEF.mjs} +4 -4
- package/dist/{chunk-QPSHM2JQ.mjs.map → chunk-7OZ4MVEF.mjs.map} +1 -1
- package/dist/{chunk-3OLYSMI5.mjs → chunk-CDYNTHUE.mjs} +4 -4
- package/dist/{chunk-3OLYSMI5.mjs.map → chunk-CDYNTHUE.mjs.map} +1 -1
- package/dist/{chunk-IOEQ2GET.mjs → chunk-CJGNEALB.mjs} +4 -4
- package/dist/{chunk-IOEQ2GET.mjs.map → chunk-CJGNEALB.mjs.map} +1 -1
- package/dist/{chunk-NJ5RVWLA.mjs → chunk-CP5QXRXA.mjs} +4 -4
- package/dist/{chunk-NJ5RVWLA.mjs.map → chunk-CP5QXRXA.mjs.map} +1 -1
- package/dist/{chunk-2MJAHST4.mjs → chunk-EGXB3WXT.mjs} +4 -4
- package/dist/{chunk-2MJAHST4.mjs.map → chunk-EGXB3WXT.mjs.map} +1 -1
- package/dist/{chunk-NKXQYFS7.js → chunk-EI6FIA45.js} +16 -16
- package/dist/{chunk-NKXQYFS7.js.map → chunk-EI6FIA45.js.map} +1 -1
- package/dist/{chunk-NOHHZ6FM.mjs → chunk-EUXHJMGC.mjs} +3 -3
- package/dist/{chunk-NOHHZ6FM.mjs.map → chunk-EUXHJMGC.mjs.map} +1 -1
- package/dist/{chunk-QSMPKL27.js → chunk-F5UDX6JA.js} +74 -74
- package/dist/{chunk-QSMPKL27.js.map → chunk-F5UDX6JA.js.map} +1 -1
- package/dist/{chunk-P43PX75J.js → chunk-HVDDCBQ2.js} +33 -33
- package/dist/{chunk-P43PX75J.js.map → chunk-HVDDCBQ2.js.map} +1 -1
- package/dist/{chunk-AWDH6WNA.js → chunk-K4M4B6ME.js} +3 -3
- package/dist/{chunk-AWDH6WNA.js.map → chunk-K4M4B6ME.js.map} +1 -1
- package/dist/{chunk-VMGNQFRO.js → chunk-KIBOX3UQ.js} +53 -53
- package/dist/{chunk-VMGNQFRO.js.map → chunk-KIBOX3UQ.js.map} +1 -1
- package/dist/{chunk-5I7F7KZ6.js → chunk-KRPSTXN5.js} +10 -10
- package/dist/{chunk-5I7F7KZ6.js.map → chunk-KRPSTXN5.js.map} +1 -1
- package/dist/{chunk-ZM2Q2SMC.mjs → chunk-L5O4NWQO.mjs} +3 -3
- package/dist/{chunk-ZM2Q2SMC.mjs.map → chunk-L5O4NWQO.mjs.map} +1 -1
- package/dist/{chunk-BVXATTTA.js → chunk-MT4FJRMD.js} +4 -4
- package/dist/{chunk-BVXATTTA.js.map → chunk-MT4FJRMD.js.map} +1 -1
- package/dist/{chunk-C4NRF2G2.js → chunk-OWJIKCR2.js} +13 -13
- package/dist/{chunk-C4NRF2G2.js.map → chunk-OWJIKCR2.js.map} +1 -1
- package/dist/{chunk-5BEVTOZV.mjs → chunk-PFHXKWFT.mjs} +4 -4
- package/dist/{chunk-5BEVTOZV.mjs.map → chunk-PFHXKWFT.mjs.map} +1 -1
- package/dist/{chunk-QLFSJ6HK.mjs → chunk-PI2C3S6A.mjs} +3 -3
- package/dist/{chunk-QLFSJ6HK.mjs.map → chunk-PI2C3S6A.mjs.map} +1 -1
- package/dist/{chunk-74MHWEDC.js → chunk-PYQLY2RH.js} +161 -161
- package/dist/{chunk-74MHWEDC.js.map → chunk-PYQLY2RH.js.map} +1 -1
- package/dist/{chunk-Z7VY5M4T.js → chunk-QIUVK4BI.js} +77 -77
- package/dist/{chunk-Z7VY5M4T.js.map → chunk-QIUVK4BI.js.map} +1 -1
- package/dist/{chunk-4PFU6A2B.mjs → chunk-R3Q5RXXO.mjs} +3 -3
- package/dist/{chunk-4PFU6A2B.mjs.map → chunk-R3Q5RXXO.mjs.map} +1 -1
- package/dist/{chunk-7UHV6A4C.mjs → chunk-R6O57NTJ.mjs} +6 -6
- package/dist/{chunk-7UHV6A4C.mjs.map → chunk-R6O57NTJ.mjs.map} +1 -1
- package/dist/{chunk-A7FI4K7Z.js → chunk-RQBTLFYH.js} +5 -5
- package/dist/{chunk-A7FI4K7Z.js.map → chunk-RQBTLFYH.js.map} +1 -1
- package/dist/{chunk-V5VBYOF5.js → chunk-SFFSXC5E.js} +36 -36
- package/dist/{chunk-V5VBYOF5.js.map → chunk-SFFSXC5E.js.map} +1 -1
- package/dist/{chunk-AVM53A3Y.js → chunk-U6XA2OYE.js} +28 -28
- package/dist/{chunk-AVM53A3Y.js.map → chunk-U6XA2OYE.js.map} +1 -1
- package/dist/{chunk-7CEZB3ZD.mjs → chunk-ULEPJXTN.mjs} +3 -3
- package/dist/{chunk-7CEZB3ZD.mjs.map → chunk-ULEPJXTN.mjs.map} +1 -1
- package/dist/{chunk-FK3WDELF.js → chunk-VMIAMBCP.js} +40 -40
- package/dist/{chunk-FK3WDELF.js.map → chunk-VMIAMBCP.js.map} +1 -1
- package/dist/{chunk-OASC7NYV.mjs → chunk-WKCR4KVQ.mjs} +3 -3
- package/dist/{chunk-OASC7NYV.mjs.map → chunk-WKCR4KVQ.mjs.map} +1 -1
- package/dist/{chunk-6W7VTZG6.mjs → chunk-YV2SE5LS.mjs} +3 -3
- package/dist/{chunk-6W7VTZG6.mjs.map → chunk-YV2SE5LS.mjs.map} +1 -1
- package/dist/dynamic-island-confirm-BKsZkAEP.d.mts +17 -0
- package/dist/dynamic-island-confirm-BKsZkAEP.d.ts +17 -0
- package/dist/index-BNRGVAS5.d.mts +222 -0
- package/dist/index-BoebbJ44.d.mts +49 -0
- package/dist/index-BoebbJ44.d.ts +49 -0
- package/dist/index-CnCY-b5V.d.ts +222 -0
- package/dist/index.d.mts +5310 -0
- package/dist/index.d.ts +5310 -0
- package/dist/index.js +721 -721
- package/dist/index.mjs +2 -2
- package/dist/layout-engine-YZcVr20M.d.mts +19 -0
- package/dist/layout-engine-YZcVr20M.d.ts +19 -0
- package/dist/lib/i18n-context.d.mts +36 -0
- package/dist/lib/i18n-context.d.ts +36 -0
- package/dist/lib/router-context.d.mts +35 -0
- package/dist/lib/router-context.d.ts +35 -0
- package/dist/navigation-BiWVffAN.d.mts +49 -0
- package/dist/navigation-BiWVffAN.d.ts +49 -0
- package/dist/platform/admin/index.d.mts +17 -0
- package/dist/platform/admin/index.d.ts +17 -0
- package/dist/platform/admin/index.js +11 -11
- package/dist/platform/admin/index.mjs +5 -5
- package/dist/platform/agents-workspace.d.mts +19 -0
- package/dist/platform/agents-workspace.d.ts +19 -0
- package/dist/platform/agents-workspace.js +7 -7
- package/dist/platform/agents-workspace.mjs +6 -6
- package/dist/platform/app-shell.d.mts +58 -0
- package/dist/platform/app-shell.d.ts +58 -0
- package/dist/platform/app-shell.js +4 -4
- package/dist/platform/app-shell.mjs +3 -3
- package/dist/platform/auth/index.d.mts +73 -0
- package/dist/platform/auth/index.d.ts +73 -0
- package/dist/platform/auth/index.js +28 -28
- package/dist/platform/auth/index.mjs +5 -5
- package/dist/platform/billing/index.d.mts +29 -0
- package/dist/platform/billing/index.d.ts +29 -0
- package/dist/platform/billing/index.js +4 -4
- package/dist/platform/billing/index.mjs +3 -3
- package/dist/platform/impersonation/index.d.mts +19 -0
- package/dist/platform/impersonation/index.d.ts +19 -0
- package/dist/platform/impersonation/index.js +4 -4
- package/dist/platform/impersonation/index.mjs +3 -3
- package/dist/platform/index.d.mts +188 -0
- package/dist/platform/index.d.ts +188 -0
- package/dist/platform/index.js +89 -89
- package/dist/platform/index.mjs +19 -19
- package/dist/platform/pages/index.d.mts +440 -0
- package/dist/platform/pages/index.d.ts +440 -0
- package/dist/platform/pages/index.js +206 -206
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +9 -9
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/rbac.d.mts +42 -0
- package/dist/platform/rbac.d.ts +42 -0
- package/dist/platform/settings/index.d.mts +31 -0
- package/dist/platform/settings/index.d.ts +31 -0
- package/dist/platform/settings/index.js +8 -8
- package/dist/platform/settings/index.mjs +7 -7
- package/dist/platform/telemetry/index.d.mts +51 -0
- package/dist/platform/telemetry/index.d.ts +51 -0
- package/dist/platform/utils/index.d.mts +32 -0
- package/dist/platform/utils/index.d.ts +32 -0
- package/dist/platform/windsock-admin-client.d.mts +57 -0
- package/dist/platform/windsock-admin-client.d.ts +57 -0
- package/dist/platform/workflow-api-client.d.mts +6 -0
- package/dist/platform/workflow-api-client.d.ts +6 -0
- package/dist/platform/workflow-canvas-shell.d.mts +18 -0
- package/dist/platform/workflow-canvas-shell.d.ts +18 -0
- package/dist/platform/workflow-canvas-shell.js +5 -5
- package/dist/platform/workflow-canvas-shell.mjs +4 -4
- package/dist/rule-form-BYJzyork.d.mts +128 -0
- package/dist/rule-form-BYJzyork.d.ts +128 -0
- package/dist/workflow-api-client-CpFl3WcG.d.mts +468 -0
- package/dist/workflow-api-client-uLICOanv.d.ts +468 -0
- package/dist/workflow-canvas--qaYKuMm.d.ts +113 -0
- package/dist/workflow-canvas-B80fmD_n.d.mts +113 -0
- package/dist/workflow-store-o17I6L6A.d.ts +79 -0
- package/dist/workflow-store-ppVHdMZi.d.mts +79 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk2UMDWOUY_js = require('./chunk-2UMDWOUY.js');
|
|
5
|
+
var chunkK4M4B6ME_js = require('./chunk-K4M4B6ME.js');
|
|
6
6
|
var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
|
|
7
7
|
var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
|
|
8
8
|
var react = require('react');
|
|
@@ -19,7 +19,7 @@ function MfaChallenge({
|
|
|
19
19
|
embedded = false
|
|
20
20
|
}) {
|
|
21
21
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
22
|
-
const { verifyMFA } =
|
|
22
|
+
const { verifyMFA } = chunkK4M4B6ME_js.useAuth();
|
|
23
23
|
const [method, setMethod] = react.useState("totp");
|
|
24
24
|
const [totpCode, setTotpCode] = react.useState("");
|
|
25
25
|
const [backupCode, setBackupCode] = react.useState("");
|
|
@@ -83,7 +83,7 @@ function MfaChallenge({
|
|
|
83
83
|
/* @__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
84
|
] }),
|
|
85
85
|
availableMethods.length > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
-
|
|
86
|
+
chunkK4M4B6ME_js.SegmentedControl,
|
|
87
87
|
{
|
|
88
88
|
segments,
|
|
89
89
|
value: method,
|
|
@@ -94,7 +94,7 @@ function MfaChallenge({
|
|
|
94
94
|
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
95
|
method === "totp" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
96
96
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
-
|
|
97
|
+
chunk2UMDWOUY_js.OtpInput,
|
|
98
98
|
{
|
|
99
99
|
value: totpCode,
|
|
100
100
|
onChange: setTotpCode,
|
|
@@ -104,11 +104,11 @@ function MfaChallenge({
|
|
|
104
104
|
autoFocus: true
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
|
-
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
107
|
+
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Spinner, {}) })
|
|
108
108
|
] }),
|
|
109
109
|
method === "backup" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
110
110
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
111
|
-
|
|
111
|
+
chunkK4M4B6ME_js.Input,
|
|
112
112
|
{
|
|
113
113
|
value: backupCode,
|
|
114
114
|
onChange: (event) => setBackupCode(event.target.value),
|
|
@@ -120,7 +120,7 @@ function MfaChallenge({
|
|
|
120
120
|
}
|
|
121
121
|
),
|
|
122
122
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
123
|
-
|
|
123
|
+
chunkK4M4B6ME_js.Button,
|
|
124
124
|
{
|
|
125
125
|
color: "ios-glass-blue",
|
|
126
126
|
fullWidth: true,
|
|
@@ -145,7 +145,7 @@ function MfaChallenge({
|
|
|
145
145
|
) })
|
|
146
146
|
] });
|
|
147
147
|
if (embedded) return content;
|
|
148
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
148
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: content });
|
|
149
149
|
}
|
|
150
150
|
function SignIn({
|
|
151
151
|
onSuccess,
|
|
@@ -159,8 +159,8 @@ function SignIn({
|
|
|
159
159
|
heroPanel
|
|
160
160
|
}) {
|
|
161
161
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
162
|
-
const { loginWithCredentials, loginWithProvider } =
|
|
163
|
-
const discovered =
|
|
162
|
+
const { loginWithCredentials, loginWithProvider } = chunkK4M4B6ME_js.useAuth();
|
|
163
|
+
const discovered = chunkK4M4B6ME_js.useSocialProviders();
|
|
164
164
|
const effectiveSocialProviders = socialProviders ?? discovered.providers;
|
|
165
165
|
const [email, setEmail] = react.useState(defaultEmail);
|
|
166
166
|
const [password, setPassword] = react.useState("");
|
|
@@ -213,7 +213,7 @@ function SignIn({
|
|
|
213
213
|
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
214
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
215
215
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
216
|
-
|
|
216
|
+
chunkK4M4B6ME_js.Input,
|
|
217
217
|
{
|
|
218
218
|
label: t("emailLabel"),
|
|
219
219
|
type: "email",
|
|
@@ -226,7 +226,7 @@ function SignIn({
|
|
|
226
226
|
}
|
|
227
227
|
),
|
|
228
228
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
229
|
-
|
|
229
|
+
chunkK4M4B6ME_js.PasswordInput,
|
|
230
230
|
{
|
|
231
231
|
label: t("passwordLabel"),
|
|
232
232
|
value: password,
|
|
@@ -247,7 +247,7 @@ function SignIn({
|
|
|
247
247
|
}
|
|
248
248
|
) }),
|
|
249
249
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
250
|
-
|
|
250
|
+
chunkK4M4B6ME_js.Button,
|
|
251
251
|
{
|
|
252
252
|
type: "submit",
|
|
253
253
|
color: "ios-glass-green",
|
|
@@ -265,7 +265,7 @@ function SignIn({
|
|
|
265
265
|
/* @__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
266
|
] }),
|
|
267
267
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
-
|
|
268
|
+
chunk2UMDWOUY_js.SocialLoginButtons,
|
|
269
269
|
{
|
|
270
270
|
providers: [...effectiveSocialProviders],
|
|
271
271
|
onProviderClick: handleSocialLogin,
|
|
@@ -275,7 +275,7 @@ function SignIn({
|
|
|
275
275
|
)
|
|
276
276
|
] }),
|
|
277
277
|
allowPasswordless && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
278
|
-
|
|
278
|
+
chunkK4M4B6ME_js.Button,
|
|
279
279
|
{
|
|
280
280
|
type: "button",
|
|
281
281
|
color: "ios-glass-blue",
|
|
@@ -303,7 +303,7 @@ function SignIn({
|
|
|
303
303
|
] })
|
|
304
304
|
] });
|
|
305
305
|
if (embedded) return content;
|
|
306
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
306
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk2UMDWOUY_js.AuthLayout, { heroPanel, children: content });
|
|
307
307
|
}
|
|
308
308
|
var RESEND_COOLDOWN_SECONDS = 60;
|
|
309
309
|
function VerifyEmail({
|
|
@@ -313,7 +313,7 @@ function VerifyEmail({
|
|
|
313
313
|
embedded = false
|
|
314
314
|
}) {
|
|
315
315
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
316
|
-
const { client } =
|
|
316
|
+
const { client } = chunkK4M4B6ME_js.useAuth();
|
|
317
317
|
const [code, setCode] = react.useState("");
|
|
318
318
|
const [error, setError] = react.useState(null);
|
|
319
319
|
const [isSubmitting, setIsSubmitting] = react.useState(false);
|
|
@@ -371,7 +371,7 @@ function VerifyEmail({
|
|
|
371
371
|
] }),
|
|
372
372
|
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
373
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
374
|
-
|
|
374
|
+
chunk2UMDWOUY_js.OtpInput,
|
|
375
375
|
{
|
|
376
376
|
value: code,
|
|
377
377
|
onChange: setCode,
|
|
@@ -381,11 +381,11 @@ function VerifyEmail({
|
|
|
381
381
|
autoFocus: true
|
|
382
382
|
}
|
|
383
383
|
),
|
|
384
|
-
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
384
|
+
isSubmitting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Spinner, {}) }),
|
|
385
385
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-1", children: [
|
|
386
386
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: t("verifyEmailNoCode") }),
|
|
387
387
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
388
|
-
|
|
388
|
+
chunkK4M4B6ME_js.Button,
|
|
389
389
|
{
|
|
390
390
|
type: "button",
|
|
391
391
|
outline: true,
|
|
@@ -398,7 +398,7 @@ function VerifyEmail({
|
|
|
398
398
|
] })
|
|
399
399
|
] });
|
|
400
400
|
if (embedded) return content;
|
|
401
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
401
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: content });
|
|
402
402
|
}
|
|
403
403
|
function SignUp({
|
|
404
404
|
onSuccess,
|
|
@@ -409,8 +409,8 @@ function SignUp({
|
|
|
409
409
|
heroPanel
|
|
410
410
|
}) {
|
|
411
411
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
412
|
-
const { client, loginWithProvider } =
|
|
413
|
-
const discovered =
|
|
412
|
+
const { client, loginWithProvider } = chunkK4M4B6ME_js.useAuth();
|
|
413
|
+
const discovered = chunkK4M4B6ME_js.useSocialProviders();
|
|
414
414
|
const effectiveSocialProviders = socialProviders ?? discovered.providers;
|
|
415
415
|
const [phase, setPhase] = react.useState("form");
|
|
416
416
|
const [registeredEmail, setRegisteredEmail] = react.useState("");
|
|
@@ -465,7 +465,7 @@ function SignUp({
|
|
|
465
465
|
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
466
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
467
467
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
468
|
-
|
|
468
|
+
chunkK4M4B6ME_js.Input,
|
|
469
469
|
{
|
|
470
470
|
label: t("nameLabel"),
|
|
471
471
|
type: "text",
|
|
@@ -479,7 +479,7 @@ function SignUp({
|
|
|
479
479
|
}
|
|
480
480
|
),
|
|
481
481
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
482
|
-
|
|
482
|
+
chunkK4M4B6ME_js.Input,
|
|
483
483
|
{
|
|
484
484
|
label: t("emailLabel"),
|
|
485
485
|
type: "email",
|
|
@@ -494,7 +494,7 @@ function SignUp({
|
|
|
494
494
|
),
|
|
495
495
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
496
496
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
497
|
-
|
|
497
|
+
chunkK4M4B6ME_js.PasswordInput,
|
|
498
498
|
{
|
|
499
499
|
label: t("passwordLabel"),
|
|
500
500
|
value: password,
|
|
@@ -507,7 +507,7 @@ function SignUp({
|
|
|
507
507
|
}
|
|
508
508
|
),
|
|
509
509
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
510
|
-
|
|
510
|
+
chunk2UMDWOUY_js.PasswordStrengthMeter,
|
|
511
511
|
{
|
|
512
512
|
password,
|
|
513
513
|
policy: passwordPolicy,
|
|
@@ -516,7 +516,7 @@ function SignUp({
|
|
|
516
516
|
)
|
|
517
517
|
] }),
|
|
518
518
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
519
|
-
|
|
519
|
+
chunkK4M4B6ME_js.FormCheckbox,
|
|
520
520
|
{
|
|
521
521
|
checked: termsAccepted,
|
|
522
522
|
onChange: setTermsAccepted,
|
|
@@ -526,7 +526,7 @@ function SignUp({
|
|
|
526
526
|
}
|
|
527
527
|
),
|
|
528
528
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
529
|
-
|
|
529
|
+
chunkK4M4B6ME_js.Button,
|
|
530
530
|
{
|
|
531
531
|
type: "submit",
|
|
532
532
|
color: "ios-glass-blue",
|
|
@@ -543,7 +543,7 @@ function SignUp({
|
|
|
543
543
|
/* @__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
544
|
] }),
|
|
545
545
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
546
|
-
|
|
546
|
+
chunk2UMDWOUY_js.SocialLoginButtons,
|
|
547
547
|
{
|
|
548
548
|
providers: [...effectiveSocialProviders],
|
|
549
549
|
onProviderClick: handleSocialLogin,
|
|
@@ -567,7 +567,7 @@ function SignUp({
|
|
|
567
567
|
] })
|
|
568
568
|
] });
|
|
569
569
|
if (embedded) return content;
|
|
570
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
570
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk2UMDWOUY_js.AuthLayout, { heroPanel, children: content });
|
|
571
571
|
}
|
|
572
572
|
function ForgotPassword({
|
|
573
573
|
onSuccess,
|
|
@@ -576,7 +576,7 @@ function ForgotPassword({
|
|
|
576
576
|
embedded = false
|
|
577
577
|
}) {
|
|
578
578
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
579
|
-
const { client } =
|
|
579
|
+
const { client } = chunkK4M4B6ME_js.useAuth();
|
|
580
580
|
const [phase, setPhase] = react.useState("form");
|
|
581
581
|
const [email, setEmail] = react.useState(defaultEmail);
|
|
582
582
|
const [error, setError] = react.useState(null);
|
|
@@ -600,7 +600,7 @@ function ForgotPassword({
|
|
|
600
600
|
);
|
|
601
601
|
const sentContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
|
|
602
602
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
603
|
-
|
|
603
|
+
chunkK4M4B6ME_js.EmptyState,
|
|
604
604
|
{
|
|
605
605
|
variant: "minimal",
|
|
606
606
|
icon: outline.CheckCircleIcon,
|
|
@@ -625,7 +625,7 @@ function ForgotPassword({
|
|
|
625
625
|
] }),
|
|
626
626
|
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
627
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
628
|
-
|
|
628
|
+
chunkK4M4B6ME_js.BaseForm,
|
|
629
629
|
{
|
|
630
630
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.EnvelopeIcon, { className: "h-5 w-5" }),
|
|
631
631
|
iconColor: "blue",
|
|
@@ -637,7 +637,7 @@ function ForgotPassword({
|
|
|
637
637
|
submitDisabled: !email.trim(),
|
|
638
638
|
showHeader: false,
|
|
639
639
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
640
|
-
|
|
640
|
+
chunkK4M4B6ME_js.Input,
|
|
641
641
|
{
|
|
642
642
|
label: t("emailLabel"),
|
|
643
643
|
type: "email",
|
|
@@ -665,7 +665,7 @@ function ForgotPassword({
|
|
|
665
665
|
] });
|
|
666
666
|
const activeContent = phase === "sent" ? sentContent : formContent;
|
|
667
667
|
if (embedded) return activeContent;
|
|
668
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
668
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: activeContent });
|
|
669
669
|
}
|
|
670
670
|
function ResetPassword({
|
|
671
671
|
token,
|
|
@@ -674,7 +674,7 @@ function ResetPassword({
|
|
|
674
674
|
embedded = false
|
|
675
675
|
}) {
|
|
676
676
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
677
|
-
const { client } =
|
|
677
|
+
const { client } = chunkK4M4B6ME_js.useAuth();
|
|
678
678
|
const [phase, setPhase] = react.useState("form");
|
|
679
679
|
const [password, setPassword] = react.useState("");
|
|
680
680
|
const [confirmPassword, setConfirmPassword] = react.useState("");
|
|
@@ -704,7 +704,7 @@ function ResetPassword({
|
|
|
704
704
|
[client, token, password, passwordsMatch, onSuccess, t]
|
|
705
705
|
);
|
|
706
706
|
const successContent = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-5", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
707
|
-
|
|
707
|
+
chunkK4M4B6ME_js.EmptyState,
|
|
708
708
|
{
|
|
709
709
|
variant: "minimal",
|
|
710
710
|
icon: outline.CheckCircleIcon,
|
|
@@ -721,7 +721,7 @@ function ResetPassword({
|
|
|
721
721
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
722
722
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
723
723
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
724
|
-
|
|
724
|
+
chunkK4M4B6ME_js.PasswordInput,
|
|
725
725
|
{
|
|
726
726
|
label: t("newPasswordLabel"),
|
|
727
727
|
value: password,
|
|
@@ -735,7 +735,7 @@ function ResetPassword({
|
|
|
735
735
|
}
|
|
736
736
|
),
|
|
737
737
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
738
|
-
|
|
738
|
+
chunk2UMDWOUY_js.PasswordStrengthMeter,
|
|
739
739
|
{
|
|
740
740
|
password,
|
|
741
741
|
policy: passwordPolicy,
|
|
@@ -744,7 +744,7 @@ function ResetPassword({
|
|
|
744
744
|
)
|
|
745
745
|
] }),
|
|
746
746
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
747
|
-
|
|
747
|
+
chunkK4M4B6ME_js.PasswordInput,
|
|
748
748
|
{
|
|
749
749
|
label: t("confirmPasswordLabel"),
|
|
750
750
|
value: confirmPassword,
|
|
@@ -759,7 +759,7 @@ function ResetPassword({
|
|
|
759
759
|
}
|
|
760
760
|
),
|
|
761
761
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
762
|
-
|
|
762
|
+
chunkK4M4B6ME_js.Button,
|
|
763
763
|
{
|
|
764
764
|
type: "submit",
|
|
765
765
|
color: "ios-glass-blue",
|
|
@@ -773,7 +773,7 @@ function ResetPassword({
|
|
|
773
773
|
] });
|
|
774
774
|
const activeContent = phase === "success" ? successContent : formContent;
|
|
775
775
|
if (embedded) return activeContent;
|
|
776
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
776
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: activeContent });
|
|
777
777
|
}
|
|
778
778
|
function PasswordlessSignIn({
|
|
779
779
|
defaultMethod = "email",
|
|
@@ -784,7 +784,7 @@ function PasswordlessSignIn({
|
|
|
784
784
|
embedded = false
|
|
785
785
|
}) {
|
|
786
786
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
787
|
-
const { client } =
|
|
787
|
+
const { client } = chunkK4M4B6ME_js.useAuth();
|
|
788
788
|
const [step, setStep] = react.useState("input");
|
|
789
789
|
const [channel, setChannel] = react.useState(
|
|
790
790
|
allowedChannels.includes(defaultMethod) ? defaultMethod : allowedChannels[0] ?? "email"
|
|
@@ -834,7 +834,7 @@ function PasswordlessSignIn({
|
|
|
834
834
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: t("passwordlessSubtitle") })
|
|
835
835
|
] }),
|
|
836
836
|
allowedChannels.length > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
837
|
-
|
|
837
|
+
chunkK4M4B6ME_js.SegmentedControl,
|
|
838
838
|
{
|
|
839
839
|
segments: channelSegments,
|
|
840
840
|
value: channel,
|
|
@@ -848,7 +848,7 @@ function PasswordlessSignIn({
|
|
|
848
848
|
) }),
|
|
849
849
|
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
850
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
851
|
-
|
|
851
|
+
chunkK4M4B6ME_js.Input,
|
|
852
852
|
{
|
|
853
853
|
label: channel === "email" ? t("emailLabel") : t("phoneLabel"),
|
|
854
854
|
type: channel === "email" ? "email" : "tel",
|
|
@@ -862,7 +862,7 @@ function PasswordlessSignIn({
|
|
|
862
862
|
}
|
|
863
863
|
),
|
|
864
864
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
865
|
-
|
|
865
|
+
chunkK4M4B6ME_js.Button,
|
|
866
866
|
{
|
|
867
867
|
type: "button",
|
|
868
868
|
color: "ios-glass-blue",
|
|
@@ -885,7 +885,7 @@ function PasswordlessSignIn({
|
|
|
885
885
|
] });
|
|
886
886
|
const sentContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
887
887
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
888
|
-
|
|
888
|
+
chunkK4M4B6ME_js.EmptyState,
|
|
889
889
|
{
|
|
890
890
|
variant: "minimal",
|
|
891
891
|
icon: outline.PaperAirplaneIcon,
|
|
@@ -893,7 +893,7 @@ function PasswordlessSignIn({
|
|
|
893
893
|
description: channel === "email" ? t("passwordlessCodeSentEmailDescription", { email: identifier }) : t("passwordlessCodeSentSmsDescription", { phone: identifier })
|
|
894
894
|
}
|
|
895
895
|
),
|
|
896
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
896
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Spinner, {}) })
|
|
897
897
|
] });
|
|
898
898
|
const verifyContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
899
899
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
|
|
@@ -902,7 +902,7 @@ function PasswordlessSignIn({
|
|
|
902
902
|
] }),
|
|
903
903
|
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
904
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
905
|
-
|
|
905
|
+
chunk2UMDWOUY_js.OtpInput,
|
|
906
906
|
{
|
|
907
907
|
value: code,
|
|
908
908
|
onChange: setCode,
|
|
@@ -912,7 +912,7 @@ function PasswordlessSignIn({
|
|
|
912
912
|
autoFocus: true
|
|
913
913
|
}
|
|
914
914
|
),
|
|
915
|
-
isVerifying && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
915
|
+
isVerifying && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Spinner, {}) }),
|
|
916
916
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
917
917
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
918
918
|
"button",
|
|
@@ -945,7 +945,7 @@ function PasswordlessSignIn({
|
|
|
945
945
|
] });
|
|
946
946
|
const activeContent = step === "input" ? inputContent : step === "sent" ? sentContent : verifyContent;
|
|
947
947
|
if (embedded) return activeContent;
|
|
948
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
948
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Card, { variant: "glass", className: "mx-auto max-w-md p-6 sm:p-8", children: activeContent });
|
|
949
949
|
}
|
|
950
950
|
function ConsentScreen({
|
|
951
951
|
application,
|
|
@@ -979,10 +979,10 @@ function ConsentScreen({
|
|
|
979
979
|
onDeny();
|
|
980
980
|
}, [onDeny]);
|
|
981
981
|
const appInitials = application.name.split(" ").map((word) => word[0]).join("").slice(0, 2).toUpperCase();
|
|
982
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
982
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk2UMDWOUY_js.AuthLayout, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Card, { variant: "glass", className: "mx-auto w-full max-w-md", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.CardContent, { className: "space-y-6 p-6 sm:p-8", children: [
|
|
983
983
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
984
984
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
985
|
-
|
|
985
|
+
chunkK4M4B6ME_js.Avatar,
|
|
986
986
|
{
|
|
987
987
|
src: application.logoUrl,
|
|
988
988
|
initials: appInitials,
|
|
@@ -992,7 +992,7 @@ function ConsentScreen({
|
|
|
992
992
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
993
993
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2", children: [
|
|
994
994
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: application.name }),
|
|
995
|
-
application.verified ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
995
|
+
application.verified ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: "green", children: t("consent.verified") }) : /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: "amber", children: t("consent.unverified") })
|
|
996
996
|
] }),
|
|
997
997
|
application.url && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: application.url }),
|
|
998
998
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-600 dark:text-gray-300", children: t("consent.wantsAccess") })
|
|
@@ -1004,11 +1004,11 @@ function ConsentScreen({
|
|
|
1004
1004
|
] }),
|
|
1005
1005
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1006
1006
|
/* @__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
|
-
|
|
1007
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ListCard, { children: scopes.map((scope) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1008
|
+
chunkK4M4B6ME_js.ListCardItem,
|
|
1009
1009
|
{
|
|
1010
1010
|
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1011
|
-
|
|
1011
|
+
chunkK4M4B6ME_js.FormCheckbox,
|
|
1012
1012
|
{
|
|
1013
1013
|
checked: checkedScopes.has(scope.id),
|
|
1014
1014
|
onChange: (checked) => handleScopeToggle(scope.id, checked),
|
|
@@ -1026,7 +1026,7 @@ function ConsentScreen({
|
|
|
1026
1026
|
] }),
|
|
1027
1027
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 sm:flex-row-reverse", children: [
|
|
1028
1028
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1029
|
-
|
|
1029
|
+
chunkK4M4B6ME_js.Button,
|
|
1030
1030
|
{
|
|
1031
1031
|
color: "ios-glass-blue",
|
|
1032
1032
|
fullWidth: true,
|
|
@@ -1037,7 +1037,7 @@ function ConsentScreen({
|
|
|
1037
1037
|
}
|
|
1038
1038
|
),
|
|
1039
1039
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1040
|
-
|
|
1040
|
+
chunkK4M4B6ME_js.Button,
|
|
1041
1041
|
{
|
|
1042
1042
|
outline: true,
|
|
1043
1043
|
fullWidth: true,
|
|
@@ -1054,20 +1054,20 @@ function SsoConnectorList({ connectors, onSelect, loading = false }) {
|
|
|
1054
1054
|
const t = chunkYXN2K77G_js.useTranslations("windsock");
|
|
1055
1055
|
if (loading) {
|
|
1056
1056
|
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(
|
|
1057
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.InlineSpinner, {}),
|
|
1058
1058
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t("sso.connectorList.loading") })
|
|
1059
1059
|
] });
|
|
1060
1060
|
}
|
|
1061
1061
|
if (connectors.length === 0) {
|
|
1062
1062
|
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
1063
|
}
|
|
1064
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1064
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ListCard, { children: connectors.map((connector) => {
|
|
1065
1065
|
const initials = connector.name.split(" ").map((word) => word[0]).join("").slice(0, 2).toUpperCase();
|
|
1066
1066
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1067
|
-
|
|
1067
|
+
chunkK4M4B6ME_js.ListCardItem,
|
|
1068
1068
|
{
|
|
1069
1069
|
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1070
|
-
|
|
1070
|
+
chunkK4M4B6ME_js.Avatar,
|
|
1071
1071
|
{
|
|
1072
1072
|
src: connector.logoUrl,
|
|
1073
1073
|
initials,
|
|
@@ -1075,7 +1075,7 @@ function SsoConnectorList({ connectors, onSelect, loading = false }) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
),
|
|
1077
1077
|
trailing: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1078
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1078
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: "zinc", children: connector.type === "saml" ? t("sso.connectorList.typeSaml") : t("sso.connectorList.typeOidc") }),
|
|
1079
1079
|
/* @__PURE__ */ jsxRuntime.jsx(solid.ChevronRightIcon, { className: "h-4 w-4 text-gray-400" })
|
|
1080
1080
|
] }),
|
|
1081
1081
|
onClick: () => onSelect(connector),
|
|
@@ -1161,16 +1161,16 @@ function SsoEmailForm({
|
|
|
1161
1161
|
) })
|
|
1162
1162
|
] });
|
|
1163
1163
|
if (embedded) return connectorsContent;
|
|
1164
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1164
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Card, { variant: "glass", className: "mx-auto w-full max-w-md", children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.CardContent, { className: "p-6 sm:p-8", children: connectorsContent }) });
|
|
1165
1165
|
}
|
|
1166
1166
|
const emailContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1167
1167
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
1168
1168
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-gray-900 dark:text-white", children: t("sso.emailForm.title") }),
|
|
1169
1169
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: t("sso.emailForm.subtitle") })
|
|
1170
1170
|
] }),
|
|
1171
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1171
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.BaseForm, { onSubmit: handleEmailSubmit, submitLabel: t("sso.emailForm.continueButton"), showFooter: false, children: [
|
|
1172
1172
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1173
|
-
|
|
1173
|
+
chunkK4M4B6ME_js.Input,
|
|
1174
1174
|
{
|
|
1175
1175
|
type: "email",
|
|
1176
1176
|
label: t("sso.emailForm.emailLabel"),
|
|
@@ -1188,7 +1188,7 @@ function SsoEmailForm({
|
|
|
1188
1188
|
}
|
|
1189
1189
|
),
|
|
1190
1190
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1191
|
-
|
|
1191
|
+
chunkK4M4B6ME_js.Button,
|
|
1192
1192
|
{
|
|
1193
1193
|
type: "submit",
|
|
1194
1194
|
color: "ios-glass-blue",
|
|
@@ -1201,7 +1201,7 @@ function SsoEmailForm({
|
|
|
1201
1201
|
] })
|
|
1202
1202
|
] });
|
|
1203
1203
|
if (embedded) return emailContent;
|
|
1204
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1204
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Card, { variant: "glass", className: "mx-auto w-full max-w-md", children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.CardContent, { className: "p-6 sm:p-8", children: emailContent }) });
|
|
1205
1205
|
}
|
|
1206
1206
|
var DEFAULT_LABELS = {
|
|
1207
1207
|
menuLabel: "User menu",
|
|
@@ -1213,7 +1213,7 @@ var DEFAULT_LABELS = {
|
|
|
1213
1213
|
};
|
|
1214
1214
|
function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
1215
1215
|
const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
|
|
1216
|
-
const { user, logout, status } =
|
|
1216
|
+
const { user, logout, status } = chunkK4M4B6ME_js.useAuth();
|
|
1217
1217
|
const [confirmSignOut, setConfirmSignOut] = react.useState(false);
|
|
1218
1218
|
if (status !== "authenticated") {
|
|
1219
1219
|
return null;
|
|
@@ -1246,7 +1246,7 @@ function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
|
1246
1246
|
"aria-label": resolvedLabels.menuLabel,
|
|
1247
1247
|
children: [
|
|
1248
1248
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1249
|
-
|
|
1249
|
+
chunkK4M4B6ME_js.Avatar,
|
|
1250
1250
|
{
|
|
1251
1251
|
src: resolvedAvatarUrl,
|
|
1252
1252
|
initials: userInitials,
|
|
@@ -1270,7 +1270,7 @@ function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
|
1270
1270
|
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
1271
|
/* @__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
1272
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1273
|
-
|
|
1273
|
+
chunkK4M4B6ME_js.Avatar,
|
|
1274
1274
|
{
|
|
1275
1275
|
src: resolvedAvatarUrl,
|
|
1276
1276
|
initials: userInitials,
|
|
@@ -1317,7 +1317,7 @@ function UserButton({ menuItems = [], onSignOut, avatarUrl, labels }) {
|
|
|
1317
1317
|
)
|
|
1318
1318
|
] }),
|
|
1319
1319
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1320
|
-
|
|
1320
|
+
chunkK4M4B6ME_js.DynamicIslandConfirm,
|
|
1321
1321
|
{
|
|
1322
1322
|
open: confirmSignOut,
|
|
1323
1323
|
onClose: handleSignOutCancel,
|
|
@@ -1341,5 +1341,5 @@ exports.SsoConnectorList = SsoConnectorList;
|
|
|
1341
1341
|
exports.SsoEmailForm = SsoEmailForm;
|
|
1342
1342
|
exports.UserButton = UserButton;
|
|
1343
1343
|
exports.VerifyEmail = VerifyEmail;
|
|
1344
|
-
//# sourceMappingURL=chunk-
|
|
1345
|
-
//# sourceMappingURL=chunk-
|
|
1344
|
+
//# sourceMappingURL=chunk-QIUVK4BI.js.map
|
|
1345
|
+
//# sourceMappingURL=chunk-QIUVK4BI.js.map
|