@carlonicora/nextjs-jsonapi 1.85.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-UKGNL227.mjs → BlockNoteEditor-7TZA4XEN.mjs} +3 -3
- package/dist/{BlockNoteEditor-NHEJMFCW.js → BlockNoteEditor-KRDP6OSE.js} +7 -7
- package/dist/{BlockNoteEditor-NHEJMFCW.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-UUMDUIY6.js → chunk-AMP2ZDAV.js} +80 -80
- package/dist/{chunk-UUMDUIY6.js.map → chunk-AMP2ZDAV.js.map} +1 -1
- package/dist/{chunk-TTVVHFS4.mjs → chunk-CZ56O6JZ.mjs} +9 -9
- package/dist/{chunk-TTVVHFS4.mjs.map → chunk-CZ56O6JZ.mjs.map} +1 -1
- 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.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/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-PV5V6CVW.mjs.map +0 -1
- package/dist/chunk-ZEJSPTHS.js.map +0 -1
- /package/dist/{BlockNoteEditor-UKGNL227.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 () => {
|
|
@@ -8681,8 +8681,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
8681
8681
|
align = "start",
|
|
8682
8682
|
className
|
|
8683
8683
|
}) => {
|
|
8684
|
-
const locale =
|
|
8685
|
-
const dateFnsLocale =
|
|
8684
|
+
const locale = _chunk2AK4GRIBjs.useI18nLocale.call(void 0, );
|
|
8685
|
+
const dateFnsLocale = _chunk2AK4GRIBjs.useI18nDateFnsLocale.call(void 0, );
|
|
8686
8686
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
8687
8687
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
|
|
8688
8688
|
const dateFormatter = _react.useMemo.call(void 0,
|
|
@@ -9210,7 +9210,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
9210
9210
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
9211
9211
|
|
|
9212
9212
|
|
|
9213
|
-
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"))), {
|
|
9214
9214
|
ssr: false
|
|
9215
9215
|
});
|
|
9216
9216
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -9275,8 +9275,8 @@ function FormDate({
|
|
|
9275
9275
|
onChange,
|
|
9276
9276
|
isRequired = false
|
|
9277
9277
|
}) {
|
|
9278
|
-
const locale =
|
|
9279
|
-
const dateFnsLocale =
|
|
9278
|
+
const locale = _chunk2AK4GRIBjs.useI18nLocale.call(void 0, );
|
|
9279
|
+
const dateFnsLocale = _chunk2AK4GRIBjs.useI18nDateFnsLocale.call(void 0, );
|
|
9280
9280
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9281
9281
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
|
|
9282
9282
|
const currentValue = form.getValues(id);
|
|
@@ -9394,9 +9394,9 @@ function FormDateTime({
|
|
|
9394
9394
|
allowEmpty
|
|
9395
9395
|
}) {
|
|
9396
9396
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9397
|
-
const t =
|
|
9398
|
-
const locale =
|
|
9399
|
-
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, );
|
|
9400
9400
|
const dateTimeFormatter = _react.useMemo.call(void 0,
|
|
9401
9401
|
() => new Intl.DateTimeFormat(locale, {
|
|
9402
9402
|
year: "numeric",
|
|
@@ -11180,7 +11180,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
|
|
|
11180
11180
|
function AdminCompanyContainerInternal() {
|
|
11181
11181
|
const { company } = useCompanyContext();
|
|
11182
11182
|
const { hasRole } = useCurrentUserContext();
|
|
11183
|
-
if (!company || !hasRole(
|
|
11183
|
+
if (!company || !hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)) return null;
|
|
11184
11184
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11185
11185
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
|
|
11186
11186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
|
|
@@ -11258,7 +11258,7 @@ function CompanyConfigurationEditorInternal({
|
|
|
11258
11258
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
|
|
11259
11259
|
function CompanyConfigurationEditor(props) {
|
|
11260
11260
|
const { hasRole } = useCurrentUserContext();
|
|
11261
|
-
if (hasRole(
|
|
11261
|
+
if (hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
11262
11262
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
11263
11263
|
}
|
|
11264
11264
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
|
|
@@ -11392,8 +11392,8 @@ function CompanyDeleterInternal({ company, isAdministrator: isAdministrator2 })
|
|
|
11392
11392
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
11393
11393
|
function CompanyDeleter({ company }) {
|
|
11394
11394
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
11395
|
-
const isAdministrator2 = hasRole(
|
|
11396
|
-
const isCompanyAdministrator = hasRole(
|
|
11395
|
+
const isAdministrator2 = hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator);
|
|
11396
|
+
const isCompanyAdministrator = hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).CompanyAdministrator);
|
|
11397
11397
|
const hasDeletePermission = hasPermissionToModule({ module: _chunkN4YZ45SKjs.Modules.Company, action: "delete" /* Delete */ });
|
|
11398
11398
|
if (!isAdministrator2 && !isCompanyAdministrator && !hasDeletePermission) {
|
|
11399
11399
|
return null;
|
|
@@ -11423,7 +11423,7 @@ function CompanyEditorInternal({
|
|
|
11423
11423
|
onDialogOpenChange
|
|
11424
11424
|
}) {
|
|
11425
11425
|
const { hasRole, setUser } = useCurrentUserContext();
|
|
11426
|
-
const router =
|
|
11426
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
11427
11427
|
const [features, setFeatures] = _react.useState.call(void 0, []);
|
|
11428
11428
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
11429
11429
|
const [files, setFiles] = _react.useState.call(void 0, null);
|
|
@@ -11431,13 +11431,13 @@ function CompanyEditorInternal({
|
|
|
11431
11431
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11432
11432
|
const fiscalRef = _react.useRef.call(void 0, null);
|
|
11433
11433
|
const addressComponentsRef = _react.useRef.call(void 0, {});
|
|
11434
|
-
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";
|
|
11435
11435
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
11436
11436
|
(open) => {
|
|
11437
11437
|
if (open && features.length === 0 && canAccessFeatures) {
|
|
11438
11438
|
async function fetchFeatures() {
|
|
11439
11439
|
const allfeatures = await _chunkN4YZ45SKjs.FeatureService.findMany({});
|
|
11440
|
-
if (hasRole(
|
|
11440
|
+
if (hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator)) {
|
|
11441
11441
|
setFeatures(allfeatures);
|
|
11442
11442
|
} else {
|
|
11443
11443
|
setFeatures(allfeatures.filter((feature) => feature.isCore));
|
|
@@ -11668,9 +11668,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
11668
11668
|
};
|
|
11669
11669
|
if (company) response.element = company.name;
|
|
11670
11670
|
const functions = [];
|
|
11671
|
-
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 */ }))
|
|
11672
11672
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
11673
|
-
if (hasRole(
|
|
11673
|
+
if (hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkN4YZ45SKjs.Modules.Company, action: "update" /* Update */ })) {
|
|
11674
11674
|
if (company && configurationEditorSlot)
|
|
11675
11675
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: configurationEditorSlot }, "configurationEditorSlot"));
|
|
11676
11676
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
@@ -11764,7 +11764,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
|
|
|
11764
11764
|
var NotificationContext = _react.createContext.call(void 0, void 0);
|
|
11765
11765
|
var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
|
|
11766
11766
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11767
|
-
const router =
|
|
11767
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
11768
11768
|
const [notifications, setNotifications] = _react.useState.call(void 0, []);
|
|
11769
11769
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
11770
11770
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
@@ -11803,8 +11803,8 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
11803
11803
|
}, []);
|
|
11804
11804
|
_react.useEffect.call(void 0, () => {
|
|
11805
11805
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
11806
|
-
if (
|
|
11807
|
-
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)]);
|
|
11808
11808
|
if (isAdmin) {
|
|
11809
11809
|
setHasInitiallyLoaded(true);
|
|
11810
11810
|
return;
|
|
@@ -12295,7 +12295,7 @@ function HowToEditorInternal({
|
|
|
12295
12295
|
dialogOpen,
|
|
12296
12296
|
onDialogOpenChange
|
|
12297
12297
|
}) {
|
|
12298
|
-
const router =
|
|
12298
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
12299
12299
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12300
12300
|
const formSchema = _react.useMemo.call(void 0,
|
|
12301
12301
|
() => _zod3.z.object({
|
|
@@ -12526,7 +12526,7 @@ var RbacProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
12526
12526
|
_react.useEffect.call(void 0, () => {
|
|
12527
12527
|
let cancelled = false;
|
|
12528
12528
|
setLoading(true);
|
|
12529
|
-
|
|
12529
|
+
_chunk2AK4GRIBjs.RbacService.fetchMatrix().then((result) => {
|
|
12530
12530
|
if (cancelled) return;
|
|
12531
12531
|
setMatrix(result.matrix);
|
|
12532
12532
|
setModulePaths(result.modulePaths);
|
|
@@ -12573,7 +12573,7 @@ var RbacProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
12573
12573
|
if (!matrix || !roleNames || !moduleNames) return;
|
|
12574
12574
|
setSaving(true);
|
|
12575
12575
|
try {
|
|
12576
|
-
await
|
|
12576
|
+
await _chunk2AK4GRIBjs.RbacService.saveMatrix({ matrix, roleNames, moduleNames, outputPath });
|
|
12577
12577
|
_chunkN4YZ45SKjs.showToast.call(void 0, `Saved to ${outputPath}`);
|
|
12578
12578
|
} catch (err) {
|
|
12579
12579
|
console.error("Failed to save RBAC matrix:", err);
|
|
@@ -13926,7 +13926,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
13926
13926
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13927
13927
|
Link,
|
|
13928
13928
|
{
|
|
13929
|
-
href: hasRole(
|
|
13929
|
+
href: hasRole(_chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
13930
13930
|
page: "/administration",
|
|
13931
13931
|
id: _optionalChain([_chunkN4YZ45SKjs.Modules, 'access', _385 => _385.Company, 'access', _386 => _386.pageUrl, 'optionalAccess', _387 => _387.substring, 'call', _388 => _388(1)]),
|
|
13932
13932
|
childPage: company.id
|
|
@@ -13954,8 +13954,8 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
13954
13954
|
var TRIAL_DAYS = 14;
|
|
13955
13955
|
var GRACE_DAYS = 3;
|
|
13956
13956
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
13957
|
-
if (!currentUser || !
|
|
13958
|
-
const adminRoleId =
|
|
13957
|
+
if (!currentUser || !_chunk2AK4GRIBjs.isRolesConfigured.call(void 0, )) return false;
|
|
13958
|
+
const adminRoleId = _chunk2AK4GRIBjs.getRoleId.call(void 0, ).Administrator;
|
|
13959
13959
|
return !!_optionalChain([currentUser, 'access', _391 => _391.roles, 'optionalAccess', _392 => _392.some, 'call', _393 => _393((role) => role.id === adminRoleId)]);
|
|
13960
13960
|
}, "isAdministrator");
|
|
13961
13961
|
function useSubscriptionStatus() {
|
|
@@ -13970,7 +13970,7 @@ function useSubscriptionStatus() {
|
|
|
13970
13970
|
isBlocked: false
|
|
13971
13971
|
};
|
|
13972
13972
|
}
|
|
13973
|
-
if (!
|
|
13973
|
+
if (!_chunk2AK4GRIBjs.getStripePublishableKey.call(void 0, )) {
|
|
13974
13974
|
return {
|
|
13975
13975
|
status: "active",
|
|
13976
13976
|
trialEndsAt: null,
|
|
@@ -14979,7 +14979,7 @@ function Register() {
|
|
|
14979
14979
|
const { setComponentType } = useAuthContext();
|
|
14980
14980
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
14981
14981
|
const inviteCode = searchParams.get("invite");
|
|
14982
|
-
const registrationMode =
|
|
14982
|
+
const registrationMode = _chunk2AK4GRIBjs.getRegistrationMode.call(void 0, );
|
|
14983
14983
|
const [showConfirmation, setShowConfirmation] = _react.useState.call(void 0, false);
|
|
14984
14984
|
const [inviteValidated, setInviteValidated] = _react.useState.call(void 0, false);
|
|
14985
14985
|
const [inviteError, setInviteError] = _react.useState.call(void 0, "");
|
|
@@ -15156,16 +15156,16 @@ function Register() {
|
|
|
15156
15156
|
),
|
|
15157
15157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, GdprConsentSection, { form }),
|
|
15158
15158
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", children: t(`auth.buttons.register`) }),
|
|
15159
|
-
(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: [
|
|
15160
15160
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
15161
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" }) }),
|
|
15162
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") }) })
|
|
15163
15163
|
] }),
|
|
15164
15164
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
15165
|
-
|
|
15165
|
+
_chunk2AK4GRIBjs.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15166
15166
|
Link,
|
|
15167
15167
|
{
|
|
15168
|
-
href: `${
|
|
15168
|
+
href: `${_chunk2AK4GRIBjs.getPublicApiUrl.call(void 0, )}auth/google${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
15169
15169
|
className: "flex w-full",
|
|
15170
15170
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15171
15171
|
Button,
|
|
@@ -15210,10 +15210,10 @@ function Register() {
|
|
|
15210
15210
|
)
|
|
15211
15211
|
}
|
|
15212
15212
|
),
|
|
15213
|
-
|
|
15213
|
+
_chunk2AK4GRIBjs.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15214
15214
|
Link,
|
|
15215
15215
|
{
|
|
15216
|
-
href: `${
|
|
15216
|
+
href: `${_chunk2AK4GRIBjs.getPublicApiUrl.call(void 0, )}auth/discord${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
15217
15217
|
className: "flex w-full",
|
|
15218
15218
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { className: "w-full", variant: "outline", type: "button", children: [
|
|
15219
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" }) }),
|
|
@@ -16042,11 +16042,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, SecurityContainer, "SecurityContainer");
|
|
|
16042
16042
|
// src/features/auth/components/buttons/GoogleSignInButton.tsx
|
|
16043
16043
|
|
|
16044
16044
|
function GoogleSignInButton({ referralCode }) {
|
|
16045
|
-
if (!
|
|
16045
|
+
if (!_chunk2AK4GRIBjs.isGoogleAuthEnabled.call(void 0, )) {
|
|
16046
16046
|
return null;
|
|
16047
16047
|
}
|
|
16048
16048
|
const buildGoogleOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
16049
|
-
const baseUrl = `${
|
|
16049
|
+
const baseUrl = `${_chunk2AK4GRIBjs.getPublicApiUrl.call(void 0, )}auth/google`;
|
|
16050
16050
|
if (!referralCode) return baseUrl;
|
|
16051
16051
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
16052
16052
|
}, "buildGoogleOAuthUrl");
|
|
@@ -16108,8 +16108,8 @@ function LandingComponent() {
|
|
|
16108
16108
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
|
|
16109
16109
|
] }),
|
|
16110
16110
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
|
|
16111
|
-
|
|
16112
|
-
|
|
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,
|
|
16113
16113
|
Link,
|
|
16114
16114
|
{
|
|
16115
16115
|
href: "#",
|
|
@@ -16120,8 +16120,8 @@ function LandingComponent() {
|
|
|
16120
16120
|
),
|
|
16121
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`) }) })
|
|
16122
16122
|
] }),
|
|
16123
|
-
|
|
16124
|
-
|
|
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" }) })
|
|
16125
16125
|
] })
|
|
16126
16126
|
] });
|
|
16127
16127
|
}
|
|
@@ -16284,7 +16284,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
|
|
|
16284
16284
|
|
|
16285
16285
|
function Cookies({ dehydratedAuth, page }) {
|
|
16286
16286
|
const { setUser } = useCurrentUserContext();
|
|
16287
|
-
const router =
|
|
16287
|
+
const router = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
16288
16288
|
const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
|
|
16289
16289
|
_react.useEffect.call(void 0, () => {
|
|
16290
16290
|
if (hasSaved) return;
|
|
@@ -16390,7 +16390,7 @@ function Login() {
|
|
|
16390
16390
|
const { setUser } = useCurrentUserContext();
|
|
16391
16391
|
const { setComponentType, setPendingTwoFactor } = useAuthContext();
|
|
16392
16392
|
const generateUrl = usePageUrlGenerator();
|
|
16393
|
-
const i18nRouter =
|
|
16393
|
+
const i18nRouter = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
16394
16394
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
16395
16395
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
16396
16396
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -16406,7 +16406,7 @@ function Login() {
|
|
|
16406
16406
|
}
|
|
16407
16407
|
}, []);
|
|
16408
16408
|
const buildDiscordOAuthUrl = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
16409
|
-
const baseUrl = `${
|
|
16409
|
+
const baseUrl = `${_chunk2AK4GRIBjs.getPublicApiUrl.call(void 0, )}auth/discord`;
|
|
16410
16410
|
if (!referralCode) return baseUrl;
|
|
16411
16411
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
16412
16412
|
}, "buildDiscordOAuthUrl");
|
|
@@ -16459,7 +16459,7 @@ function Login() {
|
|
|
16459
16459
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
|
|
16460
16460
|
] }),
|
|
16461
16461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
|
|
16462
|
-
/* @__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: [
|
|
16463
16463
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16464
16464
|
FormInput,
|
|
16465
16465
|
{
|
|
@@ -16484,8 +16484,8 @@ function Login() {
|
|
|
16484
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`) })
|
|
16485
16485
|
] }) }),
|
|
16486
16486
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
|
|
16487
|
-
|
|
16488
|
-
|
|
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" }) }),
|
|
16489
16489
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row justify-between", children: [
|
|
16490
16490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16491
16491
|
Link,
|
|
@@ -16715,7 +16715,7 @@ function TwoFactorChallenge() {
|
|
|
16715
16715
|
const { setUser } = useCurrentUserContext();
|
|
16716
16716
|
const { pendingTwoFactor, setPendingTwoFactor } = useAuthContext();
|
|
16717
16717
|
const generateUrl = usePageUrlGenerator();
|
|
16718
|
-
const i18nRouter =
|
|
16718
|
+
const i18nRouter = _chunk2AK4GRIBjs.useI18nRouter.call(void 0, );
|
|
16719
16719
|
const nativeRouter = _navigation.useRouter.call(void 0, );
|
|
16720
16720
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
16721
16721
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
@@ -18637,13 +18637,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, PushNotificationProvider, "PushNotification
|
|
|
18637
18637
|
|
|
18638
18638
|
// src/features/referral/utils/referral-cookie.ts
|
|
18639
18639
|
function setReferralCode(code) {
|
|
18640
|
-
const config =
|
|
18640
|
+
const config = _chunk2AK4GRIBjs.getReferralConfig.call(void 0, );
|
|
18641
18641
|
const maxAge = config.cookieDays * 24 * 60 * 60;
|
|
18642
18642
|
document.cookie = `${config.cookieName}=${encodeURIComponent(code)}; path=/; max-age=${maxAge}; SameSite=Lax`;
|
|
18643
18643
|
}
|
|
18644
18644
|
_chunk7QVYU63Ejs.__name.call(void 0, setReferralCode, "setReferralCode");
|
|
18645
18645
|
function getReferralCode2() {
|
|
18646
|
-
const config =
|
|
18646
|
+
const config = _chunk2AK4GRIBjs.getReferralConfig.call(void 0, );
|
|
18647
18647
|
const cookies = document.cookie.split("; ");
|
|
18648
18648
|
for (const cookie of cookies) {
|
|
18649
18649
|
const [name, value] = cookie.split("=");
|
|
@@ -18659,10 +18659,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, getReferralCode2, "getReferralCode");
|
|
|
18659
18659
|
function ReferralCodeCapture() {
|
|
18660
18660
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
18661
18661
|
_react.useEffect.call(void 0, () => {
|
|
18662
|
-
if (!
|
|
18662
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18663
18663
|
return;
|
|
18664
18664
|
}
|
|
18665
|
-
const config =
|
|
18665
|
+
const config = _chunk2AK4GRIBjs.getReferralConfig.call(void 0, );
|
|
18666
18666
|
const refCode = searchParams.get(config.urlParamName);
|
|
18667
18667
|
if (refCode) {
|
|
18668
18668
|
const existingCode = getReferralCode2();
|
|
@@ -18686,7 +18686,7 @@ function useReferralInvite() {
|
|
|
18686
18686
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
18687
18687
|
const [success, setSuccess] = _react.useState.call(void 0, false);
|
|
18688
18688
|
const sendInvite = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (email) => {
|
|
18689
|
-
if (!
|
|
18689
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18690
18690
|
return;
|
|
18691
18691
|
}
|
|
18692
18692
|
setSending(true);
|
|
@@ -18712,7 +18712,7 @@ function useReferralStats() {
|
|
|
18712
18712
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
18713
18713
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
18714
18714
|
_react.useEffect.call(void 0, () => {
|
|
18715
|
-
if (!
|
|
18715
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18716
18716
|
setLoading(false);
|
|
18717
18717
|
return;
|
|
18718
18718
|
}
|
|
@@ -18784,10 +18784,10 @@ function ReferralWidget({
|
|
|
18784
18784
|
const [email, setEmail] = _react.useState.call(void 0, "");
|
|
18785
18785
|
const [copied, setCopied] = _react.useState.call(void 0, false);
|
|
18786
18786
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
18787
|
-
const config =
|
|
18787
|
+
const config = _chunk2AK4GRIBjs.getReferralConfig.call(void 0, );
|
|
18788
18788
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
18789
18789
|
const referralUrl = _optionalChain([stats, 'optionalAccess', _485 => _485.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
18790
|
-
if (!
|
|
18790
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18791
18791
|
return null;
|
|
18792
18792
|
}
|
|
18793
18793
|
const handleCopyLink = _react.useCallback.call(void 0, async () => {
|
|
@@ -18921,7 +18921,7 @@ function ReferralDialog({
|
|
|
18921
18921
|
dialogClassName,
|
|
18922
18922
|
...widgetProps
|
|
18923
18923
|
}) {
|
|
18924
|
-
if (!
|
|
18924
|
+
if (!_chunk2AK4GRIBjs.isReferralEnabled.call(void 0, )) {
|
|
18925
18925
|
return null;
|
|
18926
18926
|
}
|
|
18927
18927
|
const t = { ...DEFAULT_DIALOG_TRANSLATIONS, ...translations };
|
|
@@ -19009,7 +19009,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
19009
19009
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
19010
19010
|
}
|
|
19011
19011
|
_chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
|
|
19012
|
-
if (role.id !==
|
|
19012
|
+
if (role.id !== _chunk2AK4GRIBjs.getRoleId.call(void 0, ).CompanyAdministrator) {
|
|
19013
19013
|
setCanRemove(true);
|
|
19014
19014
|
return;
|
|
19015
19015
|
}
|
|
@@ -20101,7 +20101,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
20101
20101
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
20102
20102
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
20103
20103
|
const [isSuccess, setIsSuccess] = _react.useState.call(void 0, false);
|
|
20104
|
-
const config =
|
|
20104
|
+
const config = _chunk2AK4GRIBjs.getWaitlistConfig.call(void 0, );
|
|
20105
20105
|
const questionnaireFields = _nullishCoalesce(config.questionnaire, () => ( []));
|
|
20106
20106
|
const questionnaireSchema = questionnaireFields.reduce(
|
|
20107
20107
|
(acc, field) => {
|
|
@@ -20243,7 +20243,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistForm, "WaitlistForm");
|
|
|
20243
20243
|
|
|
20244
20244
|
|
|
20245
20245
|
function WaitlistHeroSection() {
|
|
20246
|
-
const config =
|
|
20246
|
+
const config = _chunk2AK4GRIBjs.getWaitlistConfig.call(void 0, );
|
|
20247
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: [
|
|
20248
20248
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
20249
20249
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
@@ -20796,12 +20796,12 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
20796
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: [
|
|
20797
20797
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b bg-muted/50", children: [
|
|
20798
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") }),
|
|
20799
|
-
|
|
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))
|
|
20800
20800
|
] }) }),
|
|
20801
20801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tbody", { children: [
|
|
20802
20802
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: _chunkN4YZ45SKjs.cn.call(void 0, "border-b bg-muted/30"), children: [
|
|
20803
20803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-bold text-muted-foreground", children: t("rbac.defaults") }),
|
|
20804
|
-
|
|
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,
|
|
20805
20805
|
CellButton,
|
|
20806
20806
|
{
|
|
20807
20807
|
moduleId,
|
|
@@ -20818,7 +20818,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
20818
20818
|
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _500 => _500[roleId]]), () => ( roleId));
|
|
20819
20819
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
20820
20820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
20821
|
-
|
|
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,
|
|
20822
20822
|
CellButton,
|
|
20823
20823
|
{
|
|
20824
20824
|
moduleId,
|
|
@@ -21061,7 +21061,7 @@ function RbacByRoleContainer() {
|
|
|
21061
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: [
|
|
21062
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: [
|
|
21063
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") }),
|
|
21064
|
-
|
|
21064
|
+
_chunk2AK4GRIBjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21065
21065
|
"th",
|
|
21066
21066
|
{
|
|
21067
21067
|
className: "min-w-28 px-2 py-2 text-center text-xs font-medium text-muted-foreground",
|
|
@@ -21080,18 +21080,18 @@ function RbacByRoleContainer() {
|
|
|
21080
21080
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21081
21081
|
"td",
|
|
21082
21082
|
{
|
|
21083
|
-
colSpan:
|
|
21083
|
+
colSpan: _chunk2AK4GRIBjs.ACTION_TYPES.length + 1,
|
|
21084
21084
|
className: "px-4 py-1.5 text-xs font-bold text-muted-foreground",
|
|
21085
21085
|
children: moduleLabel
|
|
21086
21086
|
}
|
|
21087
21087
|
) }),
|
|
21088
21088
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b bg-muted/20", children: [
|
|
21089
21089
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs text-muted-foreground", children: t("rbac.defaults") }),
|
|
21090
|
-
|
|
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))
|
|
21091
21091
|
] }),
|
|
21092
21092
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
21093
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)) }),
|
|
21094
|
-
|
|
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,
|
|
21095
21095
|
CellButton3,
|
|
21096
21096
|
{
|
|
21097
21097
|
moduleId,
|
|
@@ -21631,4 +21631,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
21631
21631
|
|
|
21632
21632
|
|
|
21633
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;
|
|
21634
|
-
//# sourceMappingURL=chunk-
|
|
21634
|
+
//# sourceMappingURL=chunk-AMP2ZDAV.js.map
|