@carlonicora/nextjs-jsonapi 1.84.0 → 1.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockNoteEditor-ZNACEXKX.mjs → BlockNoteEditor-7TZA4XEN.mjs} +3 -3
- package/dist/{BlockNoteEditor-PJWPR4IU.js → BlockNoteEditor-KRDP6OSE.js} +7 -7
- package/dist/{BlockNoteEditor-PJWPR4IU.js.map → BlockNoteEditor-KRDP6OSE.js.map} +1 -1
- package/dist/billing/index.js +303 -303
- package/dist/billing/index.mjs +2 -2
- package/dist/{chunk-ZEJSPTHS.js → chunk-2AK4GRIB.js} +19 -11
- package/dist/chunk-2AK4GRIB.js.map +1 -0
- package/dist/{chunk-B7ZH2R62.js → chunk-AMP2ZDAV.js} +93 -83
- package/dist/chunk-AMP2ZDAV.js.map +1 -0
- package/dist/{chunk-CPXN5OGI.mjs → chunk-CZ56O6JZ.mjs} +22 -12
- package/dist/chunk-CZ56O6JZ.mjs.map +1 -0
- package/dist/{chunk-PV5V6CVW.mjs → chunk-NEJ7CDM3.mjs} +9 -1
- package/dist/chunk-NEJ7CDM3.mjs.map +1 -0
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +5 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +4 -2
- package/dist/components/index.d.mts +4 -2
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/{config-B5oBQVEA.d.ts → config-CLQynoaa.d.ts} +15 -1
- package/dist/{config-Bx_uh22h.d.mts → config-k61pe_o2.d.mts} +15 -1
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
- package/src/client/config.ts +20 -0
- package/src/components/forms/CommonEditorButtons.tsx +7 -4
- package/src/components/forms/EditorSheet.tsx +9 -1
- package/src/features/auth/components/buttons/GoogleSignInButton.tsx +2 -2
- package/src/features/auth/components/details/LandingComponent.tsx +2 -2
- package/src/features/auth/components/forms/Login.tsx +2 -2
- package/src/features/auth/components/forms/Register.tsx +3 -3
- package/src/index.ts +8 -1
- package/dist/chunk-B7ZH2R62.js.map +0 -1
- package/dist/chunk-CPXN5OGI.mjs.map +0 -1
- package/dist/chunk-PV5V6CVW.mjs.map +0 -1
- package/dist/chunk-ZEJSPTHS.js.map +0 -1
- /package/dist/{BlockNoteEditor-ZNACEXKX.mjs.map → BlockNoteEditor-7TZA4XEN.mjs.map} +0 -0
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk2AK4GRIBjs = require('./chunk-2AK4GRIB.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -5153,7 +5153,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
5153
5153
|
|
|
5154
5154
|
|
|
5155
5155
|
var Link = React9.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
5156
|
-
const NextIntlLink =
|
|
5156
|
+
const NextIntlLink = _chunk2AK4GRIBjs.getI18nLink.call(void 0, );
|
|
5157
5157
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkN4YZ45SKjs.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
5158
5158
|
});
|
|
5159
5159
|
Link.displayName = "Link";
|
|
@@ -6894,7 +6894,7 @@ function usePageTracker() {
|
|
|
6894
6894
|
const moduleName = pathParts[0];
|
|
6895
6895
|
const entityId = pathParts.length > 1 ? pathParts[1] : null;
|
|
6896
6896
|
if (!entityId) return;
|
|
6897
|
-
const trackablePages =
|
|
6897
|
+
const trackablePages = _chunk2AK4GRIBjs.getTrackablePages.call(void 0, );
|
|
6898
6898
|
const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
|
|
6899
6899
|
if (!foundModule) return;
|
|
6900
6900
|
const baseUrl = `/${moduleName}/${entityId}`;
|
|
@@ -6941,7 +6941,7 @@ function usePushNotifications() {
|
|
|
6941
6941
|
try {
|
|
6942
6942
|
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _149 => _149.id])}`;
|
|
6943
6943
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
6944
|
-
const registration = await navigator.serviceWorker.register(`${
|
|
6944
|
+
const registration = await navigator.serviceWorker.register(`${_chunk2AK4GRIBjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
6945
6945
|
let permission = Notification.permission;
|
|
6946
6946
|
if (permission === "default") {
|
|
6947
6947
|
permission = await Notification.requestPermission();
|
|
@@ -6977,7 +6977,7 @@ function usePushNotifications() {
|
|
|
6977
6977
|
}
|
|
6978
6978
|
}
|
|
6979
6979
|
}, "register");
|
|
6980
|
-
if (currentUser && !hasRole(
|
|
6980
|
+
if (currentUser && !hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)) register();
|
|
6981
6981
|
}, [currentUser]);
|
|
6982
6982
|
}
|
|
6983
6983
|
_chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
|
|
@@ -7208,7 +7208,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7208
7208
|
return !!_optionalChain([currentUser, 'access', _162 => _162.roles, 'optionalAccess', _163 => _163.some, 'call', _164 => _164((userRole) => userRole.id === roleId)]);
|
|
7209
7209
|
}, "hasRole");
|
|
7210
7210
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
7211
|
-
if (hasRole(
|
|
7211
|
+
if (hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)) return true;
|
|
7212
7212
|
if (!company) return false;
|
|
7213
7213
|
return company.features.some((feature) => feature.id === featureIdentifier);
|
|
7214
7214
|
}, "hasAccesToFeature");
|
|
@@ -7464,10 +7464,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarEditor, "UserAvatarEditor");
|
|
|
7464
7464
|
function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
7465
7465
|
const { currentUser, company } = useCurrentUserContext();
|
|
7466
7466
|
const generateUrl = usePageUrlGenerator();
|
|
7467
|
-
const router =
|
|
7467
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
7468
7468
|
const _t = _nextintl.useTranslations.call(void 0, );
|
|
7469
7469
|
let cId;
|
|
7470
|
-
if (_optionalChain([currentUser, 'optionalAccess', _184 => _184.roles, 'access', _185 => _185.find, 'call', _186 => _186((role) => role.id ===
|
|
7470
|
+
if (_optionalChain([currentUser, 'optionalAccess', _184 => _184.roles, 'access', _185 => _185.find, 'call', _186 => _186((role) => role.id === _chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
7471
7471
|
cId = companyId;
|
|
7472
7472
|
} else {
|
|
7473
7473
|
if (!company) return;
|
|
@@ -7518,7 +7518,7 @@ function UserEditorInternal({
|
|
|
7518
7518
|
setUser
|
|
7519
7519
|
} = useCurrentUserContext();
|
|
7520
7520
|
const { company: companyFromContext } = useCompanyContext();
|
|
7521
|
-
const router =
|
|
7521
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
7522
7522
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
7523
7523
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
7524
7524
|
const [contentType, setContentType] = _react.useState.call(void 0, null);
|
|
@@ -7530,11 +7530,11 @@ function UserEditorInternal({
|
|
|
7530
7530
|
}, [company]);
|
|
7531
7531
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
7532
7532
|
(open) => {
|
|
7533
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _187 => _187.roles, 'access', _188 => _188.find, 'call', _189 => _189((role) => role.id ===
|
|
7533
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _187 => _187.roles, 'access', _188 => _188.find, 'call', _189 => _189((role) => role.id === _chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
|
|
7534
7534
|
async function fetchRoles() {
|
|
7535
7535
|
const allRoles = await _chunkN4YZ45SKjs.RoleService.findAllRoles({});
|
|
7536
7536
|
const availableRoles = allRoles.filter(
|
|
7537
|
-
(role) => role.id !==
|
|
7537
|
+
(role) => role.id !== _chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _190 => _190.features, 'access', _191 => _191.some, 'call', _192 => _192((feature) => feature.id === _optionalChain([role, 'access', _193 => _193.requiredFeature, 'optionalAccess', _194 => _194.id]))]))
|
|
7538
7538
|
);
|
|
7539
7539
|
setRoles(availableRoles);
|
|
7540
7540
|
}
|
|
@@ -7591,7 +7591,7 @@ function UserEditorInternal({
|
|
|
7591
7591
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
7592
7592
|
defaultValues: getDefaultValues()
|
|
7593
7593
|
});
|
|
7594
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _206 => _206.id]) === _optionalChain([user, 'optionalAccess', _207 => _207.id]) && hasRole(
|
|
7594
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _206 => _206.id]) === _optionalChain([user, 'optionalAccess', _207 => _207.id]) && hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkN4YZ45SKjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator));
|
|
7595
7595
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7596
7596
|
EditorSheet,
|
|
7597
7597
|
{
|
|
@@ -8343,8 +8343,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
|
|
|
8343
8343
|
// src/components/forms/CommonDeleter.tsx
|
|
8344
8344
|
|
|
8345
8345
|
function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId, onSuccess }) {
|
|
8346
|
-
const t =
|
|
8347
|
-
const router =
|
|
8346
|
+
const t = _chunk2AK4GRIBjs.useI18nTranslations.call(void 0, );
|
|
8347
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
8348
8348
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
8349
8349
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
8350
8350
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -8415,7 +8415,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CommonDeleter, "CommonDeleter");
|
|
|
8415
8415
|
// src/components/forms/CommonEditorButtons.tsx
|
|
8416
8416
|
|
|
8417
8417
|
|
|
8418
|
-
function CommonEditorButtons({ isEdit, form, disabled, setOpen }) {
|
|
8418
|
+
function CommonEditorButtons({ isEdit, form, disabled, setOpen, hideSubmit }) {
|
|
8419
8419
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8420
8420
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
|
|
8421
8421
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8429,7 +8429,7 @@ function CommonEditorButtons({ isEdit, form, disabled, setOpen }) {
|
|
|
8429
8429
|
children: t(`ui.buttons.cancel`)
|
|
8430
8430
|
}
|
|
8431
8431
|
),
|
|
8432
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) })
|
|
8432
|
+
!hideSubmit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) })
|
|
8433
8433
|
] });
|
|
8434
8434
|
}
|
|
8435
8435
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonEditorButtons, "CommonEditorButtons");
|
|
@@ -8580,6 +8580,7 @@ function EditorSheet({
|
|
|
8580
8580
|
onNavigate,
|
|
8581
8581
|
size = "xl",
|
|
8582
8582
|
disabled,
|
|
8583
|
+
hideSubmit,
|
|
8583
8584
|
trigger,
|
|
8584
8585
|
forceShow,
|
|
8585
8586
|
onClose,
|
|
@@ -8649,7 +8650,16 @@ function EditorSheet({
|
|
|
8649
8650
|
] }),
|
|
8650
8651
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(wrappedOnSubmit), className: "flex min-h-0 flex-1 flex-col", children: [
|
|
8651
8652
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 overflow-y-auto px-6 py-4", children }),
|
|
8652
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetFooter, { className: "shrink-0 border-t px-6 py-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8653
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetFooter, { className: "shrink-0 border-t px-6 py-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8654
|
+
CommonEditorButtons,
|
|
8655
|
+
{
|
|
8656
|
+
form,
|
|
8657
|
+
setOpen: handleOpenChange,
|
|
8658
|
+
isEdit,
|
|
8659
|
+
disabled,
|
|
8660
|
+
hideSubmit
|
|
8661
|
+
}
|
|
8662
|
+
) })
|
|
8653
8663
|
] }) })
|
|
8654
8664
|
] })
|
|
8655
8665
|
] }),
|
|
@@ -8671,8 +8681,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
8671
8681
|
align = "start",
|
|
8672
8682
|
className
|
|
8673
8683
|
}) => {
|
|
8674
|
-
const locale =
|
|
8675
|
-
const dateFnsLocale =
|
|
8684
|
+
const locale = _chunk2AK4GRIBjs.useI18nLocale.call(void 0, );
|
|
8685
|
+
const dateFnsLocale = _chunk2AK4GRIBjs.useI18nDateFnsLocale.call(void 0, );
|
|
8676
8686
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
8677
8687
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
|
|
8678
8688
|
const dateFormatter = _react.useMemo.call(void 0,
|
|
@@ -9200,7 +9210,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
9200
9210
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
9201
9211
|
|
|
9202
9212
|
|
|
9203
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
9213
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-KRDP6OSE.js"))), {
|
|
9204
9214
|
ssr: false
|
|
9205
9215
|
});
|
|
9206
9216
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -9265,8 +9275,8 @@ function FormDate({
|
|
|
9265
9275
|
onChange,
|
|
9266
9276
|
isRequired = false
|
|
9267
9277
|
}) {
|
|
9268
|
-
const locale =
|
|
9269
|
-
const dateFnsLocale =
|
|
9278
|
+
const locale = _chunk2AK4GRIBjs.useI18nLocale.call(void 0, );
|
|
9279
|
+
const dateFnsLocale = _chunk2AK4GRIBjs.useI18nDateFnsLocale.call(void 0, );
|
|
9270
9280
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9271
9281
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
|
|
9272
9282
|
const currentValue = form.getValues(id);
|
|
@@ -9384,9 +9394,9 @@ function FormDateTime({
|
|
|
9384
9394
|
allowEmpty
|
|
9385
9395
|
}) {
|
|
9386
9396
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9387
|
-
const t =
|
|
9388
|
-
const locale =
|
|
9389
|
-
const dateFnsLocale =
|
|
9397
|
+
const t = _chunk2AK4GRIBjs.useI18nTranslations.call(void 0, );
|
|
9398
|
+
const locale = _chunk2AK4GRIBjs.useI18nLocale.call(void 0, );
|
|
9399
|
+
const dateFnsLocale = _chunk2AK4GRIBjs.useI18nDateFnsLocale.call(void 0, );
|
|
9390
9400
|
const dateTimeFormatter = _react.useMemo.call(void 0,
|
|
9391
9401
|
() => new Intl.DateTimeFormat(locale, {
|
|
9392
9402
|
year: "numeric",
|
|
@@ -11170,7 +11180,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
|
|
|
11170
11180
|
function AdminCompanyContainerInternal() {
|
|
11171
11181
|
const { company } = useCompanyContext();
|
|
11172
11182
|
const { hasRole } = useCurrentUserContext();
|
|
11173
|
-
if (!company || !hasRole(
|
|
11183
|
+
if (!company || !hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)) return null;
|
|
11174
11184
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11175
11185
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
|
|
11176
11186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
|
|
@@ -11248,7 +11258,7 @@ function CompanyConfigurationEditorInternal({
|
|
|
11248
11258
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
|
|
11249
11259
|
function CompanyConfigurationEditor(props) {
|
|
11250
11260
|
const { hasRole } = useCurrentUserContext();
|
|
11251
|
-
if (hasRole(
|
|
11261
|
+
if (hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
11252
11262
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
11253
11263
|
}
|
|
11254
11264
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
|
|
@@ -11382,8 +11392,8 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
11382
11392
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
11383
11393
|
function CompanyDeleter({ company }) {
|
|
11384
11394
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
11385
|
-
const isAdministrator2 = hasRole(
|
|
11386
|
-
const isCompanyAdministrator = hasRole(
|
|
11395
|
+
const isAdministrator2 = hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator);
|
|
11396
|
+
const isCompanyAdministrator = hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).CompanyAdministrator);
|
|
11387
11397
|
const hasDeletePermission = hasPermissionToModule({ module: _chunkN4YZ45SKjs.Modules.Company, action: "delete" /* Delete */ });
|
|
11388
11398
|
if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
|
|
11389
11399
|
return null;
|
|
@@ -11413,7 +11423,7 @@ function CompanyEditorInternal({
|
|
|
11413
11423
|
onDialogOpenChange
|
|
11414
11424
|
}) {
|
|
11415
11425
|
const { hasRole, setUser } = useCurrentUserContext();
|
|
11416
|
-
const router =
|
|
11426
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
11417
11427
|
const [features, setFeatures] = _react.useState.call(void 0, []);
|
|
11418
11428
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
11419
11429
|
const [files, setFiles] = _react.useState.call(void 0, null);
|
|
@@ -11421,13 +11431,13 @@ function CompanyEditorInternal({
|
|
|
11421
11431
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11422
11432
|
const fiscalRef = _react.useRef.call(void 0, null);
|
|
11423
11433
|
const addressComponentsRef = _react.useRef.call(void 0, {});
|
|
11424
|
-
const canAccessFeatures = hasRole(
|
|
11434
|
+
const canAccessFeatures = hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _298 => _298.env, 'access', _299 => _299.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _300 => _300.toLowerCase, 'call', _301 => _301()]) === "true";
|
|
11425
11435
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
11426
11436
|
(open) => {
|
|
11427
11437
|
if (open && features.length === 0 && canAccessFeatures) {
|
|
11428
11438
|
async function fetchFeatures() {
|
|
11429
11439
|
const allfeatures = await _chunkN4YZ45SKjs.FeatureService.findMany({});
|
|
11430
|
-
if (hasRole(
|
|
11440
|
+
if (hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)) {
|
|
11431
11441
|
setFeatures(allfeatures);
|
|
11432
11442
|
} else {
|
|
11433
11443
|
setFeatures(allfeatures.filter((feature) => feature.isCore));
|
|
@@ -11658,9 +11668,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
11658
11668
|
};
|
|
11659
11669
|
if (company) response.element = company.name;
|
|
11660
11670
|
const functions = [];
|
|
11661
|
-
if (company && (hasRole(
|
|
11671
|
+
if (company && (hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).CompanyAdministrator)) && hasPermissionToModule({ module: _chunkN4YZ45SKjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
11662
11672
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
11663
|
-
if (hasRole(
|
|
11673
|
+
if (hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkN4YZ45SKjs.Modules.Company, action: "update" /* Update */ })) {
|
|
11664
11674
|
if (company && configurationEditorSlot)
|
|
11665
11675
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: configurationEditorSlot }, "configurationEditorSlot"));
|
|
11666
11676
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
@@ -11754,7 +11764,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
|
|
|
11754
11764
|
var NotificationContext = _react.createContext.call(void 0, void 0);
|
|
11755
11765
|
var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
|
|
11756
11766
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11757
|
-
const router =
|
|
11767
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
11758
11768
|
const [notifications, setNotifications] = _react.useState.call(void 0, []);
|
|
11759
11769
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
11760
11770
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
@@ -11793,8 +11803,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11793
11803
|
}, []);
|
|
11794
11804
|
_react.useEffect.call(void 0, () => {
|
|
11795
11805
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
11796
|
-
if (
|
|
11797
|
-
const isAdmin = _optionalChain([currentUser, 'access', _322 => _322.roles, 'optionalAccess', _323 => _323.some, 'call', _324 => _324((role) => role.id ===
|
|
11806
|
+
if (_chunk2AK4GRIBjs.isRolesConfigured.call(void 0, )) {
|
|
11807
|
+
const isAdmin = _optionalChain([currentUser, 'access', _322 => _322.roles, 'optionalAccess', _323 => _323.some, 'call', _324 => _324((role) => role.id === _chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)]);
|
|
11798
11808
|
if (isAdmin) {
|
|
11799
11809
|
setHasInitiallyLoaded(true);
|
|
11800
11810
|
return;
|
|
@@ -12285,7 +12295,7 @@ function HowToEditorInternal({
|
|
|
12285
12295
|
dialogOpen,
|
|
12286
12296
|
onDialogOpenChange
|
|
12287
12297
|
}) {
|
|
12288
|
-
const router =
|
|
12298
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
12289
12299
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12290
12300
|
const formSchema = _react.useMemo.call(void 0,
|
|
12291
12301
|
() => _zod3.z.object({
|
|
@@ -12516,7 +12526,7 @@ var RbacProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
12516
12526
|
_react.useEffect.call(void 0, () => {
|
|
12517
12527
|
let cancelled = false;
|
|
12518
12528
|
setLoading(true);
|
|
12519
|
-
|
|
12529
|
+
_chunk2AK4GRIBjs.RbacService.fetchMatrix().then((result) => {
|
|
12520
12530
|
if (cancelled) return;
|
|
12521
12531
|
setMatrix(result.matrix);
|
|
12522
12532
|
setModulePaths(result.modulePaths);
|
|
@@ -12563,7 +12573,7 @@ var RbacProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
12563
12573
|
if (!matrix || !roleNames || !moduleNames) return;
|
|
12564
12574
|
setSaving(true);
|
|
12565
12575
|
try {
|
|
12566
|
-
await
|
|
12576
|
+
await _chunk2AK4GRIBjs.RbacService.saveMatrix({ matrix, roleNames, moduleNames, outputPath });
|
|
12567
12577
|
_chunkN4YZ45SKjs.showToast.call(void 0, `Saved to ${outputPath}`);
|
|
12568
12578
|
} catch (err) {
|
|
12569
12579
|
console.error("Failed to save RBAC matrix:", err);
|
|
@@ -13916,7 +13926,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
13916
13926
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13917
13927
|
Link,
|
|
13918
13928
|
{
|
|
13919
|
-
href: hasRole(
|
|
13929
|
+
href: hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
13920
13930
|
page: "/administration",
|
|
13921
13931
|
id: _optionalChain([_chunkN4YZ45SKjs.Modules, 'access', _385 => _385.Company, 'access', _386 => _386.pageUrl, 'optionalAccess', _387 => _387.substring, 'call', _388 => _388(1)]),
|
|
13922
13932
|
childPage: company.id
|
|
@@ -13944,8 +13954,8 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
13944
13954
|
var TRIAL_DAYS = 14;
|
|
13945
13955
|
var GRACE_DAYS = 3;
|
|
13946
13956
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
13947
|
-
if (!currentUser || !
|
|
13948
|
-
const adminRoleId =
|
|
13957
|
+
if (!currentUser || !_chunk2AK4GRIBjs.isRolesConfigured.call(void 0, )) return false;
|
|
13958
|
+
const adminRoleId = _chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator;
|
|
13949
13959
|
return !!_optionalChain([currentUser, 'access', _391 => _391.roles, 'optionalAccess', _392 => _392.some, 'call', _393 => _393((role) => role.id === adminRoleId)]);
|
|
13950
13960
|
}, "isAdministrator");
|
|
13951
13961
|
function useSubscriptionStatus() {
|
|
@@ -13960,7 +13970,7 @@ function useSubscriptionStatus() {
|
|
|
13960
13970
|
isBlocked: false
|
|
13961
13971
|
};
|
|
13962
13972
|
}
|
|
13963
|
-
if (!
|
|
13973
|
+
if (!_chunk2AK4GRIBjs.getStripePublishableKey.call(void 0, )) {
|
|
13964
13974
|
return {
|
|
13965
13975
|
status: "active",
|
|
13966
13976
|
trialEndsAt: null,
|
|
@@ -14969,7 +14979,7 @@ function Register() {
|
|
|
14969
14979
|
const { setComponentType } = useAuthContext();
|
|
14970
14980
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
14971
14981
|
const inviteCode = searchParams.get("invite");
|
|
14972
|
-
const registrationMode =
|
|
14982
|
+
const registrationMode = _chunk2AK4GRIBjs.getRegistrationMode.call(void 0, );
|
|
14973
14983
|
const [showConfirmation, setShowConfirmation] = _react.useState.call(void 0, false);
|
|
14974
14984
|
const [inviteValidated, setInviteValidated] = _react.useState.call(void 0, false);
|
|
14975
14985
|
const [inviteError, setInviteError] = _react.useState.call(void 0, "");
|
|
@@ -15146,16 +15156,16 @@ function Register() {
|
|
|
15146
15156
|
),
|
|
15147
15157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, GdprConsentSection, { form }),
|
|
15148
15158
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", children: t(`auth.buttons.register`) }),
|
|
15149
|
-
(registrationMode !== "waitlist" || inviteValidated) && (
|
|
15159
|
+
(registrationMode !== "waitlist" || inviteValidated) && (_chunk2AK4GRIBjs.isGoogleAuthEnabled.call(void 0, ) || _chunk2AK4GRIBjs.isDiscordAuthEnabled.call(void 0, )) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 pt-4", children: [
|
|
15150
15160
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
15151
15161
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-full border-t" }) }),
|
|
15152
15162
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex justify-center text-xs uppercase", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "bg-card px-2 text-muted-foreground", children: t("auth.buttons.or") }) })
|
|
15153
15163
|
] }),
|
|
15154
15164
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
15155
|
-
|
|
15165
|
+
_chunk2AK4GRIBjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15156
15166
|
Link,
|
|
15157
15167
|
{
|
|
15158
|
-
href: `${
|
|
15168
|
+
href: `${_chunk2AK4GRIBjs.getPublicApiUrl.call(void 0, )}auth/google${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
15159
15169
|
className: "flex w-full",
|
|
15160
15170
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15161
15171
|
Button,
|
|
@@ -15200,10 +15210,10 @@ function Register() {
|
|
|
15200
15210
|
)
|
|
15201
15211
|
}
|
|
15202
15212
|
),
|
|
15203
|
-
|
|
15213
|
+
_chunk2AK4GRIBjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15204
15214
|
Link,
|
|
15205
15215
|
{
|
|
15206
|
-
href: `${
|
|
15216
|
+
href: `${_chunk2AK4GRIBjs.getPublicApiUrl.call(void 0, )}auth/discord${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
15207
15217
|
className: "flex w-full",
|
|
15208
15218
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { className: "w-full", variant: "outline", type: "button", children: [
|
|
15209
15219
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { className: "mr-2 h-5 w-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" }) }),
|
|
@@ -16032,11 +16042,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, SecurityContainer, "SecurityContainer");
|
|
|
16032
16042
|
// src/features/auth/components/buttons/GoogleSignInButton.tsx
|
|
16033
16043
|
|
|
16034
16044
|
function GoogleSignInButton({ referralCode }) {
|
|
16035
|
-
if (!
|
|
16045
|
+
if (!_chunk2AK4GRIBjs.isGoogleAuthEnabled.call(void 0, )) {
|
|
16036
16046
|
return null;
|
|
16037
16047
|
}
|
|
16038
16048
|
const buildGoogleOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
16039
|
-
const baseUrl = `${
|
|
16049
|
+
const baseUrl = `${_chunk2AK4GRIBjs.getPublicApiUrl.call(void 0, )}auth/google`;
|
|
16040
16050
|
if (!referralCode) return baseUrl;
|
|
16041
16051
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
16042
16052
|
}, "buildGoogleOAuthUrl");
|
|
@@ -16098,8 +16108,8 @@ function LandingComponent() {
|
|
|
16098
16108
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
|
|
16099
16109
|
] }),
|
|
16100
16110
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
|
|
16101
|
-
|
|
16102
|
-
|
|
16111
|
+
_chunk2AK4GRIBjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16112
|
+
_chunk2AK4GRIBjs.isRegistrationAllowed.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16103
16113
|
Link,
|
|
16104
16114
|
{
|
|
16105
16115
|
href: "#",
|
|
@@ -16110,8 +16120,8 @@ function LandingComponent() {
|
|
|
16110
16120
|
),
|
|
16111
16121
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`auth.buttons.login`) }) })
|
|
16112
16122
|
] }),
|
|
16113
|
-
|
|
16114
|
-
|
|
16123
|
+
_chunk2AK4GRIBjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
|
|
16124
|
+
_chunk2AK4GRIBjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunk2AK4GRIBjs.getPublicApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
|
|
16115
16125
|
] })
|
|
16116
16126
|
] });
|
|
16117
16127
|
}
|
|
@@ -16274,7 +16284,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
|
|
|
16274
16284
|
|
|
16275
16285
|
function Cookies({ dehydratedAuth, page }) {
|
|
16276
16286
|
const { setUser } = useCurrentUserContext();
|
|
16277
|
-
const router =
|
|
16287
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
16278
16288
|
const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
|
|
16279
16289
|
_react.useEffect.call(void 0, () => {
|
|
16280
16290
|
if (hasSaved) return;
|
|
@@ -16380,7 +16390,7 @@ function Login() {
|
|
|
16380
16390
|
const { setUser } = useCurrentUserContext();
|
|
16381
16391
|
const { setComponentType, setPendingTwoFactor } = useAuthContext();
|
|
16382
16392
|
const generateUrl = usePageUrlGenerator();
|
|
16383
|
-
const i18nRouter =
|
|
16393
|
+
const i18nRouter = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
16384
16394
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
16385
16395
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
16386
16396
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -16396,7 +16406,7 @@ function Login() {
|
|
|
16396
16406
|
}
|
|
16397
16407
|
}, []);
|
|
16398
16408
|
const buildDiscordOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
16399
|
-
const baseUrl = `${
|
|
16409
|
+
const baseUrl = `${_chunk2AK4GRIBjs.getPublicApiUrl.call(void 0, )}auth/discord`;
|
|
16400
16410
|
if (!referralCode) return baseUrl;
|
|
16401
16411
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
16402
16412
|
}, "buildDiscordOAuthUrl");
|
|
@@ -16449,7 +16459,7 @@ function Login() {
|
|
|
16449
16459
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
|
|
16450
16460
|
] }),
|
|
16451
16461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
|
|
16452
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children:
|
|
16462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children: _chunk2AK4GRIBjs.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16453
16463
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16454
16464
|
FormInput,
|
|
16455
16465
|
{
|
|
@@ -16474,8 +16484,8 @@ function Login() {
|
|
|
16474
16484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`auth.buttons.login`) })
|
|
16475
16485
|
] }) }),
|
|
16476
16486
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
|
|
16477
|
-
|
|
16478
|
-
|
|
16487
|
+
_chunk2AK4GRIBjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, { referralCode }),
|
|
16488
|
+
_chunk2AK4GRIBjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: buildDiscordOAuthUrl(), className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) }),
|
|
16479
16489
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row justify-between", children: [
|
|
16480
16490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16481
16491
|
Link,
|
|
@@ -16705,7 +16715,7 @@ function TwoFactorChallenge() {
|
|
|
16705
16715
|
const { setUser } = useCurrentUserContext();
|
|
16706
16716
|
const { pendingTwoFactor, setPendingTwoFactor } = useAuthContext();
|
|
16707
16717
|
const generateUrl = usePageUrlGenerator();
|
|
16708
|
-
const i18nRouter =
|
|
16718
|
+
const i18nRouter = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
16709
16719
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
16710
16720
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
16711
16721
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -18627,13 +18637,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, PushNotificationProvider, "PushNotification
|
|
|
18627
18637
|
|
|
18628
18638
|
// src/features/referral/utils/referral-cookie.ts
|
|
18629
18639
|
function setReferralCode(code) {
|
|
18630
|
-
const config =
|
|
18640
|
+
const config = _chunk2AK4GRIBjs.getReferralConfig.call(void 0, );
|
|
18631
18641
|
const maxAge = config.cookieDays * 24 * 60 * 60;
|
|
18632
18642
|
document.cookie = `${config.cookieName}=${encodeURIComponent(code)}; path=/; max-age=${maxAge}; SameSite=Lax`;
|
|
18633
18643
|
}
|
|
18634
18644
|
_chunk7QVYU63Ejs.__name.call(void 0, setReferralCode, "setReferralCode");
|
|
18635
18645
|
function getReferralCode2() {
|
|
18636
|
-
const config =
|
|
18646
|
+
const config = _chunk2AK4GRIBjs.getReferralConfig.call(void 0, );
|
|
18637
18647
|
const cookies = document.cookie.split("; ");
|
|
18638
18648
|
for (const cookie of cookies) {
|
|
18639
18649
|
const [name, value] = cookie.split("=");
|
|
@@ -18649,10 +18659,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, getReferralCode2, "getReferralCode");
|
|
|
18649
18659
|
function ReferralCodeCapture() {
|
|
18650
18660
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
18651
18661
|
_react.useEffect.call(void 0, () => {
|
|
18652
|
-
if (!
|
|
18662
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18653
18663
|
return;
|
|
18654
18664
|
}
|
|
18655
|
-
const config =
|
|
18665
|
+
const config = _chunk2AK4GRIBjs.getReferralConfig.call(void 0, );
|
|
18656
18666
|
const refCode = searchParams.get(config.urlParamName);
|
|
18657
18667
|
if (refCode) {
|
|
18658
18668
|
const existingCode = getReferralCode2();
|
|
@@ -18676,7 +18686,7 @@ function useReferralInvite() {
|
|
|
18676
18686
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
18677
18687
|
const [success, setSuccess] = _react.useState.call(void 0, false);
|
|
18678
18688
|
const sendInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (email) => {
|
|
18679
|
-
if (!
|
|
18689
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18680
18690
|
return;
|
|
18681
18691
|
}
|
|
18682
18692
|
setSending(true);
|
|
@@ -18702,7 +18712,7 @@ function useReferralStats() {
|
|
|
18702
18712
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
18703
18713
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
18704
18714
|
_react.useEffect.call(void 0, () => {
|
|
18705
|
-
if (!
|
|
18715
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18706
18716
|
setLoading(false);
|
|
18707
18717
|
return;
|
|
18708
18718
|
}
|
|
@@ -18774,10 +18784,10 @@ function ReferralWidget({
|
|
|
18774
18784
|
const [email, setEmail] = _react.useState.call(void 0, "");
|
|
18775
18785
|
const [copied, setCopied] = _react.useState.call(void 0, false);
|
|
18776
18786
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
18777
|
-
const config =
|
|
18787
|
+
const config = _chunk2AK4GRIBjs.getReferralConfig.call(void 0, );
|
|
18778
18788
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
18779
18789
|
const referralUrl = _optionalChain([stats, 'optionalAccess', _485 => _485.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
18780
|
-
if (!
|
|
18790
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18781
18791
|
return null;
|
|
18782
18792
|
}
|
|
18783
18793
|
const handleCopyLink = _react.useCallback.call(void 0, async () => {
|
|
@@ -18911,7 +18921,7 @@ function ReferralDialog({
|
|
|
18911
18921
|
dialogClassName,
|
|
18912
18922
|
...widgetProps
|
|
18913
18923
|
}) {
|
|
18914
|
-
if (!
|
|
18924
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18915
18925
|
return null;
|
|
18916
18926
|
}
|
|
18917
18927
|
const t = { ...DEFAULT_DIALOG_TRANSLATIONS, ...translations };
|
|
@@ -18999,7 +19009,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
18999
19009
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
19000
19010
|
}
|
|
19001
19011
|
_chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
|
|
19002
|
-
if (role.id !==
|
|
19012
|
+
if (role.id !== _chunk2AK4GRIBjs.getRoleId.call(void 0, ).CompanyAdministrator) {
|
|
19003
19013
|
setCanRemove(true);
|
|
19004
19014
|
return;
|
|
19005
19015
|
}
|
|
@@ -20091,7 +20101,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
20091
20101
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
20092
20102
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
20093
20103
|
const [isSuccess, setIsSuccess] = _react.useState.call(void 0, false);
|
|
20094
|
-
const config =
|
|
20104
|
+
const config = _chunk2AK4GRIBjs.getWaitlistConfig.call(void 0, );
|
|
20095
20105
|
const questionnaireFields = _nullishCoalesce(config.questionnaire, () => ( []));
|
|
20096
20106
|
const questionnaireSchema = questionnaireFields.reduce(
|
|
20097
20107
|
(acc, field) => {
|
|
@@ -20233,7 +20243,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistForm, "WaitlistForm");
|
|
|
20233
20243
|
|
|
20234
20244
|
|
|
20235
20245
|
function WaitlistHeroSection() {
|
|
20236
|
-
const config =
|
|
20246
|
+
const config = _chunk2AK4GRIBjs.getWaitlistConfig.call(void 0, );
|
|
20237
20247
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "relative overflow-hidden py-16 md:py-24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "container mx-auto px-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-12 lg:grid-cols-2 lg:items-center", children: [
|
|
20238
20248
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
20239
20249
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
@@ -20786,12 +20796,12 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
20786
20796
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "table", { className: "w-full text-sm", children: [
|
|
20787
20797
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b bg-muted/50", children: [
|
|
20788
20798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { className: "w-40 px-4 py-2 text-left text-xs font-medium text-muted-foreground", children: t("rbac.role") }),
|
|
20789
|
-
|
|
20799
|
+
_chunk2AK4GRIBjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { className: "min-w-28 px-2 py-2 text-center text-xs font-medium text-muted-foreground", children: ACTION_LABELS[action] }, action))
|
|
20790
20800
|
] }) }),
|
|
20791
20801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tbody", { children: [
|
|
20792
20802
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: _chunkN4YZ45SKjs.cn.call(void 0, "border-b bg-muted/30"), children: [
|
|
20793
20803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-bold text-muted-foreground", children: t("rbac.defaults") }),
|
|
20794
|
-
|
|
20804
|
+
_chunk2AK4GRIBjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20795
20805
|
CellButton,
|
|
20796
20806
|
{
|
|
20797
20807
|
moduleId,
|
|
@@ -20808,7 +20818,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
20808
20818
|
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _500 => _500[roleId]]), () => ( roleId));
|
|
20809
20819
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
20810
20820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
20811
|
-
|
|
20821
|
+
_chunk2AK4GRIBjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20812
20822
|
CellButton,
|
|
20813
20823
|
{
|
|
20814
20824
|
moduleId,
|
|
@@ -21051,7 +21061,7 @@ function RbacByRoleContainer() {
|
|
|
21051
21061
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: sortedModuleIds.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-accent bg-card", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "table", { className: "w-full text-sm", children: [
|
|
21052
21062
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { className: "sticky top-0 z-10", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b bg-muted/80 backdrop-blur-sm", children: [
|
|
21053
21063
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "th", { className: "w-40 px-4 py-2 text-left text-xs font-medium text-muted-foreground", children: t("rbac.module") }),
|
|
21054
|
-
|
|
21064
|
+
_chunk2AK4GRIBjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21055
21065
|
"th",
|
|
21056
21066
|
{
|
|
21057
21067
|
className: "min-w-28 px-2 py-2 text-center text-xs font-medium text-muted-foreground",
|
|
@@ -21070,18 +21080,18 @@ function RbacByRoleContainer() {
|
|
|
21070
21080
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21071
21081
|
"td",
|
|
21072
21082
|
{
|
|
21073
|
-
colSpan:
|
|
21083
|
+
colSpan: _chunk2AK4GRIBjs.ACTION_TYPES.length + 1,
|
|
21074
21084
|
className: "px-4 py-1.5 text-xs font-bold text-muted-foreground",
|
|
21075
21085
|
children: moduleLabel
|
|
21076
21086
|
}
|
|
21077
21087
|
) }),
|
|
21078
21088
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b bg-muted/20", children: [
|
|
21079
21089
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs text-muted-foreground", children: t("rbac.defaults") }),
|
|
21080
|
-
|
|
21090
|
+
_chunk2AK4GRIBjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RbacPermissionCell, { value: cellValue2(defaultTokens, action) }) }, action))
|
|
21081
21091
|
] }),
|
|
21082
21092
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
21083
21093
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _512 => _512[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
21084
|
-
|
|
21094
|
+
_chunk2AK4GRIBjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21085
21095
|
CellButton3,
|
|
21086
21096
|
{
|
|
21087
21097
|
moduleId,
|
|
@@ -21621,4 +21631,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
21621
21631
|
|
|
21622
21632
|
|
|
21623
21633
|
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.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 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.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.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantContainer = AssistantContainer; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
21624
|
-
//# sourceMappingURL=chunk-
|
|
21634
|
+
//# sourceMappingURL=chunk-AMP2ZDAV.js.map
|