@carlonicora/nextjs-jsonapi 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockNoteEditor-CDTU6DRN.js → BlockNoteEditor-3IZ7PMFM.js} +9 -9
- package/dist/{BlockNoteEditor-CDTU6DRN.js.map → BlockNoteEditor-3IZ7PMFM.js.map} +1 -1
- package/dist/{BlockNoteEditor-VVAY73V2.mjs → BlockNoteEditor-G4XNDV2O.mjs} +2 -2
- package/dist/billing/index.js +333 -333
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-UGNLKDI6.js → chunk-5GVBUTS4.js} +229 -220
- package/dist/chunk-5GVBUTS4.js.map +1 -0
- package/dist/{chunk-J54546YC.mjs → chunk-WCX4CLRJ.mjs} +13 -4
- package/dist/{chunk-J54546YC.mjs.map → chunk-WCX4CLRJ.mjs.map} +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/features/help/index.js +31 -31
- package/dist/features/help/index.mjs +1 -1
- package/dist/features/tokenusage/index.js +75 -75
- package/dist/features/tokenusage/index.mjs +1 -1
- package/package.json +1 -1
- package/src/features/user/components/forms/UserEditor.tsx +11 -2
- package/dist/chunk-UGNLKDI6.js.map +0 -1
- /package/dist/{BlockNoteEditor-VVAY73V2.mjs.map → BlockNoteEditor-G4XNDV2O.mjs.map} +0 -0
|
@@ -8025,7 +8025,12 @@ function UserEditorInternal({
|
|
|
8025
8025
|
}, [file, company]);
|
|
8026
8026
|
const formSchema = _react.useMemo.call(void 0,
|
|
8027
8027
|
() => _zod3.z.object({
|
|
8028
|
-
|
|
8028
|
+
// Any UUID version: on edit this is the PERSISTED id, and seeded/legacy
|
|
8029
|
+
// users can carry a non-v4 uuid (the migration-created Administrator is
|
|
8030
|
+
// v1). `z.uuidv4()` rejected those, and because `id` has no rendered
|
|
8031
|
+
// field the failure was invisible — handleSubmit simply never fired.
|
|
8032
|
+
// New users still get a v4 from `v4()` in getDefaultValues.
|
|
8033
|
+
id: _zod3.z.uuid(),
|
|
8029
8034
|
name: _zod3.z.string().min(1, { message: t(`user.fields.name.error`) }),
|
|
8030
8035
|
email: _zod3.z.string().min(1, { message: t(`common.fields.email.error`) }),
|
|
8031
8036
|
password: _zod3.z.string().optional(),
|
|
@@ -8110,11 +8115,15 @@ function UserEditorInternal({
|
|
|
8110
8115
|
avatar: resetImage ? void 0 : values.avatar,
|
|
8111
8116
|
roleIds: values.roleIds,
|
|
8112
8117
|
sendInvitationEmail: values.sendInvitationEmail,
|
|
8113
|
-
|
|
8118
|
+
// Optional: `companyId` only sets the `x-companyid` header, and a user
|
|
8119
|
+
// can legitimately have no company (the seeded Administrator does), in
|
|
8120
|
+
// which case `company` is null here. `company!.id` threw a TypeError
|
|
8121
|
+
// and surfaced as a generic "update failed" toast.
|
|
8122
|
+
companyId: _optionalChain([company, 'optionalAccess', _234 => _234.id]),
|
|
8114
8123
|
adminCreated
|
|
8115
8124
|
};
|
|
8116
8125
|
const updatedUser = user ? await _chunk53B6NPGAjs.UserService.update(payload) : await _chunk53B6NPGAjs.UserService.create(payload);
|
|
8117
|
-
if (_optionalChain([currentUser, 'optionalAccess',
|
|
8126
|
+
if (_optionalChain([currentUser, 'optionalAccess', _235 => _235.id]) === updatedUser.id) setUser(updatedUser);
|
|
8118
8127
|
return updatedUser;
|
|
8119
8128
|
},
|
|
8120
8129
|
onRevalidate,
|
|
@@ -8368,7 +8377,7 @@ function EntityMultiSelector({
|
|
|
8368
8377
|
if (open) {
|
|
8369
8378
|
setSearchTerm("");
|
|
8370
8379
|
requestAnimationFrame(() => {
|
|
8371
|
-
_optionalChain([searchInputRef, 'access',
|
|
8380
|
+
_optionalChain([searchInputRef, 'access', _236 => _236.current, 'optionalAccess', _237 => _237.focus, 'call', _238 => _238()]);
|
|
8372
8381
|
});
|
|
8373
8382
|
}
|
|
8374
8383
|
}, [open]);
|
|
@@ -8385,7 +8394,7 @@ function EntityMultiSelector({
|
|
|
8385
8394
|
form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
|
|
8386
8395
|
const cb = onChangeRef.current;
|
|
8387
8396
|
if (cb) {
|
|
8388
|
-
const fullData = next.map((v) => _optionalChain([options, 'access',
|
|
8397
|
+
const fullData = next.map((v) => _optionalChain([options, 'access', _239 => _239.find, 'call', _240 => _240((opt) => opt.id === v.id), 'optionalAccess', _241 => _241.entityData])).filter(Boolean);
|
|
8389
8398
|
cb(fullData);
|
|
8390
8399
|
}
|
|
8391
8400
|
},
|
|
@@ -8398,7 +8407,7 @@ function EntityMultiSelector({
|
|
|
8398
8407
|
form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
|
|
8399
8408
|
const cb = onChangeRef.current;
|
|
8400
8409
|
if (cb) {
|
|
8401
|
-
const fullData = next.map((v) => _optionalChain([options, 'access',
|
|
8410
|
+
const fullData = next.map((v) => _optionalChain([options, 'access', _242 => _242.find, 'call', _243 => _243((opt) => opt.id === v.id), 'optionalAccess', _244 => _244.entityData])).filter(Boolean);
|
|
8402
8411
|
cb(fullData);
|
|
8403
8412
|
}
|
|
8404
8413
|
},
|
|
@@ -8541,11 +8550,11 @@ function UserMultiSelect({
|
|
|
8541
8550
|
emptyText: t("ui.search.no_results", { type: t("entities.users", { count: 2 }) }),
|
|
8542
8551
|
isRequired,
|
|
8543
8552
|
retriever: (params) => _chunk53B6NPGAjs.UserService.findAllUsers(params),
|
|
8544
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
8553
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _245 => _245.id]) },
|
|
8545
8554
|
module: _chunk53B6NPGAjs.Modules.User,
|
|
8546
8555
|
getLabel: (user) => user.name,
|
|
8547
8556
|
toFormValue: (user) => ({ id: user.id, name: user.name, avatar: user.avatar }),
|
|
8548
|
-
excludeId: _optionalChain([currentUser, 'optionalAccess',
|
|
8557
|
+
excludeId: _optionalChain([currentUser, 'optionalAccess', _246 => _246.id]),
|
|
8549
8558
|
onChange,
|
|
8550
8559
|
renderOption: (user) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
8551
8560
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatarIcon, { url: user.avatar, name: user.name }),
|
|
@@ -9352,7 +9361,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9352
9361
|
}, []);
|
|
9353
9362
|
const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
|
|
9354
9363
|
_react.useEffect.call(void 0, () => {
|
|
9355
|
-
if (_optionalChain([date, 'optionalAccess',
|
|
9364
|
+
if (_optionalChain([date, 'optionalAccess', _247 => _247.from]) && _optionalChain([date, 'optionalAccess', _248 => _248.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _249 => _249.from, 'optionalAccess', _250 => _250.getTime, 'call', _251 => _251()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _252 => _252.to, 'optionalAccess', _253 => _253.getTime, 'call', _254 => _254()]) !== date.to.getTime())) {
|
|
9356
9365
|
onDateChange(date);
|
|
9357
9366
|
setPrevRange(date);
|
|
9358
9367
|
setOpen(false);
|
|
@@ -9363,7 +9372,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9363
9372
|
setDate(void 0);
|
|
9364
9373
|
return;
|
|
9365
9374
|
}
|
|
9366
|
-
if (range.from && (!_optionalChain([date, 'optionalAccess',
|
|
9375
|
+
if (range.from && (!_optionalChain([date, 'optionalAccess', _255 => _255.from]) || range.from.getTime() !== date.from.getTime())) {
|
|
9367
9376
|
setDate({ from: range.from, to: void 0 });
|
|
9368
9377
|
} else {
|
|
9369
9378
|
setDate(range);
|
|
@@ -9378,7 +9387,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9378
9387
|
className: _chunk53B6NPGAjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
9379
9388
|
children: [
|
|
9380
9389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
9381
|
-
_optionalChain([date, 'optionalAccess',
|
|
9390
|
+
_optionalChain([date, 'optionalAccess', _256 => _256.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9382
9391
|
_datefns.format.call(void 0, date.from, "d MMM yyyy", { locale: dateFnsLocale }),
|
|
9383
9392
|
" -",
|
|
9384
9393
|
" ",
|
|
@@ -9402,7 +9411,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9402
9411
|
),
|
|
9403
9412
|
children: [
|
|
9404
9413
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
9405
|
-
_optionalChain([date, 'optionalAccess',
|
|
9414
|
+
_optionalChain([date, 'optionalAccess', _257 => _257.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9406
9415
|
_datefns.format.call(void 0, date.from, "d MMM yyyy", { locale: dateFnsLocale }),
|
|
9407
9416
|
" -",
|
|
9408
9417
|
" ",
|
|
@@ -9416,7 +9425,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9416
9425
|
Calendar,
|
|
9417
9426
|
{
|
|
9418
9427
|
mode: "range",
|
|
9419
|
-
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess',
|
|
9428
|
+
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _258 => _258.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
|
|
9420
9429
|
selected: date,
|
|
9421
9430
|
onSelect: handleSelect,
|
|
9422
9431
|
numberOfMonths: 2
|
|
@@ -9456,26 +9465,26 @@ function useEditorDialog(isFormDirty, options) {
|
|
|
9456
9465
|
const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
|
|
9457
9466
|
const syncingFromProp = _react.useRef.call(void 0, false);
|
|
9458
9467
|
_react.useEffect.call(void 0, () => {
|
|
9459
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
9468
|
+
if (_optionalChain([options, 'optionalAccess', _259 => _259.dialogOpen]) !== void 0 && options.dialogOpen !== open) {
|
|
9460
9469
|
syncingFromProp.current = true;
|
|
9461
9470
|
setOpen(options.dialogOpen);
|
|
9462
9471
|
}
|
|
9463
|
-
}, [_optionalChain([options, 'optionalAccess',
|
|
9464
|
-
const onDialogOpenChangeRef = _react.useRef.call(void 0, _optionalChain([options, 'optionalAccess',
|
|
9465
|
-
onDialogOpenChangeRef.current = _optionalChain([options, 'optionalAccess',
|
|
9472
|
+
}, [_optionalChain([options, 'optionalAccess', _260 => _260.dialogOpen])]);
|
|
9473
|
+
const onDialogOpenChangeRef = _react.useRef.call(void 0, _optionalChain([options, 'optionalAccess', _261 => _261.onDialogOpenChange]));
|
|
9474
|
+
onDialogOpenChangeRef.current = _optionalChain([options, 'optionalAccess', _262 => _262.onDialogOpenChange]);
|
|
9466
9475
|
_react.useEffect.call(void 0, () => {
|
|
9467
9476
|
if (syncingFromProp.current) {
|
|
9468
9477
|
syncingFromProp.current = false;
|
|
9469
9478
|
return;
|
|
9470
9479
|
}
|
|
9471
|
-
_optionalChain([onDialogOpenChangeRef, 'access',
|
|
9480
|
+
_optionalChain([onDialogOpenChangeRef, 'access', _263 => _263.current, 'optionalCall', _264 => _264(open)]);
|
|
9472
9481
|
}, [open]);
|
|
9473
9482
|
_react.useEffect.call(void 0, () => {
|
|
9474
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
9475
|
-
}, [_optionalChain([options, 'optionalAccess',
|
|
9483
|
+
if (_optionalChain([options, 'optionalAccess', _265 => _265.forceShow])) setOpen(true);
|
|
9484
|
+
}, [_optionalChain([options, 'optionalAccess', _266 => _266.forceShow])]);
|
|
9476
9485
|
_react.useEffect.call(void 0, () => {
|
|
9477
9486
|
if (!open) {
|
|
9478
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
9487
|
+
if (_optionalChain([options, 'optionalAccess', _267 => _267.onClose])) options.onClose();
|
|
9479
9488
|
}
|
|
9480
9489
|
}, [open]);
|
|
9481
9490
|
const handleOpenChange = _react.useCallback.call(void 0,
|
|
@@ -9596,7 +9605,7 @@ function EditorSheet({
|
|
|
9596
9605
|
const next = onReset();
|
|
9597
9606
|
form.reset(next);
|
|
9598
9607
|
if (isEdit) seeded.current = JSON.stringify(next);
|
|
9599
|
-
_optionalChain([onClose, 'optionalCall',
|
|
9608
|
+
_optionalChain([onClose, 'optionalCall', _268 => _268()]);
|
|
9600
9609
|
}
|
|
9601
9610
|
}, [open]);
|
|
9602
9611
|
const wrappedOnSubmit = _react.useCallback.call(void 0,
|
|
@@ -9610,11 +9619,11 @@ function EditorSheet({
|
|
|
9610
9619
|
if (onSuccess) {
|
|
9611
9620
|
await onSuccess();
|
|
9612
9621
|
} else if (result) {
|
|
9613
|
-
_optionalChain([onRevalidate, 'optionalCall',
|
|
9622
|
+
_optionalChain([onRevalidate, 'optionalCall', _269 => _269(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
|
|
9614
9623
|
if (propagateChanges) {
|
|
9615
9624
|
propagateChanges(result);
|
|
9616
9625
|
} else {
|
|
9617
|
-
_optionalChain([onNavigate, 'optionalCall',
|
|
9626
|
+
_optionalChain([onNavigate, 'optionalCall', _270 => _270(generateUrl({ page: module, id: result.id }))]);
|
|
9618
9627
|
}
|
|
9619
9628
|
}
|
|
9620
9629
|
} catch (error) {
|
|
@@ -9813,7 +9822,7 @@ function EntitySelector({
|
|
|
9813
9822
|
{
|
|
9814
9823
|
className: `bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] flex min-h-7 w-full items-center gap-2 rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed ${hasValue(effectiveValue) ? "" : "text-muted-foreground"} ${disabled ? "cursor-not-allowed opacity-50" : ""}`,
|
|
9815
9824
|
children: [
|
|
9816
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-left", children: hasValue(effectiveValue) ? getSelectedItemDisplay ? getSelectedItemDisplay(effectiveValue) : _nullishCoalesce(_optionalChain([effectiveValue, 'optionalAccess',
|
|
9825
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-left", children: hasValue(effectiveValue) ? getSelectedItemDisplay ? getSelectedItemDisplay(effectiveValue) : _nullishCoalesce(_optionalChain([effectiveValue, 'optionalAccess', _271 => _271.name]), () => ( "")) : placeholder }),
|
|
9817
9826
|
hasValue(effectiveValue) && !disabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9818
9827
|
_lucidereact.CircleX,
|
|
9819
9828
|
{
|
|
@@ -9962,7 +9971,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9962
9971
|
movePrev();
|
|
9963
9972
|
} else if (e.key === "Enter" || e.key === "Space") {
|
|
9964
9973
|
if (activeIndex === -1) {
|
|
9965
|
-
_optionalChain([dropzoneState, 'access',
|
|
9974
|
+
_optionalChain([dropzoneState, 'access', _272 => _272.inputRef, 'access', _273 => _273.current, 'optionalAccess', _274 => _274.click, 'call', _275 => _275()]);
|
|
9966
9975
|
}
|
|
9967
9976
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
|
9968
9977
|
if (activeIndex !== -1) {
|
|
@@ -10008,13 +10017,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
10008
10017
|
}
|
|
10009
10018
|
if (rejectedFiles.length > 0) {
|
|
10010
10019
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
10011
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
10020
|
+
if (_optionalChain([rejectedFiles, 'access', _276 => _276[i], 'access', _277 => _277.errors, 'access', _278 => _278[0], 'optionalAccess', _279 => _279.code]) === "file-too-large") {
|
|
10012
10021
|
_chunk53B6NPGAjs.showError.call(void 0, t("common.errors.file"), {
|
|
10013
10022
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
10014
10023
|
});
|
|
10015
10024
|
break;
|
|
10016
10025
|
}
|
|
10017
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
10026
|
+
if (_optionalChain([rejectedFiles, 'access', _280 => _280[i], 'access', _281 => _281.errors, 'access', _282 => _282[0], 'optionalAccess', _283 => _283.message])) {
|
|
10018
10027
|
_chunk53B6NPGAjs.showError.call(void 0, t(`common.errors.file`), {
|
|
10019
10028
|
description: rejectedFiles[i].errors[0].message
|
|
10020
10029
|
});
|
|
@@ -10212,7 +10221,7 @@ FileInput.displayName = "FileInput";
|
|
|
10212
10221
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10213
10222
|
|
|
10214
10223
|
|
|
10215
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10224
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-3IZ7PMFM.js"))), {
|
|
10216
10225
|
ssr: false
|
|
10217
10226
|
});
|
|
10218
10227
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -10277,7 +10286,7 @@ function FormBlockNote({
|
|
|
10277
10286
|
onChange: (content, isEmpty) => {
|
|
10278
10287
|
lastEditorContentRef.current = content;
|
|
10279
10288
|
field.onChange(content);
|
|
10280
|
-
_optionalChain([onEmptyChange, 'optionalCall',
|
|
10289
|
+
_optionalChain([onEmptyChange, 'optionalCall', _284 => _284(isEmpty)]);
|
|
10281
10290
|
},
|
|
10282
10291
|
placeholder,
|
|
10283
10292
|
bordered: true,
|
|
@@ -10945,11 +10954,11 @@ function FormPlaceAutocomplete({
|
|
|
10945
10954
|
const data = await response.json();
|
|
10946
10955
|
if (data.suggestions) {
|
|
10947
10956
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
10948
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
10949
|
-
description: _optionalChain([suggestion, 'access',
|
|
10957
|
+
place_id: _optionalChain([suggestion, 'access', _285 => _285.placePrediction, 'optionalAccess', _286 => _286.placeId]) || "",
|
|
10958
|
+
description: _optionalChain([suggestion, 'access', _287 => _287.placePrediction, 'optionalAccess', _288 => _288.text, 'optionalAccess', _289 => _289.text]) || "",
|
|
10950
10959
|
structured_formatting: {
|
|
10951
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
10952
|
-
secondary_text: _optionalChain([suggestion, 'access',
|
|
10960
|
+
main_text: _optionalChain([suggestion, 'access', _290 => _290.placePrediction, 'optionalAccess', _291 => _291.structuredFormat, 'optionalAccess', _292 => _292.mainText, 'optionalAccess', _293 => _293.text]) || "",
|
|
10961
|
+
secondary_text: _optionalChain([suggestion, 'access', _294 => _294.placePrediction, 'optionalAccess', _295 => _295.structuredFormat, 'optionalAccess', _296 => _296.secondaryText, 'optionalAccess', _297 => _297.text]) || ""
|
|
10953
10962
|
}
|
|
10954
10963
|
}));
|
|
10955
10964
|
setSuggestions(formattedSuggestions);
|
|
@@ -11096,8 +11105,8 @@ function FormPlaceAutocomplete({
|
|
|
11096
11105
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
11097
11106
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
11098
11107
|
children: [
|
|
11099
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access',
|
|
11100
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access',
|
|
11108
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _298 => _298.structured_formatting, 'optionalAccess', _299 => _299.main_text]) }),
|
|
11109
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _300 => _300.structured_formatting, 'optionalAccess', _301 => _301.secondary_text]) })
|
|
11101
11110
|
]
|
|
11102
11111
|
},
|
|
11103
11112
|
suggestion.place_id || index
|
|
@@ -11145,7 +11154,7 @@ function FormSelect({
|
|
|
11145
11154
|
disabled,
|
|
11146
11155
|
"data-testid": testId,
|
|
11147
11156
|
children: [
|
|
11148
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access',
|
|
11157
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _302 => _302.find, 'call', _303 => _303((v) => v.id === field.value), 'optionalAccess', _304 => _304.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
|
|
11149
11158
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
|
|
11150
11159
|
allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
|
|
11151
11160
|
values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
|
|
@@ -11297,7 +11306,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
11297
11306
|
}, "getInitials");
|
|
11298
11307
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11299
11308
|
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: [
|
|
11300
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess',
|
|
11309
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _305 => _305.avatar]) }),
|
|
11301
11310
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
|
|
11302
11311
|
] }) });
|
|
11303
11312
|
}, "getAvatar");
|
|
@@ -11503,7 +11512,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11503
11512
|
})
|
|
11504
11513
|
};
|
|
11505
11514
|
const columns = _react.useMemo.call(void 0, () => {
|
|
11506
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
11515
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _306 => _306[field], 'optionalCall', _307 => _307()])).filter((col) => col !== void 0);
|
|
11507
11516
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
11508
11517
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
11509
11518
|
}, "useUserTableStructure");
|
|
@@ -11617,10 +11626,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
11617
11626
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
11618
11627
|
/* @__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: [
|
|
11619
11628
|
/* @__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: [
|
|
11620
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
11621
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access',
|
|
11629
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _308 => _308.value, 'optionalAccess', _309 => _309.avatar]) }),
|
|
11630
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _310 => _310.value, 'optionalAccess', _311 => _311.name]) ? _optionalChain([field, 'access', _312 => _312.value, 'optionalAccess', _313 => _313.name, 'access', _314 => _314.split, 'call', _315 => _315(" "), 'access', _316 => _316.map, 'call', _317 => _317((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
11622
11631
|
] }) }),
|
|
11623
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
11632
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _318 => _318.value, 'optionalAccess', _319 => _319.name]), () => ( "")) })
|
|
11624
11633
|
] }) : /* @__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 }) }))) }) }) }),
|
|
11625
11634
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11626
11635
|
_lucidereact.CircleX,
|
|
@@ -11830,7 +11839,7 @@ function UserContent({ user }) {
|
|
|
11830
11839
|
const updated = await _chunk53B6NPGAjs.UserService.patchAvatar({ id: user.id, avatar: imageKey });
|
|
11831
11840
|
setUser(updated);
|
|
11832
11841
|
},
|
|
11833
|
-
companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
11842
|
+
companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _320 => _320.id]), () => ( "")),
|
|
11834
11843
|
className: "h-24 w-24",
|
|
11835
11844
|
fallbackClassName: "text-2xl"
|
|
11836
11845
|
}
|
|
@@ -11985,7 +11994,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
|
|
|
11985
11994
|
const data = useDataListRetriever({
|
|
11986
11995
|
ready: !!company,
|
|
11987
11996
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk53B6NPGAjs.UserService.findAllUsers(params), "retriever"),
|
|
11988
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
11997
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _321 => _321.id]), isDeleted },
|
|
11989
11998
|
module: _chunk53B6NPGAjs.Modules.User
|
|
11990
11999
|
});
|
|
11991
12000
|
_react.useEffect.call(void 0, () => {
|
|
@@ -12092,11 +12101,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
12092
12101
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
12093
12102
|
onClick: (_e) => {
|
|
12094
12103
|
setSelectedUser(user);
|
|
12095
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
12104
|
+
_optionalChain([setLevelOpen, 'optionalCall', _322 => _322(true)]);
|
|
12096
12105
|
},
|
|
12097
12106
|
onSelect: (_e) => {
|
|
12098
12107
|
setSelectedUser(user);
|
|
12099
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
12108
|
+
_optionalChain([setLevelOpen, 'optionalCall', _323 => _323(true)]);
|
|
12100
12109
|
},
|
|
12101
12110
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
12102
12111
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -12227,7 +12236,7 @@ function CompanyContent({ company, actions }) {
|
|
|
12227
12236
|
company.legal_address
|
|
12228
12237
|
] }),
|
|
12229
12238
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
|
|
12230
|
-
_optionalChain([company, 'access',
|
|
12239
|
+
_optionalChain([company, 'access', _324 => _324.configurations, 'optionalAccess', _325 => _325.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
12231
12240
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
12232
12241
|
t("features.configuration.country"),
|
|
12233
12242
|
":"
|
|
@@ -12235,7 +12244,7 @@ function CompanyContent({ company, actions }) {
|
|
|
12235
12244
|
" ",
|
|
12236
12245
|
company.configurations.country
|
|
12237
12246
|
] }),
|
|
12238
|
-
_optionalChain([company, 'access',
|
|
12247
|
+
_optionalChain([company, 'access', _326 => _326.configurations, 'optionalAccess', _327 => _327.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
12239
12248
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
12240
12249
|
t("features.configuration.currency"),
|
|
12241
12250
|
":"
|
|
@@ -12439,7 +12448,7 @@ function CompanyEditorInternal({
|
|
|
12439
12448
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12440
12449
|
const fiscalRef = _react.useRef.call(void 0, null);
|
|
12441
12450
|
const addressComponentsRef = _react.useRef.call(void 0, {});
|
|
12442
|
-
const canAccessFeatures = hasRole(_chunkJKGEJGSDjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkJKGEJGSDjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
12451
|
+
const canAccessFeatures = hasRole(_chunkJKGEJGSDjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkJKGEJGSDjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _328 => _328.env, 'access', _329 => _329.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _330 => _330.toLowerCase, 'call', _331 => _331()]) === "true";
|
|
12443
12452
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
12444
12453
|
(open) => {
|
|
12445
12454
|
if (open && features.length === 0 && canAccessFeatures) {
|
|
@@ -12454,7 +12463,7 @@ function CompanyEditorInternal({
|
|
|
12454
12463
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
12455
12464
|
fetchFeatures();
|
|
12456
12465
|
}
|
|
12457
|
-
_optionalChain([onDialogOpenChange, 'optionalCall',
|
|
12466
|
+
_optionalChain([onDialogOpenChange, 'optionalCall', _332 => _332(open)]);
|
|
12458
12467
|
},
|
|
12459
12468
|
[features.length, canAccessFeatures, hasRole, onDialogOpenChange]
|
|
12460
12469
|
);
|
|
@@ -12499,12 +12508,12 @@ function CompanyEditorInternal({
|
|
|
12499
12508
|
);
|
|
12500
12509
|
const getDefaultValues = _react.useCallback.call(void 0, () => {
|
|
12501
12510
|
return {
|
|
12502
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
12503
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
12504
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
12505
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
12506
|
-
logo: _optionalChain([company, 'optionalAccess',
|
|
12507
|
-
legal_address: _optionalChain([company, 'optionalAccess',
|
|
12511
|
+
id: _optionalChain([company, 'optionalAccess', _333 => _333.id]) || _uuid.v4.call(void 0, ),
|
|
12512
|
+
name: _optionalChain([company, 'optionalAccess', _334 => _334.name]) || "",
|
|
12513
|
+
featureIds: _optionalChain([company, 'optionalAccess', _335 => _335.features, 'access', _336 => _336.map, 'call', _337 => _337((feature) => feature.id)]) || [],
|
|
12514
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _338 => _338.modules, 'access', _339 => _339.map, 'call', _340 => _340((module) => module.id)]) || [],
|
|
12515
|
+
logo: _optionalChain([company, 'optionalAccess', _341 => _341.logo]) || "",
|
|
12516
|
+
legal_address: _optionalChain([company, 'optionalAccess', _342 => _342.legal_address]) || ""
|
|
12508
12517
|
};
|
|
12509
12518
|
}, [company]);
|
|
12510
12519
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -12516,7 +12525,7 @@ function CompanyEditorInternal({
|
|
|
12516
12525
|
{
|
|
12517
12526
|
form,
|
|
12518
12527
|
entityType: t(`entities.companies`, { count: 1 }),
|
|
12519
|
-
entityName: _optionalChain([company, 'optionalAccess',
|
|
12528
|
+
entityName: _optionalChain([company, 'optionalAccess', _343 => _343.name]),
|
|
12520
12529
|
isEdit: !!company,
|
|
12521
12530
|
module: _chunk53B6NPGAjs.Modules.Company,
|
|
12522
12531
|
propagateChanges,
|
|
@@ -12541,7 +12550,7 @@ function CompanyEditorInternal({
|
|
|
12541
12550
|
throw new Error("Fiscal data validation failed");
|
|
12542
12551
|
}
|
|
12543
12552
|
const payload = {
|
|
12544
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
12553
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _344 => _344.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
12545
12554
|
name: values.name,
|
|
12546
12555
|
logo: files && contentType ? values.logo : void 0,
|
|
12547
12556
|
featureIds: values.featureIds,
|
|
@@ -12572,10 +12581,10 @@ function CompanyEditorInternal({
|
|
|
12572
12581
|
dialogOpen,
|
|
12573
12582
|
onDialogOpenChange: handleDialogOpenChange,
|
|
12574
12583
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
12575
|
-
/* @__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-muted-foreground/50 rounded-lg outline-1 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',
|
|
12584
|
+
/* @__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-muted-foreground/50 rounded-lg outline-1 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', _345 => _345.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12576
12585
|
_image2.default,
|
|
12577
12586
|
{
|
|
12578
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
12587
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _346 => _346.logo]) || "",
|
|
12579
12588
|
alt: "Company Logo",
|
|
12580
12589
|
width: 200,
|
|
12581
12590
|
height: 200
|
|
@@ -12609,7 +12618,7 @@ function CompanyEditorInternal({
|
|
|
12609
12618
|
}
|
|
12610
12619
|
),
|
|
12611
12620
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionHeader, { className: "mt-2", children: t(`company.sections.fiscal_data`) }),
|
|
12612
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess',
|
|
12621
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _347 => _347.fiscal_data])) })
|
|
12613
12622
|
] }),
|
|
12614
12623
|
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 }) }) })
|
|
12615
12624
|
] })
|
|
@@ -12947,7 +12956,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
12947
12956
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
12948
12957
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
12949
12958
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
12950
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12959
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _348 => _348.actor, 'optionalAccess', _349 => _349.name]), () => ( "")),
|
|
12951
12960
|
title: data.title,
|
|
12952
12961
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12953
12962
|
}) }),
|
|
@@ -12976,7 +12985,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
12976
12985
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
12977
12986
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
12978
12987
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
12979
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12988
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _350 => _350.actor, 'optionalAccess', _351 => _351.name]), () => ( "")),
|
|
12980
12989
|
title: data.title,
|
|
12981
12990
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12982
12991
|
}) }),
|
|
@@ -13040,7 +13049,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
13040
13049
|
_react.useEffect.call(void 0, () => {
|
|
13041
13050
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
13042
13051
|
if (_chunkJKGEJGSDjs.isRolesConfigured.call(void 0, )) {
|
|
13043
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
13052
|
+
const isAdmin = _optionalChain([currentUser, 'access', _352 => _352.roles, 'optionalAccess', _353 => _353.some, 'call', _354 => _354((role) => role.id === _chunkJKGEJGSDjs.getRoleId.call(void 0, ).Administrator)]);
|
|
13044
13053
|
if (isAdmin) {
|
|
13045
13054
|
setHasInitiallyLoaded(true);
|
|
13046
13055
|
return;
|
|
@@ -13242,7 +13251,7 @@ function OnboardingProvider({
|
|
|
13242
13251
|
let tourSteps = steps;
|
|
13243
13252
|
if (!tourSteps) {
|
|
13244
13253
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
13245
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
13254
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _355 => _355.steps]);
|
|
13246
13255
|
}
|
|
13247
13256
|
if (!tourSteps || tourSteps.length === 0) {
|
|
13248
13257
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -13310,10 +13319,10 @@ function OnboardingProvider({
|
|
|
13310
13319
|
when: {
|
|
13311
13320
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13312
13321
|
setCurrentStepIndex(index);
|
|
13313
|
-
_optionalChain([stepConfig, 'access',
|
|
13322
|
+
_optionalChain([stepConfig, 'access', _356 => _356.onShow, 'optionalCall', _357 => _357()]);
|
|
13314
13323
|
}, "show"),
|
|
13315
13324
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13316
|
-
_optionalChain([stepConfig, 'access',
|
|
13325
|
+
_optionalChain([stepConfig, 'access', _358 => _358.onHide, 'optionalCall', _359 => _359()]);
|
|
13317
13326
|
}, "hide")
|
|
13318
13327
|
}
|
|
13319
13328
|
});
|
|
@@ -13464,7 +13473,7 @@ function HowToMultiSelector({
|
|
|
13464
13473
|
retriever: (params) => _chunk53B6NPGAjs.HowToService.findMany(params),
|
|
13465
13474
|
module: _chunk53B6NPGAjs.Modules.HowTo,
|
|
13466
13475
|
getLabel: (howTo) => howTo.name,
|
|
13467
|
-
excludeId: _optionalChain([currentHowTo, 'optionalAccess',
|
|
13476
|
+
excludeId: _optionalChain([currentHowTo, 'optionalAccess', _360 => _360.id]),
|
|
13468
13477
|
onChange
|
|
13469
13478
|
}
|
|
13470
13479
|
);
|
|
@@ -13572,17 +13581,17 @@ function HowToEditorInternal({
|
|
|
13572
13581
|
);
|
|
13573
13582
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
13574
13583
|
() => ({
|
|
13575
|
-
id: _optionalChain([howTo, 'optionalAccess',
|
|
13576
|
-
name: _optionalChain([howTo, 'optionalAccess',
|
|
13577
|
-
description: _optionalChain([howTo, 'optionalAccess',
|
|
13578
|
-
pages: _chunk53B6NPGAjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess',
|
|
13579
|
-
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13580
|
-
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13581
|
-
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13582
|
-
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13583
|
-
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13584
|
-
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13585
|
-
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13584
|
+
id: _optionalChain([howTo, 'optionalAccess', _361 => _361.id]) || _uuid.v4.call(void 0, ),
|
|
13585
|
+
name: _optionalChain([howTo, 'optionalAccess', _362 => _362.name]) || "",
|
|
13586
|
+
description: _optionalChain([howTo, 'optionalAccess', _363 => _363.description]) || [],
|
|
13587
|
+
pages: _chunk53B6NPGAjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _364 => _364.pages])),
|
|
13588
|
+
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _365 => _365.howToType]), () => ( "how-to")),
|
|
13589
|
+
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _366 => _366.slug]), () => ( "")),
|
|
13590
|
+
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _367 => _367.order]), () => ( 0)),
|
|
13591
|
+
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _368 => _368.summary]), () => ( "")),
|
|
13592
|
+
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _369 => _369.tags]), () => ( []))).join(", "),
|
|
13593
|
+
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _370 => _370.contextualKeys]), () => ( []))).join(", "),
|
|
13594
|
+
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _371 => _371.draft]), () => ( false)),
|
|
13586
13595
|
relatedArticles: []
|
|
13587
13596
|
}),
|
|
13588
13597
|
[howTo]
|
|
@@ -13593,7 +13602,7 @@ function HowToEditorInternal({
|
|
|
13593
13602
|
});
|
|
13594
13603
|
const initialRelatedIds = _react.useRef.call(void 0, []);
|
|
13595
13604
|
_react.useEffect.call(void 0, () => {
|
|
13596
|
-
if (!_optionalChain([howTo, 'optionalAccess',
|
|
13605
|
+
if (!_optionalChain([howTo, 'optionalAccess', _372 => _372.howToType]) || !_optionalChain([howTo, 'optionalAccess', _373 => _373.slug])) return;
|
|
13597
13606
|
let active = true;
|
|
13598
13607
|
_chunk53B6NPGAjs.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
|
|
13599
13608
|
if (!active) return;
|
|
@@ -13632,7 +13641,7 @@ function HowToEditorInternal({
|
|
|
13632
13641
|
{
|
|
13633
13642
|
form,
|
|
13634
13643
|
entityType: t(`entities.howtos`, { count: 1 }),
|
|
13635
|
-
entityName: _optionalChain([howTo, 'optionalAccess',
|
|
13644
|
+
entityName: _optionalChain([howTo, 'optionalAccess', _374 => _374.name]),
|
|
13636
13645
|
isEdit: !!howTo,
|
|
13637
13646
|
module: _chunk53B6NPGAjs.Modules.HowTo,
|
|
13638
13647
|
propagateChanges,
|
|
@@ -14013,7 +14022,7 @@ function withPatchedTitle(source, title) {
|
|
|
14013
14022
|
return _chunk53B6NPGAjs.rehydrate.call(void 0, _chunk53B6NPGAjs.Modules.Assistant, {
|
|
14014
14023
|
jsonApi: {
|
|
14015
14024
|
...dehydrated.jsonApi,
|
|
14016
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
14025
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _375 => _375.jsonApi, 'optionalAccess', _376 => _376.attributes]), () => ( {})), title }
|
|
14017
14026
|
},
|
|
14018
14027
|
included: dehydrated.included
|
|
14019
14028
|
});
|
|
@@ -14047,7 +14056,7 @@ function AssistantProvider({
|
|
|
14047
14056
|
const [status, setStatus] = _react.useState.call(void 0, void 0);
|
|
14048
14057
|
const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
14049
14058
|
const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
|
|
14050
|
-
() => _optionalChain([dehydratedAssistant, 'optionalAccess',
|
|
14059
|
+
() => _optionalChain([dehydratedAssistant, 'optionalAccess', _377 => _377.jsonApi, 'optionalAccess', _378 => _378.attributes, 'optionalAccess', _379 => _379.engine]) === "operator"
|
|
14051
14060
|
);
|
|
14052
14061
|
const { socket } = useSocketContext();
|
|
14053
14062
|
const sendMessage = _react.useCallback.call(void 0,
|
|
@@ -14056,7 +14065,7 @@ function AssistantProvider({
|
|
|
14056
14065
|
if (!trimmed) return;
|
|
14057
14066
|
const optimistic = _chunk53B6NPGAjs.AssistantMessage.buildOptimistic({
|
|
14058
14067
|
content: trimmed,
|
|
14059
|
-
assistantId: _optionalChain([assistant, 'optionalAccess',
|
|
14068
|
+
assistantId: _optionalChain([assistant, 'optionalAccess', _380 => _380.id]),
|
|
14060
14069
|
position: nextPosition(messages)
|
|
14061
14070
|
});
|
|
14062
14071
|
setMessages((prev) => [...prev, optimistic]);
|
|
@@ -14066,14 +14075,14 @@ function AssistantProvider({
|
|
|
14066
14075
|
if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
|
|
14067
14076
|
if (typeof payload.status === "string") setStatus(payload.status);
|
|
14068
14077
|
}, "handler");
|
|
14069
|
-
_optionalChain([socket, 'optionalAccess',
|
|
14078
|
+
_optionalChain([socket, 'optionalAccess', _381 => _381.on, 'call', _382 => _382("assistant:status", handler)]);
|
|
14070
14079
|
try {
|
|
14071
14080
|
if (!assistant) {
|
|
14072
14081
|
const input = {
|
|
14073
14082
|
firstMessage: trimmed,
|
|
14074
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
14075
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
14076
|
-
contentBlocks: _optionalChain([opts, 'optionalAccess',
|
|
14083
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _383 => _383.howToMode]),
|
|
14084
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _384 => _384.limitToHowToId]),
|
|
14085
|
+
contentBlocks: _optionalChain([opts, 'optionalAccess', _385 => _385.contentBlocks]),
|
|
14077
14086
|
boundContent: scope
|
|
14078
14087
|
};
|
|
14079
14088
|
const created = operatorMode ? await _chunk53B6NPGAjs.AssistantService.createOperator(input) : await _chunk53B6NPGAjs.AssistantService.create(input);
|
|
@@ -14088,13 +14097,13 @@ function AssistantProvider({
|
|
|
14088
14097
|
const result = operatorMode ? await _chunk53B6NPGAjs.AssistantService.appendMessageOperator({
|
|
14089
14098
|
assistantId: assistant.id,
|
|
14090
14099
|
content: trimmed,
|
|
14091
|
-
contentBlocks: _optionalChain([opts, 'optionalAccess',
|
|
14100
|
+
contentBlocks: _optionalChain([opts, 'optionalAccess', _386 => _386.contentBlocks])
|
|
14092
14101
|
}) : await _chunk53B6NPGAjs.AssistantService.appendMessage({
|
|
14093
14102
|
assistantId: assistant.id,
|
|
14094
14103
|
content: trimmed,
|
|
14095
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
14096
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
14097
|
-
contentBlocks: _optionalChain([opts, 'optionalAccess',
|
|
14104
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _387 => _387.howToMode]),
|
|
14105
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _388 => _388.limitToHowToId]),
|
|
14106
|
+
contentBlocks: _optionalChain([opts, 'optionalAccess', _389 => _389.contentBlocks])
|
|
14098
14107
|
});
|
|
14099
14108
|
setMessages((prev) => [...stripOptimistic(prev), ...result]);
|
|
14100
14109
|
}
|
|
@@ -14105,7 +14114,7 @@ function AssistantProvider({
|
|
|
14105
14114
|
return next;
|
|
14106
14115
|
});
|
|
14107
14116
|
} finally {
|
|
14108
|
-
_optionalChain([socket, 'optionalAccess',
|
|
14117
|
+
_optionalChain([socket, 'optionalAccess', _390 => _390.off, 'call', _391 => _391("assistant:status", handler)]);
|
|
14109
14118
|
setSending(false);
|
|
14110
14119
|
setStatus(void 0);
|
|
14111
14120
|
}
|
|
@@ -14163,7 +14172,7 @@ function AssistantProvider({
|
|
|
14163
14172
|
await _chunk53B6NPGAjs.AssistantService.delete({ id });
|
|
14164
14173
|
setThreads((prev) => prev.filter((t2) => t2.id !== id));
|
|
14165
14174
|
setAssistant((prev) => {
|
|
14166
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
14175
|
+
if (_optionalChain([prev, 'optionalAccess', _392 => _392.id]) === id) {
|
|
14167
14176
|
setMessages([]);
|
|
14168
14177
|
return void 0;
|
|
14169
14178
|
}
|
|
@@ -14175,7 +14184,7 @@ function AssistantProvider({
|
|
|
14175
14184
|
(async () => {
|
|
14176
14185
|
setThreadsLoading(true);
|
|
14177
14186
|
try {
|
|
14178
|
-
const loaded = await _chunk53B6NPGAjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess',
|
|
14187
|
+
const loaded = await _chunk53B6NPGAjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _393 => _393.type]), boundId: _optionalChain([scope, 'optionalAccess', _394 => _394.id]) });
|
|
14179
14188
|
if (!cancelled) setThreads(loaded);
|
|
14180
14189
|
} finally {
|
|
14181
14190
|
if (!cancelled) setThreadsLoading(false);
|
|
@@ -14184,7 +14193,7 @@ function AssistantProvider({
|
|
|
14184
14193
|
return () => {
|
|
14185
14194
|
cancelled = true;
|
|
14186
14195
|
};
|
|
14187
|
-
}, [_optionalChain([scope, 'optionalAccess',
|
|
14196
|
+
}, [_optionalChain([scope, 'optionalAccess', _395 => _395.type]), _optionalChain([scope, 'optionalAccess', _396 => _396.id])]);
|
|
14188
14197
|
const value = _react.useMemo.call(void 0,
|
|
14189
14198
|
() => ({
|
|
14190
14199
|
assistant,
|
|
@@ -14335,7 +14344,7 @@ function readEntityTitle() {
|
|
|
14335
14344
|
if (typeof document === "undefined") return null;
|
|
14336
14345
|
const afterEntityType = document.title.split("]")[1];
|
|
14337
14346
|
if (!afterEntityType) return null;
|
|
14338
|
-
return _optionalChain([afterEntityType, 'access',
|
|
14347
|
+
return _optionalChain([afterEntityType, 'access', _397 => _397.split, 'call', _398 => _398("|"), 'access', _399 => _399[0], 'optionalAccess', _400 => _400.trim, 'call', _401 => _401()]) || null;
|
|
14339
14348
|
}
|
|
14340
14349
|
_chunk7QVYU63Ejs.__name.call(void 0, readEntityTitle, "readEntityTitle");
|
|
14341
14350
|
function usePageTracker() {
|
|
@@ -14364,7 +14373,7 @@ function usePageTracker() {
|
|
|
14364
14373
|
const existing = prev.find((page) => page.url === baseUrl);
|
|
14365
14374
|
const refreshed = {
|
|
14366
14375
|
url: baseUrl,
|
|
14367
|
-
title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess',
|
|
14376
|
+
title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _402 => _402.title]), () => ( foundModule.name)),
|
|
14368
14377
|
moduleType: foundModule.name,
|
|
14369
14378
|
timestamp: Date.now()
|
|
14370
14379
|
};
|
|
@@ -14426,7 +14435,7 @@ function usePushNotifications() {
|
|
|
14426
14435
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14427
14436
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
14428
14437
|
try {
|
|
14429
|
-
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess',
|
|
14438
|
+
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _403 => _403.id])}`;
|
|
14430
14439
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
14431
14440
|
const registration = await navigator.serviceWorker.register(`${_chunkJKGEJGSDjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
14432
14441
|
let permission = Notification.permission;
|
|
@@ -14483,7 +14492,7 @@ function useSocket({ token }) {
|
|
|
14483
14492
|
const socketRef = _react.useRef.call(void 0, null);
|
|
14484
14493
|
_react.useEffect.call(void 0, () => {
|
|
14485
14494
|
if (!token) return;
|
|
14486
|
-
const globalSocketKey = `__socket_${_optionalChain([process, 'access',
|
|
14495
|
+
const globalSocketKey = `__socket_${_optionalChain([process, 'access', _404 => _404.env, 'access', _405 => _405.NEXT_PUBLIC_API_URL, 'optionalAccess', _406 => _406.replace, 'call', _407 => _407(/[^a-zA-Z0-9]/g, "_")])}`;
|
|
14487
14496
|
if (typeof window !== "undefined") {
|
|
14488
14497
|
const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
|
|
14489
14498
|
const existingSocket = window[globalSocketKey];
|
|
@@ -14539,14 +14548,14 @@ function useSocket({ token }) {
|
|
|
14539
14548
|
});
|
|
14540
14549
|
}, "handleMessage");
|
|
14541
14550
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
14542
|
-
const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
14543
|
-
if (!_optionalChain([resource, 'optionalAccess',
|
|
14551
|
+
const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _408 => _408.data]), () => ( _optionalChain([data, 'optionalAccess', _409 => _409.jsonApi])));
|
|
14552
|
+
if (!_optionalChain([resource, 'optionalAccess', _410 => _410.type])) {
|
|
14544
14553
|
console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
|
|
14545
14554
|
return;
|
|
14546
14555
|
}
|
|
14547
14556
|
const notification = _chunk53B6NPGAjs.rehydrate.call(void 0, _chunk53B6NPGAjs.Modules.Notification, {
|
|
14548
14557
|
jsonApi: resource,
|
|
14549
|
-
included: _optionalChain([data, 'optionalAccess',
|
|
14558
|
+
included: _optionalChain([data, 'optionalAccess', _411 => _411.included]) || []
|
|
14550
14559
|
});
|
|
14551
14560
|
if (notification) {
|
|
14552
14561
|
setSocketNotifications((prev) => {
|
|
@@ -14665,7 +14674,7 @@ function BreadcrumbMobile({
|
|
|
14665
14674
|
}
|
|
14666
14675
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
14667
14676
|
/* @__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: [
|
|
14668
|
-
_optionalChain([lastItem, 'optionalAccess',
|
|
14677
|
+
_optionalChain([lastItem, 'optionalAccess', _412 => _412.name]),
|
|
14669
14678
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
|
|
14670
14679
|
] }),
|
|
14671
14680
|
/* @__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, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }, index)) })
|
|
@@ -14676,7 +14685,7 @@ function BreadcrumbNavigation({ items, rootLabel }) {
|
|
|
14676
14685
|
const generateUrl = usePageUrlGenerator();
|
|
14677
14686
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14678
14687
|
const isMobile = _chunk53B6NPGAjs.useIsMobile.call(void 0, );
|
|
14679
|
-
const root = _optionalChain([rootLabel, 'optionalAccess',
|
|
14688
|
+
const root = _optionalChain([rootLabel, 'optionalAccess', _413 => _413.trim, 'call', _414 => _414()]) ? rootLabel : t(`common.home`);
|
|
14680
14689
|
if (isMobile) {
|
|
14681
14690
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root });
|
|
14682
14691
|
}
|
|
@@ -15121,7 +15130,7 @@ var railTriggerClass = _chunk53B6NPGAjs.cn.call(void 0,
|
|
|
15121
15130
|
"data-[state=active]:bg-foreground data-[state=active]:text-background",
|
|
15122
15131
|
"data-[state=active]:font-semibold data-[state=active]:shadow-none"
|
|
15123
15132
|
);
|
|
15124
|
-
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access',
|
|
15133
|
+
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _415 => _415.key, 'optionalAccess', _416 => _416.name]))), () => ( tab.label)), "tabValue");
|
|
15125
15134
|
function RoundPageContainer({
|
|
15126
15135
|
module,
|
|
15127
15136
|
id,
|
|
@@ -15147,14 +15156,14 @@ function RoundPageContainer({
|
|
|
15147
15156
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
15148
15157
|
_react.useEffect.call(void 0, () => {
|
|
15149
15158
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
|
|
15150
|
-
const stored = _optionalChain([match, 'optionalAccess',
|
|
15159
|
+
const stored = _optionalChain([match, 'optionalAccess', _417 => _417.split, 'call', _418 => _418("="), 'access', _419 => _419[1]]);
|
|
15151
15160
|
if (stored === "true") setShowDetailsState(true);
|
|
15152
15161
|
else if (stored === "false") setShowDetailsState(false);
|
|
15153
15162
|
}, []);
|
|
15154
15163
|
_react.useEffect.call(void 0, () => {
|
|
15155
15164
|
setMounted(true);
|
|
15156
15165
|
}, []);
|
|
15157
|
-
const detailsCookieName = _optionalChain([module, 'optionalAccess',
|
|
15166
|
+
const detailsCookieName = _optionalChain([module, 'optionalAccess', _420 => _420.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
|
|
15158
15167
|
const setShowDetails = _react.useCallback.call(void 0,
|
|
15159
15168
|
(value) => {
|
|
15160
15169
|
setShowDetailsState(value);
|
|
@@ -15183,11 +15192,11 @@ function RoundPageContainer({
|
|
|
15183
15192
|
} else {
|
|
15184
15193
|
rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key } });
|
|
15185
15194
|
}
|
|
15186
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
15195
|
+
_optionalChain([onSectionChange, 'optionalCall', _421 => _421(key)]);
|
|
15187
15196
|
},
|
|
15188
15197
|
[module, id, rewriteUrl, onSectionChange]
|
|
15189
15198
|
);
|
|
15190
|
-
const activeFillHeight = _optionalChain([tabs, 'optionalAccess',
|
|
15199
|
+
const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _422 => _422.find, 'call', _423 => _423((t) => tabValue(t) === activeTab), 'optionalAccess', _424 => _424.fillHeight]) === true;
|
|
15191
15200
|
const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
|
|
15192
15201
|
const tabItems = _react.useMemo.call(void 0,
|
|
15193
15202
|
() => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
|
|
@@ -15568,14 +15577,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
15568
15577
|
const entityType = target.dataset.mentionType;
|
|
15569
15578
|
const alias = target.dataset.mentionAlias;
|
|
15570
15579
|
setHovered((prev) => {
|
|
15571
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
15580
|
+
if (_optionalChain([prev, 'optionalAccess', _425 => _425.id]) === id && _optionalChain([prev, 'optionalAccess', _426 => _426.element]) === target) return prev;
|
|
15572
15581
|
return { id, entityType, alias, element: target };
|
|
15573
15582
|
});
|
|
15574
15583
|
}, "handleMouseOver");
|
|
15575
15584
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
15576
15585
|
const target = e.target.closest("[data-mention-id]");
|
|
15577
15586
|
if (!target) return;
|
|
15578
|
-
const related = _optionalChain([e, 'access',
|
|
15587
|
+
const related = _optionalChain([e, 'access', _427 => _427.relatedTarget, 'optionalAccess', _428 => _428.closest, 'call', _429 => _429("[data-mention-id]")]);
|
|
15579
15588
|
if (related) return;
|
|
15580
15589
|
scheduleClose();
|
|
15581
15590
|
}, "handleMouseOut");
|
|
@@ -15589,7 +15598,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
15589
15598
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
15590
15599
|
if (!hovered || !mentionResolveFn) return null;
|
|
15591
15600
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
15592
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
15601
|
+
if (!_optionalChain([resolved, 'optionalAccess', _430 => _430.HoverContent])) return null;
|
|
15593
15602
|
const ContentComponent = resolved.HoverContent;
|
|
15594
15603
|
const rect = hovered.element.getBoundingClientRect();
|
|
15595
15604
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -15632,28 +15641,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
15632
15641
|
}, "parseMentionElement");
|
|
15633
15642
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
15634
15643
|
const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
15635
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
15644
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _431 => _431(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
15636
15645
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
|
|
15637
15646
|
"@",
|
|
15638
15647
|
displayName
|
|
15639
15648
|
] });
|
|
15640
15649
|
}, "MentionExternalHTML");
|
|
15641
15650
|
const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
15642
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
15651
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _432 => _432(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
15643
15652
|
if (disableMention) {
|
|
15644
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
15645
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
15653
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _433 => _433(props.id, props.entityType, displayName)]);
|
|
15654
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _434 => _434.url]), () => ( "#")), className: "text-primary", children: [
|
|
15646
15655
|
"@",
|
|
15647
15656
|
displayName
|
|
15648
15657
|
] });
|
|
15649
15658
|
}
|
|
15650
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
15651
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
15659
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _435 => _435(props.id, props.entityType, displayName)]);
|
|
15660
|
+
if (_optionalChain([resolved, 'optionalAccess', _436 => _436.Inline])) {
|
|
15652
15661
|
const Custom = resolved.Inline;
|
|
15653
15662
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
15654
15663
|
}
|
|
15655
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
15656
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
15664
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _437 => _437.url]), () => ( "#"));
|
|
15665
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _438 => _438.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
15657
15666
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15658
15667
|
_link2.default,
|
|
15659
15668
|
{
|
|
@@ -15761,7 +15770,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
15761
15770
|
if (!suggestionMenuComponent) return void 0;
|
|
15762
15771
|
const Component2 = suggestionMenuComponent;
|
|
15763
15772
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
15764
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
15773
|
+
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _439 => _439.items, 'access', _440 => _440[0], 'optionalAccess', _441 => _441.title]) === KEEP_OPEN_SENTINEL_TITLE;
|
|
15765
15774
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15766
15775
|
Component2,
|
|
15767
15776
|
{
|
|
@@ -15770,7 +15779,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
15770
15779
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
15771
15780
|
onItemClick: (item) => {
|
|
15772
15781
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
15773
|
-
_optionalChain([props, 'access',
|
|
15782
|
+
_optionalChain([props, 'access', _442 => _442.onItemClick, 'optionalCall', _443 => _443(item)]);
|
|
15774
15783
|
}
|
|
15775
15784
|
}
|
|
15776
15785
|
);
|
|
@@ -15964,10 +15973,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
15964
15973
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15965
15974
|
Checkbox,
|
|
15966
15975
|
{
|
|
15967
|
-
checked: _optionalChain([params, 'access',
|
|
15976
|
+
checked: _optionalChain([params, 'access', _444 => _444.checkedIds, 'optionalAccess', _445 => _445.includes, 'call', _446 => _446(row.getValue(params.name))]) || false,
|
|
15968
15977
|
onCheckedChange: (value) => {
|
|
15969
15978
|
row.toggleSelected(!!value);
|
|
15970
|
-
_optionalChain([params, 'access',
|
|
15979
|
+
_optionalChain([params, 'access', _447 => _447.toggleId, 'optionalCall', _448 => _448(row.getValue(params.name))]);
|
|
15971
15980
|
},
|
|
15972
15981
|
"aria-label": "Select row"
|
|
15973
15982
|
}
|
|
@@ -16026,7 +16035,7 @@ function useJsonApiGet(params) {
|
|
|
16026
16035
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
16027
16036
|
const isMounted = _react.useRef.call(void 0, true);
|
|
16028
16037
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
16029
|
-
if (_optionalChain([params, 'access',
|
|
16038
|
+
if (_optionalChain([params, 'access', _449 => _449.options, 'optionalAccess', _450 => _450.enabled]) === false) return;
|
|
16030
16039
|
setLoading(true);
|
|
16031
16040
|
setError(null);
|
|
16032
16041
|
try {
|
|
@@ -16053,9 +16062,9 @@ function useJsonApiGet(params) {
|
|
|
16053
16062
|
setLoading(false);
|
|
16054
16063
|
}
|
|
16055
16064
|
}
|
|
16056
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
16065
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _451 => _451.options, 'optionalAccess', _452 => _452.enabled])]);
|
|
16057
16066
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
16058
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16067
|
+
if (!_optionalChain([response, 'optionalAccess', _453 => _453.nextPage])) return;
|
|
16059
16068
|
setLoading(true);
|
|
16060
16069
|
try {
|
|
16061
16070
|
const nextResponse = await response.nextPage();
|
|
@@ -16076,7 +16085,7 @@ function useJsonApiGet(params) {
|
|
|
16076
16085
|
}
|
|
16077
16086
|
}, [response]);
|
|
16078
16087
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
16079
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16088
|
+
if (!_optionalChain([response, 'optionalAccess', _454 => _454.prevPage])) return;
|
|
16080
16089
|
setLoading(true);
|
|
16081
16090
|
try {
|
|
16082
16091
|
const prevResponse = await response.prevPage();
|
|
@@ -16102,15 +16111,15 @@ function useJsonApiGet(params) {
|
|
|
16102
16111
|
return () => {
|
|
16103
16112
|
isMounted.current = false;
|
|
16104
16113
|
};
|
|
16105
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
16114
|
+
}, [fetchData, ..._optionalChain([params, 'access', _455 => _455.options, 'optionalAccess', _456 => _456.deps]) || []]);
|
|
16106
16115
|
return {
|
|
16107
16116
|
data,
|
|
16108
16117
|
loading,
|
|
16109
16118
|
error,
|
|
16110
16119
|
response,
|
|
16111
16120
|
refetch: fetchData,
|
|
16112
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
16113
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
16121
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _457 => _457.next]),
|
|
16122
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _458 => _458.prev]),
|
|
16114
16123
|
fetchNextPage,
|
|
16115
16124
|
fetchPreviousPage
|
|
16116
16125
|
};
|
|
@@ -16188,17 +16197,17 @@ function useJsonApiMutation(config) {
|
|
|
16188
16197
|
if (apiResponse.ok) {
|
|
16189
16198
|
const resultData = apiResponse.data;
|
|
16190
16199
|
setData(resultData);
|
|
16191
|
-
_optionalChain([config, 'access',
|
|
16200
|
+
_optionalChain([config, 'access', _459 => _459.onSuccess, 'optionalCall', _460 => _460(resultData)]);
|
|
16192
16201
|
return resultData;
|
|
16193
16202
|
} else {
|
|
16194
16203
|
setError(apiResponse.error);
|
|
16195
|
-
_optionalChain([config, 'access',
|
|
16204
|
+
_optionalChain([config, 'access', _461 => _461.onError, 'optionalCall', _462 => _462(apiResponse.error)]);
|
|
16196
16205
|
return null;
|
|
16197
16206
|
}
|
|
16198
16207
|
} catch (err) {
|
|
16199
16208
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
16200
16209
|
setError(errorMessage);
|
|
16201
|
-
_optionalChain([config, 'access',
|
|
16210
|
+
_optionalChain([config, 'access', _463 => _463.onError, 'optionalCall', _464 => _464(errorMessage)]);
|
|
16202
16211
|
return null;
|
|
16203
16212
|
} finally {
|
|
16204
16213
|
setLoading(false);
|
|
@@ -16271,7 +16280,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16271
16280
|
{
|
|
16272
16281
|
href: hasRole(_chunkJKGEJGSDjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
16273
16282
|
page: "/administration",
|
|
16274
|
-
id: _optionalChain([_chunk53B6NPGAjs.Modules, 'access',
|
|
16283
|
+
id: _optionalChain([_chunk53B6NPGAjs.Modules, 'access', _465 => _465.Company, 'access', _466 => _466.pageUrl, 'optionalAccess', _467 => _467.substring, 'call', _468 => _468(1)]),
|
|
16275
16284
|
childPage: company.id
|
|
16276
16285
|
}) : generateUrl({ page: _chunk53B6NPGAjs.Modules.Company, id: company.id }),
|
|
16277
16286
|
children: row.getValue("name")
|
|
@@ -16287,7 +16296,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16287
16296
|
})
|
|
16288
16297
|
};
|
|
16289
16298
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16290
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16299
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _469 => _469[field], 'optionalCall', _470 => _470()])).filter((col) => col !== void 0);
|
|
16291
16300
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
16292
16301
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16293
16302
|
}, "useCompanyTableStructure");
|
|
@@ -16299,7 +16308,7 @@ var GRACE_DAYS = 3;
|
|
|
16299
16308
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
16300
16309
|
if (!currentUser || !_chunkJKGEJGSDjs.isRolesConfigured.call(void 0, )) return false;
|
|
16301
16310
|
const adminRoleId = _chunkJKGEJGSDjs.getRoleId.call(void 0, ).Administrator;
|
|
16302
|
-
return !!_optionalChain([currentUser, 'access',
|
|
16311
|
+
return !!_optionalChain([currentUser, 'access', _471 => _471.roles, 'optionalAccess', _472 => _472.some, 'call', _473 => _473((role) => role.id === adminRoleId)]);
|
|
16303
16312
|
}, "isAdministrator");
|
|
16304
16313
|
function useSubscriptionStatus() {
|
|
16305
16314
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -16417,7 +16426,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
16417
16426
|
})
|
|
16418
16427
|
};
|
|
16419
16428
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16420
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16429
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _474 => _474[field], 'optionalCall', _475 => _475()])).filter((col) => col !== void 0);
|
|
16421
16430
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16422
16431
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16423
16432
|
}, "useRoleTableStructure");
|
|
@@ -16525,7 +16534,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
16525
16534
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
|
|
16526
16535
|
price.active ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGreen", children: t("billing.admin.prices.status.active") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("billing.admin.prices.status.archived") }),
|
|
16527
16536
|
price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
|
|
16528
|
-
_optionalChain([price, 'access',
|
|
16537
|
+
_optionalChain([price, 'access', _476 => _476.recurring, 'optionalAccess', _477 => _477.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
|
|
16529
16538
|
] });
|
|
16530
16539
|
}, "cell"),
|
|
16531
16540
|
enableSorting: false,
|
|
@@ -16533,7 +16542,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
16533
16542
|
})
|
|
16534
16543
|
};
|
|
16535
16544
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16536
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16545
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _478 => _478[field], 'optionalCall', _479 => _479()])).filter((col) => col !== void 0);
|
|
16537
16546
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16538
16547
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16539
16548
|
}, "useStripePriceTableStructure");
|
|
@@ -16592,7 +16601,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
|
|
|
16592
16601
|
})
|
|
16593
16602
|
};
|
|
16594
16603
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16595
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16604
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _480 => _480[field], 'optionalCall', _481 => _481()])).filter((col) => col !== void 0);
|
|
16596
16605
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16597
16606
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16598
16607
|
}, "useStripeProductTableStructure");
|
|
@@ -16694,11 +16703,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16694
16703
|
return params.fields.map((field) => {
|
|
16695
16704
|
const localHandler = fieldColumnMap[field];
|
|
16696
16705
|
if (localHandler) return localHandler();
|
|
16697
|
-
const customHandler = _optionalChain([params, 'access',
|
|
16706
|
+
const customHandler = _optionalChain([params, 'access', _482 => _482.context, 'optionalAccess', _483 => _483.customCells, 'optionalAccess', _484 => _484[field]]);
|
|
16698
16707
|
if (customHandler) return customHandler({ t });
|
|
16699
16708
|
return void 0;
|
|
16700
16709
|
}).filter((col) => col !== void 0);
|
|
16701
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
16710
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _485 => _485.context, 'optionalAccess', _486 => _486.customCells])]);
|
|
16702
16711
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16703
16712
|
}, "useContentTableStructure");
|
|
16704
16713
|
|
|
@@ -17036,7 +17045,7 @@ function ContentTableSearch({ data }) {
|
|
|
17036
17045
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
17037
17046
|
if (!isExpanded) {
|
|
17038
17047
|
setIsFocused(true);
|
|
17039
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
17048
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _487 => _487.current, 'optionalAccess', _488 => _488.focus, 'call', _489 => _489()]), 50);
|
|
17040
17049
|
}
|
|
17041
17050
|
}, "handleSearchIconClick");
|
|
17042
17051
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -17132,7 +17141,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17132
17141
|
if (data.isLoaded) setPendingDirection(null);
|
|
17133
17142
|
}, [data.isLoaded]);
|
|
17134
17143
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
17135
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17144
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _490 => _490.data]), () => ( EMPTY_ARRAY)),
|
|
17136
17145
|
fields,
|
|
17137
17146
|
checkedIds,
|
|
17138
17147
|
toggleId,
|
|
@@ -17165,7 +17174,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17165
17174
|
});
|
|
17166
17175
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
17167
17176
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
17168
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
17177
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _491 => _491.rows, 'optionalAccess', _492 => _492.length])) return null;
|
|
17169
17178
|
const groupMap = /* @__PURE__ */ new Map();
|
|
17170
17179
|
for (const row of rowModel.rows) {
|
|
17171
17180
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -17233,19 +17242,19 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17233
17242
|
) }),
|
|
17234
17243
|
!props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
17235
17244
|
const meta = header.column.columnDef.meta;
|
|
17236
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
17245
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _493 => _493.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
17237
17246
|
}) }, headerGroup.id))
|
|
17238
17247
|
] }),
|
|
17239
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
17240
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access',
|
|
17248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _494 => _494.rows, 'optionalAccess', _495 => _495.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
|
|
17249
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access', _496 => _496.groupLabel, 'optionalCall', _497 => _497(group.groupKey)]), () => ( group.groupKey)) }) }) }),
|
|
17241
17250
|
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17242
17251
|
TableRow,
|
|
17243
17252
|
{
|
|
17244
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17253
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _498 => _498(row.original.jsonApiData)]),
|
|
17245
17254
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17246
17255
|
children: row.getVisibleCells().map((cell) => {
|
|
17247
17256
|
const meta = cell.column.columnDef.meta;
|
|
17248
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
17257
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _499 => _499.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
17249
17258
|
})
|
|
17250
17259
|
},
|
|
17251
17260
|
row.id
|
|
@@ -17253,11 +17262,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17253
17262
|
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17254
17263
|
TableRow,
|
|
17255
17264
|
{
|
|
17256
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17265
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _500 => _500(row.original.jsonApiData)]),
|
|
17257
17266
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17258
17267
|
children: row.getVisibleCells().map((cell) => {
|
|
17259
17268
|
const meta = cell.column.columnDef.meta;
|
|
17260
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
17269
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _501 => _501.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
17261
17270
|
})
|
|
17262
17271
|
},
|
|
17263
17272
|
row.id
|
|
@@ -17271,7 +17280,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17271
17280
|
onClick: (e) => {
|
|
17272
17281
|
e.preventDefault();
|
|
17273
17282
|
setPendingDirection("prev");
|
|
17274
|
-
_optionalChain([data, 'access',
|
|
17283
|
+
_optionalChain([data, 'access', _502 => _502.previous, 'optionalCall', _503 => _503(true)]);
|
|
17275
17284
|
},
|
|
17276
17285
|
disabled: !data.previous || pendingDirection !== null,
|
|
17277
17286
|
children: pendingDirection === "prev" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -17286,7 +17295,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17286
17295
|
onClick: (e) => {
|
|
17287
17296
|
e.preventDefault();
|
|
17288
17297
|
setPendingDirection("next");
|
|
17289
|
-
_optionalChain([data, 'access',
|
|
17298
|
+
_optionalChain([data, 'access', _504 => _504.next, 'optionalCall', _505 => _505(true)]);
|
|
17290
17299
|
},
|
|
17291
17300
|
disabled: !data.next || pendingDirection !== null,
|
|
17292
17301
|
children: pendingDirection === "next" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -17307,7 +17316,7 @@ function ContentListGrid(props) {
|
|
|
17307
17316
|
if (!data.next || !sentinelRef.current) return;
|
|
17308
17317
|
const observer = new IntersectionObserver(
|
|
17309
17318
|
(entries) => {
|
|
17310
|
-
if (_optionalChain([entries, 'access',
|
|
17319
|
+
if (_optionalChain([entries, 'access', _506 => _506[0], 'optionalAccess', _507 => _507.isIntersecting])) _optionalChain([data, 'access', _508 => _508.next, 'optionalCall', _509 => _509()]);
|
|
17311
17320
|
},
|
|
17312
17321
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
17313
17322
|
);
|
|
@@ -18094,7 +18103,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18094
18103
|
newDigits[index] = digit;
|
|
18095
18104
|
setDigits(newDigits);
|
|
18096
18105
|
if (digit && index < 5) {
|
|
18097
|
-
_optionalChain([inputRefs, 'access',
|
|
18106
|
+
_optionalChain([inputRefs, 'access', _510 => _510.current, 'access', _511 => _511[index + 1], 'optionalAccess', _512 => _512.focus, 'call', _513 => _513()]);
|
|
18098
18107
|
}
|
|
18099
18108
|
const code = newDigits.join("");
|
|
18100
18109
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -18103,7 +18112,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18103
18112
|
}, "handleChange");
|
|
18104
18113
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
18105
18114
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
18106
|
-
_optionalChain([inputRefs, 'access',
|
|
18115
|
+
_optionalChain([inputRefs, 'access', _514 => _514.current, 'access', _515 => _515[index - 1], 'optionalAccess', _516 => _516.focus, 'call', _517 => _517()]);
|
|
18107
18116
|
}
|
|
18108
18117
|
}, "handleKeyDown");
|
|
18109
18118
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -18112,7 +18121,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18112
18121
|
if (pastedData.length === 6) {
|
|
18113
18122
|
const newDigits = pastedData.split("");
|
|
18114
18123
|
setDigits(newDigits);
|
|
18115
|
-
_optionalChain([inputRefs, 'access',
|
|
18124
|
+
_optionalChain([inputRefs, 'access', _518 => _518.current, 'access', _519 => _519[5], 'optionalAccess', _520 => _520.focus, 'call', _521 => _521()]);
|
|
18116
18125
|
onComplete(pastedData);
|
|
18117
18126
|
}
|
|
18118
18127
|
}, "handlePaste");
|
|
@@ -18323,8 +18332,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
18323
18332
|
try {
|
|
18324
18333
|
const registrationData = await _chunk53B6NPGAjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
18325
18334
|
id: _uuid.v4.call(void 0, ),
|
|
18326
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18327
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
18335
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _522 => _522.email]), () => ( "")),
|
|
18336
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _523 => _523.name])
|
|
18328
18337
|
});
|
|
18329
18338
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
18330
18339
|
await _chunk53B6NPGAjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -18475,7 +18484,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
18475
18484
|
const setup = await _chunk53B6NPGAjs.TwoFactorService.setupTotp({
|
|
18476
18485
|
id: _uuid.v4.call(void 0, ),
|
|
18477
18486
|
name: name.trim(),
|
|
18478
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18487
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _524 => _524.email]), () => ( ""))
|
|
18479
18488
|
});
|
|
18480
18489
|
setQrCodeUri(setup.qrCodeUri);
|
|
18481
18490
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -18609,7 +18618,7 @@ function TwoFactorSettings() {
|
|
|
18609
18618
|
if (isLoading) {
|
|
18610
18619
|
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") }) }) });
|
|
18611
18620
|
}
|
|
18612
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
18621
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _525 => _525.isEnabled]), () => ( false));
|
|
18613
18622
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
18614
18623
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
18615
18624
|
isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "text-success h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "text-warning h-6 w-6" }),
|
|
@@ -18647,7 +18656,7 @@ function TwoFactorSettings() {
|
|
|
18647
18656
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
18648
18657
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
18649
18658
|
] }),
|
|
18650
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
18659
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _526 => _526.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
18651
18660
|
] }) }),
|
|
18652
18661
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
18653
18662
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -18825,9 +18834,9 @@ function AcceptInvitation() {
|
|
|
18825
18834
|
});
|
|
18826
18835
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
18827
18836
|
try {
|
|
18828
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
18837
|
+
if (!_optionalChain([params, 'optionalAccess', _527 => _527.code])) return;
|
|
18829
18838
|
const payload = {
|
|
18830
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
18839
|
+
code: _optionalChain([params, 'optionalAccess', _528 => _528.code]),
|
|
18831
18840
|
password: values.password
|
|
18832
18841
|
};
|
|
18833
18842
|
await _chunk53B6NPGAjs.AuthService.acceptInvitation(payload);
|
|
@@ -19177,7 +19186,7 @@ function Logout({ storageKeys }) {
|
|
|
19177
19186
|
const generateUrl = usePageUrlGenerator();
|
|
19178
19187
|
_react.useEffect.call(void 0, () => {
|
|
19179
19188
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
19180
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
19189
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _529 => _529.length])) {
|
|
19181
19190
|
clearClientStorage(storageKeys);
|
|
19182
19191
|
}
|
|
19183
19192
|
await _chunk53B6NPGAjs.AuthService.logout();
|
|
@@ -19200,14 +19209,14 @@ function RefreshUser() {
|
|
|
19200
19209
|
setUser(fullUser);
|
|
19201
19210
|
const token = {
|
|
19202
19211
|
userId: fullUser.id,
|
|
19203
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
19212
|
+
companyId: _optionalChain([fullUser, 'access', _530 => _530.company, 'optionalAccess', _531 => _531.id]),
|
|
19204
19213
|
roles: fullUser.roles.map((role) => role.id),
|
|
19205
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
19214
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _532 => _532.company, 'optionalAccess', _533 => _533.features, 'optionalAccess', _534 => _534.map, 'call', _535 => _535((feature) => feature.id)]), () => ( [])),
|
|
19206
19215
|
modules: fullUser.modules.map((module) => {
|
|
19207
19216
|
return { id: module.id, permissions: module.permissions };
|
|
19208
19217
|
})
|
|
19209
19218
|
};
|
|
19210
|
-
await _optionalChain([_chunk53B6NPGAjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
19219
|
+
await _optionalChain([_chunk53B6NPGAjs.getTokenHandler.call(void 0, ), 'optionalAccess', _536 => _536.updateToken, 'call', _537 => _537(token)]);
|
|
19211
19220
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
19212
19221
|
}
|
|
19213
19222
|
}, "loadFullUser");
|
|
@@ -19271,9 +19280,9 @@ function ResetPassword() {
|
|
|
19271
19280
|
});
|
|
19272
19281
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19273
19282
|
try {
|
|
19274
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19283
|
+
if (!_optionalChain([params, 'optionalAccess', _538 => _538.code])) return;
|
|
19275
19284
|
const payload = {
|
|
19276
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19285
|
+
code: _optionalChain([params, 'optionalAccess', _539 => _539.code]),
|
|
19277
19286
|
password: values.password
|
|
19278
19287
|
};
|
|
19279
19288
|
await _chunk53B6NPGAjs.AuthService.resetPassword(payload);
|
|
@@ -19716,7 +19725,7 @@ function extractHeadings(blocks) {
|
|
|
19716
19725
|
function processBlocks(blockArray) {
|
|
19717
19726
|
for (const block of blockArray) {
|
|
19718
19727
|
if (block.type === "heading") {
|
|
19719
|
-
const level = _optionalChain([block, 'access',
|
|
19728
|
+
const level = _optionalChain([block, 'access', _540 => _540.props, 'optionalAccess', _541 => _541.level]) || 1;
|
|
19720
19729
|
const text = extractTextFromContent(block.content);
|
|
19721
19730
|
if (text.trim()) {
|
|
19722
19731
|
headings.push({
|
|
@@ -20059,7 +20068,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
20059
20068
|
})
|
|
20060
20069
|
};
|
|
20061
20070
|
const columns = _react.useMemo.call(void 0, () => {
|
|
20062
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
20071
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _542 => _542[field], 'optionalCall', _543 => _543()])).filter((col) => col !== void 0);
|
|
20063
20072
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
20064
20073
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
20065
20074
|
}, "useHowToTableStructure");
|
|
@@ -20158,7 +20167,7 @@ function HowToSelector({
|
|
|
20158
20167
|
}, "setHowTo");
|
|
20159
20168
|
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: [
|
|
20160
20169
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
20161
|
-
/* @__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',
|
|
20170
|
+
/* @__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', _544 => _544.value, 'optionalAccess', _545 => _545.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 }) }))) }) }) }),
|
|
20162
20171
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20163
20172
|
_lucidereact.CircleX,
|
|
20164
20173
|
{
|
|
@@ -20552,10 +20561,10 @@ function CitationsTab({ citations, sources }) {
|
|
|
20552
20561
|
] }) }),
|
|
20553
20562
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
20554
20563
|
const isOpen = expanded.has(chunk.id);
|
|
20555
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
20564
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _546 => _546.get, 'call', _547 => _547(chunk.nodeId)]) : void 0;
|
|
20556
20565
|
const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
|
|
20557
20566
|
const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
|
|
20558
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
20567
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _548 => _548.name]), () => ( fallbackName));
|
|
20559
20568
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
20560
20569
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
20561
20570
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -20603,7 +20612,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
20603
20612
|
for (const c of citations) {
|
|
20604
20613
|
const id = c.nodeId;
|
|
20605
20614
|
if (!id) continue;
|
|
20606
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
20615
|
+
const source = _optionalChain([sources, 'optionalAccess', _549 => _549.get, 'call', _550 => _550(id)]);
|
|
20607
20616
|
if (!source) continue;
|
|
20608
20617
|
const existing = map.get(id);
|
|
20609
20618
|
if (existing) {
|
|
@@ -20670,7 +20679,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
20670
20679
|
const generate = usePageUrlGenerator();
|
|
20671
20680
|
const userMap = /* @__PURE__ */ new Map();
|
|
20672
20681
|
for (const u of users) {
|
|
20673
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
20682
|
+
if (!_optionalChain([u, 'optionalAccess', _551 => _551.id])) continue;
|
|
20674
20683
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
20675
20684
|
}
|
|
20676
20685
|
if (citations && sources) {
|
|
@@ -20775,7 +20784,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
20775
20784
|
}
|
|
20776
20785
|
return ids.size;
|
|
20777
20786
|
}, [message.citations, sources]);
|
|
20778
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
20787
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _552 => _552.length]), () => ( 0));
|
|
20779
20788
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
20780
20789
|
const visibleTabs = [];
|
|
20781
20790
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -20918,7 +20927,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
20918
20927
|
return void 0;
|
|
20919
20928
|
}
|
|
20920
20929
|
})()));
|
|
20921
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
20930
|
+
if (_optionalChain([author, 'optionalAccess', _553 => _553.id])) userMap.set(author.id, author);
|
|
20922
20931
|
}
|
|
20923
20932
|
return Array.from(userMap.values());
|
|
20924
20933
|
}, [resolved]);
|
|
@@ -20953,7 +20962,7 @@ function MessageItem({
|
|
|
20953
20962
|
}) {
|
|
20954
20963
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
20955
20964
|
const isUser = message.role === "user";
|
|
20956
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
20965
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _554 => _554.has, 'call', _555 => _555(message.id)]);
|
|
20957
20966
|
const markdownComponents = _react.useMemo.call(void 0,
|
|
20958
20967
|
() => ({
|
|
20959
20968
|
a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
|
|
@@ -20970,7 +20979,7 @@ function MessageItem({
|
|
|
20970
20979
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
20971
20980
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
20972
20981
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
20973
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
20982
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _556 => _556(message.id)]), children: t("features.assistant.retry") })
|
|
20974
20983
|
] })
|
|
20975
20984
|
] });
|
|
20976
20985
|
}
|
|
@@ -21061,7 +21070,7 @@ function AssistantThread({
|
|
|
21061
21070
|
}) {
|
|
21062
21071
|
const endRef = _react.useRef.call(void 0, null);
|
|
21063
21072
|
_react.useEffect.call(void 0, () => {
|
|
21064
|
-
_optionalChain([endRef, 'access',
|
|
21073
|
+
_optionalChain([endRef, 'access', _557 => _557.current, 'optionalAccess', _558 => _558.scrollIntoView, 'call', _559 => _559({ behavior: "smooth" })]);
|
|
21065
21074
|
}, [messages.length, sending]);
|
|
21066
21075
|
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: [
|
|
21067
21076
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -21091,7 +21100,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
|
|
|
21091
21100
|
AssistantSidebar,
|
|
21092
21101
|
{
|
|
21093
21102
|
threads: ctx.threads,
|
|
21094
|
-
activeId: _optionalChain([ctx, 'access',
|
|
21103
|
+
activeId: _optionalChain([ctx, 'access', _560 => _560.assistant, 'optionalAccess', _561 => _561.id]),
|
|
21095
21104
|
onSelect: ctx.selectThread,
|
|
21096
21105
|
onNew: ctx.startNew
|
|
21097
21106
|
}
|
|
@@ -21145,7 +21154,7 @@ function flattenBlocks(blocks) {
|
|
|
21145
21154
|
if (typeof inline === "string") return inline;
|
|
21146
21155
|
if (!inline || typeof inline !== "object") return "";
|
|
21147
21156
|
const node = inline;
|
|
21148
|
-
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access',
|
|
21157
|
+
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _562 => _562.props, 'optionalAccess', _563 => _563.alias]), () => ( ""));
|
|
21149
21158
|
if (typeof node.text === "string") return node.text;
|
|
21150
21159
|
if (Array.isArray(node.content)) return node.content.map(readInline).join("");
|
|
21151
21160
|
return "";
|
|
@@ -21261,7 +21270,7 @@ function AssistantPageContainer({
|
|
|
21261
21270
|
AssistantSidebar,
|
|
21262
21271
|
{
|
|
21263
21272
|
threads: ctx.threads,
|
|
21264
|
-
activeId: _optionalChain([ctx, 'access',
|
|
21273
|
+
activeId: _optionalChain([ctx, 'access', _564 => _564.assistant, 'optionalAccess', _565 => _565.id]),
|
|
21265
21274
|
onSelect: ctx.selectThread,
|
|
21266
21275
|
onNew: ctx.startNew
|
|
21267
21276
|
}
|
|
@@ -21363,7 +21372,7 @@ function ApprovalActionCard({ actionId, summary, onResolved }) {
|
|
|
21363
21372
|
try {
|
|
21364
21373
|
const message = kind === "approve" ? await _chunk53B6NPGAjs.AssistantActionService.approve({ id: actionId }) : await _chunk53B6NPGAjs.AssistantActionService.deny({ id: actionId });
|
|
21365
21374
|
setStatus(kind === "approve" ? "executed" : "denied");
|
|
21366
|
-
if (message) _optionalChain([onResolved, 'optionalCall',
|
|
21375
|
+
if (message) _optionalChain([onResolved, 'optionalCall', _566 => _566(message)]);
|
|
21367
21376
|
} catch (error) {
|
|
21368
21377
|
console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
|
|
21369
21378
|
setFailed(true);
|
|
@@ -21462,14 +21471,14 @@ function NotificationsList({ archived }) {
|
|
|
21462
21471
|
] }),
|
|
21463
21472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
21464
21473
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
21465
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
21474
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _567 => _567.data, 'optionalAccess', _568 => _568.map, 'call', _569 => _569((notification) => {
|
|
21466
21475
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
21467
21476
|
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: [
|
|
21468
21477
|
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: _chunk53B6NPGAjs.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" }),
|
|
21469
21478
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
21470
21479
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
21471
21480
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
21472
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
21481
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _570 => _570.actor, 'optionalAccess', _571 => _571.name]), () => ( "")),
|
|
21473
21482
|
title: notificationData.title
|
|
21474
21483
|
}) }),
|
|
21475
21484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -21815,7 +21824,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
21815
21824
|
invalidEmail: "Please enter a valid email address"
|
|
21816
21825
|
};
|
|
21817
21826
|
async function copyToClipboard(text) {
|
|
21818
|
-
if (_optionalChain([navigator, 'access',
|
|
21827
|
+
if (_optionalChain([navigator, 'access', _572 => _572.clipboard, 'optionalAccess', _573 => _573.writeText])) {
|
|
21819
21828
|
try {
|
|
21820
21829
|
await navigator.clipboard.writeText(text);
|
|
21821
21830
|
return true;
|
|
@@ -21857,7 +21866,7 @@ function ReferralWidget({
|
|
|
21857
21866
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
21858
21867
|
const config = _chunkJKGEJGSDjs.getReferralConfig.call(void 0, );
|
|
21859
21868
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
21860
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
21869
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _574 => _574.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
21861
21870
|
if (!_chunkJKGEJGSDjs.isReferralEnabled.call(void 0, )) {
|
|
21862
21871
|
return null;
|
|
21863
21872
|
}
|
|
@@ -21867,7 +21876,7 @@ function ReferralWidget({
|
|
|
21867
21876
|
if (success) {
|
|
21868
21877
|
setCopied(true);
|
|
21869
21878
|
_chunk53B6NPGAjs.showToast.call(void 0, t.copiedMessage);
|
|
21870
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
21879
|
+
_optionalChain([onLinkCopied, 'optionalCall', _575 => _575()]);
|
|
21871
21880
|
setTimeout(() => setCopied(false), 2e3);
|
|
21872
21881
|
} else {
|
|
21873
21882
|
_chunk53B6NPGAjs.showError.call(void 0, t.copyError);
|
|
@@ -21881,12 +21890,12 @@ function ReferralWidget({
|
|
|
21881
21890
|
try {
|
|
21882
21891
|
await sendInvite(email);
|
|
21883
21892
|
_chunk53B6NPGAjs.showToast.call(void 0, t.inviteSent);
|
|
21884
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
21893
|
+
_optionalChain([onInviteSent, 'optionalCall', _576 => _576(email)]);
|
|
21885
21894
|
setEmail("");
|
|
21886
21895
|
} catch (err) {
|
|
21887
21896
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
21888
21897
|
_chunk53B6NPGAjs.showError.call(void 0, error2.message);
|
|
21889
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
21898
|
+
_optionalChain([onInviteError, 'optionalCall', _577 => _577(error2)]);
|
|
21890
21899
|
}
|
|
21891
21900
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
21892
21901
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -22640,7 +22649,7 @@ function OAuthClientList({
|
|
|
22640
22649
|
OAuthClientCard,
|
|
22641
22650
|
{
|
|
22642
22651
|
client,
|
|
22643
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
22652
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _578 => _578(client)]),
|
|
22644
22653
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
22645
22654
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
22646
22655
|
},
|
|
@@ -22656,11 +22665,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
22656
22665
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
22657
22666
|
const isEditMode = !!client;
|
|
22658
22667
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
22659
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
22660
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
22661
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
22662
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
22663
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
22668
|
+
name: _optionalChain([client, 'optionalAccess', _579 => _579.name]) || "",
|
|
22669
|
+
description: _optionalChain([client, 'optionalAccess', _580 => _580.description]) || "",
|
|
22670
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _581 => _581.redirectUris, 'optionalAccess', _582 => _582.length]) ? client.redirectUris : [""],
|
|
22671
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _583 => _583.allowedScopes]) || [],
|
|
22672
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _584 => _584.isConfidential]), () => ( true))
|
|
22664
22673
|
});
|
|
22665
22674
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
22666
22675
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -22888,7 +22897,7 @@ function OAuthClientDetail({
|
|
|
22888
22897
|
] }),
|
|
22889
22898
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22890
22899
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
22891
|
-
/* @__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([_chunk53B6NPGAjs.OAUTH_SCOPE_DISPLAY, 'access',
|
|
22900
|
+
/* @__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([_chunk53B6NPGAjs.OAUTH_SCOPE_DISPLAY, 'access', _585 => _585[scope], 'optionalAccess', _586 => _586.name]) || scope }, scope)) })
|
|
22892
22901
|
] }),
|
|
22893
22902
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22894
22903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -23032,7 +23041,7 @@ function OAuthConsentScreen({
|
|
|
23032
23041
|
if (error || !clientInfo) {
|
|
23033
23042
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-dvh 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: [
|
|
23034
23043
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
23035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
23044
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _587 => _587.message]) || "Invalid authorization request. Please try again." })
|
|
23036
23045
|
] }) }) }) });
|
|
23037
23046
|
}
|
|
23038
23047
|
const { client, scopes } = clientInfo;
|
|
@@ -23248,7 +23257,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
23248
23257
|
questionnaire: values.questionnaire
|
|
23249
23258
|
});
|
|
23250
23259
|
setIsSuccess(true);
|
|
23251
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
23260
|
+
_optionalChain([onSuccess, 'optionalCall', _588 => _588()]);
|
|
23252
23261
|
} catch (e) {
|
|
23253
23262
|
errorToast({ error: e });
|
|
23254
23263
|
} finally {
|
|
@@ -23896,7 +23905,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
23896
23905
|
] }),
|
|
23897
23906
|
roleIds.map((roleId) => {
|
|
23898
23907
|
const roleTokens = block[roleId];
|
|
23899
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
23908
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _589 => _589[roleId]]), () => ( roleId));
|
|
23900
23909
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
23901
23910
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
23902
23911
|
_chunkJKGEJGSDjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23933,7 +23942,7 @@ function RbacContainer() {
|
|
|
23933
23942
|
}, []);
|
|
23934
23943
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
23935
23944
|
if (!matrix) return [];
|
|
23936
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
23945
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _590 => _590[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _591 => _591[b]]), () => ( b))));
|
|
23937
23946
|
}, [matrix, moduleNames]);
|
|
23938
23947
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
23939
23948
|
if (roleNames) {
|
|
@@ -23996,7 +24005,7 @@ function RbacContainer() {
|
|
|
23996
24005
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
23997
24006
|
id !== selectedModuleId && "text-muted-foreground"
|
|
23998
24007
|
),
|
|
23999
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24008
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _592 => _592[id]]), () => ( id))
|
|
24000
24009
|
}
|
|
24001
24010
|
) }, id)) }) }),
|
|
24002
24011
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24004,7 +24013,7 @@ function RbacContainer() {
|
|
|
24004
24013
|
{
|
|
24005
24014
|
moduleId: selectedModuleId,
|
|
24006
24015
|
block: selectedBlock,
|
|
24007
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24016
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _593 => _593[selectedModuleId]]), () => ( selectedModuleId)),
|
|
24008
24017
|
roleIds,
|
|
24009
24018
|
roleNames,
|
|
24010
24019
|
onOpenPicker: openPicker
|
|
@@ -24015,12 +24024,12 @@ function RbacContainer() {
|
|
|
24015
24024
|
RbacPermissionPicker,
|
|
24016
24025
|
{
|
|
24017
24026
|
open: !!activePicker,
|
|
24018
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
24027
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _594 => _594.anchor]), () => ( null)),
|
|
24019
24028
|
value: activeValue,
|
|
24020
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
24029
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _595 => _595.isRoleColumn]), () => ( false)),
|
|
24021
24030
|
knownSegments: activeSegments,
|
|
24022
24031
|
onSetValue: handleSetValue,
|
|
24023
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
24032
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _596 => _596.isRoleColumn]) ? handleClear : void 0,
|
|
24024
24033
|
onClose: closePicker
|
|
24025
24034
|
}
|
|
24026
24035
|
)
|
|
@@ -24087,7 +24096,7 @@ function RbacByRoleContainer() {
|
|
|
24087
24096
|
}, [roleNames]);
|
|
24088
24097
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
24089
24098
|
if (!matrix) return [];
|
|
24090
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24099
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _597 => _597[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _598 => _598[b]]), () => ( b))));
|
|
24091
24100
|
}, [matrix, moduleNames]);
|
|
24092
24101
|
_react.useEffect.call(void 0, () => {
|
|
24093
24102
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -24136,7 +24145,7 @@ function RbacByRoleContainer() {
|
|
|
24136
24145
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
24137
24146
|
id !== selectedRoleId && "text-muted-foreground"
|
|
24138
24147
|
),
|
|
24139
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
24148
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _599 => _599[id]]), () => ( id))
|
|
24140
24149
|
}
|
|
24141
24150
|
) }, id)) }) }),
|
|
24142
24151
|
/* @__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: [
|
|
@@ -24156,7 +24165,7 @@ function RbacByRoleContainer() {
|
|
|
24156
24165
|
if (!block) return null;
|
|
24157
24166
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
24158
24167
|
const roleTokens = block[selectedRoleId];
|
|
24159
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24168
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _600 => _600[moduleId]]), () => ( moduleId));
|
|
24160
24169
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
24161
24170
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24162
24171
|
"td",
|
|
@@ -24171,7 +24180,7 @@ function RbacByRoleContainer() {
|
|
|
24171
24180
|
_chunkJKGEJGSDjs.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))
|
|
24172
24181
|
] }),
|
|
24173
24182
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
24174
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
24183
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _601 => _601[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
24175
24184
|
_chunkJKGEJGSDjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24176
24185
|
CellButton3,
|
|
24177
24186
|
{
|
|
@@ -24192,12 +24201,12 @@ function RbacByRoleContainer() {
|
|
|
24192
24201
|
RbacPermissionPicker,
|
|
24193
24202
|
{
|
|
24194
24203
|
open: !!activePicker,
|
|
24195
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
24204
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _602 => _602.anchor]), () => ( null)),
|
|
24196
24205
|
value: activeValue,
|
|
24197
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
24206
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _603 => _603.isRoleColumn]), () => ( false)),
|
|
24198
24207
|
knownSegments: activeSegments,
|
|
24199
24208
|
onSetValue: handleSetValue,
|
|
24200
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
24209
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _604 => _604.isRoleColumn]) ? handleClear : void 0,
|
|
24201
24210
|
onClose: closePicker
|
|
24202
24211
|
}
|
|
24203
24212
|
)
|
|
@@ -24768,4 +24777,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
24768
24777
|
|
|
24769
24778
|
|
|
24770
24779
|
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.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.AdministrationProvider = AdministrationProvider; exports.useAdministrationContext = useAdministrationContext; 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.useHeaderMobileChildren = useHeaderMobileChildren; exports.useHeaderRootLabel = useHeaderRootLabel; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.HeaderLogoProvider = HeaderLogoProvider; exports.useHeaderLogo = useHeaderLogo; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.Header = Header; exports.MobileNavigationProvider = MobileNavigationProvider; exports.useMobileNavigationItems = useMobileNavigationItems; exports.MobileNavigationBar = MobileNavigationBar; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.HEADER_ROW_MIN_H = HEADER_ROW_MIN_H; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.PlatformUsersList = PlatformUsersList; exports.PlatformUsersContainer = PlatformUsersContainer; 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.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.CurrencyInput = CurrencyInput; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.EntitySelector = EntitySelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormBlockNote = FormBlockNote; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.FormBody = FormBody; exports.FormSection = FormSection; exports.FormRow = FormRow; exports.FormCol = FormCol; 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.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.EntityHeroLayout = EntityHeroLayout; exports.EntityHero = EntityHero; exports.EntityHeroAvatar = EntityHeroAvatar; exports.EntityHeroMetaRow = EntityHeroMetaRow; exports.EntitySection = EntitySection; 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.AdminIndexGrid = AdminIndexGrid; exports.AdminIndexContainer = AdminIndexContainer; exports.ADMINISTRATION_I18N_KEYS = ADMINISTRATION_I18N_KEYS; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.CompaniesListContainer = CompaniesListContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; 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.AssistantBlockNoteComposer = AssistantBlockNoteComposer; exports.AssistantPageContainer = AssistantPageContainer; exports.ApprovalActionCard = ApprovalActionCard; exports.AssistantContainerWithApprovals = AssistantContainerWithApprovals; 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.ViewportProvider = ViewportProvider; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
24771
|
-
//# sourceMappingURL=chunk-
|
|
24780
|
+
//# sourceMappingURL=chunk-5GVBUTS4.js.map
|