@carlonicora/nextjs-jsonapi 1.54.0 → 1.54.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-H7TO4U5Q.js → BlockNoteEditor-RQCTOZHO.js} +6 -6
- package/dist/{BlockNoteEditor-H7TO4U5Q.js.map → BlockNoteEditor-RQCTOZHO.js.map} +1 -1
- package/dist/{BlockNoteEditor-3FJNUMPG.mjs → BlockNoteEditor-Y5Q25O4P.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-4EOS4FWI.js → chunk-3T2Z3H7V.js} +113 -111
- package/dist/chunk-3T2Z3H7V.js.map +1 -0
- package/dist/{chunk-U42KH22X.mjs → chunk-MVAUGASJ.mjs} +6 -4
- package/dist/chunk-MVAUGASJ.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.d.ts +2 -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/package.json +1 -1
- package/src/components/forms/FormBlockNote.tsx +4 -1
- package/dist/chunk-4EOS4FWI.js.map +0 -1
- package/dist/chunk-U42KH22X.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-3FJNUMPG.mjs.map → BlockNoteEditor-Y5Q25O4P.mjs.map} +0 -0
|
@@ -8343,7 +8343,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
8343
8343
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
8344
8344
|
|
|
8345
8345
|
|
|
8346
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
8346
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-RQCTOZHO.js"))), {
|
|
8347
8347
|
ssr: false
|
|
8348
8348
|
});
|
|
8349
8349
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -8360,7 +8360,8 @@ function FormBlockNote({
|
|
|
8360
8360
|
type,
|
|
8361
8361
|
isRequired = false,
|
|
8362
8362
|
description,
|
|
8363
|
-
testId
|
|
8363
|
+
testId,
|
|
8364
|
+
onEmptyChange
|
|
8364
8365
|
}) {
|
|
8365
8366
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8366
8367
|
FormFieldWrapper,
|
|
@@ -8377,8 +8378,9 @@ function FormBlockNote({
|
|
|
8377
8378
|
id: form.getValues("id"),
|
|
8378
8379
|
type,
|
|
8379
8380
|
initialContent: field.value,
|
|
8380
|
-
onChange: (content) => {
|
|
8381
|
+
onChange: (content, isEmpty) => {
|
|
8381
8382
|
field.onChange(content);
|
|
8383
|
+
_optionalChain([onEmptyChange, 'optionalCall', _227 => _227(isEmpty)]);
|
|
8382
8384
|
},
|
|
8383
8385
|
placeholder,
|
|
8384
8386
|
bordered: true
|
|
@@ -8920,11 +8922,11 @@ function FormPlaceAutocomplete({
|
|
|
8920
8922
|
const data = await response.json();
|
|
8921
8923
|
if (data.suggestions) {
|
|
8922
8924
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
8923
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
8924
|
-
description: _optionalChain([suggestion, 'access',
|
|
8925
|
+
place_id: _optionalChain([suggestion, 'access', _228 => _228.placePrediction, 'optionalAccess', _229 => _229.placeId]) || "",
|
|
8926
|
+
description: _optionalChain([suggestion, 'access', _230 => _230.placePrediction, 'optionalAccess', _231 => _231.text, 'optionalAccess', _232 => _232.text]) || "",
|
|
8925
8927
|
structured_formatting: {
|
|
8926
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
8927
|
-
secondary_text: _optionalChain([suggestion, 'access',
|
|
8928
|
+
main_text: _optionalChain([suggestion, 'access', _233 => _233.placePrediction, 'optionalAccess', _234 => _234.structuredFormat, 'optionalAccess', _235 => _235.mainText, 'optionalAccess', _236 => _236.text]) || "",
|
|
8929
|
+
secondary_text: _optionalChain([suggestion, 'access', _237 => _237.placePrediction, 'optionalAccess', _238 => _238.structuredFormat, 'optionalAccess', _239 => _239.secondaryText, 'optionalAccess', _240 => _240.text]) || ""
|
|
8928
8930
|
}
|
|
8929
8931
|
}));
|
|
8930
8932
|
setSuggestions(formattedSuggestions);
|
|
@@ -9019,8 +9021,8 @@ function FormPlaceAutocomplete({
|
|
|
9019
9021
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
9020
9022
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
9021
9023
|
children: [
|
|
9022
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access',
|
|
9023
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access',
|
|
9024
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _241 => _241.structured_formatting, 'optionalAccess', _242 => _242.main_text]) }),
|
|
9025
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _243 => _243.structured_formatting, 'optionalAccess', _244 => _244.secondary_text]) })
|
|
9024
9026
|
]
|
|
9025
9027
|
},
|
|
9026
9028
|
suggestion.place_id || index
|
|
@@ -9061,7 +9063,7 @@ function FormSelect({
|
|
|
9061
9063
|
disabled,
|
|
9062
9064
|
"data-testid": testId,
|
|
9063
9065
|
children: [
|
|
9064
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: _optionalChain([values, 'access',
|
|
9066
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: _optionalChain([values, 'access', _245 => _245.find, 'call', _246 => _246((v) => v.id === field.value), 'optionalAccess', _247 => _247.text]) }) }),
|
|
9065
9067
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id)) })
|
|
9066
9068
|
]
|
|
9067
9069
|
}
|
|
@@ -9245,7 +9247,7 @@ function UserMultiSelect({
|
|
|
9245
9247
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9246
9248
|
return _chunkQOLVON35js.UserService.findAllUsers(params);
|
|
9247
9249
|
}, "retriever"),
|
|
9248
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
9250
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _248 => _248.id]) },
|
|
9249
9251
|
module: _chunkQOLVON35js.Modules.User
|
|
9250
9252
|
});
|
|
9251
9253
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9272,7 +9274,7 @@ function UserMultiSelect({
|
|
|
9272
9274
|
_react.useEffect.call(void 0, () => {
|
|
9273
9275
|
if (data.data && data.data.length > 0) {
|
|
9274
9276
|
const users = data.data;
|
|
9275
|
-
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess',
|
|
9277
|
+
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _249 => _249.id]));
|
|
9276
9278
|
const options = filteredUsers.map((user) => ({
|
|
9277
9279
|
label: user.name,
|
|
9278
9280
|
value: user.id,
|
|
@@ -9301,14 +9303,14 @@ function UserMultiSelect({
|
|
|
9301
9303
|
return {
|
|
9302
9304
|
id: option.value,
|
|
9303
9305
|
name: option.label,
|
|
9304
|
-
avatar: _optionalChain([userOption, 'optionalAccess',
|
|
9306
|
+
avatar: _optionalChain([userOption, 'optionalAccess', _250 => _250.avatar])
|
|
9305
9307
|
};
|
|
9306
9308
|
});
|
|
9307
9309
|
form.setValue(id, formValues, { shouldDirty: true, shouldTouch: true });
|
|
9308
9310
|
if (onChange) {
|
|
9309
9311
|
const fullUsers = options.map((option) => {
|
|
9310
9312
|
const userOption = userOptions.find((opt) => opt.value === option.value);
|
|
9311
|
-
return _optionalChain([userOption, 'optionalAccess',
|
|
9313
|
+
return _optionalChain([userOption, 'optionalAccess', _251 => _251.userData]);
|
|
9312
9314
|
}).filter(Boolean);
|
|
9313
9315
|
onChange(fullUsers);
|
|
9314
9316
|
}
|
|
@@ -9474,7 +9476,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9474
9476
|
}, "getInitials");
|
|
9475
9477
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9476
9478
|
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: [
|
|
9477
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess',
|
|
9479
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _252 => _252.avatar]) }),
|
|
9478
9480
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials(user.name) })
|
|
9479
9481
|
] }) });
|
|
9480
9482
|
}, "getAvatar");
|
|
@@ -9572,10 +9574,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9572
9574
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
9573
9575
|
/* @__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, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md border p-2", children: [
|
|
9574
9576
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `mr-2 h-6 w-6`, children: [
|
|
9575
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
9576
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access',
|
|
9577
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _253 => _253.value, 'optionalAccess', _254 => _254.avatar]) }),
|
|
9578
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _255 => _255.value, 'optionalAccess', _256 => _256.name]) ? _optionalChain([field, 'access', _257 => _257.value, 'optionalAccess', _258 => _258.name, 'access', _259 => _259.split, 'call', _260 => _260(" "), 'access', _261 => _261.map, 'call', _262 => _262((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
9577
9579
|
] }) }),
|
|
9578
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
9580
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access', _263 => _263.value, 'optionalAccess', _264 => _264.name]), () => ( "")) })
|
|
9579
9581
|
] }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mr-7 flex h-10 w-full flex-row items-center justify-start rounded-md border p-2 text-sm", children: _nullishCoalesce(placeholder, () => ( t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }))) }) }) }),
|
|
9580
9582
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9581
9583
|
_lucidereact.CircleX,
|
|
@@ -9870,7 +9872,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9870
9872
|
const data = useDataListRetriever({
|
|
9871
9873
|
ready: !!company,
|
|
9872
9874
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQOLVON35js.UserService.findAllUsers(params), "retriever"),
|
|
9873
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
9875
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _265 => _265.id]), isDeleted },
|
|
9874
9876
|
module: _chunkQOLVON35js.Modules.User
|
|
9875
9877
|
});
|
|
9876
9878
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9976,11 +9978,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
9976
9978
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
9977
9979
|
onClick: (_e) => {
|
|
9978
9980
|
setSelectedUser(user);
|
|
9979
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
9981
|
+
_optionalChain([setLevelOpen, 'optionalCall', _266 => _266(true)]);
|
|
9980
9982
|
},
|
|
9981
9983
|
onSelect: (_e) => {
|
|
9982
9984
|
setSelectedUser(user);
|
|
9983
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
9985
|
+
_optionalChain([setLevelOpen, 'optionalCall', _267 => _267(true)]);
|
|
9984
9986
|
},
|
|
9985
9987
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
9986
9988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -10265,8 +10267,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
10265
10267
|
const { setUser } = useCurrentUserContext();
|
|
10266
10268
|
const defaultValues = _react.useMemo.call(void 0, () => {
|
|
10267
10269
|
return {
|
|
10268
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10269
|
-
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10270
|
+
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _268 => _268.configurations, 'optionalAccess', _269 => _269.isManagedKnowledge]), () => ( false)),
|
|
10271
|
+
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _270 => _270.configurations, 'optionalAccess', _271 => _271.allowPublicBot]), () => ( false))
|
|
10270
10272
|
};
|
|
10271
10273
|
}, [company.configurations]);
|
|
10272
10274
|
const close = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -10285,8 +10287,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
10285
10287
|
_react.useEffect.call(void 0, () => {
|
|
10286
10288
|
if (open) {
|
|
10287
10289
|
form.reset({
|
|
10288
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10289
|
-
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10290
|
+
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _272 => _272.configurations, 'optionalAccess', _273 => _273.isManagedKnowledge]), () => ( false)),
|
|
10291
|
+
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _274 => _274.configurations, 'optionalAccess', _275 => _275.allowPublicBot]), () => ( false))
|
|
10290
10292
|
});
|
|
10291
10293
|
}
|
|
10292
10294
|
}, [company, open]);
|
|
@@ -10513,11 +10515,11 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10513
10515
|
const form = _reacthookform.useForm.call(void 0, {
|
|
10514
10516
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
10515
10517
|
defaultValues: {
|
|
10516
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
10517
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
10518
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
10519
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
10520
|
-
logo: _optionalChain([company, 'optionalAccess',
|
|
10518
|
+
id: _optionalChain([company, 'optionalAccess', _276 => _276.id]) || _uuid.v4.call(void 0, ),
|
|
10519
|
+
name: _optionalChain([company, 'optionalAccess', _277 => _277.name]) || "",
|
|
10520
|
+
featureIds: _optionalChain([company, 'optionalAccess', _278 => _278.features, 'access', _279 => _279.map, 'call', _280 => _280((feature) => feature.id)]) || [],
|
|
10521
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _281 => _281.modules, 'access', _282 => _282.map, 'call', _283 => _283((module) => module.id)]) || [],
|
|
10522
|
+
logo: _optionalChain([company, 'optionalAccess', _284 => _284.logo]) || ""
|
|
10521
10523
|
}
|
|
10522
10524
|
});
|
|
10523
10525
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
@@ -10534,7 +10536,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10534
10536
|
});
|
|
10535
10537
|
}
|
|
10536
10538
|
const payload = {
|
|
10537
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
10539
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _285 => _285.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
10538
10540
|
name: values.name,
|
|
10539
10541
|
logo: files && contentType ? values.logo : void 0,
|
|
10540
10542
|
featureIds: values.featureIds,
|
|
@@ -10569,7 +10571,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10569
10571
|
}
|
|
10570
10572
|
}
|
|
10571
10573
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
10572
|
-
if (open && features.length === 0 && (hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
10574
|
+
if (open && features.length === 0 && (hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _286 => _286.env, 'access', _287 => _287.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _288 => _288.toLowerCase, 'call', _289 => _289()]) === "true"))
|
|
10573
10575
|
fetchFeatures();
|
|
10574
10576
|
}, [open, features]);
|
|
10575
10577
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10603,7 +10605,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10603
10605
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
10604
10606
|
}
|
|
10605
10607
|
};
|
|
10606
|
-
const canAccessFeatures = hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
10608
|
+
const canAccessFeatures = hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _290 => _290.env, 'access', _291 => _291.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _292 => _292.toLowerCase, 'call', _293 => _293()]) === "true";
|
|
10607
10609
|
const isAdministrator2 = hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator);
|
|
10608
10610
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
10609
10611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
@@ -10612,13 +10614,13 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10612
10614
|
{
|
|
10613
10615
|
className: `flex max-h-[70vh] w-full ${isAdministrator2 || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
|
|
10614
10616
|
children: [
|
|
10615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess',
|
|
10617
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _294 => _294.name]) }),
|
|
10616
10618
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
|
|
10617
10619
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
10618
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess',
|
|
10620
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _295 => _295.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10619
10621
|
_image2.default,
|
|
10620
10622
|
{
|
|
10621
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
10623
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _296 => _296.logo]) || "",
|
|
10622
10624
|
alt: "Company Logo",
|
|
10623
10625
|
width: 200,
|
|
10624
10626
|
height: 200
|
|
@@ -10753,7 +10755,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
10753
10755
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10754
10756
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10755
10757
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10756
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
10758
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _297 => _297.actor, 'optionalAccess', _298 => _298.name]), () => ( "")),
|
|
10757
10759
|
title: data.title,
|
|
10758
10760
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10759
10761
|
}) }),
|
|
@@ -10782,7 +10784,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
10782
10784
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10783
10785
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10784
10786
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10785
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
10787
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _299 => _299.actor, 'optionalAccess', _300 => _300.name]), () => ( "")),
|
|
10786
10788
|
title: data.title,
|
|
10787
10789
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10788
10790
|
}) }),
|
|
@@ -10839,7 +10841,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10839
10841
|
_react.useEffect.call(void 0, () => {
|
|
10840
10842
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
10841
10843
|
if (_chunkUJBUJALXjs.isRolesConfigured.call(void 0, )) {
|
|
10842
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
10844
|
+
const isAdmin = _optionalChain([currentUser, 'access', _301 => _301.roles, 'optionalAccess', _302 => _302.some, 'call', _303 => _303((role) => role.id === _chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator)]);
|
|
10843
10845
|
if (isAdmin) {
|
|
10844
10846
|
setHasInitiallyLoaded(true);
|
|
10845
10847
|
return;
|
|
@@ -11041,7 +11043,7 @@ function OnboardingProvider({
|
|
|
11041
11043
|
let tourSteps = steps;
|
|
11042
11044
|
if (!tourSteps) {
|
|
11043
11045
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
11044
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
11046
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _304 => _304.steps]);
|
|
11045
11047
|
}
|
|
11046
11048
|
if (!tourSteps || tourSteps.length === 0) {
|
|
11047
11049
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -11109,10 +11111,10 @@ function OnboardingProvider({
|
|
|
11109
11111
|
when: {
|
|
11110
11112
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11111
11113
|
setCurrentStepIndex(index);
|
|
11112
|
-
_optionalChain([stepConfig, 'access',
|
|
11114
|
+
_optionalChain([stepConfig, 'access', _305 => _305.onShow, 'optionalCall', _306 => _306()]);
|
|
11113
11115
|
}, "show"),
|
|
11114
11116
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11115
|
-
_optionalChain([stepConfig, 'access',
|
|
11117
|
+
_optionalChain([stepConfig, 'access', _307 => _307.onHide, 'optionalCall', _308 => _308()]);
|
|
11116
11118
|
}, "hide")
|
|
11117
11119
|
}
|
|
11118
11120
|
});
|
|
@@ -11300,7 +11302,7 @@ function usePageTracker() {
|
|
|
11300
11302
|
if (typeof document !== "undefined") {
|
|
11301
11303
|
const titleParts = document.title.split("]");
|
|
11302
11304
|
if (titleParts[1]) {
|
|
11303
|
-
const cleanTitle = _optionalChain([titleParts, 'access',
|
|
11305
|
+
const cleanTitle = _optionalChain([titleParts, 'access', _309 => _309[1], 'access', _310 => _310.split, 'call', _311 => _311("|"), 'access', _312 => _312[0], 'optionalAccess', _313 => _313.trim, 'call', _314 => _314()]);
|
|
11304
11306
|
pageTitle = cleanTitle || foundModule.name;
|
|
11305
11307
|
}
|
|
11306
11308
|
}
|
|
@@ -11337,7 +11339,7 @@ function usePushNotifications() {
|
|
|
11337
11339
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
11338
11340
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
11339
11341
|
try {
|
|
11340
|
-
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess',
|
|
11342
|
+
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _315 => _315.id])}`;
|
|
11341
11343
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
11342
11344
|
const registration = await navigator.serviceWorker.register(`${_chunkUJBUJALXjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
11343
11345
|
let permission = Notification.permission;
|
|
@@ -11391,7 +11393,7 @@ function useSocket({ token }) {
|
|
|
11391
11393
|
const socketRef = _react.useRef.call(void 0, null);
|
|
11392
11394
|
_react.useEffect.call(void 0, () => {
|
|
11393
11395
|
if (!token) return;
|
|
11394
|
-
const globalSocketKey = `__socket_${_optionalChain([process, 'access',
|
|
11396
|
+
const globalSocketKey = `__socket_${_optionalChain([process, 'access', _316 => _316.env, 'access', _317 => _317.NEXT_PUBLIC_API_URL, 'optionalAccess', _318 => _318.replace, 'call', _319 => _319(/[^a-zA-Z0-9]/g, "_")])}`;
|
|
11395
11397
|
if (typeof window !== "undefined") {
|
|
11396
11398
|
const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
|
|
11397
11399
|
const existingSocket = window[globalSocketKey];
|
|
@@ -12064,10 +12066,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
12064
12066
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12065
12067
|
Checkbox,
|
|
12066
12068
|
{
|
|
12067
|
-
checked: _optionalChain([params, 'access',
|
|
12069
|
+
checked: _optionalChain([params, 'access', _320 => _320.checkedIds, 'optionalAccess', _321 => _321.includes, 'call', _322 => _322(row.getValue(params.name))]) || false,
|
|
12068
12070
|
onCheckedChange: (value) => {
|
|
12069
12071
|
row.toggleSelected(!!value);
|
|
12070
|
-
_optionalChain([params, 'access',
|
|
12072
|
+
_optionalChain([params, 'access', _323 => _323.toggleId, 'optionalCall', _324 => _324(row.getValue(params.name))]);
|
|
12071
12073
|
},
|
|
12072
12074
|
"aria-label": "Select row"
|
|
12073
12075
|
}
|
|
@@ -12126,7 +12128,7 @@ function useJsonApiGet(params) {
|
|
|
12126
12128
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
12127
12129
|
const isMounted = _react.useRef.call(void 0, true);
|
|
12128
12130
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
12129
|
-
if (_optionalChain([params, 'access',
|
|
12131
|
+
if (_optionalChain([params, 'access', _325 => _325.options, 'optionalAccess', _326 => _326.enabled]) === false) return;
|
|
12130
12132
|
setLoading(true);
|
|
12131
12133
|
setError(null);
|
|
12132
12134
|
try {
|
|
@@ -12153,9 +12155,9 @@ function useJsonApiGet(params) {
|
|
|
12153
12155
|
setLoading(false);
|
|
12154
12156
|
}
|
|
12155
12157
|
}
|
|
12156
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
12158
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _327 => _327.options, 'optionalAccess', _328 => _328.enabled])]);
|
|
12157
12159
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
12158
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
12160
|
+
if (!_optionalChain([response, 'optionalAccess', _329 => _329.nextPage])) return;
|
|
12159
12161
|
setLoading(true);
|
|
12160
12162
|
try {
|
|
12161
12163
|
const nextResponse = await response.nextPage();
|
|
@@ -12176,7 +12178,7 @@ function useJsonApiGet(params) {
|
|
|
12176
12178
|
}
|
|
12177
12179
|
}, [response]);
|
|
12178
12180
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
12179
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
12181
|
+
if (!_optionalChain([response, 'optionalAccess', _330 => _330.prevPage])) return;
|
|
12180
12182
|
setLoading(true);
|
|
12181
12183
|
try {
|
|
12182
12184
|
const prevResponse = await response.prevPage();
|
|
@@ -12202,15 +12204,15 @@ function useJsonApiGet(params) {
|
|
|
12202
12204
|
return () => {
|
|
12203
12205
|
isMounted.current = false;
|
|
12204
12206
|
};
|
|
12205
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
12207
|
+
}, [fetchData, ..._optionalChain([params, 'access', _331 => _331.options, 'optionalAccess', _332 => _332.deps]) || []]);
|
|
12206
12208
|
return {
|
|
12207
12209
|
data,
|
|
12208
12210
|
loading,
|
|
12209
12211
|
error,
|
|
12210
12212
|
response,
|
|
12211
12213
|
refetch: fetchData,
|
|
12212
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
12213
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
12214
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _333 => _333.next]),
|
|
12215
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _334 => _334.prev]),
|
|
12214
12216
|
fetchNextPage,
|
|
12215
12217
|
fetchPreviousPage
|
|
12216
12218
|
};
|
|
@@ -12288,17 +12290,17 @@ function useJsonApiMutation(config) {
|
|
|
12288
12290
|
if (apiResponse.ok) {
|
|
12289
12291
|
const resultData = apiResponse.data;
|
|
12290
12292
|
setData(resultData);
|
|
12291
|
-
_optionalChain([config, 'access',
|
|
12293
|
+
_optionalChain([config, 'access', _335 => _335.onSuccess, 'optionalCall', _336 => _336(resultData)]);
|
|
12292
12294
|
return resultData;
|
|
12293
12295
|
} else {
|
|
12294
12296
|
setError(apiResponse.error);
|
|
12295
|
-
_optionalChain([config, 'access',
|
|
12297
|
+
_optionalChain([config, 'access', _337 => _337.onError, 'optionalCall', _338 => _338(apiResponse.error)]);
|
|
12296
12298
|
return null;
|
|
12297
12299
|
}
|
|
12298
12300
|
} catch (err) {
|
|
12299
12301
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
12300
12302
|
setError(errorMessage);
|
|
12301
|
-
_optionalChain([config, 'access',
|
|
12303
|
+
_optionalChain([config, 'access', _339 => _339.onError, 'optionalCall', _340 => _340(errorMessage)]);
|
|
12302
12304
|
return null;
|
|
12303
12305
|
} finally {
|
|
12304
12306
|
setLoading(false);
|
|
@@ -12371,7 +12373,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12371
12373
|
{
|
|
12372
12374
|
href: hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
12373
12375
|
page: "/administration",
|
|
12374
|
-
id: _optionalChain([_chunkQOLVON35js.Modules, 'access',
|
|
12376
|
+
id: _optionalChain([_chunkQOLVON35js.Modules, 'access', _341 => _341.Company, 'access', _342 => _342.pageUrl, 'optionalAccess', _343 => _343.substring, 'call', _344 => _344(1)]),
|
|
12375
12377
|
childPage: company.id
|
|
12376
12378
|
}) : generateUrl({ page: _chunkQOLVON35js.Modules.Company, id: company.id }),
|
|
12377
12379
|
children: row.getValue("name")
|
|
@@ -12387,7 +12389,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12387
12389
|
})
|
|
12388
12390
|
};
|
|
12389
12391
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12390
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12392
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _345 => _345[field], 'optionalCall', _346 => _346()])).filter((col) => col !== void 0);
|
|
12391
12393
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
12392
12394
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12393
12395
|
}, "useCompanyTableStructure");
|
|
@@ -12399,7 +12401,7 @@ var GRACE_DAYS = 3;
|
|
|
12399
12401
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
12400
12402
|
if (!currentUser || !_chunkUJBUJALXjs.isRolesConfigured.call(void 0, )) return false;
|
|
12401
12403
|
const adminRoleId = _chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator;
|
|
12402
|
-
return !!_optionalChain([currentUser, 'access',
|
|
12404
|
+
return !!_optionalChain([currentUser, 'access', _347 => _347.roles, 'optionalAccess', _348 => _348.some, 'call', _349 => _349((role) => role.id === adminRoleId)]);
|
|
12403
12405
|
}, "isAdministrator");
|
|
12404
12406
|
function useSubscriptionStatus() {
|
|
12405
12407
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -12516,7 +12518,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12516
12518
|
})
|
|
12517
12519
|
};
|
|
12518
12520
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12519
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12521
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _350 => _350[field], 'optionalCall', _351 => _351()])).filter((col) => col !== void 0);
|
|
12520
12522
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12521
12523
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12522
12524
|
}, "useRoleTableStructure");
|
|
@@ -12659,7 +12661,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12659
12661
|
})
|
|
12660
12662
|
};
|
|
12661
12663
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12662
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12664
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _352 => _352[field], 'optionalCall', _353 => _353()])).filter((col) => col !== void 0);
|
|
12663
12665
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12664
12666
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12665
12667
|
}, "useUserTableStructure");
|
|
@@ -12760,11 +12762,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12760
12762
|
return params.fields.map((field) => {
|
|
12761
12763
|
const localHandler = fieldColumnMap[field];
|
|
12762
12764
|
if (localHandler) return localHandler();
|
|
12763
|
-
const customHandler = _optionalChain([params, 'access',
|
|
12765
|
+
const customHandler = _optionalChain([params, 'access', _354 => _354.context, 'optionalAccess', _355 => _355.customCells, 'optionalAccess', _356 => _356[field]]);
|
|
12764
12766
|
if (customHandler) return customHandler({ t });
|
|
12765
12767
|
return void 0;
|
|
12766
12768
|
}).filter((col) => col !== void 0);
|
|
12767
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
12769
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _357 => _357.context, 'optionalAccess', _358 => _358.customCells])]);
|
|
12768
12770
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12769
12771
|
}, "useContentTableStructure");
|
|
12770
12772
|
|
|
@@ -13090,7 +13092,7 @@ function rbacReducer(state, action) {
|
|
|
13090
13092
|
}
|
|
13091
13093
|
case "SET_FEATURE_IS_CORE": {
|
|
13092
13094
|
const newMap = new Map(state.featureIsCore);
|
|
13093
|
-
const originalFeature = _optionalChain([state, 'access',
|
|
13095
|
+
const originalFeature = _optionalChain([state, 'access', _359 => _359.original, 'optionalAccess', _360 => _360.features, 'access', _361 => _361.find, 'call', _362 => _362((f) => f.id === action.featureId)]);
|
|
13094
13096
|
if (originalFeature && originalFeature.isCore === action.isCore) {
|
|
13095
13097
|
newMap.delete(action.featureId);
|
|
13096
13098
|
} else {
|
|
@@ -13101,7 +13103,7 @@ function rbacReducer(state, action) {
|
|
|
13101
13103
|
case "SET_MODULE_DEFAULT_PERMISSION": {
|
|
13102
13104
|
const newMap = new Map(state.modulePermissions);
|
|
13103
13105
|
const originalModule = state.original ? findModule(state.original.features, action.moduleId) : void 0;
|
|
13104
|
-
const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess',
|
|
13106
|
+
const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess', _363 => _363.permissions]) }));
|
|
13105
13107
|
const updated = { ...current, [action.actionType]: action.value };
|
|
13106
13108
|
newMap.set(action.moduleId, updated);
|
|
13107
13109
|
return { ...state, modulePermissions: newMap };
|
|
@@ -13192,8 +13194,8 @@ function useRbacState() {
|
|
|
13192
13194
|
const getFeatureIsCore = _react.useCallback.call(void 0,
|
|
13193
13195
|
(featureId) => {
|
|
13194
13196
|
if (state.featureIsCore.has(featureId)) return state.featureIsCore.get(featureId);
|
|
13195
|
-
const feature = _optionalChain([state, 'access',
|
|
13196
|
-
return _nullishCoalesce(_optionalChain([feature, 'optionalAccess',
|
|
13197
|
+
const feature = _optionalChain([state, 'access', _364 => _364.original, 'optionalAccess', _365 => _365.features, 'access', _366 => _366.find, 'call', _367 => _367((f) => f.id === featureId)]);
|
|
13198
|
+
return _nullishCoalesce(_optionalChain([feature, 'optionalAccess', _368 => _368.isCore]), () => ( false));
|
|
13197
13199
|
},
|
|
13198
13200
|
[state.featureIsCore, state.original]
|
|
13199
13201
|
);
|
|
@@ -13203,7 +13205,7 @@ function useRbacState() {
|
|
|
13203
13205
|
if (edited && edited[actionType] !== void 0) return edited[actionType];
|
|
13204
13206
|
if (!state.original) return void 0;
|
|
13205
13207
|
const mod = findModule(state.original.features, moduleId);
|
|
13206
|
-
return _optionalChain([mod, 'optionalAccess',
|
|
13208
|
+
return _optionalChain([mod, 'optionalAccess', _369 => _369.permissions, 'access', _370 => _370[actionType]]);
|
|
13207
13209
|
},
|
|
13208
13210
|
[state.modulePermissions, state.original]
|
|
13209
13211
|
);
|
|
@@ -13259,7 +13261,7 @@ function useRbacState() {
|
|
|
13259
13261
|
}, [state]);
|
|
13260
13262
|
const getModuleRelationshipPaths = _react.useCallback.call(void 0,
|
|
13261
13263
|
(moduleId) => {
|
|
13262
|
-
return _nullishCoalesce(_optionalChain([state, 'access',
|
|
13264
|
+
return _nullishCoalesce(_optionalChain([state, 'access', _371 => _371.original, 'optionalAccess', _372 => _372.moduleRelationshipPaths, 'access', _373 => _373.get, 'call', _374 => _374(moduleId)]), () => ( []));
|
|
13263
13265
|
},
|
|
13264
13266
|
[state.original]
|
|
13265
13267
|
);
|
|
@@ -13470,7 +13472,7 @@ function ContentTableSearch({ data }) {
|
|
|
13470
13472
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13471
13473
|
if (!isExpanded) {
|
|
13472
13474
|
setIsFocused(true);
|
|
13473
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
13475
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _375 => _375.current, 'optionalAccess', _376 => _376.focus, 'call', _377 => _377()]), 50);
|
|
13474
13476
|
}
|
|
13475
13477
|
}, "handleSearchIconClick");
|
|
13476
13478
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -13536,7 +13538,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13536
13538
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
13537
13539
|
);
|
|
13538
13540
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
13539
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
13541
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _378 => _378.data]), () => ( EMPTY_ARRAY)),
|
|
13540
13542
|
fields,
|
|
13541
13543
|
checkedIds,
|
|
13542
13544
|
toggleId,
|
|
@@ -13581,12 +13583,12 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13581
13583
|
] }) }) }),
|
|
13582
13584
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
13583
13585
|
const meta = header.column.columnDef.meta;
|
|
13584
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
13586
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _379 => _379.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
13585
13587
|
}) }, headerGroup.id))
|
|
13586
13588
|
] }),
|
|
13587
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
13589
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _380 => _380.rows, 'optionalAccess', _381 => _381.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
13588
13590
|
const meta = cell.column.columnDef.meta;
|
|
13589
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
13591
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _382 => _382.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
13590
13592
|
}) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: "No results." }) }) }),
|
|
13591
13593
|
showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
|
|
13592
13594
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13596,7 +13598,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13596
13598
|
size: "sm",
|
|
13597
13599
|
onClick: (e) => {
|
|
13598
13600
|
e.preventDefault();
|
|
13599
|
-
_optionalChain([data, 'access',
|
|
13601
|
+
_optionalChain([data, 'access', _383 => _383.previous, 'optionalCall', _384 => _384(true)]);
|
|
13600
13602
|
},
|
|
13601
13603
|
disabled: !data.previous,
|
|
13602
13604
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -13610,7 +13612,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13610
13612
|
size: "sm",
|
|
13611
13613
|
onClick: (e) => {
|
|
13612
13614
|
e.preventDefault();
|
|
13613
|
-
_optionalChain([data, 'access',
|
|
13615
|
+
_optionalChain([data, 'access', _385 => _385.next, 'optionalCall', _386 => _386(true)]);
|
|
13614
13616
|
},
|
|
13615
13617
|
disabled: !data.next,
|
|
13616
13618
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -14171,7 +14173,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14171
14173
|
newDigits[index] = digit;
|
|
14172
14174
|
setDigits(newDigits);
|
|
14173
14175
|
if (digit && index < 5) {
|
|
14174
|
-
_optionalChain([inputRefs, 'access',
|
|
14176
|
+
_optionalChain([inputRefs, 'access', _387 => _387.current, 'access', _388 => _388[index + 1], 'optionalAccess', _389 => _389.focus, 'call', _390 => _390()]);
|
|
14175
14177
|
}
|
|
14176
14178
|
const code = newDigits.join("");
|
|
14177
14179
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -14180,7 +14182,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14180
14182
|
}, "handleChange");
|
|
14181
14183
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
14182
14184
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
14183
|
-
_optionalChain([inputRefs, 'access',
|
|
14185
|
+
_optionalChain([inputRefs, 'access', _391 => _391.current, 'access', _392 => _392[index - 1], 'optionalAccess', _393 => _393.focus, 'call', _394 => _394()]);
|
|
14184
14186
|
}
|
|
14185
14187
|
}, "handleKeyDown");
|
|
14186
14188
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -14189,7 +14191,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14189
14191
|
if (pastedData.length === 6) {
|
|
14190
14192
|
const newDigits = pastedData.split("");
|
|
14191
14193
|
setDigits(newDigits);
|
|
14192
|
-
_optionalChain([inputRefs, 'access',
|
|
14194
|
+
_optionalChain([inputRefs, 'access', _395 => _395.current, 'access', _396 => _396[5], 'optionalAccess', _397 => _397.focus, 'call', _398 => _398()]);
|
|
14193
14195
|
onComplete(pastedData);
|
|
14194
14196
|
}
|
|
14195
14197
|
}, "handlePaste");
|
|
@@ -14400,8 +14402,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
14400
14402
|
try {
|
|
14401
14403
|
const registrationData = await _chunkQOLVON35js.TwoFactorService.getPasskeyRegistrationOptions({
|
|
14402
14404
|
id: _uuid.v4.call(void 0, ),
|
|
14403
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
14404
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
14405
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _399 => _399.email]), () => ( "")),
|
|
14406
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _400 => _400.name])
|
|
14405
14407
|
});
|
|
14406
14408
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
14407
14409
|
await _chunkQOLVON35js.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -14552,7 +14554,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
14552
14554
|
const setup = await _chunkQOLVON35js.TwoFactorService.setupTotp({
|
|
14553
14555
|
id: _uuid.v4.call(void 0, ),
|
|
14554
14556
|
name: name.trim(),
|
|
14555
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
14557
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _401 => _401.email]), () => ( ""))
|
|
14556
14558
|
});
|
|
14557
14559
|
setQrCodeUri(setup.qrCodeUri);
|
|
14558
14560
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -14686,7 +14688,7 @@ function TwoFactorSettings() {
|
|
|
14686
14688
|
if (isLoading) {
|
|
14687
14689
|
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") }) }) });
|
|
14688
14690
|
}
|
|
14689
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
14691
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _402 => _402.isEnabled]), () => ( false));
|
|
14690
14692
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
14691
14693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
14692
14694
|
isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "h-6 w-6 text-green-600" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "h-6 w-6 text-yellow-600" }),
|
|
@@ -14724,7 +14726,7 @@ function TwoFactorSettings() {
|
|
|
14724
14726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
14725
14727
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
14726
14728
|
] }),
|
|
14727
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
14729
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _403 => _403.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
14728
14730
|
] }) }),
|
|
14729
14731
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14730
14732
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -14902,9 +14904,9 @@ function AcceptInvitation() {
|
|
|
14902
14904
|
});
|
|
14903
14905
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
14904
14906
|
try {
|
|
14905
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
14907
|
+
if (!_optionalChain([params, 'optionalAccess', _404 => _404.code])) return;
|
|
14906
14908
|
const payload = {
|
|
14907
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
14909
|
+
code: _optionalChain([params, 'optionalAccess', _405 => _405.code]),
|
|
14908
14910
|
password: values.password
|
|
14909
14911
|
};
|
|
14910
14912
|
await _chunkQOLVON35js.AuthService.acceptInvitation(payload);
|
|
@@ -15254,7 +15256,7 @@ function Logout({ storageKeys }) {
|
|
|
15254
15256
|
const generateUrl = usePageUrlGenerator();
|
|
15255
15257
|
_react.useEffect.call(void 0, () => {
|
|
15256
15258
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15257
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
15259
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _406 => _406.length])) {
|
|
15258
15260
|
clearClientStorage(storageKeys);
|
|
15259
15261
|
}
|
|
15260
15262
|
await _chunkQOLVON35js.AuthService.logout();
|
|
@@ -15277,14 +15279,14 @@ function RefreshUser() {
|
|
|
15277
15279
|
setUser(fullUser);
|
|
15278
15280
|
const token = {
|
|
15279
15281
|
userId: fullUser.id,
|
|
15280
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
15282
|
+
companyId: _optionalChain([fullUser, 'access', _407 => _407.company, 'optionalAccess', _408 => _408.id]),
|
|
15281
15283
|
roles: fullUser.roles.map((role) => role.id),
|
|
15282
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
15284
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _409 => _409.company, 'optionalAccess', _410 => _410.features, 'optionalAccess', _411 => _411.map, 'call', _412 => _412((feature) => feature.id)]), () => ( [])),
|
|
15283
15285
|
modules: fullUser.modules.map((module) => {
|
|
15284
15286
|
return { id: module.id, permissions: module.permissions };
|
|
15285
15287
|
})
|
|
15286
15288
|
};
|
|
15287
|
-
await _optionalChain([_chunkQOLVON35js.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
15289
|
+
await _optionalChain([_chunkQOLVON35js.getTokenHandler.call(void 0, ), 'optionalAccess', _413 => _413.updateToken, 'call', _414 => _414(token)]);
|
|
15288
15290
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
15289
15291
|
}
|
|
15290
15292
|
}, "loadFullUser");
|
|
@@ -15348,9 +15350,9 @@ function ResetPassword() {
|
|
|
15348
15350
|
});
|
|
15349
15351
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
15350
15352
|
try {
|
|
15351
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
15353
|
+
if (!_optionalChain([params, 'optionalAccess', _415 => _415.code])) return;
|
|
15352
15354
|
const payload = {
|
|
15353
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
15355
|
+
code: _optionalChain([params, 'optionalAccess', _416 => _416.code]),
|
|
15354
15356
|
password: values.password
|
|
15355
15357
|
};
|
|
15356
15358
|
await _chunkQOLVON35js.AuthService.resetPassword(payload);
|
|
@@ -15707,14 +15709,14 @@ function NotificationsList({ archived }) {
|
|
|
15707
15709
|
] }),
|
|
15708
15710
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
15709
15711
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
15710
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
15712
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _417 => _417.data, 'optionalAccess', _418 => _418.map, 'call', _419 => _419((notification) => {
|
|
15711
15713
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
15712
15714
|
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: [
|
|
15713
15715
|
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: _chunkQOLVON35js.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" }),
|
|
15714
15716
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
15715
15717
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
15716
15718
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
15717
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
15719
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _420 => _420.actor, 'optionalAccess', _421 => _421.name]), () => ( "")),
|
|
15718
15720
|
title: notificationData.title
|
|
15719
15721
|
}) }),
|
|
15720
15722
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -16064,7 +16066,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
16064
16066
|
invalidEmail: "Please enter a valid email address"
|
|
16065
16067
|
};
|
|
16066
16068
|
async function copyToClipboard(text) {
|
|
16067
|
-
if (_optionalChain([navigator, 'access',
|
|
16069
|
+
if (_optionalChain([navigator, 'access', _422 => _422.clipboard, 'optionalAccess', _423 => _423.writeText])) {
|
|
16068
16070
|
try {
|
|
16069
16071
|
await navigator.clipboard.writeText(text);
|
|
16070
16072
|
return true;
|
|
@@ -16106,7 +16108,7 @@ function ReferralWidget({
|
|
|
16106
16108
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
16107
16109
|
const config = _chunkUJBUJALXjs.getReferralConfig.call(void 0, );
|
|
16108
16110
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
16109
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
16111
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _424 => _424.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
16110
16112
|
if (!_chunkUJBUJALXjs.isReferralEnabled.call(void 0, )) {
|
|
16111
16113
|
return null;
|
|
16112
16114
|
}
|
|
@@ -16116,7 +16118,7 @@ function ReferralWidget({
|
|
|
16116
16118
|
if (success) {
|
|
16117
16119
|
setCopied(true);
|
|
16118
16120
|
_chunkQOLVON35js.showToast.call(void 0, t.copiedMessage);
|
|
16119
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
16121
|
+
_optionalChain([onLinkCopied, 'optionalCall', _425 => _425()]);
|
|
16120
16122
|
setTimeout(() => setCopied(false), 2e3);
|
|
16121
16123
|
} else {
|
|
16122
16124
|
_chunkQOLVON35js.showError.call(void 0, t.copyError);
|
|
@@ -16130,12 +16132,12 @@ function ReferralWidget({
|
|
|
16130
16132
|
try {
|
|
16131
16133
|
await sendInvite(email);
|
|
16132
16134
|
_chunkQOLVON35js.showToast.call(void 0, t.inviteSent);
|
|
16133
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
16135
|
+
_optionalChain([onInviteSent, 'optionalCall', _426 => _426(email)]);
|
|
16134
16136
|
setEmail("");
|
|
16135
16137
|
} catch (err) {
|
|
16136
16138
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
16137
16139
|
_chunkQOLVON35js.showError.call(void 0, error2.message);
|
|
16138
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
16140
|
+
_optionalChain([onInviteError, 'optionalCall', _427 => _427(error2)]);
|
|
16139
16141
|
}
|
|
16140
16142
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
16141
16143
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -16888,7 +16890,7 @@ function OAuthClientList({
|
|
|
16888
16890
|
OAuthClientCard,
|
|
16889
16891
|
{
|
|
16890
16892
|
client,
|
|
16891
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
16893
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _428 => _428(client)]),
|
|
16892
16894
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
16893
16895
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
16894
16896
|
},
|
|
@@ -16904,11 +16906,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
16904
16906
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
16905
16907
|
const isEditMode = !!client;
|
|
16906
16908
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
16907
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
16908
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
16909
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
16910
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
16911
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
16909
|
+
name: _optionalChain([client, 'optionalAccess', _429 => _429.name]) || "",
|
|
16910
|
+
description: _optionalChain([client, 'optionalAccess', _430 => _430.description]) || "",
|
|
16911
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _431 => _431.redirectUris, 'optionalAccess', _432 => _432.length]) ? client.redirectUris : [""],
|
|
16912
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _433 => _433.allowedScopes]) || [],
|
|
16913
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _434 => _434.isConfidential]), () => ( true))
|
|
16912
16914
|
});
|
|
16913
16915
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
16914
16916
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -17136,7 +17138,7 @@ function OAuthClientDetail({
|
|
|
17136
17138
|
] }),
|
|
17137
17139
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17138
17140
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
17139
|
-
/* @__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([_chunkQOLVON35js.OAUTH_SCOPE_DISPLAY, 'access',
|
|
17141
|
+
/* @__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([_chunkQOLVON35js.OAUTH_SCOPE_DISPLAY, 'access', _435 => _435[scope], 'optionalAccess', _436 => _436.name]) || scope }, scope)) })
|
|
17140
17142
|
] }),
|
|
17141
17143
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17142
17144
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -17280,7 +17282,7 @@ function OAuthConsentScreen({
|
|
|
17280
17282
|
if (error || !clientInfo) {
|
|
17281
17283
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "py-8", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Alert, { variant: "destructive", children: [
|
|
17282
17284
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
17283
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
17285
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _437 => _437.message]) || "Invalid authorization request. Please try again." })
|
|
17284
17286
|
] }) }) }) });
|
|
17285
17287
|
}
|
|
17286
17288
|
const { client, scopes } = clientInfo;
|
|
@@ -17496,7 +17498,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
17496
17498
|
questionnaire: values.questionnaire
|
|
17497
17499
|
});
|
|
17498
17500
|
setIsSuccess(true);
|
|
17499
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
17501
|
+
_optionalChain([onSuccess, 'optionalCall', _438 => _438()]);
|
|
17500
17502
|
} catch (e) {
|
|
17501
17503
|
errorToast({ error: e });
|
|
17502
17504
|
} finally {
|
|
@@ -18119,7 +18121,7 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18119
18121
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: role.name }),
|
|
18120
18122
|
_chunkUJBUJALXjs.ACTION_TYPES.map((actionType) => {
|
|
18121
18123
|
const roleValue = stateApi.getRolePermission(role.id, module.id, actionType);
|
|
18122
|
-
const originalMapping = _optionalChain([stateApi, 'access',
|
|
18124
|
+
const originalMapping = _optionalChain([stateApi, 'access', _439 => _439.original, 'optionalAccess', _440 => _440.permissionMappings, 'access', _441 => _441.find, 'call', _442 => _442(
|
|
18123
18125
|
(pm) => pm.roleId === role.id && pm.moduleId === module.id
|
|
18124
18126
|
)]);
|
|
18125
18127
|
const originalRoleValue = originalMapping ? _nullishCoalesce(originalMapping.permissions[actionType], () => ( null)) : void 0;
|
|
@@ -18732,4 +18734,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacContainer, "RbacContainer");
|
|
|
18732
18734
|
|
|
18733
18735
|
|
|
18734
18736
|
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 = useDebounce; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; 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.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.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.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 = useDebounce2; exports.MultipleSelector = MultipleSelector; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; 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.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; 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.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; 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.useRbacState = useRbacState; exports.generateMigrationFile = generateMigrationFile; exports.downloadMigrationFile = downloadMigrationFile; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacModuleTable = RbacModuleTable; exports.RbacFeatureSection = RbacFeatureSection; exports.RbacToolbar = RbacToolbar; exports.RbacContainer = RbacContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
18735
|
-
//# sourceMappingURL=chunk-
|
|
18737
|
+
//# sourceMappingURL=chunk-3T2Z3H7V.js.map
|