@carlonicora/nextjs-jsonapi 1.116.0 → 1.117.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-R6U4PCQ7.js → BlockNoteEditor-6UREFUSJ.js} +9 -9
- package/dist/{BlockNoteEditor-R6U4PCQ7.js.map → BlockNoteEditor-6UREFUSJ.js.map} +1 -1
- package/dist/{BlockNoteEditor-RFRK3STN.mjs → BlockNoteEditor-UQOOX3UT.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-SPRFCAQI.js → chunk-HXU2HDRN.js} +406 -272
- package/dist/chunk-HXU2HDRN.js.map +1 -0
- package/dist/{chunk-RKUUGCYB.mjs → chunk-SVEPL5J2.mjs} +512 -378
- package/dist/chunk-SVEPL5J2.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +68 -21
- package/dist/components/index.d.ts +68 -21
- package/dist/components/index.js +4 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/features/help/index.js +30 -30
- package/dist/features/help/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/forms/CommonDeleter.tsx +49 -18
- package/src/components/forms/CommonEditorButtons.tsx +4 -2
- package/src/components/forms/CommonEditorHeader.tsx +20 -14
- package/src/components/forms/CommonEditorTrigger.tsx +18 -4
- package/src/components/forms/DateRangeSelector.tsx +55 -19
- package/src/components/forms/EditorSheet.tsx +36 -9
- package/src/components/forms/FileUploader.tsx +51 -21
- package/src/components/forms/FormDate.tsx +6 -2
- package/src/components/forms/FormDateTime.tsx +11 -2
- package/src/components/forms/FormFieldWrapper.tsx +3 -1
- package/src/components/forms/FormInput.tsx +3 -1
- package/src/components/forms/FormPassword.tsx +10 -1
- package/src/components/forms/FormPlaceAutocomplete.tsx +8 -3
- package/src/components/forms/FormSelect.tsx +3 -0
- package/src/components/forms/FormSlider.tsx +3 -1
- package/src/components/forms/FormTextarea.tsx +15 -1
- package/src/shadcnui/ui/badge.tsx +15 -0
- package/dist/chunk-RKUUGCYB.mjs.map +0 -1
- package/dist/chunk-SPRFCAQI.js.map +0 -1
- /package/dist/{BlockNoteEditor-RFRK3STN.mjs.map → BlockNoteEditor-UQOOX3UT.mjs.map} +0 -0
|
@@ -499,7 +499,19 @@ var badgeVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
499
499
|
destructive: "bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",
|
|
500
500
|
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/20 dark:bg-input/30",
|
|
501
501
|
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
502
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
502
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
503
|
+
warning: "bg-warning text-warning-foreground [a]:hover:bg-warning/80",
|
|
504
|
+
blue: "bg-sky-500 text-primary-foreground [a]:hover:bg-sky-500/80",
|
|
505
|
+
green: "bg-emerald-500 text-primary-foreground [a]:hover:bg-emerald-500/80",
|
|
506
|
+
red: "bg-red-500 text-primary-foreground [a]:hover:bg-red-500/80",
|
|
507
|
+
yellow: "bg-yellow-500 text-primary-foreground [a]:hover:bg-yellow-500/80",
|
|
508
|
+
purple: "bg-purple-500 text-primary-foreground [a]:hover:bg-purple-500/80",
|
|
509
|
+
pink: "bg-pink-500 text-primary-foreground [a]:hover:bg-pink-500/80",
|
|
510
|
+
gray: "bg-gray-500 text-primary-foreground [a]:hover:bg-gray-500/80",
|
|
511
|
+
orange: "bg-orange-500 text-primary-foreground [a]:hover:bg-orange-500/80",
|
|
512
|
+
teal: "bg-teal-500 text-primary-foreground [a]:hover:bg-teal-500/80",
|
|
513
|
+
lime: "bg-lime-500 text-primary-foreground [a]:hover:bg-lime-500/80",
|
|
514
|
+
none: "border-input bg-transparent text-muted-foreground min-w-20 min-h-5"
|
|
503
515
|
}
|
|
504
516
|
},
|
|
505
517
|
defaultVariants: {
|
|
@@ -617,7 +629,7 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
617
629
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbEllipsis, "BreadcrumbEllipsis");
|
|
618
630
|
|
|
619
631
|
// src/shadcnui/ui/calendar.tsx
|
|
620
|
-
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react); var React6 = _interopRequireWildcard(_react); var React7 = _interopRequireWildcard(_react); var React8 = _interopRequireWildcard(_react); var React9 = _interopRequireWildcard(_react); var React10 = _interopRequireWildcard(_react); var React11 = _interopRequireWildcard(_react); var React12 = _interopRequireWildcard(_react); var
|
|
632
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react); var React6 = _interopRequireWildcard(_react); var React7 = _interopRequireWildcard(_react); var React8 = _interopRequireWildcard(_react); var React9 = _interopRequireWildcard(_react); var React10 = _interopRequireWildcard(_react); var React11 = _interopRequireWildcard(_react); var React12 = _interopRequireWildcard(_react); var React19 = _interopRequireWildcard(_react);
|
|
621
633
|
var _reactdaypicker = require('react-day-picker');
|
|
622
634
|
|
|
623
635
|
|
|
@@ -8161,6 +8173,7 @@ function FormFieldWrapper({
|
|
|
8161
8173
|
description,
|
|
8162
8174
|
isRequired,
|
|
8163
8175
|
orientation = "vertical",
|
|
8176
|
+
className,
|
|
8164
8177
|
children,
|
|
8165
8178
|
testId
|
|
8166
8179
|
}) {
|
|
@@ -8169,7 +8182,7 @@ function FormFieldWrapper({
|
|
|
8169
8182
|
{
|
|
8170
8183
|
control: form.control,
|
|
8171
8184
|
name,
|
|
8172
|
-
render: ({ field, fieldState }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Field, { orientation, "data-invalid": !!fieldState.error, "data-testid": testId, children: [
|
|
8185
|
+
render: ({ field, fieldState }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Field, { orientation, className, "data-invalid": !!fieldState.error, "data-testid": testId, children: [
|
|
8173
8186
|
label && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, FieldLabel, { children: [
|
|
8174
8187
|
label,
|
|
8175
8188
|
isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-1 font-semibold", children: "*" })
|
|
@@ -8721,7 +8734,19 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
|
|
|
8721
8734
|
|
|
8722
8735
|
// src/components/forms/CommonDeleter.tsx
|
|
8723
8736
|
|
|
8724
|
-
function CommonDeleter({
|
|
8737
|
+
function CommonDeleter({
|
|
8738
|
+
deleteFunction,
|
|
8739
|
+
redirectTo,
|
|
8740
|
+
type,
|
|
8741
|
+
title,
|
|
8742
|
+
subtitle,
|
|
8743
|
+
description,
|
|
8744
|
+
forceShow,
|
|
8745
|
+
testId,
|
|
8746
|
+
trigger,
|
|
8747
|
+
onSuccess,
|
|
8748
|
+
propagateChanges
|
|
8749
|
+
}) {
|
|
8725
8750
|
const t = _chunk6KLR3WJQjs.useI18nTranslations.call(void 0, );
|
|
8726
8751
|
const router = _chunk6KLR3WJQjs.useI18nRouter.call(void 0, );
|
|
8727
8752
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
@@ -8733,13 +8758,14 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId, on
|
|
|
8733
8758
|
setOpen(false);
|
|
8734
8759
|
if (onSuccess) await onSuccess();
|
|
8735
8760
|
else if (redirectTo) router.push(redirectTo);
|
|
8761
|
+
if (propagateChanges) propagateChanges();
|
|
8736
8762
|
} catch (error) {
|
|
8737
8763
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
8738
8764
|
}
|
|
8739
8765
|
setIsDeleting(false);
|
|
8740
8766
|
}, "handleDelete");
|
|
8741
8767
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialog, { open, onOpenChange: setOpen, children: [
|
|
8742
|
-
forceShow ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8768
|
+
forceShow ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTrigger, { children: trigger || /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8743
8769
|
Button,
|
|
8744
8770
|
{
|
|
8745
8771
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
|
|
@@ -8753,10 +8779,10 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId, on
|
|
|
8753
8779
|
) }),
|
|
8754
8780
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
|
|
8755
8781
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogHeader, { children: [
|
|
8756
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTitle, { children: t(`common.delete.title`, { type: t(`entities.${type}`, { count: 1 }) }) }),
|
|
8757
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogDescription, { children: t(`common.delete.subtitle`, { type: t(`entities.${type}`, { count: 1 }) }) })
|
|
8782
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTitle, { children: _nullishCoalesce(title, () => ( t(`common.delete.title`, { type: t(`entities.${type}`, { count: 1 }) }))) }),
|
|
8783
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogDescription, { children: _nullishCoalesce(subtitle, () => ( t(`common.delete.subtitle`, { type: t(`entities.${type}`, { count: 1 }) }))) })
|
|
8758
8784
|
] }),
|
|
8759
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive p-4 text-sm", children: t(`common.delete.description`, { type: t(`entities.${type}`, { count: 1 }) }) }),
|
|
8785
|
+
description !== void 0 ? description : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive p-4 text-sm", children: t(`common.delete.description`, { type: t(`entities.${type}`, { count: 1 }) }) }),
|
|
8760
8786
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
|
|
8761
8787
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8762
8788
|
Button,
|
|
@@ -8800,14 +8826,15 @@ function CommonEditorButtons({
|
|
|
8800
8826
|
disabled,
|
|
8801
8827
|
setOpen,
|
|
8802
8828
|
hideSubmit,
|
|
8803
|
-
centerButtons
|
|
8829
|
+
centerButtons,
|
|
8830
|
+
buttonTitle
|
|
8804
8831
|
}) {
|
|
8805
8832
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8806
8833
|
if (centerButtons) {
|
|
8807
8834
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-x-2", children: [
|
|
8808
8835
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "outline", type: `button`, onClick: () => setOpen(false), "data-testid": `modal-button-cancel`, children: t(`ui.buttons.cancel`) }),
|
|
8809
8836
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-1 justify-center gap-x-2", children: centerButtons }),
|
|
8810
|
-
!hideSubmit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {})
|
|
8837
|
+
!hideSubmit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: buttonTitle ? buttonTitle : isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {})
|
|
8811
8838
|
] });
|
|
8812
8839
|
}
|
|
8813
8840
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
|
|
@@ -8822,7 +8849,7 @@ function CommonEditorButtons({
|
|
|
8822
8849
|
children: t(`ui.buttons.cancel`)
|
|
8823
8850
|
}
|
|
8824
8851
|
),
|
|
8825
|
-
!hideSubmit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) })
|
|
8852
|
+
!hideSubmit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: buttonTitle ? buttonTitle : isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) })
|
|
8826
8853
|
] });
|
|
8827
8854
|
}
|
|
8828
8855
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonEditorButtons, "CommonEditorButtons");
|
|
@@ -8830,13 +8857,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, CommonEditorButtons, "CommonEditorButtons")
|
|
|
8830
8857
|
// src/components/forms/CommonEditorHeader.tsx
|
|
8831
8858
|
|
|
8832
8859
|
|
|
8833
|
-
function CommonEditorHeader({ type, name }) {
|
|
8860
|
+
function CommonEditorHeader({ type, name, title, description }) {
|
|
8834
8861
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8835
8862
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogHeader, { children: [
|
|
8836
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: name ? t(`common.edit.update.title`, {
|
|
8863
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: title ? title : name ? t(`common.edit.update.title`, {
|
|
8837
8864
|
type
|
|
8838
8865
|
}) : t(`common.edit.create.title`, { type }) }),
|
|
8839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: name ? t(`common.edit.update.description`, {
|
|
8866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: description ? description : name ? t(`common.edit.update.description`, {
|
|
8840
8867
|
type,
|
|
8841
8868
|
name
|
|
8842
8869
|
}) : t(`common.edit.create.description`, {
|
|
@@ -8868,9 +8895,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, CommonEditorDiscardDialog, "CommonEditorDis
|
|
|
8868
8895
|
|
|
8869
8896
|
|
|
8870
8897
|
|
|
8871
|
-
|
|
8898
|
+
|
|
8899
|
+
function CommonEditorTrigger({ isEdit, edit: _edit, create, testId, title }) {
|
|
8872
8900
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8873
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8901
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}), nativeButton: false, size: "sm", variant: `outline`, "data-testid": testId, children: title }) : isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8874
8902
|
Button,
|
|
8875
8903
|
{
|
|
8876
8904
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
|
|
@@ -8884,6 +8912,10 @@ function CommonEditorTrigger({ isEdit, edit: _edit, create, testId }) {
|
|
|
8884
8912
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}), nativeButton: false, size: "sm", variant: `outline`, "data-testid": testId, children: create ? create : t(`ui.buttons.create`) }) });
|
|
8885
8913
|
}
|
|
8886
8914
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonEditorTrigger, "CommonEditorTrigger");
|
|
8915
|
+
var CommonAddTrigger = React.default.forwardRef(
|
|
8916
|
+
(props, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { ref, variant: "ghost", size: "sm", className: "text-muted-foreground", ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircleIcon, {}) })
|
|
8917
|
+
);
|
|
8918
|
+
CommonAddTrigger.displayName = "CommonAddTrigger";
|
|
8887
8919
|
|
|
8888
8920
|
// src/components/forms/useEditorDialog.ts
|
|
8889
8921
|
|
|
@@ -8982,6 +9014,7 @@ function EditorSheet({
|
|
|
8982
9014
|
onClose,
|
|
8983
9015
|
dialogOpen,
|
|
8984
9016
|
onDialogOpenChange,
|
|
9017
|
+
renderFooter,
|
|
8985
9018
|
children
|
|
8986
9019
|
}) {
|
|
8987
9020
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
@@ -9031,7 +9064,7 @@ function EditorSheet({
|
|
|
9031
9064
|
);
|
|
9032
9065
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9033
9066
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Sheet, { open, onOpenChange: handleOpenChange, children: [
|
|
9034
|
-
dialogOpen === void 0 && (trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9067
|
+
dialogOpen === void 0 && forceShow === void 0 && (trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9035
9068
|
Button,
|
|
9036
9069
|
{
|
|
9037
9070
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
|
|
@@ -9047,20 +9080,30 @@ function EditorSheet({
|
|
|
9047
9080
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTitle, { children: _nullishCoalesce(titleOverride, () => ( (isEdit ? t("common.edit.update.title", { type: entityType }) : t("common.edit.create.title", { type: entityType })))) }),
|
|
9048
9081
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetDescription, { children: _nullishCoalesce(descriptionOverride, () => ( (isEdit ? t("common.edit.update.description", { type: entityType, name: _nullishCoalesce(entityName, () => ( "")) }) : t("common.edit.create.description", { type: entityType })))) })
|
|
9049
9082
|
] }),
|
|
9050
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
form
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9083
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9084
|
+
"form",
|
|
9085
|
+
{
|
|
9086
|
+
onSubmit: (e) => {
|
|
9087
|
+
e.stopPropagation();
|
|
9088
|
+
return form.handleSubmit(wrappedOnSubmit)(e);
|
|
9089
|
+
},
|
|
9090
|
+
className: "flex min-h-0 flex-1 flex-col",
|
|
9091
|
+
children: [
|
|
9092
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 overflow-y-auto px-6 py-4", children }),
|
|
9093
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetFooter, { className: "shrink-0 border-t px-6 py-4", children: renderFooter ? renderFooter({ form, isEdit, setOpen: handleOpenChange, closeWithoutConfirm: setOpen }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9094
|
+
CommonEditorButtons,
|
|
9095
|
+
{
|
|
9096
|
+
form,
|
|
9097
|
+
setOpen: handleOpenChange,
|
|
9098
|
+
isEdit,
|
|
9099
|
+
disabled,
|
|
9100
|
+
hideSubmit,
|
|
9101
|
+
centerButtons
|
|
9102
|
+
}
|
|
9103
|
+
) })
|
|
9104
|
+
]
|
|
9105
|
+
}
|
|
9106
|
+
) })
|
|
9064
9107
|
] })
|
|
9065
9108
|
] }),
|
|
9066
9109
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorDiscardDialog, { ...discardDialogProps })
|
|
@@ -9234,7 +9277,9 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
9234
9277
|
|
|
9235
9278
|
|
|
9236
9279
|
|
|
9280
|
+
|
|
9237
9281
|
function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth }) {
|
|
9282
|
+
const t = _nextintl.useTranslations.call(void 0, );
|
|
9238
9283
|
const [date, setDate] = _react.useState.call(void 0,
|
|
9239
9284
|
avoidSettingDates ? void 0 : {
|
|
9240
9285
|
from: new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
@@ -9242,6 +9287,10 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9242
9287
|
}
|
|
9243
9288
|
);
|
|
9244
9289
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9290
|
+
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
9291
|
+
_react.useEffect.call(void 0, () => {
|
|
9292
|
+
setMounted(true);
|
|
9293
|
+
}, []);
|
|
9245
9294
|
const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
|
|
9246
9295
|
_react.useEffect.call(void 0, () => {
|
|
9247
9296
|
if (_optionalChain([date, 'optionalAccess', _255 => _255.from]) && _optionalChain([date, 'optionalAccess', _256 => _256.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _257 => _257.from, 'optionalAccess', _258 => _258.getTime, 'call', _259 => _259()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _260 => _260.to, 'optionalAccess', _261 => _261.getTime, 'call', _262 => _262()]) !== date.to.getTime())) {
|
|
@@ -9261,8 +9310,8 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9261
9310
|
setDate(range);
|
|
9262
9311
|
}
|
|
9263
9312
|
}, "handleSelect");
|
|
9264
|
-
|
|
9265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9313
|
+
if (!mounted) {
|
|
9314
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkS2PTWBN6js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9266
9315
|
Button,
|
|
9267
9316
|
{
|
|
9268
9317
|
id: "date",
|
|
@@ -9274,16 +9323,39 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9274
9323
|
_datefns.format.call(void 0, date.from, "LLL dd, y"),
|
|
9275
9324
|
" - ",
|
|
9276
9325
|
_datefns.format.call(void 0, date.to, "LLL dd, y")
|
|
9277
|
-
] }) : _datefns.format.call(void 0, date.from, "LLL dd, y") : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "
|
|
9326
|
+
] }) : _datefns.format.call(void 0, date.from, "LLL dd, y") : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("ui.labels.pick_a_date") })
|
|
9278
9327
|
]
|
|
9279
9328
|
}
|
|
9280
|
-
) })
|
|
9329
|
+
) });
|
|
9330
|
+
}
|
|
9331
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkS2PTWBN6js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
9332
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9333
|
+
PopoverTrigger,
|
|
9334
|
+
{
|
|
9335
|
+
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9336
|
+
Button,
|
|
9337
|
+
{
|
|
9338
|
+
id: "date",
|
|
9339
|
+
variant: "outline",
|
|
9340
|
+
className: _chunkS2PTWBN6js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground")
|
|
9341
|
+
}
|
|
9342
|
+
),
|
|
9343
|
+
children: [
|
|
9344
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
9345
|
+
_optionalChain([date, 'optionalAccess', _265 => _265.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9346
|
+
_datefns.format.call(void 0, date.from, "LLL dd, y"),
|
|
9347
|
+
" - ",
|
|
9348
|
+
_datefns.format.call(void 0, date.to, "LLL dd, y")
|
|
9349
|
+
] }) : _datefns.format.call(void 0, date.from, "LLL dd, y") : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("ui.labels.pick_a_date") })
|
|
9350
|
+
]
|
|
9351
|
+
}
|
|
9352
|
+
),
|
|
9281
9353
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 p-2", children: [
|
|
9282
9354
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9283
9355
|
Calendar,
|
|
9284
9356
|
{
|
|
9285
9357
|
mode: "range",
|
|
9286
|
-
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess',
|
|
9358
|
+
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _266 => _266.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
|
|
9287
9359
|
selected: date,
|
|
9288
9360
|
onSelect: handleSelect,
|
|
9289
9361
|
numberOfMonths: 2
|
|
@@ -9302,7 +9374,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9302
9374
|
},
|
|
9303
9375
|
className: "cursor-pointer",
|
|
9304
9376
|
disabled: !date,
|
|
9305
|
-
children: "
|
|
9377
|
+
children: t("ui.buttons.clear")
|
|
9306
9378
|
}
|
|
9307
9379
|
)
|
|
9308
9380
|
] }) })
|
|
@@ -9322,6 +9394,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, DateRangeSelector, "DateRangeSelector");
|
|
|
9322
9394
|
|
|
9323
9395
|
|
|
9324
9396
|
|
|
9397
|
+
|
|
9325
9398
|
var _reactdropzone = require('react-dropzone');
|
|
9326
9399
|
|
|
9327
9400
|
var FileUploaderContext = _react.createContext.call(void 0, null);
|
|
@@ -9370,7 +9443,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9370
9443
|
movePrev();
|
|
9371
9444
|
} else if (e.key === "Enter" || e.key === "Space") {
|
|
9372
9445
|
if (activeIndex === -1) {
|
|
9373
|
-
_optionalChain([dropzoneState, 'access',
|
|
9446
|
+
_optionalChain([dropzoneState, 'access', _267 => _267.inputRef, 'access', _268 => _268.current, 'optionalAccess', _269 => _269.click, 'call', _270 => _270()]);
|
|
9374
9447
|
}
|
|
9375
9448
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
|
9376
9449
|
if (activeIndex !== -1) {
|
|
@@ -9408,13 +9481,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9408
9481
|
onValueChange(newValues);
|
|
9409
9482
|
if (rejectedFiles.length > 0) {
|
|
9410
9483
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
9411
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
9484
|
+
if (_optionalChain([rejectedFiles, 'access', _271 => _271[i], 'access', _272 => _272.errors, 'access', _273 => _273[0], 'optionalAccess', _274 => _274.code]) === "file-too-large") {
|
|
9412
9485
|
_chunkS2PTWBN6js.showError.call(void 0, t("common.errors.file"), {
|
|
9413
9486
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
9414
9487
|
});
|
|
9415
9488
|
break;
|
|
9416
9489
|
}
|
|
9417
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
9490
|
+
if (_optionalChain([rejectedFiles, 'access', _275 => _275[i], 'access', _276 => _276.errors, 'access', _277 => _277[0], 'optionalAccess', _278 => _278.message])) {
|
|
9418
9491
|
_chunkS2PTWBN6js.showError.call(void 0, t(`common.errors.file`), {
|
|
9419
9492
|
description: rejectedFiles[i].errors[0].message
|
|
9420
9493
|
});
|
|
@@ -9451,7 +9524,8 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9451
9524
|
activeIndex,
|
|
9452
9525
|
setActiveIndex,
|
|
9453
9526
|
orientation,
|
|
9454
|
-
direction
|
|
9527
|
+
direction,
|
|
9528
|
+
accept: dropzoneOptions.accept
|
|
9455
9529
|
},
|
|
9456
9530
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9457
9531
|
"div",
|
|
@@ -9537,9 +9611,41 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
9537
9611
|
FileUploaderItem.displayName = "FileUploaderItem";
|
|
9538
9612
|
var FileInput = _react.forwardRef.call(void 0,
|
|
9539
9613
|
({ className, children, ...props }, ref) => {
|
|
9540
|
-
const { dropzoneState, isFileTooBig, isLOF } = useFileUpload();
|
|
9614
|
+
const { dropzoneState, isFileTooBig, isLOF, accept } = useFileUpload();
|
|
9615
|
+
const t = _nextintl.useTranslations.call(void 0, );
|
|
9541
9616
|
const rootProps = isLOF ? {} : dropzoneState.getRootProps();
|
|
9542
9617
|
const { isDragActive: parentIsDragActive } = dropzoneState;
|
|
9618
|
+
const acceptedLabels = _react.useMemo.call(void 0, () => {
|
|
9619
|
+
if (!accept) return null;
|
|
9620
|
+
const extensions = /* @__PURE__ */ new Set();
|
|
9621
|
+
let hasWildcardImages = false;
|
|
9622
|
+
for (const [mime, exts] of Object.entries(accept)) {
|
|
9623
|
+
if (mime === "image/*") hasWildcardImages = true;
|
|
9624
|
+
for (const ext of exts) extensions.add(ext);
|
|
9625
|
+
}
|
|
9626
|
+
const labels = Array.from(extensions).sort();
|
|
9627
|
+
if (hasWildcardImages) labels.push(t("ui.labels.images"));
|
|
9628
|
+
return labels.length > 0 ? labels : null;
|
|
9629
|
+
}, [accept, t]);
|
|
9630
|
+
const dropArea = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9631
|
+
"div",
|
|
9632
|
+
{
|
|
9633
|
+
className: _chunkS2PTWBN6js.cn.call(void 0,
|
|
9634
|
+
"w-full rounded-lg duration-300 ease-in-out",
|
|
9635
|
+
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
9636
|
+
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
9637
|
+
{
|
|
9638
|
+
"border-green-500": dropzoneState.isDragAccept && !parentIsDragActive,
|
|
9639
|
+
"border-red-500": (dropzoneState.isDragReject || isFileTooBig) && !parentIsDragActive,
|
|
9640
|
+
"border-gray-300": !dropzoneState.isDragAccept && !dropzoneState.isDragReject && !isFileTooBig && !parentIsDragActive
|
|
9641
|
+
},
|
|
9642
|
+
// className from props should be last to allow overrides if necessary
|
|
9643
|
+
className
|
|
9644
|
+
),
|
|
9645
|
+
...rootProps,
|
|
9646
|
+
children
|
|
9647
|
+
}
|
|
9648
|
+
);
|
|
9543
9649
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9544
9650
|
"div",
|
|
9545
9651
|
{
|
|
@@ -9547,25 +9653,14 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
9547
9653
|
...props,
|
|
9548
9654
|
className: _chunkS2PTWBN6js.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
9549
9655
|
children: [
|
|
9550
|
-
/* @__PURE__ */ _jsxruntime.
|
|
9551
|
-
|
|
9552
|
-
{
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
"border-green-500": dropzoneState.isDragAccept && !parentIsDragActive,
|
|
9559
|
-
"border-red-500": (dropzoneState.isDragReject || isFileTooBig) && !parentIsDragActive,
|
|
9560
|
-
"border-gray-300": !dropzoneState.isDragAccept && !dropzoneState.isDragReject && !isFileTooBig && !parentIsDragActive
|
|
9561
|
-
},
|
|
9562
|
-
// className from props should be last to allow overrides if necessary
|
|
9563
|
-
className
|
|
9564
|
-
),
|
|
9565
|
-
...rootProps,
|
|
9566
|
-
children
|
|
9567
|
-
}
|
|
9568
|
-
),
|
|
9656
|
+
acceptedLabels ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
9657
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { render: dropArea }),
|
|
9658
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TooltipContent, { children: [
|
|
9659
|
+
t("ui.labels.accepted_file_types"),
|
|
9660
|
+
": ",
|
|
9661
|
+
acceptedLabels.join(", ")
|
|
9662
|
+
] })
|
|
9663
|
+
] }) : dropArea,
|
|
9569
9664
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9570
9665
|
Input,
|
|
9571
9666
|
{
|
|
@@ -9691,7 +9786,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
9691
9786
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
9692
9787
|
|
|
9693
9788
|
|
|
9694
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
9789
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-6UREFUSJ.js"))), {
|
|
9695
9790
|
ssr: false
|
|
9696
9791
|
});
|
|
9697
9792
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -9756,7 +9851,7 @@ function FormBlockNote({
|
|
|
9756
9851
|
onChange: (content, isEmpty) => {
|
|
9757
9852
|
lastEditorContentRef.current = content;
|
|
9758
9853
|
field.onChange(content);
|
|
9759
|
-
_optionalChain([onEmptyChange, 'optionalCall',
|
|
9854
|
+
_optionalChain([onEmptyChange, 'optionalCall', _279 => _279(isEmpty)]);
|
|
9760
9855
|
},
|
|
9761
9856
|
placeholder,
|
|
9762
9857
|
bordered: true,
|
|
@@ -9795,7 +9890,9 @@ function FormDate({
|
|
|
9795
9890
|
onChange,
|
|
9796
9891
|
isRequired = false,
|
|
9797
9892
|
defaultMonth,
|
|
9798
|
-
allowEmpty
|
|
9893
|
+
allowEmpty,
|
|
9894
|
+
description,
|
|
9895
|
+
futureYears
|
|
9799
9896
|
}) {
|
|
9800
9897
|
const t = _chunk6KLR3WJQjs.useI18nTranslations.call(void 0, );
|
|
9801
9898
|
const locale = _chunk6KLR3WJQjs.useI18nLocale.call(void 0, );
|
|
@@ -9854,7 +9951,7 @@ function FormDate({
|
|
|
9854
9951
|
}
|
|
9855
9952
|
if (onChange) onChange(selectedDate);
|
|
9856
9953
|
}, "handleCalendarSelect");
|
|
9857
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
9954
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, isRequired, description, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
9858
9955
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputGroup, { children: [
|
|
9859
9956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9860
9957
|
InputGroupInput,
|
|
@@ -9898,7 +9995,7 @@ function FormDate({
|
|
|
9898
9995
|
month: displayMonth,
|
|
9899
9996
|
onMonthChange: setDisplayMonth,
|
|
9900
9997
|
startMonth: new Date(1900, 0),
|
|
9901
|
-
endMonth: new Date((/* @__PURE__ */ new Date()).getFullYear() + 10, 11)
|
|
9998
|
+
endMonth: new Date((/* @__PURE__ */ new Date()).getFullYear() + (_nullishCoalesce(futureYears, () => ( 10))), 11)
|
|
9902
9999
|
}
|
|
9903
10000
|
),
|
|
9904
10001
|
allowEmpty !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9933,7 +10030,10 @@ function FormDateTime({
|
|
|
9933
10030
|
minDate,
|
|
9934
10031
|
onChange,
|
|
9935
10032
|
allowEmpty,
|
|
9936
|
-
defaultMonth
|
|
10033
|
+
defaultMonth,
|
|
10034
|
+
placeholder,
|
|
10035
|
+
isRequired,
|
|
10036
|
+
description
|
|
9937
10037
|
}) {
|
|
9938
10038
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9939
10039
|
const t = _chunk6KLR3WJQjs.useI18nTranslations.call(void 0, );
|
|
@@ -9985,7 +10085,7 @@ function FormDateTime({
|
|
|
9985
10085
|
if (onChange) onChange(updatedDate);
|
|
9986
10086
|
}
|
|
9987
10087
|
}, "handleTimeChange");
|
|
9988
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex flex-row", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
10088
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, isRequired, description, children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex flex-row", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
9989
10089
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
9990
10090
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9991
10091
|
PopoverTrigger,
|
|
@@ -9998,7 +10098,7 @@ function FormDateTime({
|
|
|
9998
10098
|
}
|
|
9999
10099
|
),
|
|
10000
10100
|
children: [
|
|
10001
|
-
field.value ? formatDateTime(field.value) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t(`common.pick_date_time`) }),
|
|
10101
|
+
field.value ? formatDateTime(field.value) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: placeholder ? placeholder : t(`common.pick_date_time`) }),
|
|
10002
10102
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Calendar, { className: "ml-auto h-4 w-4 opacity-50" })
|
|
10003
10103
|
]
|
|
10004
10104
|
}
|
|
@@ -10132,6 +10232,7 @@ function FormInput({
|
|
|
10132
10232
|
form,
|
|
10133
10233
|
id,
|
|
10134
10234
|
name,
|
|
10235
|
+
description,
|
|
10135
10236
|
placeholder,
|
|
10136
10237
|
type,
|
|
10137
10238
|
onBlur,
|
|
@@ -10143,7 +10244,7 @@ function FormInput({
|
|
|
10143
10244
|
isRequired = false
|
|
10144
10245
|
}) {
|
|
10145
10246
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10146
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, isRequired, children: (field) => {
|
|
10247
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, description, isRequired, children: (field) => {
|
|
10147
10248
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (e) => {
|
|
10148
10249
|
let value = e.target.value;
|
|
10149
10250
|
if (type === "link" && value) {
|
|
@@ -10214,9 +10315,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormInput, "FormInput");
|
|
|
10214
10315
|
|
|
10215
10316
|
|
|
10216
10317
|
|
|
10217
|
-
var PasswordInput =
|
|
10318
|
+
var PasswordInput = React19.forwardRef(
|
|
10218
10319
|
({ className, type: _type, ...props }, ref) => {
|
|
10219
|
-
const [showPassword, setShowPassword] =
|
|
10320
|
+
const [showPassword, setShowPassword] = React19.useState(false);
|
|
10220
10321
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
10221
10322
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10222
10323
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
@@ -10259,19 +10360,31 @@ function FormPassword({
|
|
|
10259
10360
|
onBlur,
|
|
10260
10361
|
disabled,
|
|
10261
10362
|
testId,
|
|
10262
|
-
isRequired
|
|
10363
|
+
isRequired,
|
|
10364
|
+
description
|
|
10263
10365
|
}) {
|
|
10264
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10265
|
-
|
|
10366
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10367
|
+
FormFieldWrapper,
|
|
10266
10368
|
{
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10369
|
+
form,
|
|
10370
|
+
name: id,
|
|
10371
|
+
label: name,
|
|
10372
|
+
isRequired,
|
|
10373
|
+
description,
|
|
10374
|
+
testId,
|
|
10375
|
+
children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10376
|
+
PasswordInput,
|
|
10377
|
+
{
|
|
10378
|
+
...field,
|
|
10379
|
+
className: "w-full",
|
|
10380
|
+
disabled: disabled === true || form.formState.isSubmitting,
|
|
10381
|
+
placeholder: placeholder ? placeholder : "",
|
|
10382
|
+
onBlur,
|
|
10383
|
+
"data-testid": testId
|
|
10384
|
+
}
|
|
10385
|
+
)
|
|
10273
10386
|
}
|
|
10274
|
-
) })
|
|
10387
|
+
) });
|
|
10275
10388
|
}
|
|
10276
10389
|
_chunk7QVYU63Ejs.__name.call(void 0, FormPassword, "FormPassword");
|
|
10277
10390
|
|
|
@@ -10282,13 +10395,15 @@ function FormPlaceAutocomplete({
|
|
|
10282
10395
|
form,
|
|
10283
10396
|
id,
|
|
10284
10397
|
name,
|
|
10398
|
+
description,
|
|
10285
10399
|
placeholder,
|
|
10286
10400
|
disabled,
|
|
10287
10401
|
testId,
|
|
10288
10402
|
isRequired = false,
|
|
10289
10403
|
onPlaceSelect,
|
|
10290
10404
|
className,
|
|
10291
|
-
includeTypes
|
|
10405
|
+
includeTypes,
|
|
10406
|
+
languageCode = "en"
|
|
10292
10407
|
}) {
|
|
10293
10408
|
const [inputValue, setInputValue] = _react.useState.call(void 0, "");
|
|
10294
10409
|
const [suggestions, setSuggestions] = _react.useState.call(void 0, []);
|
|
@@ -10326,7 +10441,7 @@ function FormPlaceAutocomplete({
|
|
|
10326
10441
|
body: JSON.stringify({
|
|
10327
10442
|
input,
|
|
10328
10443
|
...includeTypes ? { includedPrimaryTypes: includeTypes } : {},
|
|
10329
|
-
languageCode
|
|
10444
|
+
languageCode
|
|
10330
10445
|
})
|
|
10331
10446
|
});
|
|
10332
10447
|
if (!response.ok) {
|
|
@@ -10335,11 +10450,11 @@ function FormPlaceAutocomplete({
|
|
|
10335
10450
|
const data = await response.json();
|
|
10336
10451
|
if (data.suggestions) {
|
|
10337
10452
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
10338
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
10339
|
-
description: _optionalChain([suggestion, 'access',
|
|
10453
|
+
place_id: _optionalChain([suggestion, 'access', _280 => _280.placePrediction, 'optionalAccess', _281 => _281.placeId]) || "",
|
|
10454
|
+
description: _optionalChain([suggestion, 'access', _282 => _282.placePrediction, 'optionalAccess', _283 => _283.text, 'optionalAccess', _284 => _284.text]) || "",
|
|
10340
10455
|
structured_formatting: {
|
|
10341
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
10342
|
-
secondary_text: _optionalChain([suggestion, 'access',
|
|
10456
|
+
main_text: _optionalChain([suggestion, 'access', _285 => _285.placePrediction, 'optionalAccess', _286 => _286.structuredFormat, 'optionalAccess', _287 => _287.mainText, 'optionalAccess', _288 => _288.text]) || "",
|
|
10457
|
+
secondary_text: _optionalChain([suggestion, 'access', _289 => _289.placePrediction, 'optionalAccess', _290 => _290.structuredFormat, 'optionalAccess', _291 => _291.secondaryText, 'optionalAccess', _292 => _292.text]) || ""
|
|
10343
10458
|
}
|
|
10344
10459
|
}));
|
|
10345
10460
|
setSuggestions(formattedSuggestions);
|
|
@@ -10450,7 +10565,7 @@ function FormPlaceAutocomplete({
|
|
|
10450
10565
|
};
|
|
10451
10566
|
}, []);
|
|
10452
10567
|
if (loadError) {
|
|
10453
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10568
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, description, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10454
10569
|
Input,
|
|
10455
10570
|
{
|
|
10456
10571
|
...field,
|
|
@@ -10461,7 +10576,7 @@ function FormPlaceAutocomplete({
|
|
|
10461
10576
|
}
|
|
10462
10577
|
) }) });
|
|
10463
10578
|
}
|
|
10464
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", ref: containerRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
10579
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", ref: containerRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, description, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
10465
10580
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10466
10581
|
Input,
|
|
10467
10582
|
{
|
|
@@ -10486,8 +10601,8 @@ function FormPlaceAutocomplete({
|
|
|
10486
10601
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
10487
10602
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
10488
10603
|
children: [
|
|
10489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access',
|
|
10490
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access',
|
|
10604
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _293 => _293.structured_formatting, 'optionalAccess', _294 => _294.main_text]) }),
|
|
10605
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _295 => _295.structured_formatting, 'optionalAccess', _296 => _296.secondary_text]) })
|
|
10491
10606
|
]
|
|
10492
10607
|
},
|
|
10493
10608
|
suggestion.place_id || index
|
|
@@ -10503,6 +10618,7 @@ function FormSelect({
|
|
|
10503
10618
|
form,
|
|
10504
10619
|
id,
|
|
10505
10620
|
name,
|
|
10621
|
+
description,
|
|
10506
10622
|
placeholder,
|
|
10507
10623
|
disabled,
|
|
10508
10624
|
values,
|
|
@@ -10518,6 +10634,7 @@ function FormSelect({
|
|
|
10518
10634
|
form,
|
|
10519
10635
|
name: id,
|
|
10520
10636
|
label: name,
|
|
10637
|
+
description,
|
|
10521
10638
|
isRequired,
|
|
10522
10639
|
orientation: useRows ? "horizontal" : "vertical",
|
|
10523
10640
|
testId,
|
|
@@ -10533,7 +10650,7 @@ function FormSelect({
|
|
|
10533
10650
|
disabled,
|
|
10534
10651
|
"data-testid": testId,
|
|
10535
10652
|
children: [
|
|
10536
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access',
|
|
10653
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _297 => _297.find, 'call', _298 => _298((v) => v.id === field.value), 'optionalAccess', _299 => _299.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
|
|
10537
10654
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
|
|
10538
10655
|
allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
|
|
10539
10656
|
values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
|
|
@@ -10554,10 +10671,11 @@ function FormSlider({
|
|
|
10554
10671
|
id,
|
|
10555
10672
|
name,
|
|
10556
10673
|
disabled,
|
|
10557
|
-
showPercentage
|
|
10674
|
+
showPercentage,
|
|
10675
|
+
description
|
|
10558
10676
|
}) {
|
|
10559
10677
|
const value = _reacthookform.useWatch.call(void 0, { control: form.control, name: id });
|
|
10560
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
10678
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, description, children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
10561
10679
|
showPercentage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mb-2 flex w-full justify-center text-xs", children: `${value}%` }),
|
|
10562
10680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10563
10681
|
Slider,
|
|
@@ -10603,18 +10721,33 @@ function FormTextarea({
|
|
|
10603
10721
|
name,
|
|
10604
10722
|
className,
|
|
10605
10723
|
placeholder,
|
|
10606
|
-
testId
|
|
10724
|
+
testId,
|
|
10725
|
+
description,
|
|
10726
|
+
isRequired,
|
|
10727
|
+
textareaRef
|
|
10607
10728
|
}) {
|
|
10608
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10609
|
-
|
|
10729
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10730
|
+
FormFieldWrapper,
|
|
10610
10731
|
{
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10732
|
+
form,
|
|
10733
|
+
name: id,
|
|
10734
|
+
label: name,
|
|
10735
|
+
description,
|
|
10736
|
+
isRequired,
|
|
10737
|
+
testId,
|
|
10738
|
+
children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10739
|
+
Textarea,
|
|
10740
|
+
{
|
|
10741
|
+
...field,
|
|
10742
|
+
ref: textareaRef,
|
|
10743
|
+
className: _chunkS2PTWBN6js.cn.call(void 0, "min-h-96 w-full", className),
|
|
10744
|
+
disabled: form.formState.isSubmitting,
|
|
10745
|
+
placeholder,
|
|
10746
|
+
"data-testid": testId
|
|
10747
|
+
}
|
|
10748
|
+
)
|
|
10616
10749
|
}
|
|
10617
|
-
) })
|
|
10750
|
+
) });
|
|
10618
10751
|
}
|
|
10619
10752
|
_chunk7QVYU63Ejs.__name.call(void 0, FormTextarea, "FormTextarea");
|
|
10620
10753
|
|
|
@@ -10704,7 +10837,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
10704
10837
|
}, "getInitials");
|
|
10705
10838
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10706
10839
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `h-6 w-6 ${className}`, children: [
|
|
10707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess',
|
|
10840
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _300 => _300.avatar]) }),
|
|
10708
10841
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
|
|
10709
10842
|
] }) });
|
|
10710
10843
|
}, "getAvatar");
|
|
@@ -10895,7 +11028,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
10895
11028
|
})
|
|
10896
11029
|
};
|
|
10897
11030
|
const columns = _react.useMemo.call(void 0, () => {
|
|
10898
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
11031
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _301 => _301[field], 'optionalCall', _302 => _302()])).filter((col) => col !== void 0);
|
|
10899
11032
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
10900
11033
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
10901
11034
|
}, "useUserTableStructure");
|
|
@@ -11009,10 +11142,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
11009
11142
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
11010
11143
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: [
|
|
11011
11144
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `mr-2 h-4 w-4`, children: [
|
|
11012
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
11013
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access',
|
|
11145
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _303 => _303.value, 'optionalAccess', _304 => _304.avatar]) }),
|
|
11146
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _305 => _305.value, 'optionalAccess', _306 => _306.name]) ? _optionalChain([field, 'access', _307 => _307.value, 'optionalAccess', _308 => _308.name, 'access', _309 => _309.split, 'call', _310 => _310(" "), 'access', _311 => _311.map, 'call', _312 => _312((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
11014
11147
|
] }) }),
|
|
11015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
11148
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _313 => _313.value, 'optionalAccess', _314 => _314.name]), () => ( "")) })
|
|
11016
11149
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }))) }) }) }),
|
|
11017
11150
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11018
11151
|
_lucidereact.CircleX,
|
|
@@ -11343,7 +11476,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
|
|
|
11343
11476
|
const data = useDataListRetriever({
|
|
11344
11477
|
ready: !!company,
|
|
11345
11478
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkS2PTWBN6js.UserService.findAllUsers(params), "retriever"),
|
|
11346
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
11479
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _315 => _315.id]), isDeleted },
|
|
11347
11480
|
module: _chunkS2PTWBN6js.Modules.User
|
|
11348
11481
|
});
|
|
11349
11482
|
_react.useEffect.call(void 0, () => {
|
|
@@ -11450,11 +11583,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
11450
11583
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
11451
11584
|
onClick: (_e) => {
|
|
11452
11585
|
setSelectedUser(user);
|
|
11453
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
11586
|
+
_optionalChain([setLevelOpen, 'optionalCall', _316 => _316(true)]);
|
|
11454
11587
|
},
|
|
11455
11588
|
onSelect: (_e) => {
|
|
11456
11589
|
setSelectedUser(user);
|
|
11457
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
11590
|
+
_optionalChain([setLevelOpen, 'optionalCall', _317 => _317(true)]);
|
|
11458
11591
|
},
|
|
11459
11592
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
11460
11593
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -11585,7 +11718,7 @@ function CompanyContent({ company, actions }) {
|
|
|
11585
11718
|
company.legal_address
|
|
11586
11719
|
] }),
|
|
11587
11720
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
|
|
11588
|
-
_optionalChain([company, 'access',
|
|
11721
|
+
_optionalChain([company, 'access', _318 => _318.configurations, 'optionalAccess', _319 => _319.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
11589
11722
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
11590
11723
|
t("features.configuration.country"),
|
|
11591
11724
|
":"
|
|
@@ -11593,7 +11726,7 @@ function CompanyContent({ company, actions }) {
|
|
|
11593
11726
|
" ",
|
|
11594
11727
|
company.configurations.country
|
|
11595
11728
|
] }),
|
|
11596
|
-
_optionalChain([company, 'access',
|
|
11729
|
+
_optionalChain([company, 'access', _320 => _320.configurations, 'optionalAccess', _321 => _321.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
11597
11730
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
11598
11731
|
t("features.configuration.currency"),
|
|
11599
11732
|
":"
|
|
@@ -12003,7 +12136,7 @@ function CompanyEditorInternal({
|
|
|
12003
12136
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12004
12137
|
const fiscalRef = _react.useRef.call(void 0, null);
|
|
12005
12138
|
const addressComponentsRef = _react.useRef.call(void 0, {});
|
|
12006
|
-
const canAccessFeatures = hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
12139
|
+
const canAccessFeatures = hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _322 => _322.env, 'access', _323 => _323.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _324 => _324.toLowerCase, 'call', _325 => _325()]) === "true";
|
|
12007
12140
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
12008
12141
|
(open) => {
|
|
12009
12142
|
if (open && features.length === 0 && canAccessFeatures) {
|
|
@@ -12018,7 +12151,7 @@ function CompanyEditorInternal({
|
|
|
12018
12151
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
12019
12152
|
fetchFeatures();
|
|
12020
12153
|
}
|
|
12021
|
-
_optionalChain([onDialogOpenChange, 'optionalCall',
|
|
12154
|
+
_optionalChain([onDialogOpenChange, 'optionalCall', _326 => _326(open)]);
|
|
12022
12155
|
},
|
|
12023
12156
|
[features.length, canAccessFeatures, hasRole, onDialogOpenChange]
|
|
12024
12157
|
);
|
|
@@ -12063,12 +12196,12 @@ function CompanyEditorInternal({
|
|
|
12063
12196
|
);
|
|
12064
12197
|
const getDefaultValues = _react.useCallback.call(void 0, () => {
|
|
12065
12198
|
return {
|
|
12066
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
12067
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
12068
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
12069
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
12070
|
-
logo: _optionalChain([company, 'optionalAccess',
|
|
12071
|
-
legal_address: _optionalChain([company, 'optionalAccess',
|
|
12199
|
+
id: _optionalChain([company, 'optionalAccess', _327 => _327.id]) || _uuid.v4.call(void 0, ),
|
|
12200
|
+
name: _optionalChain([company, 'optionalAccess', _328 => _328.name]) || "",
|
|
12201
|
+
featureIds: _optionalChain([company, 'optionalAccess', _329 => _329.features, 'access', _330 => _330.map, 'call', _331 => _331((feature) => feature.id)]) || [],
|
|
12202
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _332 => _332.modules, 'access', _333 => _333.map, 'call', _334 => _334((module) => module.id)]) || [],
|
|
12203
|
+
logo: _optionalChain([company, 'optionalAccess', _335 => _335.logo]) || "",
|
|
12204
|
+
legal_address: _optionalChain([company, 'optionalAccess', _336 => _336.legal_address]) || ""
|
|
12072
12205
|
};
|
|
12073
12206
|
}, [company]);
|
|
12074
12207
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -12080,7 +12213,7 @@ function CompanyEditorInternal({
|
|
|
12080
12213
|
{
|
|
12081
12214
|
form,
|
|
12082
12215
|
entityType: t(`entities.companies`, { count: 1 }),
|
|
12083
|
-
entityName: _optionalChain([company, 'optionalAccess',
|
|
12216
|
+
entityName: _optionalChain([company, 'optionalAccess', _337 => _337.name]),
|
|
12084
12217
|
isEdit: !!company,
|
|
12085
12218
|
module: _chunkS2PTWBN6js.Modules.Company,
|
|
12086
12219
|
propagateChanges,
|
|
@@ -12105,7 +12238,7 @@ function CompanyEditorInternal({
|
|
|
12105
12238
|
throw new Error("Fiscal data validation failed");
|
|
12106
12239
|
}
|
|
12107
12240
|
const payload = {
|
|
12108
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
12241
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _338 => _338.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
12109
12242
|
name: values.name,
|
|
12110
12243
|
logo: files && contentType ? values.logo : void 0,
|
|
12111
12244
|
featureIds: values.featureIds,
|
|
@@ -12136,10 +12269,10 @@ function CompanyEditorInternal({
|
|
|
12136
12269
|
dialogOpen,
|
|
12137
12270
|
onDialogOpenChange: handleDialogOpenChange,
|
|
12138
12271
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
12139
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess',
|
|
12272
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _339 => _339.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12140
12273
|
_image2.default,
|
|
12141
12274
|
{
|
|
12142
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
12275
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _340 => _340.logo]) || "",
|
|
12143
12276
|
alt: "Company Logo",
|
|
12144
12277
|
width: 200,
|
|
12145
12278
|
height: 200
|
|
@@ -12173,7 +12306,7 @@ function CompanyEditorInternal({
|
|
|
12173
12306
|
}
|
|
12174
12307
|
),
|
|
12175
12308
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mt-2 text-sm font-semibold", children: t(`company.sections.fiscal_data`) }),
|
|
12176
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess',
|
|
12309
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _341 => _341.fiscal_data])) })
|
|
12177
12310
|
] }),
|
|
12178
12311
|
canAccessFeatures && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollArea, { className: "h-max", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFeatures, { form, name: t(`company.features_and_modules`), features }) }) })
|
|
12179
12312
|
] })
|
|
@@ -12290,7 +12423,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
12290
12423
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
12291
12424
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
12292
12425
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
12293
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12426
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _342 => _342.actor, 'optionalAccess', _343 => _343.name]), () => ( "")),
|
|
12294
12427
|
title: data.title,
|
|
12295
12428
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12296
12429
|
}) }),
|
|
@@ -12319,7 +12452,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
12319
12452
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
12320
12453
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
12321
12454
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
12322
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12455
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _344 => _344.actor, 'optionalAccess', _345 => _345.name]), () => ( "")),
|
|
12323
12456
|
title: data.title,
|
|
12324
12457
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12325
12458
|
}) }),
|
|
@@ -12383,7 +12516,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
12383
12516
|
_react.useEffect.call(void 0, () => {
|
|
12384
12517
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
12385
12518
|
if (_chunk6KLR3WJQjs.isRolesConfigured.call(void 0, )) {
|
|
12386
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
12519
|
+
const isAdmin = _optionalChain([currentUser, 'access', _346 => _346.roles, 'optionalAccess', _347 => _347.some, 'call', _348 => _348((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)]);
|
|
12387
12520
|
if (isAdmin) {
|
|
12388
12521
|
setHasInitiallyLoaded(true);
|
|
12389
12522
|
return;
|
|
@@ -12585,7 +12718,7 @@ function OnboardingProvider({
|
|
|
12585
12718
|
let tourSteps = steps;
|
|
12586
12719
|
if (!tourSteps) {
|
|
12587
12720
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
12588
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
12721
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _349 => _349.steps]);
|
|
12589
12722
|
}
|
|
12590
12723
|
if (!tourSteps || tourSteps.length === 0) {
|
|
12591
12724
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -12653,10 +12786,10 @@ function OnboardingProvider({
|
|
|
12653
12786
|
when: {
|
|
12654
12787
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
12655
12788
|
setCurrentStepIndex(index);
|
|
12656
|
-
_optionalChain([stepConfig, 'access',
|
|
12789
|
+
_optionalChain([stepConfig, 'access', _350 => _350.onShow, 'optionalCall', _351 => _351()]);
|
|
12657
12790
|
}, "show"),
|
|
12658
12791
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
12659
|
-
_optionalChain([stepConfig, 'access',
|
|
12792
|
+
_optionalChain([stepConfig, 'access', _352 => _352.onHide, 'optionalCall', _353 => _353()]);
|
|
12660
12793
|
}, "hide")
|
|
12661
12794
|
}
|
|
12662
12795
|
});
|
|
@@ -12822,7 +12955,7 @@ function HowToMultiSelector({
|
|
|
12822
12955
|
retriever: (params) => _chunkS2PTWBN6js.HowToService.findMany(params),
|
|
12823
12956
|
module: _chunkS2PTWBN6js.Modules.HowTo,
|
|
12824
12957
|
getLabel: (howTo) => howTo.name,
|
|
12825
|
-
excludeId: _optionalChain([currentHowTo, 'optionalAccess',
|
|
12958
|
+
excludeId: _optionalChain([currentHowTo, 'optionalAccess', _354 => _354.id]),
|
|
12826
12959
|
onChange
|
|
12827
12960
|
}
|
|
12828
12961
|
);
|
|
@@ -12930,17 +13063,17 @@ function HowToEditorInternal({
|
|
|
12930
13063
|
);
|
|
12931
13064
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
12932
13065
|
() => ({
|
|
12933
|
-
id: _optionalChain([howTo, 'optionalAccess',
|
|
12934
|
-
name: _optionalChain([howTo, 'optionalAccess',
|
|
12935
|
-
description: _optionalChain([howTo, 'optionalAccess',
|
|
12936
|
-
pages: _chunkS2PTWBN6js.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess',
|
|
12937
|
-
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12938
|
-
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12939
|
-
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12940
|
-
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12941
|
-
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12942
|
-
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12943
|
-
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13066
|
+
id: _optionalChain([howTo, 'optionalAccess', _355 => _355.id]) || _uuid.v4.call(void 0, ),
|
|
13067
|
+
name: _optionalChain([howTo, 'optionalAccess', _356 => _356.name]) || "",
|
|
13068
|
+
description: _optionalChain([howTo, 'optionalAccess', _357 => _357.description]) || [],
|
|
13069
|
+
pages: _chunkS2PTWBN6js.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _358 => _358.pages])),
|
|
13070
|
+
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _359 => _359.howToType]), () => ( "how-to")),
|
|
13071
|
+
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _360 => _360.slug]), () => ( "")),
|
|
13072
|
+
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _361 => _361.order]), () => ( 0)),
|
|
13073
|
+
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _362 => _362.summary]), () => ( "")),
|
|
13074
|
+
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _363 => _363.tags]), () => ( []))).join(", "),
|
|
13075
|
+
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _364 => _364.contextualKeys]), () => ( []))).join(", "),
|
|
13076
|
+
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _365 => _365.draft]), () => ( false)),
|
|
12944
13077
|
relatedArticles: []
|
|
12945
13078
|
}),
|
|
12946
13079
|
[howTo]
|
|
@@ -12951,7 +13084,7 @@ function HowToEditorInternal({
|
|
|
12951
13084
|
});
|
|
12952
13085
|
const initialRelatedIds = _react.useRef.call(void 0, []);
|
|
12953
13086
|
_react.useEffect.call(void 0, () => {
|
|
12954
|
-
if (!_optionalChain([howTo, 'optionalAccess',
|
|
13087
|
+
if (!_optionalChain([howTo, 'optionalAccess', _366 => _366.howToType]) || !_optionalChain([howTo, 'optionalAccess', _367 => _367.slug])) return;
|
|
12955
13088
|
let active = true;
|
|
12956
13089
|
_chunkS2PTWBN6js.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
|
|
12957
13090
|
if (!active) return;
|
|
@@ -12990,7 +13123,7 @@ function HowToEditorInternal({
|
|
|
12990
13123
|
{
|
|
12991
13124
|
form,
|
|
12992
13125
|
entityType: t(`entities.howtos`, { count: 1 }),
|
|
12993
|
-
entityName: _optionalChain([howTo, 'optionalAccess',
|
|
13126
|
+
entityName: _optionalChain([howTo, 'optionalAccess', _368 => _368.name]),
|
|
12994
13127
|
isEdit: !!howTo,
|
|
12995
13128
|
module: _chunkS2PTWBN6js.Modules.HowTo,
|
|
12996
13129
|
propagateChanges,
|
|
@@ -13371,7 +13504,7 @@ function withPatchedTitle(source, title) {
|
|
|
13371
13504
|
return _chunkS2PTWBN6js.rehydrate.call(void 0, _chunkS2PTWBN6js.Modules.Assistant, {
|
|
13372
13505
|
jsonApi: {
|
|
13373
13506
|
...dehydrated.jsonApi,
|
|
13374
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
13507
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _369 => _369.jsonApi, 'optionalAccess', _370 => _370.attributes]), () => ( {})), title }
|
|
13375
13508
|
},
|
|
13376
13509
|
included: dehydrated.included
|
|
13377
13510
|
});
|
|
@@ -13392,7 +13525,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13392
13525
|
const [status, setStatus] = _react.useState.call(void 0, void 0);
|
|
13393
13526
|
const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
13394
13527
|
const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
|
|
13395
|
-
() => _optionalChain([dehydratedAssistant, 'optionalAccess',
|
|
13528
|
+
() => _optionalChain([dehydratedAssistant, 'optionalAccess', _371 => _371.jsonApi, 'optionalAccess', _372 => _372.attributes, 'optionalAccess', _373 => _373.engine]) === "operator"
|
|
13396
13529
|
);
|
|
13397
13530
|
const { socket } = useSocketContext();
|
|
13398
13531
|
const sendMessage = _react.useCallback.call(void 0,
|
|
@@ -13401,7 +13534,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13401
13534
|
if (!trimmed) return;
|
|
13402
13535
|
const optimistic = _chunkS2PTWBN6js.AssistantMessage.buildOptimistic({
|
|
13403
13536
|
content: trimmed,
|
|
13404
|
-
assistantId: _optionalChain([assistant, 'optionalAccess',
|
|
13537
|
+
assistantId: _optionalChain([assistant, 'optionalAccess', _374 => _374.id]),
|
|
13405
13538
|
position: nextPosition(messages)
|
|
13406
13539
|
});
|
|
13407
13540
|
setMessages((prev) => [...prev, optimistic]);
|
|
@@ -13411,13 +13544,13 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13411
13544
|
if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
|
|
13412
13545
|
if (typeof payload.status === "string") setStatus(payload.status);
|
|
13413
13546
|
}, "handler");
|
|
13414
|
-
_optionalChain([socket, 'optionalAccess',
|
|
13547
|
+
_optionalChain([socket, 'optionalAccess', _375 => _375.on, 'call', _376 => _376("assistant:status", handler)]);
|
|
13415
13548
|
try {
|
|
13416
13549
|
if (!assistant) {
|
|
13417
13550
|
const input = {
|
|
13418
13551
|
firstMessage: trimmed,
|
|
13419
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
13420
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
13552
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _377 => _377.howToMode]),
|
|
13553
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _378 => _378.limitToHowToId])
|
|
13421
13554
|
};
|
|
13422
13555
|
const created = operatorMode ? await _chunkS2PTWBN6js.AssistantService.createOperator(input) : await _chunkS2PTWBN6js.AssistantService.create(input);
|
|
13423
13556
|
const msgs = await _chunkS2PTWBN6js.AssistantMessageService.findByAssistant({ assistantId: created.id });
|
|
@@ -13434,8 +13567,8 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13434
13567
|
}) : await _chunkS2PTWBN6js.AssistantService.appendMessage({
|
|
13435
13568
|
assistantId: assistant.id,
|
|
13436
13569
|
content: trimmed,
|
|
13437
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
13438
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
13570
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _379 => _379.howToMode]),
|
|
13571
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _380 => _380.limitToHowToId])
|
|
13439
13572
|
});
|
|
13440
13573
|
setMessages((prev) => [...stripOptimistic(prev), ...result]);
|
|
13441
13574
|
}
|
|
@@ -13446,7 +13579,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13446
13579
|
return next;
|
|
13447
13580
|
});
|
|
13448
13581
|
} finally {
|
|
13449
|
-
_optionalChain([socket, 'optionalAccess',
|
|
13582
|
+
_optionalChain([socket, 'optionalAccess', _381 => _381.off, 'call', _382 => _382("assistant:status", handler)]);
|
|
13450
13583
|
setSending(false);
|
|
13451
13584
|
setStatus(void 0);
|
|
13452
13585
|
}
|
|
@@ -13504,7 +13637,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13504
13637
|
await _chunkS2PTWBN6js.AssistantService.delete({ id });
|
|
13505
13638
|
setThreads((prev) => prev.filter((t2) => t2.id !== id));
|
|
13506
13639
|
setAssistant((prev) => {
|
|
13507
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
13640
|
+
if (_optionalChain([prev, 'optionalAccess', _383 => _383.id]) === id) {
|
|
13508
13641
|
setMessages([]);
|
|
13509
13642
|
return void 0;
|
|
13510
13643
|
}
|
|
@@ -13724,7 +13857,7 @@ function EditableAvatar({
|
|
|
13724
13857
|
}, [image, isUploading, patchImage, t]);
|
|
13725
13858
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
13726
13859
|
(e) => {
|
|
13727
|
-
const file = _optionalChain([e, 'access',
|
|
13860
|
+
const file = _optionalChain([e, 'access', _384 => _384.target, 'access', _385 => _385.files, 'optionalAccess', _386 => _386[0]]);
|
|
13728
13861
|
if (file) handleFile(file);
|
|
13729
13862
|
e.target.value = "";
|
|
13730
13863
|
},
|
|
@@ -13733,7 +13866,7 @@ function EditableAvatar({
|
|
|
13733
13866
|
const handleDrop = _react.useCallback.call(void 0,
|
|
13734
13867
|
(e) => {
|
|
13735
13868
|
e.preventDefault();
|
|
13736
|
-
const file = _optionalChain([e, 'access',
|
|
13869
|
+
const file = _optionalChain([e, 'access', _387 => _387.dataTransfer, 'access', _388 => _388.files, 'optionalAccess', _389 => _389[0]]);
|
|
13737
13870
|
if (file && file.type.startsWith("image/")) {
|
|
13738
13871
|
handleFile(file);
|
|
13739
13872
|
}
|
|
@@ -13760,7 +13893,7 @@ function EditableAvatar({
|
|
|
13760
13893
|
"button",
|
|
13761
13894
|
{
|
|
13762
13895
|
type: "button",
|
|
13763
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
13896
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _390 => _390.current, 'optionalAccess', _391 => _391.click, 'call', _392 => _392()]),
|
|
13764
13897
|
disabled: isUploading,
|
|
13765
13898
|
className: "rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50",
|
|
13766
13899
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, { className: "h-4 w-4" })
|
|
@@ -13841,7 +13974,7 @@ function BreadcrumbMobile({
|
|
|
13841
13974
|
}
|
|
13842
13975
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
13843
13976
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuTrigger, { className: "text-foreground text-xs/relaxed font-normal hover:bg-accent flex items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors outline-none", children: [
|
|
13844
|
-
_optionalChain([lastItem, 'optionalAccess',
|
|
13977
|
+
_optionalChain([lastItem, 'optionalAccess', _393 => _393.name]),
|
|
13845
13978
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
|
|
13846
13979
|
] }),
|
|
13847
13980
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }, index)) })
|
|
@@ -14146,7 +14279,7 @@ function RoundPageContainer({
|
|
|
14146
14279
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
14147
14280
|
_react.useEffect.call(void 0, () => {
|
|
14148
14281
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${DETAILS_COOKIE_NAME}=`));
|
|
14149
|
-
if (_optionalChain([match, 'optionalAccess',
|
|
14282
|
+
if (_optionalChain([match, 'optionalAccess', _394 => _394.split, 'call', _395 => _395("="), 'access', _396 => _396[1]]) === "true") setShowDetailsState(true);
|
|
14150
14283
|
}, []);
|
|
14151
14284
|
_react.useEffect.call(void 0, () => {
|
|
14152
14285
|
setMounted(true);
|
|
@@ -14158,11 +14291,11 @@ function RoundPageContainer({
|
|
|
14158
14291
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
14159
14292
|
const section = searchParams.get("section");
|
|
14160
14293
|
const rewriteUrl = useUrlRewriter();
|
|
14161
|
-
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access',
|
|
14294
|
+
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _397 => _397.key, 'optionalAccess', _398 => _398.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _399 => _399[0], 'access', _400 => _400.key, 'optionalAccess', _401 => _401.name]), () => ( tabs[0].label))) : void 0;
|
|
14162
14295
|
const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
|
|
14163
14296
|
_react.useEffect.call(void 0, () => {
|
|
14164
14297
|
if (tabs && section) {
|
|
14165
|
-
const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access',
|
|
14298
|
+
const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _402 => _402.key, 'optionalAccess', _403 => _403.name]), () => ( i.label))) === section);
|
|
14166
14299
|
if (tab) {
|
|
14167
14300
|
setActiveTab(section);
|
|
14168
14301
|
}
|
|
@@ -14175,7 +14308,7 @@ function RoundPageContainer({
|
|
|
14175
14308
|
},
|
|
14176
14309
|
[module, id, rewriteUrl]
|
|
14177
14310
|
);
|
|
14178
|
-
const activeFillHeight = _optionalChain([tabs, 'optionalAccess',
|
|
14311
|
+
const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _404 => _404.find, 'call', _405 => _405((t) => (_nullishCoalesce(_optionalChain([t, 'access', _406 => _406.key, 'optionalAccess', _407 => _407.name]), () => ( t.label))) === activeTab), 'optionalAccess', _408 => _408.fillHeight]) === true;
|
|
14179
14312
|
const isReady = mounted && isMobile !== void 0;
|
|
14180
14313
|
if (!isReady) {
|
|
14181
14314
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -14233,10 +14366,10 @@ function RoundPageContainer({
|
|
|
14233
14366
|
},
|
|
14234
14367
|
children: [
|
|
14235
14368
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
|
|
14236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
14369
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access', _409 => _409.key, 'optionalAccess', _410 => _410.name]), () => ( tab.label)), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) })
|
|
14237
14370
|
]
|
|
14238
14371
|
}
|
|
14239
|
-
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
14372
|
+
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access', _411 => _411.key, 'optionalAccess', _412 => _412.name]), () => ( tab.label)), className: "px-4", children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
|
|
14240
14373
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14241
14374
|
"div",
|
|
14242
14375
|
{
|
|
@@ -14248,7 +14381,7 @@ function RoundPageContainer({
|
|
|
14248
14381
|
children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14249
14382
|
TabsContent,
|
|
14250
14383
|
{
|
|
14251
|
-
value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
14384
|
+
value: _nullishCoalesce(_optionalChain([tab, 'access', _413 => _413.key, 'optionalAccess', _414 => _414.name]), () => ( tab.label)),
|
|
14252
14385
|
className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
|
|
14253
14386
|
children: tab.content
|
|
14254
14387
|
},
|
|
@@ -14377,14 +14510,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
14377
14510
|
const entityType = target.dataset.mentionType;
|
|
14378
14511
|
const alias = target.dataset.mentionAlias;
|
|
14379
14512
|
setHovered((prev) => {
|
|
14380
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
14513
|
+
if (_optionalChain([prev, 'optionalAccess', _415 => _415.id]) === id && _optionalChain([prev, 'optionalAccess', _416 => _416.element]) === target) return prev;
|
|
14381
14514
|
return { id, entityType, alias, element: target };
|
|
14382
14515
|
});
|
|
14383
14516
|
}, "handleMouseOver");
|
|
14384
14517
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
14385
14518
|
const target = e.target.closest("[data-mention-id]");
|
|
14386
14519
|
if (!target) return;
|
|
14387
|
-
const related = _optionalChain([e, 'access',
|
|
14520
|
+
const related = _optionalChain([e, 'access', _417 => _417.relatedTarget, 'optionalAccess', _418 => _418.closest, 'call', _419 => _419("[data-mention-id]")]);
|
|
14388
14521
|
if (related) return;
|
|
14389
14522
|
scheduleClose();
|
|
14390
14523
|
}, "handleMouseOut");
|
|
@@ -14398,7 +14531,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
14398
14531
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
14399
14532
|
if (!hovered || !mentionResolveFn) return null;
|
|
14400
14533
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
14401
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
14534
|
+
if (!_optionalChain([resolved, 'optionalAccess', _420 => _420.HoverContent])) return null;
|
|
14402
14535
|
const ContentComponent = resolved.HoverContent;
|
|
14403
14536
|
const rect = hovered.element.getBoundingClientRect();
|
|
14404
14537
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -14441,28 +14574,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
14441
14574
|
}, "parseMentionElement");
|
|
14442
14575
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
14443
14576
|
const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
14444
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
14577
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _421 => _421(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
14445
14578
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
|
|
14446
14579
|
"@",
|
|
14447
14580
|
displayName
|
|
14448
14581
|
] });
|
|
14449
14582
|
}, "MentionExternalHTML");
|
|
14450
14583
|
const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
14451
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
14584
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _422 => _422(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
14452
14585
|
if (disableMention) {
|
|
14453
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
14454
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
14586
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _423 => _423(props.id, props.entityType, displayName)]);
|
|
14587
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _424 => _424.url]), () => ( "#")), className: "text-primary", children: [
|
|
14455
14588
|
"@",
|
|
14456
14589
|
displayName
|
|
14457
14590
|
] });
|
|
14458
14591
|
}
|
|
14459
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
14460
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
14592
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _425 => _425(props.id, props.entityType, displayName)]);
|
|
14593
|
+
if (_optionalChain([resolved, 'optionalAccess', _426 => _426.Inline])) {
|
|
14461
14594
|
const Custom = resolved.Inline;
|
|
14462
14595
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
14463
14596
|
}
|
|
14464
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
14465
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
14597
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _427 => _427.url]), () => ( "#"));
|
|
14598
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _428 => _428.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
14466
14599
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14467
14600
|
_link2.default,
|
|
14468
14601
|
{
|
|
@@ -14568,7 +14701,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
14568
14701
|
if (!suggestionMenuComponent) return void 0;
|
|
14569
14702
|
const Component2 = suggestionMenuComponent;
|
|
14570
14703
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
14571
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
14704
|
+
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _429 => _429.items, 'access', _430 => _430[0], 'optionalAccess', _431 => _431.title]) === KEEP_OPEN_SENTINEL_TITLE;
|
|
14572
14705
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14573
14706
|
Component2,
|
|
14574
14707
|
{
|
|
@@ -14577,7 +14710,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
14577
14710
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
14578
14711
|
onItemClick: (item) => {
|
|
14579
14712
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
14580
|
-
_optionalChain([props, 'access',
|
|
14713
|
+
_optionalChain([props, 'access', _432 => _432.onItemClick, 'optionalCall', _433 => _433(item)]);
|
|
14581
14714
|
}
|
|
14582
14715
|
}
|
|
14583
14716
|
);
|
|
@@ -14771,10 +14904,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
14771
14904
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14772
14905
|
Checkbox,
|
|
14773
14906
|
{
|
|
14774
|
-
checked: _optionalChain([params, 'access',
|
|
14907
|
+
checked: _optionalChain([params, 'access', _434 => _434.checkedIds, 'optionalAccess', _435 => _435.includes, 'call', _436 => _436(row.getValue(params.name))]) || false,
|
|
14775
14908
|
onCheckedChange: (value) => {
|
|
14776
14909
|
row.toggleSelected(!!value);
|
|
14777
|
-
_optionalChain([params, 'access',
|
|
14910
|
+
_optionalChain([params, 'access', _437 => _437.toggleId, 'optionalCall', _438 => _438(row.getValue(params.name))]);
|
|
14778
14911
|
},
|
|
14779
14912
|
"aria-label": "Select row"
|
|
14780
14913
|
}
|
|
@@ -14833,7 +14966,7 @@ function useJsonApiGet(params) {
|
|
|
14833
14966
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
14834
14967
|
const isMounted = _react.useRef.call(void 0, true);
|
|
14835
14968
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
14836
|
-
if (_optionalChain([params, 'access',
|
|
14969
|
+
if (_optionalChain([params, 'access', _439 => _439.options, 'optionalAccess', _440 => _440.enabled]) === false) return;
|
|
14837
14970
|
setLoading(true);
|
|
14838
14971
|
setError(null);
|
|
14839
14972
|
try {
|
|
@@ -14860,9 +14993,9 @@ function useJsonApiGet(params) {
|
|
|
14860
14993
|
setLoading(false);
|
|
14861
14994
|
}
|
|
14862
14995
|
}
|
|
14863
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
14996
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _441 => _441.options, 'optionalAccess', _442 => _442.enabled])]);
|
|
14864
14997
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
14865
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
14998
|
+
if (!_optionalChain([response, 'optionalAccess', _443 => _443.nextPage])) return;
|
|
14866
14999
|
setLoading(true);
|
|
14867
15000
|
try {
|
|
14868
15001
|
const nextResponse = await response.nextPage();
|
|
@@ -14883,7 +15016,7 @@ function useJsonApiGet(params) {
|
|
|
14883
15016
|
}
|
|
14884
15017
|
}, [response]);
|
|
14885
15018
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
14886
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
15019
|
+
if (!_optionalChain([response, 'optionalAccess', _444 => _444.prevPage])) return;
|
|
14887
15020
|
setLoading(true);
|
|
14888
15021
|
try {
|
|
14889
15022
|
const prevResponse = await response.prevPage();
|
|
@@ -14909,15 +15042,15 @@ function useJsonApiGet(params) {
|
|
|
14909
15042
|
return () => {
|
|
14910
15043
|
isMounted.current = false;
|
|
14911
15044
|
};
|
|
14912
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
15045
|
+
}, [fetchData, ..._optionalChain([params, 'access', _445 => _445.options, 'optionalAccess', _446 => _446.deps]) || []]);
|
|
14913
15046
|
return {
|
|
14914
15047
|
data,
|
|
14915
15048
|
loading,
|
|
14916
15049
|
error,
|
|
14917
15050
|
response,
|
|
14918
15051
|
refetch: fetchData,
|
|
14919
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
14920
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
15052
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _447 => _447.next]),
|
|
15053
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _448 => _448.prev]),
|
|
14921
15054
|
fetchNextPage,
|
|
14922
15055
|
fetchPreviousPage
|
|
14923
15056
|
};
|
|
@@ -14995,17 +15128,17 @@ function useJsonApiMutation(config) {
|
|
|
14995
15128
|
if (apiResponse.ok) {
|
|
14996
15129
|
const resultData = apiResponse.data;
|
|
14997
15130
|
setData(resultData);
|
|
14998
|
-
_optionalChain([config, 'access',
|
|
15131
|
+
_optionalChain([config, 'access', _449 => _449.onSuccess, 'optionalCall', _450 => _450(resultData)]);
|
|
14999
15132
|
return resultData;
|
|
15000
15133
|
} else {
|
|
15001
15134
|
setError(apiResponse.error);
|
|
15002
|
-
_optionalChain([config, 'access',
|
|
15135
|
+
_optionalChain([config, 'access', _451 => _451.onError, 'optionalCall', _452 => _452(apiResponse.error)]);
|
|
15003
15136
|
return null;
|
|
15004
15137
|
}
|
|
15005
15138
|
} catch (err) {
|
|
15006
15139
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
15007
15140
|
setError(errorMessage);
|
|
15008
|
-
_optionalChain([config, 'access',
|
|
15141
|
+
_optionalChain([config, 'access', _453 => _453.onError, 'optionalCall', _454 => _454(errorMessage)]);
|
|
15009
15142
|
return null;
|
|
15010
15143
|
} finally {
|
|
15011
15144
|
setLoading(false);
|
|
@@ -15078,7 +15211,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
15078
15211
|
{
|
|
15079
15212
|
href: hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
15080
15213
|
page: "/administration",
|
|
15081
|
-
id: _optionalChain([_chunkS2PTWBN6js.Modules, 'access',
|
|
15214
|
+
id: _optionalChain([_chunkS2PTWBN6js.Modules, 'access', _455 => _455.Company, 'access', _456 => _456.pageUrl, 'optionalAccess', _457 => _457.substring, 'call', _458 => _458(1)]),
|
|
15082
15215
|
childPage: company.id
|
|
15083
15216
|
}) : generateUrl({ page: _chunkS2PTWBN6js.Modules.Company, id: company.id }),
|
|
15084
15217
|
children: row.getValue("name")
|
|
@@ -15094,7 +15227,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
15094
15227
|
})
|
|
15095
15228
|
};
|
|
15096
15229
|
const columns = _react.useMemo.call(void 0, () => {
|
|
15097
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
15230
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _459 => _459[field], 'optionalCall', _460 => _460()])).filter((col) => col !== void 0);
|
|
15098
15231
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
15099
15232
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
15100
15233
|
}, "useCompanyTableStructure");
|
|
@@ -15106,7 +15239,7 @@ var GRACE_DAYS = 3;
|
|
|
15106
15239
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
15107
15240
|
if (!currentUser || !_chunk6KLR3WJQjs.isRolesConfigured.call(void 0, )) return false;
|
|
15108
15241
|
const adminRoleId = _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator;
|
|
15109
|
-
return !!_optionalChain([currentUser, 'access',
|
|
15242
|
+
return !!_optionalChain([currentUser, 'access', _461 => _461.roles, 'optionalAccess', _462 => _462.some, 'call', _463 => _463((role) => role.id === adminRoleId)]);
|
|
15110
15243
|
}, "isAdministrator");
|
|
15111
15244
|
function useSubscriptionStatus() {
|
|
15112
15245
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -15223,7 +15356,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
15223
15356
|
})
|
|
15224
15357
|
};
|
|
15225
15358
|
const columns = _react.useMemo.call(void 0, () => {
|
|
15226
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
15359
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _464 => _464[field], 'optionalCall', _465 => _465()])).filter((col) => col !== void 0);
|
|
15227
15360
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
15228
15361
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
15229
15362
|
}, "useRoleTableStructure");
|
|
@@ -15324,11 +15457,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
15324
15457
|
return params.fields.map((field) => {
|
|
15325
15458
|
const localHandler = fieldColumnMap[field];
|
|
15326
15459
|
if (localHandler) return localHandler();
|
|
15327
|
-
const customHandler = _optionalChain([params, 'access',
|
|
15460
|
+
const customHandler = _optionalChain([params, 'access', _466 => _466.context, 'optionalAccess', _467 => _467.customCells, 'optionalAccess', _468 => _468[field]]);
|
|
15328
15461
|
if (customHandler) return customHandler({ t });
|
|
15329
15462
|
return void 0;
|
|
15330
15463
|
}).filter((col) => col !== void 0);
|
|
15331
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
15464
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _469 => _469.context, 'optionalAccess', _470 => _470.customCells])]);
|
|
15332
15465
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
15333
15466
|
}, "useContentTableStructure");
|
|
15334
15467
|
|
|
@@ -15663,7 +15796,7 @@ function ContentTableSearch({ data }) {
|
|
|
15663
15796
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
15664
15797
|
if (!isExpanded) {
|
|
15665
15798
|
setIsFocused(true);
|
|
15666
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
15799
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _471 => _471.current, 'optionalAccess', _472 => _472.focus, 'call', _473 => _473()]), 50);
|
|
15667
15800
|
}
|
|
15668
15801
|
}, "handleSearchIconClick");
|
|
15669
15802
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -15740,7 +15873,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15740
15873
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
15741
15874
|
);
|
|
15742
15875
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
15743
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15876
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _474 => _474.data]), () => ( EMPTY_ARRAY)),
|
|
15744
15877
|
fields,
|
|
15745
15878
|
checkedIds,
|
|
15746
15879
|
toggleId,
|
|
@@ -15773,7 +15906,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15773
15906
|
});
|
|
15774
15907
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
15775
15908
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
15776
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
15909
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _475 => _475.rows, 'optionalAccess', _476 => _476.length])) return null;
|
|
15777
15910
|
const groupMap = /* @__PURE__ */ new Map();
|
|
15778
15911
|
for (const row of rowModel.rows) {
|
|
15779
15912
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -15829,10 +15962,10 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15829
15962
|
) }),
|
|
15830
15963
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
15831
15964
|
const meta = header.column.columnDef.meta;
|
|
15832
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
15965
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _477 => _477.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
15833
15966
|
}) }, headerGroup.id))
|
|
15834
15967
|
] }),
|
|
15835
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
15968
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _478 => _478.rows, 'optionalAccess', _479 => _479.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
|
|
15836
15969
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15837
15970
|
TableCell,
|
|
15838
15971
|
{
|
|
@@ -15843,11 +15976,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15843
15976
|
) }),
|
|
15844
15977
|
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
15845
15978
|
const meta = cell.column.columnDef.meta;
|
|
15846
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
15979
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _480 => _480.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
15847
15980
|
}) }, row.id))
|
|
15848
15981
|
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
15849
15982
|
const meta = cell.column.columnDef.meta;
|
|
15850
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
15983
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _481 => _481.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
15851
15984
|
}) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: _nullishCoalesce(props.emptyState, () => ( "No results.")) }) }) }),
|
|
15852
15985
|
showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
|
|
15853
15986
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15857,7 +15990,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15857
15990
|
size: "sm",
|
|
15858
15991
|
onClick: (e) => {
|
|
15859
15992
|
e.preventDefault();
|
|
15860
|
-
_optionalChain([data, 'access',
|
|
15993
|
+
_optionalChain([data, 'access', _482 => _482.previous, 'optionalCall', _483 => _483(true)]);
|
|
15861
15994
|
},
|
|
15862
15995
|
disabled: !data.previous,
|
|
15863
15996
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -15871,7 +16004,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15871
16004
|
size: "sm",
|
|
15872
16005
|
onClick: (e) => {
|
|
15873
16006
|
e.preventDefault();
|
|
15874
|
-
_optionalChain([data, 'access',
|
|
16007
|
+
_optionalChain([data, 'access', _484 => _484.next, 'optionalCall', _485 => _485(true)]);
|
|
15875
16008
|
},
|
|
15876
16009
|
disabled: !data.next,
|
|
15877
16010
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -15892,7 +16025,7 @@ function ContentListGrid(props) {
|
|
|
15892
16025
|
if (!data.next || !sentinelRef.current) return;
|
|
15893
16026
|
const observer = new IntersectionObserver(
|
|
15894
16027
|
(entries) => {
|
|
15895
|
-
if (_optionalChain([entries, 'access',
|
|
16028
|
+
if (_optionalChain([entries, 'access', _486 => _486[0], 'optionalAccess', _487 => _487.isIntersecting])) _optionalChain([data, 'access', _488 => _488.next, 'optionalCall', _489 => _489()]);
|
|
15896
16029
|
},
|
|
15897
16030
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
15898
16031
|
);
|
|
@@ -16642,7 +16775,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
16642
16775
|
newDigits[index] = digit;
|
|
16643
16776
|
setDigits(newDigits);
|
|
16644
16777
|
if (digit && index < 5) {
|
|
16645
|
-
_optionalChain([inputRefs, 'access',
|
|
16778
|
+
_optionalChain([inputRefs, 'access', _490 => _490.current, 'access', _491 => _491[index + 1], 'optionalAccess', _492 => _492.focus, 'call', _493 => _493()]);
|
|
16646
16779
|
}
|
|
16647
16780
|
const code = newDigits.join("");
|
|
16648
16781
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -16651,7 +16784,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
16651
16784
|
}, "handleChange");
|
|
16652
16785
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
16653
16786
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
16654
|
-
_optionalChain([inputRefs, 'access',
|
|
16787
|
+
_optionalChain([inputRefs, 'access', _494 => _494.current, 'access', _495 => _495[index - 1], 'optionalAccess', _496 => _496.focus, 'call', _497 => _497()]);
|
|
16655
16788
|
}
|
|
16656
16789
|
}, "handleKeyDown");
|
|
16657
16790
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -16660,7 +16793,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
16660
16793
|
if (pastedData.length === 6) {
|
|
16661
16794
|
const newDigits = pastedData.split("");
|
|
16662
16795
|
setDigits(newDigits);
|
|
16663
|
-
_optionalChain([inputRefs, 'access',
|
|
16796
|
+
_optionalChain([inputRefs, 'access', _498 => _498.current, 'access', _499 => _499[5], 'optionalAccess', _500 => _500.focus, 'call', _501 => _501()]);
|
|
16664
16797
|
onComplete(pastedData);
|
|
16665
16798
|
}
|
|
16666
16799
|
}, "handlePaste");
|
|
@@ -16871,8 +17004,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
16871
17004
|
try {
|
|
16872
17005
|
const registrationData = await _chunkS2PTWBN6js.TwoFactorService.getPasskeyRegistrationOptions({
|
|
16873
17006
|
id: _uuid.v4.call(void 0, ),
|
|
16874
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
16875
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
17007
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _502 => _502.email]), () => ( "")),
|
|
17008
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _503 => _503.name])
|
|
16876
17009
|
});
|
|
16877
17010
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
16878
17011
|
await _chunkS2PTWBN6js.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -17023,7 +17156,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
17023
17156
|
const setup = await _chunkS2PTWBN6js.TwoFactorService.setupTotp({
|
|
17024
17157
|
id: _uuid.v4.call(void 0, ),
|
|
17025
17158
|
name: name.trim(),
|
|
17026
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
17159
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _504 => _504.email]), () => ( ""))
|
|
17027
17160
|
});
|
|
17028
17161
|
setQrCodeUri(setup.qrCodeUri);
|
|
17029
17162
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -17157,7 +17290,7 @@ function TwoFactorSettings() {
|
|
|
17157
17290
|
if (isLoading) {
|
|
17158
17291
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground", children: t("common.loading") }) }) });
|
|
17159
17292
|
}
|
|
17160
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
17293
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _505 => _505.isEnabled]), () => ( false));
|
|
17161
17294
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
17162
17295
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
17163
17296
|
isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "h-6 w-6 text-green-600" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "h-6 w-6 text-yellow-600" }),
|
|
@@ -17195,7 +17328,7 @@ function TwoFactorSettings() {
|
|
|
17195
17328
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
17196
17329
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
17197
17330
|
] }),
|
|
17198
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
17331
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _506 => _506.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
17199
17332
|
] }) }),
|
|
17200
17333
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
17201
17334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -17373,9 +17506,9 @@ function AcceptInvitation() {
|
|
|
17373
17506
|
});
|
|
17374
17507
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
17375
17508
|
try {
|
|
17376
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
17509
|
+
if (!_optionalChain([params, 'optionalAccess', _507 => _507.code])) return;
|
|
17377
17510
|
const payload = {
|
|
17378
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
17511
|
+
code: _optionalChain([params, 'optionalAccess', _508 => _508.code]),
|
|
17379
17512
|
password: values.password
|
|
17380
17513
|
};
|
|
17381
17514
|
await _chunkS2PTWBN6js.AuthService.acceptInvitation(payload);
|
|
@@ -17725,7 +17858,7 @@ function Logout({ storageKeys }) {
|
|
|
17725
17858
|
const generateUrl = usePageUrlGenerator();
|
|
17726
17859
|
_react.useEffect.call(void 0, () => {
|
|
17727
17860
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
17728
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
17861
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _509 => _509.length])) {
|
|
17729
17862
|
clearClientStorage(storageKeys);
|
|
17730
17863
|
}
|
|
17731
17864
|
await _chunkS2PTWBN6js.AuthService.logout();
|
|
@@ -17748,14 +17881,14 @@ function RefreshUser() {
|
|
|
17748
17881
|
setUser(fullUser);
|
|
17749
17882
|
const token = {
|
|
17750
17883
|
userId: fullUser.id,
|
|
17751
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
17884
|
+
companyId: _optionalChain([fullUser, 'access', _510 => _510.company, 'optionalAccess', _511 => _511.id]),
|
|
17752
17885
|
roles: fullUser.roles.map((role) => role.id),
|
|
17753
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
17886
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _512 => _512.company, 'optionalAccess', _513 => _513.features, 'optionalAccess', _514 => _514.map, 'call', _515 => _515((feature) => feature.id)]), () => ( [])),
|
|
17754
17887
|
modules: fullUser.modules.map((module) => {
|
|
17755
17888
|
return { id: module.id, permissions: module.permissions };
|
|
17756
17889
|
})
|
|
17757
17890
|
};
|
|
17758
|
-
await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
17891
|
+
await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess', _516 => _516.updateToken, 'call', _517 => _517(token)]);
|
|
17759
17892
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
17760
17893
|
}
|
|
17761
17894
|
}, "loadFullUser");
|
|
@@ -17819,9 +17952,9 @@ function ResetPassword() {
|
|
|
17819
17952
|
});
|
|
17820
17953
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
17821
17954
|
try {
|
|
17822
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
17955
|
+
if (!_optionalChain([params, 'optionalAccess', _518 => _518.code])) return;
|
|
17823
17956
|
const payload = {
|
|
17824
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
17957
|
+
code: _optionalChain([params, 'optionalAccess', _519 => _519.code]),
|
|
17825
17958
|
password: values.password
|
|
17826
17959
|
};
|
|
17827
17960
|
await _chunkS2PTWBN6js.AuthService.resetPassword(payload);
|
|
@@ -18170,7 +18303,7 @@ function extractHeadings(blocks) {
|
|
|
18170
18303
|
function processBlocks(blockArray) {
|
|
18171
18304
|
for (const block of blockArray) {
|
|
18172
18305
|
if (block.type === "heading") {
|
|
18173
|
-
const level = _optionalChain([block, 'access',
|
|
18306
|
+
const level = _optionalChain([block, 'access', _520 => _520.props, 'optionalAccess', _521 => _521.level]) || 1;
|
|
18174
18307
|
const text = extractTextFromContent(block.content);
|
|
18175
18308
|
if (text.trim()) {
|
|
18176
18309
|
headings.push({
|
|
@@ -18513,7 +18646,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
18513
18646
|
})
|
|
18514
18647
|
};
|
|
18515
18648
|
const columns = _react.useMemo.call(void 0, () => {
|
|
18516
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
18649
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _522 => _522[field], 'optionalCall', _523 => _523()])).filter((col) => col !== void 0);
|
|
18517
18650
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
18518
18651
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
18519
18652
|
}, "useHowToTableStructure");
|
|
@@ -18612,7 +18745,7 @@ function HowToSelector({
|
|
|
18612
18745
|
}, "setHowTo");
|
|
18613
18746
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
18614
18747
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
18615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
18748
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _524 => _524.value, 'optionalAccess', _525 => _525.name]), () => ( "")) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`generic.search.placeholder`, { type: t(`entities.howtos`, { count: 1 }) }))) }) }) }),
|
|
18616
18749
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18617
18750
|
_lucidereact.CircleX,
|
|
18618
18751
|
{
|
|
@@ -18981,9 +19114,9 @@ function CitationsTab({ citations, sources }) {
|
|
|
18981
19114
|
] }) }),
|
|
18982
19115
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
18983
19116
|
const isOpen = expanded.has(chunk.id);
|
|
18984
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
19117
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _526 => _526.get, 'call', _527 => _527(chunk.nodeId)]) : void 0;
|
|
18985
19118
|
const fallbackName = chunk.nodeId ? `${_nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")))} ${chunk.nodeId.slice(0, 8)}` : _nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")));
|
|
18986
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
19119
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _528 => _528.name]), () => ( fallbackName));
|
|
18987
19120
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
18988
19121
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
18989
19122
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -19030,7 +19163,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
19030
19163
|
for (const c of citations) {
|
|
19031
19164
|
const id = c.nodeId;
|
|
19032
19165
|
if (!id) continue;
|
|
19033
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
19166
|
+
const source = _optionalChain([sources, 'optionalAccess', _529 => _529.get, 'call', _530 => _530(id)]);
|
|
19034
19167
|
if (!source) continue;
|
|
19035
19168
|
const existing = map.get(id);
|
|
19036
19169
|
if (existing) {
|
|
@@ -19097,7 +19230,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
19097
19230
|
const generate = usePageUrlGenerator();
|
|
19098
19231
|
const userMap = /* @__PURE__ */ new Map();
|
|
19099
19232
|
for (const u of users) {
|
|
19100
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
19233
|
+
if (!_optionalChain([u, 'optionalAccess', _531 => _531.id])) continue;
|
|
19101
19234
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
19102
19235
|
}
|
|
19103
19236
|
if (citations && sources) {
|
|
@@ -19202,7 +19335,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
19202
19335
|
}
|
|
19203
19336
|
return ids.size;
|
|
19204
19337
|
}, [message.citations, sources]);
|
|
19205
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
19338
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _532 => _532.length]), () => ( 0));
|
|
19206
19339
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
19207
19340
|
const visibleTabs = [];
|
|
19208
19341
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -19262,8 +19395,8 @@ var SourcesFetcher = class extends _chunkS2PTWBN6js.ClientAbstractService {
|
|
|
19262
19395
|
const endpoint = new (0, _chunkS2PTWBN6js.EndpointCreator)({ endpoint: params.module });
|
|
19263
19396
|
endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
|
|
19264
19397
|
endpoint.addAdditionalParam("fetchAll", "true");
|
|
19265
|
-
if (_optionalChain([params, 'access',
|
|
19266
|
-
if (_optionalChain([params, 'access',
|
|
19398
|
+
if (_optionalChain([params, 'access', _533 => _533.module, 'access', _534 => _534.inclusions, 'optionalAccess', _535 => _535.lists, 'optionalAccess', _536 => _536.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
|
|
19399
|
+
if (_optionalChain([params, 'access', _537 => _537.module, 'access', _538 => _538.inclusions, 'optionalAccess', _539 => _539.lists, 'optionalAccess', _540 => _540.types])) endpoint.limitToType(params.module.inclusions.lists.types);
|
|
19267
19400
|
return this.callApi({
|
|
19268
19401
|
type: params.module,
|
|
19269
19402
|
method: "GET" /* GET */,
|
|
@@ -19342,7 +19475,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
19342
19475
|
return void 0;
|
|
19343
19476
|
}
|
|
19344
19477
|
})()));
|
|
19345
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
19478
|
+
if (_optionalChain([author, 'optionalAccess', _541 => _541.id])) userMap.set(author.id, author);
|
|
19346
19479
|
}
|
|
19347
19480
|
return Array.from(userMap.values());
|
|
19348
19481
|
}, [resolved]);
|
|
@@ -19371,14 +19504,14 @@ function MessageItem({
|
|
|
19371
19504
|
}) {
|
|
19372
19505
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
19373
19506
|
const isUser = message.role === "user";
|
|
19374
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
19507
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _542 => _542.has, 'call', _543 => _543(message.id)]);
|
|
19375
19508
|
if (isUser) {
|
|
19376
19509
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
|
|
19377
19510
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary text-primary-foreground max-w-[72%] rounded-2xl rounded-br-sm px-3.5 py-2 text-sm", children: message.content }),
|
|
19378
19511
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
19379
19512
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
19380
19513
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
19381
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
19514
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _544 => _544(message.id)]), children: t("features.assistant.retry") })
|
|
19382
19515
|
] })
|
|
19383
19516
|
] });
|
|
19384
19517
|
}
|
|
@@ -19454,7 +19587,7 @@ function AssistantThread({
|
|
|
19454
19587
|
}) {
|
|
19455
19588
|
const endRef = _react.useRef.call(void 0, null);
|
|
19456
19589
|
_react.useEffect.call(void 0, () => {
|
|
19457
|
-
_optionalChain([endRef, 'access',
|
|
19590
|
+
_optionalChain([endRef, 'access', _545 => _545.current, 'optionalAccess', _546 => _546.scrollIntoView, 'call', _547 => _547({ behavior: "smooth" })]);
|
|
19458
19591
|
}, [messages.length, sending]);
|
|
19459
19592
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 overflow-x-hidden overflow-y-auto px-6 py-5", children: [
|
|
19460
19593
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19483,7 +19616,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
|
|
|
19483
19616
|
AssistantSidebar,
|
|
19484
19617
|
{
|
|
19485
19618
|
threads: ctx.threads,
|
|
19486
|
-
activeId: _optionalChain([ctx, 'access',
|
|
19619
|
+
activeId: _optionalChain([ctx, 'access', _548 => _548.assistant, 'optionalAccess', _549 => _549.id]),
|
|
19487
19620
|
onSelect: ctx.selectThread,
|
|
19488
19621
|
onNew: ctx.startNew
|
|
19489
19622
|
}
|
|
@@ -19584,14 +19717,14 @@ function NotificationsList({ archived }) {
|
|
|
19584
19717
|
] }),
|
|
19585
19718
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
19586
19719
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
19587
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
19720
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _550 => _550.data, 'optionalAccess', _551 => _551.map, 'call', _552 => _552((notification) => {
|
|
19588
19721
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
19589
19722
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
|
|
19590
19723
|
notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkS2PTWBN6js.Modules.User, id: notificationData.actor.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: notificationData.actor, className: "h-8 w-8" }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-14 max-w-14 px-2" }),
|
|
19591
19724
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
19592
19725
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
19593
19726
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
19594
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
19727
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _553 => _553.actor, 'optionalAccess', _554 => _554.name]), () => ( "")),
|
|
19595
19728
|
title: notificationData.title
|
|
19596
19729
|
}) }),
|
|
19597
19730
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -19937,7 +20070,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
19937
20070
|
invalidEmail: "Please enter a valid email address"
|
|
19938
20071
|
};
|
|
19939
20072
|
async function copyToClipboard(text) {
|
|
19940
|
-
if (_optionalChain([navigator, 'access',
|
|
20073
|
+
if (_optionalChain([navigator, 'access', _555 => _555.clipboard, 'optionalAccess', _556 => _556.writeText])) {
|
|
19941
20074
|
try {
|
|
19942
20075
|
await navigator.clipboard.writeText(text);
|
|
19943
20076
|
return true;
|
|
@@ -19979,7 +20112,7 @@ function ReferralWidget({
|
|
|
19979
20112
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
19980
20113
|
const config = _chunk6KLR3WJQjs.getReferralConfig.call(void 0, );
|
|
19981
20114
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
19982
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
20115
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _557 => _557.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
19983
20116
|
if (!_chunk6KLR3WJQjs.isReferralEnabled.call(void 0, )) {
|
|
19984
20117
|
return null;
|
|
19985
20118
|
}
|
|
@@ -19989,7 +20122,7 @@ function ReferralWidget({
|
|
|
19989
20122
|
if (success) {
|
|
19990
20123
|
setCopied(true);
|
|
19991
20124
|
_chunkS2PTWBN6js.showToast.call(void 0, t.copiedMessage);
|
|
19992
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
20125
|
+
_optionalChain([onLinkCopied, 'optionalCall', _558 => _558()]);
|
|
19993
20126
|
setTimeout(() => setCopied(false), 2e3);
|
|
19994
20127
|
} else {
|
|
19995
20128
|
_chunkS2PTWBN6js.showError.call(void 0, t.copyError);
|
|
@@ -20003,12 +20136,12 @@ function ReferralWidget({
|
|
|
20003
20136
|
try {
|
|
20004
20137
|
await sendInvite(email);
|
|
20005
20138
|
_chunkS2PTWBN6js.showToast.call(void 0, t.inviteSent);
|
|
20006
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
20139
|
+
_optionalChain([onInviteSent, 'optionalCall', _559 => _559(email)]);
|
|
20007
20140
|
setEmail("");
|
|
20008
20141
|
} catch (err) {
|
|
20009
20142
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
20010
20143
|
_chunkS2PTWBN6js.showError.call(void 0, error2.message);
|
|
20011
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
20144
|
+
_optionalChain([onInviteError, 'optionalCall', _560 => _560(error2)]);
|
|
20012
20145
|
}
|
|
20013
20146
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
20014
20147
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -20762,7 +20895,7 @@ function OAuthClientList({
|
|
|
20762
20895
|
OAuthClientCard,
|
|
20763
20896
|
{
|
|
20764
20897
|
client,
|
|
20765
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
20898
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _561 => _561(client)]),
|
|
20766
20899
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
20767
20900
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
20768
20901
|
},
|
|
@@ -20778,11 +20911,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
20778
20911
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
20779
20912
|
const isEditMode = !!client;
|
|
20780
20913
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
20781
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
20782
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
20783
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
20784
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
20785
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
20914
|
+
name: _optionalChain([client, 'optionalAccess', _562 => _562.name]) || "",
|
|
20915
|
+
description: _optionalChain([client, 'optionalAccess', _563 => _563.description]) || "",
|
|
20916
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _564 => _564.redirectUris, 'optionalAccess', _565 => _565.length]) ? client.redirectUris : [""],
|
|
20917
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _566 => _566.allowedScopes]) || [],
|
|
20918
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _567 => _567.isConfidential]), () => ( true))
|
|
20786
20919
|
});
|
|
20787
20920
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
20788
20921
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -21010,7 +21143,7 @@ function OAuthClientDetail({
|
|
|
21010
21143
|
] }),
|
|
21011
21144
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21012
21145
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
21013
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkS2PTWBN6js.OAUTH_SCOPE_DISPLAY, 'access',
|
|
21146
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkS2PTWBN6js.OAUTH_SCOPE_DISPLAY, 'access', _568 => _568[scope], 'optionalAccess', _569 => _569.name]) || scope }, scope)) })
|
|
21014
21147
|
] }),
|
|
21015
21148
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21016
21149
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -21154,7 +21287,7 @@ function OAuthConsentScreen({
|
|
|
21154
21287
|
if (error || !clientInfo) {
|
|
21155
21288
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "py-8", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Alert, { variant: "destructive", children: [
|
|
21156
21289
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
21157
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
21290
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _570 => _570.message]) || "Invalid authorization request. Please try again." })
|
|
21158
21291
|
] }) }) }) });
|
|
21159
21292
|
}
|
|
21160
21293
|
const { client, scopes } = clientInfo;
|
|
@@ -21370,7 +21503,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
21370
21503
|
questionnaire: values.questionnaire
|
|
21371
21504
|
});
|
|
21372
21505
|
setIsSuccess(true);
|
|
21373
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
21506
|
+
_optionalChain([onSuccess, 'optionalCall', _571 => _571()]);
|
|
21374
21507
|
} catch (e) {
|
|
21375
21508
|
errorToast({ error: e });
|
|
21376
21509
|
} finally {
|
|
@@ -22008,7 +22141,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
22008
22141
|
] }),
|
|
22009
22142
|
roleIds.map((roleId) => {
|
|
22010
22143
|
const roleTokens = block[roleId];
|
|
22011
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
22144
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _572 => _572[roleId]]), () => ( roleId));
|
|
22012
22145
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
22013
22146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
22014
22147
|
_chunk6KLR3WJQjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22045,7 +22178,7 @@ function RbacContainer() {
|
|
|
22045
22178
|
}, []);
|
|
22046
22179
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
22047
22180
|
if (!matrix) return [];
|
|
22048
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22181
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _573 => _573[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _574 => _574[b]]), () => ( b))));
|
|
22049
22182
|
}, [matrix, moduleNames]);
|
|
22050
22183
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
22051
22184
|
if (roleNames) {
|
|
@@ -22108,7 +22241,7 @@ function RbacContainer() {
|
|
|
22108
22241
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
22109
22242
|
id !== selectedModuleId && "text-muted-foreground"
|
|
22110
22243
|
),
|
|
22111
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22244
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _575 => _575[id]]), () => ( id))
|
|
22112
22245
|
}
|
|
22113
22246
|
) }, id)) }) }),
|
|
22114
22247
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22116,7 +22249,7 @@ function RbacContainer() {
|
|
|
22116
22249
|
{
|
|
22117
22250
|
moduleId: selectedModuleId,
|
|
22118
22251
|
block: selectedBlock,
|
|
22119
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22252
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _576 => _576[selectedModuleId]]), () => ( selectedModuleId)),
|
|
22120
22253
|
roleIds,
|
|
22121
22254
|
roleNames,
|
|
22122
22255
|
onOpenPicker: openPicker
|
|
@@ -22127,12 +22260,12 @@ function RbacContainer() {
|
|
|
22127
22260
|
RbacPermissionPicker,
|
|
22128
22261
|
{
|
|
22129
22262
|
open: !!activePicker,
|
|
22130
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22263
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _577 => _577.anchor]), () => ( null)),
|
|
22131
22264
|
value: activeValue,
|
|
22132
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22265
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _578 => _578.isRoleColumn]), () => ( false)),
|
|
22133
22266
|
knownSegments: activeSegments,
|
|
22134
22267
|
onSetValue: handleSetValue,
|
|
22135
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
22268
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _579 => _579.isRoleColumn]) ? handleClear : void 0,
|
|
22136
22269
|
onClose: closePicker
|
|
22137
22270
|
}
|
|
22138
22271
|
)
|
|
@@ -22199,7 +22332,7 @@ function RbacByRoleContainer() {
|
|
|
22199
22332
|
}, [roleNames]);
|
|
22200
22333
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
22201
22334
|
if (!matrix) return [];
|
|
22202
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22335
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _580 => _580[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _581 => _581[b]]), () => ( b))));
|
|
22203
22336
|
}, [matrix, moduleNames]);
|
|
22204
22337
|
_react.useEffect.call(void 0, () => {
|
|
22205
22338
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -22248,7 +22381,7 @@ function RbacByRoleContainer() {
|
|
|
22248
22381
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
22249
22382
|
id !== selectedRoleId && "text-muted-foreground"
|
|
22250
22383
|
),
|
|
22251
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
22384
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _582 => _582[id]]), () => ( id))
|
|
22252
22385
|
}
|
|
22253
22386
|
) }, id)) }) }),
|
|
22254
22387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: sortedModuleIds.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-accent bg-card", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "table", { className: "w-full text-sm", children: [
|
|
@@ -22268,7 +22401,7 @@ function RbacByRoleContainer() {
|
|
|
22268
22401
|
if (!block) return null;
|
|
22269
22402
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
22270
22403
|
const roleTokens = block[selectedRoleId];
|
|
22271
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22404
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _583 => _583[moduleId]]), () => ( moduleId));
|
|
22272
22405
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
22273
22406
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22274
22407
|
"td",
|
|
@@ -22283,7 +22416,7 @@ function RbacByRoleContainer() {
|
|
|
22283
22416
|
_chunk6KLR3WJQjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RbacPermissionCell, { value: cellValue2(defaultTokens, action) }) }, action))
|
|
22284
22417
|
] }),
|
|
22285
22418
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
22286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
22419
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _584 => _584[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
22287
22420
|
_chunk6KLR3WJQjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22288
22421
|
CellButton3,
|
|
22289
22422
|
{
|
|
@@ -22304,12 +22437,12 @@ function RbacByRoleContainer() {
|
|
|
22304
22437
|
RbacPermissionPicker,
|
|
22305
22438
|
{
|
|
22306
22439
|
open: !!activePicker,
|
|
22307
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22440
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _585 => _585.anchor]), () => ( null)),
|
|
22308
22441
|
value: activeValue,
|
|
22309
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22442
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _586 => _586.isRoleColumn]), () => ( false)),
|
|
22310
22443
|
knownSegments: activeSegments,
|
|
22311
22444
|
onSetValue: handleSetValue,
|
|
22312
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
22445
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _587 => _587.isRoleColumn]) ? handleClear : void 0,
|
|
22313
22446
|
onClose: closePicker
|
|
22314
22447
|
}
|
|
22315
22448
|
)
|
|
@@ -22841,5 +22974,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
22841
22974
|
|
|
22842
22975
|
|
|
22843
22976
|
|
|
22844
|
-
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ConfirmDialog = ConfirmDialog; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.EmptyState = EmptyState; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.CurrencyInput = CurrencyInput; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantComposer = AssistantComposer; exports.AssistantEmptyState = AssistantEmptyState; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.AssistantContainer = AssistantContainer; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
22845
|
-
//# sourceMappingURL=chunk-SPRFCAQI.js.map
|
|
22977
|
+
|
|
22978
|
+
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ConfirmDialog = ConfirmDialog; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.EmptyState = EmptyState; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.CurrencyInput = CurrencyInput; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantComposer = AssistantComposer; exports.AssistantEmptyState = AssistantEmptyState; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.AssistantContainer = AssistantContainer; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
22979
|
+
//# sourceMappingURL=chunk-HXU2HDRN.js.map
|