@datatechsolutions/ui 2.11.91 → 2.11.92
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/README.md +58 -39
- package/dist/astrlabe/index.js +107 -107
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-MLAIUJYC.js → chunk-24QKSC74.js} +6 -6
- package/dist/{chunk-MLAIUJYC.js.map → chunk-24QKSC74.js.map} +1 -1
- package/dist/{chunk-OQDWU6AE.js → chunk-2RDGJXYZ.js} +67 -67
- package/dist/{chunk-OQDWU6AE.js.map → chunk-2RDGJXYZ.js.map} +1 -1
- package/dist/{chunk-CBVRUJ7N.mjs → chunk-3PKG4KFY.mjs} +4 -4
- package/dist/{chunk-CBVRUJ7N.mjs.map → chunk-3PKG4KFY.mjs.map} +1 -1
- package/dist/{chunk-36G7GAPU.mjs → chunk-3SUFSAP6.mjs} +3 -3
- package/dist/{chunk-36G7GAPU.mjs.map → chunk-3SUFSAP6.mjs.map} +1 -1
- package/dist/{chunk-GWRJ5L36.js → chunk-43GCSCQA.js} +12 -12
- package/dist/{chunk-GWRJ5L36.js.map → chunk-43GCSCQA.js.map} +1 -1
- package/dist/{chunk-U4BTEKZT.mjs → chunk-4TY55HGO.mjs} +3 -3
- package/dist/{chunk-U4BTEKZT.mjs.map → chunk-4TY55HGO.mjs.map} +1 -1
- package/dist/{chunk-7JFAOHZ3.mjs → chunk-6NAZVG2O.mjs} +4 -4
- package/dist/{chunk-7JFAOHZ3.mjs.map → chunk-6NAZVG2O.mjs.map} +1 -1
- package/dist/{chunk-J4QUCX27.mjs → chunk-A3BFURJB.mjs} +24 -25
- package/dist/chunk-A3BFURJB.mjs.map +1 -0
- package/dist/{chunk-L5VEY7G4.js → chunk-ARVLVWUC.js} +7 -5
- package/dist/chunk-ARVLVWUC.js.map +1 -0
- package/dist/{chunk-BVCS7RBR.js → chunk-BUI7BCUN.js} +33 -33
- package/dist/{chunk-BVCS7RBR.js.map → chunk-BUI7BCUN.js.map} +1 -1
- package/dist/{chunk-SIBJRWUB.js → chunk-DADFESAQ.js} +4 -4
- package/dist/{chunk-SIBJRWUB.js.map → chunk-DADFESAQ.js.map} +1 -1
- package/dist/{chunk-C7KAF363.js → chunk-DB64YDV2.js} +55 -55
- package/dist/{chunk-C7KAF363.js.map → chunk-DB64YDV2.js.map} +1 -1
- package/dist/{chunk-WIKMIULO.js → chunk-DIMLLLZR.js} +36 -36
- package/dist/{chunk-WIKMIULO.js.map → chunk-DIMLLLZR.js.map} +1 -1
- package/dist/{chunk-FDSU7GPS.mjs → chunk-DWFLIXES.mjs} +3 -3
- package/dist/{chunk-FDSU7GPS.mjs.map → chunk-DWFLIXES.mjs.map} +1 -1
- package/dist/{chunk-B5NZVS4A.js → chunk-FUVJHNNI.js} +67 -67
- package/dist/{chunk-B5NZVS4A.js.map → chunk-FUVJHNNI.js.map} +1 -1
- package/dist/{chunk-HPIKJS5B.mjs → chunk-HGN5W56D.mjs} +3 -3
- package/dist/{chunk-HPIKJS5B.mjs.map → chunk-HGN5W56D.mjs.map} +1 -1
- package/dist/{chunk-6OWD54HK.mjs → chunk-LKJZGFM4.mjs} +3 -3
- package/dist/{chunk-6OWD54HK.mjs.map → chunk-LKJZGFM4.mjs.map} +1 -1
- package/dist/{chunk-AP7OWR6S.js → chunk-MEEFOZC4.js} +4 -4
- package/dist/{chunk-AP7OWR6S.js.map → chunk-MEEFOZC4.js.map} +1 -1
- package/dist/{chunk-CG3P5Z5U.mjs → chunk-MLAXYDEU.mjs} +3 -3
- package/dist/{chunk-CG3P5Z5U.mjs.map → chunk-MLAXYDEU.mjs.map} +1 -1
- package/dist/{chunk-KHAMY7MA.mjs → chunk-MZAS6TG4.mjs} +3 -3
- package/dist/{chunk-KHAMY7MA.mjs.map → chunk-MZAS6TG4.mjs.map} +1 -1
- package/dist/{chunk-YMGJ4FZZ.js → chunk-NA57KK4O.js} +4 -4
- package/dist/{chunk-YMGJ4FZZ.js.map → chunk-NA57KK4O.js.map} +1 -1
- package/dist/{chunk-E32B2MVK.js → chunk-PTGPQJZJ.js} +15 -15
- package/dist/{chunk-E32B2MVK.js.map → chunk-PTGPQJZJ.js.map} +1 -1
- package/dist/{chunk-OE4Z4FKM.mjs → chunk-PU2KTO4O.mjs} +7 -5
- package/dist/chunk-PU2KTO4O.mjs.map +1 -0
- package/dist/{chunk-Q7WGFPGK.mjs → chunk-RELMVNNR.mjs} +4 -4
- package/dist/{chunk-Q7WGFPGK.mjs.map → chunk-RELMVNNR.mjs.map} +1 -1
- package/dist/{chunk-Y4DNREFH.js → chunk-SFVSDGNF.js} +129 -129
- package/dist/{chunk-Y4DNREFH.js.map → chunk-SFVSDGNF.js.map} +1 -1
- package/dist/{chunk-WY3YDQXK.js → chunk-TBPWMPZU.js} +26 -26
- package/dist/{chunk-WY3YDQXK.js.map → chunk-TBPWMPZU.js.map} +1 -1
- package/dist/{chunk-E2ZGFN2H.mjs → chunk-VGSWSQQU.mjs} +4 -4
- package/dist/{chunk-E2ZGFN2H.mjs.map → chunk-VGSWSQQU.mjs.map} +1 -1
- package/dist/{chunk-URMZJ3WF.mjs → chunk-WI663467.mjs} +7 -7
- package/dist/{chunk-URMZJ3WF.mjs.map → chunk-WI663467.mjs.map} +1 -1
- package/dist/{chunk-SOYGVHPZ.js → chunk-XSBZNPUO.js} +53 -53
- package/dist/{chunk-SOYGVHPZ.js.map → chunk-XSBZNPUO.js.map} +1 -1
- package/dist/{chunk-R5KUEOPU.js → chunk-XXYDLYIT.js} +64 -64
- package/dist/{chunk-R5KUEOPU.js.map → chunk-XXYDLYIT.js.map} +1 -1
- package/dist/{chunk-IEWFVP42.mjs → chunk-Y3WJAYOY.mjs} +6 -6
- package/dist/{chunk-IEWFVP42.mjs.map → chunk-Y3WJAYOY.mjs.map} +1 -1
- package/dist/{chunk-VPNZDLR6.mjs → chunk-YEWXDCCI.mjs} +4 -4
- package/dist/{chunk-VPNZDLR6.mjs.map → chunk-YEWXDCCI.mjs.map} +1 -1
- package/dist/{chunk-256TJHVO.mjs → chunk-ZHUPYX4Q.mjs} +3 -3
- package/dist/{chunk-256TJHVO.mjs.map → chunk-ZHUPYX4Q.mjs.map} +1 -1
- package/dist/{chunk-YN4IEDE4.js → chunk-ZKUYNCAG.js} +26 -27
- package/dist/chunk-ZKUYNCAG.js.map +1 -0
- package/dist/index.js +747 -747
- package/dist/index.mjs +2 -2
- package/dist/platform/admin/index.js +11 -11
- package/dist/platform/admin/index.mjs +5 -5
- package/dist/platform/agents-workspace.js +7 -7
- package/dist/platform/agents-workspace.mjs +6 -6
- package/dist/platform/app-shell.js +4 -4
- package/dist/platform/app-shell.mjs +3 -3
- package/dist/platform/auth/index.js +28 -28
- package/dist/platform/auth/index.mjs +5 -5
- package/dist/platform/billing/index.js +4 -4
- package/dist/platform/billing/index.mjs +3 -3
- package/dist/platform/impersonation/index.js +4 -4
- package/dist/platform/impersonation/index.mjs +3 -3
- package/dist/platform/index.js +99 -99
- package/dist/platform/index.mjs +19 -19
- package/dist/platform/pages/index.d.mts +2 -2
- package/dist/platform/pages/index.d.ts +2 -2
- package/dist/platform/pages/index.js +196 -196
- package/dist/platform/pages/index.mjs +8 -8
- package/dist/platform/settings/index.js +8 -8
- package/dist/platform/settings/index.mjs +7 -7
- package/dist/platform/workflow-api-client.d.mts +1 -1
- package/dist/platform/workflow-api-client.d.ts +1 -1
- package/dist/platform/workflow-api-client.js +61 -61
- package/dist/platform/workflow-api-client.mjs +1 -1
- package/dist/platform/workflow-canvas-shell.js +5 -5
- package/dist/platform/workflow-canvas-shell.mjs +4 -4
- package/dist/{workflow-api-client-XU83zq0k.d.mts → workflow-api-client-wLoap-tt.d.mts} +25 -6
- package/dist/{workflow-api-client-CXN5iaih.d.ts → workflow-api-client-zVtc8FIl.d.ts} +25 -6
- package/package.json +1 -1
- package/dist/chunk-J4QUCX27.mjs.map +0 -1
- package/dist/chunk-L5VEY7G4.js.map +0 -1
- package/dist/chunk-OE4Z4FKM.mjs.map +0 -1
- package/dist/chunk-YN4IEDE4.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkXXYDLYIT_js = require('./chunk-XXYDLYIT.js');
|
|
5
5
|
var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
8
8
|
function WorkflowCanvasShell({ graph, messages }) {
|
|
9
9
|
const locale = chunkYXN2K77G_js.useLocale();
|
|
10
10
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11
|
-
|
|
11
|
+
chunkXXYDLYIT_js.Workspace,
|
|
12
12
|
{
|
|
13
13
|
initialGraph: graph,
|
|
14
14
|
locale,
|
|
@@ -18,5 +18,5 @@ function WorkflowCanvasShell({ graph, messages }) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
exports.WorkflowCanvasShell = WorkflowCanvasShell;
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-DADFESAQ.js.map
|
|
22
|
+
//# sourceMappingURL=chunk-DADFESAQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/platform/workflow-canvas-shell.tsx"],"names":["useLocale","jsx","Workspace"],"mappings":";;;;;;AAkBO,SAAS,mBAAA,CAAoB,EAAE,KAAA,EAAO,QAAA,EAAS,EAAU;AAC9D,EAAA,MAAM,SAASA,0BAAA,EAAU;AACzB,EAAA,uBACEC,cAAA;AAAA,IAACC,0BAAA;AAAA,IAAA;AAAA,MACC,YAAA,EAAc,KAAA;AAAA,MACd,MAAA;AAAA,MACC,GAAI,QAAA,GAAW,EAAE,QAAA,KAAa;AAAC;AAAA,GAClC;AAEJ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/platform/workflow-canvas-shell.tsx"],"names":["useLocale","jsx","Workspace"],"mappings":";;;;;;AAkBO,SAAS,mBAAA,CAAoB,EAAE,KAAA,EAAO,QAAA,EAAS,EAAU;AAC9D,EAAA,MAAM,SAASA,0BAAA,EAAU;AACzB,EAAA,uBACEC,cAAA;AAAA,IAACC,0BAAA;AAAA,IAAA;AAAA,MACC,YAAA,EAAc,KAAA;AAAA,MACd,MAAA;AAAA,MACC,GAAI,QAAA,GAAW,EAAE,QAAA,KAAa;AAAC;AAAA,GAClC;AAEJ","file":"chunk-DADFESAQ.js","sourcesContent":["import { useLocale } from '@ui/lib/i18n-context'\nimport { Workspace } from '@ui/astrlabe/workflow-canvas'\nimport type { WorkflowGraph as UiWorkflowGraph } from '@ui/astrlabe'\nimport type { WorkflowCanvasShellProps } from '@datatechsolutions/shared-domain/common'\n\n/**\n * Workflow canvas shell with optional message bundle override.\n *\n * Most apps wrap their tree in `<I18nProvider>` and let the canvas read\n * messages from context — in that case `messages` can be omitted. Apps\n * that need to inject a precomputed bundle (e.g. for tests or app-specific\n * overrides not shipped with shared-domain) can pass it explicitly.\n */\ntype Props = WorkflowCanvasShellProps & {\n /** Optional override for the messages catalog passed into the canvas. */\n messages?: Record<string, unknown>\n}\n\nexport function WorkflowCanvasShell({ graph, messages }: Props) {\n const locale = useLocale()\n return (\n <Workspace\n initialGraph={graph as unknown as UiWorkflowGraph}\n locale={locale}\n {...(messages ? { messages } : {})}\n />\n )\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkNA57KK4O_js = require('./chunk-NA57KK4O.js');
|
|
5
|
+
var chunkZKUYNCAG_js = require('./chunk-ZKUYNCAG.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');
|
|
@@ -162,7 +162,7 @@ function MfaSetup({
|
|
|
162
162
|
}
|
|
163
163
|
})();
|
|
164
164
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
165
|
-
|
|
165
|
+
chunkZKUYNCAG_js.StepFormPage,
|
|
166
166
|
{
|
|
167
167
|
title: t("mfa.setup.title"),
|
|
168
168
|
subtitle: enforcement === "required" ? t("mfa.setup.subtitleRequired") : t("mfa.setup.subtitleOptional"),
|
|
@@ -179,7 +179,7 @@ function MfaSetup({
|
|
|
179
179
|
canAdvance,
|
|
180
180
|
children: [
|
|
181
181
|
currentStep === 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
182
|
-
|
|
182
|
+
chunkZKUYNCAG_js.OptionGrid,
|
|
183
183
|
{
|
|
184
184
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.ShieldCheckIcon, { className: "h-4 w-4" }),
|
|
185
185
|
title: t("mfa.setup.methodGridTitle"),
|
|
@@ -195,7 +195,7 @@ function MfaSetup({
|
|
|
195
195
|
columns: 2
|
|
196
196
|
}
|
|
197
197
|
),
|
|
198
|
-
currentStep === 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-8", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
198
|
+
currentStep === 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-8", children: /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.Spinner, {}) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
199
199
|
qrCodeUri && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl bg-white p-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
200
200
|
"img",
|
|
201
201
|
{
|
|
@@ -211,7 +211,7 @@ function MfaSetup({
|
|
|
211
211
|
] }) }),
|
|
212
212
|
currentStep === 2 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
213
213
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
214
|
-
|
|
214
|
+
chunkNA57KK4O_js.OtpInput,
|
|
215
215
|
{
|
|
216
216
|
value: verifyCode,
|
|
217
217
|
onChange: setVerifyCode,
|
|
@@ -221,18 +221,18 @@ function MfaSetup({
|
|
|
221
221
|
autoFocus: true
|
|
222
222
|
}
|
|
223
223
|
),
|
|
224
|
-
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
224
|
+
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.Spinner, {}) })
|
|
225
225
|
] }),
|
|
226
226
|
currentStep === 3 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
227
227
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
228
|
-
|
|
228
|
+
chunkNA57KK4O_js.BackupCodeGrid,
|
|
229
229
|
{
|
|
230
230
|
codes: backupCodes,
|
|
231
231
|
revealed: true
|
|
232
232
|
}
|
|
233
233
|
),
|
|
234
234
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
235
|
-
|
|
235
|
+
chunkZKUYNCAG_js.FormCheckbox,
|
|
236
236
|
{
|
|
237
237
|
label: t("mfa.setup.backupCodesSavedConfirm"),
|
|
238
238
|
checked: savedBackupCodes,
|
|
@@ -325,20 +325,20 @@ function MfaManage({
|
|
|
325
325
|
}, [onEnroll]);
|
|
326
326
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
327
327
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
328
|
-
|
|
328
|
+
chunkZKUYNCAG_js.SectionCard,
|
|
329
329
|
{
|
|
330
330
|
header: {
|
|
331
331
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.ShieldCheckIcon, { className: "h-5 w-5 text-white" }),
|
|
332
332
|
title: t("mfa.manage.title"),
|
|
333
333
|
subtitle: t("mfa.manage.subtitle"),
|
|
334
334
|
gradient: "from-emerald-500 via-teal-500 to-cyan-500",
|
|
335
|
-
rightContent: mfaEnabled ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
335
|
+
rightContent: mfaEnabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.StatusBadge, { status: "active", label: t("mfa.manage.statusEnabled"), size: "sm" }) : /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.StatusBadge, { status: "inactive", label: t("mfa.manage.statusDisabled"), size: "sm" })
|
|
336
336
|
},
|
|
337
337
|
padded: false,
|
|
338
338
|
children: !mfaEnabled ? (
|
|
339
339
|
/* MFA not enabled — show empty state with enable CTA */
|
|
340
340
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
341
|
-
|
|
341
|
+
chunkZKUYNCAG_js.EmptyState,
|
|
342
342
|
{
|
|
343
343
|
message: t("mfa.manage.emptyStateMessage"),
|
|
344
344
|
description: t("mfa.manage.emptyStateDescription"),
|
|
@@ -353,11 +353,11 @@ function MfaManage({
|
|
|
353
353
|
) : (
|
|
354
354
|
/* MFA enabled — show enrolled methods list + action buttons */
|
|
355
355
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4 p-4 sm:p-6", children: [
|
|
356
|
-
enrolledMethods.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
357
|
-
|
|
356
|
+
enrolledMethods.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.ListCard, { children: enrolledMethods.map((method, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
357
|
+
chunkZKUYNCAG_js.ListCardItem,
|
|
358
358
|
{
|
|
359
359
|
leading: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-9 w-9 rounded-xl bg-gradient-to-br from-emerald-500 to-teal-600 flex items-center justify-center shadow-sm", children: /* @__PURE__ */ jsxRuntime.jsx(outline.ShieldCheckIcon, { className: "h-5 w-5 text-white" }) }),
|
|
360
|
-
trailing: /* @__PURE__ */ jsxRuntime.jsx(
|
|
360
|
+
trailing: /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.StatusBadge, { status: "active", label: t("mfa.manage.methodStatusActive"), size: "sm" }),
|
|
361
361
|
children: [
|
|
362
362
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-gray-900 dark:text-white", children: method.label }),
|
|
363
363
|
method.createdAt && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400 mt-0.5", children: t("mfa.manage.methodEnrolledAt", {
|
|
@@ -373,7 +373,7 @@ function MfaManage({
|
|
|
373
373
|
)) }),
|
|
374
374
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 sm:flex-row sm:gap-3", children: [
|
|
375
375
|
onEnroll && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
376
|
-
|
|
376
|
+
chunkZKUYNCAG_js.Button,
|
|
377
377
|
{
|
|
378
378
|
color: "ios-glass-blue",
|
|
379
379
|
onClick: handleEnroll,
|
|
@@ -385,7 +385,7 @@ function MfaManage({
|
|
|
385
385
|
}
|
|
386
386
|
),
|
|
387
387
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
388
|
-
|
|
388
|
+
chunkZKUYNCAG_js.Button,
|
|
389
389
|
{
|
|
390
390
|
outline: true,
|
|
391
391
|
onClick: handleOpenBackupSheet,
|
|
@@ -399,7 +399,7 @@ function MfaManage({
|
|
|
399
399
|
}
|
|
400
400
|
),
|
|
401
401
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
402
|
-
|
|
402
|
+
chunkZKUYNCAG_js.Button,
|
|
403
403
|
{
|
|
404
404
|
color: "ios-glass-red",
|
|
405
405
|
onClick: handleRequestDisable,
|
|
@@ -413,7 +413,7 @@ function MfaManage({
|
|
|
413
413
|
}
|
|
414
414
|
),
|
|
415
415
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
416
|
-
|
|
416
|
+
chunkZKUYNCAG_js.Sheet,
|
|
417
417
|
{
|
|
418
418
|
open: isBackupSheetOpen,
|
|
419
419
|
onClose: handleCloseBackupSheet,
|
|
@@ -423,14 +423,14 @@ function MfaManage({
|
|
|
423
423
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4 p-4 sm:p-6", children: [
|
|
424
424
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: t("mfa.manage.backupCodesSheetDescription") }),
|
|
425
425
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
426
|
-
|
|
426
|
+
chunkNA57KK4O_js.BackupCodeGrid,
|
|
427
427
|
{
|
|
428
428
|
codes: newBackupCodes,
|
|
429
429
|
revealed: true
|
|
430
430
|
}
|
|
431
431
|
),
|
|
432
432
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
433
|
-
|
|
433
|
+
chunkZKUYNCAG_js.Button,
|
|
434
434
|
{
|
|
435
435
|
color: "ios-glass-blue",
|
|
436
436
|
fullWidth: true,
|
|
@@ -442,7 +442,7 @@ function MfaManage({
|
|
|
442
442
|
}
|
|
443
443
|
),
|
|
444
444
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
445
|
-
|
|
445
|
+
chunkZKUYNCAG_js.Sheet,
|
|
446
446
|
{
|
|
447
447
|
open: isConfirmDisableOpen,
|
|
448
448
|
onClose: handleCancelDisable,
|
|
@@ -455,7 +455,7 @@ function MfaManage({
|
|
|
455
455
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: t("mfa.manage.confirmDisableDescription") })
|
|
456
456
|
] }),
|
|
457
457
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
458
|
-
|
|
458
|
+
chunkZKUYNCAG_js.PasswordInput,
|
|
459
459
|
{
|
|
460
460
|
label: t("mfa.manage.disablePasswordLabel"),
|
|
461
461
|
value: disablePassword,
|
|
@@ -469,7 +469,7 @@ function MfaManage({
|
|
|
469
469
|
disableError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-red-600 dark:text-red-400", role: "alert", children: disableError }),
|
|
470
470
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3", children: [
|
|
471
471
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
472
|
-
|
|
472
|
+
chunkZKUYNCAG_js.Button,
|
|
473
473
|
{
|
|
474
474
|
outline: true,
|
|
475
475
|
onClick: handleCancelDisable,
|
|
@@ -479,7 +479,7 @@ function MfaManage({
|
|
|
479
479
|
}
|
|
480
480
|
),
|
|
481
481
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
482
|
-
|
|
482
|
+
chunkZKUYNCAG_js.Button,
|
|
483
483
|
{
|
|
484
484
|
color: "ios-glass-red",
|
|
485
485
|
onClick: handleConfirmDisable,
|
|
@@ -572,7 +572,7 @@ function ProfileTabContent({ onProfileUpdate }) {
|
|
|
572
572
|
}, [name, selectedLocale, currentLocale, user, onProfileUpdate, client$1, t]);
|
|
573
573
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
574
574
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
575
|
-
|
|
575
|
+
chunkZKUYNCAG_js.SectionCard,
|
|
576
576
|
{
|
|
577
577
|
header: {
|
|
578
578
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.UserIcon, { className: "h-5 w-5 text-white" }),
|
|
@@ -580,7 +580,7 @@ function ProfileTabContent({ onProfileUpdate }) {
|
|
|
580
580
|
subtitle: t("userProfile.profile.subtitle"),
|
|
581
581
|
gradient: "from-blue-500 via-indigo-500 to-violet-500"
|
|
582
582
|
},
|
|
583
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
583
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkZKUYNCAG_js.BaseForm, { onSubmit: handleSave, submitLabel: t("userProfile.profile.saveButton"), showFooter: false, children: [
|
|
584
584
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-3 pb-4", children: [
|
|
585
585
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
586
586
|
"button",
|
|
@@ -591,7 +591,7 @@ function ProfileTabContent({ onProfileUpdate }) {
|
|
|
591
591
|
className: "group relative",
|
|
592
592
|
children: [
|
|
593
593
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
594
|
-
|
|
594
|
+
chunkZKUYNCAG_js.Avatar,
|
|
595
595
|
{
|
|
596
596
|
src: avatarPreview ?? void 0,
|
|
597
597
|
initials: user?.name?.slice(0, 2).toUpperCase() ?? user?.email?.slice(0, 2).toUpperCase(),
|
|
@@ -599,7 +599,7 @@ function ProfileTabContent({ onProfileUpdate }) {
|
|
|
599
599
|
className: "h-20 w-20 text-2xl"
|
|
600
600
|
}
|
|
601
601
|
),
|
|
602
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center rounded-full bg-black/0 transition group-hover:bg-black/40", children: isUploadingAvatar ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
602
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center rounded-full bg-black/0 transition group-hover:bg-black/40", children: isUploadingAvatar ? /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.InlineSpinner, {}) : /* @__PURE__ */ jsxRuntime.jsx(outline.CameraIcon, { className: "h-6 w-6 text-white opacity-0 transition group-hover:opacity-100" }) })
|
|
603
603
|
]
|
|
604
604
|
}
|
|
605
605
|
),
|
|
@@ -616,7 +616,7 @@ function ProfileTabContent({ onProfileUpdate }) {
|
|
|
616
616
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: t("userProfile.profile.avatarHint") })
|
|
617
617
|
] }),
|
|
618
618
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
619
|
-
|
|
619
|
+
chunkZKUYNCAG_js.Input,
|
|
620
620
|
{
|
|
621
621
|
label: t("userProfile.profile.nameLabel"),
|
|
622
622
|
value: name,
|
|
@@ -626,7 +626,7 @@ function ProfileTabContent({ onProfileUpdate }) {
|
|
|
626
626
|
}
|
|
627
627
|
),
|
|
628
628
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
629
|
-
|
|
629
|
+
chunkZKUYNCAG_js.Input,
|
|
630
630
|
{
|
|
631
631
|
label: t("userProfile.profile.emailLabel"),
|
|
632
632
|
type: "email",
|
|
@@ -639,7 +639,7 @@ function ProfileTabContent({ onProfileUpdate }) {
|
|
|
639
639
|
saveError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-red-600 dark:text-red-400", children: saveError }),
|
|
640
640
|
saveSuccess && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-green-600 dark:text-green-400", children: t("userProfile.profile.saveSuccess") }),
|
|
641
641
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
642
|
-
|
|
642
|
+
chunkZKUYNCAG_js.Button,
|
|
643
643
|
{
|
|
644
644
|
type: "submit",
|
|
645
645
|
color: "ios-glass-blue",
|
|
@@ -653,7 +653,7 @@ function ProfileTabContent({ onProfileUpdate }) {
|
|
|
653
653
|
}
|
|
654
654
|
),
|
|
655
655
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
656
|
-
|
|
656
|
+
chunkZKUYNCAG_js.SectionCard,
|
|
657
657
|
{
|
|
658
658
|
header: {
|
|
659
659
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.GlobeAltIcon, { className: "h-5 w-5 text-white" }),
|
|
@@ -684,7 +684,7 @@ function ProfileTabContent({ onProfileUpdate }) {
|
|
|
684
684
|
);
|
|
685
685
|
}) }),
|
|
686
686
|
selectedLocale !== currentLocale && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
687
|
-
|
|
687
|
+
chunkZKUYNCAG_js.Button,
|
|
688
688
|
{
|
|
689
689
|
type: "button",
|
|
690
690
|
color: "ios-glass-blue",
|
|
@@ -766,7 +766,7 @@ function SecurityTabContent() {
|
|
|
766
766
|
}
|
|
767
767
|
),
|
|
768
768
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
769
|
-
|
|
769
|
+
chunkZKUYNCAG_js.SectionCard,
|
|
770
770
|
{
|
|
771
771
|
header: {
|
|
772
772
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.UserIcon, { className: "h-5 w-5 text-white" }),
|
|
@@ -774,9 +774,9 @@ function SecurityTabContent() {
|
|
|
774
774
|
subtitle: t("userProfile.security.changePasswordSubtitle"),
|
|
775
775
|
gradient: "from-blue-500 via-sky-500 to-cyan-500"
|
|
776
776
|
},
|
|
777
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
777
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkZKUYNCAG_js.BaseForm, { onSubmit: handleChangePassword, submitLabel: t("userProfile.security.changePasswordButton"), showFooter: false, children: [
|
|
778
778
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
779
|
-
|
|
779
|
+
chunkZKUYNCAG_js.PasswordInput,
|
|
780
780
|
{
|
|
781
781
|
label: t("userProfile.security.currentPasswordLabel"),
|
|
782
782
|
value: currentPassword,
|
|
@@ -786,7 +786,7 @@ function SecurityTabContent() {
|
|
|
786
786
|
}
|
|
787
787
|
),
|
|
788
788
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
789
|
-
|
|
789
|
+
chunkZKUYNCAG_js.PasswordInput,
|
|
790
790
|
{
|
|
791
791
|
label: t("userProfile.security.newPasswordLabel"),
|
|
792
792
|
value: newPassword,
|
|
@@ -795,9 +795,9 @@ function SecurityTabContent() {
|
|
|
795
795
|
autoComplete: "new-password"
|
|
796
796
|
}
|
|
797
797
|
),
|
|
798
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
798
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNA57KK4O_js.PasswordStrengthMeter, { password: newPassword }),
|
|
799
799
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
800
|
-
|
|
800
|
+
chunkZKUYNCAG_js.PasswordInput,
|
|
801
801
|
{
|
|
802
802
|
label: t("userProfile.security.confirmPasswordLabel"),
|
|
803
803
|
value: confirmPassword,
|
|
@@ -809,7 +809,7 @@ function SecurityTabContent() {
|
|
|
809
809
|
passwordError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-red-600 dark:text-red-400", children: passwordError }),
|
|
810
810
|
passwordSuccess && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-green-600 dark:text-green-400", children: t("userProfile.security.changePasswordSuccess") }),
|
|
811
811
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
812
|
-
|
|
812
|
+
chunkZKUYNCAG_js.Button,
|
|
813
813
|
{
|
|
814
814
|
type: "submit",
|
|
815
815
|
color: "ios-glass-blue",
|
|
@@ -870,7 +870,7 @@ function SessionsTabContent() {
|
|
|
870
870
|
}
|
|
871
871
|
}, [client$1]);
|
|
872
872
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
873
|
-
|
|
873
|
+
chunkZKUYNCAG_js.SectionCard,
|
|
874
874
|
{
|
|
875
875
|
header: {
|
|
876
876
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.ComputerDesktopIcon, { className: "h-5 w-5 text-white" }),
|
|
@@ -880,7 +880,7 @@ function SessionsTabContent() {
|
|
|
880
880
|
},
|
|
881
881
|
padded: false,
|
|
882
882
|
children: isLoading ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2 p-8 text-sm text-gray-500 dark:text-gray-400", children: [
|
|
883
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
883
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.InlineSpinner, {}),
|
|
884
884
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t("userProfile.sessions.loading") })
|
|
885
885
|
] }) : sessions.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-6 text-center text-sm text-gray-500 dark:text-gray-400", children: t("userProfile.sessions.empty") }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "w-full text-sm", children: [
|
|
886
886
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "border-b border-gray-200/60 dark:border-white/10", children: [
|
|
@@ -892,12 +892,12 @@ function SessionsTabContent() {
|
|
|
892
892
|
/* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "divide-y divide-gray-200/60 dark:divide-white/10", children: sessions.map((session) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
893
893
|
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-gray-900 dark:text-white", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
894
894
|
session.device,
|
|
895
|
-
session.current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
895
|
+
session.current && /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.Badge, { color: "green", children: t("userProfile.sessions.currentBadge") })
|
|
896
896
|
] }) }),
|
|
897
897
|
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-gray-500 dark:text-gray-400", children: session.location }),
|
|
898
898
|
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-gray-500 dark:text-gray-400", children: format.relativeTime(new Date(session.lastActive)) }),
|
|
899
899
|
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-right", children: !session.current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
900
|
-
|
|
900
|
+
chunkZKUYNCAG_js.Button,
|
|
901
901
|
{
|
|
902
902
|
size: "sm",
|
|
903
903
|
color: "ios-glass-red",
|
|
@@ -956,7 +956,7 @@ function LinkedAccountsTabContent() {
|
|
|
956
956
|
}, [client$1]);
|
|
957
957
|
const providerInitials = (provider) => provider.slice(0, 2).toUpperCase();
|
|
958
958
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
959
|
-
|
|
959
|
+
chunkZKUYNCAG_js.SectionCard,
|
|
960
960
|
{
|
|
961
961
|
header: {
|
|
962
962
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.LinkIcon, { className: "h-5 w-5 text-white" }),
|
|
@@ -966,13 +966,13 @@ function LinkedAccountsTabContent() {
|
|
|
966
966
|
},
|
|
967
967
|
padded: false,
|
|
968
968
|
children: isLoading ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2 p-8 text-sm text-gray-500 dark:text-gray-400", children: [
|
|
969
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
969
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.InlineSpinner, {}),
|
|
970
970
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t("userProfile.linkedAccounts.loading") })
|
|
971
|
-
] }) : accounts.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-6 text-center text-sm text-gray-500 dark:text-gray-400", children: t("userProfile.linkedAccounts.empty") }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
972
|
-
|
|
971
|
+
] }) : accounts.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-6 text-center text-sm text-gray-500 dark:text-gray-400", children: t("userProfile.linkedAccounts.empty") }) : /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.ListCard, { children: accounts.map((account) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
972
|
+
chunkZKUYNCAG_js.ListCardItem,
|
|
973
973
|
{
|
|
974
974
|
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
975
|
-
|
|
975
|
+
chunkZKUYNCAG_js.Avatar,
|
|
976
976
|
{
|
|
977
977
|
src: account.logoUrl,
|
|
978
978
|
initials: providerInitials(account.provider),
|
|
@@ -980,7 +980,7 @@ function LinkedAccountsTabContent() {
|
|
|
980
980
|
}
|
|
981
981
|
),
|
|
982
982
|
trailing: /* @__PURE__ */ jsxRuntime.jsx(
|
|
983
|
-
|
|
983
|
+
chunkZKUYNCAG_js.Button,
|
|
984
984
|
{
|
|
985
985
|
size: "sm",
|
|
986
986
|
color: "ios-glass-red",
|
|
@@ -1012,7 +1012,7 @@ function UserProfile({
|
|
|
1012
1012
|
tabs.includes(defaultTab) ? defaultTab : tabs[0] ?? "profile"
|
|
1013
1013
|
);
|
|
1014
1014
|
if (status === "loading") {
|
|
1015
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1015
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsxRuntime.jsx(chunkZKUYNCAG_js.InlineSpinner, {}) });
|
|
1016
1016
|
}
|
|
1017
1017
|
if (status !== "authenticated") {
|
|
1018
1018
|
return null;
|
|
@@ -1023,7 +1023,7 @@ function UserProfile({
|
|
|
1023
1023
|
}));
|
|
1024
1024
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
1025
1025
|
tabs.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1026
|
-
|
|
1026
|
+
chunkZKUYNCAG_js.SegmentedControl,
|
|
1027
1027
|
{
|
|
1028
1028
|
segments,
|
|
1029
1029
|
value: activeTab,
|
|
@@ -1045,5 +1045,5 @@ exports.ProfileTabContent = ProfileTabContent;
|
|
|
1045
1045
|
exports.SecurityTabContent = SecurityTabContent;
|
|
1046
1046
|
exports.SessionsTabContent = SessionsTabContent;
|
|
1047
1047
|
exports.UserProfile = UserProfile;
|
|
1048
|
-
//# sourceMappingURL=chunk-
|
|
1049
|
-
//# sourceMappingURL=chunk-
|
|
1048
|
+
//# sourceMappingURL=chunk-DB64YDV2.js.map
|
|
1049
|
+
//# sourceMappingURL=chunk-DB64YDV2.js.map
|