@carlonicora/nextjs-jsonapi 1.127.0 → 1.129.0
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/{BlockNoteEditor-PGTAPCQF.js → BlockNoteEditor-RG2YQDMQ.js} +20 -20
- package/dist/{BlockNoteEditor-PGTAPCQF.js.map → BlockNoteEditor-RG2YQDMQ.js.map} +1 -1
- package/dist/{BlockNoteEditor-SMZNQ4CX.mjs → BlockNoteEditor-WIAQJ5HM.mjs} +5 -5
- package/dist/{JsonApiRequest-4ISXX7PC.mjs → JsonApiRequest-F5LBESSA.mjs} +2 -2
- package/dist/JsonApiRequest-YAPUG4ND.js +26 -0
- package/dist/{JsonApiRequest-P3VQ2WIS.js.map → JsonApiRequest-YAPUG4ND.js.map} +1 -1
- package/dist/billing/index.js +347 -347
- package/dist/billing/index.mjs +4 -4
- package/dist/{chunk-T2FFT7JT.mjs → chunk-5MNE72ZE.mjs} +9 -5
- package/dist/{chunk-T2FFT7JT.mjs.map → chunk-5MNE72ZE.mjs.map} +1 -1
- package/dist/{chunk-JGVMZYAO.mjs → chunk-F54XZKPY.mjs} +149 -130
- package/dist/chunk-F54XZKPY.mjs.map +1 -0
- package/dist/{chunk-PQBKPWBY.js → chunk-LBMNRFCY.js} +34 -30
- package/dist/chunk-LBMNRFCY.js.map +1 -0
- package/dist/{chunk-6VNRUTZR.mjs → chunk-NATPK5ME.mjs} +3 -3
- package/dist/{chunk-EIOEYXY3.js → chunk-QWCAOLBD.js} +6 -5
- package/dist/chunk-QWCAOLBD.js.map +1 -0
- package/dist/{chunk-JO5BLONK.js → chunk-XTLTQQ7X.js} +9 -9
- package/dist/{chunk-JO5BLONK.js.map → chunk-XTLTQQ7X.js.map} +1 -1
- package/dist/{chunk-24RSNGD2.js → chunk-YQTMNZQB.js} +808 -789
- package/dist/chunk-YQTMNZQB.js.map +1 -0
- package/dist/{chunk-DKFXGCG2.mjs → chunk-Z2CB63VG.mjs} +6 -5
- package/dist/{chunk-DKFXGCG2.mjs.map → chunk-Z2CB63VG.mjs.map} +1 -1
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +4 -4
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.js +3 -3
- package/dist/core/index.mjs +2 -2
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/server/index.js +12 -12
- package/dist/server/index.mjs +2 -2
- package/package.json +2 -2
- package/src/components/tables/ContentListTable.tsx +18 -4
- package/src/components/tables/__tests__/ContentListTable.test.tsx +38 -2
- package/src/core/abstracts/AbstractService.ts +4 -0
- package/src/features/company/components/lists/CompaniesList.tsx +1 -1
- package/src/features/content/components/lists/ContentsListById.tsx +1 -1
- package/src/features/content/components/lists/RelevantContentsList.tsx +1 -1
- package/src/features/user/components/lists/AdminUsersList.tsx +1 -1
- package/src/unified/JsonApiRequest.ts +9 -4
- package/dist/JsonApiRequest-P3VQ2WIS.js +0 -26
- package/dist/chunk-24RSNGD2.js.map +0 -1
- package/dist/chunk-EIOEYXY3.js.map +0 -1
- package/dist/chunk-JGVMZYAO.mjs.map +0 -1
- package/dist/chunk-PQBKPWBY.js.map +0 -1
- /package/dist/{BlockNoteEditor-SMZNQ4CX.mjs.map → BlockNoteEditor-WIAQJ5HM.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-4ISXX7PC.mjs.map → JsonApiRequest-F5LBESSA.mjs.map} +0 -0
- /package/dist/{chunk-6VNRUTZR.mjs.map → chunk-NATPK5ME.mjs.map} +0 -0
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
useI18nLocale,
|
|
21
21
|
useI18nRouter,
|
|
22
22
|
useI18nTranslations
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NATPK5ME.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AVAILABLE_OAUTH_SCOPES,
|
|
26
26
|
AssistantMessage,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
showToast,
|
|
61
61
|
useComposedRefs,
|
|
62
62
|
useIsMobile
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-5MNE72ZE.mjs";
|
|
64
64
|
import {
|
|
65
65
|
JsonApiContext
|
|
66
66
|
} from "./chunk-VOXD3ZLY.mjs";
|
|
@@ -9972,7 +9972,7 @@ import { useRef as useRef17 } from "react";
|
|
|
9972
9972
|
import dynamic from "next/dynamic";
|
|
9973
9973
|
import React17 from "react";
|
|
9974
9974
|
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
9975
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
9975
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-WIAQJ5HM.mjs"), {
|
|
9976
9976
|
ssr: false
|
|
9977
9977
|
});
|
|
9978
9978
|
var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -11670,7 +11670,7 @@ function AdminUsersListInternal({ company }) {
|
|
|
11670
11670
|
{
|
|
11671
11671
|
title: t(`entities.users`, { count: 2 }),
|
|
11672
11672
|
data,
|
|
11673
|
-
fields: ["name" /* name */, "email" /* email
|
|
11673
|
+
fields: ["name" /* name */, "email" /* email */],
|
|
11674
11674
|
tableGeneratorType: Modules.User,
|
|
11675
11675
|
functions: /* @__PURE__ */ jsx112(UserEditor, { propagateChanges: data.refresh, adminCreated: true })
|
|
11676
11676
|
}
|
|
@@ -12552,7 +12552,7 @@ function CompaniesList() {
|
|
|
12552
12552
|
ContentListTable,
|
|
12553
12553
|
{
|
|
12554
12554
|
data,
|
|
12555
|
-
fields: ["name" /* name
|
|
12555
|
+
fields: ["name" /* name */],
|
|
12556
12556
|
tableGeneratorType: Modules.Company,
|
|
12557
12557
|
functions,
|
|
12558
12558
|
title: t(`entities.companies`, { count: 2 })
|
|
@@ -15416,7 +15416,7 @@ function useJsonApiGet(params) {
|
|
|
15416
15416
|
setLoading(true);
|
|
15417
15417
|
setError(null);
|
|
15418
15418
|
try {
|
|
15419
|
-
const { JsonApiGet } = await import("./JsonApiRequest-
|
|
15419
|
+
const { JsonApiGet } = await import("./JsonApiRequest-F5LBESSA.mjs");
|
|
15420
15420
|
const language = navigator.language.split("-")[0] || "en";
|
|
15421
15421
|
const apiResponse = await JsonApiGet({
|
|
15422
15422
|
classKey: params.classKey,
|
|
@@ -15521,7 +15521,7 @@ function useJsonApiMutation(config) {
|
|
|
15521
15521
|
setLoading(true);
|
|
15522
15522
|
setError(null);
|
|
15523
15523
|
try {
|
|
15524
|
-
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await import("./JsonApiRequest-
|
|
15524
|
+
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await import("./JsonApiRequest-F5LBESSA.mjs");
|
|
15525
15525
|
const language = navigator.language.split("-")[0] || "en";
|
|
15526
15526
|
let apiResponse;
|
|
15527
15527
|
switch (config.method) {
|
|
@@ -16207,6 +16207,7 @@ registerTableGenerator("companies", useCompanyTableStructure);
|
|
|
16207
16207
|
// src/components/tables/ContentListTable.tsx
|
|
16208
16208
|
import { flexRender, getCoreRowModel, getExpandedRowModel, useReactTable } from "@tanstack/react-table";
|
|
16209
16209
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
16210
|
+
import { useTranslations as useTranslations58 } from "next-intl";
|
|
16210
16211
|
import React28, { memo, useMemo as useMemo28, useState as useState59 } from "react";
|
|
16211
16212
|
|
|
16212
16213
|
// src/components/tables/ContentTableSearch.tsx
|
|
@@ -16316,7 +16317,8 @@ function getGroupKeys(item, field) {
|
|
|
16316
16317
|
}
|
|
16317
16318
|
__name(getGroupKeys, "getGroupKeys");
|
|
16318
16319
|
var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(props) {
|
|
16319
|
-
const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth } = props;
|
|
16320
|
+
const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth, onRowClick } = props;
|
|
16321
|
+
const t = useTranslations58();
|
|
16320
16322
|
const [expanded, setExpanded] = useState59(
|
|
16321
16323
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
16322
16324
|
);
|
|
@@ -16390,6 +16392,7 @@ var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(pr
|
|
|
16390
16392
|
fullWidth ? `text-lg` : `text-sm`
|
|
16391
16393
|
),
|
|
16392
16394
|
children: [
|
|
16395
|
+
props.titleActions,
|
|
16393
16396
|
props.tableGeneratorType.icon && /* @__PURE__ */ jsx173(
|
|
16394
16397
|
props.tableGeneratorType.icon,
|
|
16395
16398
|
{
|
|
@@ -16422,14 +16425,30 @@ var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(pr
|
|
|
16422
16425
|
children: group.groupKey
|
|
16423
16426
|
}
|
|
16424
16427
|
) }),
|
|
16425
|
-
group.rows.map((row) => /* @__PURE__ */ jsx173(
|
|
16426
|
-
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
|
-
|
|
16432
|
-
|
|
16428
|
+
group.rows.map((row) => /* @__PURE__ */ jsx173(
|
|
16429
|
+
TableRow,
|
|
16430
|
+
{
|
|
16431
|
+
onClick: () => onRowClick?.(row.original.jsonApiData),
|
|
16432
|
+
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
16433
|
+
children: row.getVisibleCells().map((cell) => {
|
|
16434
|
+
const meta = cell.column.columnDef.meta;
|
|
16435
|
+
return /* @__PURE__ */ jsx173(TableCell, { className: meta?.className, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
16436
|
+
})
|
|
16437
|
+
},
|
|
16438
|
+
row.id
|
|
16439
|
+
))
|
|
16440
|
+
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ jsx173(
|
|
16441
|
+
TableRow,
|
|
16442
|
+
{
|
|
16443
|
+
onClick: () => onRowClick?.(row.original.jsonApiData),
|
|
16444
|
+
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
16445
|
+
children: row.getVisibleCells().map((cell) => {
|
|
16446
|
+
const meta = cell.column.columnDef.meta;
|
|
16447
|
+
return /* @__PURE__ */ jsx173(TableCell, { className: meta?.className, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
16448
|
+
})
|
|
16449
|
+
},
|
|
16450
|
+
row.id
|
|
16451
|
+
)) : /* @__PURE__ */ jsx173(TableRow, { children: /* @__PURE__ */ jsx173(TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: props.emptyState ?? (t.has("ui.empty_states.no_results") ? t("ui.empty_states.no_results") : "No results.") }) }) }),
|
|
16433
16452
|
showFooter && /* @__PURE__ */ jsx173(TableFooter, { children: /* @__PURE__ */ jsx173(TableRow, { children: /* @__PURE__ */ jsx173(TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ jsxs100("div", { className: "flex items-center justify-end space-x-2", children: [
|
|
16434
16453
|
/* @__PURE__ */ jsx173(
|
|
16435
16454
|
Button,
|
|
@@ -16562,12 +16581,12 @@ function validateItalianTaxCode(value, type) {
|
|
|
16562
16581
|
__name(validateItalianTaxCode, "validateItalianTaxCode");
|
|
16563
16582
|
|
|
16564
16583
|
// src/components/fiscal/ItalianFiscalData.tsx
|
|
16565
|
-
import { useTranslations as
|
|
16584
|
+
import { useTranslations as useTranslations59 } from "next-intl";
|
|
16566
16585
|
import { forwardRef as forwardRef8, useCallback as useCallback36, useImperativeHandle as useImperativeHandle2, useRef as useRef32, useState as useState60 } from "react";
|
|
16567
16586
|
import { z as z4 } from "zod";
|
|
16568
16587
|
import { jsx as jsx175, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
16569
16588
|
var ItalianFiscalData = forwardRef8(/* @__PURE__ */ __name(function ItalianFiscalData2({ initialData }, ref) {
|
|
16570
|
-
const t =
|
|
16589
|
+
const t = useTranslations59();
|
|
16571
16590
|
const initialRef = useRef32(initialData);
|
|
16572
16591
|
const [fiscalData, setFiscalData] = useState60(initialData);
|
|
16573
16592
|
const fiscalDataRef = useRef32(initialData);
|
|
@@ -16769,7 +16788,7 @@ import { createContext as createContext21, useContext as useContext22, useMemo a
|
|
|
16769
16788
|
// src/features/auth/components/forms/Register.tsx
|
|
16770
16789
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
|
16771
16790
|
import { Loader2 as Loader23 } from "lucide-react";
|
|
16772
|
-
import { useTranslations as
|
|
16791
|
+
import { useTranslations as useTranslations61 } from "next-intl";
|
|
16773
16792
|
import Image7 from "next/image";
|
|
16774
16793
|
import { useSearchParams as useSearchParams2 } from "next/navigation";
|
|
16775
16794
|
import { useEffect as useEffect51, useState as useState61 } from "react";
|
|
@@ -16778,14 +16797,14 @@ import { v4 as v45 } from "uuid";
|
|
|
16778
16797
|
import { z as z5 } from "zod";
|
|
16779
16798
|
|
|
16780
16799
|
// src/features/auth/components/GdprConsentSection.tsx
|
|
16781
|
-
import { useTranslations as
|
|
16800
|
+
import { useTranslations as useTranslations60 } from "next-intl";
|
|
16782
16801
|
import { Fragment as Fragment29, jsx as jsx181, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
16783
16802
|
function GdprConsentSection({
|
|
16784
16803
|
form,
|
|
16785
16804
|
termsCheckboxId = "termsAccepted",
|
|
16786
16805
|
marketingCheckboxId = "marketingConsent"
|
|
16787
16806
|
}) {
|
|
16788
|
-
const t =
|
|
16807
|
+
const t = useTranslations60("auth.gdpr");
|
|
16789
16808
|
const termsLabel = /* @__PURE__ */ jsxs106(Fragment29, { children: [
|
|
16790
16809
|
t("terms_prefix"),
|
|
16791
16810
|
" ",
|
|
@@ -16838,7 +16857,7 @@ function buildOAuthQueryParams(inviteCode, referralCode) {
|
|
|
16838
16857
|
}
|
|
16839
16858
|
__name(buildOAuthQueryParams, "buildOAuthQueryParams");
|
|
16840
16859
|
function Register() {
|
|
16841
|
-
const t =
|
|
16860
|
+
const t = useTranslations61();
|
|
16842
16861
|
const { setComponentType } = useAuthContext();
|
|
16843
16862
|
const searchParams = useSearchParams2();
|
|
16844
16863
|
const inviteCode = searchParams.get("invite");
|
|
@@ -17183,17 +17202,17 @@ __name(InnerAuthContainer, "InnerAuthContainer");
|
|
|
17183
17202
|
|
|
17184
17203
|
// src/features/auth/components/two-factor/TwoFactorSettings.tsx
|
|
17185
17204
|
import { ShieldAlert, ShieldCheck } from "lucide-react";
|
|
17186
|
-
import { useTranslations as
|
|
17205
|
+
import { useTranslations as useTranslations68 } from "next-intl";
|
|
17187
17206
|
import { useCallback as useCallback37, useEffect as useEffect53, useState as useState70 } from "react";
|
|
17188
17207
|
import { v4 as v48 } from "uuid";
|
|
17189
17208
|
|
|
17190
17209
|
// src/features/auth/components/two-factor/BackupCodesDialog.tsx
|
|
17191
17210
|
import { Copy, Download, RefreshCw as RefreshCw2 } from "lucide-react";
|
|
17192
|
-
import { useTranslations as
|
|
17211
|
+
import { useTranslations as useTranslations62 } from "next-intl";
|
|
17193
17212
|
import { useState as useState63 } from "react";
|
|
17194
17213
|
import { jsx as jsx185, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
17195
17214
|
function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
|
|
17196
|
-
const t =
|
|
17215
|
+
const t = useTranslations62();
|
|
17197
17216
|
const [open, setOpen] = useState63(false);
|
|
17198
17217
|
const [codes, setCodes] = useState63([]);
|
|
17199
17218
|
const [isLoading, setIsLoading] = useState63(false);
|
|
@@ -17291,7 +17310,7 @@ Keep these codes safe. Each code can only be used once.`;
|
|
|
17291
17310
|
__name(BackupCodesDialog, "BackupCodesDialog");
|
|
17292
17311
|
|
|
17293
17312
|
// src/features/auth/components/two-factor/DisableTwoFactorDialog.tsx
|
|
17294
|
-
import { useTranslations as
|
|
17313
|
+
import { useTranslations as useTranslations63 } from "next-intl";
|
|
17295
17314
|
import { useState as useState65 } from "react";
|
|
17296
17315
|
|
|
17297
17316
|
// src/features/auth/components/two-factor/TotpInput.tsx
|
|
@@ -17361,7 +17380,7 @@ __name(TotpInput, "TotpInput");
|
|
|
17361
17380
|
// src/features/auth/components/two-factor/DisableTwoFactorDialog.tsx
|
|
17362
17381
|
import { jsx as jsx187, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
17363
17382
|
function DisableTwoFactorDialog({ onSuccess, trigger }) {
|
|
17364
|
-
const t =
|
|
17383
|
+
const t = useTranslations63();
|
|
17365
17384
|
const [open, setOpen] = useState65(false);
|
|
17366
17385
|
const [isLoading, setIsLoading] = useState65(false);
|
|
17367
17386
|
const [error, setError] = useState65();
|
|
@@ -17404,11 +17423,11 @@ __name(DisableTwoFactorDialog, "DisableTwoFactorDialog");
|
|
|
17404
17423
|
|
|
17405
17424
|
// src/features/auth/components/two-factor/PasskeyList.tsx
|
|
17406
17425
|
import { Edit, Key, Trash2 } from "lucide-react";
|
|
17407
|
-
import { useTranslations as
|
|
17426
|
+
import { useTranslations as useTranslations64 } from "next-intl";
|
|
17408
17427
|
import { useState as useState66 } from "react";
|
|
17409
17428
|
import { Fragment as Fragment31, jsx as jsx188, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
17410
17429
|
function PasskeyList({ passkeys, onRefresh }) {
|
|
17411
|
-
const t =
|
|
17430
|
+
const t = useTranslations64();
|
|
17412
17431
|
const [renameDialogOpen, setRenameDialogOpen] = useState66(false);
|
|
17413
17432
|
const [selectedPasskey, setSelectedPasskey] = useState66(null);
|
|
17414
17433
|
const [newName, setNewName] = useState66("");
|
|
@@ -17525,12 +17544,12 @@ __name(PasskeyList, "PasskeyList");
|
|
|
17525
17544
|
|
|
17526
17545
|
// src/features/auth/components/two-factor/PasskeySetupDialog.tsx
|
|
17527
17546
|
import { startRegistration } from "@simplewebauthn/browser";
|
|
17528
|
-
import { useTranslations as
|
|
17547
|
+
import { useTranslations as useTranslations65 } from "next-intl";
|
|
17529
17548
|
import { useState as useState67 } from "react";
|
|
17530
17549
|
import { v4 as v46 } from "uuid";
|
|
17531
17550
|
import { jsx as jsx189, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
17532
17551
|
function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
17533
|
-
const t =
|
|
17552
|
+
const t = useTranslations65();
|
|
17534
17553
|
const { currentUser } = useCurrentUserContext();
|
|
17535
17554
|
const [name, setName] = useState67("");
|
|
17536
17555
|
const [isLoading, setIsLoading] = useState67(false);
|
|
@@ -17596,11 +17615,11 @@ __name(PasskeySetupDialog, "PasskeySetupDialog");
|
|
|
17596
17615
|
|
|
17597
17616
|
// src/features/auth/components/two-factor/TotpAuthenticatorList.tsx
|
|
17598
17617
|
import { Smartphone, Trash2 as Trash22 } from "lucide-react";
|
|
17599
|
-
import { useTranslations as
|
|
17618
|
+
import { useTranslations as useTranslations66 } from "next-intl";
|
|
17600
17619
|
import { useState as useState68 } from "react";
|
|
17601
17620
|
import { jsx as jsx190, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
17602
17621
|
function TotpAuthenticatorList({ authenticators, onDelete }) {
|
|
17603
|
-
const t =
|
|
17622
|
+
const t = useTranslations66();
|
|
17604
17623
|
const [deletingId, setDeletingId] = useState68(null);
|
|
17605
17624
|
const handleDelete = /* @__PURE__ */ __name(async (id) => {
|
|
17606
17625
|
setDeletingId(id);
|
|
@@ -17670,13 +17689,13 @@ function TotpAuthenticatorList({ authenticators, onDelete }) {
|
|
|
17670
17689
|
__name(TotpAuthenticatorList, "TotpAuthenticatorList");
|
|
17671
17690
|
|
|
17672
17691
|
// src/features/auth/components/two-factor/TotpSetupDialog.tsx
|
|
17673
|
-
import { useTranslations as
|
|
17692
|
+
import { useTranslations as useTranslations67 } from "next-intl";
|
|
17674
17693
|
import { QRCodeSVG } from "qrcode.react";
|
|
17675
17694
|
import { useState as useState69 } from "react";
|
|
17676
17695
|
import { v4 as v47 } from "uuid";
|
|
17677
17696
|
import { jsx as jsx191, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
17678
17697
|
function TotpSetupDialog({ onSuccess, trigger }) {
|
|
17679
|
-
const t =
|
|
17698
|
+
const t = useTranslations67();
|
|
17680
17699
|
const { currentUser } = useCurrentUserContext();
|
|
17681
17700
|
const [open, setOpen] = useState69(false);
|
|
17682
17701
|
const [step, setStep] = useState69("name");
|
|
@@ -17781,7 +17800,7 @@ __name(TotpSetupDialog, "TotpSetupDialog");
|
|
|
17781
17800
|
// src/features/auth/components/two-factor/TwoFactorSettings.tsx
|
|
17782
17801
|
import { Fragment as Fragment32, jsx as jsx192, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
17783
17802
|
function TwoFactorSettings() {
|
|
17784
|
-
const t =
|
|
17803
|
+
const t = useTranslations68();
|
|
17785
17804
|
const [status, setStatus] = useState70(null);
|
|
17786
17805
|
const [authenticators, setAuthenticators] = useState70([]);
|
|
17787
17806
|
const [passkeys, setPasskeys] = useState70([]);
|
|
@@ -17899,7 +17918,7 @@ function SecurityContainer() {
|
|
|
17899
17918
|
__name(SecurityContainer, "SecurityContainer");
|
|
17900
17919
|
|
|
17901
17920
|
// src/features/auth/components/details/LandingComponent.tsx
|
|
17902
|
-
import { useTranslations as
|
|
17921
|
+
import { useTranslations as useTranslations69 } from "next-intl";
|
|
17903
17922
|
import Image9 from "next/image";
|
|
17904
17923
|
|
|
17905
17924
|
// src/features/auth/components/buttons/GoogleSignInButton.tsx
|
|
@@ -17960,7 +17979,7 @@ __name(GoogleSignInButton, "GoogleSignInButton");
|
|
|
17960
17979
|
// src/features/auth/components/details/LandingComponent.tsx
|
|
17961
17980
|
import { Fragment as Fragment33, jsx as jsx195, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
17962
17981
|
function LandingComponent() {
|
|
17963
|
-
const t =
|
|
17982
|
+
const t = useTranslations69();
|
|
17964
17983
|
const { setComponentType } = useAuthContext();
|
|
17965
17984
|
return /* @__PURE__ */ jsxs117(Fragment33, { children: [
|
|
17966
17985
|
/* @__PURE__ */ jsxs117(CardHeader, { className: "mb-4", "data-testid": "page-pre-login-container", children: [
|
|
@@ -17992,7 +18011,7 @@ __name(LandingComponent, "LandingComponent");
|
|
|
17992
18011
|
|
|
17993
18012
|
// src/features/auth/components/forms/AcceptInvitation.tsx
|
|
17994
18013
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
|
17995
|
-
import { useTranslations as
|
|
18014
|
+
import { useTranslations as useTranslations70 } from "next-intl";
|
|
17996
18015
|
import Image10 from "next/image";
|
|
17997
18016
|
import { useEffect as useEffect54, useState as useState71 } from "react";
|
|
17998
18017
|
import { useForm as useForm6 } from "react-hook-form";
|
|
@@ -18002,7 +18021,7 @@ function AcceptInvitation() {
|
|
|
18002
18021
|
const { setComponentType, params, setParams } = useAuthContext();
|
|
18003
18022
|
const [showConfirmation, setShowConfirmation] = useState71(false);
|
|
18004
18023
|
const [error, setError] = useState71(void 0);
|
|
18005
|
-
const t =
|
|
18024
|
+
const t = useTranslations70();
|
|
18006
18025
|
useEffect54(() => {
|
|
18007
18026
|
async function validateCode(code) {
|
|
18008
18027
|
try {
|
|
@@ -18094,7 +18113,7 @@ function AcceptInvitation() {
|
|
|
18094
18113
|
__name(AcceptInvitation, "AcceptInvitation");
|
|
18095
18114
|
|
|
18096
18115
|
// src/features/auth/components/forms/ActivateAccount.tsx
|
|
18097
|
-
import { useTranslations as
|
|
18116
|
+
import { useTranslations as useTranslations71 } from "next-intl";
|
|
18098
18117
|
import Image11 from "next/image";
|
|
18099
18118
|
import { useEffect as useEffect55, useState as useState72 } from "react";
|
|
18100
18119
|
import { Fragment as Fragment35, jsx as jsx197, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
@@ -18102,7 +18121,7 @@ function ActivateAccount() {
|
|
|
18102
18121
|
const { setComponentType, params, setParams } = useAuthContext();
|
|
18103
18122
|
const [showConfirmation, setShowConfirmation] = useState72(false);
|
|
18104
18123
|
const [error, setError] = useState72(void 0);
|
|
18105
|
-
const t =
|
|
18124
|
+
const t = useTranslations71();
|
|
18106
18125
|
useEffect55(() => {
|
|
18107
18126
|
async function ActivateAccount2(code) {
|
|
18108
18127
|
try {
|
|
@@ -18170,14 +18189,14 @@ __name(Cookies, "Cookies");
|
|
|
18170
18189
|
|
|
18171
18190
|
// src/features/auth/components/forms/ForgotPassword.tsx
|
|
18172
18191
|
import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
|
|
18173
|
-
import { useTranslations as
|
|
18192
|
+
import { useTranslations as useTranslations72 } from "next-intl";
|
|
18174
18193
|
import Image12 from "next/image";
|
|
18175
18194
|
import { useState as useState74 } from "react";
|
|
18176
18195
|
import { useForm as useForm7 } from "react-hook-form";
|
|
18177
18196
|
import { z as z7 } from "zod";
|
|
18178
18197
|
import { Fragment as Fragment36, jsx as jsx198, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
18179
18198
|
function ForgotPassword() {
|
|
18180
|
-
const t =
|
|
18199
|
+
const t = useTranslations72();
|
|
18181
18200
|
const { setComponentType } = useAuthContext();
|
|
18182
18201
|
const [showConfirmation, setShowConfirmation] = useState74(false);
|
|
18183
18202
|
const formSchema = z7.object({
|
|
@@ -18241,7 +18260,7 @@ __name(ForgotPassword, "ForgotPassword");
|
|
|
18241
18260
|
|
|
18242
18261
|
// src/features/auth/components/forms/Login.tsx
|
|
18243
18262
|
import { zodResolver as zodResolver8 } from "@hookform/resolvers/zod";
|
|
18244
|
-
import { useTranslations as
|
|
18263
|
+
import { useTranslations as useTranslations73 } from "next-intl";
|
|
18245
18264
|
import Image13 from "next/image";
|
|
18246
18265
|
import { useRouter, useSearchParams as useSearchParams3 } from "next/navigation";
|
|
18247
18266
|
import { useEffect as useEffect57, useState as useState75 } from "react";
|
|
@@ -18249,7 +18268,7 @@ import { useForm as useForm8 } from "react-hook-form";
|
|
|
18249
18268
|
import { z as z8 } from "zod";
|
|
18250
18269
|
import { Fragment as Fragment37, jsx as jsx199, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
18251
18270
|
function Login() {
|
|
18252
|
-
const t =
|
|
18271
|
+
const t = useTranslations73();
|
|
18253
18272
|
const { setUser } = useCurrentUserContext();
|
|
18254
18273
|
const { setComponentType, setPendingTwoFactor } = useAuthContext();
|
|
18255
18274
|
const generateUrl = usePageUrlGenerator();
|
|
@@ -18438,7 +18457,7 @@ __name(RefreshUser, "RefreshUser");
|
|
|
18438
18457
|
|
|
18439
18458
|
// src/features/auth/components/forms/ResetPassword.tsx
|
|
18440
18459
|
import { zodResolver as zodResolver9 } from "@hookform/resolvers/zod";
|
|
18441
|
-
import { useTranslations as
|
|
18460
|
+
import { useTranslations as useTranslations74 } from "next-intl";
|
|
18442
18461
|
import Image14 from "next/image";
|
|
18443
18462
|
import { useEffect as useEffect60, useState as useState76 } from "react";
|
|
18444
18463
|
import { useForm as useForm9 } from "react-hook-form";
|
|
@@ -18448,7 +18467,7 @@ function ResetPassword() {
|
|
|
18448
18467
|
const { setComponentType, params, setParams } = useAuthContext();
|
|
18449
18468
|
const [showConfirmation, setShowConfirmation] = useState76(false);
|
|
18450
18469
|
const [error, setError] = useState76(void 0);
|
|
18451
|
-
const t =
|
|
18470
|
+
const t = useTranslations74();
|
|
18452
18471
|
useEffect60(() => {
|
|
18453
18472
|
async function validateResetPasswordCode(code) {
|
|
18454
18473
|
try {
|
|
@@ -18524,19 +18543,19 @@ function ResetPassword() {
|
|
|
18524
18543
|
__name(ResetPassword, "ResetPassword");
|
|
18525
18544
|
|
|
18526
18545
|
// src/features/auth/components/forms/TwoFactorChallenge.tsx
|
|
18527
|
-
import { useTranslations as
|
|
18546
|
+
import { useTranslations as useTranslations76 } from "next-intl";
|
|
18528
18547
|
import { useRouter as useRouter2, useSearchParams as useSearchParams4 } from "next/navigation";
|
|
18529
18548
|
import { useState as useState78 } from "react";
|
|
18530
18549
|
import { v4 as v410 } from "uuid";
|
|
18531
18550
|
|
|
18532
18551
|
// src/features/auth/components/two-factor/PasskeyButton.tsx
|
|
18533
18552
|
import { startAuthentication } from "@simplewebauthn/browser";
|
|
18534
|
-
import { useTranslations as
|
|
18553
|
+
import { useTranslations as useTranslations75 } from "next-intl";
|
|
18535
18554
|
import { useState as useState77 } from "react";
|
|
18536
18555
|
import { v4 as v49 } from "uuid";
|
|
18537
18556
|
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
18538
18557
|
function PasskeyButton({ pendingToken, onSuccess, onError, disabled = false }) {
|
|
18539
|
-
const t =
|
|
18558
|
+
const t = useTranslations75();
|
|
18540
18559
|
const [isLoading, setIsLoading] = useState77(false);
|
|
18541
18560
|
const handleClick = /* @__PURE__ */ __name(async () => {
|
|
18542
18561
|
setIsLoading(true);
|
|
@@ -18574,7 +18593,7 @@ __name(PasskeyButton, "PasskeyButton");
|
|
|
18574
18593
|
// src/features/auth/components/forms/TwoFactorChallenge.tsx
|
|
18575
18594
|
import { Fragment as Fragment40, jsx as jsx203, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
18576
18595
|
function TwoFactorChallenge() {
|
|
18577
|
-
const t =
|
|
18596
|
+
const t = useTranslations76();
|
|
18578
18597
|
const { setUser } = useCurrentUserContext();
|
|
18579
18598
|
const { pendingTwoFactor, setPendingTwoFactor } = useAuthContext();
|
|
18580
18599
|
const generateUrl = usePageUrlGenerator();
|
|
@@ -18711,10 +18730,10 @@ function TwoFactorChallenge() {
|
|
|
18711
18730
|
__name(TwoFactorChallenge, "TwoFactorChallenge");
|
|
18712
18731
|
|
|
18713
18732
|
// src/features/content/components/lists/ContentsList.tsx
|
|
18714
|
-
import { useTranslations as
|
|
18733
|
+
import { useTranslations as useTranslations77 } from "next-intl";
|
|
18715
18734
|
import { jsx as jsx204, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
18716
18735
|
function ContentsList({ contentList }) {
|
|
18717
|
-
const t =
|
|
18736
|
+
const t = useTranslations77();
|
|
18718
18737
|
return /* @__PURE__ */ jsxs124("div", { className: "flex min-h-0 w-full flex-col overflow-y-auto", children: [
|
|
18719
18738
|
/* @__PURE__ */ jsx204("h2", { className: "text-xl font-semibold", children: t(`content.news`) }),
|
|
18720
18739
|
/* @__PURE__ */ jsx204("div", { className: "flex flex-col", children: contentList.map((content) => /* @__PURE__ */ jsx204(ContentsListElement, { content }, content.id)) })
|
|
@@ -18742,10 +18761,10 @@ function ContentsListElement({ content }) {
|
|
|
18742
18761
|
__name(ContentsListElement, "ContentsListElement");
|
|
18743
18762
|
|
|
18744
18763
|
// src/features/content/components/lists/ContentsListById.tsx
|
|
18745
|
-
import { useTranslations as
|
|
18764
|
+
import { useTranslations as useTranslations78 } from "next-intl";
|
|
18746
18765
|
import { jsx as jsx205 } from "react/jsx-runtime";
|
|
18747
18766
|
function ContentsListById({ contentIds }) {
|
|
18748
|
-
const t =
|
|
18767
|
+
const t = useTranslations78();
|
|
18749
18768
|
const data = useDataListRetriever({
|
|
18750
18769
|
module: Modules.Content,
|
|
18751
18770
|
retriever: /* @__PURE__ */ __name((params) => ContentService.findMany(params), "retriever"),
|
|
@@ -18755,7 +18774,7 @@ function ContentsListById({ contentIds }) {
|
|
|
18755
18774
|
ContentListTable,
|
|
18756
18775
|
{
|
|
18757
18776
|
data,
|
|
18758
|
-
fields: ["name" /* name */, "authors" /* authors
|
|
18777
|
+
fields: ["name" /* name */, "authors" /* authors */],
|
|
18759
18778
|
tableGeneratorType: Modules.Content,
|
|
18760
18779
|
title: t(`common.relevant`)
|
|
18761
18780
|
}
|
|
@@ -18764,10 +18783,10 @@ function ContentsListById({ contentIds }) {
|
|
|
18764
18783
|
__name(ContentsListById, "ContentsListById");
|
|
18765
18784
|
|
|
18766
18785
|
// src/features/content/components/lists/RelevantContentsList.tsx
|
|
18767
|
-
import { useTranslations as
|
|
18786
|
+
import { useTranslations as useTranslations79 } from "next-intl";
|
|
18768
18787
|
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
18769
18788
|
function RelevantContentsList({ id }) {
|
|
18770
|
-
const t =
|
|
18789
|
+
const t = useTranslations79();
|
|
18771
18790
|
const data = useDataListRetriever({
|
|
18772
18791
|
module: Modules.Content,
|
|
18773
18792
|
retriever: /* @__PURE__ */ __name((params) => ContentService.findRelevant(params), "retriever"),
|
|
@@ -18777,7 +18796,7 @@ function RelevantContentsList({ id }) {
|
|
|
18777
18796
|
ContentListTable,
|
|
18778
18797
|
{
|
|
18779
18798
|
data,
|
|
18780
|
-
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance
|
|
18799
|
+
fields: ["name" /* name */, "authors" /* authors */, "relevance" /* relevance */],
|
|
18781
18800
|
tableGeneratorType: Modules.Content,
|
|
18782
18801
|
title: t(`common.relevant`)
|
|
18783
18802
|
}
|
|
@@ -18787,12 +18806,12 @@ __name(RelevantContentsList, "RelevantContentsList");
|
|
|
18787
18806
|
|
|
18788
18807
|
// src/features/how-to/components/containers/HowToCommand.tsx
|
|
18789
18808
|
import { ArrowRight, LifeBuoyIcon } from "lucide-react";
|
|
18790
|
-
import { useTranslations as
|
|
18809
|
+
import { useTranslations as useTranslations81 } from "next-intl";
|
|
18791
18810
|
import { useCallback as useCallback38, useEffect as useEffect61, useMemo as useMemo31, useRef as useRef34, useState as useState79 } from "react";
|
|
18792
18811
|
|
|
18793
18812
|
// src/features/how-to/components/containers/HowToCommandViewer.tsx
|
|
18794
18813
|
import { ArrowLeft, BookOpen, MessageSquare } from "lucide-react";
|
|
18795
|
-
import { useTranslations as
|
|
18814
|
+
import { useTranslations as useTranslations80 } from "next-intl";
|
|
18796
18815
|
import { useMemo as useMemo30 } from "react";
|
|
18797
18816
|
|
|
18798
18817
|
// src/features/how-to/utils/blocknote.ts
|
|
@@ -18864,7 +18883,7 @@ __name(extractHeadings, "extractHeadings");
|
|
|
18864
18883
|
// src/features/how-to/components/containers/HowToCommandViewer.tsx
|
|
18865
18884
|
import { jsx as jsx207, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
18866
18885
|
function HowToCommandViewer({ howTo, onBack, onStartChat }) {
|
|
18867
|
-
const t =
|
|
18886
|
+
const t = useTranslations80();
|
|
18868
18887
|
const readingTime = useMemo30(() => calculateReadingTime(howTo.description), [howTo.description]);
|
|
18869
18888
|
const headings = useMemo30(() => extractHeadings(howTo.description), [howTo.description]);
|
|
18870
18889
|
return /* @__PURE__ */ jsxs125("div", { className: "flex h-full flex-col", children: [
|
|
@@ -18913,7 +18932,7 @@ function matchPage(pathname, pattern) {
|
|
|
18913
18932
|
}
|
|
18914
18933
|
__name(matchPage, "matchPage");
|
|
18915
18934
|
function HowToCommand({ pathname, extraGroups, onStartChat }) {
|
|
18916
|
-
const t =
|
|
18935
|
+
const t = useTranslations81();
|
|
18917
18936
|
const [dialogOpen, setDialogOpen] = useState79(false);
|
|
18918
18937
|
const [selectedHowTo, setSelectedHowTo] = useState79(null);
|
|
18919
18938
|
const searchTermRef = useRef34("");
|
|
@@ -19079,10 +19098,10 @@ function HowToContent() {
|
|
|
19079
19098
|
__name(HowToContent, "HowToContent");
|
|
19080
19099
|
|
|
19081
19100
|
// src/features/how-to/components/details/HowToDetails.tsx
|
|
19082
|
-
import { useTranslations as
|
|
19101
|
+
import { useTranslations as useTranslations82 } from "next-intl";
|
|
19083
19102
|
import { jsx as jsx210, jsxs as jsxs127 } from "react/jsx-runtime";
|
|
19084
19103
|
function HowToDetailsInternal({ howTo }) {
|
|
19085
|
-
const t =
|
|
19104
|
+
const t = useTranslations82();
|
|
19086
19105
|
const { title } = useSharedContext();
|
|
19087
19106
|
const pagesList = HowTo.parsePagesFromString(howTo.pages);
|
|
19088
19107
|
return /* @__PURE__ */ jsxs127("div", { className: "flex w-full flex-col gap-y-4", children: [
|
|
@@ -19118,14 +19137,14 @@ function HowToContainer() {
|
|
|
19118
19137
|
__name(HowToContainer, "HowToContainer");
|
|
19119
19138
|
|
|
19120
19139
|
// src/features/how-to/components/lists/HowToList.tsx
|
|
19121
|
-
import { useTranslations as
|
|
19140
|
+
import { useTranslations as useTranslations84 } from "next-intl";
|
|
19122
19141
|
|
|
19123
19142
|
// src/features/how-to/hooks/useHowToTableStructure.tsx
|
|
19124
|
-
import { useTranslations as
|
|
19143
|
+
import { useTranslations as useTranslations83 } from "next-intl";
|
|
19125
19144
|
import { useMemo as useMemo32 } from "react";
|
|
19126
19145
|
import { Fragment as Fragment42, jsx as jsx212 } from "react/jsx-runtime";
|
|
19127
19146
|
var useHowToTableStructure = /* @__PURE__ */ __name((params) => {
|
|
19128
|
-
const t =
|
|
19147
|
+
const t = useTranslations83();
|
|
19129
19148
|
const generateUrl = usePageUrlGenerator();
|
|
19130
19149
|
const tableData = useMemo32(() => {
|
|
19131
19150
|
return params.data.map((howTo) => {
|
|
@@ -19191,7 +19210,7 @@ registerTableGenerator("howtos", useHowToTableStructure);
|
|
|
19191
19210
|
// src/features/how-to/components/lists/HowToList.tsx
|
|
19192
19211
|
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
19193
19212
|
function HowToList({ fullWidth }) {
|
|
19194
|
-
const t =
|
|
19213
|
+
const t = useTranslations84();
|
|
19195
19214
|
const data = useDataListRetriever({
|
|
19196
19215
|
module: Modules.HowTo,
|
|
19197
19216
|
retriever: /* @__PURE__ */ __name((params) => HowToService.findMany(params), "retriever"),
|
|
@@ -19225,7 +19244,7 @@ __name(HowToListContainer, "HowToListContainer");
|
|
|
19225
19244
|
|
|
19226
19245
|
// src/features/how-to/components/forms/HowToSelector.tsx
|
|
19227
19246
|
import { CircleX as CircleX3, RefreshCwIcon as RefreshCwIcon4, SearchIcon as SearchIcon7, XIcon as XIcon11 } from "lucide-react";
|
|
19228
|
-
import { useTranslations as
|
|
19247
|
+
import { useTranslations as useTranslations85 } from "next-intl";
|
|
19229
19248
|
import { useCallback as useCallback39, useEffect as useEffect62, useRef as useRef35, useState as useState80 } from "react";
|
|
19230
19249
|
import { Fragment as Fragment43, jsx as jsx215, jsxs as jsxs128 } from "react/jsx-runtime";
|
|
19231
19250
|
function HowToSelector({
|
|
@@ -19236,7 +19255,7 @@ function HowToSelector({
|
|
|
19236
19255
|
onChange,
|
|
19237
19256
|
isRequired = false
|
|
19238
19257
|
}) {
|
|
19239
|
-
const t =
|
|
19258
|
+
const t = useTranslations85();
|
|
19240
19259
|
const [open, setOpen] = useState80(false);
|
|
19241
19260
|
const searchTermRef = useRef35("");
|
|
19242
19261
|
const [searchTerm, setSearchTerm] = useState80("");
|
|
@@ -19329,7 +19348,7 @@ function HowToSelector({
|
|
|
19329
19348
|
__name(HowToSelector, "HowToSelector");
|
|
19330
19349
|
|
|
19331
19350
|
// src/features/assistant/components/parts/AssistantSidebar.tsx
|
|
19332
|
-
import { useTranslations as
|
|
19351
|
+
import { useTranslations as useTranslations86 } from "next-intl";
|
|
19333
19352
|
import { Plus as Plus2 } from "lucide-react";
|
|
19334
19353
|
|
|
19335
19354
|
// src/features/assistant/utils/groupThreadsByBucket.ts
|
|
@@ -19355,7 +19374,7 @@ __name(groupThreadsByBucket, "groupThreadsByBucket");
|
|
|
19355
19374
|
// src/features/assistant/components/parts/AssistantSidebar.tsx
|
|
19356
19375
|
import { Fragment as Fragment44, jsx as jsx216, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
19357
19376
|
function AssistantSidebar({ threads, activeId, onSelect, onNew }) {
|
|
19358
|
-
const t =
|
|
19377
|
+
const t = useTranslations86();
|
|
19359
19378
|
const groups = groupThreadsByBucket(threads);
|
|
19360
19379
|
const renderSection = /* @__PURE__ */ __name((label, items) => {
|
|
19361
19380
|
if (items.length === 0) return null;
|
|
@@ -19390,16 +19409,16 @@ __name(AssistantSidebar, "AssistantSidebar");
|
|
|
19390
19409
|
|
|
19391
19410
|
// src/features/assistant/components/parts/AssistantEmptyState.tsx
|
|
19392
19411
|
import { useState as useState82 } from "react";
|
|
19393
|
-
import { useTranslations as
|
|
19412
|
+
import { useTranslations as useTranslations88 } from "next-intl";
|
|
19394
19413
|
import { Sparkles } from "lucide-react";
|
|
19395
19414
|
|
|
19396
19415
|
// src/features/assistant/components/parts/AssistantComposer.tsx
|
|
19397
19416
|
import { useState as useState81 } from "react";
|
|
19398
|
-
import { useTranslations as
|
|
19417
|
+
import { useTranslations as useTranslations87 } from "next-intl";
|
|
19399
19418
|
import { ArrowUp } from "lucide-react";
|
|
19400
19419
|
import { jsx as jsx217, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
19401
19420
|
function AssistantComposer({ onSend, disabled, value: controlled, onValueChange }) {
|
|
19402
|
-
const t =
|
|
19421
|
+
const t = useTranslations87();
|
|
19403
19422
|
const [internal, setInternal] = useState81("");
|
|
19404
19423
|
const value = controlled ?? internal;
|
|
19405
19424
|
const setValue = onValueChange ?? setInternal;
|
|
@@ -19445,7 +19464,7 @@ __name(AssistantComposer, "AssistantComposer");
|
|
|
19445
19464
|
import { jsx as jsx218, jsxs as jsxs131 } from "react/jsx-runtime";
|
|
19446
19465
|
var STARTER_KEYS = ["a", "b", "c", "d"];
|
|
19447
19466
|
function AssistantEmptyState({ onSend, operatorMode = false, onOperatorModeChange }) {
|
|
19448
|
-
const t =
|
|
19467
|
+
const t = useTranslations88();
|
|
19449
19468
|
const [draft, setDraft] = useState82("");
|
|
19450
19469
|
return /* @__PURE__ */ jsx218("div", { className: "flex h-full w-full items-center justify-center p-10", children: /* @__PURE__ */ jsxs131("div", { className: "flex w-full max-w-2xl flex-col gap-6", children: [
|
|
19451
19470
|
/* @__PURE__ */ jsxs131("div", { className: "text-center", children: [
|
|
@@ -19485,10 +19504,10 @@ __name(AssistantEmptyState, "AssistantEmptyState");
|
|
|
19485
19504
|
|
|
19486
19505
|
// src/features/assistant/components/parts/AssistantThreadHeader.tsx
|
|
19487
19506
|
import { useState as useState83 } from "react";
|
|
19488
|
-
import { useTranslations as
|
|
19507
|
+
import { useTranslations as useTranslations89 } from "next-intl";
|
|
19489
19508
|
import { jsx as jsx219, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
19490
19509
|
function AssistantThreadHeader({ assistant, onRename, onDelete }) {
|
|
19491
|
-
const t =
|
|
19510
|
+
const t = useTranslations89();
|
|
19492
19511
|
const [renameValue, setRenameValue] = useState83(assistant.title);
|
|
19493
19512
|
const [renameOpen, setRenameOpen] = useState83(false);
|
|
19494
19513
|
const [deleteOpen, setDeleteOpen] = useState83(false);
|
|
@@ -19547,7 +19566,7 @@ __name(AssistantThreadHeader, "AssistantThreadHeader");
|
|
|
19547
19566
|
import { useEffect as useEffect64, useRef as useRef36 } from "react";
|
|
19548
19567
|
|
|
19549
19568
|
// src/features/assistant-message/components/MessageItem.tsx
|
|
19550
|
-
import { useTranslations as
|
|
19569
|
+
import { useTranslations as useTranslations95 } from "next-intl";
|
|
19551
19570
|
import { Sparkles as Sparkles2, AlertCircle } from "lucide-react";
|
|
19552
19571
|
import ReactMarkdown3 from "react-markdown";
|
|
19553
19572
|
import remarkGfm3 from "remark-gfm";
|
|
@@ -19557,15 +19576,15 @@ import { useEffect as useEffect63, useMemo as useMemo34, useState as useState86
|
|
|
19557
19576
|
|
|
19558
19577
|
// src/features/assistant-message/components/parts/MessageSourcesPanel.tsx
|
|
19559
19578
|
import { useMemo as useMemo33, useState as useState85 } from "react";
|
|
19560
|
-
import { useTranslations as
|
|
19579
|
+
import { useTranslations as useTranslations94 } from "next-intl";
|
|
19561
19580
|
import { ChevronDown as ChevronDown4, ChevronRight as ChevronRight2 } from "lucide-react";
|
|
19562
19581
|
|
|
19563
19582
|
// src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx
|
|
19564
|
-
import { useTranslations as
|
|
19583
|
+
import { useTranslations as useTranslations90 } from "next-intl";
|
|
19565
19584
|
import Link4 from "next/link";
|
|
19566
19585
|
import { jsx as jsx220, jsxs as jsxs133 } from "react/jsx-runtime";
|
|
19567
19586
|
function ReferencesTab({ references }) {
|
|
19568
|
-
const t =
|
|
19587
|
+
const t = useTranslations90();
|
|
19569
19588
|
const generate = usePageUrlGenerator();
|
|
19570
19589
|
if (references.length === 0) return null;
|
|
19571
19590
|
return /* @__PURE__ */ jsxs133(Table, { children: [
|
|
@@ -19594,7 +19613,7 @@ __name(ReferencesTab, "ReferencesTab");
|
|
|
19594
19613
|
|
|
19595
19614
|
// src/features/assistant-message/components/parts/tabs/CitationsTab.tsx
|
|
19596
19615
|
import { Fragment as Fragment45, useState as useState84 } from "react";
|
|
19597
|
-
import { useTranslations as
|
|
19616
|
+
import { useTranslations as useTranslations91 } from "next-intl";
|
|
19598
19617
|
import { ChevronDown as ChevronDown3, HelpCircle } from "lucide-react";
|
|
19599
19618
|
import ReactMarkdown2 from "react-markdown";
|
|
19600
19619
|
import remarkGfm2 from "remark-gfm";
|
|
@@ -19631,7 +19650,7 @@ __name(RelevanceMeter, "RelevanceMeter");
|
|
|
19631
19650
|
// src/features/assistant-message/components/parts/tabs/CitationsTab.tsx
|
|
19632
19651
|
import { jsx as jsx222, jsxs as jsxs135 } from "react/jsx-runtime";
|
|
19633
19652
|
function CitationsTab({ citations, sources }) {
|
|
19634
|
-
const t =
|
|
19653
|
+
const t = useTranslations91();
|
|
19635
19654
|
const [expanded, setExpanded] = useState84(/* @__PURE__ */ new Set());
|
|
19636
19655
|
if (citations.length === 0) return null;
|
|
19637
19656
|
const sorted = [...citations].sort((a, b) => (b.relevance ?? 0) - (a.relevance ?? 0));
|
|
@@ -19689,11 +19708,11 @@ function CitationsTab({ citations, sources }) {
|
|
|
19689
19708
|
__name(CitationsTab, "CitationsTab");
|
|
19690
19709
|
|
|
19691
19710
|
// src/features/assistant-message/components/parts/tabs/ContentsTab.tsx
|
|
19692
|
-
import { useTranslations as
|
|
19711
|
+
import { useTranslations as useTranslations92 } from "next-intl";
|
|
19693
19712
|
import Link5 from "next/link";
|
|
19694
19713
|
import { jsx as jsx223, jsxs as jsxs136 } from "react/jsx-runtime";
|
|
19695
19714
|
function ContentsTab({ citations, sources }) {
|
|
19696
|
-
const t =
|
|
19715
|
+
const t = useTranslations92();
|
|
19697
19716
|
const generate = usePageUrlGenerator();
|
|
19698
19717
|
const map = /* @__PURE__ */ new Map();
|
|
19699
19718
|
for (const c of citations) {
|
|
@@ -19745,7 +19764,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
19745
19764
|
__name(ContentsTab, "ContentsTab");
|
|
19746
19765
|
|
|
19747
19766
|
// src/features/assistant-message/components/parts/tabs/UsersTab.tsx
|
|
19748
|
-
import { useTranslations as
|
|
19767
|
+
import { useTranslations as useTranslations93 } from "next-intl";
|
|
19749
19768
|
import Link6 from "next/link";
|
|
19750
19769
|
import { jsx as jsx224, jsxs as jsxs137 } from "react/jsx-runtime";
|
|
19751
19770
|
function getInitials2(name) {
|
|
@@ -19762,7 +19781,7 @@ function readAuthor(source) {
|
|
|
19762
19781
|
}
|
|
19763
19782
|
__name(readAuthor, "readAuthor");
|
|
19764
19783
|
function UsersTab({ users, citations, sources }) {
|
|
19765
|
-
const t =
|
|
19784
|
+
const t = useTranslations93();
|
|
19766
19785
|
const generate = usePageUrlGenerator();
|
|
19767
19786
|
const userMap = /* @__PURE__ */ new Map();
|
|
19768
19787
|
for (const u of users) {
|
|
@@ -19848,7 +19867,7 @@ __name(SuggestedQuestionsTab, "SuggestedQuestionsTab");
|
|
|
19848
19867
|
// src/features/assistant-message/components/parts/MessageSourcesPanel.tsx
|
|
19849
19868
|
import { jsx as jsx226, jsxs as jsxs138 } from "react/jsx-runtime";
|
|
19850
19869
|
function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sources, users }) {
|
|
19851
|
-
const t =
|
|
19870
|
+
const t = useTranslations94();
|
|
19852
19871
|
const visibleReferences = useMemo33(
|
|
19853
19872
|
() => message.references.filter((ref) => {
|
|
19854
19873
|
try {
|
|
@@ -20038,7 +20057,7 @@ function MessageItem({
|
|
|
20038
20057
|
onRetry,
|
|
20039
20058
|
renderApprovalAction
|
|
20040
20059
|
}) {
|
|
20041
|
-
const t =
|
|
20060
|
+
const t = useTranslations95();
|
|
20042
20061
|
const isUser = message.role === "user";
|
|
20043
20062
|
const isFailed = isUser && !!failedMessageIds?.has(message.id);
|
|
20044
20063
|
if (isUser) {
|
|
@@ -20097,11 +20116,11 @@ function MessageList({ messages, onSelectFollowUp, failedMessageIds, onRetry, re
|
|
|
20097
20116
|
__name(MessageList, "MessageList");
|
|
20098
20117
|
|
|
20099
20118
|
// src/features/assistant/components/parts/AssistantStatusLine.tsx
|
|
20100
|
-
import { useTranslations as
|
|
20119
|
+
import { useTranslations as useTranslations96 } from "next-intl";
|
|
20101
20120
|
import { Loader2 as Loader24 } from "lucide-react";
|
|
20102
20121
|
import { jsx as jsx230, jsxs as jsxs140 } from "react/jsx-runtime";
|
|
20103
20122
|
function AssistantStatusLine({ status }) {
|
|
20104
|
-
const t =
|
|
20123
|
+
const t = useTranslations96();
|
|
20105
20124
|
const text = status ?? t("features.assistant.thinking");
|
|
20106
20125
|
return /* @__PURE__ */ jsxs140("div", { className: "text-muted-foreground flex items-center gap-2 px-4 py-2 text-sm", children: [
|
|
20107
20126
|
/* @__PURE__ */ jsx230(Loader24, { className: "h-4 w-4 animate-spin" }),
|
|
@@ -20227,14 +20246,14 @@ var NotificationErrorBoundary = class extends Component {
|
|
|
20227
20246
|
};
|
|
20228
20247
|
|
|
20229
20248
|
// src/features/notification/components/containers/NotificationsListContainer.tsx
|
|
20230
|
-
import { useTranslations as
|
|
20249
|
+
import { useTranslations as useTranslations98 } from "next-intl";
|
|
20231
20250
|
|
|
20232
20251
|
// src/features/notification/components/lists/NotificationsList.tsx
|
|
20233
20252
|
import { ArchiveIcon } from "lucide-react";
|
|
20234
|
-
import { useTranslations as
|
|
20253
|
+
import { useTranslations as useTranslations97 } from "next-intl";
|
|
20235
20254
|
import { Fragment as Fragment47, jsx as jsx234, jsxs as jsxs144 } from "react/jsx-runtime";
|
|
20236
20255
|
function NotificationsList({ archived }) {
|
|
20237
|
-
const t =
|
|
20256
|
+
const t = useTranslations97();
|
|
20238
20257
|
const generateUrl = usePageUrlGenerator();
|
|
20239
20258
|
const data = useDataListRetriever({
|
|
20240
20259
|
retriever: /* @__PURE__ */ __name((params) => NotificationService.findMany(params), "retriever"),
|
|
@@ -20292,7 +20311,7 @@ __name(NotificationsList, "NotificationsList");
|
|
|
20292
20311
|
// src/features/notification/components/containers/NotificationsListContainer.tsx
|
|
20293
20312
|
import { jsx as jsx235, jsxs as jsxs145 } from "react/jsx-runtime";
|
|
20294
20313
|
function NotificationsListContainerContent() {
|
|
20295
|
-
const t =
|
|
20314
|
+
const t = useTranslations98();
|
|
20296
20315
|
const { notifications: _notifications, isLoading: _isLoading, error } = useNotificationContext();
|
|
20297
20316
|
if (error) {
|
|
20298
20317
|
return /* @__PURE__ */ jsx235("div", { className: "flex items-center justify-center p-8 text-center", children: /* @__PURE__ */ jsxs145("div", { className: "text-destructive text-sm", children: [
|
|
@@ -20323,7 +20342,7 @@ __name(NotificationsListContainer, "NotificationsListContainer");
|
|
|
20323
20342
|
|
|
20324
20343
|
// src/features/notification/components/modals/NotificationModal.tsx
|
|
20325
20344
|
import { BellIcon } from "lucide-react";
|
|
20326
|
-
import { useTranslations as
|
|
20345
|
+
import { useTranslations as useTranslations99 } from "next-intl";
|
|
20327
20346
|
import { Fragment as Fragment48, useCallback as useCallback40, useEffect as useEffect65, useMemo as useMemo35, useRef as useRef37, useState as useState87 } from "react";
|
|
20328
20347
|
import { jsx as jsx236, jsxs as jsxs146 } from "react/jsx-runtime";
|
|
20329
20348
|
function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
@@ -20344,7 +20363,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
20344
20363
|
removeSocketNotification: _removeSocketNotification,
|
|
20345
20364
|
clearSocketNotifications
|
|
20346
20365
|
} = useSocketContext();
|
|
20347
|
-
const t =
|
|
20366
|
+
const t = useTranslations99();
|
|
20348
20367
|
const generateUrl = usePageUrlGenerator();
|
|
20349
20368
|
const [newNotifications, setNewNotifications] = useState87(false);
|
|
20350
20369
|
const preventAutoClose = useRef37(false);
|
|
@@ -20798,11 +20817,11 @@ function ReferralDialog({
|
|
|
20798
20817
|
__name(ReferralDialog, "ReferralDialog");
|
|
20799
20818
|
|
|
20800
20819
|
// src/features/role/components/details/RoleDetails.tsx
|
|
20801
|
-
import { useTranslations as
|
|
20820
|
+
import { useTranslations as useTranslations100 } from "next-intl";
|
|
20802
20821
|
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
20803
20822
|
function RoleDetails() {
|
|
20804
20823
|
const { role } = useRoleContext();
|
|
20805
|
-
const t =
|
|
20824
|
+
const t = useTranslations100();
|
|
20806
20825
|
if (!role) return null;
|
|
20807
20826
|
return /* @__PURE__ */ jsx240(Card, { className: "w-full", children: /* @__PURE__ */ jsx240(CardContent, { className: "p-4", children: /* @__PURE__ */ jsx240(AttributeElement, { title: t(`role.fields.description.label`), value: role.description }) }) });
|
|
20808
20827
|
}
|
|
@@ -20821,10 +20840,10 @@ function RoleContainer() {
|
|
|
20821
20840
|
__name(RoleContainer, "RoleContainer");
|
|
20822
20841
|
|
|
20823
20842
|
// src/features/role/components/forms/FormRoles.tsx
|
|
20824
|
-
import { useTranslations as
|
|
20843
|
+
import { useTranslations as useTranslations101 } from "next-intl";
|
|
20825
20844
|
import { jsx as jsx242, jsxs as jsxs150 } from "react/jsx-runtime";
|
|
20826
20845
|
function FormRoles({ form, id, name, roles }) {
|
|
20827
|
-
const t =
|
|
20846
|
+
const t = useTranslations101();
|
|
20828
20847
|
const { hasAccesToFeature } = useCurrentUserContext();
|
|
20829
20848
|
return /* @__PURE__ */ jsx242("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx242(FormFieldWrapper, { form, name: id, label: name, children: (field) => /* @__PURE__ */ jsx242("div", { className: "flex w-full flex-col gap-y-1", children: roles.filter((role) => role.isSelectable).sort((a, b) => a.name.localeCompare(b.name)).map((role) => {
|
|
20830
20849
|
if (role.requiredFeature && !hasAccesToFeature(role.requiredFeature.id)) return null;
|
|
@@ -20856,13 +20875,13 @@ function FormRoles({ form, id, name, roles }) {
|
|
|
20856
20875
|
__name(FormRoles, "FormRoles");
|
|
20857
20876
|
|
|
20858
20877
|
// src/features/role/components/forms/RemoveUserFromRole.tsx
|
|
20859
|
-
import { useTranslations as
|
|
20878
|
+
import { useTranslations as useTranslations102 } from "next-intl";
|
|
20860
20879
|
import { useEffect as useEffect68, useState as useState91 } from "react";
|
|
20861
20880
|
import { Fragment as Fragment51, jsx as jsx243, jsxs as jsxs151 } from "react/jsx-runtime";
|
|
20862
20881
|
function RemoveUserFromRole({ role, user, refresh }) {
|
|
20863
20882
|
const [open, setOpen] = useState91(false);
|
|
20864
20883
|
const [canRemove, setCanRemove] = useState91(false);
|
|
20865
|
-
const t =
|
|
20884
|
+
const t = useTranslations102();
|
|
20866
20885
|
useEffect68(() => {
|
|
20867
20886
|
async function checkCompanyAdminDeletability() {
|
|
20868
20887
|
const roleUsers = await UserService.findAllUsersByRole({
|
|
@@ -20932,7 +20951,7 @@ __name(RemoveUserFromRole, "RemoveUserFromRole");
|
|
|
20932
20951
|
|
|
20933
20952
|
// src/features/role/components/forms/UserRoleAdd.tsx
|
|
20934
20953
|
import { PlusCircle as PlusCircle2 } from "lucide-react";
|
|
20935
|
-
import { useTranslations as
|
|
20954
|
+
import { useTranslations as useTranslations103 } from "next-intl";
|
|
20936
20955
|
import { useCallback as useCallback42, useEffect as useEffect69, useRef as useRef39, useState as useState92 } from "react";
|
|
20937
20956
|
import { Fragment as Fragment52, jsx as jsx244, jsxs as jsxs152 } from "react/jsx-runtime";
|
|
20938
20957
|
function UserRoleAdd({ user, refresh }) {
|
|
@@ -20940,7 +20959,7 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
20940
20959
|
const inputRef = useRef39(null);
|
|
20941
20960
|
const [searchTerm, setSearchTerm] = useState92("");
|
|
20942
20961
|
const [roles, setRoles] = useState92([]);
|
|
20943
|
-
const t =
|
|
20962
|
+
const t = useTranslations103();
|
|
20944
20963
|
const addUserToRole = /* @__PURE__ */ __name(async (role) => {
|
|
20945
20964
|
await RoleService.addUserToRole({
|
|
20946
20965
|
roleId: role.id,
|
|
@@ -21029,10 +21048,10 @@ function UserRoleAdd({ user, refresh }) {
|
|
|
21029
21048
|
__name(UserRoleAdd, "UserRoleAdd");
|
|
21030
21049
|
|
|
21031
21050
|
// src/features/role/components/lists/RolesList.tsx
|
|
21032
|
-
import { useTranslations as
|
|
21051
|
+
import { useTranslations as useTranslations104 } from "next-intl";
|
|
21033
21052
|
import { jsx as jsx245 } from "react/jsx-runtime";
|
|
21034
21053
|
function RolesList() {
|
|
21035
|
-
const t =
|
|
21054
|
+
const t = useTranslations104();
|
|
21036
21055
|
const data = useDataListRetriever({
|
|
21037
21056
|
retriever: /* @__PURE__ */ __name((params) => RoleService.findAllRoles(params), "retriever"),
|
|
21038
21057
|
retrieverParams: {},
|
|
@@ -21051,10 +21070,10 @@ function RolesList() {
|
|
|
21051
21070
|
__name(RolesList, "RolesList");
|
|
21052
21071
|
|
|
21053
21072
|
// src/features/role/components/lists/UserRolesList.tsx
|
|
21054
|
-
import { useTranslations as
|
|
21073
|
+
import { useTranslations as useTranslations105 } from "next-intl";
|
|
21055
21074
|
import { jsx as jsx246 } from "react/jsx-runtime";
|
|
21056
21075
|
function UserRolesList({ user }) {
|
|
21057
|
-
const t =
|
|
21076
|
+
const t = useTranslations105();
|
|
21058
21077
|
const data = useDataListRetriever({
|
|
21059
21078
|
retriever: /* @__PURE__ */ __name((params) => RoleService.findAllRolesByUser(params), "retriever"),
|
|
21060
21079
|
retrieverParams: { userId: user.id },
|
|
@@ -21859,7 +21878,7 @@ __name(OAuthConsentScreen, "OAuthConsentScreen");
|
|
|
21859
21878
|
// src/features/waitlist/components/forms/WaitlistForm.tsx
|
|
21860
21879
|
import { zodResolver as zodResolver10 } from "@hookform/resolvers/zod";
|
|
21861
21880
|
import { CheckCircle, Mail as Mail2 } from "lucide-react";
|
|
21862
|
-
import { useTranslations as
|
|
21881
|
+
import { useTranslations as useTranslations106 } from "next-intl";
|
|
21863
21882
|
import { useState as useState96 } from "react";
|
|
21864
21883
|
import { useForm as useForm10 } from "react-hook-form";
|
|
21865
21884
|
import { v4 as v411 } from "uuid";
|
|
@@ -21960,7 +21979,7 @@ __name(WaitlistQuestionnaireRenderer, "WaitlistQuestionnaireRenderer");
|
|
|
21960
21979
|
// src/features/waitlist/components/forms/WaitlistForm.tsx
|
|
21961
21980
|
import { Fragment as Fragment54, jsx as jsx259, jsxs as jsxs165 } from "react/jsx-runtime";
|
|
21962
21981
|
function WaitlistForm({ onSuccess }) {
|
|
21963
|
-
const t =
|
|
21982
|
+
const t = useTranslations106();
|
|
21964
21983
|
const [isSubmitting, setIsSubmitting] = useState96(false);
|
|
21965
21984
|
const [isSuccess, setIsSuccess] = useState96(false);
|
|
21966
21985
|
const config = getWaitlistConfig();
|
|
@@ -22125,10 +22144,10 @@ __name(WaitlistHeroSection, "WaitlistHeroSection");
|
|
|
22125
22144
|
|
|
22126
22145
|
// src/features/waitlist/components/sections/WaitlistSuccessState.tsx
|
|
22127
22146
|
import { CheckCircle as CheckCircle3 } from "lucide-react";
|
|
22128
|
-
import { useTranslations as
|
|
22147
|
+
import { useTranslations as useTranslations107 } from "next-intl";
|
|
22129
22148
|
import { jsx as jsx261, jsxs as jsxs167 } from "react/jsx-runtime";
|
|
22130
22149
|
function WaitlistSuccessState() {
|
|
22131
|
-
const t =
|
|
22150
|
+
const t = useTranslations107();
|
|
22132
22151
|
return /* @__PURE__ */ jsxs167("div", { className: "flex flex-col items-center justify-center space-y-4 py-8 text-center", children: [
|
|
22133
22152
|
/* @__PURE__ */ jsx261("div", { className: "bg-primary/10 rounded-full p-4", children: /* @__PURE__ */ jsx261(CheckCircle3, { className: "text-primary h-12 w-12" }) }),
|
|
22134
22153
|
/* @__PURE__ */ jsx261("h2", { className: "text-2xl font-bold", children: t("waitlist.success.title") }),
|
|
@@ -22140,11 +22159,11 @@ __name(WaitlistSuccessState, "WaitlistSuccessState");
|
|
|
22140
22159
|
|
|
22141
22160
|
// src/features/waitlist/components/sections/WaitlistConfirmation.tsx
|
|
22142
22161
|
import { CheckCircle as CheckCircle4, Loader2 as Loader27, XCircle as XCircle2 } from "lucide-react";
|
|
22143
|
-
import { useTranslations as
|
|
22162
|
+
import { useTranslations as useTranslations108 } from "next-intl";
|
|
22144
22163
|
import { useEffect as useEffect70, useState as useState97 } from "react";
|
|
22145
22164
|
import { jsx as jsx262, jsxs as jsxs168 } from "react/jsx-runtime";
|
|
22146
22165
|
function WaitlistConfirmation({ code }) {
|
|
22147
|
-
const t =
|
|
22166
|
+
const t = useTranslations108();
|
|
22148
22167
|
const [state, setState] = useState97("loading");
|
|
22149
22168
|
const [errorMessage, setErrorMessage] = useState97("");
|
|
22150
22169
|
useEffect70(() => {
|
|
@@ -22186,12 +22205,12 @@ __name(WaitlistConfirmation, "WaitlistConfirmation");
|
|
|
22186
22205
|
// src/features/waitlist/components/lists/WaitlistList.tsx
|
|
22187
22206
|
import { flexRender as flexRender2, getCoreRowModel as getCoreRowModel2, useReactTable as useReactTable2 } from "@tanstack/react-table";
|
|
22188
22207
|
import { RefreshCw as RefreshCw4, Users as Users2 } from "lucide-react";
|
|
22189
|
-
import { useTranslations as
|
|
22208
|
+
import { useTranslations as useTranslations110 } from "next-intl";
|
|
22190
22209
|
import { useCallback as useCallback48, useEffect as useEffect71, useState as useState98 } from "react";
|
|
22191
22210
|
|
|
22192
22211
|
// src/features/waitlist/hooks/useWaitlistTableStructure.tsx
|
|
22193
22212
|
import { Send } from "lucide-react";
|
|
22194
|
-
import { useTranslations as
|
|
22213
|
+
import { useTranslations as useTranslations109 } from "next-intl";
|
|
22195
22214
|
import { jsx as jsx263, jsxs as jsxs169 } from "react/jsx-runtime";
|
|
22196
22215
|
function parseQuestionnaire(questionnaire) {
|
|
22197
22216
|
if (!questionnaire) return null;
|
|
@@ -22205,7 +22224,7 @@ __name(parseQuestionnaire, "parseQuestionnaire");
|
|
|
22205
22224
|
function useWaitlistTableStructure({
|
|
22206
22225
|
onInvite
|
|
22207
22226
|
}) {
|
|
22208
|
-
const t =
|
|
22227
|
+
const t = useTranslations109();
|
|
22209
22228
|
const getStatusBadge = /* @__PURE__ */ __name((status) => {
|
|
22210
22229
|
const variants = {
|
|
22211
22230
|
pending: { variant: "secondary" },
|
|
@@ -22283,7 +22302,7 @@ __name(useWaitlistTableStructure, "useWaitlistTableStructure");
|
|
|
22283
22302
|
// src/features/waitlist/components/lists/WaitlistList.tsx
|
|
22284
22303
|
import { jsx as jsx264, jsxs as jsxs170 } from "react/jsx-runtime";
|
|
22285
22304
|
function WaitlistList() {
|
|
22286
|
-
const t =
|
|
22305
|
+
const t = useTranslations110();
|
|
22287
22306
|
const [entries, setEntries] = useState98([]);
|
|
22288
22307
|
const [total, setTotal] = useState98(0);
|
|
22289
22308
|
const [isLoading, setIsLoading] = useState98(true);
|
|
@@ -22356,7 +22375,7 @@ __name(WaitlistList, "WaitlistList");
|
|
|
22356
22375
|
|
|
22357
22376
|
// src/features/rbac/components/RbacContainer.tsx
|
|
22358
22377
|
import { Loader2Icon as Loader2Icon4 } from "lucide-react";
|
|
22359
|
-
import { useTranslations as
|
|
22378
|
+
import { useTranslations as useTranslations112 } from "next-intl";
|
|
22360
22379
|
import { memo as memo2, useCallback as useCallback50, useEffect as useEffect73, useMemo as useMemo36, useRef as useRef40, useState as useState100 } from "react";
|
|
22361
22380
|
|
|
22362
22381
|
// src/features/rbac/components/RbacPermissionCell.tsx
|
|
@@ -22437,7 +22456,7 @@ __name(RbacPermissionCell, "RbacPermissionCell");
|
|
|
22437
22456
|
// src/features/rbac/components/RbacPermissionPicker.tsx
|
|
22438
22457
|
import { Popover as PopoverPrimitive2 } from "@base-ui/react/popover";
|
|
22439
22458
|
import { CheckIcon as CheckIcon10, MinusIcon as MinusIcon3, XIcon as XIcon13 } from "lucide-react";
|
|
22440
|
-
import { useTranslations as
|
|
22459
|
+
import { useTranslations as useTranslations111 } from "next-intl";
|
|
22441
22460
|
import { useCallback as useCallback49, useEffect as useEffect72, useState as useState99 } from "react";
|
|
22442
22461
|
import { Fragment as Fragment55, jsx as jsx266, jsxs as jsxs172 } from "react/jsx-runtime";
|
|
22443
22462
|
function RbacPermissionPicker({
|
|
@@ -22450,7 +22469,7 @@ function RbacPermissionPicker({
|
|
|
22450
22469
|
onClear,
|
|
22451
22470
|
onClose
|
|
22452
22471
|
}) {
|
|
22453
|
-
const t =
|
|
22472
|
+
const t = useTranslations111();
|
|
22454
22473
|
const [customSegment, setCustomSegment] = useState99("");
|
|
22455
22474
|
useEffect72(() => {
|
|
22456
22475
|
if (!open) setCustomSegment("");
|
|
@@ -22648,7 +22667,7 @@ var ModuleEditor = memo2(/* @__PURE__ */ __name(function ModuleEditor2({
|
|
|
22648
22667
|
roleNames,
|
|
22649
22668
|
onOpenPicker
|
|
22650
22669
|
}) {
|
|
22651
|
-
const t =
|
|
22670
|
+
const t = useTranslations112();
|
|
22652
22671
|
const defaultTokens = block.default ?? [];
|
|
22653
22672
|
return /* @__PURE__ */ jsxs173("div", { className: "rounded-lg border border-accent bg-card", children: [
|
|
22654
22673
|
/* @__PURE__ */ jsxs173("div", { className: "flex items-center justify-between border-b px-4 py-2", children: [
|
|
@@ -22698,7 +22717,7 @@ var ModuleEditor = memo2(/* @__PURE__ */ __name(function ModuleEditor2({
|
|
|
22698
22717
|
] });
|
|
22699
22718
|
}, "ModuleEditor"));
|
|
22700
22719
|
function RbacContainer() {
|
|
22701
|
-
const t =
|
|
22720
|
+
const t = useTranslations112();
|
|
22702
22721
|
const { matrix, modulePaths, loading, error, roleNames, moduleNames, updateCell, clearCell } = useRbacContext();
|
|
22703
22722
|
const [selectedModuleId, setSelectedModuleId] = useState100(null);
|
|
22704
22723
|
const [activePicker, setActivePicker] = useState100(null);
|
|
@@ -22811,7 +22830,7 @@ __name(RbacContainer, "RbacContainer");
|
|
|
22811
22830
|
|
|
22812
22831
|
// src/features/rbac/components/RbacByRoleContainer.tsx
|
|
22813
22832
|
import { Loader2Icon as Loader2Icon5 } from "lucide-react";
|
|
22814
|
-
import { useTranslations as
|
|
22833
|
+
import { useTranslations as useTranslations113 } from "next-intl";
|
|
22815
22834
|
import { Fragment as Fragment56, memo as memo3, useCallback as useCallback51, useEffect as useEffect74, useMemo as useMemo37, useRef as useRef41, useState as useState101 } from "react";
|
|
22816
22835
|
import { jsx as jsx268, jsxs as jsxs174 } from "react/jsx-runtime";
|
|
22817
22836
|
function findToken2(tokens, action) {
|
|
@@ -22848,7 +22867,7 @@ var ACTION_LABELS2 = {
|
|
|
22848
22867
|
delete: "Delete"
|
|
22849
22868
|
};
|
|
22850
22869
|
function RbacByRoleContainer() {
|
|
22851
|
-
const t =
|
|
22870
|
+
const t = useTranslations113();
|
|
22852
22871
|
const { matrix, modulePaths, loading, error, roleNames, moduleNames, updateCell, clearCell } = useRbacContext();
|
|
22853
22872
|
const [selectedRoleId, setSelectedRoleId] = useState101(null);
|
|
22854
22873
|
const [activePicker, setActivePicker] = useState101(null);
|
|
@@ -23523,4 +23542,4 @@ export {
|
|
|
23523
23542
|
useOAuthClients,
|
|
23524
23543
|
useOAuthClient
|
|
23525
23544
|
};
|
|
23526
|
-
//# sourceMappingURL=chunk-
|
|
23545
|
+
//# sourceMappingURL=chunk-F54XZKPY.mjs.map
|