@carlonicora/nextjs-jsonapi 3.5.6 → 3.5.7

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.
Files changed (43) hide show
  1. package/dist/{BlockNoteEditor-5T5NB53C.js → BlockNoteEditor-JSZ2YZVY.js} +19 -19
  2. package/dist/{BlockNoteEditor-5T5NB53C.js.map → BlockNoteEditor-JSZ2YZVY.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-HGVFKRAX.mjs → BlockNoteEditor-PZ5HOXFK.mjs} +4 -4
  4. package/dist/billing/index.js +398 -398
  5. package/dist/billing/index.mjs +3 -3
  6. package/dist/{chunk-X2MQ3WHX.js → chunk-B2OB3HQO.js} +7 -7
  7. package/dist/{chunk-X2MQ3WHX.js.map → chunk-B2OB3HQO.js.map} +1 -1
  8. package/dist/{chunk-2ONZSSDW.mjs → chunk-C7I6YFTA.mjs} +175 -177
  9. package/dist/chunk-C7I6YFTA.mjs.map +1 -0
  10. package/dist/{chunk-RZDY4CIF.mjs → chunk-DK5ZOPVF.mjs} +2 -2
  11. package/dist/{chunk-G6B7RZWJ.mjs → chunk-H37WRSBU.mjs} +2 -2
  12. package/dist/chunk-H37WRSBU.mjs.map +1 -0
  13. package/dist/{chunk-YMFHT4AP.js → chunk-N73QMKQU.js} +769 -771
  14. package/dist/chunk-N73QMKQU.js.map +1 -0
  15. package/dist/{chunk-6T6QB6K2.js → chunk-PGA2VC3S.js} +6 -6
  16. package/dist/chunk-PGA2VC3S.js.map +1 -0
  17. package/dist/client/index.js +4 -4
  18. package/dist/client/index.mjs +3 -3
  19. package/dist/components/index.js +4 -4
  20. package/dist/components/index.mjs +3 -3
  21. package/dist/contexts/index.js +4 -4
  22. package/dist/contexts/index.mjs +3 -3
  23. package/dist/core/index.js +2 -2
  24. package/dist/core/index.mjs +1 -1
  25. package/dist/features/help/index.js +37 -37
  26. package/dist/features/help/index.mjs +3 -3
  27. package/dist/features/tokenusage/index.js +101 -101
  28. package/dist/features/tokenusage/index.mjs +3 -3
  29. package/dist/index.js +3 -3
  30. package/dist/index.mjs +2 -2
  31. package/dist/server/index.js +3 -3
  32. package/dist/server/index.mjs +1 -1
  33. package/package.json +1 -1
  34. package/src/components/forms/EntityMultiSelector.tsx +14 -10
  35. package/src/features/how-to/components/containers/HowToContainer.tsx +2 -7
  36. package/src/features/how-to/components/forms/HowToDeleter.tsx +0 -2
  37. package/src/utils/italian-validators.ts +1 -1
  38. package/dist/chunk-2ONZSSDW.mjs.map +0 -1
  39. package/dist/chunk-6T6QB6K2.js.map +0 -1
  40. package/dist/chunk-G6B7RZWJ.mjs.map +0 -1
  41. package/dist/chunk-YMFHT4AP.js.map +0 -1
  42. /package/dist/{BlockNoteEditor-HGVFKRAX.mjs.map → BlockNoteEditor-PZ5HOXFK.mjs.map} +0 -0
  43. /package/dist/{chunk-RZDY4CIF.mjs.map → chunk-DK5ZOPVF.mjs.map} +0 -0
@@ -20,7 +20,7 @@ import {
20
20
  useI18nLocale,
21
21
  useI18nRouter,
22
22
  useI18nTranslations
23
- } from "./chunk-RZDY4CIF.mjs";
23
+ } from "./chunk-DK5ZOPVF.mjs";
24
24
  import {
25
25
  AVAILABLE_OAUTH_SCOPES,
26
26
  AiConnectionService,
@@ -71,7 +71,7 @@ import {
71
71
  useIsMobile,
72
72
  validateItalianTaxCode,
73
73
  validatePartitaIva
74
- } from "./chunk-G6B7RZWJ.mjs";
74
+ } from "./chunk-H37WRSBU.mjs";
75
75
  import {
76
76
  ENV
77
77
  } from "./chunk-RVASYIQG.mjs";
@@ -6515,7 +6515,7 @@ function useHeaderLogo() {
6515
6515
  __name(useHeaderLogo, "useHeaderLogo");
6516
6516
 
6517
6517
  // src/components/navigations/Breadcrumb.tsx
6518
- import { useTranslations as useTranslations52 } from "next-intl";
6518
+ import { useTranslations as useTranslations51 } from "next-intl";
6519
6519
  import { Fragment as Fragment20, useState as useState47 } from "react";
6520
6520
  import { ChevronDownIcon as ChevronDownIcon8 } from "lucide-react";
6521
6521
 
@@ -8517,11 +8517,11 @@ function EntityMultiSelector({
8517
8517
  return selectedValues.map((v) => stableGetFormValueLabel(v)).join(", ");
8518
8518
  }, [selectedValues, stableGetFormValueLabel]);
8519
8519
  return /* @__PURE__ */ jsx68("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx68(FormFieldWrapper, { form, name: id, label, isRequired, description, children: () => /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-2", children: [
8520
- /* @__PURE__ */ jsxs33(Popover, { open, onOpenChange: setOpen, modal: true, children: [
8521
- /* @__PURE__ */ jsx68(PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ jsxs33(
8520
+ /* @__PURE__ */ jsxs33(Popover, { open: disabled ? false : open, onOpenChange: disabled ? void 0 : setOpen, modal: true, children: [
8521
+ /* @__PURE__ */ jsx68(PopoverTrigger, { className: "w-full", disabled, children: /* @__PURE__ */ jsxs33(
8522
8522
  "div",
8523
8523
  {
8524
- className: `bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] flex min-h-7 w-full items-center gap-2 rounded-md border px-2 text-sm md:text-xs/relaxed`,
8524
+ className: `bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] flex min-h-7 w-full items-center gap-2 rounded-md border px-2 text-sm md:text-xs/relaxed ${disabled ? "cursor-not-allowed opacity-50" : ""}`,
8525
8525
  children: [
8526
8526
  selectedValues.length > 0 ? /* @__PURE__ */ jsxs33(Fragment7, { children: [
8527
8527
  /* @__PURE__ */ jsx68("span", { className: "text-foreground min-w-0 flex-1 truncate text-start", children: triggerSummary }),
@@ -8595,7 +8595,7 @@ function EntityMultiSelector({
8595
8595
  className: "h-auto gap-1.5 rounded-md px-2.5 py-1 pe-1.5 text-xs",
8596
8596
  children: [
8597
8597
  stableGetFormValueLabel(value),
8598
- /* @__PURE__ */ jsx68(
8598
+ !disabled && /* @__PURE__ */ jsx68(
8599
8599
  "button",
8600
8600
  {
8601
8601
  type: "button",
@@ -10314,7 +10314,7 @@ import { useRef as useRef17 } from "react";
10314
10314
  import dynamic from "next/dynamic";
10315
10315
  import React18 from "react";
10316
10316
  import { jsx as jsx89 } from "react/jsx-runtime";
10317
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-HGVFKRAX.mjs"), {
10317
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-PZ5HOXFK.mjs"), {
10318
10318
  ssr: false
10319
10319
  });
10320
10320
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -13501,10 +13501,8 @@ var useRoleContext = /* @__PURE__ */ __name(() => {
13501
13501
  }, "useRoleContext");
13502
13502
 
13503
13503
  // src/features/how-to/components/forms/HowToDeleter.tsx
13504
- import { useTranslations as useTranslations45 } from "next-intl";
13505
13504
  import { jsx as jsx147 } from "react/jsx-runtime";
13506
13505
  function HowToDeleterInternal({ howTo }) {
13507
- const t = useTranslations45();
13508
13506
  const generateUrl = usePageUrlGenerator();
13509
13507
  if (!howTo) return null;
13510
13508
  return /* @__PURE__ */ jsx147(
@@ -13525,14 +13523,14 @@ __name(HowToDeleter, "HowToDeleter");
13525
13523
  // src/features/how-to/components/forms/HowToEditor.tsx
13526
13524
  import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
13527
13525
  import { PlusIcon, SearchIcon as SearchIcon6, XIcon as XIcon10 } from "lucide-react";
13528
- import { useTranslations as useTranslations47 } from "next-intl";
13526
+ import { useTranslations as useTranslations46 } from "next-intl";
13529
13527
  import { useCallback as useCallback24, useEffect as useEffect30, useMemo as useMemo18, useRef as useRef24, useState as useState41 } from "react";
13530
13528
  import { useForm as useForm4 } from "react-hook-form";
13531
13529
  import { v4 as v43 } from "uuid";
13532
13530
  import { z as z3 } from "zod";
13533
13531
 
13534
13532
  // src/features/how-to/components/forms/HowToMultiSelector.tsx
13535
- import { useTranslations as useTranslations46 } from "next-intl";
13533
+ import { useTranslations as useTranslations45 } from "next-intl";
13536
13534
  import { jsx as jsx148 } from "react/jsx-runtime";
13537
13535
  function HowToMultiSelector({
13538
13536
  id,
@@ -13543,7 +13541,7 @@ function HowToMultiSelector({
13543
13541
  onChange,
13544
13542
  isRequired = false
13545
13543
  }) {
13546
- const t = useTranslations46();
13544
+ const t = useTranslations45();
13547
13545
  return /* @__PURE__ */ jsx148(
13548
13546
  EntityMultiSelector,
13549
13547
  {
@@ -13644,7 +13642,7 @@ function HowToEditorInternal({
13644
13642
  onDialogOpenChange
13645
13643
  }) {
13646
13644
  const router = useI18nRouter();
13647
- const t = useTranslations47();
13645
+ const t = useTranslations46();
13648
13646
  const formSchema = useMemo18(
13649
13647
  () => z3.object({
13650
13648
  id: z3.string().uuid(),
@@ -13888,13 +13886,13 @@ function HowToEditor(props) {
13888
13886
  __name(HowToEditor, "HowToEditor");
13889
13887
 
13890
13888
  // src/features/how-to/contexts/HowToContext.tsx
13891
- import { useTranslations as useTranslations48 } from "next-intl";
13889
+ import { useTranslations as useTranslations47 } from "next-intl";
13892
13890
  import { createContext as createContext20, useContext as useContext21, useState as useState42 } from "react";
13893
13891
  import { jsx as jsx150 } from "react/jsx-runtime";
13894
13892
  var HowToContext = createContext20(void 0);
13895
13893
  var HowToProvider = /* @__PURE__ */ __name(({ children, dehydratedHowTo }) => {
13896
13894
  const generateUrl = usePageUrlGenerator();
13897
- const t = useTranslations48();
13895
+ const t = useTranslations47();
13898
13896
  const [howTo, setHowTo] = useState42(
13899
13897
  dehydratedHowTo ? rehydrate(Modules.HowTo, dehydratedHowTo) : void 0
13900
13898
  );
@@ -13953,7 +13951,7 @@ var useHowToContext = /* @__PURE__ */ __name(() => {
13953
13951
 
13954
13952
  // src/features/rbac/contexts/RbacContext.tsx
13955
13953
  import { DownloadIcon, Loader2Icon as Loader2Icon3 } from "lucide-react";
13956
- import { useTranslations as useTranslations49 } from "next-intl";
13954
+ import { useTranslations as useTranslations48 } from "next-intl";
13957
13955
  import { createContext as createContext21, useCallback as useCallback25, useContext as useContext22, useEffect as useEffect31, useMemo as useMemo19, useState as useState43 } from "react";
13958
13956
  import { jsx as jsx151, jsxs as jsxs84 } from "react/jsx-runtime";
13959
13957
  var DEFAULT_OUTPUT_PATH = "apps/api/src/rbac/permissions.ts";
@@ -13976,7 +13974,7 @@ var RbacProvider = /* @__PURE__ */ __name(({
13976
13974
  outputPath = DEFAULT_OUTPUT_PATH
13977
13975
  }) => {
13978
13976
  const generateUrl = usePageUrlGenerator();
13979
- const t = useTranslations49();
13977
+ const t = useTranslations48();
13980
13978
  const [matrix, setMatrix] = useState43(null);
13981
13979
  const [modulePaths, setModulePaths] = useState43({});
13982
13980
  const [loading, setLoading] = useState43(true);
@@ -14088,7 +14086,7 @@ var useRbacContext = /* @__PURE__ */ __name(() => {
14088
14086
  }, "useRbacContext");
14089
14087
 
14090
14088
  // src/features/assistant/contexts/AssistantContext.tsx
14091
- import { useTranslations as useTranslations50 } from "next-intl";
14089
+ import { useTranslations as useTranslations49 } from "next-intl";
14092
14090
  import { createContext as createContext22, useCallback as useCallback26, useContext as useContext23, useEffect as useEffect32, useMemo as useMemo20, useState as useState44 } from "react";
14093
14091
  import { jsx as jsx152 } from "react/jsx-runtime";
14094
14092
  var AssistantContext = createContext22(void 0);
@@ -14121,7 +14119,7 @@ function AssistantProvider({
14121
14119
  scope,
14122
14120
  threadUrl
14123
14121
  }) {
14124
- const t = useTranslations50();
14122
+ const t = useTranslations49();
14125
14123
  const generateUrl = usePageUrlGenerator();
14126
14124
  const resolveThreadUrl = useCallback26(
14127
14125
  (id) => threadUrl ? threadUrl(id) : id ? `/assistants/${id}` : "/assistants",
@@ -14334,13 +14332,13 @@ function useAssistantContext() {
14334
14332
  __name(useAssistantContext, "useAssistantContext");
14335
14333
 
14336
14334
  // src/contexts/CommonContext.tsx
14337
- import { useTranslations as useTranslations51 } from "next-intl";
14335
+ import { useTranslations as useTranslations50 } from "next-intl";
14338
14336
  import { createContext as createContext23, useContext as useContext24 } from "react";
14339
14337
  import { jsx as jsx153 } from "react/jsx-runtime";
14340
14338
  var CommonContext = createContext23(void 0);
14341
14339
  var CommonProvider = /* @__PURE__ */ __name(({ children }) => {
14342
14340
  const { company } = useCurrentUserContext();
14343
- const t = useTranslations51();
14341
+ const t = useTranslations50();
14344
14342
  const breadcrumb = /* @__PURE__ */ __name(() => {
14345
14343
  const response = [];
14346
14344
  return response;
@@ -14766,7 +14764,7 @@ function BreadcrumbMobile({
14766
14764
  __name(BreadcrumbMobile, "BreadcrumbMobile");
14767
14765
  function BreadcrumbNavigation({ items, rootLabel }) {
14768
14766
  const generateUrl = usePageUrlGenerator();
14769
- const t = useTranslations52();
14767
+ const t = useTranslations51();
14770
14768
  const isMobile = useIsMobile();
14771
14769
  const root = rootLabel?.trim() ? rootLabel : t(`common.home`);
14772
14770
  if (isMobile) {
@@ -14978,12 +14976,12 @@ __name(PageSection, "PageSection");
14978
14976
  // src/components/navigations/RecentPagesNavigator.tsx
14979
14977
  import { useAtomValue } from "jotai";
14980
14978
  import { HistoryIcon } from "lucide-react";
14981
- import { useTranslations as useTranslations53 } from "next-intl";
14979
+ import { useTranslations as useTranslations52 } from "next-intl";
14982
14980
  import { usePathname as usePathname4 } from "next/navigation";
14983
14981
  import { jsx as jsx162, jsxs as jsxs90 } from "react/jsx-runtime";
14984
14982
  function RecentPagesNavigator() {
14985
14983
  const recentPages = useAtomValue(recentPagesAtom);
14986
- const t = useTranslations53();
14984
+ const t = useTranslations52();
14987
14985
  const { isMobile } = useSidebar();
14988
14986
  const pathname = usePathname4();
14989
14987
  const isCurrentPage = /* @__PURE__ */ __name((url) => !!pathname && (pathname === url || pathname.startsWith(`${url}/`)), "isCurrentPage");
@@ -15068,7 +15066,7 @@ __name(partitionTabs, "partitionTabs");
15068
15066
 
15069
15067
  // src/components/containers/ReactMarkdownContainer.tsx
15070
15068
  import { ChevronDown as ChevronDown2, ChevronUp } from "lucide-react";
15071
- import { useTranslations as useTranslations54 } from "next-intl";
15069
+ import { useTranslations as useTranslations53 } from "next-intl";
15072
15070
  import { useEffect as useEffect40, useRef as useRef27, useState as useState50 } from "react";
15073
15071
  import ReactMarkdown from "react-markdown";
15074
15072
  import remarkGfm from "remark-gfm";
@@ -15079,7 +15077,7 @@ function ReactMarkdownContainer({
15079
15077
  initialLines = 4,
15080
15078
  size = "normal"
15081
15079
  }) {
15082
- const t = useTranslations54("ui.buttons");
15080
+ const t = useTranslations53("ui.buttons");
15083
15081
  const [isExpanded, setIsExpanded] = useState50(false);
15084
15082
  const [showExpandButton, setShowExpandButton] = useState50(false);
15085
15083
  const contentRef = useRef27(null);
@@ -15638,10 +15636,10 @@ function TabsContainer({
15638
15636
  __name(TabsContainer, "TabsContainer");
15639
15637
 
15640
15638
  // src/components/details/AllowedUsersDetails.tsx
15641
- import { useTranslations as useTranslations55 } from "next-intl";
15639
+ import { useTranslations as useTranslations54 } from "next-intl";
15642
15640
  import { jsx as jsx168, jsxs as jsxs96 } from "react/jsx-runtime";
15643
15641
  function AllowedUsersDetails({ showTitle, content }) {
15644
- const t = useTranslations55();
15642
+ const t = useTranslations54();
15645
15643
  return /* @__PURE__ */ jsxs96("div", { className: "mb-2 flex w-full flex-col gap-y-2", children: [
15646
15644
  showTitle && /* @__PURE__ */ jsx168("h3", { className: "text-xs font-semibold", children: t("common.permissions") }),
15647
15645
  /* @__PURE__ */ jsx168("div", { className: "flex w-full items-center justify-start gap-x-4", children: /* @__PURE__ */ jsx168(ContributorsList, { content }) })
@@ -16348,11 +16346,11 @@ function useRehydrationList(classKey, data) {
16348
16346
  __name(useRehydrationList, "useRehydrationList");
16349
16347
 
16350
16348
  // src/features/company/hooks/useCompanyTableStructure.tsx
16351
- import { useTranslations as useTranslations56 } from "next-intl";
16349
+ import { useTranslations as useTranslations55 } from "next-intl";
16352
16350
  import { useMemo as useMemo26 } from "react";
16353
16351
  import { jsx as jsx181 } from "react/jsx-runtime";
16354
16352
  var useCompanyTableStructure = /* @__PURE__ */ __name((params) => {
16355
- const t = useTranslations56();
16353
+ const t = useTranslations55();
16356
16354
  const generateUrl = usePageUrlGenerator();
16357
16355
  const { hasRole } = useCurrentUserContext();
16358
16356
  const tableData = useMemo26(() => {
@@ -16481,11 +16479,11 @@ function useSubscriptionStatus() {
16481
16479
  __name(useSubscriptionStatus, "useSubscriptionStatus");
16482
16480
 
16483
16481
  // src/features/role/hooks/useRoleTableStructure.tsx
16484
- import { useTranslations as useTranslations57 } from "next-intl";
16482
+ import { useTranslations as useTranslations56 } from "next-intl";
16485
16483
  import { useMemo as useMemo28 } from "react";
16486
16484
  import { Fragment as Fragment26, jsx as jsx182 } from "react/jsx-runtime";
16487
16485
  var useRoleTableStructure = /* @__PURE__ */ __name((params) => {
16488
- const t = useTranslations57();
16486
+ const t = useTranslations56();
16489
16487
  const generateUrl = usePageUrlGenerator();
16490
16488
  const tableData = useMemo28(() => {
16491
16489
  return params.data.map((role) => {
@@ -16536,7 +16534,7 @@ var useRoleTableStructure = /* @__PURE__ */ __name((params) => {
16536
16534
  }, "useRoleTableStructure");
16537
16535
 
16538
16536
  // src/features/billing/stripe-price/hooks/useStripePriceTableStructure.tsx
16539
- import { useTranslations as useTranslations58 } from "next-intl";
16537
+ import { useTranslations as useTranslations57 } from "next-intl";
16540
16538
  import { useMemo as useMemo29 } from "react";
16541
16539
 
16542
16540
  // src/features/billing/components/utils/currency.ts
@@ -16572,7 +16570,7 @@ __name(formatCurrency, "formatCurrency");
16572
16570
  // src/features/billing/stripe-price/hooks/useStripePriceTableStructure.tsx
16573
16571
  import { jsx as jsx183, jsxs as jsxs100 } from "react/jsx-runtime";
16574
16572
  var useStripePriceTableStructure = /* @__PURE__ */ __name((params) => {
16575
- const t = useTranslations58();
16573
+ const t = useTranslations57();
16576
16574
  const generateUrl = usePageUrlGenerator();
16577
16575
  const tableData = useMemo29(() => {
16578
16576
  return params.data.map((price) => {
@@ -16653,11 +16651,11 @@ var useStripePriceTableStructure = /* @__PURE__ */ __name((params) => {
16653
16651
  registerTableGenerator("stripe-prices", useStripePriceTableStructure);
16654
16652
 
16655
16653
  // src/features/billing/stripe-product/hooks/useStripeProductTableStructure.tsx
16656
- import { useTranslations as useTranslations59 } from "next-intl";
16654
+ import { useTranslations as useTranslations58 } from "next-intl";
16657
16655
  import { useMemo as useMemo30 } from "react";
16658
16656
  import { jsx as jsx184 } from "react/jsx-runtime";
16659
16657
  var useStripeProductTableStructure = /* @__PURE__ */ __name((params) => {
16660
- const t = useTranslations59();
16658
+ const t = useTranslations58();
16661
16659
  const generateUrl = usePageUrlGenerator();
16662
16660
  const tableData = useMemo30(() => {
16663
16661
  return params.data.map((product) => {
@@ -16712,11 +16710,11 @@ var useStripeProductTableStructure = /* @__PURE__ */ __name((params) => {
16712
16710
  registerTableGenerator("stripe-products", useStripeProductTableStructure);
16713
16711
 
16714
16712
  // src/features/content/hooks/useContentTableStructure.tsx
16715
- import { useTranslations as useTranslations60 } from "next-intl";
16713
+ import { useTranslations as useTranslations59 } from "next-intl";
16716
16714
  import { useMemo as useMemo31 } from "react";
16717
16715
  import { Fragment as Fragment27, jsx as jsx185, jsxs as jsxs101 } from "react/jsx-runtime";
16718
16716
  var useContentTableStructure = /* @__PURE__ */ __name((params) => {
16719
- const t = useTranslations60();
16717
+ const t = useTranslations59();
16720
16718
  const generateUrl = usePageUrlGenerator();
16721
16719
  const tableData = useMemo31(() => {
16722
16720
  return params.data.map((content) => {
@@ -17113,16 +17111,16 @@ registerTableGenerator("stripe-prices", useStripePriceTableStructure);
17113
17111
  // src/components/tables/ContentListTable.tsx
17114
17112
  import { flexRender, getCoreRowModel, getExpandedRowModel, useReactTable } from "@tanstack/react-table";
17115
17113
  import { ChevronLeft, ChevronRight, Loader2 as Loader23 } from "lucide-react";
17116
- import { useTranslations as useTranslations62 } from "next-intl";
17114
+ import { useTranslations as useTranslations61 } from "next-intl";
17117
17115
  import React31, { memo, useMemo as useMemo32, useState as useState60 } from "react";
17118
17116
 
17119
17117
  // src/components/tables/ContentTableSearch.tsx
17120
17118
  import { RefreshCw, Search, X as X3 } from "lucide-react";
17121
- import { useTranslations as useTranslations61 } from "next-intl";
17119
+ import { useTranslations as useTranslations60 } from "next-intl";
17122
17120
  import { useCallback as useCallback35, useEffect as useEffect50, useRef as useRef31, useState as useState59 } from "react";
17123
17121
  import { jsx as jsx186, jsxs as jsxs102 } from "react/jsx-runtime";
17124
17122
  function ContentTableSearch({ data }) {
17125
- const t = useTranslations61();
17123
+ const t = useTranslations60();
17126
17124
  const searchTermRef = useRef31("");
17127
17125
  const inputRef = useRef31(null);
17128
17126
  const [searchTerm, setSearchTerm] = useState59("");
@@ -17236,7 +17234,7 @@ function getGroupKeys(item, field) {
17236
17234
  __name(getGroupKeys, "getGroupKeys");
17237
17235
  var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(props) {
17238
17236
  const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth, onRowClick } = props;
17239
- const t = useTranslations62();
17237
+ const t = useTranslations61();
17240
17238
  const [expanded, setExpanded] = useState60(
17241
17239
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
17242
17240
  );
@@ -17458,12 +17456,12 @@ function ContentListGrid(props) {
17458
17456
  __name(ContentListGrid, "ContentListGrid");
17459
17457
 
17460
17458
  // src/components/fiscal/ItalianFiscalData.tsx
17461
- import { useTranslations as useTranslations63 } from "next-intl";
17459
+ import { useTranslations as useTranslations62 } from "next-intl";
17462
17460
  import { forwardRef as forwardRef8, useCallback as useCallback36, useImperativeHandle as useImperativeHandle2, useRef as useRef33, useState as useState61 } from "react";
17463
17461
  import { z as z4 } from "zod";
17464
17462
  import { jsx as jsx189, jsxs as jsxs105 } from "react/jsx-runtime";
17465
17463
  var ItalianFiscalData = forwardRef8(/* @__PURE__ */ __name(function ItalianFiscalData2({ initialData }, ref) {
17466
- const t = useTranslations63();
17464
+ const t = useTranslations62();
17467
17465
  const initialRef = useRef33(initialData);
17468
17466
  const [fiscalData, setFiscalData] = useState61(initialData);
17469
17467
  const fiscalDataRef = useRef33(initialData);
@@ -17665,7 +17663,7 @@ import { createContext as createContext25, useContext as useContext26, useMemo a
17665
17663
  // src/features/auth/components/forms/Register.tsx
17666
17664
  import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
17667
17665
  import { Loader2 as Loader24 } from "lucide-react";
17668
- import { useTranslations as useTranslations65 } from "next-intl";
17666
+ import { useTranslations as useTranslations64 } from "next-intl";
17669
17667
  import Image7 from "next/image";
17670
17668
  import { useSearchParams as useSearchParams2 } from "next/navigation";
17671
17669
  import { useEffect as useEffect52, useState as useState62 } from "react";
@@ -17674,14 +17672,14 @@ import { v4 as v45 } from "uuid";
17674
17672
  import { z as z5 } from "zod";
17675
17673
 
17676
17674
  // src/features/auth/components/GdprConsentSection.tsx
17677
- import { useTranslations as useTranslations64 } from "next-intl";
17675
+ import { useTranslations as useTranslations63 } from "next-intl";
17678
17676
  import { Fragment as Fragment30, jsx as jsx195, jsxs as jsxs109 } from "react/jsx-runtime";
17679
17677
  function GdprConsentSection({
17680
17678
  form,
17681
17679
  termsCheckboxId = "termsAccepted",
17682
17680
  marketingCheckboxId = "marketingConsent"
17683
17681
  }) {
17684
- const t = useTranslations64("auth.gdpr");
17682
+ const t = useTranslations63("auth.gdpr");
17685
17683
  const termsLabel = /* @__PURE__ */ jsxs109(Fragment30, { children: [
17686
17684
  t("terms_prefix"),
17687
17685
  " ",
@@ -17734,7 +17732,7 @@ function buildOAuthQueryParams(inviteCode, referralCode) {
17734
17732
  }
17735
17733
  __name(buildOAuthQueryParams, "buildOAuthQueryParams");
17736
17734
  function Register() {
17737
- const t = useTranslations65();
17735
+ const t = useTranslations64();
17738
17736
  const { setComponentType } = useAuthContext();
17739
17737
  const searchParams = useSearchParams2();
17740
17738
  const inviteCode = searchParams.get("invite");
@@ -18079,17 +18077,17 @@ __name(InnerAuthContainer, "InnerAuthContainer");
18079
18077
 
18080
18078
  // src/features/auth/components/two-factor/TwoFactorSettings.tsx
18081
18079
  import { ShieldAlert, ShieldCheck } from "lucide-react";
18082
- import { useTranslations as useTranslations72 } from "next-intl";
18080
+ import { useTranslations as useTranslations71 } from "next-intl";
18083
18081
  import { useCallback as useCallback37, useEffect as useEffect54, useState as useState71 } from "react";
18084
18082
  import { v4 as v48 } from "uuid";
18085
18083
 
18086
18084
  // src/features/auth/components/two-factor/BackupCodesDialog.tsx
18087
18085
  import { Copy, Download, RefreshCw as RefreshCw2 } from "lucide-react";
18088
- import { useTranslations as useTranslations66 } from "next-intl";
18086
+ import { useTranslations as useTranslations65 } from "next-intl";
18089
18087
  import { useState as useState64 } from "react";
18090
18088
  import { jsx as jsx199, jsxs as jsxs111 } from "react/jsx-runtime";
18091
18089
  function BackupCodesDialog({ remainingCodes, onRegenerate, trigger }) {
18092
- const t = useTranslations66();
18090
+ const t = useTranslations65();
18093
18091
  const [open, setOpen] = useState64(false);
18094
18092
  const [codes, setCodes] = useState64([]);
18095
18093
  const [isLoading, setIsLoading] = useState64(false);
@@ -18187,7 +18185,7 @@ Keep these codes safe. Each code can only be used once.`;
18187
18185
  __name(BackupCodesDialog, "BackupCodesDialog");
18188
18186
 
18189
18187
  // src/features/auth/components/two-factor/DisableTwoFactorDialog.tsx
18190
- import { useTranslations as useTranslations67 } from "next-intl";
18188
+ import { useTranslations as useTranslations66 } from "next-intl";
18191
18189
  import { useState as useState66 } from "react";
18192
18190
 
18193
18191
  // src/features/auth/components/two-factor/TotpInput.tsx
@@ -18257,7 +18255,7 @@ __name(TotpInput, "TotpInput");
18257
18255
  // src/features/auth/components/two-factor/DisableTwoFactorDialog.tsx
18258
18256
  import { jsx as jsx201, jsxs as jsxs113 } from "react/jsx-runtime";
18259
18257
  function DisableTwoFactorDialog({ onSuccess, trigger }) {
18260
- const t = useTranslations67();
18258
+ const t = useTranslations66();
18261
18259
  const [open, setOpen] = useState66(false);
18262
18260
  const [isLoading, setIsLoading] = useState66(false);
18263
18261
  const [error, setError] = useState66();
@@ -18300,11 +18298,11 @@ __name(DisableTwoFactorDialog, "DisableTwoFactorDialog");
18300
18298
 
18301
18299
  // src/features/auth/components/two-factor/PasskeyList.tsx
18302
18300
  import { Edit, Key, Trash2 } from "lucide-react";
18303
- import { useTranslations as useTranslations68 } from "next-intl";
18301
+ import { useTranslations as useTranslations67 } from "next-intl";
18304
18302
  import { useState as useState67 } from "react";
18305
18303
  import { Fragment as Fragment32, jsx as jsx202, jsxs as jsxs114 } from "react/jsx-runtime";
18306
18304
  function PasskeyList({ passkeys, onRefresh }) {
18307
- const t = useTranslations68();
18305
+ const t = useTranslations67();
18308
18306
  const [renameDialogOpen, setRenameDialogOpen] = useState67(false);
18309
18307
  const [selectedPasskey, setSelectedPasskey] = useState67(null);
18310
18308
  const [newName, setNewName] = useState67("");
@@ -18421,12 +18419,12 @@ __name(PasskeyList, "PasskeyList");
18421
18419
 
18422
18420
  // src/features/auth/components/two-factor/PasskeySetupDialog.tsx
18423
18421
  import { startRegistration } from "@simplewebauthn/browser";
18424
- import { useTranslations as useTranslations69 } from "next-intl";
18422
+ import { useTranslations as useTranslations68 } from "next-intl";
18425
18423
  import { useState as useState68 } from "react";
18426
18424
  import { v4 as v46 } from "uuid";
18427
18425
  import { jsx as jsx203, jsxs as jsxs115 } from "react/jsx-runtime";
18428
18426
  function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
18429
- const t = useTranslations69();
18427
+ const t = useTranslations68();
18430
18428
  const { currentUser } = useCurrentUserContext();
18431
18429
  const [name, setName] = useState68("");
18432
18430
  const [isLoading, setIsLoading] = useState68(false);
@@ -18492,11 +18490,11 @@ __name(PasskeySetupDialog, "PasskeySetupDialog");
18492
18490
 
18493
18491
  // src/features/auth/components/two-factor/TotpAuthenticatorList.tsx
18494
18492
  import { Smartphone, Trash2 as Trash22 } from "lucide-react";
18495
- import { useTranslations as useTranslations70 } from "next-intl";
18493
+ import { useTranslations as useTranslations69 } from "next-intl";
18496
18494
  import { useState as useState69 } from "react";
18497
18495
  import { jsx as jsx204, jsxs as jsxs116 } from "react/jsx-runtime";
18498
18496
  function TotpAuthenticatorList({ authenticators, onDelete }) {
18499
- const t = useTranslations70();
18497
+ const t = useTranslations69();
18500
18498
  const [deletingId, setDeletingId] = useState69(null);
18501
18499
  const handleDelete = /* @__PURE__ */ __name(async (id) => {
18502
18500
  setDeletingId(id);
@@ -18566,13 +18564,13 @@ function TotpAuthenticatorList({ authenticators, onDelete }) {
18566
18564
  __name(TotpAuthenticatorList, "TotpAuthenticatorList");
18567
18565
 
18568
18566
  // src/features/auth/components/two-factor/TotpSetupDialog.tsx
18569
- import { useTranslations as useTranslations71 } from "next-intl";
18567
+ import { useTranslations as useTranslations70 } from "next-intl";
18570
18568
  import { QRCodeSVG } from "qrcode.react";
18571
18569
  import { useState as useState70 } from "react";
18572
18570
  import { v4 as v47 } from "uuid";
18573
18571
  import { jsx as jsx205, jsxs as jsxs117 } from "react/jsx-runtime";
18574
18572
  function TotpSetupDialog({ onSuccess, trigger }) {
18575
- const t = useTranslations71();
18573
+ const t = useTranslations70();
18576
18574
  const { currentUser } = useCurrentUserContext();
18577
18575
  const [open, setOpen] = useState70(false);
18578
18576
  const [step, setStep] = useState70("name");
@@ -18677,7 +18675,7 @@ __name(TotpSetupDialog, "TotpSetupDialog");
18677
18675
  // src/features/auth/components/two-factor/TwoFactorSettings.tsx
18678
18676
  import { Fragment as Fragment33, jsx as jsx206, jsxs as jsxs118 } from "react/jsx-runtime";
18679
18677
  function TwoFactorSettings() {
18680
- const t = useTranslations72();
18678
+ const t = useTranslations71();
18681
18679
  const [status, setStatus] = useState71(null);
18682
18680
  const [authenticators, setAuthenticators] = useState71([]);
18683
18681
  const [passkeys, setPasskeys] = useState71([]);
@@ -18795,7 +18793,7 @@ function SecurityContainer() {
18795
18793
  __name(SecurityContainer, "SecurityContainer");
18796
18794
 
18797
18795
  // src/features/auth/components/details/LandingComponent.tsx
18798
- import { useTranslations as useTranslations73 } from "next-intl";
18796
+ import { useTranslations as useTranslations72 } from "next-intl";
18799
18797
  import Image9 from "next/image";
18800
18798
 
18801
18799
  // src/features/auth/components/buttons/GoogleSignInButton.tsx
@@ -18856,7 +18854,7 @@ __name(GoogleSignInButton, "GoogleSignInButton");
18856
18854
  // src/features/auth/components/details/LandingComponent.tsx
18857
18855
  import { Fragment as Fragment34, jsx as jsx209, jsxs as jsxs120 } from "react/jsx-runtime";
18858
18856
  function LandingComponent() {
18859
- const t = useTranslations73();
18857
+ const t = useTranslations72();
18860
18858
  const { setComponentType } = useAuthContext();
18861
18859
  return /* @__PURE__ */ jsxs120(Fragment34, { children: [
18862
18860
  /* @__PURE__ */ jsxs120(CardHeader, { className: "mb-4", "data-testid": "page-pre-login-container", children: [
@@ -18888,7 +18886,7 @@ __name(LandingComponent, "LandingComponent");
18888
18886
 
18889
18887
  // src/features/auth/components/forms/AcceptInvitation.tsx
18890
18888
  import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
18891
- import { useTranslations as useTranslations74 } from "next-intl";
18889
+ import { useTranslations as useTranslations73 } from "next-intl";
18892
18890
  import Image10 from "next/image";
18893
18891
  import { useEffect as useEffect55, useState as useState72 } from "react";
18894
18892
  import { useForm as useForm6 } from "react-hook-form";
@@ -18898,7 +18896,7 @@ function AcceptInvitation() {
18898
18896
  const { setComponentType, params, setParams } = useAuthContext();
18899
18897
  const [showConfirmation, setShowConfirmation] = useState72(false);
18900
18898
  const [error, setError] = useState72(void 0);
18901
- const t = useTranslations74();
18899
+ const t = useTranslations73();
18902
18900
  useEffect55(() => {
18903
18901
  async function validateCode(code) {
18904
18902
  try {
@@ -18990,7 +18988,7 @@ function AcceptInvitation() {
18990
18988
  __name(AcceptInvitation, "AcceptInvitation");
18991
18989
 
18992
18990
  // src/features/auth/components/forms/ActivateAccount.tsx
18993
- import { useTranslations as useTranslations75 } from "next-intl";
18991
+ import { useTranslations as useTranslations74 } from "next-intl";
18994
18992
  import Image11 from "next/image";
18995
18993
  import { useEffect as useEffect56, useState as useState73 } from "react";
18996
18994
  import { Fragment as Fragment36, jsx as jsx211, jsxs as jsxs122 } from "react/jsx-runtime";
@@ -18998,7 +18996,7 @@ function ActivateAccount() {
18998
18996
  const { setComponentType, params, setParams } = useAuthContext();
18999
18997
  const [showConfirmation, setShowConfirmation] = useState73(false);
19000
18998
  const [error, setError] = useState73(void 0);
19001
- const t = useTranslations75();
18999
+ const t = useTranslations74();
19002
19000
  useEffect56(() => {
19003
19001
  async function ActivateAccount2(code) {
19004
19002
  try {
@@ -19066,14 +19064,14 @@ __name(Cookies, "Cookies");
19066
19064
 
19067
19065
  // src/features/auth/components/forms/ForgotPassword.tsx
19068
19066
  import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
19069
- import { useTranslations as useTranslations76 } from "next-intl";
19067
+ import { useTranslations as useTranslations75 } from "next-intl";
19070
19068
  import Image12 from "next/image";
19071
19069
  import { useState as useState75 } from "react";
19072
19070
  import { useForm as useForm7 } from "react-hook-form";
19073
19071
  import { z as z7 } from "zod";
19074
19072
  import { Fragment as Fragment37, jsx as jsx212, jsxs as jsxs123 } from "react/jsx-runtime";
19075
19073
  function ForgotPassword() {
19076
- const t = useTranslations76();
19074
+ const t = useTranslations75();
19077
19075
  const { setComponentType } = useAuthContext();
19078
19076
  const [showConfirmation, setShowConfirmation] = useState75(false);
19079
19077
  const formSchema = z7.object({
@@ -19137,7 +19135,7 @@ __name(ForgotPassword, "ForgotPassword");
19137
19135
 
19138
19136
  // src/features/auth/components/forms/Login.tsx
19139
19137
  import { zodResolver as zodResolver8 } from "@hookform/resolvers/zod";
19140
- import { useTranslations as useTranslations77 } from "next-intl";
19138
+ import { useTranslations as useTranslations76 } from "next-intl";
19141
19139
  import Image13 from "next/image";
19142
19140
  import { useRouter, useSearchParams as useSearchParams3 } from "next/navigation";
19143
19141
  import { useEffect as useEffect58, useState as useState76 } from "react";
@@ -19145,7 +19143,7 @@ import { useForm as useForm8 } from "react-hook-form";
19145
19143
  import { z as z8 } from "zod";
19146
19144
  import { Fragment as Fragment38, jsx as jsx213, jsxs as jsxs124 } from "react/jsx-runtime";
19147
19145
  function Login() {
19148
- const t = useTranslations77();
19146
+ const t = useTranslations76();
19149
19147
  const { setUser } = useCurrentUserContext();
19150
19148
  const { setComponentType, setPendingTwoFactor } = useAuthContext();
19151
19149
  const generateUrl = usePageUrlGenerator();
@@ -19332,7 +19330,7 @@ __name(RefreshUser, "RefreshUser");
19332
19330
 
19333
19331
  // src/features/auth/components/forms/ResetPassword.tsx
19334
19332
  import { zodResolver as zodResolver9 } from "@hookform/resolvers/zod";
19335
- import { useTranslations as useTranslations78 } from "next-intl";
19333
+ import { useTranslations as useTranslations77 } from "next-intl";
19336
19334
  import Image14 from "next/image";
19337
19335
  import { useEffect as useEffect61, useState as useState77 } from "react";
19338
19336
  import { useForm as useForm9 } from "react-hook-form";
@@ -19342,7 +19340,7 @@ function ResetPassword() {
19342
19340
  const { setComponentType, params, setParams } = useAuthContext();
19343
19341
  const [showConfirmation, setShowConfirmation] = useState77(false);
19344
19342
  const [error, setError] = useState77(void 0);
19345
- const t = useTranslations78();
19343
+ const t = useTranslations77();
19346
19344
  useEffect61(() => {
19347
19345
  async function validateResetPasswordCode(code) {
19348
19346
  try {
@@ -19418,19 +19416,19 @@ function ResetPassword() {
19418
19416
  __name(ResetPassword, "ResetPassword");
19419
19417
 
19420
19418
  // src/features/auth/components/forms/TwoFactorChallenge.tsx
19421
- import { useTranslations as useTranslations80 } from "next-intl";
19419
+ import { useTranslations as useTranslations79 } from "next-intl";
19422
19420
  import { useRouter as useRouter2, useSearchParams as useSearchParams4 } from "next/navigation";
19423
19421
  import { useState as useState79 } from "react";
19424
19422
  import { v4 as v410 } from "uuid";
19425
19423
 
19426
19424
  // src/features/auth/components/two-factor/PasskeyButton.tsx
19427
19425
  import { startAuthentication } from "@simplewebauthn/browser";
19428
- import { useTranslations as useTranslations79 } from "next-intl";
19426
+ import { useTranslations as useTranslations78 } from "next-intl";
19429
19427
  import { useState as useState78 } from "react";
19430
19428
  import { v4 as v49 } from "uuid";
19431
19429
  import { jsx as jsx216 } from "react/jsx-runtime";
19432
19430
  function PasskeyButton({ pendingToken, onSuccess, onError, disabled = false }) {
19433
- const t = useTranslations79();
19431
+ const t = useTranslations78();
19434
19432
  const [isLoading, setIsLoading] = useState78(false);
19435
19433
  const handleClick = /* @__PURE__ */ __name(async () => {
19436
19434
  setIsLoading(true);
@@ -19468,7 +19466,7 @@ __name(PasskeyButton, "PasskeyButton");
19468
19466
  // src/features/auth/components/forms/TwoFactorChallenge.tsx
19469
19467
  import { Fragment as Fragment41, jsx as jsx217, jsxs as jsxs126 } from "react/jsx-runtime";
19470
19468
  function TwoFactorChallenge() {
19471
- const t = useTranslations80();
19469
+ const t = useTranslations79();
19472
19470
  const { setUser } = useCurrentUserContext();
19473
19471
  const { pendingTwoFactor, setPendingTwoFactor } = useAuthContext();
19474
19472
  const generateUrl = usePageUrlGenerator();
@@ -19606,7 +19604,7 @@ __name(TwoFactorChallenge, "TwoFactorChallenge");
19606
19604
 
19607
19605
  // src/features/administration/components/AdminIndexContainer.tsx
19608
19606
  import { Building2Icon, CoinsIcon, CreditCardIcon, PlugZapIcon, ShieldCheckIcon, UsersIcon } from "lucide-react";
19609
- import { useTranslations as useTranslations81 } from "next-intl";
19607
+ import { useTranslations as useTranslations80 } from "next-intl";
19610
19608
  import { jsx as jsx218, jsxs as jsxs127 } from "react/jsx-runtime";
19611
19609
  var PLATFORM_SECTIONS = [
19612
19610
  {
@@ -19656,7 +19654,7 @@ var BILLING_SECTION = {
19656
19654
  href: "/administration/products"
19657
19655
  };
19658
19656
  function AdminIndexGrid({ additionalGroups = [], hiddenSections = [] }) {
19659
- const t = useTranslations81();
19657
+ const t = useTranslations80();
19660
19658
  const available = getStripePublishableKey() ? [...PLATFORM_SECTIONS, BILLING_SECTION] : PLATFORM_SECTIONS;
19661
19659
  const platformGroup = {
19662
19660
  key: "platform",
@@ -19764,7 +19762,7 @@ var AI_CONNECTIONS_I18N_KEYS = [
19764
19762
  ];
19765
19763
 
19766
19764
  // src/features/ai-connection/contexts/AiConnectionsContext.tsx
19767
- import { useTranslations as useTranslations82 } from "next-intl";
19765
+ import { useTranslations as useTranslations81 } from "next-intl";
19768
19766
  import { createContext as createContext26, useCallback as useCallback38, useContext as useContext27, useEffect as useEffect62, useMemo as useMemo34, useState as useState80 } from "react";
19769
19767
  import { jsx as jsx219 } from "react/jsx-runtime";
19770
19768
  var AI_CONNECTIONS_ADMIN_PAGE_URL = "/administration/ai-connections";
@@ -19781,7 +19779,7 @@ var defaultContextValue3 = {
19781
19779
  };
19782
19780
  var AiConnectionsContext = createContext26(void 0);
19783
19781
  var AiConnectionsProvider = /* @__PURE__ */ __name(({ children }) => {
19784
- const t = useTranslations82();
19782
+ const t = useTranslations81();
19785
19783
  const generateUrl = usePageUrlGenerator();
19786
19784
  const [connections, setConnections] = useState80([]);
19787
19785
  const [providerRegistry, setProviderRegistry] = useState80({});
@@ -19825,21 +19823,21 @@ var AiConnectionsProvider = /* @__PURE__ */ __name(({ children }) => {
19825
19823
  var useAiConnections = /* @__PURE__ */ __name(() => useContext27(AiConnectionsContext) ?? defaultContextValue3, "useAiConnections");
19826
19824
 
19827
19825
  // src/features/ai-connection/components/containers/AiConnectionsContainer.tsx
19828
- import { useTranslations as useTranslations86 } from "next-intl";
19826
+ import { useTranslations as useTranslations85 } from "next-intl";
19829
19827
  import { useEffect as useEffect64, useMemo as useMemo37, useState as useState82 } from "react";
19830
19828
 
19831
19829
  // src/features/ai-connection/components/lists/AiConnectionTypeCard.tsx
19832
19830
  import { ChevronDownIcon as ChevronDownIcon10, ChevronUpIcon as ChevronUpIcon3, PlusIcon as PlusIcon2 } from "lucide-react";
19833
- import { useTranslations as useTranslations85 } from "next-intl";
19831
+ import { useTranslations as useTranslations84 } from "next-intl";
19834
19832
  import { useMemo as useMemo36 } from "react";
19835
19833
 
19836
19834
  // src/features/ai-connection/components/forms/AiConnectionDeleter.tsx
19837
19835
  import { TrashIcon } from "lucide-react";
19838
- import { useTranslations as useTranslations83 } from "next-intl";
19836
+ import { useTranslations as useTranslations82 } from "next-intl";
19839
19837
  import { useState as useState81 } from "react";
19840
19838
  import { Fragment as Fragment42, jsx as jsx220, jsxs as jsxs128 } from "react/jsx-runtime";
19841
19839
  function AiConnectionDeleter({ connection }) {
19842
- const t = useTranslations83();
19840
+ const t = useTranslations82();
19843
19841
  const { refresh } = useAiConnections();
19844
19842
  const [open, setOpen] = useState81(false);
19845
19843
  return /* @__PURE__ */ jsxs128(Fragment42, { children: [
@@ -19881,7 +19879,7 @@ __name(AiConnectionDeleter, "AiConnectionDeleter");
19881
19879
 
19882
19880
  // src/features/ai-connection/components/forms/AiConnectionEditor.tsx
19883
19881
  import { zodResolver as zodResolver10 } from "@hookform/resolvers/zod";
19884
- import { useTranslations as useTranslations84 } from "next-intl";
19882
+ import { useTranslations as useTranslations83 } from "next-intl";
19885
19883
  import { useCallback as useCallback39, useEffect as useEffect63, useMemo as useMemo35 } from "react";
19886
19884
  import { useForm as useForm10 } from "react-hook-form";
19887
19885
  import { v4 as v411 } from "uuid";
@@ -19903,7 +19901,7 @@ function AiConnectionEditor({
19903
19901
  forceShow,
19904
19902
  onClose
19905
19903
  }) {
19906
- const t = useTranslations84();
19904
+ const t = useTranslations83();
19907
19905
  const { providerRegistry, refresh } = useAiConnections();
19908
19906
  const isEdit = !!connection;
19909
19907
  const registryRows = useMemo35(() => providerRegistry[connectionType] ?? [], [providerRegistry, connectionType]);
@@ -20153,7 +20151,7 @@ function toInput(connection, overrides) {
20153
20151
  }
20154
20152
  __name(toInput, "toInput");
20155
20153
  function AiConnectionTypeCard({ connectionType }) {
20156
- const t = useTranslations85();
20154
+ const t = useTranslations84();
20157
20155
  const { connections, envDefaults, scopeCompanyId, refresh } = useAiConnections();
20158
20156
  const rows = useMemo36(
20159
20157
  () => connections.filter(
@@ -20308,7 +20306,7 @@ function AiConnectionsContainer() {
20308
20306
  }
20309
20307
  __name(AiConnectionsContainer, "AiConnectionsContainer");
20310
20308
  function AiConnectionsBody() {
20311
- const t = useTranslations86();
20309
+ const t = useTranslations85();
20312
20310
  const { scopeCompanyId, setScopeCompanyId } = useAiConnections();
20313
20311
  const [companies, setCompanies] = useState82([]);
20314
20312
  useEffect64(() => {
@@ -20351,10 +20349,10 @@ function AiConnectionsBody() {
20351
20349
  __name(AiConnectionsBody, "AiConnectionsBody");
20352
20350
 
20353
20351
  // src/features/content/components/lists/ContentsList.tsx
20354
- import { useTranslations as useTranslations87 } from "next-intl";
20352
+ import { useTranslations as useTranslations86 } from "next-intl";
20355
20353
  import { jsx as jsx224, jsxs as jsxs132 } from "react/jsx-runtime";
20356
20354
  function ContentsList({ contentList }) {
20357
- const t = useTranslations87();
20355
+ const t = useTranslations86();
20358
20356
  return /* @__PURE__ */ jsxs132("div", { className: "flex min-h-0 w-full flex-col overflow-y-auto", children: [
20359
20357
  /* @__PURE__ */ jsx224(SectionHeader, { level: 2, children: t(`content.news`) }),
20360
20358
  /* @__PURE__ */ jsx224("div", { className: "flex flex-col", children: contentList.map((content) => /* @__PURE__ */ jsx224(ContentsListElement, { content }, content.id)) })
@@ -20382,10 +20380,10 @@ function ContentsListElement({ content }) {
20382
20380
  __name(ContentsListElement, "ContentsListElement");
20383
20381
 
20384
20382
  // src/features/content/components/lists/ContentsListById.tsx
20385
- import { useTranslations as useTranslations88 } from "next-intl";
20383
+ import { useTranslations as useTranslations87 } from "next-intl";
20386
20384
  import { jsx as jsx225 } from "react/jsx-runtime";
20387
20385
  function ContentsListById({ contentIds }) {
20388
- const t = useTranslations88();
20386
+ const t = useTranslations87();
20389
20387
  const data = useDataListRetriever({
20390
20388
  module: Modules.Content,
20391
20389
  retriever: /* @__PURE__ */ __name((params) => ContentService.findMany(params), "retriever"),
@@ -20404,10 +20402,10 @@ function ContentsListById({ contentIds }) {
20404
20402
  __name(ContentsListById, "ContentsListById");
20405
20403
 
20406
20404
  // src/features/content/components/lists/RelevantContentsList.tsx
20407
- import { useTranslations as useTranslations89 } from "next-intl";
20405
+ import { useTranslations as useTranslations88 } from "next-intl";
20408
20406
  import { jsx as jsx226 } from "react/jsx-runtime";
20409
20407
  function RelevantContentsList({ id }) {
20410
- const t = useTranslations89();
20408
+ const t = useTranslations88();
20411
20409
  const data = useDataListRetriever({
20412
20410
  module: Modules.Content,
20413
20411
  retriever: /* @__PURE__ */ __name((params) => ContentService.findRelevant(params), "retriever"),
@@ -20427,12 +20425,12 @@ __name(RelevantContentsList, "RelevantContentsList");
20427
20425
 
20428
20426
  // src/features/how-to/components/containers/HowToCommand.tsx
20429
20427
  import { ArrowRight, LifeBuoyIcon } from "lucide-react";
20430
- import { useTranslations as useTranslations91 } from "next-intl";
20428
+ import { useTranslations as useTranslations90 } from "next-intl";
20431
20429
  import { useCallback as useCallback40, useEffect as useEffect65, useMemo as useMemo39, useRef as useRef35, useState as useState83 } from "react";
20432
20430
 
20433
20431
  // src/features/how-to/components/containers/HowToCommandViewer.tsx
20434
20432
  import { ArrowLeft, BookOpen, MessageSquare } from "lucide-react";
20435
- import { useTranslations as useTranslations90 } from "next-intl";
20433
+ import { useTranslations as useTranslations89 } from "next-intl";
20436
20434
  import { useMemo as useMemo38 } from "react";
20437
20435
 
20438
20436
  // src/features/how-to/utils/blocknote.ts
@@ -20504,7 +20502,7 @@ __name(extractHeadings, "extractHeadings");
20504
20502
  // src/features/how-to/components/containers/HowToCommandViewer.tsx
20505
20503
  import { jsx as jsx227, jsxs as jsxs133 } from "react/jsx-runtime";
20506
20504
  function HowToCommandViewer({ howTo, onBack, onStartChat }) {
20507
- const t = useTranslations90();
20505
+ const t = useTranslations89();
20508
20506
  const readingTime = useMemo38(() => calculateReadingTime(howTo.description), [howTo.description]);
20509
20507
  const headings = useMemo38(() => extractHeadings(howTo.description), [howTo.description]);
20510
20508
  return /* @__PURE__ */ jsxs133("div", { className: "flex h-full flex-col", children: [
@@ -20553,7 +20551,7 @@ function matchPage(pathname, pattern) {
20553
20551
  }
20554
20552
  __name(matchPage, "matchPage");
20555
20553
  function HowToCommand({ pathname, extraGroups, onStartChat }) {
20556
- const t = useTranslations91();
20554
+ const t = useTranslations90();
20557
20555
  const [dialogOpen, setDialogOpen] = useState83(false);
20558
20556
  const [selectedHowTo, setSelectedHowTo] = useState83(null);
20559
20557
  const searchTermRef = useRef35("");
@@ -20719,10 +20717,10 @@ function HowToContent() {
20719
20717
  __name(HowToContent, "HowToContent");
20720
20718
 
20721
20719
  // src/features/how-to/components/details/HowToDetails.tsx
20722
- import { useTranslations as useTranslations92 } from "next-intl";
20720
+ import { useTranslations as useTranslations91 } from "next-intl";
20723
20721
  import { jsx as jsx230, jsxs as jsxs135 } from "react/jsx-runtime";
20724
20722
  function HowToDetailsInternal({ howTo }) {
20725
- const t = useTranslations92();
20723
+ const t = useTranslations91();
20726
20724
  const { title } = useSharedContext();
20727
20725
  const pagesList = HowTo.parsePagesFromString(howTo.pages);
20728
20726
  return /* @__PURE__ */ jsxs135("div", { className: "flex w-full flex-col gap-y-4", children: [
@@ -20746,26 +20744,26 @@ __name(HowToDetails, "HowToDetails");
20746
20744
 
20747
20745
  // src/features/how-to/components/containers/HowToContainer.tsx
20748
20746
  import { jsx as jsx231 } from "react/jsx-runtime";
20749
- function HowToContainerInternal({ howTo }) {
20747
+ function HowToContainerInternal() {
20750
20748
  return /* @__PURE__ */ jsx231(RoundPageContainer, { module: Modules.HowTo, details: /* @__PURE__ */ jsx231(HowToDetails, {}), children: /* @__PURE__ */ jsx231(HowToContent, {}) });
20751
20749
  }
20752
20750
  __name(HowToContainerInternal, "HowToContainerInternal");
20753
20751
  function HowToContainer() {
20754
20752
  const { howTo } = useHowToContext();
20755
20753
  if (!howTo) return null;
20756
- return /* @__PURE__ */ jsx231(HowToContainerInternal, { howTo });
20754
+ return /* @__PURE__ */ jsx231(HowToContainerInternal, {});
20757
20755
  }
20758
20756
  __name(HowToContainer, "HowToContainer");
20759
20757
 
20760
20758
  // src/features/how-to/components/lists/HowToList.tsx
20761
- import { useTranslations as useTranslations94 } from "next-intl";
20759
+ import { useTranslations as useTranslations93 } from "next-intl";
20762
20760
 
20763
20761
  // src/features/how-to/hooks/useHowToTableStructure.tsx
20764
- import { useTranslations as useTranslations93 } from "next-intl";
20762
+ import { useTranslations as useTranslations92 } from "next-intl";
20765
20763
  import { useMemo as useMemo40 } from "react";
20766
20764
  import { Fragment as Fragment45, jsx as jsx232 } from "react/jsx-runtime";
20767
20765
  var useHowToTableStructure = /* @__PURE__ */ __name((params) => {
20768
- const t = useTranslations93();
20766
+ const t = useTranslations92();
20769
20767
  const generateUrl = usePageUrlGenerator();
20770
20768
  const tableData = useMemo40(() => {
20771
20769
  return params.data.map((howTo) => {
@@ -20831,7 +20829,7 @@ registerTableGenerator("howtos", useHowToTableStructure);
20831
20829
  // src/features/how-to/components/lists/HowToList.tsx
20832
20830
  import { jsx as jsx233 } from "react/jsx-runtime";
20833
20831
  function HowToList({ fullWidth }) {
20834
- const t = useTranslations94();
20832
+ const t = useTranslations93();
20835
20833
  const data = useDataListRetriever({
20836
20834
  module: Modules.HowTo,
20837
20835
  retriever: /* @__PURE__ */ __name((params) => HowToService.findMany(params), "retriever"),
@@ -20865,7 +20863,7 @@ __name(HowToListContainer, "HowToListContainer");
20865
20863
 
20866
20864
  // src/features/how-to/components/forms/HowToSelector.tsx
20867
20865
  import { CircleX as CircleX3, RefreshCwIcon as RefreshCwIcon4, SearchIcon as SearchIcon7, XIcon as XIcon11 } from "lucide-react";
20868
- import { useTranslations as useTranslations95 } from "next-intl";
20866
+ import { useTranslations as useTranslations94 } from "next-intl";
20869
20867
  import { useCallback as useCallback41, useEffect as useEffect66, useRef as useRef36, useState as useState84 } from "react";
20870
20868
  import { Fragment as Fragment46, jsx as jsx235, jsxs as jsxs136 } from "react/jsx-runtime";
20871
20869
  function HowToSelector({
@@ -20876,7 +20874,7 @@ function HowToSelector({
20876
20874
  onChange,
20877
20875
  isRequired = false
20878
20876
  }) {
20879
- const t = useTranslations95();
20877
+ const t = useTranslations94();
20880
20878
  const [open, setOpen] = useState84(false);
20881
20879
  const searchTermRef = useRef36("");
20882
20880
  const [searchTerm, setSearchTerm] = useState84("");
@@ -20969,7 +20967,7 @@ function HowToSelector({
20969
20967
  __name(HowToSelector, "HowToSelector");
20970
20968
 
20971
20969
  // src/features/assistant/components/parts/AssistantSidebar.tsx
20972
- import { useTranslations as useTranslations96 } from "next-intl";
20970
+ import { useTranslations as useTranslations95 } from "next-intl";
20973
20971
  import { Plus as Plus2 } from "lucide-react";
20974
20972
 
20975
20973
  // src/features/assistant/utils/groupThreadsByBucket.ts
@@ -20995,7 +20993,7 @@ __name(groupThreadsByBucket, "groupThreadsByBucket");
20995
20993
  // src/features/assistant/components/parts/AssistantSidebar.tsx
20996
20994
  import { Fragment as Fragment47, jsx as jsx236, jsxs as jsxs137 } from "react/jsx-runtime";
20997
20995
  function AssistantSidebar({ threads, activeId, onSelect, onNew }) {
20998
- const t = useTranslations96();
20996
+ const t = useTranslations95();
20999
20997
  const groups = groupThreadsByBucket(threads);
21000
20998
  const renderSection = /* @__PURE__ */ __name((label, items) => {
21001
20999
  if (items.length === 0) return null;
@@ -21030,16 +21028,16 @@ __name(AssistantSidebar, "AssistantSidebar");
21030
21028
 
21031
21029
  // src/features/assistant/components/parts/AssistantEmptyState.tsx
21032
21030
  import { useState as useState86 } from "react";
21033
- import { useTranslations as useTranslations98 } from "next-intl";
21031
+ import { useTranslations as useTranslations97 } from "next-intl";
21034
21032
  import { Sparkles } from "lucide-react";
21035
21033
 
21036
21034
  // src/features/assistant/components/parts/AssistantComposer.tsx
21037
21035
  import { useState as useState85 } from "react";
21038
- import { useTranslations as useTranslations97 } from "next-intl";
21036
+ import { useTranslations as useTranslations96 } from "next-intl";
21039
21037
  import { ArrowUp } from "lucide-react";
21040
21038
  import { jsx as jsx237, jsxs as jsxs138 } from "react/jsx-runtime";
21041
21039
  function AssistantComposer({ onSend, disabled, value: controlled, onValueChange }) {
21042
- const t = useTranslations97();
21040
+ const t = useTranslations96();
21043
21041
  const [internal, setInternal] = useState85("");
21044
21042
  const value = controlled ?? internal;
21045
21043
  const setValue = onValueChange ?? setInternal;
@@ -21085,7 +21083,7 @@ __name(AssistantComposer, "AssistantComposer");
21085
21083
  import { jsx as jsx238, jsxs as jsxs139 } from "react/jsx-runtime";
21086
21084
  var STARTER_KEYS = ["a", "b", "c", "d"];
21087
21085
  function AssistantEmptyState({ onSend, operatorMode = false, onOperatorModeChange }) {
21088
- const t = useTranslations98();
21086
+ const t = useTranslations97();
21089
21087
  const [draft, setDraft] = useState86("");
21090
21088
  return /* @__PURE__ */ jsx238("div", { className: "flex h-full w-full items-center justify-center p-10", children: /* @__PURE__ */ jsxs139("div", { className: "flex w-full max-w-2xl flex-col gap-6", children: [
21091
21089
  /* @__PURE__ */ jsxs139("div", { className: "text-center", children: [
@@ -21125,10 +21123,10 @@ __name(AssistantEmptyState, "AssistantEmptyState");
21125
21123
 
21126
21124
  // src/features/assistant/components/parts/AssistantThreadHeader.tsx
21127
21125
  import { useState as useState87 } from "react";
21128
- import { useTranslations as useTranslations99 } from "next-intl";
21126
+ import { useTranslations as useTranslations98 } from "next-intl";
21129
21127
  import { jsx as jsx239, jsxs as jsxs140 } from "react/jsx-runtime";
21130
21128
  function AssistantThreadHeader({ assistant, onRename, onDelete }) {
21131
- const t = useTranslations99();
21129
+ const t = useTranslations98();
21132
21130
  const [renameValue, setRenameValue] = useState87(assistant.title);
21133
21131
  const [renameOpen, setRenameOpen] = useState87(false);
21134
21132
  const [deleteOpen, setDeleteOpen] = useState87(false);
@@ -21187,7 +21185,7 @@ __name(AssistantThreadHeader, "AssistantThreadHeader");
21187
21185
  import { useEffect as useEffect68, useRef as useRef37 } from "react";
21188
21186
 
21189
21187
  // src/features/assistant-message/components/MessageItem.tsx
21190
- import { useTranslations as useTranslations106 } from "next-intl";
21188
+ import { useTranslations as useTranslations105 } from "next-intl";
21191
21189
  import { Sparkles as Sparkles2, AlertCircle } from "lucide-react";
21192
21190
  import { useMemo as useMemo43 } from "react";
21193
21191
  import ReactMarkdown3, { defaultUrlTransform } from "react-markdown";
@@ -21198,18 +21196,18 @@ import { useEffect as useEffect67, useMemo as useMemo42, useState as useState90
21198
21196
 
21199
21197
  // src/features/assistant-message/components/parts/MessageSourcesPanel.tsx
21200
21198
  import { useMemo as useMemo41, useState as useState89 } from "react";
21201
- import { useTranslations as useTranslations105 } from "next-intl";
21199
+ import { useTranslations as useTranslations104 } from "next-intl";
21202
21200
  import { ChevronDown as ChevronDown4, ChevronRight as ChevronRight2 } from "lucide-react";
21203
21201
 
21204
21202
  // src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx
21205
- import { useTranslations as useTranslations101 } from "next-intl";
21203
+ import { useTranslations as useTranslations100 } from "next-intl";
21206
21204
  import Link4 from "next/link";
21207
21205
 
21208
21206
  // src/features/assistant-message/components/parts/tabs/useEntityLabel.ts
21209
- import { useTranslations as useTranslations100 } from "next-intl";
21207
+ import { useTranslations as useTranslations99 } from "next-intl";
21210
21208
  import { useCallback as useCallback42 } from "react";
21211
21209
  function useEntityLabel() {
21212
- const t = useTranslations100();
21210
+ const t = useTranslations99();
21213
21211
  return useCallback42(
21214
21212
  (type) => {
21215
21213
  const key = `entities.${type}`;
@@ -21228,7 +21226,7 @@ __name(useEntityLabel, "useEntityLabel");
21228
21226
  // src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx
21229
21227
  import { jsx as jsx240, jsxs as jsxs141 } from "react/jsx-runtime";
21230
21228
  function ReferencesTab({ references }) {
21231
- const t = useTranslations101();
21229
+ const t = useTranslations100();
21232
21230
  const generate = usePageUrlGenerator();
21233
21231
  const entityLabel = useEntityLabel();
21234
21232
  if (references.length === 0) return null;
@@ -21258,7 +21256,7 @@ __name(ReferencesTab, "ReferencesTab");
21258
21256
 
21259
21257
  // src/features/assistant-message/components/parts/tabs/CitationsTab.tsx
21260
21258
  import { Fragment as Fragment48, useState as useState88 } from "react";
21261
- import { useTranslations as useTranslations102 } from "next-intl";
21259
+ import { useTranslations as useTranslations101 } from "next-intl";
21262
21260
  import { ChevronDown as ChevronDown3, HelpCircle } from "lucide-react";
21263
21261
  import ReactMarkdown2 from "react-markdown";
21264
21262
  import remarkGfm2 from "remark-gfm";
@@ -21295,7 +21293,7 @@ __name(RelevanceMeter, "RelevanceMeter");
21295
21293
  // src/features/assistant-message/components/parts/tabs/CitationsTab.tsx
21296
21294
  import { jsx as jsx242, jsxs as jsxs143 } from "react/jsx-runtime";
21297
21295
  function CitationsTab({ citations, sources }) {
21298
- const t = useTranslations102();
21296
+ const t = useTranslations101();
21299
21297
  const entityLabel = useEntityLabel();
21300
21298
  const [expanded, setExpanded] = useState88(/* @__PURE__ */ new Set());
21301
21299
  if (citations.length === 0) return null;
@@ -21355,11 +21353,11 @@ function CitationsTab({ citations, sources }) {
21355
21353
  __name(CitationsTab, "CitationsTab");
21356
21354
 
21357
21355
  // src/features/assistant-message/components/parts/tabs/ContentsTab.tsx
21358
- import { useTranslations as useTranslations103 } from "next-intl";
21356
+ import { useTranslations as useTranslations102 } from "next-intl";
21359
21357
  import Link5 from "next/link";
21360
21358
  import { jsx as jsx243, jsxs as jsxs144 } from "react/jsx-runtime";
21361
21359
  function ContentsTab({ citations, sources }) {
21362
- const t = useTranslations103();
21360
+ const t = useTranslations102();
21363
21361
  const entityLabel = useEntityLabel();
21364
21362
  const generate = usePageUrlGenerator();
21365
21363
  const map = /* @__PURE__ */ new Map();
@@ -21412,7 +21410,7 @@ function ContentsTab({ citations, sources }) {
21412
21410
  __name(ContentsTab, "ContentsTab");
21413
21411
 
21414
21412
  // src/features/assistant-message/components/parts/tabs/UsersTab.tsx
21415
- import { useTranslations as useTranslations104 } from "next-intl";
21413
+ import { useTranslations as useTranslations103 } from "next-intl";
21416
21414
  import Link6 from "next/link";
21417
21415
  import { jsx as jsx244, jsxs as jsxs145 } from "react/jsx-runtime";
21418
21416
  function getInitials2(name) {
@@ -21429,7 +21427,7 @@ function readAuthor(source) {
21429
21427
  }
21430
21428
  __name(readAuthor, "readAuthor");
21431
21429
  function UsersTab({ users, citations, sources }) {
21432
- const t = useTranslations104();
21430
+ const t = useTranslations103();
21433
21431
  const generate = usePageUrlGenerator();
21434
21432
  const userMap = /* @__PURE__ */ new Map();
21435
21433
  for (const u of users) {
@@ -21515,7 +21513,7 @@ __name(SuggestedQuestionsTab, "SuggestedQuestionsTab");
21515
21513
  // src/features/assistant-message/components/parts/MessageSourcesPanel.tsx
21516
21514
  import { jsx as jsx246, jsxs as jsxs146 } from "react/jsx-runtime";
21517
21515
  function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sources, users }) {
21518
- const t = useTranslations105();
21516
+ const t = useTranslations104();
21519
21517
  const visibleReferences = useMemo41(
21520
21518
  () => message.references.filter((ref) => {
21521
21519
  try {
@@ -21714,7 +21712,7 @@ function MessageItem({
21714
21712
  renderApprovalAction,
21715
21713
  renderMention
21716
21714
  }) {
21717
- const t = useTranslations106();
21715
+ const t = useTranslations105();
21718
21716
  const isUser = message.role === "user";
21719
21717
  const isFailed = isUser && !!failedMessageIds?.has(message.id);
21720
21718
  const markdownComponents = useMemo43(
@@ -21797,11 +21795,11 @@ function MessageList({
21797
21795
  __name(MessageList, "MessageList");
21798
21796
 
21799
21797
  // src/features/assistant/components/parts/AssistantStatusLine.tsx
21800
- import { useTranslations as useTranslations107 } from "next-intl";
21798
+ import { useTranslations as useTranslations106 } from "next-intl";
21801
21799
  import { Loader2 as Loader25 } from "lucide-react";
21802
21800
  import { jsx as jsx250, jsxs as jsxs148 } from "react/jsx-runtime";
21803
21801
  function AssistantStatusLine({ status }) {
21804
- const t = useTranslations107();
21802
+ const t = useTranslations106();
21805
21803
  const text = status ?? t("features.assistant.thinking");
21806
21804
  return /* @__PURE__ */ jsxs148("div", { className: "text-muted-foreground flex items-center gap-2 px-4 py-2 text-sm", children: [
21807
21805
  /* @__PURE__ */ jsx250(Loader25, { className: "h-4 w-4 animate-spin" }),
@@ -21895,11 +21893,11 @@ __name(AssistantContainer, "AssistantContainer");
21895
21893
 
21896
21894
  // src/features/assistant/components/containers/AssistantPageContainer.tsx
21897
21895
  import { Sparkles as Sparkles3 } from "lucide-react";
21898
- import { useTranslations as useTranslations109 } from "next-intl";
21896
+ import { useTranslations as useTranslations108 } from "next-intl";
21899
21897
 
21900
21898
  // src/features/assistant/components/parts/AssistantBlockNoteComposer.tsx
21901
21899
  import { ArrowUp as ArrowUp2 } from "lucide-react";
21902
- import { useTranslations as useTranslations108 } from "next-intl";
21900
+ import { useTranslations as useTranslations107 } from "next-intl";
21903
21901
  import { useCallback as useCallback43, useId as useId3, useState as useState91 } from "react";
21904
21902
  import { jsx as jsx253, jsxs as jsxs151 } from "react/jsx-runtime";
21905
21903
  function flattenBlocks(blocks) {
@@ -21936,7 +21934,7 @@ function AssistantBlockNoteComposer({
21936
21934
  mentionResolveFn,
21937
21935
  suggestionMenuComponent
21938
21936
  }) {
21939
- const t = useTranslations108();
21937
+ const t = useTranslations107();
21940
21938
  const editorId = useId3().replace(/[^a-zA-Z0-9]/g, "");
21941
21939
  const [blocks, setBlocks] = useState91([]);
21942
21940
  const [isEmpty, setIsEmpty] = useState91(true);
@@ -22005,7 +22003,7 @@ function AssistantPageContainer({
22005
22003
  detailsIcon,
22006
22004
  disabled
22007
22005
  }) {
22008
- const t = useTranslations109();
22006
+ const t = useTranslations108();
22009
22007
  const ctx = useAssistantContext();
22010
22008
  const showThread = !!ctx.assistant || ctx.sending || ctx.messages.length > 0;
22011
22009
  return /* @__PURE__ */ jsx254(
@@ -22077,7 +22075,7 @@ __name(AssistantPageContainer, "AssistantPageContainer");
22077
22075
 
22078
22076
  // src/features/assistant-action/components/ApprovalActionCard.tsx
22079
22077
  import { ShieldAlert as ShieldAlert2 } from "lucide-react";
22080
- import { useTranslations as useTranslations110 } from "next-intl";
22078
+ import { useTranslations as useTranslations109 } from "next-intl";
22081
22079
  import { useEffect as useEffect69, useState as useState92 } from "react";
22082
22080
  import { jsx as jsx255, jsxs as jsxs153 } from "react/jsx-runtime";
22083
22081
  var STATUS_VARIANT = {
@@ -22097,7 +22095,7 @@ var STATUS_LABEL_KEY = {
22097
22095
  expired: "features.assistant.approval.status.expired"
22098
22096
  };
22099
22097
  function ApprovalActionCard({ actionId, summary, onResolved }) {
22100
- const t = useTranslations110();
22098
+ const t = useTranslations109();
22101
22099
  const [status, setStatus] = useState92(void 0);
22102
22100
  const [actionSummary, setActionSummary] = useState92(void 0);
22103
22101
  const [busy, setBusy] = useState92(false);
@@ -22199,14 +22197,14 @@ var NotificationErrorBoundary = class extends Component {
22199
22197
  };
22200
22198
 
22201
22199
  // src/features/notification/components/containers/NotificationsListContainer.tsx
22202
- import { useTranslations as useTranslations112 } from "next-intl";
22200
+ import { useTranslations as useTranslations111 } from "next-intl";
22203
22201
 
22204
22202
  // src/features/notification/components/lists/NotificationsList.tsx
22205
22203
  import { ArchiveIcon } from "lucide-react";
22206
- import { useTranslations as useTranslations111 } from "next-intl";
22204
+ import { useTranslations as useTranslations110 } from "next-intl";
22207
22205
  import { Fragment as Fragment52, jsx as jsx258, jsxs as jsxs155 } from "react/jsx-runtime";
22208
22206
  function NotificationsList({ archived }) {
22209
- const t = useTranslations111();
22207
+ const t = useTranslations110();
22210
22208
  const generateUrl = usePageUrlGenerator();
22211
22209
  const data = useDataListRetriever({
22212
22210
  retriever: /* @__PURE__ */ __name((params) => NotificationService.findMany(params), "retriever"),
@@ -22264,7 +22262,7 @@ __name(NotificationsList, "NotificationsList");
22264
22262
  // src/features/notification/components/containers/NotificationsListContainer.tsx
22265
22263
  import { jsx as jsx259, jsxs as jsxs156 } from "react/jsx-runtime";
22266
22264
  function NotificationsListContainerContent() {
22267
- const t = useTranslations112();
22265
+ const t = useTranslations111();
22268
22266
  const { notifications: _notifications, isLoading: _isLoading, error } = useNotificationContext();
22269
22267
  if (error) {
22270
22268
  return /* @__PURE__ */ jsx259("div", { className: "flex items-center justify-center p-8 text-center", children: /* @__PURE__ */ jsxs156("div", { className: "text-destructive text-xs/relaxed", children: [
@@ -22295,7 +22293,7 @@ __name(NotificationsListContainer, "NotificationsListContainer");
22295
22293
 
22296
22294
  // src/features/notification/components/modals/NotificationModal.tsx
22297
22295
  import { BellIcon } from "lucide-react";
22298
- import { useTranslations as useTranslations113 } from "next-intl";
22296
+ import { useTranslations as useTranslations112 } from "next-intl";
22299
22297
  import { Fragment as Fragment53, useCallback as useCallback44, useEffect as useEffect70, useMemo as useMemo44, useRef as useRef38, useState as useState93 } from "react";
22300
22298
  import { jsx as jsx260, jsxs as jsxs157 } from "react/jsx-runtime";
22301
22299
  function NotificationModalContent({ isOpen, setIsOpen }) {
@@ -22316,7 +22314,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
22316
22314
  removeSocketNotification: _removeSocketNotification,
22317
22315
  clearSocketNotifications
22318
22316
  } = useSocketContext();
22319
- const t = useTranslations113();
22317
+ const t = useTranslations112();
22320
22318
  const generateUrl = usePageUrlGenerator();
22321
22319
  const [newNotifications, setNewNotifications] = useState93(false);
22322
22320
  const preventAutoClose = useRef38(false);
@@ -22770,11 +22768,11 @@ function ReferralDialog({
22770
22768
  __name(ReferralDialog, "ReferralDialog");
22771
22769
 
22772
22770
  // src/features/role/components/details/RoleDetails.tsx
22773
- import { useTranslations as useTranslations114 } from "next-intl";
22771
+ import { useTranslations as useTranslations113 } from "next-intl";
22774
22772
  import { jsx as jsx264 } from "react/jsx-runtime";
22775
22773
  function RoleDetails() {
22776
22774
  const { role } = useRoleContext();
22777
- const t = useTranslations114();
22775
+ const t = useTranslations113();
22778
22776
  if (!role) return null;
22779
22777
  return /* @__PURE__ */ jsx264(Card, { className: "w-full", children: /* @__PURE__ */ jsx264(CardContent, { className: "p-4", children: /* @__PURE__ */ jsx264(AttributeElement, { title: t(`role.fields.description.label`), value: role.description }) }) });
22780
22778
  }
@@ -22793,10 +22791,10 @@ function RoleContainer() {
22793
22791
  __name(RoleContainer, "RoleContainer");
22794
22792
 
22795
22793
  // src/features/role/components/forms/FormRoles.tsx
22796
- import { useTranslations as useTranslations115 } from "next-intl";
22794
+ import { useTranslations as useTranslations114 } from "next-intl";
22797
22795
  import { jsx as jsx266, jsxs as jsxs161 } from "react/jsx-runtime";
22798
22796
  function FormRoles({ form, id, name, roles }) {
22799
- const t = useTranslations115();
22797
+ const t = useTranslations114();
22800
22798
  const { hasAccesToFeature } = useCurrentUserContext();
22801
22799
  return /* @__PURE__ */ jsx266("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx266(FormFieldWrapper, { form, name: id, label: name, children: (field) => /* @__PURE__ */ jsx266("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) => {
22802
22800
  if (role.requiredFeature && !hasAccesToFeature(role.requiredFeature.id)) return null;
@@ -22828,13 +22826,13 @@ function FormRoles({ form, id, name, roles }) {
22828
22826
  __name(FormRoles, "FormRoles");
22829
22827
 
22830
22828
  // src/features/role/components/forms/RemoveUserFromRole.tsx
22831
- import { useTranslations as useTranslations116 } from "next-intl";
22829
+ import { useTranslations as useTranslations115 } from "next-intl";
22832
22830
  import { useEffect as useEffect73, useState as useState97 } from "react";
22833
22831
  import { Fragment as Fragment56, jsx as jsx267, jsxs as jsxs162 } from "react/jsx-runtime";
22834
22832
  function RemoveUserFromRole({ role, user, refresh }) {
22835
22833
  const [open, setOpen] = useState97(false);
22836
22834
  const [canRemove, setCanRemove] = useState97(false);
22837
- const t = useTranslations116();
22835
+ const t = useTranslations115();
22838
22836
  useEffect73(() => {
22839
22837
  async function checkCompanyAdminDeletability() {
22840
22838
  const roleUsers = await UserService.findAllUsersByRole({
@@ -22904,7 +22902,7 @@ __name(RemoveUserFromRole, "RemoveUserFromRole");
22904
22902
 
22905
22903
  // src/features/role/components/forms/UserRoleAdd.tsx
22906
22904
  import { PlusCircle as PlusCircle2 } from "lucide-react";
22907
- import { useTranslations as useTranslations117 } from "next-intl";
22905
+ import { useTranslations as useTranslations116 } from "next-intl";
22908
22906
  import { useCallback as useCallback46, useEffect as useEffect74, useRef as useRef40, useState as useState98 } from "react";
22909
22907
  import { Fragment as Fragment57, jsx as jsx268, jsxs as jsxs163 } from "react/jsx-runtime";
22910
22908
  function UserRoleAdd({ user, refresh }) {
@@ -22912,7 +22910,7 @@ function UserRoleAdd({ user, refresh }) {
22912
22910
  const inputRef = useRef40(null);
22913
22911
  const [searchTerm, setSearchTerm] = useState98("");
22914
22912
  const [roles, setRoles] = useState98([]);
22915
- const t = useTranslations117();
22913
+ const t = useTranslations116();
22916
22914
  const addUserToRole = /* @__PURE__ */ __name(async (role) => {
22917
22915
  await RoleService.addUserToRole({
22918
22916
  roleId: role.id,
@@ -23001,10 +22999,10 @@ function UserRoleAdd({ user, refresh }) {
23001
22999
  __name(UserRoleAdd, "UserRoleAdd");
23002
23000
 
23003
23001
  // src/features/role/components/lists/RolesList.tsx
23004
- import { useTranslations as useTranslations118 } from "next-intl";
23002
+ import { useTranslations as useTranslations117 } from "next-intl";
23005
23003
  import { jsx as jsx269 } from "react/jsx-runtime";
23006
23004
  function RolesList() {
23007
- const t = useTranslations118();
23005
+ const t = useTranslations117();
23008
23006
  const data = useDataListRetriever({
23009
23007
  retriever: /* @__PURE__ */ __name((params) => RoleService.findAllRoles(params), "retriever"),
23010
23008
  retrieverParams: {},
@@ -23023,10 +23021,10 @@ function RolesList() {
23023
23021
  __name(RolesList, "RolesList");
23024
23022
 
23025
23023
  // src/features/role/components/lists/UserRolesList.tsx
23026
- import { useTranslations as useTranslations119 } from "next-intl";
23024
+ import { useTranslations as useTranslations118 } from "next-intl";
23027
23025
  import { jsx as jsx270 } from "react/jsx-runtime";
23028
23026
  function UserRolesList({ user }) {
23029
- const t = useTranslations119();
23027
+ const t = useTranslations118();
23030
23028
  const data = useDataListRetriever({
23031
23029
  retriever: /* @__PURE__ */ __name((params) => RoleService.findAllRolesByUser(params), "retriever"),
23032
23030
  retrieverParams: { userId: user.id },
@@ -23831,7 +23829,7 @@ __name(OAuthConsentScreen, "OAuthConsentScreen");
23831
23829
  // src/features/waitlist/components/forms/WaitlistForm.tsx
23832
23830
  import { zodResolver as zodResolver11 } from "@hookform/resolvers/zod";
23833
23831
  import { CheckCircle, Mail as Mail2 } from "lucide-react";
23834
- import { useTranslations as useTranslations120 } from "next-intl";
23832
+ import { useTranslations as useTranslations119 } from "next-intl";
23835
23833
  import { useState as useState102 } from "react";
23836
23834
  import { useForm as useForm11 } from "react-hook-form";
23837
23835
  import { v4 as v412 } from "uuid";
@@ -23932,7 +23930,7 @@ __name(WaitlistQuestionnaireRenderer, "WaitlistQuestionnaireRenderer");
23932
23930
  // src/features/waitlist/components/forms/WaitlistForm.tsx
23933
23931
  import { Fragment as Fragment59, jsx as jsx283, jsxs as jsxs176 } from "react/jsx-runtime";
23934
23932
  function WaitlistForm({ onSuccess }) {
23935
- const t = useTranslations120();
23933
+ const t = useTranslations119();
23936
23934
  const [isSubmitting, setIsSubmitting] = useState102(false);
23937
23935
  const [isSuccess, setIsSuccess] = useState102(false);
23938
23936
  const config = getWaitlistConfig();
@@ -24097,10 +24095,10 @@ __name(WaitlistHeroSection, "WaitlistHeroSection");
24097
24095
 
24098
24096
  // src/features/waitlist/components/sections/WaitlistSuccessState.tsx
24099
24097
  import { CheckCircle as CheckCircle3 } from "lucide-react";
24100
- import { useTranslations as useTranslations121 } from "next-intl";
24098
+ import { useTranslations as useTranslations120 } from "next-intl";
24101
24099
  import { jsx as jsx285, jsxs as jsxs178 } from "react/jsx-runtime";
24102
24100
  function WaitlistSuccessState() {
24103
- const t = useTranslations121();
24101
+ const t = useTranslations120();
24104
24102
  return /* @__PURE__ */ jsxs178("div", { className: "flex flex-col items-center justify-center space-y-4 py-8 text-center", children: [
24105
24103
  /* @__PURE__ */ jsx285("div", { className: "bg-primary/10 rounded-full p-4", children: /* @__PURE__ */ jsx285(CheckCircle3, { className: "text-primary h-12 w-12" }) }),
24106
24104
  /* @__PURE__ */ jsx285(SectionHeader, { level: 2, children: t("waitlist.success.title") }),
@@ -24112,11 +24110,11 @@ __name(WaitlistSuccessState, "WaitlistSuccessState");
24112
24110
 
24113
24111
  // src/features/waitlist/components/sections/WaitlistConfirmation.tsx
24114
24112
  import { CheckCircle as CheckCircle4, Loader2 as Loader28, XCircle as XCircle2 } from "lucide-react";
24115
- import { useTranslations as useTranslations122 } from "next-intl";
24113
+ import { useTranslations as useTranslations121 } from "next-intl";
24116
24114
  import { useEffect as useEffect75, useState as useState103 } from "react";
24117
24115
  import { jsx as jsx286, jsxs as jsxs179 } from "react/jsx-runtime";
24118
24116
  function WaitlistConfirmation({ code }) {
24119
- const t = useTranslations122();
24117
+ const t = useTranslations121();
24120
24118
  const [state, setState] = useState103("loading");
24121
24119
  const [errorMessage, setErrorMessage] = useState103("");
24122
24120
  useEffect75(() => {
@@ -24158,12 +24156,12 @@ __name(WaitlistConfirmation, "WaitlistConfirmation");
24158
24156
  // src/features/waitlist/components/lists/WaitlistList.tsx
24159
24157
  import { flexRender as flexRender2, getCoreRowModel as getCoreRowModel2, useReactTable as useReactTable2 } from "@tanstack/react-table";
24160
24158
  import { RefreshCw as RefreshCw4, Users as Users2 } from "lucide-react";
24161
- import { useTranslations as useTranslations124 } from "next-intl";
24159
+ import { useTranslations as useTranslations123 } from "next-intl";
24162
24160
  import { useCallback as useCallback52, useEffect as useEffect76, useMemo as useMemo45, useState as useState104 } from "react";
24163
24161
 
24164
24162
  // src/features/waitlist/hooks/useWaitlistTableStructure.tsx
24165
24163
  import { Send } from "lucide-react";
24166
- import { useTranslations as useTranslations123 } from "next-intl";
24164
+ import { useTranslations as useTranslations122 } from "next-intl";
24167
24165
  import { jsx as jsx287, jsxs as jsxs180 } from "react/jsx-runtime";
24168
24166
  function parseQuestionnaire(questionnaire) {
24169
24167
  if (!questionnaire) return null;
@@ -24177,7 +24175,7 @@ __name(parseQuestionnaire, "parseQuestionnaire");
24177
24175
  function useWaitlistTableStructure({
24178
24176
  onInvite
24179
24177
  }) {
24180
- const t = useTranslations123();
24178
+ const t = useTranslations122();
24181
24179
  const getStatusBadge = /* @__PURE__ */ __name((status) => {
24182
24180
  const variants = {
24183
24181
  pending: { variant: "secondary" },
@@ -24255,7 +24253,7 @@ __name(useWaitlistTableStructure, "useWaitlistTableStructure");
24255
24253
  // src/features/waitlist/components/lists/WaitlistList.tsx
24256
24254
  import { jsx as jsx288, jsxs as jsxs181 } from "react/jsx-runtime";
24257
24255
  function WaitlistList() {
24258
- const t = useTranslations124();
24256
+ const t = useTranslations123();
24259
24257
  const [entries, setEntries] = useState104([]);
24260
24258
  const [total, setTotal] = useState104(0);
24261
24259
  const [isLoading, setIsLoading] = useState104(true);
@@ -24338,7 +24336,7 @@ __name(WaitlistList, "WaitlistList");
24338
24336
 
24339
24337
  // src/features/rbac/components/RbacContainer.tsx
24340
24338
  import { Loader2Icon as Loader2Icon4 } from "lucide-react";
24341
- import { useTranslations as useTranslations126 } from "next-intl";
24339
+ import { useTranslations as useTranslations125 } from "next-intl";
24342
24340
  import { memo as memo2, useCallback as useCallback54, useEffect as useEffect78, useMemo as useMemo46, useRef as useRef41, useState as useState106 } from "react";
24343
24341
 
24344
24342
  // src/features/rbac/components/RbacPermissionCell.tsx
@@ -24419,7 +24417,7 @@ __name(RbacPermissionCell, "RbacPermissionCell");
24419
24417
  // src/features/rbac/components/RbacPermissionPicker.tsx
24420
24418
  import { Popover as PopoverPrimitive2 } from "@base-ui/react/popover";
24421
24419
  import { CheckIcon as CheckIcon10, MinusIcon as MinusIcon3, XIcon as XIcon13 } from "lucide-react";
24422
- import { useTranslations as useTranslations125 } from "next-intl";
24420
+ import { useTranslations as useTranslations124 } from "next-intl";
24423
24421
  import { useCallback as useCallback53, useEffect as useEffect77, useState as useState105 } from "react";
24424
24422
  import { Fragment as Fragment60, jsx as jsx290, jsxs as jsxs183 } from "react/jsx-runtime";
24425
24423
  function RbacPermissionPicker({
@@ -24432,7 +24430,7 @@ function RbacPermissionPicker({
24432
24430
  onClear,
24433
24431
  onClose
24434
24432
  }) {
24435
- const t = useTranslations125();
24433
+ const t = useTranslations124();
24436
24434
  const [customSegment, setCustomSegment] = useState105("");
24437
24435
  useEffect77(() => {
24438
24436
  if (!open) setCustomSegment("");
@@ -24630,7 +24628,7 @@ var ModuleEditor = memo2(/* @__PURE__ */ __name(function ModuleEditor2({
24630
24628
  roleNames,
24631
24629
  onOpenPicker
24632
24630
  }) {
24633
- const t = useTranslations126();
24631
+ const t = useTranslations125();
24634
24632
  const defaultTokens = block.default ?? [];
24635
24633
  return /* @__PURE__ */ jsxs184("div", { className: "rounded-lg border border-accent bg-card", children: [
24636
24634
  /* @__PURE__ */ jsxs184("div", { className: "flex items-center justify-between border-b px-4 py-2", children: [
@@ -24680,7 +24678,7 @@ var ModuleEditor = memo2(/* @__PURE__ */ __name(function ModuleEditor2({
24680
24678
  ] });
24681
24679
  }, "ModuleEditor"));
24682
24680
  function RbacContainer() {
24683
- const t = useTranslations126();
24681
+ const t = useTranslations125();
24684
24682
  const { matrix, modulePaths, loading, error, roleNames, moduleNames, updateCell, clearCell } = useRbacContext();
24685
24683
  const [selectedModuleId, setSelectedModuleId] = useState106(null);
24686
24684
  const [activePicker, setActivePicker] = useState106(null);
@@ -24793,7 +24791,7 @@ __name(RbacContainer, "RbacContainer");
24793
24791
 
24794
24792
  // src/features/rbac/components/RbacByRoleContainer.tsx
24795
24793
  import { Loader2Icon as Loader2Icon5 } from "lucide-react";
24796
- import { useTranslations as useTranslations127 } from "next-intl";
24794
+ import { useTranslations as useTranslations126 } from "next-intl";
24797
24795
  import { Fragment as Fragment61, memo as memo3, useCallback as useCallback55, useEffect as useEffect79, useMemo as useMemo47, useRef as useRef42, useState as useState107 } from "react";
24798
24796
  import { jsx as jsx292, jsxs as jsxs185 } from "react/jsx-runtime";
24799
24797
  function findToken2(tokens, action) {
@@ -24830,7 +24828,7 @@ var ACTION_LABELS2 = {
24830
24828
  delete: "Delete"
24831
24829
  };
24832
24830
  function RbacByRoleContainer() {
24833
- const t = useTranslations127();
24831
+ const t = useTranslations126();
24834
24832
  const { matrix, modulePaths, loading, error, roleNames, moduleNames, updateCell, clearCell } = useRbacContext();
24835
24833
  const [selectedRoleId, setSelectedRoleId] = useState107(null);
24836
24834
  const [activePicker, setActivePicker] = useState107(null);
@@ -25543,4 +25541,4 @@ export {
25543
25541
  useOAuthClients,
25544
25542
  useOAuthClient
25545
25543
  };
25546
- //# sourceMappingURL=chunk-2ONZSSDW.mjs.map
25544
+ //# sourceMappingURL=chunk-C7I6YFTA.mjs.map