@carlonicora/nextjs-jsonapi 1.54.0 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174,7 +174,8 @@ function useUrlRewriter() {
174
174
  id: params.id,
175
175
  childPage: params.childPage,
176
176
  childId: params.childId,
177
- language: locale
177
+ language: locale,
178
+ additionalParameters: params.additionalParameters
178
179
  })
179
180
  );
180
181
  },
@@ -8343,7 +8344,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
8343
8344
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
8344
8345
 
8345
8346
 
8346
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-H7TO4U5Q.js"))), {
8347
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-USEVDT2N.js"))), {
8347
8348
  ssr: false
8348
8349
  });
8349
8350
  var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -8360,7 +8361,8 @@ function FormBlockNote({
8360
8361
  type,
8361
8362
  isRequired = false,
8362
8363
  description,
8363
- testId
8364
+ testId,
8365
+ onEmptyChange
8364
8366
  }) {
8365
8367
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8366
8368
  FormFieldWrapper,
@@ -8377,8 +8379,9 @@ function FormBlockNote({
8377
8379
  id: form.getValues("id"),
8378
8380
  type,
8379
8381
  initialContent: field.value,
8380
- onChange: (content) => {
8382
+ onChange: (content, isEmpty) => {
8381
8383
  field.onChange(content);
8384
+ _optionalChain([onEmptyChange, 'optionalCall', _227 => _227(isEmpty)]);
8382
8385
  },
8383
8386
  placeholder,
8384
8387
  bordered: true
@@ -8920,11 +8923,11 @@ function FormPlaceAutocomplete({
8920
8923
  const data = await response.json();
8921
8924
  if (data.suggestions) {
8922
8925
  const formattedSuggestions = data.suggestions.map((suggestion) => ({
8923
- place_id: _optionalChain([suggestion, 'access', _227 => _227.placePrediction, 'optionalAccess', _228 => _228.placeId]) || "",
8924
- description: _optionalChain([suggestion, 'access', _229 => _229.placePrediction, 'optionalAccess', _230 => _230.text, 'optionalAccess', _231 => _231.text]) || "",
8926
+ place_id: _optionalChain([suggestion, 'access', _228 => _228.placePrediction, 'optionalAccess', _229 => _229.placeId]) || "",
8927
+ description: _optionalChain([suggestion, 'access', _230 => _230.placePrediction, 'optionalAccess', _231 => _231.text, 'optionalAccess', _232 => _232.text]) || "",
8925
8928
  structured_formatting: {
8926
- main_text: _optionalChain([suggestion, 'access', _232 => _232.placePrediction, 'optionalAccess', _233 => _233.structuredFormat, 'optionalAccess', _234 => _234.mainText, 'optionalAccess', _235 => _235.text]) || "",
8927
- secondary_text: _optionalChain([suggestion, 'access', _236 => _236.placePrediction, 'optionalAccess', _237 => _237.structuredFormat, 'optionalAccess', _238 => _238.secondaryText, 'optionalAccess', _239 => _239.text]) || ""
8929
+ main_text: _optionalChain([suggestion, 'access', _233 => _233.placePrediction, 'optionalAccess', _234 => _234.structuredFormat, 'optionalAccess', _235 => _235.mainText, 'optionalAccess', _236 => _236.text]) || "",
8930
+ secondary_text: _optionalChain([suggestion, 'access', _237 => _237.placePrediction, 'optionalAccess', _238 => _238.structuredFormat, 'optionalAccess', _239 => _239.secondaryText, 'optionalAccess', _240 => _240.text]) || ""
8928
8931
  }
8929
8932
  }));
8930
8933
  setSuggestions(formattedSuggestions);
@@ -9019,8 +9022,8 @@ function FormPlaceAutocomplete({
9019
9022
  className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
9020
9023
  onClick: () => handleSuggestionSelect(suggestion),
9021
9024
  children: [
9022
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _240 => _240.structured_formatting, 'optionalAccess', _241 => _241.main_text]) }),
9023
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _242 => _242.structured_formatting, 'optionalAccess', _243 => _243.secondary_text]) })
9025
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _241 => _241.structured_formatting, 'optionalAccess', _242 => _242.main_text]) }),
9026
+ /* @__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
9027
  ]
9025
9028
  },
9026
9029
  suggestion.place_id || index
@@ -9061,7 +9064,7 @@ function FormSelect({
9061
9064
  disabled,
9062
9065
  "data-testid": testId,
9063
9066
  children: [
9064
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: _optionalChain([values, 'access', _244 => _244.find, 'call', _245 => _245((v) => v.id === field.value), 'optionalAccess', _246 => _246.text]) }) }),
9067
+ /* @__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
9068
  /* @__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
9069
  ]
9067
9070
  }
@@ -9245,7 +9248,7 @@ function UserMultiSelect({
9245
9248
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
9246
9249
  return _chunkQOLVON35js.UserService.findAllUsers(params);
9247
9250
  }, "retriever"),
9248
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _247 => _247.id]) },
9251
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _248 => _248.id]) },
9249
9252
  module: _chunkQOLVON35js.Modules.User
9250
9253
  });
9251
9254
  _react.useEffect.call(void 0, () => {
@@ -9272,7 +9275,7 @@ function UserMultiSelect({
9272
9275
  _react.useEffect.call(void 0, () => {
9273
9276
  if (data.data && data.data.length > 0) {
9274
9277
  const users = data.data;
9275
- const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _248 => _248.id]));
9278
+ const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _249 => _249.id]));
9276
9279
  const options = filteredUsers.map((user) => ({
9277
9280
  label: user.name,
9278
9281
  value: user.id,
@@ -9301,14 +9304,14 @@ function UserMultiSelect({
9301
9304
  return {
9302
9305
  id: option.value,
9303
9306
  name: option.label,
9304
- avatar: _optionalChain([userOption, 'optionalAccess', _249 => _249.avatar])
9307
+ avatar: _optionalChain([userOption, 'optionalAccess', _250 => _250.avatar])
9305
9308
  };
9306
9309
  });
9307
9310
  form.setValue(id, formValues, { shouldDirty: true, shouldTouch: true });
9308
9311
  if (onChange) {
9309
9312
  const fullUsers = options.map((option) => {
9310
9313
  const userOption = userOptions.find((opt) => opt.value === option.value);
9311
- return _optionalChain([userOption, 'optionalAccess', _250 => _250.userData]);
9314
+ return _optionalChain([userOption, 'optionalAccess', _251 => _251.userData]);
9312
9315
  }).filter(Boolean);
9313
9316
  onChange(fullUsers);
9314
9317
  }
@@ -9474,7 +9477,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
9474
9477
  }, "getInitials");
9475
9478
  const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
9476
9479
  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', _251 => _251.avatar]) }),
9480
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _252 => _252.avatar]) }),
9478
9481
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials(user.name) })
9479
9482
  ] }) });
9480
9483
  }, "getAvatar");
@@ -9572,10 +9575,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
9572
9575
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
9573
9576
  /* @__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
9577
  /* @__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', _252 => _252.value, 'optionalAccess', _253 => _253.avatar]) }),
9576
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _254 => _254.value, 'optionalAccess', _255 => _255.name]) ? _optionalChain([field, 'access', _256 => _256.value, 'optionalAccess', _257 => _257.name, 'access', _258 => _258.split, 'call', _259 => _259(" "), 'access', _260 => _260.map, 'call', _261 => _261((name) => name.charAt(0).toUpperCase())]) : "X" })
9578
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _253 => _253.value, 'optionalAccess', _254 => _254.avatar]) }),
9579
+ /* @__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
9580
  ] }) }),
9578
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access', _262 => _262.value, 'optionalAccess', _263 => _263.name]), () => ( "")) })
9581
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access', _263 => _263.value, 'optionalAccess', _264 => _264.name]), () => ( "")) })
9579
9582
  ] }) }) : /* @__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
9583
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9581
9584
  _lucidereact.CircleX,
@@ -9870,7 +9873,7 @@ function CompanyUsersList({ isDeleted }) {
9870
9873
  const data = useDataListRetriever({
9871
9874
  ready: !!company,
9872
9875
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQOLVON35js.UserService.findAllUsers(params), "retriever"),
9873
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _264 => _264.id]), isDeleted },
9876
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _265 => _265.id]), isDeleted },
9874
9877
  module: _chunkQOLVON35js.Modules.User
9875
9878
  });
9876
9879
  _react.useEffect.call(void 0, () => {
@@ -9976,11 +9979,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
9976
9979
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
9977
9980
  onClick: (_e) => {
9978
9981
  setSelectedUser(user);
9979
- _optionalChain([setLevelOpen, 'optionalCall', _265 => _265(true)]);
9982
+ _optionalChain([setLevelOpen, 'optionalCall', _266 => _266(true)]);
9980
9983
  },
9981
9984
  onSelect: (_e) => {
9982
9985
  setSelectedUser(user);
9983
- _optionalChain([setLevelOpen, 'optionalCall', _266 => _266(true)]);
9986
+ _optionalChain([setLevelOpen, 'optionalCall', _267 => _267(true)]);
9984
9987
  },
9985
9988
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
9986
9989
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
@@ -10265,8 +10268,8 @@ function CompanyConfigurationEditorInternal({ company }) {
10265
10268
  const { setUser } = useCurrentUserContext();
10266
10269
  const defaultValues = _react.useMemo.call(void 0, () => {
10267
10270
  return {
10268
- isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _267 => _267.configurations, 'optionalAccess', _268 => _268.isManagedKnowledge]), () => ( false)),
10269
- allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _269 => _269.configurations, 'optionalAccess', _270 => _270.allowPublicBot]), () => ( false))
10271
+ isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _268 => _268.configurations, 'optionalAccess', _269 => _269.isManagedKnowledge]), () => ( false)),
10272
+ allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _270 => _270.configurations, 'optionalAccess', _271 => _271.allowPublicBot]), () => ( false))
10270
10273
  };
10271
10274
  }, [company.configurations]);
10272
10275
  const close = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -10285,8 +10288,8 @@ function CompanyConfigurationEditorInternal({ company }) {
10285
10288
  _react.useEffect.call(void 0, () => {
10286
10289
  if (open) {
10287
10290
  form.reset({
10288
- isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _271 => _271.configurations, 'optionalAccess', _272 => _272.isManagedKnowledge]), () => ( false)),
10289
- allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _273 => _273.configurations, 'optionalAccess', _274 => _274.allowPublicBot]), () => ( false))
10291
+ isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _272 => _272.configurations, 'optionalAccess', _273 => _273.isManagedKnowledge]), () => ( false)),
10292
+ allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _274 => _274.configurations, 'optionalAccess', _275 => _275.allowPublicBot]), () => ( false))
10290
10293
  });
10291
10294
  }
10292
10295
  }, [company, open]);
@@ -10513,11 +10516,11 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10513
10516
  const form = _reacthookform.useForm.call(void 0, {
10514
10517
  resolver: _zod.zodResolver.call(void 0, formSchema),
10515
10518
  defaultValues: {
10516
- id: _optionalChain([company, 'optionalAccess', _275 => _275.id]) || _uuid.v4.call(void 0, ),
10517
- name: _optionalChain([company, 'optionalAccess', _276 => _276.name]) || "",
10518
- featureIds: _optionalChain([company, 'optionalAccess', _277 => _277.features, 'access', _278 => _278.map, 'call', _279 => _279((feature) => feature.id)]) || [],
10519
- moduleIds: _optionalChain([company, 'optionalAccess', _280 => _280.modules, 'access', _281 => _281.map, 'call', _282 => _282((module) => module.id)]) || [],
10520
- logo: _optionalChain([company, 'optionalAccess', _283 => _283.logo]) || ""
10519
+ id: _optionalChain([company, 'optionalAccess', _276 => _276.id]) || _uuid.v4.call(void 0, ),
10520
+ name: _optionalChain([company, 'optionalAccess', _277 => _277.name]) || "",
10521
+ featureIds: _optionalChain([company, 'optionalAccess', _278 => _278.features, 'access', _279 => _279.map, 'call', _280 => _280((feature) => feature.id)]) || [],
10522
+ moduleIds: _optionalChain([company, 'optionalAccess', _281 => _281.modules, 'access', _282 => _282.map, 'call', _283 => _283((module) => module.id)]) || [],
10523
+ logo: _optionalChain([company, 'optionalAccess', _284 => _284.logo]) || ""
10521
10524
  }
10522
10525
  });
10523
10526
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
@@ -10534,7 +10537,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10534
10537
  });
10535
10538
  }
10536
10539
  const payload = {
10537
- id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _284 => _284.id]), () => ( _uuid.v4.call(void 0, ))),
10540
+ id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _285 => _285.id]), () => ( _uuid.v4.call(void 0, ))),
10538
10541
  name: values.name,
10539
10542
  logo: files && contentType ? values.logo : void 0,
10540
10543
  featureIds: values.featureIds,
@@ -10569,7 +10572,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10569
10572
  }
10570
10573
  }
10571
10574
  _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', _285 => _285.env, 'access', _286 => _286.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _287 => _287.toLowerCase, 'call', _288 => _288()]) === "true"))
10575
+ 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
10576
  fetchFeatures();
10574
10577
  }, [open, features]);
10575
10578
  _react.useEffect.call(void 0, () => {
@@ -10603,7 +10606,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10603
10606
  "application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
10604
10607
  }
10605
10608
  };
10606
- const canAccessFeatures = hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _289 => _289.env, 'access', _290 => _290.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _291 => _291.toLowerCase, 'call', _292 => _292()]) === "true";
10609
+ 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
10610
  const isAdministrator2 = hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator);
10608
10611
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
10609
10612
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
@@ -10612,13 +10615,13 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10612
10615
  {
10613
10616
  className: `flex max-h-[70vh] w-full ${isAdministrator2 || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
10614
10617
  children: [
10615
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _293 => _293.name]) }),
10618
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _294 => _294.name]) }),
10616
10619
  /* @__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
10620
  /* @__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', _294 => _294.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10621
+ /* @__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
10622
  _image2.default,
10620
10623
  {
10621
- src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _295 => _295.logo]) || "",
10624
+ src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _296 => _296.logo]) || "",
10622
10625
  alt: "Company Logo",
10623
10626
  width: 200,
10624
10627
  height: 200
@@ -10753,7 +10756,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
10753
10756
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
10754
10757
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
10755
10758
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
10756
- actor: _nullishCoalesce(_optionalChain([data, 'access', _296 => _296.actor, 'optionalAccess', _297 => _297.name]), () => ( "")),
10759
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _297 => _297.actor, 'optionalAccess', _298 => _298.name]), () => ( "")),
10757
10760
  title: data.title,
10758
10761
  message: _nullishCoalesce(notification.message, () => ( ""))
10759
10762
  }) }),
@@ -10782,7 +10785,7 @@ function NotificationMenuItem({ notification, closePopover }) {
10782
10785
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
10783
10786
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
10784
10787
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
10785
- actor: _nullishCoalesce(_optionalChain([data, 'access', _298 => _298.actor, 'optionalAccess', _299 => _299.name]), () => ( "")),
10788
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _299 => _299.actor, 'optionalAccess', _300 => _300.name]), () => ( "")),
10786
10789
  title: data.title,
10787
10790
  message: _nullishCoalesce(notification.message, () => ( ""))
10788
10791
  }) }),
@@ -10839,7 +10842,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
10839
10842
  _react.useEffect.call(void 0, () => {
10840
10843
  if (hasInitiallyLoaded || !currentUser) return;
10841
10844
  if (_chunkUJBUJALXjs.isRolesConfigured.call(void 0, )) {
10842
- const isAdmin = _optionalChain([currentUser, 'access', _300 => _300.roles, 'optionalAccess', _301 => _301.some, 'call', _302 => _302((role) => role.id === _chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator)]);
10845
+ 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
10846
  if (isAdmin) {
10844
10847
  setHasInitiallyLoaded(true);
10845
10848
  return;
@@ -11041,7 +11044,7 @@ function OnboardingProvider({
11041
11044
  let tourSteps = steps;
11042
11045
  if (!tourSteps) {
11043
11046
  const tour2 = tours.find((t) => t.id === tourId);
11044
- tourSteps = _optionalChain([tour2, 'optionalAccess', _303 => _303.steps]);
11047
+ tourSteps = _optionalChain([tour2, 'optionalAccess', _304 => _304.steps]);
11045
11048
  }
11046
11049
  if (!tourSteps || tourSteps.length === 0) {
11047
11050
  console.warn(`No steps found for tour: ${tourId}`);
@@ -11109,10 +11112,10 @@ function OnboardingProvider({
11109
11112
  when: {
11110
11113
  show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
11111
11114
  setCurrentStepIndex(index);
11112
- _optionalChain([stepConfig, 'access', _304 => _304.onShow, 'optionalCall', _305 => _305()]);
11115
+ _optionalChain([stepConfig, 'access', _305 => _305.onShow, 'optionalCall', _306 => _306()]);
11113
11116
  }, "show"),
11114
11117
  hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
11115
- _optionalChain([stepConfig, 'access', _306 => _306.onHide, 'optionalCall', _307 => _307()]);
11118
+ _optionalChain([stepConfig, 'access', _307 => _307.onHide, 'optionalCall', _308 => _308()]);
11116
11119
  }, "hide")
11117
11120
  }
11118
11121
  });
@@ -11300,7 +11303,7 @@ function usePageTracker() {
11300
11303
  if (typeof document !== "undefined") {
11301
11304
  const titleParts = document.title.split("]");
11302
11305
  if (titleParts[1]) {
11303
- const cleanTitle = _optionalChain([titleParts, 'access', _308 => _308[1], 'access', _309 => _309.split, 'call', _310 => _310("|"), 'access', _311 => _311[0], 'optionalAccess', _312 => _312.trim, 'call', _313 => _313()]);
11306
+ 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
11307
  pageTitle = cleanTitle || foundModule.name;
11305
11308
  }
11306
11309
  }
@@ -11337,7 +11340,7 @@ function usePushNotifications() {
11337
11340
  const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
11338
11341
  if ("serviceWorker" in navigator && "PushManager" in window) {
11339
11342
  try {
11340
- const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _314 => _314.id])}`;
11343
+ const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _315 => _315.id])}`;
11341
11344
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
11342
11345
  const registration = await navigator.serviceWorker.register(`${_chunkUJBUJALXjs.getAppUrl.call(void 0, )}/sw.js`);
11343
11346
  let permission = Notification.permission;
@@ -11391,7 +11394,7 @@ function useSocket({ token }) {
11391
11394
  const socketRef = _react.useRef.call(void 0, null);
11392
11395
  _react.useEffect.call(void 0, () => {
11393
11396
  if (!token) return;
11394
- const globalSocketKey = `__socket_${_optionalChain([process, 'access', _315 => _315.env, 'access', _316 => _316.NEXT_PUBLIC_API_URL, 'optionalAccess', _317 => _317.replace, 'call', _318 => _318(/[^a-zA-Z0-9]/g, "_")])}`;
11397
+ 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
11398
  if (typeof window !== "undefined") {
11396
11399
  const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
11397
11400
  const existingSocket = window[globalSocketKey];
@@ -11814,9 +11817,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, RoundPageContainerTitle, "RoundPageContaine
11814
11817
  // src/components/containers/RoundPageContainer.tsx
11815
11818
 
11816
11819
 
11817
- function RoundPageContainer({ module, details, tabs, children, fullWidth }) {
11820
+
11821
+ function RoundPageContainer({ module, id, details, tabs, children, fullWidth }) {
11818
11822
  const headerChildren = useHeaderChildren();
11819
11823
  const [showDetails, setShowDetails] = _react.useState.call(void 0, false);
11824
+ const searchParams = _navigation.useSearchParams.call(void 0, );
11825
+ const section = searchParams.get("section");
11826
+ const rewriteUrl = useUrlRewriter();
11827
+ const defaultValue = tabs ? section && _optionalChain([tabs, 'access', _320 => _320.find, 'call', _321 => _321((i) => _optionalChain([i, 'access', _322 => _322.key, 'optionalAccess', _323 => _323.name]) === section), 'optionalAccess', _324 => _324.key]) || tabs[0].key : void 0;
11820
11828
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
11821
11829
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { className: "bg-sidebar border-0", children: headerChildren }),
11822
11830
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[calc(100vh-3rem)] w-full flex-col p-2 pt-0 pl-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-background flex h-full w-full rounded-lg border p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
@@ -11830,10 +11838,18 @@ function RoundPageContainer({ module, details, tabs, children, fullWidth }) {
11830
11838
  }
11831
11839
  ),
11832
11840
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full w-full overflow-hidden", children: [
11833
- tabs ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: tabs[0].label, className: "w-full", children: [
11834
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: tab.label, className: `px-4`, children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
11835
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full overflow-y-auto px-4", children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: tab.label, className: `pb-20`, children: tab.content }, tab.label)) })
11836
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: children && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQOLVON35js.cn.call(void 0, `grow overflow-y-auto p-4`, fullWidth && `p-0`), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQOLVON35js.cn.call(void 0, `mx-auto max-w-6xl space-y-12 p-8`, fullWidth && `max-w-full w-full p-0`), children }) }) }),
11841
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQOLVON35js.cn.call(void 0, `grow overflow-y-auto p-4`, fullWidth && `p-0`), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkQOLVON35js.cn.call(void 0, `mx-auto max-w-6xl space-y-12 p-8`, fullWidth && `max-w-full w-full p-0`), children: tabs ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
11842
+ Tabs,
11843
+ {
11844
+ defaultValue,
11845
+ className: "w-full",
11846
+ onValueChange: (key) => module && id && rewriteUrl({ page: module, id, additionalParameters: { section: key } }),
11847
+ children: [
11848
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: tab.label, className: `px-4`, children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
11849
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full overflow-y-auto px-4", children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: tab.label, className: `pb-20`, children: tab.content }, tab.label)) })
11850
+ ]
11851
+ }
11852
+ ) : children }) }),
11837
11853
  details && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11838
11854
  "div",
11839
11855
  {
@@ -12064,10 +12080,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
12064
12080
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12065
12081
  Checkbox,
12066
12082
  {
12067
- checked: _optionalChain([params, 'access', _319 => _319.checkedIds, 'optionalAccess', _320 => _320.includes, 'call', _321 => _321(row.getValue(params.name))]) || false,
12083
+ checked: _optionalChain([params, 'access', _325 => _325.checkedIds, 'optionalAccess', _326 => _326.includes, 'call', _327 => _327(row.getValue(params.name))]) || false,
12068
12084
  onCheckedChange: (value) => {
12069
12085
  row.toggleSelected(!!value);
12070
- _optionalChain([params, 'access', _322 => _322.toggleId, 'optionalCall', _323 => _323(row.getValue(params.name))]);
12086
+ _optionalChain([params, 'access', _328 => _328.toggleId, 'optionalCall', _329 => _329(row.getValue(params.name))]);
12071
12087
  },
12072
12088
  "aria-label": "Select row"
12073
12089
  }
@@ -12126,7 +12142,7 @@ function useJsonApiGet(params) {
12126
12142
  const [response, setResponse] = _react.useState.call(void 0, null);
12127
12143
  const isMounted = _react.useRef.call(void 0, true);
12128
12144
  const fetchData = _react.useCallback.call(void 0, async () => {
12129
- if (_optionalChain([params, 'access', _324 => _324.options, 'optionalAccess', _325 => _325.enabled]) === false) return;
12145
+ if (_optionalChain([params, 'access', _330 => _330.options, 'optionalAccess', _331 => _331.enabled]) === false) return;
12130
12146
  setLoading(true);
12131
12147
  setError(null);
12132
12148
  try {
@@ -12153,9 +12169,9 @@ function useJsonApiGet(params) {
12153
12169
  setLoading(false);
12154
12170
  }
12155
12171
  }
12156
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _326 => _326.options, 'optionalAccess', _327 => _327.enabled])]);
12172
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _332 => _332.options, 'optionalAccess', _333 => _333.enabled])]);
12157
12173
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
12158
- if (!_optionalChain([response, 'optionalAccess', _328 => _328.nextPage])) return;
12174
+ if (!_optionalChain([response, 'optionalAccess', _334 => _334.nextPage])) return;
12159
12175
  setLoading(true);
12160
12176
  try {
12161
12177
  const nextResponse = await response.nextPage();
@@ -12176,7 +12192,7 @@ function useJsonApiGet(params) {
12176
12192
  }
12177
12193
  }, [response]);
12178
12194
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
12179
- if (!_optionalChain([response, 'optionalAccess', _329 => _329.prevPage])) return;
12195
+ if (!_optionalChain([response, 'optionalAccess', _335 => _335.prevPage])) return;
12180
12196
  setLoading(true);
12181
12197
  try {
12182
12198
  const prevResponse = await response.prevPage();
@@ -12202,15 +12218,15 @@ function useJsonApiGet(params) {
12202
12218
  return () => {
12203
12219
  isMounted.current = false;
12204
12220
  };
12205
- }, [fetchData, ..._optionalChain([params, 'access', _330 => _330.options, 'optionalAccess', _331 => _331.deps]) || []]);
12221
+ }, [fetchData, ..._optionalChain([params, 'access', _336 => _336.options, 'optionalAccess', _337 => _337.deps]) || []]);
12206
12222
  return {
12207
12223
  data,
12208
12224
  loading,
12209
12225
  error,
12210
12226
  response,
12211
12227
  refetch: fetchData,
12212
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _332 => _332.next]),
12213
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _333 => _333.prev]),
12228
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _338 => _338.next]),
12229
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _339 => _339.prev]),
12214
12230
  fetchNextPage,
12215
12231
  fetchPreviousPage
12216
12232
  };
@@ -12288,17 +12304,17 @@ function useJsonApiMutation(config) {
12288
12304
  if (apiResponse.ok) {
12289
12305
  const resultData = apiResponse.data;
12290
12306
  setData(resultData);
12291
- _optionalChain([config, 'access', _334 => _334.onSuccess, 'optionalCall', _335 => _335(resultData)]);
12307
+ _optionalChain([config, 'access', _340 => _340.onSuccess, 'optionalCall', _341 => _341(resultData)]);
12292
12308
  return resultData;
12293
12309
  } else {
12294
12310
  setError(apiResponse.error);
12295
- _optionalChain([config, 'access', _336 => _336.onError, 'optionalCall', _337 => _337(apiResponse.error)]);
12311
+ _optionalChain([config, 'access', _342 => _342.onError, 'optionalCall', _343 => _343(apiResponse.error)]);
12296
12312
  return null;
12297
12313
  }
12298
12314
  } catch (err) {
12299
12315
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
12300
12316
  setError(errorMessage);
12301
- _optionalChain([config, 'access', _338 => _338.onError, 'optionalCall', _339 => _339(errorMessage)]);
12317
+ _optionalChain([config, 'access', _344 => _344.onError, 'optionalCall', _345 => _345(errorMessage)]);
12302
12318
  return null;
12303
12319
  } finally {
12304
12320
  setLoading(false);
@@ -12371,7 +12387,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
12371
12387
  {
12372
12388
  href: hasRole(_chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
12373
12389
  page: "/administration",
12374
- id: _optionalChain([_chunkQOLVON35js.Modules, 'access', _340 => _340.Company, 'access', _341 => _341.pageUrl, 'optionalAccess', _342 => _342.substring, 'call', _343 => _343(1)]),
12390
+ id: _optionalChain([_chunkQOLVON35js.Modules, 'access', _346 => _346.Company, 'access', _347 => _347.pageUrl, 'optionalAccess', _348 => _348.substring, 'call', _349 => _349(1)]),
12375
12391
  childPage: company.id
12376
12392
  }) : generateUrl({ page: _chunkQOLVON35js.Modules.Company, id: company.id }),
12377
12393
  children: row.getValue("name")
@@ -12387,7 +12403,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
12387
12403
  })
12388
12404
  };
12389
12405
  const columns = _react.useMemo.call(void 0, () => {
12390
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _344 => _344[field], 'optionalCall', _345 => _345()])).filter((col) => col !== void 0);
12406
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _350 => _350[field], 'optionalCall', _351 => _351()])).filter((col) => col !== void 0);
12391
12407
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
12392
12408
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
12393
12409
  }, "useCompanyTableStructure");
@@ -12399,7 +12415,7 @@ var GRACE_DAYS = 3;
12399
12415
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
12400
12416
  if (!currentUser || !_chunkUJBUJALXjs.isRolesConfigured.call(void 0, )) return false;
12401
12417
  const adminRoleId = _chunkUJBUJALXjs.getRoleId.call(void 0, ).Administrator;
12402
- return !!_optionalChain([currentUser, 'access', _346 => _346.roles, 'optionalAccess', _347 => _347.some, 'call', _348 => _348((role) => role.id === adminRoleId)]);
12418
+ return !!_optionalChain([currentUser, 'access', _352 => _352.roles, 'optionalAccess', _353 => _353.some, 'call', _354 => _354((role) => role.id === adminRoleId)]);
12403
12419
  }, "isAdministrator");
12404
12420
  function useSubscriptionStatus() {
12405
12421
  const { company, currentUser } = useCurrentUserContext();
@@ -12516,7 +12532,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
12516
12532
  })
12517
12533
  };
12518
12534
  const columns = _react.useMemo.call(void 0, () => {
12519
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _349 => _349[field], 'optionalCall', _350 => _350()])).filter((col) => col !== void 0);
12535
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _355 => _355[field], 'optionalCall', _356 => _356()])).filter((col) => col !== void 0);
12520
12536
  }, [params.fields, fieldColumnMap, t, generateUrl]);
12521
12537
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
12522
12538
  }, "useRoleTableStructure");
@@ -12659,7 +12675,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
12659
12675
  })
12660
12676
  };
12661
12677
  const columns = _react.useMemo.call(void 0, () => {
12662
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _351 => _351[field], 'optionalCall', _352 => _352()])).filter((col) => col !== void 0);
12678
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _357 => _357[field], 'optionalCall', _358 => _358()])).filter((col) => col !== void 0);
12663
12679
  }, [params.fields, fieldColumnMap, t, generateUrl]);
12664
12680
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
12665
12681
  }, "useUserTableStructure");
@@ -12760,11 +12776,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
12760
12776
  return params.fields.map((field) => {
12761
12777
  const localHandler = fieldColumnMap[field];
12762
12778
  if (localHandler) return localHandler();
12763
- const customHandler = _optionalChain([params, 'access', _353 => _353.context, 'optionalAccess', _354 => _354.customCells, 'optionalAccess', _355 => _355[field]]);
12779
+ const customHandler = _optionalChain([params, 'access', _359 => _359.context, 'optionalAccess', _360 => _360.customCells, 'optionalAccess', _361 => _361[field]]);
12764
12780
  if (customHandler) return customHandler({ t });
12765
12781
  return void 0;
12766
12782
  }).filter((col) => col !== void 0);
12767
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _356 => _356.context, 'optionalAccess', _357 => _357.customCells])]);
12783
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _362 => _362.context, 'optionalAccess', _363 => _363.customCells])]);
12768
12784
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
12769
12785
  }, "useContentTableStructure");
12770
12786
 
@@ -13090,7 +13106,7 @@ function rbacReducer(state, action) {
13090
13106
  }
13091
13107
  case "SET_FEATURE_IS_CORE": {
13092
13108
  const newMap = new Map(state.featureIsCore);
13093
- const originalFeature = _optionalChain([state, 'access', _358 => _358.original, 'optionalAccess', _359 => _359.features, 'access', _360 => _360.find, 'call', _361 => _361((f) => f.id === action.featureId)]);
13109
+ const originalFeature = _optionalChain([state, 'access', _364 => _364.original, 'optionalAccess', _365 => _365.features, 'access', _366 => _366.find, 'call', _367 => _367((f) => f.id === action.featureId)]);
13094
13110
  if (originalFeature && originalFeature.isCore === action.isCore) {
13095
13111
  newMap.delete(action.featureId);
13096
13112
  } else {
@@ -13101,7 +13117,7 @@ function rbacReducer(state, action) {
13101
13117
  case "SET_MODULE_DEFAULT_PERMISSION": {
13102
13118
  const newMap = new Map(state.modulePermissions);
13103
13119
  const originalModule = state.original ? findModule(state.original.features, action.moduleId) : void 0;
13104
- const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess', _362 => _362.permissions]) }));
13120
+ const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess', _368 => _368.permissions]) }));
13105
13121
  const updated = { ...current, [action.actionType]: action.value };
13106
13122
  newMap.set(action.moduleId, updated);
13107
13123
  return { ...state, modulePermissions: newMap };
@@ -13192,8 +13208,8 @@ function useRbacState() {
13192
13208
  const getFeatureIsCore = _react.useCallback.call(void 0,
13193
13209
  (featureId) => {
13194
13210
  if (state.featureIsCore.has(featureId)) return state.featureIsCore.get(featureId);
13195
- const feature = _optionalChain([state, 'access', _363 => _363.original, 'optionalAccess', _364 => _364.features, 'access', _365 => _365.find, 'call', _366 => _366((f) => f.id === featureId)]);
13196
- return _nullishCoalesce(_optionalChain([feature, 'optionalAccess', _367 => _367.isCore]), () => ( false));
13211
+ const feature = _optionalChain([state, 'access', _369 => _369.original, 'optionalAccess', _370 => _370.features, 'access', _371 => _371.find, 'call', _372 => _372((f) => f.id === featureId)]);
13212
+ return _nullishCoalesce(_optionalChain([feature, 'optionalAccess', _373 => _373.isCore]), () => ( false));
13197
13213
  },
13198
13214
  [state.featureIsCore, state.original]
13199
13215
  );
@@ -13203,7 +13219,7 @@ function useRbacState() {
13203
13219
  if (edited && edited[actionType] !== void 0) return edited[actionType];
13204
13220
  if (!state.original) return void 0;
13205
13221
  const mod = findModule(state.original.features, moduleId);
13206
- return _optionalChain([mod, 'optionalAccess', _368 => _368.permissions, 'access', _369 => _369[actionType]]);
13222
+ return _optionalChain([mod, 'optionalAccess', _374 => _374.permissions, 'access', _375 => _375[actionType]]);
13207
13223
  },
13208
13224
  [state.modulePermissions, state.original]
13209
13225
  );
@@ -13259,7 +13275,7 @@ function useRbacState() {
13259
13275
  }, [state]);
13260
13276
  const getModuleRelationshipPaths = _react.useCallback.call(void 0,
13261
13277
  (moduleId) => {
13262
- return _nullishCoalesce(_optionalChain([state, 'access', _370 => _370.original, 'optionalAccess', _371 => _371.moduleRelationshipPaths, 'access', _372 => _372.get, 'call', _373 => _373(moduleId)]), () => ( []));
13278
+ return _nullishCoalesce(_optionalChain([state, 'access', _376 => _376.original, 'optionalAccess', _377 => _377.moduleRelationshipPaths, 'access', _378 => _378.get, 'call', _379 => _379(moduleId)]), () => ( []));
13263
13279
  },
13264
13280
  [state.original]
13265
13281
  );
@@ -13470,7 +13486,7 @@ function ContentTableSearch({ data }) {
13470
13486
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
13471
13487
  if (!isExpanded) {
13472
13488
  setIsFocused(true);
13473
- setTimeout(() => _optionalChain([inputRef, 'access', _374 => _374.current, 'optionalAccess', _375 => _375.focus, 'call', _376 => _376()]), 50);
13489
+ setTimeout(() => _optionalChain([inputRef, 'access', _380 => _380.current, 'optionalAccess', _381 => _381.focus, 'call', _382 => _382()]), 50);
13474
13490
  }
13475
13491
  }, "handleSearchIconClick");
13476
13492
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -13536,7 +13552,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
13536
13552
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
13537
13553
  );
13538
13554
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
13539
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _377 => _377.data]), () => ( EMPTY_ARRAY)),
13555
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _383 => _383.data]), () => ( EMPTY_ARRAY)),
13540
13556
  fields,
13541
13557
  checkedIds,
13542
13558
  toggleId,
@@ -13581,12 +13597,12 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
13581
13597
  ] }) }) }),
13582
13598
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
13583
13599
  const meta = header.column.columnDef.meta;
13584
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _378 => _378.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
13600
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _384 => _384.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
13585
13601
  }) }, headerGroup.id))
13586
13602
  ] }),
13587
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _379 => _379.rows, 'optionalAccess', _380 => _380.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
13603
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _385 => _385.rows, 'optionalAccess', _386 => _386.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
13588
13604
  const meta = cell.column.columnDef.meta;
13589
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _381 => _381.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
13605
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _387 => _387.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
13590
13606
  }) }, 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
13607
  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
13608
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -13596,7 +13612,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
13596
13612
  size: "sm",
13597
13613
  onClick: (e) => {
13598
13614
  e.preventDefault();
13599
- _optionalChain([data, 'access', _382 => _382.previous, 'optionalCall', _383 => _383(true)]);
13615
+ _optionalChain([data, 'access', _388 => _388.previous, 'optionalCall', _389 => _389(true)]);
13600
13616
  },
13601
13617
  disabled: !data.previous,
13602
13618
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -13610,7 +13626,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
13610
13626
  size: "sm",
13611
13627
  onClick: (e) => {
13612
13628
  e.preventDefault();
13613
- _optionalChain([data, 'access', _384 => _384.next, 'optionalCall', _385 => _385(true)]);
13629
+ _optionalChain([data, 'access', _390 => _390.next, 'optionalCall', _391 => _391(true)]);
13614
13630
  },
13615
13631
  disabled: !data.next,
13616
13632
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -14171,7 +14187,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
14171
14187
  newDigits[index] = digit;
14172
14188
  setDigits(newDigits);
14173
14189
  if (digit && index < 5) {
14174
- _optionalChain([inputRefs, 'access', _386 => _386.current, 'access', _387 => _387[index + 1], 'optionalAccess', _388 => _388.focus, 'call', _389 => _389()]);
14190
+ _optionalChain([inputRefs, 'access', _392 => _392.current, 'access', _393 => _393[index + 1], 'optionalAccess', _394 => _394.focus, 'call', _395 => _395()]);
14175
14191
  }
14176
14192
  const code = newDigits.join("");
14177
14193
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -14180,7 +14196,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
14180
14196
  }, "handleChange");
14181
14197
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
14182
14198
  if (e.key === "Backspace" && !digits[index] && index > 0) {
14183
- _optionalChain([inputRefs, 'access', _390 => _390.current, 'access', _391 => _391[index - 1], 'optionalAccess', _392 => _392.focus, 'call', _393 => _393()]);
14199
+ _optionalChain([inputRefs, 'access', _396 => _396.current, 'access', _397 => _397[index - 1], 'optionalAccess', _398 => _398.focus, 'call', _399 => _399()]);
14184
14200
  }
14185
14201
  }, "handleKeyDown");
14186
14202
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -14189,7 +14205,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
14189
14205
  if (pastedData.length === 6) {
14190
14206
  const newDigits = pastedData.split("");
14191
14207
  setDigits(newDigits);
14192
- _optionalChain([inputRefs, 'access', _394 => _394.current, 'access', _395 => _395[5], 'optionalAccess', _396 => _396.focus, 'call', _397 => _397()]);
14208
+ _optionalChain([inputRefs, 'access', _400 => _400.current, 'access', _401 => _401[5], 'optionalAccess', _402 => _402.focus, 'call', _403 => _403()]);
14193
14209
  onComplete(pastedData);
14194
14210
  }
14195
14211
  }, "handlePaste");
@@ -14400,8 +14416,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
14400
14416
  try {
14401
14417
  const registrationData = await _chunkQOLVON35js.TwoFactorService.getPasskeyRegistrationOptions({
14402
14418
  id: _uuid.v4.call(void 0, ),
14403
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _398 => _398.email]), () => ( "")),
14404
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _399 => _399.name])
14419
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _404 => _404.email]), () => ( "")),
14420
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _405 => _405.name])
14405
14421
  });
14406
14422
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
14407
14423
  await _chunkQOLVON35js.TwoFactorService.verifyPasskeyRegistration({
@@ -14552,7 +14568,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
14552
14568
  const setup = await _chunkQOLVON35js.TwoFactorService.setupTotp({
14553
14569
  id: _uuid.v4.call(void 0, ),
14554
14570
  name: name.trim(),
14555
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _400 => _400.email]), () => ( ""))
14571
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _406 => _406.email]), () => ( ""))
14556
14572
  });
14557
14573
  setQrCodeUri(setup.qrCodeUri);
14558
14574
  setAuthenticatorId(setup.authenticatorId);
@@ -14686,7 +14702,7 @@ function TwoFactorSettings() {
14686
14702
  if (isLoading) {
14687
14703
  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
14704
  }
14689
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _401 => _401.isEnabled]), () => ( false));
14705
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _407 => _407.isEnabled]), () => ( false));
14690
14706
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
14691
14707
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
14692
14708
  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 +14740,7 @@ function TwoFactorSettings() {
14724
14740
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
14725
14741
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
14726
14742
  ] }),
14727
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _402 => _402.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
14743
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _408 => _408.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
14728
14744
  ] }) }),
14729
14745
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14730
14746
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -14902,9 +14918,9 @@ function AcceptInvitation() {
14902
14918
  });
14903
14919
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
14904
14920
  try {
14905
- if (!_optionalChain([params, 'optionalAccess', _403 => _403.code])) return;
14921
+ if (!_optionalChain([params, 'optionalAccess', _409 => _409.code])) return;
14906
14922
  const payload = {
14907
- code: _optionalChain([params, 'optionalAccess', _404 => _404.code]),
14923
+ code: _optionalChain([params, 'optionalAccess', _410 => _410.code]),
14908
14924
  password: values.password
14909
14925
  };
14910
14926
  await _chunkQOLVON35js.AuthService.acceptInvitation(payload);
@@ -15254,7 +15270,7 @@ function Logout({ storageKeys }) {
15254
15270
  const generateUrl = usePageUrlGenerator();
15255
15271
  _react.useEffect.call(void 0, () => {
15256
15272
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
15257
- if (_optionalChain([storageKeys, 'optionalAccess', _405 => _405.length])) {
15273
+ if (_optionalChain([storageKeys, 'optionalAccess', _411 => _411.length])) {
15258
15274
  clearClientStorage(storageKeys);
15259
15275
  }
15260
15276
  await _chunkQOLVON35js.AuthService.logout();
@@ -15277,14 +15293,14 @@ function RefreshUser() {
15277
15293
  setUser(fullUser);
15278
15294
  const token = {
15279
15295
  userId: fullUser.id,
15280
- companyId: _optionalChain([fullUser, 'access', _406 => _406.company, 'optionalAccess', _407 => _407.id]),
15296
+ companyId: _optionalChain([fullUser, 'access', _412 => _412.company, 'optionalAccess', _413 => _413.id]),
15281
15297
  roles: fullUser.roles.map((role) => role.id),
15282
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _408 => _408.company, 'optionalAccess', _409 => _409.features, 'optionalAccess', _410 => _410.map, 'call', _411 => _411((feature) => feature.id)]), () => ( [])),
15298
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _414 => _414.company, 'optionalAccess', _415 => _415.features, 'optionalAccess', _416 => _416.map, 'call', _417 => _417((feature) => feature.id)]), () => ( [])),
15283
15299
  modules: fullUser.modules.map((module) => {
15284
15300
  return { id: module.id, permissions: module.permissions };
15285
15301
  })
15286
15302
  };
15287
- await _optionalChain([_chunkQOLVON35js.getTokenHandler.call(void 0, ), 'optionalAccess', _412 => _412.updateToken, 'call', _413 => _413(token)]);
15303
+ await _optionalChain([_chunkQOLVON35js.getTokenHandler.call(void 0, ), 'optionalAccess', _418 => _418.updateToken, 'call', _419 => _419(token)]);
15288
15304
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
15289
15305
  }
15290
15306
  }, "loadFullUser");
@@ -15348,9 +15364,9 @@ function ResetPassword() {
15348
15364
  });
15349
15365
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
15350
15366
  try {
15351
- if (!_optionalChain([params, 'optionalAccess', _414 => _414.code])) return;
15367
+ if (!_optionalChain([params, 'optionalAccess', _420 => _420.code])) return;
15352
15368
  const payload = {
15353
- code: _optionalChain([params, 'optionalAccess', _415 => _415.code]),
15369
+ code: _optionalChain([params, 'optionalAccess', _421 => _421.code]),
15354
15370
  password: values.password
15355
15371
  };
15356
15372
  await _chunkQOLVON35js.AuthService.resetPassword(payload);
@@ -15707,14 +15723,14 @@ function NotificationsList({ archived }) {
15707
15723
  ] }),
15708
15724
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
15709
15725
  ] }) }) }, i)) }), "LoadingSkeleton");
15710
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _416 => _416.data, 'optionalAccess', _417 => _417.map, 'call', _418 => _418((notification) => {
15726
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _422 => _422.data, 'optionalAccess', _423 => _423.map, 'call', _424 => _424((notification) => {
15711
15727
  const notificationData = generateNotificationData({ notification, generateUrl });
15712
15728
  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
15729
  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
15730
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
15715
15731
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
15716
15732
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
15717
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _419 => _419.actor, 'optionalAccess', _420 => _420.name]), () => ( "")),
15733
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _425 => _425.actor, 'optionalAccess', _426 => _426.name]), () => ( "")),
15718
15734
  title: notificationData.title
15719
15735
  }) }),
15720
15736
  /* @__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 +16080,7 @@ var DEFAULT_TRANSLATIONS = {
16064
16080
  invalidEmail: "Please enter a valid email address"
16065
16081
  };
16066
16082
  async function copyToClipboard(text) {
16067
- if (_optionalChain([navigator, 'access', _421 => _421.clipboard, 'optionalAccess', _422 => _422.writeText])) {
16083
+ if (_optionalChain([navigator, 'access', _427 => _427.clipboard, 'optionalAccess', _428 => _428.writeText])) {
16068
16084
  try {
16069
16085
  await navigator.clipboard.writeText(text);
16070
16086
  return true;
@@ -16106,7 +16122,7 @@ function ReferralWidget({
16106
16122
  const linkInputRef = _react.useRef.call(void 0, null);
16107
16123
  const config = _chunkUJBUJALXjs.getReferralConfig.call(void 0, );
16108
16124
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
16109
- const referralUrl = _optionalChain([stats, 'optionalAccess', _423 => _423.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
16125
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _429 => _429.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
16110
16126
  if (!_chunkUJBUJALXjs.isReferralEnabled.call(void 0, )) {
16111
16127
  return null;
16112
16128
  }
@@ -16116,7 +16132,7 @@ function ReferralWidget({
16116
16132
  if (success) {
16117
16133
  setCopied(true);
16118
16134
  _chunkQOLVON35js.showToast.call(void 0, t.copiedMessage);
16119
- _optionalChain([onLinkCopied, 'optionalCall', _424 => _424()]);
16135
+ _optionalChain([onLinkCopied, 'optionalCall', _430 => _430()]);
16120
16136
  setTimeout(() => setCopied(false), 2e3);
16121
16137
  } else {
16122
16138
  _chunkQOLVON35js.showError.call(void 0, t.copyError);
@@ -16130,12 +16146,12 @@ function ReferralWidget({
16130
16146
  try {
16131
16147
  await sendInvite(email);
16132
16148
  _chunkQOLVON35js.showToast.call(void 0, t.inviteSent);
16133
- _optionalChain([onInviteSent, 'optionalCall', _425 => _425(email)]);
16149
+ _optionalChain([onInviteSent, 'optionalCall', _431 => _431(email)]);
16134
16150
  setEmail("");
16135
16151
  } catch (err) {
16136
16152
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
16137
16153
  _chunkQOLVON35js.showError.call(void 0, error2.message);
16138
- _optionalChain([onInviteError, 'optionalCall', _426 => _426(error2)]);
16154
+ _optionalChain([onInviteError, 'optionalCall', _432 => _432(error2)]);
16139
16155
  }
16140
16156
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
16141
16157
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -16888,7 +16904,7 @@ function OAuthClientList({
16888
16904
  OAuthClientCard,
16889
16905
  {
16890
16906
  client,
16891
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _427 => _427(client)]),
16907
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _433 => _433(client)]),
16892
16908
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
16893
16909
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
16894
16910
  },
@@ -16904,11 +16920,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
16904
16920
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
16905
16921
  const isEditMode = !!client;
16906
16922
  const [formState, setFormState] = _react.useState.call(void 0, {
16907
- name: _optionalChain([client, 'optionalAccess', _428 => _428.name]) || "",
16908
- description: _optionalChain([client, 'optionalAccess', _429 => _429.description]) || "",
16909
- redirectUris: _optionalChain([client, 'optionalAccess', _430 => _430.redirectUris, 'optionalAccess', _431 => _431.length]) ? client.redirectUris : [""],
16910
- allowedScopes: _optionalChain([client, 'optionalAccess', _432 => _432.allowedScopes]) || [],
16911
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _433 => _433.isConfidential]), () => ( true))
16923
+ name: _optionalChain([client, 'optionalAccess', _434 => _434.name]) || "",
16924
+ description: _optionalChain([client, 'optionalAccess', _435 => _435.description]) || "",
16925
+ redirectUris: _optionalChain([client, 'optionalAccess', _436 => _436.redirectUris, 'optionalAccess', _437 => _437.length]) ? client.redirectUris : [""],
16926
+ allowedScopes: _optionalChain([client, 'optionalAccess', _438 => _438.allowedScopes]) || [],
16927
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _439 => _439.isConfidential]), () => ( true))
16912
16928
  });
16913
16929
  const [errors, setErrors] = _react.useState.call(void 0, {});
16914
16930
  const validate = _react.useCallback.call(void 0, () => {
@@ -17136,7 +17152,7 @@ function OAuthClientDetail({
17136
17152
  ] }),
17137
17153
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
17138
17154
  /* @__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', _434 => _434[scope], 'optionalAccess', _435 => _435.name]) || scope }, scope)) })
17155
+ /* @__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', _440 => _440[scope], 'optionalAccess', _441 => _441.name]) || scope }, scope)) })
17140
17156
  ] }),
17141
17157
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
17142
17158
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -17280,7 +17296,7 @@ function OAuthConsentScreen({
17280
17296
  if (error || !clientInfo) {
17281
17297
  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
17298
  /* @__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', _436 => _436.message]) || "Invalid authorization request. Please try again." })
17299
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _442 => _442.message]) || "Invalid authorization request. Please try again." })
17284
17300
  ] }) }) }) });
17285
17301
  }
17286
17302
  const { client, scopes } = clientInfo;
@@ -17496,7 +17512,7 @@ function WaitlistForm({ onSuccess }) {
17496
17512
  questionnaire: values.questionnaire
17497
17513
  });
17498
17514
  setIsSuccess(true);
17499
- _optionalChain([onSuccess, 'optionalCall', _437 => _437()]);
17515
+ _optionalChain([onSuccess, 'optionalCall', _443 => _443()]);
17500
17516
  } catch (e) {
17501
17517
  errorToast({ error: e });
17502
17518
  } finally {
@@ -18119,7 +18135,7 @@ function RbacModuleTable({ module, roles, stateApi }) {
18119
18135
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: role.name }),
18120
18136
  _chunkUJBUJALXjs.ACTION_TYPES.map((actionType) => {
18121
18137
  const roleValue = stateApi.getRolePermission(role.id, module.id, actionType);
18122
- const originalMapping = _optionalChain([stateApi, 'access', _438 => _438.original, 'optionalAccess', _439 => _439.permissionMappings, 'access', _440 => _440.find, 'call', _441 => _441(
18138
+ const originalMapping = _optionalChain([stateApi, 'access', _444 => _444.original, 'optionalAccess', _445 => _445.permissionMappings, 'access', _446 => _446.find, 'call', _447 => _447(
18123
18139
  (pm) => pm.roleId === role.id && pm.moduleId === module.id
18124
18140
  )]);
18125
18141
  const originalRoleValue = originalMapping ? _nullishCoalesce(originalMapping.permissions[actionType], () => ( null)) : void 0;
@@ -18732,4 +18748,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacContainer, "RbacContainer");
18732
18748
 
18733
18749
 
18734
18750
  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-4EOS4FWI.js.map
18751
+ //# sourceMappingURL=chunk-JQAG6BQJ.js.map