@strapi/admin 4.14.4 → 4.14.6
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/admin/.eslintrc.js +12 -0
- package/admin/custom.d.ts +20 -0
- package/admin/src/StrapiApp.js +14 -16
- package/admin/src/components/AuthenticatedApp/index.js +4 -4
- package/admin/src/components/ConfigurationProvider.tsx +67 -0
- package/admin/src/components/LanguageProvider.tsx +129 -0
- package/admin/src/components/{LeftMenu/index.js → LeftMenu.tsx} +23 -18
- package/admin/src/components/{NpsSurvey/index.js → NpsSurvey.tsx} +68 -21
- package/admin/src/components/PluginsInitializer.tsx +124 -0
- package/admin/src/components/Providers/index.js +6 -6
- package/admin/src/components/UnauthenticatedLogo.tsx +2 -2
- package/admin/src/components/{LocalesProvider/__mocks__/useLocalesProvider.js → __mocks__/LanguageProvider.js} +1 -1
- package/admin/src/content-manager/components/BlocksEditor/BlocksInput/index.js +48 -8
- package/admin/src/content-manager/components/BlocksEditor/Toolbar/index.js +146 -68
- package/admin/src/content-manager/components/BlocksEditor/hooks/useBlocksStore.js +50 -47
- package/admin/src/content-manager/components/BlocksEditor/hooks/useModifiersStore.js +11 -9
- package/admin/src/content-manager/components/BlocksEditor/index.js +1 -14
- package/admin/src/contexts/admin.ts +18 -0
- package/admin/src/contexts/configuration.ts +14 -4
- package/admin/src/hooks/__mocks__/useConfigurations.ts +2 -2
- package/admin/src/hooks/index.js +0 -3
- package/admin/src/hooks/{useAdminRoles/index.js → useAdminRoles.ts} +26 -10
- package/admin/src/hooks/useAdminUsers.ts +64 -0
- package/admin/src/hooks/useConfiguration.ts +5 -0
- package/admin/src/hooks/{useEnterprise/useEnterprise.js → useEnterprise.ts} +15 -5
- package/admin/src/hooks/useMenu.ts +153 -0
- package/admin/src/index.js +5 -2
- package/admin/src/layouts/UnauthenticatedLayout/LocaleToggle/index.js +2 -2
- package/admin/src/pages/Admin/index.js +4 -3
- package/admin/src/pages/App/index.js +5 -3
- package/admin/src/pages/AuthPage/components/Register/index.js +28 -33
- package/admin/src/pages/AuthPage/index.js +2 -2
- package/admin/src/pages/ProfilePage/index.js +2 -2
- package/admin/src/pages/SettingsPage/components/Tokens/Table/index.js +119 -87
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/CustomizationInfos/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/Roles/CreatePage/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/Collapse/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/ActionRow/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/SubActionRow/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PermissionsDataManagerProvider/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/SubCategory/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/hooks/usePermissionsDataManager.ts +28 -0
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/index.js +1 -1
- package/admin/src/{hooks/useAdminRolePermissions/index.js → pages/SettingsPage/pages/Roles/hooks/useAdminRolePermissions.ts} +13 -6
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ListView/index.js +3 -5
- package/admin/src/shared/hooks/index.js +0 -1
- package/admin/src/shared/hooks/useInjectionZone/index.js +2 -2
- package/admin/src/types/adminAPI.ts +29 -0
- package/admin/src/utils/createRoute.js +4 -1
- package/admin/tsconfig.build.json +4 -0
- package/admin/tsconfig.json +7 -1
- package/build/{1049.f7aed23d.chunk.js → 1049.9236e785.chunk.js} +1 -1
- package/build/1222.fe92c653.chunk.js +35 -0
- package/build/{1227.f9c74718.chunk.js → 1227.e0f7447b.chunk.js} +1 -1
- package/build/135.ad267b59.chunk.js +1 -0
- package/build/{1386.6b8819c6.chunk.js → 1386.07f2bbb3.chunk.js} +1 -1
- package/build/1835.eaa696ba.chunk.js +1 -0
- package/build/{2225.d1bcf7e3.chunk.js → 2225.a2147b8f.chunk.js} +2 -2
- package/build/2325.d705b39a.chunk.js +1 -0
- package/build/2379.b0bc4013.chunk.js +1 -0
- package/build/{2395.aca6ce66.chunk.js → 2395.d37b1025.chunk.js} +1 -1
- package/build/2421.79e5b3d0.chunk.js +1 -0
- package/build/267.073a3bcb.chunk.js +1 -0
- package/build/2801.12522720.chunk.js +1 -0
- package/build/2878.145ebf7c.chunk.js +1 -0
- package/build/2950.216f2e89.chunk.js +1 -0
- package/build/2953.284a63c0.chunk.js +1 -0
- package/build/{8743.31c921b1.chunk.js → 3019.0d74d080.chunk.js} +123 -139
- package/build/3021.33ad47fb.chunk.js +103 -0
- package/build/{3483.5df8e010.chunk.js → 3483.8f1b25f8.chunk.js} +1 -1
- package/build/3911.488fbde3.chunk.js +95 -0
- package/build/{4174.df9aa09a.chunk.js → 4174.2c4f958e.chunk.js} +1 -1
- package/build/4429.7f044dc7.chunk.js +1 -0
- package/build/4555.c883d697.chunk.js +1 -0
- package/build/4663.b906cc10.chunk.js +1 -0
- package/build/4916.480053a6.chunk.js +1 -0
- package/build/4996.d285c30b.chunk.js +1 -0
- package/build/502.b845473a.chunk.js +1 -0
- package/build/5858.493b31ec.chunk.js +1 -0
- package/build/6345.334e7678.chunk.js +1 -0
- package/build/6373.1a21d665.chunk.js +105 -0
- package/build/6453.4160b5b7.chunk.js +1 -0
- package/build/7448.6fd14dd3.chunk.js +1 -0
- package/build/7464.91341b4f.chunk.js +1 -0
- package/build/7735.9e7c9fdd.chunk.js +10 -0
- package/build/782.7243b183.chunk.js +1 -0
- package/build/7849.2a500ed8.chunk.js +1 -0
- package/build/7897.dffa5ad5.chunk.js +6 -0
- package/build/8162.7d1100a0.chunk.js +1 -0
- package/build/{8276.d4426fd8.chunk.js → 8276.e9698944.chunk.js} +2 -2
- package/build/8894.5ca4852a.chunk.js +26 -0
- package/build/8980.f0045cc1.chunk.js +1 -0
- package/build/9153.42c1428a.chunk.js +1 -0
- package/build/{9218.8bc01ab9.chunk.js → 9218.306ad178.chunk.js} +1 -1
- package/build/9285.5f174057.chunk.js +1 -0
- package/build/9302.550cf5b7.chunk.js +146 -0
- package/build/9547.62987774.chunk.js +1 -0
- package/build/9754.b4e73779.chunk.js +1 -0
- package/build/Admin-authenticatedApp.e0bf203f.chunk.js +79 -0
- package/build/{Admin_InternalErrorPage.b66ee9c1.chunk.js → Admin_InternalErrorPage.e2431a95.chunk.js} +1 -1
- package/build/Admin_homePage.71ef8d06.chunk.js +81 -0
- package/build/{Admin_marketplace.31b962b8.chunk.js → Admin_marketplace.0db78604.chunk.js} +1 -1
- package/build/{Admin_pluginsPage.9217101d.chunk.js → Admin_pluginsPage.1083f7f0.chunk.js} +1 -1
- package/build/{Admin_profilePage.680123d9.chunk.js → Admin_profilePage.61704b7d.chunk.js} +2 -2
- package/build/Admin_settingsPage.39cb9fca.chunk.js +111 -0
- package/build/{Upload_ConfigureTheView.b40eea4d.chunk.js → Upload_ConfigureTheView.3cfeb108.chunk.js} +1 -1
- package/build/admin-app.06f5e70a.chunk.js +69 -0
- package/build/admin-edit-roles-page.556fac52.chunk.js +267 -0
- package/build/admin-edit-users.64fd1318.chunk.js +10 -0
- package/build/admin-roles-list.15918328.chunk.js +22 -0
- package/build/admin-users.74fddc87.chunk.js +11 -0
- package/build/{api-tokens-create-page.0dd63e91.chunk.js → api-tokens-create-page.c08ae118.chunk.js} +1 -1
- package/build/{api-tokens-edit-page.78d877f8.chunk.js → api-tokens-edit-page.ce18efdc.chunk.js} +1 -1
- package/build/api-tokens-list-page.783b7569.chunk.js +16 -0
- package/build/audit-logs-settings-page.12aeea8c.chunk.js +1 -0
- package/build/content-manager.2e3f660b.chunk.js +1220 -0
- package/build/{content-type-builder-list-view.3fffae65.chunk.js → content-type-builder-list-view.38ed3935.chunk.js} +7 -7
- package/build/{content-type-builder.98c71164.chunk.js → content-type-builder.758a9d23.chunk.js} +4 -4
- package/build/email-settings-page.e08a587e.chunk.js +11 -0
- package/build/{i18n-settings-page.a9708926.chunk.js → i18n-settings-page.3186e3e9.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/main.00ea6f5a.js +2665 -0
- package/build/{review-workflows-settings-create-view.b7b0c6c5.chunk.js → review-workflows-settings-create-view.5cdc4d64.chunk.js} +1 -1
- package/build/{review-workflows-settings-edit-view.c331b3fe.chunk.js → review-workflows-settings-edit-view.53bf7865.chunk.js} +1 -1
- package/build/review-workflows-settings-list-view.b4a8aefb.chunk.js +56 -0
- package/build/runtime~main.be0e0649.js +2 -0
- package/build/sso-settings-page.6a35d473.chunk.js +1 -0
- package/build/{transfer-tokens-create-page.e7f541d3.chunk.js → transfer-tokens-create-page.2662d519.chunk.js} +1 -1
- package/build/{transfer-tokens-edit-page.bd1276c2.chunk.js → transfer-tokens-edit-page.f64d8d8c.chunk.js} +1 -1
- package/build/transfer-tokens-list-page.e6fd5f87.chunk.js +16 -0
- package/build/{upload-settings.97ef4c92.chunk.js → upload-settings.450a1de0.chunk.js} +1 -1
- package/build/{upload.f08715a1.chunk.js → upload.0d53e7a3.chunk.js} +1 -1
- package/build/{users-advanced-settings-page.36a3c363.chunk.js → users-advanced-settings-page.4a1f1f6d.chunk.js} +1 -1
- package/build/users-email-settings-page.ea81fe82.chunk.js +9 -0
- package/build/users-providers-settings-page.10280cdb.chunk.js +14 -0
- package/build/{users-roles-settings-page.d5a8e8a1.chunk.js → users-roles-settings-page.4a7158be.chunk.js} +1 -1
- package/build/{webhook-edit-page.87456194.chunk.js → webhook-edit-page.65ac30ee.chunk.js} +2 -2
- package/build/{webhook-list-page.c88a382b.chunk.js → webhook-list-page.f57285ca.chunk.js} +1 -1
- package/jest.config.front.js +4 -0
- package/package.json +23 -17
- package/scripts/build.js +1 -1
- package/server/controllers/admin.js +3 -2
- package/shared/entities.ts +33 -0
- package/shared/permissions.ts +52 -0
- package/admin/src/components/ConfigurationsProvider/index.js +0 -66
- package/admin/src/components/ConfigurationsProvider/reducer.js +0 -29
- package/admin/src/components/LanguageProvider/index.js +0 -54
- package/admin/src/components/LanguageProvider/init.js +0 -13
- package/admin/src/components/LanguageProvider/reducer.js +0 -30
- package/admin/src/components/LanguageProvider/utils/localStorageKey.js +0 -3
- package/admin/src/components/LocalesProvider/context.js +0 -5
- package/admin/src/components/LocalesProvider/index.js +0 -21
- package/admin/src/components/LocalesProvider/useLocalesProvider.js +0 -11
- package/admin/src/components/NpsSurvey/hooks/useNpsSurveySettings.js +0 -17
- package/admin/src/components/PluginsInitializer/index.js +0 -68
- package/admin/src/components/PluginsInitializer/init.js +0 -11
- package/admin/src/components/PluginsInitializer/reducer.js +0 -22
- package/admin/src/contexts/Admin/index.js +0 -5
- package/admin/src/contexts/MarketPlace/index.js +0 -18
- package/admin/src/contexts/PermisssionsDataManagerContext/index.js +0 -5
- package/admin/src/contexts/index.js +0 -3
- package/admin/src/hooks/useAdminRoles/__mocks__/index.js +0 -5
- package/admin/src/hooks/useAdminUsers/index.js +0 -1
- package/admin/src/hooks/useAdminUsers/useAdminUsers.js +0 -47
- package/admin/src/hooks/useConfigurations.ts +0 -5
- package/admin/src/hooks/useEnterprise/index.js +0 -1
- package/admin/src/hooks/useMenu/index.js +0 -86
- package/admin/src/hooks/useMenu/utils/checkPermissions.js +0 -13
- package/admin/src/hooks/useMenu/utils/getGeneralLinks.js +0 -31
- package/admin/src/hooks/useMenu/utils/getPluginSectionLinks.js +0 -17
- package/admin/src/hooks/usePermissionsDataManager/index.js +0 -7
- package/admin/src/shared/hooks/useAdminProvider/index.js +0 -11
- package/build/2224.8af54440.chunk.js +0 -138
- package/build/2379.f0baf826.chunk.js +0 -1
- package/build/2421.a478ba24.chunk.js +0 -105
- package/build/2801.c49f88a1.chunk.js +0 -1
- package/build/3911.d4fada48.chunk.js +0 -95
- package/build/412.72afdf0c.chunk.js +0 -689
- package/build/502.8666bbef.chunk.js +0 -25
- package/build/5702.5b433d50.chunk.js +0 -1
- package/build/6186.c33ce082.chunk.js +0 -116
- package/build/6715.48e37308.chunk.js +0 -1
- package/build/6812.00ef5b0d.chunk.js +0 -26
- package/build/7464.43a4527c.chunk.js +0 -1
- package/build/7818.d2196a53.chunk.js +0 -29
- package/build/7897.5c03247b.chunk.js +0 -25
- package/build/8690.33243bba.chunk.js +0 -38
- package/build/Admin-authenticatedApp.27545a1b.chunk.js +0 -112
- package/build/Admin_homePage.a6281dd6.chunk.js +0 -124
- package/build/Admin_settingsPage.33378310.chunk.js +0 -111
- package/build/admin-app.e8c52c37.chunk.js +0 -36
- package/build/admin-edit-roles-page.fcf056bf.chunk.js +0 -275
- package/build/admin-edit-users.89efe3c4.chunk.js +0 -10
- package/build/admin-roles-list.8b77704a.chunk.js +0 -22
- package/build/admin-users.e3f1be14.chunk.js +0 -19
- package/build/api-tokens-list-page.ae13346c.chunk.js +0 -16
- package/build/audit-logs-settings-page.e9c92a75.chunk.js +0 -9
- package/build/content-manager.5849dbe3.chunk.js +0 -1226
- package/build/email-settings-page.ecfec9b3.chunk.js +0 -11
- package/build/email-translation-ar-json.88304564.chunk.js +0 -1
- package/build/email-translation-cs-json.6eaeec6a.chunk.js +0 -1
- package/build/email-translation-de-json.1b334230.chunk.js +0 -1
- package/build/email-translation-dk-json.85402492.chunk.js +0 -1
- package/build/email-translation-en-json.4211d4d0.chunk.js +0 -1
- package/build/email-translation-es-json.0b6b1006.chunk.js +0 -1
- package/build/email-translation-fr-json.78be2787.chunk.js +0 -1
- package/build/email-translation-id-json.c97239fe.chunk.js +0 -1
- package/build/email-translation-it-json.a2ed8c78.chunk.js +0 -1
- package/build/email-translation-ja-json.63eebd02.chunk.js +0 -1
- package/build/email-translation-ko-json.4de49b23.chunk.js +0 -1
- package/build/email-translation-ms-json.7390477e.chunk.js +0 -1
- package/build/email-translation-nl-json.377bdd9f.chunk.js +0 -1
- package/build/email-translation-pl-json.97d0db97.chunk.js +0 -1
- package/build/email-translation-pt-BR-json.81cca553.chunk.js +0 -1
- package/build/email-translation-pt-json.2a2a0643.chunk.js +0 -1
- package/build/email-translation-ru-json.6bce37dd.chunk.js +0 -1
- package/build/email-translation-sk-json.53da2fcd.chunk.js +0 -1
- package/build/email-translation-th-json.660fa9a8.chunk.js +0 -1
- package/build/email-translation-tr-json.e6c0f8fc.chunk.js +0 -1
- package/build/email-translation-uk-json.bd1fb6bf.chunk.js +0 -1
- package/build/email-translation-vi-json.9fb7e6d7.chunk.js +0 -1
- package/build/email-translation-zh-Hans-json.c6841563.chunk.js +0 -1
- package/build/email-translation-zh-json.7a2232ea.chunk.js +0 -1
- package/build/main.3abb6f34.js +0 -3278
- package/build/review-workflows-settings-list-view.70218dc1.chunk.js +0 -75
- package/build/runtime~main.450561b1.js +0 -2
- package/build/sso-settings-page.1a9e7f8f.chunk.js +0 -1
- package/build/transfer-tokens-list-page.5de6bb9f.chunk.js +0 -16
- package/build/users-email-settings-page.47b47962.chunk.js +0 -149
- package/build/users-providers-settings-page.1e0c8376.chunk.js +0 -154
- /package/admin/src/hooks/{useAdminUsers/__mocks__/index.js → __mocks__/useAdminUsers.ts} +0 -0
- /package/admin/src/{hooks/useAdminRolePermissions/__mocks__/index.js → pages/SettingsPage/pages/Roles/hooks/__mocks__/useAdminRolePermissions.ts} +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
import { useFetchClient } from '@strapi/helper-plugin';
|
|
4
|
-
import { useQuery } from 'react-query';
|
|
5
|
-
|
|
6
|
-
export function useAdminUsers(params = {}, queryOptions = {}) {
|
|
7
|
-
const { id = '', ...queryParams } = params;
|
|
8
|
-
|
|
9
|
-
const { get } = useFetchClient();
|
|
10
|
-
|
|
11
|
-
const { data, isError, isLoading, refetch } = useQuery(
|
|
12
|
-
['users', id, queryParams],
|
|
13
|
-
async () => {
|
|
14
|
-
const {
|
|
15
|
-
data: { data },
|
|
16
|
-
} = await get(`/admin/users/${id}`, {
|
|
17
|
-
params: queryParams,
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
return data;
|
|
21
|
-
},
|
|
22
|
-
queryOptions
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
// the return value needs to be memoized, because intantiating
|
|
26
|
-
// an empty array as default value would lead to an unstable return
|
|
27
|
-
// value, which later on triggers infinite loops if used in the
|
|
28
|
-
// dependency arrays of other hooks
|
|
29
|
-
const users = React.useMemo(() => {
|
|
30
|
-
if (id && data) {
|
|
31
|
-
return [data];
|
|
32
|
-
}
|
|
33
|
-
if (Array.isArray(data?.results)) {
|
|
34
|
-
return data.results;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return [];
|
|
38
|
-
}, [data, id]);
|
|
39
|
-
|
|
40
|
-
return {
|
|
41
|
-
users,
|
|
42
|
-
pagination: React.useMemo(() => data?.pagination ?? null, [data?.pagination]),
|
|
43
|
-
isLoading,
|
|
44
|
-
isError,
|
|
45
|
-
refetch,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useEnterprise';
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
import { useAppInfo, useRBACProvider, useStrapiApp } from '@strapi/helper-plugin';
|
|
4
|
-
import { Cog, Puzzle, ShoppingCart } from '@strapi/icons';
|
|
5
|
-
import { useSelector } from 'react-redux';
|
|
6
|
-
|
|
7
|
-
import { selectAdminPermissions } from '../../pages/App/selectors';
|
|
8
|
-
|
|
9
|
-
import getGeneralLinks from './utils/getGeneralLinks';
|
|
10
|
-
import getPluginSectionLinks from './utils/getPluginSectionLinks';
|
|
11
|
-
|
|
12
|
-
const useMenu = () => {
|
|
13
|
-
const { allPermissions: userPermissions } = useRBACProvider();
|
|
14
|
-
const { shouldUpdateStrapi } = useAppInfo();
|
|
15
|
-
const { menu } = useStrapiApp();
|
|
16
|
-
const permissions = useSelector(selectAdminPermissions);
|
|
17
|
-
const [menuWithUserPermissions, setMenuWithUserPermissions] = React.useState({
|
|
18
|
-
generalSectionLinks: [
|
|
19
|
-
{
|
|
20
|
-
icon: Puzzle,
|
|
21
|
-
intlLabel: {
|
|
22
|
-
id: 'global.plugins',
|
|
23
|
-
defaultMessage: 'Plugins',
|
|
24
|
-
},
|
|
25
|
-
to: '/list-plugins',
|
|
26
|
-
permissions: permissions.marketplace.main,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
icon: ShoppingCart,
|
|
30
|
-
intlLabel: {
|
|
31
|
-
id: 'global.marketplace',
|
|
32
|
-
defaultMessage: 'Marketplace',
|
|
33
|
-
},
|
|
34
|
-
to: '/marketplace',
|
|
35
|
-
permissions: permissions.marketplace.main,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
icon: Cog,
|
|
39
|
-
intlLabel: {
|
|
40
|
-
id: 'global.settings',
|
|
41
|
-
defaultMessage: 'Settings',
|
|
42
|
-
},
|
|
43
|
-
to: '/settings',
|
|
44
|
-
// Permissions of this link are retrieved in the init phase
|
|
45
|
-
// using the settings menu
|
|
46
|
-
permissions: [],
|
|
47
|
-
notificationsCount: 0,
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
pluginsSectionLinks: [],
|
|
51
|
-
isLoading: true,
|
|
52
|
-
});
|
|
53
|
-
const generalSectionLinksRef = React.useRef(menuWithUserPermissions.generalSectionLinks);
|
|
54
|
-
|
|
55
|
-
React.useEffect(() => {
|
|
56
|
-
async function applyMenuPermissions() {
|
|
57
|
-
const authorizedPluginSectionLinks = await getPluginSectionLinks(userPermissions, menu);
|
|
58
|
-
|
|
59
|
-
const authorizedGeneralSectionLinks = await getGeneralLinks(
|
|
60
|
-
userPermissions,
|
|
61
|
-
generalSectionLinksRef.current,
|
|
62
|
-
shouldUpdateStrapi
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
setMenuWithUserPermissions((state) => ({
|
|
66
|
-
...state,
|
|
67
|
-
generalSectionLinks: authorizedGeneralSectionLinks,
|
|
68
|
-
pluginsSectionLinks: authorizedPluginSectionLinks,
|
|
69
|
-
isLoading: false,
|
|
70
|
-
}));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
applyMenuPermissions();
|
|
74
|
-
}, [
|
|
75
|
-
setMenuWithUserPermissions,
|
|
76
|
-
generalSectionLinksRef,
|
|
77
|
-
userPermissions,
|
|
78
|
-
menu,
|
|
79
|
-
permissions,
|
|
80
|
-
shouldUpdateStrapi,
|
|
81
|
-
]);
|
|
82
|
-
|
|
83
|
-
return menuWithUserPermissions;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export default useMenu;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { hasPermissions } from '@strapi/helper-plugin';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This function resolves an array of Promises<boolean>
|
|
5
|
-
* It puts at a specific index the status of a specific permission.
|
|
6
|
-
* While this might look weird, we then iterate on this array
|
|
7
|
-
* and check the different CT/ST/general/plugin sections
|
|
8
|
-
* and make an index based comparisons
|
|
9
|
-
*/
|
|
10
|
-
const checkPermissions = (userPermissions, permissionsToCheck) =>
|
|
11
|
-
permissionsToCheck.map(({ permissions }) => hasPermissions(userPermissions, permissions));
|
|
12
|
-
|
|
13
|
-
export default checkPermissions;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import cloneDeep from 'lodash/cloneDeep';
|
|
2
|
-
|
|
3
|
-
import checkPermissions from './checkPermissions';
|
|
4
|
-
|
|
5
|
-
const getGeneralLinks = async (userPermissions, generalSectionRawLinks, shouldUpdateStrapi) => {
|
|
6
|
-
const generalSectionPermissionsPromises = checkPermissions(
|
|
7
|
-
userPermissions,
|
|
8
|
-
generalSectionRawLinks
|
|
9
|
-
);
|
|
10
|
-
const generalSectionLinksPermissions = await Promise.all(generalSectionPermissionsPromises);
|
|
11
|
-
|
|
12
|
-
const authorizedGeneralSectionLinks = generalSectionRawLinks.filter(
|
|
13
|
-
(_, index) => generalSectionLinksPermissions[index]
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
const settingsLinkIndex = authorizedGeneralSectionLinks.findIndex(
|
|
17
|
-
(obj) => obj.to === '/settings'
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
if (settingsLinkIndex === -1) {
|
|
21
|
-
return [];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const authorizedGeneralLinksClone = cloneDeep(authorizedGeneralSectionLinks);
|
|
25
|
-
|
|
26
|
-
authorizedGeneralLinksClone[settingsLinkIndex].notificationsCount = shouldUpdateStrapi ? 1 : 0;
|
|
27
|
-
|
|
28
|
-
return authorizedGeneralLinksClone;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default getGeneralLinks;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import checkPermissions from './checkPermissions';
|
|
2
|
-
|
|
3
|
-
const getPluginSectionLinks = async (userPermissions, pluginsSectionRawLinks) => {
|
|
4
|
-
const pluginSectionPermissionsPromises = checkPermissions(
|
|
5
|
-
userPermissions,
|
|
6
|
-
pluginsSectionRawLinks
|
|
7
|
-
);
|
|
8
|
-
const pluginSectionLinksPermissions = await Promise.all(pluginSectionPermissionsPromises);
|
|
9
|
-
|
|
10
|
-
const authorizedPluginSectionLinks = pluginsSectionRawLinks.filter(
|
|
11
|
-
(_, index) => pluginSectionLinksPermissions[index]
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
return authorizedPluginSectionLinks;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default getPluginSectionLinks;
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2224],{63349:function(u,c,n){var t=n(5720),e=/^\s+/;function r(a){return a&&a.slice(0,t(a)+1).replace(e,"")}u.exports=r},5720:function(u){var c=/\s/;function n(t){for(var e=t.length;e--&&c.test(t.charAt(e)););return e}u.exports=n},51355:function(u,c,n){var t=n(94318),e=n(3387),r="[object Boolean]";function a(_){return _===!0||_===!1||e(_)&&t(_)==r}u.exports=a},95919:function(u,c,n){var t=n(80022);function e(r){return t(r)&&r!=+r}u.exports=e},80022:function(u,c,n){var t=n(94318),e=n(3387),r="[object Number]";function a(_){return typeof _=="number"||e(_)&&t(_)==r}u.exports=a},78746:function(u,c,n){var t=n(63349),e=n(85973),r=n(22945),a=0/0,_=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,v=/^0o[0-7]+$/i,m=parseInt;function g(o){if(typeof o=="number")return o;if(r(o))return a;if(e(o)){var h=typeof o.valueOf=="function"?o.valueOf():o;o=e(h)?h+"":h}if(typeof o!="string")return o===0?o:+o;o=t(o);var x=f.test(o);return x||v.test(o)?m(o.slice(2),x?2:8):_.test(o)?a:+o}u.exports=g},9435:function(u,c,n){"use strict";n.d(c,{U:function(){return x},y:function(){return o}});var t=n(74512),e=n(32735),r=n(8471),a=n(85612),_=n(37808),f=n(8365),v=n(84642),m=n(77981);const g=({theme:d,expanded:s,variant:l,disabled:E,error:p})=>p?`1px solid ${d.colors.danger600} !important`:E?`1px solid ${d.colors.neutral150}`:s?`1px solid ${d.colors.primary600}`:l==="primary"?`1px solid ${d.colors.neutral0}`:`1px solid ${d.colors.neutral100}`,o=(0,r.ZP)(f.Z)``,h=(0,r.ZP)(m.x)`
|
|
2
|
-
border: ${g};
|
|
3
|
-
|
|
4
|
-
&:hover:not([aria-disabled='true']) {
|
|
5
|
-
border: 1px solid ${({theme:d})=>d.colors.primary600};
|
|
6
|
-
|
|
7
|
-
${o} {
|
|
8
|
-
color: ${({theme:d,expanded:s})=>s?void 0:d.colors.primary700};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
${f.Z} {
|
|
12
|
-
color: ${({theme:d,expanded:s})=>s?void 0:d.colors.primary600};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
& > ${v.k} {
|
|
16
|
-
background: ${({theme:d})=>d.colors.primary100};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[data-strapi-dropdown='true'] {
|
|
20
|
-
background: ${({theme:d})=>d.colors.primary200};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
`,x=({children:d,disabled:s=!1,error:l,expanded:E=!1,hasErrorMessage:p=!0,id:D,onToggle:O,toggle:y,size:b="M",variant:j="primary",shadow:T})=>{const C=(0,_.M)(D),L=e.useMemo(()=>({expanded:E,onToggle:O,toggle:y,id:C,size:b,variant:j,disabled:s}),[s,E,C,O,b,y,j]);return(0,t.jsxs)(a.S.Provider,{value:L,children:[(0,t.jsx)(h,{"data-strapi-expanded":E,disabled:s,"aria-disabled":s,expanded:E,hasRadius:!0,variant:j,error:l,shadow:T,children:d}),l&&p&&(0,t.jsx)(m.x,{paddingTop:1,children:(0,t.jsx)(f.Z,{variant:"pi",textColor:"danger600",children:l})})]})}},79624:function(u,c,n){"use strict";n.d(c,{v:function(){return a}});var t=n(74512),e=n(85612),r=n(77981);const a=({children:_,...f})=>{const{expanded:v,id:m}=(0,e.A)();if(!v)return null;const g=`accordion-content-${m}`,o=`accordion-label-${m}`,h=`accordion-desc-${m}`;return(0,t.jsx)(r.x,{role:"region",id:g,"aria-labelledby":o,"aria-describedby":h,...f,children:_})}},85612:function(u,c,n){"use strict";n.d(c,{A:function(){return r},S:function(){return e}});var t=n(32735);const e=(0,t.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),r=()=>(0,t.useContext)(e)},9379:function(u,c,n){"use strict";n.d(c,{B:function(){return d}});var t=n(74512),e=n(91917),r=n(8471),a=n(9435),_=n(85612);const f=({expanded:s,disabled:l,variant:E})=>{let p="neutral100";return s?p="primary100":l?p="neutral150":E==="primary"&&(p="neutral0"),p};var v=n(43743),m=n(18129),g=n(84642),o=n(8365);const h=(0,r.ZP)(v.A)`
|
|
24
|
-
text-align: left;
|
|
25
|
-
|
|
26
|
-
// necessary to make the ellipsis prop work on the title
|
|
27
|
-
> span {
|
|
28
|
-
max-width: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
svg {
|
|
32
|
-
width: ${14/16}rem;
|
|
33
|
-
height: ${14/16}rem;
|
|
34
|
-
|
|
35
|
-
path {
|
|
36
|
-
fill: ${({theme:s,expanded:l})=>l?s.colors.primary600:s.colors.neutral500};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`,x=(0,r.ZP)(g.k)`
|
|
40
|
-
min-height: ${({theme:s,size:l})=>s.sizes.accordions[l]};
|
|
41
|
-
border-radius: ${({theme:s,expanded:l})=>l?`${s.borderRadius} ${s.borderRadius} 0 0`:s.borderRadius};
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
svg {
|
|
45
|
-
path {
|
|
46
|
-
fill: ${({theme:s})=>s.colors.primary600};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
`,d=({title:s,description:l,as:E="span",togglePosition:p="right",action:D,...O})=>{const{onToggle:y,toggle:b,expanded:j,id:T,size:C,variant:L,disabled:B}=(0,_.A)(),W=`accordion-content-${T}`,R=`accordion-label-${T}`,w=`accordion-desc-${T}`,I=C==="M"?6:4,$=C==="M"?I:I-2,Z=f({expanded:j,disabled:B,variant:L}),U={as:E,fontWeight:C==="S"?"bold":void 0,id:R,textColor:j?"primary600":"neutral700",ellipsis:!0,variant:C==="M"?"delta":void 0},K=j?"primary600":"neutral600",i=j?"primary200":"neutral200",M=C==="M"?`${32/16}rem`:`${24/16}rem`,P=()=>{B||(b&&!y?(console.warn('Deprecation warning: Usage of "toggle" prop in Accordion component is deprecated. This is discouraged and will be removed in the next major release. Please use "onToggle" instead'),b()):y&&y())},A=(0,t.jsx)(g.k,{justifyContent:"center",borderRadius:"50%",height:M,width:M,transform:j?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:i,cursor:B?"not-allowed":"pointer",onClick:P,shrink:0,children:(0,t.jsx)(m.J,{as:e.Z,width:C==="M"?`${11/16}rem`:`${8/16}rem`,color:j?"primary600":"neutral600"})});return(0,t.jsx)(x,{paddingBottom:$,paddingLeft:I,paddingRight:I,paddingTop:$,background:Z,expanded:j,size:C,justifyContent:"space-between",cursor:B?"not-allowed":"",children:(0,t.jsxs)(g.k,{gap:3,flex:1,maxWidth:"100%",children:[p==="left"&&A,(0,t.jsx)(h,{onClick:P,"aria-disabled":B,"aria-expanded":j,"aria-controls":W,"aria-labelledby":R,"data-strapi-accordion-toggle":!0,expanded:j,type:"button",flex:1,minWidth:0,...O,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.y,{...U,children:s}),l&&(0,t.jsx)(o.Z,{as:"p",id:w,textColor:K,children:l})]})}),p==="right"&&(0,t.jsxs)(g.k,{gap:3,children:[A,D]}),p==="left"&&D]})})}},41190:function(u,c,n){"use strict";n.d(c,{r:function(){return g}});var t=n(74512),e=n(32735),r=n(95441),a=n(8471),_=n(59619),f=n(42561),v=n(8365);const m=(0,a.ZP)(f.f)`
|
|
51
|
-
display: inline-flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
text-decoration: none;
|
|
54
|
-
gap: ${({theme:o})=>o.spaces[2]};
|
|
55
|
-
pointer-events: ${({disabled:o})=>o?"none":void 0};
|
|
56
|
-
|
|
57
|
-
svg {
|
|
58
|
-
font-size: ${10/16}rem;
|
|
59
|
-
|
|
60
|
-
path {
|
|
61
|
-
fill: ${({disabled:o,theme:h})=>o?h.colors.neutral600:h.colors.primary600};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:hover {
|
|
66
|
-
color: ${({theme:o})=>o.colors.primary500};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&:active {
|
|
70
|
-
color: ${({theme:o})=>o.colors.primary700};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
${_.BF};
|
|
74
|
-
`,g=e.forwardRef(({children:o,href:h,disabled:x=!1,startIcon:d,endIcon:s,isExternal:l=!0,...E},p)=>(0,t.jsxs)(m,{ref:p,href:h,disabled:x,isExternal:l,...E,children:[d,(0,t.jsx)(v.Z,{textColor:x?"neutral600":"primary600",children:o}),s,h&&!s&&l&&(0,t.jsx)(r.Z,{})]}));g.displayName="Link"},18318:function(u,c,n){"use strict";n.d(c,{VY:function(){return I},__:function(){return Z},ck:function(){return $},fC:function(){return R},fF:function(){return U},rl:function(){return S},tu:function(){return K},xz:function(){return w}});var t=n(74512),e=n(32735),r=n(5904),a=n(91917),_=n(51939),f=n(8471),v=n(92738),m=n(41190),g=n(91779),o=n(77981),h=n(84642),x=n(8365);const d=r.fC,s=(0,e.forwardRef)(({size:i,endIcon:M=(0,t.jsx)(a.Z,{width:`${6/16}rem`,height:`${4/16}rem`,"aria-hidden":!0}),...P},A)=>(0,t.jsx)(r.xz,{asChild:!0,children:(0,t.jsx)(g.z,{ref:A,type:"button",variant:"ghost",endIcon:M,paddingTop:i==="S"?1:2,paddingBottom:i==="S"?1:2,paddingLeft:i==="S"?3:4,paddingRight:i==="S"?3:4,...P})})),l=(0,e.forwardRef)(({children:i,intersectionId:M,popoverPlacement:P="bottom-start",...A},k)=>{const[F,N]=P.split("-");return(0,t.jsx)(r.Uv,{children:(0,t.jsx)(r.VY,{align:N,side:F,loop:!0,asChild:!0,children:(0,t.jsxs)(E,{ref:k,direction:"column",borderStyle:"solid",borderWidth:"1px",borderColor:"neutral150",hasRadius:!0,background:"neutral0",shadow:"filterShadow",maxHeight:"15rem",padding:1,alignItems:"flex-start",position:"relative",overflow:"auto",...A,children:[i,(0,t.jsx)(o.x,{id:M,width:"100%",height:"1px"})]})})})}),E=(0,f.ZP)(h.k)`
|
|
75
|
-
scrollbar-width: none;
|
|
76
|
-
-ms-overflow-style: none;
|
|
77
|
-
-webkit-overflow-scrolling: touch;
|
|
78
|
-
|
|
79
|
-
&::-webkit-scrollbar {
|
|
80
|
-
display: none;
|
|
81
|
-
}
|
|
82
|
-
`,p=({onSelect:i,disabled:M=!1,...P})=>(0,t.jsx)(r.ck,{asChild:!0,onSelect:i,disabled:M,children:P.isLink||P.isExternal?(0,t.jsx)(y,{color:"neutral800",...P,isExternal:P.isExternal??!1,children:(0,t.jsx)(x.Z,{children:P.children})}):(0,t.jsx)(O,{cursor:"pointer",color:"neutral800",background:"transparent",borderStyle:"none",...P,children:(0,t.jsx)(x.Z,{children:P.children})})}),D=({theme:i})=>(0,f.iv)`
|
|
83
|
-
text-align: left;
|
|
84
|
-
width: 100%;
|
|
85
|
-
border-radius: ${i.borderRadius};
|
|
86
|
-
padding: ${i.spaces[2]} ${i.spaces[4]};
|
|
87
|
-
|
|
88
|
-
${x.Z} {
|
|
89
|
-
color: inherit;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&[aria-disabled] {
|
|
93
|
-
cursor: not-allowed;
|
|
94
|
-
|
|
95
|
-
${x.Z} {
|
|
96
|
-
color: ${i.colors.neutral500};
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&[data-highlighted] {
|
|
101
|
-
background-color: ${i.colors.primary100};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&:focus-visible {
|
|
105
|
-
outline: none;
|
|
106
|
-
|
|
107
|
-
&:after {
|
|
108
|
-
content: none;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
`,O=(0,f.ZP)(h.k)`
|
|
112
|
-
${D}
|
|
113
|
-
`,y=(0,f.ZP)(m.r)`
|
|
114
|
-
/* We include this here again because typically when people use OptionLink they provide an as prop which cancels the Box props */
|
|
115
|
-
color: ${({theme:i,color:M})=>(0,v.$)(i.colors,M,void 0)};
|
|
116
|
-
text-decoration: none;
|
|
117
|
-
|
|
118
|
-
&:hover {
|
|
119
|
-
color: unset;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
svg > path,
|
|
123
|
-
&:focus-visible svg > path {
|
|
124
|
-
fill: currentColor;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
${D}
|
|
128
|
-
`,b=(0,e.forwardRef)((i,M)=>(0,t.jsx)(r.__,{asChild:!0,children:(0,t.jsx)(j,{ref:M,variant:"sigma",textColor:"neutral600",...i})})),j=(0,f.ZP)(x.Z)`
|
|
129
|
-
padding: ${({theme:i})=>i.spaces[2]} ${({theme:i})=>i.spaces[4]};
|
|
130
|
-
`,T=r.Tr,C=(0,e.forwardRef)(({disabled:i=!1,...M},P)=>(0,t.jsx)(r.fF,{asChild:!0,disabled:i,children:(0,t.jsxs)(L,{ref:P,color:"neutral800",as:"button",type:"button",background:"transparent",borderStyle:"none",gap:5,...M,children:[(0,t.jsx)(x.Z,{children:M.children}),(0,t.jsx)(B,{height:12,width:12})]})})),L=(0,f.ZP)(O)`
|
|
131
|
-
&[data-state='open'] {
|
|
132
|
-
background-color: ${({theme:i})=>i.colors.primary100};
|
|
133
|
-
}
|
|
134
|
-
`,B=(0,f.ZP)(_.Z)`
|
|
135
|
-
path {
|
|
136
|
-
fill: ${({theme:i})=>i.colors.neutral500};
|
|
137
|
-
}
|
|
138
|
-
`,W=(0,e.forwardRef)((i,M)=>(0,t.jsx)(r.Uv,{children:(0,t.jsx)(r.tu,{sideOffset:8,asChild:!0,children:(0,t.jsx)(E,{ref:M,direction:"column",borderStyle:"solid",borderWidth:"1px",borderColor:"neutral150",hasRadius:!0,background:"neutral0",shadow:"filterShadow",maxHeight:"15rem",padding:1,alignItems:"flex-start",overflow:"auto",...i})})})),R=d,w=s,I=l,$=p,Z=b,S=T,U=C,K=W},49086:function(u,c,n){"use strict";n.d(c,{sN:function(){return _}});var t=n(74512),e=n(32735),r=n(18318);const a=({children:f,onOpen:v,onClose:m,popoverPlacement:g,onReachEnd:o,...h})=>{const x=useRef(null),[d,s]=useState(!1),l=O=>{o&&o(O)},E=O=>{O&&typeof v=="function"?v():!O&&typeof m=="function"&&m(),s(O)},p=useId(),D=`intersection-${stripReactIdOfColon(p)}`;return useIntersection(x,l,{selectorToWatch:`#${D}`,skipWhen:!d}),jsxs(Root,{onOpenChange:E,children:[jsx(Trigger,{...h,children:h.label}),jsx(Content,{intersectionId:D,popoverPlacement:g,children:f})]})},_=r.ck},70788:function(u,c,n){"use strict";n.d(c,{Z:function(){return r}});var t=n(74512);const e=a=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,t.jsx)("path",{fill:"#212134",d:"M24 13.3a.2.2 0 0 1-.2.2H5.74l8.239 8.239a.2.2 0 0 1 0 .282L12.14 23.86a.2.2 0 0 1-.282 0L.14 12.14a.2.2 0 0 1 0-.282L11.86.14a.2.2 0 0 1 .282 0L13.98 1.98a.2.2 0 0 1 0 .282L5.74 10.5H23.8c.11 0 .2.09.2.2v2.6Z"})}),r=e},37405:function(u,c,n){"use strict";n.d(c,{Z:function(){return r}});var t=n(74512);const e=a=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,t.jsx)("path",{fill:"#212134",d:"M16.563 5.587a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,t.jsx)("path",{fill:"#212134",d:"M18.487 3.083c-.012.788-.487 1.513-1.229 1.797a1.954 1.954 0 0 1-2.184-.574A1.943 1.943 0 0 1 14.9 2.11c.4-.684 1.2-1.066 1.981-.927a1.954 1.954 0 0 1 1.606 1.9c.011.748 1.17.748 1.158 0A3.138 3.138 0 0 0 17.565.17c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.284 3.575.678 1.124 1.993 1.674 3.273 1.431 1.432-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.158-.006ZM16.563 14.372a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,t.jsx)("path",{fill:"#212134",d:"M18.487 11.867c-.012.789-.487 1.513-1.229 1.797a1.954 1.954 0 0 1-2.184-.574 1.943 1.943 0 0 1-.174-2.196c.4-.684 1.2-1.066 1.981-.927.928.156 1.588.968 1.606 1.9.011.748 1.17.748 1.158 0a3.138 3.138 0 0 0-2.08-2.914c-1.176-.423-2.567-.029-3.36.933-.83 1.002-.968 2.45-.284 3.575.678 1.124 1.993 1.675 3.273 1.431 1.432-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.158-.005ZM16.563 23.392a2.503 2.503 0 1 0 0-5.006 2.503 2.503 0 0 0 0 5.006Z"}),(0,t.jsx)("path",{fill:"#212134",d:"M18.487 20.89c-.012.787-.487 1.512-1.229 1.796a1.954 1.954 0 0 1-2.184-.574 1.943 1.943 0 0 1-.174-2.196c.4-.684 1.2-1.066 1.981-.927.928.156 1.588.967 1.606 1.9.011.748 1.17.748 1.158 0a3.138 3.138 0 0 0-2.08-2.914c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.284 3.575.678 1.124 1.993 1.674 3.273 1.431 1.432-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.158-.006ZM7.378 5.622a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,t.jsx)("path",{fill:"#212134",d:"M9.302 3.119c-.011.788-.486 1.512-1.228 1.796a1.954 1.954 0 0 1-2.185-.574 1.943 1.943 0 0 1-.173-2.196c.4-.684 1.199-1.066 1.981-.927a1.943 1.943 0 0 1 1.605 1.9c.012.748 1.17.748 1.16 0A3.138 3.138 0 0 0 8.38.205c-1.176-.423-2.567-.029-3.36.933-.83 1.002-.968 2.45-.285 3.575.678 1.124 1.994 1.675 3.274 1.431 1.431-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.159-.005ZM7.378 14.406a2.503 2.503 0 1 0 0-5.006 2.503 2.503 0 0 0 0 5.006Z"}),(0,t.jsx)("path",{fill:"#212134",d:"M9.302 11.902c-.011.788-.486 1.513-1.228 1.797a1.954 1.954 0 0 1-2.185-.574 1.943 1.943 0 0 1-.173-2.196c.4-.684 1.199-1.066 1.981-.927a1.943 1.943 0 0 1 1.605 1.9c.012.748 1.17.748 1.16 0A3.138 3.138 0 0 0 8.38 8.988c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.285 3.575.678 1.124 1.994 1.674 3.274 1.431 1.431-.272 2.428-1.593 2.451-3.019.012-.753-1.147-.753-1.159-.006ZM7.378 23.427a2.503 2.503 0 1 0 0-5.007 2.503 2.503 0 0 0 0 5.007Z"}),(0,t.jsx)("path",{fill:"#212134",d:"M9.302 20.924c-.011.788-.486 1.513-1.228 1.797a1.954 1.954 0 0 1-2.185-.574 1.943 1.943 0 0 1-.173-2.196c.4-.684 1.199-1.066 1.981-.927.933.156 1.594.967 1.605 1.9.012.748 1.17.748 1.16 0A3.139 3.139 0 0 0 8.38 18.01c-1.176-.423-2.567-.03-3.36.933-.83 1.002-.968 2.45-.285 3.569.678 1.124 1.994 1.675 3.274 1.431 1.431-.272 2.428-1.593 2.451-3.019.012-.747-1.147-.747-1.159 0Z"})]}),r=e},75322:function(u,c,n){"use strict";n.d(c,{Z:function(){return r}});var t=n(74512);const e=a=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:(0,t.jsx)("path",{fill:"#32324D",d:"M3.5 14.6a2.6 2.6 0 1 0 0-5.2 2.6 2.6 0 0 0 0 5.2Zm8.5 0a2.6 2.6 0 1 0 0-5.2 2.6 2.6 0 0 0 0 5.2Zm8.5 0a2.6 2.6 0 1 0 0-5.2 2.6 2.6 0 0 0 0 5.2Z"})}),r=e},3042:function(u,c,n){"use strict";n.d(c,{Z:function(){return r}});var t=n(74512);const e=a=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...a,children:[(0,t.jsx)("circle",{cx:12,cy:12,r:12,fill:"#212134"}),(0,t.jsx)("path",{fill:"#F6F6F9",d:"M17 12.569c0 .124-.1.224-.225.224h-3.981v3.982c0 .124-.101.225-.226.225h-1.136a.225.225 0 0 1-.226-.225v-3.981H7.226A.225.225 0 0 1 7 12.567v-1.136c0-.125.1-.226.225-.226h3.982V7.226c0-.124.1-.225.224-.225h1.138c.124 0 .224.1.224.225v3.982h3.982c.124 0 .225.1.225.224v1.138Z"})]}),r=e}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2379],{98866:function(E,e,t){"use strict";t.d(e,{q:function(){return l}});var s=t(32735),r=t(61489),o=t(20108);function l({enabled:d}={enabled:!0}){const{get:u}=(0,r.kY)(),{data:a,isError:M,isLoading:c}=(0,o.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:i}}=await u("/admin/license-limit-information");return i},{enabled:d}),n=s.useMemo(()=>a??{},[a]),D=s.useCallback(i=>(n?.features??[]).find(_=>_.name===i)?.options??{},[n?.features]);return{license:n,getFeature:D,isError:M,isLoading:c}}},42379:function(E,e,t){"use strict";t.r(e),t.d(e,{CreateActionEE:function(){return _}});var s=t(32735),r=t(84642),o=t(11349),l=t(18129),d=t(91779),u=t(42567),a=t(50720),M=t(36866),c=t.n(M),n=t(60216),D=t.n(n),i=t(67879),O=t(98866);const _=({onClick:f})=>{const{formatMessage:P}=(0,i.Z)(),{license:{permittedSeats:C,shouldStopCreate:m},isError:L,isLoading:A}=(0,O.q)();return L||A?null:s.createElement(r.k,{gap:2},!c()(C)&&m&&s.createElement(o.u,{description:P({id:"Settings.application.admin-seats.at-limit-tooltip",defaultMessage:"At limit: add seats to invite more users"}),position:"left"},s.createElement(l.J,{width:`${14/16}rem`,height:`${14/16}rem`,color:"danger500",as:u.Z})),s.createElement(d.z,{"data-testid":"create-user-button",onClick:f,startIcon:s.createElement(a.Z,null),size:"S",disabled:m},P({id:"Settings.permissions.users.create",defaultMessage:"Invite new user"})))};_.propTypes={onClick:D().func.isRequired}},36866:function(E){function e(t){return t==null}E.exports=e}}]);
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2421],{93994:function(v,a,t){var r=t(33795);function o(u,E){for(var h=-1,g=E.length,n=Array(g),s=u==null;++h<g;)n[h]=s?void 0:r(u,E[h]);return n}v.exports=o},88311:function(v,a,t){var r=t(93994),o=t(83368),u=o(r);v.exports=u},13272:function(v,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isSafari=a.isFirefox=void 0;var r=t(17611);const o=r.memoize(()=>/firefox/i.test(navigator.userAgent));a.isFirefox=o;const u=r.memoize(()=>Boolean(window.safari));a.isSafari=u},24284:function(v,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=t(17611);class o{enter(E){const h=this.entered.length,g=n=>this.isNodeInDocument(n)&&(!n.contains||n.contains(E));return this.entered=r.union(this.entered.filter(g),[E]),h===0&&this.entered.length>0}leave(E){const h=this.entered.length;return this.entered=r.without(this.entered.filter(this.isNodeInDocument),E),h>0&&this.entered.length===0}reset(){this.entered=[]}constructor(E){this.entered=[],this.isNodeInDocument=E}}a.EnterLeaveCounter=o},32022:function(v,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=t(24284),o=t(5782),u=t(54935),E=n(t(9689)),h=t(44444);function g(d,e,i){return e in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}function n(d){if(d&&d.__esModule)return d;var e={};if(d!=null){for(var i in d)if(Object.prototype.hasOwnProperty.call(d,i)){var c=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(d,i):{};c.get||c.set?Object.defineProperty(e,i,c):e[i]=d[i]}}return e.default=d,e}function s(d){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{},c=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),c.forEach(function(l){g(d,l,i[l])})}return d}class p{profile(){var e,i;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((i=this.dragOverTargetIds)===null||i===void 0?void 0:i.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var i;(i=this.window)===null||i===void 0||i.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,i,c){return this.sourcePreviewNodeOptions.set(e,c),this.sourcePreviewNodes.set(e,i),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,i,c){this.sourceNodes.set(e,i),this.sourceNodeOptions.set(e,c);const l=_=>this.handleDragStart(_,e),f=_=>this.handleSelectStart(_);return i.setAttribute("draggable","true"),i.addEventListener("dragstart",l),i.addEventListener("selectstart",f),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),i.removeEventListener("dragstart",l),i.removeEventListener("selectstart",f),i.setAttribute("draggable","false")}}connectDropTarget(e,i){const c=_=>this.handleDragEnter(_,e),l=_=>this.handleDragOver(_,e),f=_=>this.handleDrop(_,e);return i.addEventListener("dragenter",c),i.addEventListener("dragover",l),i.addEventListener("drop",f),()=>{i.removeEventListener("dragenter",c),i.removeEventListener("dragover",l),i.removeEventListener("drop",f)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),i=this.sourceNodeOptions.get(e);return s({dropEffect:this.altKeyPressed?"copy":"move"},i||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),i=this.sourcePreviewNodeOptions.get(e);return s({anchorX:.5,anchorY:.5,captureDraggingState:!1},i||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(E).some(i=>E[i]===e)}beginDragNativeItem(e,i){this.clearCurrentDragSourceNode(),this.currentNativeSource=u.createNativeDragSource(e,i),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const i=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var c;return(c=this.rootElement)===null||c===void 0?void 0:c.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},i)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,i){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(i))}handleDragEnter(e,i){this.dragEnterTargetIds.unshift(i)}handleDragOver(e,i){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(i)}handleDrop(e,i){this.dropTargetIds.unshift(i)}constructor(e,i,c){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=l=>{const f=this.sourceNodes.get(l);return f&&o.getNodeClientOffset(f)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=l=>Boolean(l&&this.document&&this.document.body&&this.document.body.contains(l)),this.endDragIfSourceWasRemovedFromDOM=()=>{const l=this.currentDragSourceNode;l==null||this.isNodeInDocument(l)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=l=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(l||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=l=>{if(l.defaultPrevented)return;const{dragStartSourceIds:f}=this;this.dragStartSourceIds=null;const _=o.getEventClientOffset(l);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(f||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:_});const{dataTransfer:m}=l,D=u.matchNativeItemType(m);if(this.monitor.isDragging()){if(m&&typeof m.setDragImage=="function"){const O=this.monitor.getSourceId(),T=this.sourceNodes.get(O),L=this.sourcePreviewNodes.get(O)||T;if(L){const{anchorX:N,anchorY:A,offsetX:C,offsetY:P}=this.getCurrentSourcePreviewNodeOptions(),R={anchorX:N,anchorY:A},x={offsetX:C,offsetY:P},M=o.getDragPreviewOffset(T,L,_,R,x);m.setDragImage(L,M.x,M.y)}}try{m?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(l.target);const{captureDraggingState:I}=this.getCurrentSourcePreviewNodeOptions();I?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(D)this.beginDragNativeItem(D);else{if(m&&!m.types&&(l.target&&!l.target.hasAttribute||!l.target.hasAttribute("draggable")))return;l.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=l=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var f;(f=this.currentNativeSource)===null||f===void 0||f.loadDataTransfer(l.dataTransfer)}if(!this.enterLeaveCounter.enter(l.target)||this.monitor.isDragging())return;const{dataTransfer:m}=l,D=u.matchNativeItemType(m);D&&this.beginDragNativeItem(D,m)},this.handleTopDragEnter=l=>{const{dragEnterTargetIds:f}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=l.altKey,f.length>0&&this.actions.hover(f,{clientOffset:o.getEventClientOffset(l)}),f.some(m=>this.monitor.canDropOnTarget(m))&&(l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=l=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var f;(f=this.currentNativeSource)===null||f===void 0||f.loadDataTransfer(l.dataTransfer)}},this.handleTopDragOver=l=>{const{dragOverTargetIds:f}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="none");return}this.altKeyPressed=l.altKey,this.lastClientOffset=o.getEventClientOffset(l),this.scheduleHover(f),(f||[]).some(m=>this.monitor.canDropOnTarget(m))?(l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?l.preventDefault():(l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=l=>{this.isDraggingNativeItem()&&l.preventDefault(),this.enterLeaveCounter.leave(l.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=l=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var f;l.preventDefault(),(f=this.currentNativeSource)===null||f===void 0||f.loadDataTransfer(l.dataTransfer)}else u.matchNativeItemType(l.dataTransfer)&&l.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=l=>{const{dropTargetIds:f}=this;this.dropTargetIds=[],this.actions.hover(f,{clientOffset:o.getEventClientOffset(l)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=l=>{const f=l.target;typeof f.dragDrop=="function"&&(f.tagName==="INPUT"||f.tagName==="SELECT"||f.tagName==="TEXTAREA"||f.isContentEditable||(l.preventDefault(),f.dragDrop()))},this.options=new h.OptionsReader(i,c),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new r.EnterLeaveCounter(this.isNodeInDocument)}}a.HTML5BackendImpl=p},80557:function(v,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t{interpolate(o){const{xs:u,ys:E,c1s:h,c2s:g,c3s:n}=this;let s=u.length-1;if(o===u[s])return E[s];let p=0,d=n.length-1,e;for(;p<=d;){e=Math.floor(.5*(p+d));const l=u[e];if(l<o)p=e+1;else if(l>o)d=e-1;else return E[e]}s=Math.max(0,d);const i=o-u[s],c=i*i;return E[s]+h[s]*i+g[s]*c+n[s]*i*c}constructor(o,u){const{length:E}=o,h=[];for(let f=0;f<E;f++)h.push(f);h.sort((f,_)=>o[f]<o[_]?-1:1);const g=[],n=[],s=[];let p,d;for(let f=0;f<E-1;f++)p=o[f+1]-o[f],d=u[f+1]-u[f],n.push(p),g.push(d),s.push(d/p);const e=[s[0]];for(let f=0;f<n.length-1;f++){const _=s[f],m=s[f+1];if(_*m<=0)e.push(0);else{p=n[f];const D=n[f+1],I=p+D;e.push(3*I/((I+D)/_+(I+p)/m))}}e.push(s[s.length-1]);const i=[],c=[];let l;for(let f=0;f<e.length-1;f++){l=s[f];const _=e[f],m=1/n[f],D=_+e[f+1]-l-l;i.push((l-_-D)*m),c.push(D*m*m)}this.xs=o,this.ys=u,this.c1s=e,this.c2s=i,this.c3s=c}}a.MonotonicInterpolant=t},81061:function(v,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(o=>{Object.defineProperty(this.item,o,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${o}" until the drop event.`),null}})})}loadDataTransfer(o){if(o){const u={};Object.keys(this.config.exposeProperties).forEach(E=>{const h=this.config.exposeProperties[E];h!=null&&(u[E]={value:h(o,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,u)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(o,u){return u===o.getSourceId()}endDrag(){}constructor(o){this.config=o,this.item={},this.initializeExposedProperties()}}a.NativeDragSource=t},17892:function(v,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getDataFromDataTransfer=t;function t(r,o,u){const E=o.reduce((h,g)=>h||r.getData(g),"");return E??u}},54935:function(v,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.createNativeDragSource=u,a.matchNativeItemType=E;var r=t(66826),o=t(81061);function u(h,g){const n=r.nativeTypesConfig[h];if(!n)throw new Error(`native type ${h} has no configuration`);const s=new o.NativeDragSource(n);return s.loadDataTransfer(g),s}function E(h){if(!h)return null;const g=Array.prototype.slice.call(h.types||[]);return Object.keys(r.nativeTypesConfig).filter(n=>{const s=r.nativeTypesConfig[n];return s?.matchesTypes?s.matchesTypes.some(p=>g.indexOf(p)>-1):!1})[0]||null}},66826:function(v,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.nativeTypesConfig=void 0;var r=u(t(9689)),o=t(17892);function u(h){if(h&&h.__esModule)return h;var g={};if(h!=null){for(var n in h)if(Object.prototype.hasOwnProperty.call(h,n)){var s=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(h,n):{};s.get||s.set?Object.defineProperty(g,n,s):g[n]=h[n]}}return g.default=h,g}const E={[r.FILE]:{exposeProperties:{files:h=>Array.prototype.slice.call(h.files),items:h=>h.items,dataTransfer:h=>h},matchesTypes:["Files"]},[r.HTML]:{exposeProperties:{html:(h,g)=>o.getDataFromDataTransfer(h,g,""),dataTransfer:h=>h},matchesTypes:["Html","text/html"]},[r.URL]:{exposeProperties:{urls:(h,g)=>o.getDataFromDataTransfer(h,g,"").split(`
|
|
2
|
-
`),dataTransfer:h=>h},matchesTypes:["Url","text/uri-list"]},[r.TEXT]:{exposeProperties:{text:(h,g)=>o.getDataFromDataTransfer(h,g,""),dataTransfer:h=>h},matchesTypes:["Text","text/plain"]}};a.nativeTypesConfig=E},9689:function(v,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.HTML=a.TEXT=a.URL=a.FILE=void 0;const t="__NATIVE_FILE__";a.FILE=t;const r="__NATIVE_URL__";a.URL=r;const o="__NATIVE_TEXT__";a.TEXT=o;const u="__NATIVE_HTML__";a.HTML=u},5782:function(v,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getNodeClientOffset=E,a.getEventClientOffset=h,a.getDragPreviewOffset=s;var r=t(13272),o=t(80557);const u=1;function E(p){const d=p.nodeType===u?p:p.parentElement;if(!d)return null;const{top:e,left:i}=d.getBoundingClientRect();return{x:i,y:e}}function h(p){return{x:p.clientX,y:p.clientY}}function g(p){var d;return p.nodeName==="IMG"&&(r.isFirefox()||!(!((d=document.documentElement)===null||d===void 0)&&d.contains(p)))}function n(p,d,e,i){let c=p?d.width:e,l=p?d.height:i;return r.isSafari()&&p&&(l/=window.devicePixelRatio,c/=window.devicePixelRatio),{dragPreviewWidth:c,dragPreviewHeight:l}}function s(p,d,e,i,c){const l=g(d),_=E(l?p:d),m={x:e.x-_.x,y:e.y-_.y},{offsetWidth:D,offsetHeight:I}=p,{anchorX:O,anchorY:T}=i,{dragPreviewWidth:L,dragPreviewHeight:N}=n(l,d,D,I),A=()=>{let S=new o.MonotonicInterpolant([0,.5,1],[m.y,m.y/I*N,m.y+N-I]).interpolate(T);return r.isSafari()&&l&&(S+=(window.devicePixelRatio-1)*N),S},C=()=>new o.MonotonicInterpolant([0,.5,1],[m.x,m.x/D*L,m.x+L-D]).interpolate(O),{offsetX:P,offsetY:R}=c,x=P===0||P,M=R===0||R;return{x:x?P:C(),y:M?R:A()}}},44444:function(v,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var o;return!((o=this.globalContext)===null||o===void 0)&&o.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var o;return((o=this.optionsArgs)===null||o===void 0?void 0:o.rootElement)||this.window}constructor(o,u){this.ownerDocument=null,this.globalContext=o,this.optionsArgs=u}}a.OptionsReader=t},15970:function(v,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getEmptyImage=r;let t;function r(){return t||(t=new Image,t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),t}},51968:function(v,a,t){"use strict";var r;r={value:!0},Object.defineProperty(a,"rX",{enumerable:!0,get:function(){return E.getEmptyImage}}),a.PD=r=void 0;var o=t(32022),u=h(t(9689)),E=t(15970);r=u;function h(n){if(n&&n.__esModule)return n;var s={};if(n!=null){for(var p in n)if(Object.prototype.hasOwnProperty.call(n,p)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(n,p):{};d.get||d.set?Object.defineProperty(s,p,d):s[p]=n[p]}}return s.default=n,s}const g=function(s,p,d){return new o.HTML5BackendImpl(s,p,d)};a.PD=g},17611:function(v,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.memoize=t,a.without=r,a.union=o;function t(u){let E=null;return()=>(E==null&&(E=u()),E)}function r(u,E){return u.filter(h=>h!==E)}function o(u,E){const h=new Set,g=s=>h.add(s);u.forEach(g),E.forEach(g);const n=[];return h.forEach(s=>n.push(s)),n}},39405:function(v,a,t){const r=t(33843),{MAX_LENGTH:o,MAX_SAFE_INTEGER:u}=t(88202),{safeRe:E,t:h}=t(90887),g=t(30156),{compareIdentifiers:n}=t(31630);class s{constructor(d,e){if(e=g(e),d instanceof s){if(d.loose===!!e.loose&&d.includePrerelease===!!e.includePrerelease)return d;d=d.version}else if(typeof d!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof d}".`);if(d.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",d,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const i=d.trim().match(e.loose?E[h.LOOSE]:E[h.FULL]);if(!i)throw new TypeError(`Invalid Version: ${d}`);if(this.raw=d,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){const l=+c;if(l>=0&&l<u)return l}return c}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(d){if(r("SemVer.compare",this.version,this.options,d),!(d instanceof s)){if(typeof d=="string"&&d===this.version)return 0;d=new s(d,this.options)}return d.version===this.version?0:this.compareMain(d)||this.comparePre(d)}compareMain(d){return d instanceof s||(d=new s(d,this.options)),n(this.major,d.major)||n(this.minor,d.minor)||n(this.patch,d.patch)}comparePre(d){if(d instanceof s||(d=new s(d,this.options)),this.prerelease.length&&!d.prerelease.length)return-1;if(!this.prerelease.length&&d.prerelease.length)return 1;if(!this.prerelease.length&&!d.prerelease.length)return 0;let e=0;do{const i=this.prerelease[e],c=d.prerelease[e];if(r("prerelease compare",e,i,c),i===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(i===void 0)return-1;if(i===c)continue;return n(i,c)}while(++e)}compareBuild(d){d instanceof s||(d=new s(d,this.options));let e=0;do{const i=this.build[e],c=d.build[e];if(r("prerelease compare",e,i,c),i===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(i===void 0)return-1;if(i===c)continue;return n(i,c)}while(++e)}inc(d,e,i){switch(d){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,i),this.inc("pre",e,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,i),this.inc("pre",e,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const c=Number(i)?1:0;if(!e&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[c];else{let l=this.prerelease.length;for(;--l>=0;)typeof this.prerelease[l]=="number"&&(this.prerelease[l]++,l=-2);if(l===-1){if(e===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(e){let l=[e,c];i===!1&&(l=[e]),n(this.prerelease[0],e)===0?isNaN(this.prerelease[1])&&(this.prerelease=l):this.prerelease=l}break}default:throw new Error(`invalid increment argument: ${d}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}v.exports=s},73308:function(v,a,t){const r=t(39405),o=(u,E,h)=>new r(u,h).compare(new r(E,h));v.exports=o},63433:function(v,a,t){const r=t(73308),o=(u,E,h)=>r(u,E,h)<0;v.exports=o},15497:function(v,a,t){const r=t(39405),o=(u,E,h=!1)=>{if(u instanceof r)return u;try{return new r(u,E)}catch(g){if(!h)return null;throw g}};v.exports=o},34512:function(v,a,t){const r=t(15497),o=(u,E)=>{const h=r(u,E);return h?h.version:null};v.exports=o},88202:function(v){const a="2.0.0",r=Number.MAX_SAFE_INTEGER||9007199254740991,o=16,u=256-6,E=["major","premajor","minor","preminor","patch","prepatch","prerelease"];v.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:r,RELEASE_TYPES:E,SEMVER_SPEC_VERSION:a,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},33843:function(v){const a=typeof process=="object"&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"http://localhost:1337",STRAPI_TELEMETRY_DISABLED:!1}&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"http://localhost:1337",STRAPI_TELEMETRY_DISABLED:!1}.NODE_DEBUG&&/\bsemver\b/i.test({ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"http://localhost:1337",STRAPI_TELEMETRY_DISABLED:!1}.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};v.exports=a},31630:function(v){const a=/^[0-9]+$/,t=(o,u)=>{const E=a.test(o),h=a.test(u);return E&&h&&(o=+o,u=+u),o===u?0:E&&!h?-1:h&&!E?1:o<u?-1:1},r=(o,u)=>t(u,o);v.exports={compareIdentifiers:t,rcompareIdentifiers:r}},30156:function(v){const a=Object.freeze({loose:!0}),t=Object.freeze({}),r=o=>o?typeof o!="object"?a:o:t;v.exports=r},90887:function(v,a,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:u}=t(88202),E=t(33843);a=v.exports={};const h=a.re=[],g=a.safeRe=[],n=a.src=[],s=a.t={};let p=0;const d="[a-zA-Z0-9-]",e=[["\\s",1],["\\d",u],[d,o]],i=l=>{for(const[f,_]of e)l=l.split(`${f}*`).join(`${f}{0,${_}}`).split(`${f}+`).join(`${f}{1,${_}}`);return l},c=(l,f,_)=>{const m=i(f),D=p++;E(l,D,f),s[l]=D,n[D]=f,h[D]=new RegExp(f,_?"g":void 0),g[D]=new RegExp(m,_?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","\\d+"),c("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),c("MAINVERSION",`(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${n[s.NUMERICIDENTIFIER]}|${n[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${n[s.NUMERICIDENTIFIERLOOSE]}|${n[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${n[s.PRERELEASEIDENTIFIER]}(?:\\.${n[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${n[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER",`${d}+`),c("BUILD",`(?:\\+(${n[s.BUILDIDENTIFIER]}(?:\\.${n[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${n[s.MAINVERSION]}${n[s.PRERELEASE]}?${n[s.BUILD]}?`),c("FULL",`^${n[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${n[s.MAINVERSIONLOOSE]}${n[s.PRERELEASELOOSE]}?${n[s.BUILD]}?`),c("LOOSE",`^${n[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${n[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${n[s.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:${n[s.PRERELEASE]})?${n[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:${n[s.PRERELEASELOOSE]})?${n[s.BUILD]}?)?)?`),c("XRANGE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",n[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${n[s.LONETILDE]}\\s+`,!0),a.tildeTrimReplace="$1~",c("TILDE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${n[s.LONECARET]}\\s+`,!0),a.caretTrimReplace="$1^",c("CARET",`^${n[s.LONECARET]}${n[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${n[s.LONECARET]}${n[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${n[s.GTLT]}\\s*(${n[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]}|${n[s.XRANGEPLAIN]})`,!0),a.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${n[s.XRANGEPLAIN]})\\s+-\\s+(${n[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${n[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},42561:function(v,a,t){"use strict";t.d(a,{f:function(){return E}});var r=t(74512),o=t(32735),u=t(77981);const E=o.forwardRef(({href:h,rel:g="noreferrer noopener",target:n="_self",disabled:s=!1,isExternal:p=!1,...d},e)=>(0,r.jsx)(u.x,{as:"a",ref:e,target:p?"_blank":n,rel:p?g:void 0,href:s?"#":h,"aria-disabled":s,cursor:"pointer",...d}));E.displayName="BaseLink"},27277:function(v,a,t){"use strict";t.d(a,{$:function(){return g}});var r=t(74512),o=t(8471),u=t(58634),E=t(84642);const h=(0,o.ZP)(E.k)`
|
|
3
|
-
width: ${({condensed:n})=>n?"max-content":`${224/16}rem`};
|
|
4
|
-
border-right: 1px solid ${({theme:n})=>n.colors.neutral150};
|
|
5
|
-
`,g=({condensed:n=!1,...s})=>(0,r.jsx)(u.f.Provider,{value:n,children:(0,r.jsx)(h,{alignItems:"normal",as:"nav",background:"neutral0",condensed:n,direction:"column",height:"100vh",position:"sticky",top:0,zIndex:2,...s})})},58634:function(v,a,t){"use strict";t.d(a,{S:function(){return u},f:function(){return o}});var r=t(32735);const o=(0,r.createContext)(!1),u=()=>(0,r.useContext)(o)},65213:function(v,a,t){"use strict";t.d(a,{D:function(){return i}});var r=t(74512),o=t(32735),u=t(8471),E=t(58634),h=t(42561),g=t(77981),n=t(99320),s=t(84642),p=t(8365);const d=u.ZP.div`
|
|
6
|
-
border-radius: ${({theme:c})=>c.borderRadius};
|
|
7
|
-
|
|
8
|
-
svg,
|
|
9
|
-
img {
|
|
10
|
-
height: ${({condensed:c})=>c?`${40/16}rem`:`${32/16}rem`};
|
|
11
|
-
width: ${({condensed:c})=>c?`${40/16}rem`:`${32/16}rem`};
|
|
12
|
-
}
|
|
13
|
-
`,e=(0,u.ZP)(h.f)`
|
|
14
|
-
text-decoration: unset;
|
|
15
|
-
color: inherit;
|
|
16
|
-
`,i=o.forwardRef(({workplace:c,title:l,icon:f,..._},m)=>{const D=(0,E.S)();return _.to=_?.to??"/",D?(0,r.jsx)(h.f,{ref:m,..._,children:(0,r.jsx)(g.x,{paddingLeft:3,paddingRight:3,paddingTop:4,paddingBottom:4,children:(0,r.jsxs)(d,{condensed:!0,children:[f,(0,r.jsxs)(n.T,{children:[(0,r.jsx)("span",{children:l}),(0,r.jsx)("span",{children:c})]})]})})}):(0,r.jsx)(e,{ref:m,..._,children:(0,r.jsx)(g.x,{paddingLeft:3,paddingRight:3,paddingTop:4,paddingBottom:4,children:(0,r.jsxs)(s.k,{children:[(0,r.jsx)(d,{"aria-hidden":!0,tabIndex:-1,children:f}),(0,r.jsxs)(g.x,{paddingLeft:2,children:[(0,r.jsxs)(p.Z,{fontWeight:"bold",textColor:"neutral800",as:"span",children:[l,(0,r.jsx)(n.T,{as:"span",children:c})]}),(0,r.jsx)(p.Z,{variant:"pi",as:"p",textColor:"neutral600","aria-hidden":!0,children:c})]})]})})})})},19546:function(v,a,t){"use strict";t.d(a,{w:function(){return d}});var r=t(74512),o=t(51939),u=t(40329),E=t(8471),h=t(58634),g=t(84642),n=t(18129),s=t(99320);const p=(0,E.ZP)(g.k).attrs(e=>({justifyContent:"center",...e}))`
|
|
17
|
-
background: ${({theme:e})=>e.colors.neutral0};
|
|
18
|
-
border: 1px solid ${({theme:e})=>e.colors.neutral150};
|
|
19
|
-
border-radius: ${({theme:e})=>e.borderRadius};
|
|
20
|
-
position: absolute;
|
|
21
|
-
bottom: ${(9+4)/16}rem; // 9 is the height of the svg and 4 is the padding below
|
|
22
|
-
right: ${({theme:e,condensed:i})=>i?0:e.spaces[5]};
|
|
23
|
-
transform: ${({condensed:e})=>e?"translateX(50%)":void 0};
|
|
24
|
-
z-index: 2;
|
|
25
|
-
width: ${18/16}rem;
|
|
26
|
-
height: ${25/16}rem;
|
|
27
|
-
|
|
28
|
-
svg {
|
|
29
|
-
width: ${6/16}rem;
|
|
30
|
-
height: ${9/16}rem;
|
|
31
|
-
}
|
|
32
|
-
`,d=({children:e,...i})=>{const c=(0,h.S)();return(0,r.jsxs)(p,{as:"button",condensed:c,...i,children:[(0,r.jsx)(n.J,{as:c?o.Z:u.Z,"aria-hidden":!0,color:"neutral600"}),(0,r.jsx)(s.T,{children:e})]})}},52242:function(v,a,t){"use strict";t.d(a,{q:function(){return u}});var r=t(74512),o=t(77981);const u=({children:E})=>(0,r.jsx)(o.x,{position:"relative",children:E})},14848:function(v,a,t){"use strict";t.d(a,{O:function(){return f}});var r=t(74512),o=t(32735),u=t(8471),E=t(58634),h=t(77981),g=t(42561),n=t(8365),s=t(84642),p=t(14298),d=t(11349);const e=(0,u.ZP)(h.x)`
|
|
33
|
-
svg {
|
|
34
|
-
width: 1rem;
|
|
35
|
-
height: 1rem;
|
|
36
|
-
}
|
|
37
|
-
`,i=(0,u.ZP)(g.f)`
|
|
38
|
-
position: relative;
|
|
39
|
-
text-decoration: none;
|
|
40
|
-
display: block;
|
|
41
|
-
border-radius: ${({theme:_})=>_.borderRadius};
|
|
42
|
-
background: ${({theme:_})=>_.colors.neutral0};
|
|
43
|
-
|
|
44
|
-
${n.Z} {
|
|
45
|
-
color: ${({theme:_})=>_.colors.neutral600};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
svg path {
|
|
49
|
-
fill: ${({theme:_})=>_.colors.neutral500};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:hover {
|
|
53
|
-
background: ${({theme:_})=>_.colors.neutral100};
|
|
54
|
-
|
|
55
|
-
${n.Z} {
|
|
56
|
-
color: ${({theme:_})=>_.colors.neutral700};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
svg path {
|
|
60
|
-
fill: ${({theme:_})=>_.colors.neutral600};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.active {
|
|
65
|
-
background: ${({theme:_})=>_.colors.primary100};
|
|
66
|
-
|
|
67
|
-
svg path {
|
|
68
|
-
fill: ${({theme:_})=>_.colors.primary600};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
${n.Z} {
|
|
72
|
-
color: ${({theme:_})=>_.colors.primary600};
|
|
73
|
-
font-weight: 500;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
`,c=(0,u.ZP)(s.k)`
|
|
77
|
-
padding: ${({theme:_})=>`${_.spaces[2]} ${_.spaces[3]}`};
|
|
78
|
-
`,l=(0,u.ZP)(p.C)`
|
|
79
|
-
${({theme:_,condensed:m})=>m&&`
|
|
80
|
-
position: absolute;
|
|
81
|
-
// Values based on visual aspect
|
|
82
|
-
top: -${_.spaces[3]};
|
|
83
|
-
right: -${_.spaces[1]};
|
|
84
|
-
`}
|
|
85
|
-
|
|
86
|
-
${n.Z} {
|
|
87
|
-
//find a solution to remove !important
|
|
88
|
-
color: ${({theme:_})=>_.colors.neutral0} !important;
|
|
89
|
-
line-height: 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
display: flex;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
align-items: center;
|
|
95
|
-
min-width: ${({theme:_})=>_.spaces[6]};
|
|
96
|
-
height: ${({theme:_})=>_.spaces[5]};
|
|
97
|
-
padding: ${({theme:_})=>`0 ${_.spaces[2]}`};
|
|
98
|
-
border-radius: ${({theme:_})=>_.spaces[10]};
|
|
99
|
-
background: ${({theme:_})=>_.colors.primary600};
|
|
100
|
-
`,f=o.forwardRef(({children:_,icon:m,badgeContent:D,badgeAriaLabel:I,...O},T)=>(0,E.S)()?(0,r.jsx)(i,{ref:T,...O,children:(0,r.jsx)(d.u,{position:"right",label:_,children:(0,r.jsxs)(c,{as:"span",justifyContent:"center",children:[(0,r.jsx)(e,{"aria-hidden":!0,paddingRight:0,as:"span",children:m}),D&&(0,r.jsx)(l,{condensed:!0,"aria-label":I,children:D})]})})}):(0,r.jsx)(i,{ref:T,...O,children:(0,r.jsxs)(c,{as:"span",justifyContent:"space-between",children:[(0,r.jsxs)(s.k,{children:[(0,r.jsx)(e,{"aria-hidden":!0,paddingRight:3,as:"span",children:m}),(0,r.jsx)(n.Z,{children:_})]}),D&&(0,r.jsx)(l,{justifyContent:"center","aria-label":I,children:D})]})}))},17681:function(v,a,t){"use strict";t.d(a,{y:function(){return p}});var r=t(74512),o=t(32735),u=t(58634),E=t(84642),h=t(77981),g=t(2775),n=t(99320),s=t(8365);const p=({label:d,children:e,horizontal:i=!1,spacing:c=2,...l})=>(0,u.S)()?(0,r.jsxs)(E.k,{direction:"column",alignItems:"stretch",gap:2,children:[(0,r.jsxs)(h.x,{paddingTop:1,paddingBottom:1,background:"neutral0",hasRadius:!0,as:"span",children:[(0,r.jsx)(g.i,{}),(0,r.jsx)(n.T,{children:(0,r.jsx)("span",{children:d})})]}),(0,r.jsx)(E.k,{as:"ul",gap:c,direction:i?"row":"column",alignItems:i?"center":"stretch",...l,children:o.Children.map(e,(_,m)=>(0,r.jsx)("li",{children:_},m))})]}):(0,r.jsxs)(E.k,{direction:"column",alignItems:"stretch",gap:2,children:[(0,r.jsx)(h.x,{paddingTop:1,paddingBottom:1,background:"neutral0",paddingRight:3,paddingLeft:3,hasRadius:!0,as:"span",children:(0,r.jsx)(s.Z,{variant:"sigma",textColor:"neutral600",children:d})}),(0,r.jsx)(E.k,{as:"ul",gap:c,direction:i?"row":"column",alignItems:i?"center":"stretch",...l,children:o.Children.map(e,(_,m)=>(0,r.jsx)("li",{children:_},m))})]})},42203:function(v,a,t){"use strict";t.d(a,{_:function(){return n}});var r=t(74512),o=t(32735),u=t(8471),E=t(77981),h=t(84642);const g=(0,u.ZP)(E.x)`
|
|
101
|
-
flex-grow: 1;
|
|
102
|
-
overflow-y: auto;
|
|
103
|
-
`,n=({children:s,spacing:p=4,horizontal:d=!1,...e})=>(0,r.jsx)(g,{paddingLeft:3,paddingRight:2,paddingTop:3,paddingBottom:8,children:(0,r.jsx)(h.k,{as:"ul",gap:p,direction:d?"row":"column",alignItems:d?"center":"stretch",...e,children:o.Children.map(s,(i,c)=>(0,r.jsx)("li",{children:i},c))})})},86267:function(v,a,t){"use strict";t.d(a,{r:function(){return e}});var r=t(74512),o=t(32735),u=t(8471),E=t(58634),h=t(77981),g=t(84642),n=t(246),s=t(99320),p=t(8365);const d=(0,u.ZP)(h.x)`
|
|
104
|
-
border-top: 1px solid ${({theme:i})=>i.colors.neutral150};
|
|
105
|
-
`,e=o.forwardRef(({src:i,children:c,initials:l,...f},_)=>{const m=(0,E.S)();return(0,r.jsx)(d,{paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5,...f,children:(0,r.jsxs)(g.k,{as:"button",justifyContent:m?"center":void 0,ref:_,children:[i?(0,r.jsx)(n.q,{src:i,alt:"","aria-hidden":!0}):(0,r.jsx)(n.L,{children:l}),m?(0,r.jsx)(s.T,{children:(0,r.jsx)("span",{children:c})}):(0,r.jsx)(h.x,{width:`${130/16}rem`,paddingLeft:2,as:"span",children:(0,r.jsx)(p.Z,{ellipsis:!0,textColor:"neutral600",children:c})})]})})})},19999:function(v,a,t){"use strict";t.d(a,{Z:function(){return u}});var r=t(74512);const o=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M13 21v2.5l-3-2-3 2V21h-.5A3.5 3.5 0 0 1 3 17.5V5a3 3 0 0 1 3-3h14a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-7Zm-6-2v-2h6v2h6v-3H6.5a1.5 1.5 0 1 0 0 3H7ZM7 5v2h2V5H7Zm0 3v2h2V8H7Zm0 3v2h2v-2H7Z"})}),u=o},32880:function(v,a,t){"use strict";t.d(a,{Z:function(){return u}});var r=t(74512);const o=E=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:[(0,r.jsx)("path",{fill:"#212134",d:"M11.987 23.036v-.964H1.876V1.876h10.111V0H0v24h11.987v-.964Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M8 11.2c0-.11.09-.2.2-.2h11.973l-5.445-5.445a.2.2 0 0 1 0-.283l1.13-1.13a.2.2 0 0 1 .283 0l7.718 7.717a.2.2 0 0 1 0 .282L16.14 19.86a.2.2 0 0 1-.282 0l-1.13-1.13a.2.2 0 0 1 0-.284L20.172 13H8.2a.2.2 0 0 1-.2-.2v-1.6Z"})]}),u=o},18981:function(v,a,t){"use strict";t.d(a,{Z:function(){return u}});var r=t(74512);const o=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M6.455 19 2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455ZM7 10v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Z"})}),u=o},39544:function(v,a,t){"use strict";t.d(a,{Z:function(){return u}});var r=t(74512);const o=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.53-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685Z"})}),u=o},58518:function(v,a,t){"use strict";t.d(a,{Z:function(){return u}});var r=t(74512);const o=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 8 8",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M2 .93c0-.4.45-.63.78-.41l4.6 3.06c.3.2.3.64 0 .84l-4.6 3.06A.5.5 0 0 1 2 7.07V.93Z"})}),u=o},47372:function(v,a,t){"use strict";t.d(a,{Z:function(){return u}});var r=t(74512);const o=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 15 14",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M5.08 4.1c0-1.19 1.18-2.17 2.42-2.17s2.43.98 2.43 2.17c0 1.1-.56 1.61-1.31 2.28l-.03.03c-.75.65-1.66 1.47-1.66 3.09a.57.57 0 1 0 1.15 0c0-1.08.55-1.6 1.3-2.26l.02-.02c.75-.66 1.67-1.48 1.67-3.12C11.07 2.13 9.22.78 7.5.78 5.78.78 3.93 2.13 3.93 4.1a.57.57 0 1 0 1.15 0Zm2.42 9.26a.88.88 0 1 0 0-1.75.88.88 0 0 0 0 1.75Z"})}),u=o},22356:function(v,a,t){"use strict";t.d(a,{Z:function(){return u}});var r=t(74512);const o=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M23.707.297A1 1 0 0 0 23 .004h-2a13.907 13.907 0 0 0-5.38 1.077 1 1 0 0 0-.615.923V4.92a.035.035 0 0 1-.022.038l-2-1.47a1 1 0 0 0-1.265.052A14 14 0 0 0 7 14.004v1.585l-2.707 2.707a1 1 0 1 0 1.415 1.415l2.707-2.708H10a14.014 14.014 0 0 0 14-14v-2a1 1 0 0 0-.293-.706ZM18 23.999H3a3 3 0 0 1-3-3V6A3 3 0 0 1 3 3h3a1 1 0 1 1 0 2H3a1 1 0 0 0-1 1v15a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-3a1 1 0 1 1 2 0v3a3 3 0 0 1-3 3Z",clipRule:"evenodd"})}),u=o}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2801],{86519:function(_,e,t){"use strict";t.d(e,{a:function(){return m}});var n=t(32735),a=t(61489),o=t(36866),r=t.n(o),d=t(67879),f=t(53038),u=t(98866);const c="strapi-notification-seat-limit",L="https://cloud.strapi.io/profile/billing",l="https://strapi.io/billing/request-seats",m=()=>{const{formatMessage:i}=(0,d.Z)(),{license:M,isError:E,isLoading:D}=(0,u.q)(),T=(0,a.lm)(),{pathname:O}=(0,f.TH)(),{enforcementUserCount:C,permittedSeats:I,licenseLimitStatus:s,isHostedOnStrapiCloud:P}=M;n.useEffect(()=>{if(E||D)return;const A=!r()(I)&&!window.sessionStorage.getItem(`${c}-${O}`)&&(s==="AT_LIMIT"||s==="OVER_LIMIT");let g;s==="OVER_LIMIT"?g="warning":s==="AT_LIMIT"&&(g="softWarning"),A&&T({type:g,message:i({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:s}),title:i({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:s,enforcementUserCount:C,permittedSeats:I}),link:{url:P?L:l,label:i({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:P})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${c}-${O}`,"true")}})},[T,M,O,i,D,I,s,C,P,E])}},98866:function(_,e,t){"use strict";t.d(e,{q:function(){return r}});var n=t(32735),a=t(61489),o=t(20108);function r({enabled:d}={enabled:!0}){const{get:f}=(0,a.kY)(),{data:u,isError:c,isLoading:L}=(0,o.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:i}}=await f("/admin/license-limit-information");return i},{enabled:d}),l=n.useMemo(()=>u??{},[u]),m=n.useCallback(i=>(l?.features??[]).find(E=>E.name===i)?.options??{},[l?.features]);return{license:l,getFeature:m,isError:c,isLoading:L}}},12801:function(_,e,t){"use strict";t.r(e),t.d(e,{UserListPageEE:function(){return r}});var n=t(32735),a=t(99528),o=t(86519);function r(){return(0,o.a)(),n.createElement(a.W,null)}},36866:function(_){function e(t){return t==null}_.exports=e}}]);
|