@strapi/admin 4.12.6 → 4.13.0-alpha.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.
Files changed (211) hide show
  1. package/admin/src/StrapiApp.js +1 -1
  2. package/admin/src/components/AuthenticatedApp/index.js +118 -0
  3. package/admin/src/components/AuthenticatedApp/utils/api.js +85 -0
  4. package/admin/src/components/AuthenticatedApp/utils/checkLatestStrapiVersion.js +11 -0
  5. package/admin/src/components/GuidedTour/Modal/index.js +3 -1
  6. package/admin/src/components/NpsSurvey/hooks/useNpsSurveySettings.js +17 -0
  7. package/admin/src/components/NpsSurvey/index.js +365 -0
  8. package/admin/src/components/PluginsInitializer/index.js +68 -0
  9. package/admin/src/components/PluginsInitializer/init.js +11 -0
  10. package/admin/src/components/PluginsInitializer/reducer.js +22 -0
  11. package/admin/src/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/getTableColumns.js +2 -0
  12. package/admin/src/content-manager/components/DynamicZone/components/DynamicZoneLabel.js +1 -1
  13. package/admin/src/content-manager/components/EditViewDataManagerProvider/reducer.js +8 -1
  14. package/admin/src/content-manager/components/Filter/CustomInputs/AdminUsersFilter.js +42 -0
  15. package/admin/src/content-manager/components/Filter/Filter.js +54 -0
  16. package/admin/src/content-manager/components/Filter/index.js +1 -0
  17. package/admin/src/content-manager/components/InputUID/index.js +222 -216
  18. package/admin/src/content-manager/components/RelationInput/RelationInput.js +4 -0
  19. package/admin/src/content-manager/components/RepeatableComponent/index.js +32 -2
  20. package/admin/src/content-manager/components/Wysiwyg/Editor.js +432 -68
  21. package/admin/src/content-manager/components/Wysiwyg/WysiwygStyles.js +0 -7
  22. package/admin/src/content-manager/components/Wysiwyg/index.js +147 -152
  23. package/admin/src/content-manager/hooks/useAllowedAttributes.js +47 -0
  24. package/admin/src/content-manager/pages/App/index.js +16 -5
  25. package/admin/src/content-manager/pages/EditView/Information/index.js +9 -8
  26. package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +40 -7
  27. package/admin/src/content-manager/pages/ListSettingsView/index.js +6 -2
  28. package/admin/src/content-manager/pages/ListView/components/BulkActionButtons/SelectedEntriesModal/index.js +2 -2
  29. package/admin/src/content-manager/pages/ListView/components/FieldPicker/index.js +67 -69
  30. package/admin/src/content-manager/pages/ListView/components/TableRows/index.js +1 -1
  31. package/admin/src/content-manager/pages/ListView/components/ViewSettingsMenu/index.js +80 -0
  32. package/admin/src/content-manager/pages/ListView/index.js +236 -67
  33. package/admin/src/content-manager/utils/getDisplayName.js +33 -0
  34. package/admin/src/content-manager/utils/index.js +1 -0
  35. package/admin/src/hooks/useSettingsForm/index.js +3 -14
  36. package/admin/src/hooks/useSettingsMenu/index.js +2 -2
  37. package/admin/src/hooks/useSettingsMenu/utils/formatLinks.js +3 -1
  38. package/admin/src/hooks/useSettingsMenu/utils/sortLinks.js +3 -1
  39. package/admin/src/index.js +1 -1
  40. package/admin/src/layouts/AppLayout/index.js +33 -0
  41. package/admin/src/pages/Admin/Onboarding/index.js +3 -1
  42. package/admin/src/pages/Admin/index.js +73 -77
  43. package/admin/src/pages/App/constants.js +1 -1
  44. package/admin/src/pages/App/index.js +122 -160
  45. package/admin/src/pages/AuthPage/components/Register/index.js +5 -0
  46. package/admin/src/pages/AuthPage/index.js +4 -2
  47. package/admin/src/pages/HomePage/index.js +3 -1
  48. package/admin/src/pages/InstalledPluginsPage/index.js +3 -1
  49. package/admin/src/pages/{InternalErrorPage.js → InternalErrorPage/index.js} +4 -3
  50. package/admin/src/pages/{NotFoundPage.js → NotFoundPage/index.js} +3 -1
  51. package/admin/src/pages/ProfilePage/index.js +4 -2
  52. package/admin/src/pages/SettingsPage/constants.js +132 -67
  53. package/admin/src/pages/SettingsPage/index.js +18 -23
  54. package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +1 -1
  55. package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/index.js +1 -1
  56. package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +1 -2
  57. package/admin/src/pages/SettingsPage/pages/Users/ListPage/DynamicTable/TableRows/index.js +1 -1
  58. package/admin/src/pages/UseCasePage/index.js +175 -0
  59. package/admin/src/plugins.js +7 -8
  60. package/admin/src/translations/en.json +10 -1
  61. package/admin/src/utils/checkFormValidity.js +15 -0
  62. package/admin/src/utils/createRoute.js +7 -5
  63. package/admin/src/utils/formatAPIErrors.js +3 -1
  64. package/admin/src/utils/getAttributesToDisplay.js +19 -0
  65. package/admin/src/utils/getExistingActions.js +32 -0
  66. package/admin/src/utils/getFullName.js +1 -1
  67. package/admin/src/utils/index.js +9 -0
  68. package/admin/src/utils/makeUniqueRoutes.js +6 -0
  69. package/admin/src/utils/sortLinks.js +3 -1
  70. package/admin/src/utils/uniqueAdminHash.js +9 -2
  71. package/build/{1049.9d69d231.chunk.js → 1049.ec69f5e0.chunk.js} +1 -1
  72. package/build/1227.9f37e1dc.chunk.js +1 -0
  73. package/build/1386.ea73b677.chunk.js +7 -0
  74. package/build/{2225.33287e1b.chunk.js → 2225.649fb7bc.chunk.js} +2 -2
  75. package/build/{2237.03792b63.chunk.js → 2237.b832ae6e.chunk.js} +4 -4
  76. package/build/{2379.401f56f3.chunk.js → 2379.1f98a31a.chunk.js} +1 -1
  77. package/build/{2395.e6a79fbb.chunk.js → 2395.0e5e8ded.chunk.js} +1 -1
  78. package/build/{2801.31393ffe.chunk.js → 2801.8e1aa82a.chunk.js} +1 -1
  79. package/build/3483.19381b40.chunk.js +1 -0
  80. package/build/3739.63e352f1.chunk.js +103 -0
  81. package/build/4174.f1f39e40.chunk.js +1 -0
  82. package/build/448.829e1344.chunk.js +1 -0
  83. package/build/4546.a5946d22.chunk.js +1 -0
  84. package/build/4724.aea5c8c1.chunk.js +6 -0
  85. package/build/{502.8dd074ff.chunk.js → 502.7bba43b1.chunk.js} +1 -1
  86. package/build/6158.c3c13c20.chunk.js +1 -0
  87. package/build/6691.4985ef22.chunk.js +105 -0
  88. package/build/{7464.592a9295.chunk.js → 7464.eb057bec.chunk.js} +1 -1
  89. package/build/78.dcc6df5c.chunk.js +1 -0
  90. package/build/{8276.e519a707.chunk.js → 8276.be3ed581.chunk.js} +2 -2
  91. package/build/{2747.d1442a90.chunk.js → 9806.5d5a0e8d.chunk.js} +64 -72
  92. package/build/9944.7af075a5.chunk.js +26 -0
  93. package/build/Admin-authenticatedApp.43b6ec9a.chunk.js +79 -0
  94. package/build/Admin_InternalErrorPage.38155af3.chunk.js +1 -0
  95. package/build/Admin_homePage.6f128523.chunk.js +81 -0
  96. package/build/Admin_marketplace.061a6e5a.chunk.js +55 -0
  97. package/build/Admin_pluginsPage.16f837b8.chunk.js +6 -0
  98. package/build/Admin_profilePage.678bce24.chunk.js +13 -0
  99. package/build/Admin_settingsPage.af7309e4.chunk.js +111 -0
  100. package/build/{Upload_ConfigureTheView.345ac1e0.chunk.js → Upload_ConfigureTheView.3fc1c100.chunk.js} +1 -1
  101. package/build/admin-app.d63bd229.chunk.js +36 -0
  102. package/build/{admin-edit-roles-page.24bdf746.chunk.js → admin-edit-roles-page.38a6c863.chunk.js} +3 -3
  103. package/build/admin-edit-users.545fc882.chunk.js +10 -0
  104. package/build/{admin-roles-list.23ddff26.chunk.js → admin-roles-list.1e2e814d.chunk.js} +1 -1
  105. package/build/admin-users.b8ea5677.chunk.js +11 -0
  106. package/build/{api-tokens-create-page.46c2ea84.chunk.js → api-tokens-create-page.e0c15627.chunk.js} +1 -1
  107. package/build/{api-tokens-edit-page.58139df9.chunk.js → api-tokens-edit-page.9f2dce47.chunk.js} +1 -1
  108. package/build/{api-tokens-list-page.0af7d431.chunk.js → api-tokens-list-page.d747051c.chunk.js} +2 -2
  109. package/build/{audit-logs-settings-page.0f73ccf8.chunk.js → audit-logs-settings-page.96f9d608.chunk.js} +1 -1
  110. package/build/content-manager.ccff1078.chunk.js +1097 -0
  111. package/build/{content-type-builder-list-view.bf9be456.chunk.js → content-type-builder-list-view.b71cf240.chunk.js} +1 -1
  112. package/build/{content-type-builder.66066281.chunk.js → content-type-builder.e5669749.chunk.js} +18 -18
  113. package/build/{email-settings-page.2f7e35c0.chunk.js → email-settings-page.2809f0bf.chunk.js} +1 -1
  114. package/build/en-json.e12fd5fc.chunk.js +1 -0
  115. package/build/{i18n-settings-page.47f78016.chunk.js → i18n-settings-page.5f716172.chunk.js} +1 -1
  116. package/build/index.html +1 -1
  117. package/build/main.c6c9e04c.js +2859 -0
  118. package/build/{review-workflows-settings-create-view.d24a32b9.chunk.js → review-workflows-settings-create-view.4a156a19.chunk.js} +1 -1
  119. package/build/{review-workflows-settings-edit-view.6044b022.chunk.js → review-workflows-settings-edit-view.ce984d1f.chunk.js} +1 -1
  120. package/build/{review-workflows-settings-list-view.3f0ef4bc.chunk.js → review-workflows-settings-list-view.419b8deb.chunk.js} +2 -2
  121. package/build/runtime~main.dcf1cb45.js +2 -0
  122. package/build/{sso-settings-page.4dba0670.chunk.js → sso-settings-page.45153df5.chunk.js} +1 -1
  123. package/build/{transfer-tokens-create-page.1597e6ab.chunk.js → transfer-tokens-create-page.ebba16d8.chunk.js} +1 -1
  124. package/build/{transfer-tokens-edit-page.8741529f.chunk.js → transfer-tokens-edit-page.d7bb2b3e.chunk.js} +1 -1
  125. package/build/{transfer-tokens-list-page.d6986b03.chunk.js → transfer-tokens-list-page.cfe1736c.chunk.js} +2 -2
  126. package/build/{upload-settings.7f93d4c0.chunk.js → upload-settings.cc5ad813.chunk.js} +1 -1
  127. package/build/{upload.37488080.chunk.js → upload.756efc28.chunk.js} +1 -1
  128. package/build/{users-advanced-settings-page.17052d72.chunk.js → users-advanced-settings-page.818d84eb.chunk.js} +1 -1
  129. package/build/{users-email-settings-page.3de8ea50.chunk.js → users-email-settings-page.c1967c09.chunk.js} +1 -1
  130. package/build/{users-providers-settings-page.0eaa916d.chunk.js → users-providers-settings-page.11893e08.chunk.js} +1 -1
  131. package/build/{users-roles-settings-page.957ad48b.chunk.js → users-roles-settings-page.2b051e6a.chunk.js} +1 -1
  132. package/build/webhook-edit-page.de45c635.chunk.js +33 -0
  133. package/build/{webhook-list-page.65e1b5bb.chunk.js → webhook-list-page.ca91df8b.chunk.js} +1 -1
  134. package/ee/admin/content-manager/components/Filter/CustomInputs/ReviewWorkflows/AssigneeFilter.js +42 -0
  135. package/ee/admin/content-manager/components/Filter/CustomInputs/ReviewWorkflows/StageFilter.js +70 -0
  136. package/ee/admin/content-manager/components/Filter/CustomInputs/ReviewWorkflows/constants.js +71 -0
  137. package/ee/admin/content-manager/pages/EditView/InformationBox/InformationBoxEE.js +9 -217
  138. package/ee/admin/content-manager/pages/EditView/InformationBox/components/AssigneeSelect/AssigneeSelect.js +147 -0
  139. package/ee/admin/content-manager/pages/EditView/InformationBox/components/AssigneeSelect/index.js +1 -0
  140. package/ee/admin/content-manager/pages/EditView/InformationBox/components/StageSelect/StageSelect.js +243 -0
  141. package/ee/admin/content-manager/pages/EditView/InformationBox/components/StageSelect/index.js +1 -0
  142. package/ee/admin/content-manager/pages/EditView/InformationBox/constants.js +2 -0
  143. package/ee/admin/content-manager/pages/ListSettingsView/constants.js +7 -0
  144. package/ee/admin/content-manager/pages/ListView/ReviewWorkflowsColumn/ReviewWorkflowsAssigneeEE.js +21 -0
  145. package/ee/admin/content-manager/pages/ListView/ReviewWorkflowsColumn/constants.js +44 -17
  146. package/ee/admin/content-manager/pages/ListView/ReviewWorkflowsColumn/index.js +1 -0
  147. package/ee/admin/pages/App/constants.js +5 -6
  148. package/ee/admin/pages/SettingsPage/constants.js +42 -27
  149. package/ee/server/constants/workflows.js +1 -0
  150. package/ee/server/controllers/index.js +1 -0
  151. package/ee/server/controllers/workflows/assignees/index.js +44 -0
  152. package/ee/server/routes/review-workflows.js +17 -0
  153. package/ee/server/services/index.js +1 -0
  154. package/ee/server/services/review-workflows/assignees.js +54 -0
  155. package/ee/server/services/review-workflows/metrics/index.js +5 -0
  156. package/ee/server/services/review-workflows/review-workflows.js +20 -11
  157. package/ee/server/validation/review-workflows.js +8 -0
  158. package/index.js +2 -6
  159. package/package.json +9 -9
  160. package/scripts/build.js +15 -15
  161. package/scripts/create-dev-plugins-file.js +5 -38
  162. package/server/controllers/role.js +2 -0
  163. package/server/controllers/user.js +2 -0
  164. package/server/services/permission/permissions-manager/index.js +3 -1
  165. package/server/services/permission/permissions-manager/sanitize.js +19 -7
  166. package/server/services/permission/permissions-manager/validate.js +218 -0
  167. package/utils/create-cache-dir.js +62 -16
  168. package/utils/create-plugins-exclude-path.js +3 -23
  169. package/utils/get-plugins.js +110 -0
  170. package/utils/index.js +1 -1
  171. package/webpack.config.js +10 -13
  172. package/admin/src/components/AuthenticatedApp.js +0 -229
  173. package/admin/src/content-manager/components/AttributeFilter/Filters.js +0 -58
  174. package/admin/src/content-manager/components/AttributeFilter/hooks/useAllowedAttributes.js +0 -42
  175. package/admin/src/content-manager/components/AttributeFilter/index.js +0 -40
  176. package/admin/src/content-manager/components/Wysiwyg/EditorStylesContainer.js +0 -344
  177. package/admin/src/pages/UseCasePage.js +0 -174
  178. package/build/2166.c837469a.chunk.js +0 -1
  179. package/build/3483.8517171f.chunk.js +0 -1
  180. package/build/3984.dda474f7.chunk.js +0 -1
  181. package/build/4546.7a3c0d03.chunk.js +0 -1
  182. package/build/5483.5bfbb00d.chunk.js +0 -6
  183. package/build/6158.c974fd83.chunk.js +0 -1
  184. package/build/748.fd2e5afd.chunk.js +0 -105
  185. package/build/773.6381d62d.chunk.js +0 -18
  186. package/build/7826.399afe81.chunk.js +0 -103
  187. package/build/8261.2525d35c.chunk.js +0 -7
  188. package/build/8299.62b67c72.chunk.js +0 -1
  189. package/build/Admin-AuthPage.90d64342.chunk.js +0 -35
  190. package/build/Admin-AuthenticatedApp.379ac945.chunk.js +0 -24
  191. package/build/Admin-UseCasePage.1f757db5.chunk.js +0 -13
  192. package/build/Admin_GuidedTourModal.8ccf1fbc.chunk.js +0 -12
  193. package/build/Admin_InternalErrorPage.9de92c6d.chunk.js +0 -9
  194. package/build/Admin_NotFoundPage.21620424.chunk.js +0 -9
  195. package/build/Admin_Onboarding.dbfa32f6.chunk.js +0 -43
  196. package/build/Admin_homePage.2000cbe9.chunk.js +0 -86
  197. package/build/Admin_marketplace.ec80e29b.chunk.js +0 -63
  198. package/build/Admin_pluginsPage.0c6851f8.chunk.js +0 -14
  199. package/build/Admin_profilePage.78cd8495.chunk.js +0 -21
  200. package/build/Admin_settingsPage.1760c3ce.chunk.js +0 -119
  201. package/build/StrapiApp.221fac30.chunk.js +0 -5
  202. package/build/admin-edit-users.5d10d444.chunk.js +0 -10
  203. package/build/admin-users.2b3e4305.chunk.js +0 -11
  204. package/build/content-manager.fb0833bd.chunk.js +0 -1099
  205. package/build/en-json.08c05fcf.chunk.js +0 -1
  206. package/build/main.ee3c1938.js +0 -2859
  207. package/build/runtime~main.397ee447.js +0 -2
  208. package/build/webhook-edit-page.665210af.chunk.js +0 -33
  209. package/scripts/create-plugins-file.js +0 -92
  210. package/utils/get-plugins-path.js +0 -41
  211. /package/server/services/permission/permissions-manager/{query-builers.js → query-builders.js} +0 -0
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
-
3
- import PropTypes from 'prop-types';
4
- import { useIntl } from 'react-intl';
5
-
6
- import Filters from './Filters';
7
- import useAllowedAttributes from './hooks/useAllowedAttributes';
8
-
9
- const AttributeFilter = ({ contentType, slug, metadatas }) => {
10
- const { formatMessage } = useIntl();
11
- const allowedAttributes = useAllowedAttributes(contentType, slug);
12
- const displayedFilters = allowedAttributes.map((name) => {
13
- const attribute = contentType.attributes[name];
14
- const { type, enum: options } = attribute;
15
-
16
- const trackedEvent = {
17
- name: 'didFilterEntries',
18
- properties: { useRelation: type === 'relation' },
19
- };
20
-
21
- const { mainField, label } = metadatas[name].list;
22
-
23
- return {
24
- name,
25
- metadatas: { label: formatMessage({ id: label, defaultMessage: label }) },
26
- fieldSchema: { type, options, mainField },
27
- trackedEvent,
28
- };
29
- });
30
-
31
- return <Filters displayedFilters={displayedFilters} />;
32
- };
33
-
34
- AttributeFilter.propTypes = {
35
- contentType: PropTypes.object.isRequired,
36
- metadatas: PropTypes.object.isRequired,
37
- slug: PropTypes.string.isRequired,
38
- };
39
-
40
- export default AttributeFilter;
@@ -1,344 +0,0 @@
1
- import styled from 'styled-components';
2
-
3
- /* eslint-disable */
4
- /* stylelint-disable */
5
- export const EditorStylesContainer = styled.div`
6
- cursor: ${({ disabled }) => (disabled ? 'not-allowed !important' : 'auto')};
7
- height: 100%;
8
- /* BASICS */
9
- .CodeMirror-placeholder {
10
- color: ${({ theme }) => theme.colors.neutral600} !important;
11
- }
12
-
13
- .CodeMirror {
14
- /* Set height, width, borders, and global font properties here */
15
- font-size: ${14 / 16}rem;
16
- height: ${({ isExpandMode }) => (isExpandMode ? '100%' : '290px')};
17
- color: ${({ theme }) => theme.colors.neutral800};
18
- direction: ltr;
19
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
20
- 'Open Sans', 'Helvetica Neue', sans-serif;
21
- }
22
-
23
- /* PADDING */
24
-
25
- .CodeMirror-lines {
26
- padding: ${({ theme }) => `${theme.spaces[3]} ${theme.spaces[4]}`};
27
- /* Vertical padding around content */
28
- }
29
-
30
- .CodeMirror-scrollbar-filler,
31
- .CodeMirror-gutter-filler {
32
- /* The little square between H and V scrollbars */
33
- background-color: ${({ theme }) => `${theme.colors.neutral0}`};
34
- }
35
-
36
- /* GUTTER */
37
-
38
- .CodeMirror-gutters {
39
- border-right: 1px solid #ddd;
40
- background-color: #f7f7f7;
41
- white-space: nowrap;
42
- }
43
- .CodeMirror-linenumbers {
44
- }
45
- .CodeMirror-linenumber {
46
- padding: 0 3px 0 5px;
47
- min-width: 20px;
48
- text-align: right;
49
- color: #999;
50
- white-space: nowrap;
51
- }
52
-
53
- .CodeMirror-guttermarker {
54
- color: black;
55
- }
56
- .CodeMirror-guttermarker-subtle {
57
- color: #999;
58
- }
59
-
60
- /* CURSOR */
61
-
62
- .CodeMirror-cursor {
63
- border-left: 1px solid black;
64
- border-right: none;
65
- width: 0;
66
- }
67
- /* Shown when moving in bi-directional text */
68
- .CodeMirror div.CodeMirror-secondarycursor {
69
- border-left: 1px solid silver;
70
- }
71
- .cm-fat-cursor .CodeMirror-cursor {
72
- width: auto;
73
- border: 0 !important;
74
- background: #7e7;
75
- }
76
- .cm-fat-cursor div.CodeMirror-cursors {
77
- /* z-index: 1; */
78
- }
79
-
80
- .cm-fat-cursor-mark {
81
- background-color: rgba(20, 255, 20, 0.5);
82
- -webkit-animation: blink 1.06s steps(1) infinite;
83
- -moz-animation: blink 1.06s steps(1) infinite;
84
- animation: blink 1.06s steps(1) infinite;
85
- }
86
- .cm-animate-fat-cursor {
87
- width: auto;
88
- border: 0;
89
- -webkit-animation: blink 1.06s steps(1) infinite;
90
- -moz-animation: blink 1.06s steps(1) infinite;
91
- animation: blink 1.06s steps(1) infinite;
92
- background-color: #7e7;
93
- }
94
-
95
- /* Can style cursor different in overwrite (non-insert) mode */
96
- .CodeMirror-overwrite .CodeMirror-cursor {
97
- }
98
-
99
- .cm-tab {
100
- display: inline-block;
101
- text-decoration: inherit;
102
- }
103
-
104
- .CodeMirror-rulers {
105
- position: absolute;
106
- left: 0;
107
- right: 0;
108
- top: -50px;
109
- bottom: 0;
110
- overflow: hidden;
111
- }
112
- .CodeMirror-ruler {
113
- border-left: 1px solid #ccc;
114
- top: 0;
115
- bottom: 0;
116
- position: absolute;
117
- }
118
-
119
- /* DEFAULT THEME */
120
-
121
- .cm-header,
122
- .cm-strong {
123
- font-weight: bold;
124
- }
125
- .cm-em {
126
- font-style: italic;
127
- }
128
- .cm-link {
129
- text-decoration: underline;
130
- }
131
- .cm-strikethrough {
132
- text-decoration: line-through;
133
- }
134
-
135
- .CodeMirror-composing {
136
- border-bottom: 2px solid;
137
- }
138
-
139
- /* Default styles for common addons */
140
-
141
- div.CodeMirror span.CodeMirror-matchingbracket {
142
- color: #0b0;
143
- }
144
- div.CodeMirror span.CodeMirror-nonmatchingbracket {
145
- color: #a22;
146
- }
147
- .CodeMirror-matchingtag {
148
- background: rgba(255, 150, 0, 0.3);
149
- }
150
- .CodeMirror-activeline-background {
151
- background: #e8f2ff;
152
- }
153
-
154
- /* STOP */
155
-
156
- /* The rest of this file contains styles related to the mechanics of
157
- the editor. You probably shouldn't touch them. */
158
-
159
- .CodeMirror {
160
- position: relative;
161
- overflow: hidden;
162
- background: ${({ theme }) => `${theme.colors.neutral0}`};
163
- }
164
-
165
- .CodeMirror-scroll {
166
- overflow: scroll !important; /* Things will break if this is overridden */
167
- /* 50px is the magic margin used to hide the element's real scrollbars */
168
- /* See overflow: hidden in .CodeMirror */
169
- margin-bottom: -50px;
170
- margin-right: -50px;
171
- padding-bottom: 50px;
172
- height: 100%;
173
- outline: none; /* Prevent dragging from highlighting the element */
174
- position: relative;
175
- }
176
- .CodeMirror-sizer {
177
- position: relative;
178
- border-right: 50px solid transparent;
179
- }
180
-
181
- /* The fake, visible scrollbars. Used to force redraw during scrolling
182
- before actual scrolling happens, thus preventing shaking and
183
- flickering artifacts. */
184
- .CodeMirror-vscrollbar,
185
- .CodeMirror-hscrollbar,
186
- .CodeMirror-scrollbar-filler,
187
- .CodeMirror-gutter-filler {
188
- position: absolute;
189
- z-index: 1;
190
- display: none;
191
- outline: none;
192
- }
193
-
194
- .CodeMirror-vscrollbar {
195
- right: 0;
196
- top: 0;
197
- overflow-x: hidden;
198
- overflow-y: scroll;
199
- }
200
- .CodeMirror-hscrollbar {
201
- bottom: 0;
202
- left: 0;
203
- overflow-y: hidden;
204
- overflow-x: scroll;
205
- }
206
- .CodeMirror-scrollbar-filler {
207
- right: 0;
208
- bottom: 0;
209
- }
210
-
211
- .CodeMirror-lines {
212
- cursor: text;
213
- min-height: 1px; /* prevents collapsing before first draw */
214
- }
215
- /* Reset some styles that the rest of the page might have set */
216
- .CodeMirror pre.CodeMirror-line,
217
- .CodeMirror pre.CodeMirror-line-like {
218
- -moz-border-radius: 0;
219
- -webkit-border-radius: 0;
220
- border-radius: 0;
221
- border-width: 0;
222
- background: transparent;
223
- font-family: inherit;
224
- font-size: inherit;
225
- margin: 0;
226
- white-space: pre;
227
- word-wrap: normal;
228
- line-height: 1.5;
229
- color: inherit;
230
- /* z-index: 2; */
231
- position: relative;
232
- overflow: visible;
233
- -webkit-tap-highlight-color: transparent;
234
- -webkit-font-variant-ligatures: contextual;
235
- font-variant-ligatures: contextual;
236
- }
237
-
238
- .CodeMirror pre.CodeMirror-line-like {
239
- z-index: 2;
240
- }
241
-
242
- .CodeMirror-wrap pre.CodeMirror-line,
243
- .CodeMirror-wrap pre.CodeMirror-line-like {
244
- word-wrap: break-word;
245
- white-space: pre-wrap;
246
- word-break: normal;
247
- }
248
-
249
- .CodeMirror-linebackground {
250
- position: absolute;
251
- left: 0;
252
- right: 0;
253
- top: 0;
254
- bottom: 0;
255
- z-index: 0;
256
- }
257
-
258
- .CodeMirror-linewidget {
259
- position: relative;
260
- /* z-index: 2; */
261
- padding: 0.1px; /* Force widget margins to stay inside of the container */
262
- }
263
-
264
- .CodeMirror-widget {
265
- }
266
-
267
- .CodeMirror-rtl pre {
268
- direction: rtl;
269
- }
270
-
271
- .CodeMirror-code {
272
- outline: none;
273
- }
274
-
275
- /* Force content-box sizing for the elements where we expect it */
276
- .CodeMirror-scroll,
277
- .CodeMirror-sizer,
278
- .CodeMirror-gutter,
279
- .CodeMirror-gutters,
280
- .CodeMirror-linenumber {
281
- -moz-box-sizing: content-box;
282
- box-sizing: content-box;
283
- }
284
-
285
- .CodeMirror-measure {
286
- position: absolute;
287
- width: 100%;
288
- height: 0;
289
- overflow: hidden;
290
- visibility: hidden;
291
- }
292
-
293
- .CodeMirror-cursor {
294
- position: absolute;
295
- pointer-events: none;
296
- border-color: ${({ theme }) => `${theme.colors.neutral800}`};
297
- }
298
- .CodeMirror-measure pre {
299
- position: static;
300
- }
301
-
302
- div.CodeMirror-cursors {
303
- visibility: hidden;
304
- position: relative;
305
- + div {
306
- z-index: 0 !important;
307
- }
308
- }
309
-
310
- div.CodeMirror-dragcursors {
311
- visibility: visible;
312
- }
313
-
314
- .CodeMirror-focused div.CodeMirror-cursors {
315
- visibility: visible;
316
- }
317
-
318
- .CodeMirror-selected {
319
- background: ${({ theme }) => theme.colors.neutral200};
320
- /* z-index: -10; */
321
- }
322
- .CodeMirror-crosshair {
323
- cursor: crosshair;
324
- }
325
-
326
- /* Used to force a border model for a node */
327
- .cm-force-border {
328
- padding-right: 0.1px;
329
- }
330
-
331
- /* See issue #2901 */
332
- .cm-tab-wrap-hack:after {
333
- content: '';
334
- }
335
-
336
- /* Help users use markselection to safely style text background */
337
- span.CodeMirror-selectedtext {
338
- background: none;
339
- }
340
-
341
- span {
342
- color: ${({ theme }) => theme.colors.neutral800} !important;
343
- }
344
- `;
@@ -1,174 +0,0 @@
1
- import * as React from 'react';
2
-
3
- import {
4
- Button,
5
- Flex,
6
- Main,
7
- Option,
8
- Select,
9
- TextButton,
10
- TextInput,
11
- Typography,
12
- } from '@strapi/design-system';
13
- import { auth, useNotification } from '@strapi/helper-plugin';
14
- import { parse } from 'qs';
15
- import { useIntl } from 'react-intl';
16
- import { useHistory } from 'react-router-dom';
17
-
18
- import Logo from '../components/UnauthenticatedLogo';
19
- import UnauthenticatedLayout, { LayoutContent } from '../layouts/UnauthenticatedLayout';
20
-
21
- export const options = [
22
- {
23
- intlLabel: {
24
- id: 'Usecase.front-end',
25
- defaultMessage: 'Front-end developer',
26
- },
27
- value: 'front_end_developer',
28
- },
29
- {
30
- intlLabel: {
31
- id: 'Usecase.back-end',
32
- defaultMessage: 'Back-end developer',
33
- },
34
- value: 'back_end_developer',
35
- },
36
- {
37
- intlLabel: {
38
- id: 'Usecase.full-stack',
39
- defaultMessage: 'Full-stack developer',
40
- },
41
- value: 'full_stack_developer',
42
- },
43
- {
44
- intlLabel: {
45
- id: 'global.content-manager',
46
- defaultMessage: 'Content Manager',
47
- },
48
- value: 'content_manager',
49
- },
50
- {
51
- intlLabel: {
52
- id: 'Usecase.content-creator',
53
- defaultMessage: 'Content Creator',
54
- },
55
- value: 'content_creator',
56
- },
57
- {
58
- intlLabel: {
59
- id: 'Usecase.other',
60
- defaultMessage: 'Other',
61
- },
62
- value: 'other',
63
- },
64
- ];
65
-
66
- export const UseCasePage = () => {
67
- const toggleNotification = useNotification();
68
- const { push, location } = useHistory();
69
- const { formatMessage } = useIntl();
70
- const [role, setRole] = React.useState();
71
- const [otherRole, setOtherRole] = React.useState('');
72
-
73
- const { firstname, email } = auth.getUserInfo();
74
- const { hasAdmin } = parse(location?.search, { ignoreQueryPrefix: true });
75
-
76
- const handleSubmit = async (event) => {
77
- event.preventDefault();
78
-
79
- const shouldSkip = event.nativeEvent?.submitter?.name === 'skip';
80
-
81
- await fetch('https://analytics.strapi.io/register', {
82
- body: JSON.stringify({
83
- email,
84
- username: firstname,
85
- firstAdmin: Boolean(!hasAdmin),
86
- persona: {
87
- role: shouldSkip ? undefined : role,
88
- otherRole: shouldSkip ? undefined : otherRole,
89
- },
90
- }),
91
-
92
- headers: {
93
- 'Content-Type': 'application/json',
94
- },
95
-
96
- method: 'POST',
97
- });
98
-
99
- toggleNotification({
100
- type: 'success',
101
- message: {
102
- id: 'Usecase.notification.success.project-created',
103
- defaultMessage: 'Project has been successfully created',
104
- },
105
- });
106
-
107
- push('/');
108
- };
109
-
110
- return (
111
- <UnauthenticatedLayout>
112
- <Main labelledBy="usecase-title">
113
- <form onSubmit={handleSubmit}>
114
- <LayoutContent>
115
- <Flex direction="column" alignItems="stretch" gap={7}>
116
- <Flex direction="column" gap={6}>
117
- <Logo />
118
-
119
- <Typography textAlign="center" variant="alpha" as="h1" id="usecase-title">
120
- {formatMessage({
121
- id: 'Usecase.title',
122
- defaultMessage: 'Tell us a bit more about yourself',
123
- })}
124
- </Typography>
125
- </Flex>
126
-
127
- <Flex direction="column" alignItems="stretch" gap={6}>
128
- <Select
129
- id="usecase"
130
- data-testid="usecase"
131
- label={formatMessage({
132
- id: 'Usecase.input.work-type',
133
- defaultMessage: 'What type of work do you do?',
134
- })}
135
- onChange={setRole}
136
- value={role}
137
- >
138
- {options.map(({ intlLabel, value }) => (
139
- <Option key={value} value={value}>
140
- {formatMessage(intlLabel)}
141
- </Option>
142
- ))}
143
- </Select>
144
-
145
- {role === 'other' && (
146
- <TextInput
147
- name="other"
148
- label={formatMessage({ id: 'Usecase.other', defaultMessage: 'Other' })}
149
- value={otherRole}
150
- onChange={(e) => setOtherRole(e.target.value)}
151
- data-testid="other"
152
- />
153
- )}
154
-
155
- <Button type="submit" size="L" fullWidth disabled={!role}>
156
- {formatMessage({ id: 'global.finish', defaultMessage: 'Finish' })}
157
- </Button>
158
- </Flex>
159
- </Flex>
160
- </LayoutContent>
161
-
162
- <Flex justifyContent="center" paddingTop={4}>
163
- <TextButton type="submit" name="skip">
164
- {formatMessage({
165
- id: 'Usecase.button.skip',
166
- defaultMessage: 'Skip this question',
167
- })}
168
- </TextButton>
169
- </Flex>
170
- </form>
171
- </Main>
172
- </UnauthenticatedLayout>
173
- );
174
- };
@@ -1 +0,0 @@
1
- (self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2166],{56671:function(v,m,e){var r=e(35897),l=e(74741),a=l(r);v.exports=a},52920:function(v,m,e){var r=e(56671),l=e(81580);function a(u,s){var d=-1,i=l(u)?Array(u.length):[];return r(u,function(p,x,b){i[++d]=s(p,x,b)}),i}v.exports=a},50690:function(v,m,e){var r=e(26460),l=e(80166),a=e(88904),u=e(52920),s=e(36024),d=e(76535),i=e(1397),p=e(15362),x=e(77236);function b(o,n,t){n.length?n=r(n,function(f){return x(f)?function(w){return l(w,f.length===1?f[0]:f)}:f}):n=[p];var c=-1;n=r(n,d(a));var E=u(o,function(f,w,h){var g=r(n,function(y){return y(f)});return{criteria:g,index:++c,value:f}});return s(E,function(f,w){return i(f,w,t)})}v.exports=b},36024:function(v){function m(e,r){var l=e.length;for(e.sort(r);l--;)e[l]=e[l].value;return e}v.exports=m},40709:function(v,m,e){var r=e(22945);function l(a,u){if(a!==u){var s=a!==void 0,d=a===null,i=a===a,p=r(a),x=u!==void 0,b=u===null,o=u===u,n=r(u);if(!b&&!n&&!p&&a>u||p&&x&&o&&!b&&!n||d&&x&&o||!s&&o||!i)return 1;if(!d&&!p&&!n&&a<u||n&&s&&i&&!d&&!p||b&&s&&i||!x&&i||!o)return-1}return 0}v.exports=l},1397:function(v,m,e){var r=e(40709);function l(a,u,s){for(var d=-1,i=a.criteria,p=u.criteria,x=i.length,b=s.length;++d<x;){var o=r(i[d],p[d]);if(o){if(d>=b)return o;var n=s[d];return o*(n=="desc"?-1:1)}}return a.index-u.index}v.exports=l},74741:function(v,m,e){var r=e(81580);function l(a,u){return function(s,d){if(s==null)return s;if(!r(s))return a(s,d);for(var i=s.length,p=u?i:-1,x=Object(s);(u?p--:++p<i)&&d(x[p],p,x)!==!1;);return s}}v.exports=l},98978:function(v,m,e){var r=e(40314),l=e(50690),a=e(94569),u=e(63108),s=a(function(d,i){if(d==null)return[];var p=i.length;return p>1&&u(d,i[0],i[1])?i=[]:p>2&&u(i[0],i[1],i[2])&&(i=[i[0]]),l(d,r(i,1),[])});v.exports=s},98178:function(v,m,e){"use strict";e.d(m,{P1:function(){return x}});var r="NOT_FOUND";function l(o){var n;return{get:function(c){return n&&o(n.key,c)?n.value:r},put:function(c,E){n={key:c,value:E}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}}function a(o,n){var t=[];function c(h){var g=t.findIndex(function(O){return n(h,O.key)});if(g>-1){var y=t[g];return g>0&&(t.splice(g,1),t.unshift(y)),y.value}return r}function E(h,g){c(h)===r&&(t.unshift({key:h,value:g}),t.length>o&&t.pop())}function f(){return t}function w(){t=[]}return{get:c,put:E,getEntries:f,clear:w}}var u=function(n,t){return n===t};function s(o){return function(t,c){if(t===null||c===null||t.length!==c.length)return!1;for(var E=t.length,f=0;f<E;f++)if(!o(t[f],c[f]))return!1;return!0}}function d(o,n){var t=typeof n=="object"?n:{equalityCheck:n},c=t.equalityCheck,E=c===void 0?u:c,f=t.maxSize,w=f===void 0?1:f,h=t.resultEqualityCheck,g=s(E),y=w===1?l(g):a(w,g);function O(){var C=y.get(arguments);if(C===r){if(C=o.apply(null,arguments),h){var j=y.getEntries(),A=j.find(function(M){return h(M.value,C)});A&&(C=A.value)}y.put(arguments,C)}return C}return O.clearCache=function(){return y.clear()},O}function i(o){var n=Array.isArray(o[0])?o[0]:o;if(!n.every(function(c){return typeof c=="function"})){var t=n.map(function(c){return typeof c=="function"?"function "+(c.name||"unnamed")+"()":typeof c}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t+"]")}return n}function p(o){for(var n=arguments.length,t=new Array(n>1?n-1:0),c=1;c<n;c++)t[c-1]=arguments[c];var E=function(){for(var w=arguments.length,h=new Array(w),g=0;g<w;g++)h[g]=arguments[g];var y=0,O,C={memoizeOptions:void 0},j=h.pop();if(typeof j=="object"&&(C=j,j=h.pop()),typeof j!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof j+"]");var A=C,M=A.memoizeOptions,B=M===void 0?t:M,k=Array.isArray(B)?B:[B],L=i(h),R=o.apply(void 0,[function(){return y++,j.apply(null,arguments)}].concat(k)),Z=o(function(){for(var z=[],F=L.length,P=0;P<F;P++)z.push(L[P].apply(null,arguments));return O=R.apply(null,z),O});return Object.assign(Z,{resultFunc:j,memoizedResultFunc:R,dependencies:L,lastResult:function(){return O},recomputations:function(){return y},resetRecomputations:function(){return y=0}}),Z};return E}var x=p(d),b=function(n,t){if(t===void 0&&(t=x),typeof n!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof n));var c=Object.keys(n),E=t(c.map(function(f){return n[f]}),function(){for(var f=arguments.length,w=new Array(f),h=0;h<f;h++)w[h]=arguments[h];return w.reduce(function(g,y,O){return g[c[O]]=y,g},{})});return E}},45112:function(v,m,e){"use strict";e.d(m,{Z:function(){return a}});var r=e(74512);const l=u=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...u,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M2.68 9.192c-.6.276-2.114 1.18-2.306 1.303a.792.792 0 0 0-.374.68v1.65a.797.797 0 0 0 .384.687c.254.16 1.73 1.042 2.306 1.303l.744 1.8c-.24.634-.67 2.333-.72 2.554a.797.797 0 0 0 .216.744l1.167 1.166a.801.801 0 0 0 .744.216l.03-.008c.36-.092 1.946-.498 2.523-.712l1.8.744c.276.6 1.181 2.115 1.304 2.307a.805.805 0 0 0 .679.374h1.649a.797.797 0 0 0 .686-.384c.16-.254 1.042-1.73 1.303-2.306l1.8-.744c.634.24 2.333.67 2.554.72a.797.797 0 0 0 .744-.216l1.166-1.167a.803.803 0 0 0 .216-.744l-.008-.03c-.092-.36-.498-1.946-.712-2.523l.744-1.8c.6-.276 2.115-1.181 2.307-1.304a.804.804 0 0 0 .374-.679v-1.649a.796.796 0 0 0-.382-.679c-.254-.16-1.73-1.041-2.306-1.303l-.744-1.8c.24-.634.67-2.333.72-2.554a.796.796 0 0 0-.216-.744l-1.166-1.173a.802.802 0 0 0-.744-.216l-.03.008c-.361.092-1.947.498-2.524.712l-1.8-.744c-.276-.6-1.18-2.115-1.303-2.307a.803.803 0 0 0-.68-.374h-1.65a.797.797 0 0 0-.68.382c-.16.254-1.041 1.73-1.303 2.306l-1.8.744c-.634-.24-2.333-.67-2.554-.72a.797.797 0 0 0-.744.216L2.921 4.094a.802.802 0 0 0-.216.744l.008.03c.092.361.498 1.947.712 2.524l-.744 1.8ZM12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z",clipRule:"evenodd"})}),a=l},2287:function(v,m,e){"use strict";e.d(m,{Z:function(){return a}});var r=e(74512);const l=u=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 25 25",...u,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"m13.58.448 3.177 3.176L18.66 1.72a3.267 3.267 0 1 1 4.62 4.62l-1.904 1.904 3.175 3.175a1.528 1.528 0 0 1 0 2.162l-3.175 3.175L20.2 15.58a3.267 3.267 0 1 0-4.62 4.62l1.177 1.177-3.176 3.176a1.528 1.528 0 0 1-2.162 0l-3.175-3.175-1.902 1.902a3.267 3.267 0 1 1-4.62-4.62l1.902-1.902-3.176-3.176a1.528 1.528 0 0 1 0-2.162l3.176-3.176L4.8 9.42a3.267 3.267 0 0 0 4.62-4.62L8.244 3.623 11.419.448a1.528 1.528 0 0 1 2.162 0Z",clipRule:"evenodd"})}),a=l},36919:function(v,m,e){"use strict";e.d(m,{Z:function(){return a}});var r=e(74512);const l=u=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...u,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M23.12 3.907c-.025 0-.055-.005-.087-.011a.72.72 0 0 0-.13-.016H5.929l-.27-1.805A2.413 2.413 0 0 0 3.26 0H1.078C.485 0 0 .485 0 1.078c0 .593.485 1.078 1.078 1.078H3.26c.135 0 .243.107.27.242L5.2 13.77a2.954 2.954 0 0 0 2.91 2.506h11.21c1.401 0 2.614-.997 2.91-2.371l1.752-8.757a1.065 1.065 0 0 0-.863-1.24Zm-4.932 13.927a2.8 2.8 0 0 0-2.802 2.802 2.8 2.8 0 0 0 2.802 2.802 2.8 2.8 0 0 0 2.803-2.802c-.027-1.536-1.267-2.802-2.803-2.802Zm-9.646 0a2.786 2.786 0 0 1 2.775 2.667c.081 1.536-1.132 2.83-2.667 2.91h-.054a2.762 2.762 0 0 1-2.749-2.667 2.819 2.819 0 0 1 2.695-2.91Z",clipRule:"evenodd"})}),a=l}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[3483],{11009:function(d,s,n){n.r(s),n.d(s,{SETTINGS_ROUTES_EE:function(){return o}});var t=n(32735);const o=[...window.strapi.features.isEnabled(window.strapi.features.AUDIT_LOGS)?[{component:t.lazy(()=>n.e(2812).then(n.bind(n,1487))),path:"/settings/audit-logs"}]:[],...window.strapi.features.isEnabled(window.strapi.features.REVIEW_WORKFLOWS)?[{component:t.lazy(()=>n.e(349).then(n.bind(n,32033))),path:"/settings/review-workflows"},{component:t.lazy(()=>Promise.all([n.e(4546),n.e(2237),n.e(8936)]).then(n.bind(n,80252))),path:"/settings/review-workflows/create"},{component:t.lazy(()=>Promise.all([n.e(4546),n.e(2237),n.e(4409)]).then(n.bind(n,45696))),path:"/settings/review-workflows/:workflowId"}]:[],...window.strapi.features.isEnabled(window.strapi.features.SSO)?[{component:t.lazy(()=>n.e(302).then(n.bind(n,68951))),path:"/settings/single-sign-on"}]:[]]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[3984],{33984:function(W,l,t){t.r(l),t.d(l,{ReviewWorkflowsStageEE:function(){return c}});var n=t(32735),s=t(87933),E=t(72850),a=t(49372),e=t(19565),u=t(60216),r=t.n(u),o=t(2121),i=t(68886);function c({color:O,name:T}){const{themeColorName:f}=(0,i.k)(O);return n.createElement(s.k,{alignItems:"center",gap:2,maxWidth:(0,e.Q1)(300)},n.createElement(E.x,{height:2,background:O,borderColor:f==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),n.createElement(a.Z,{fontWeight:"regular",textColor:"neutral700",ellipsis:!0},T))}c.defaultProps={color:o.FT},c.propTypes={color:r().string,name:r().string.isRequired}},2121:function(W,l,t){t.d(l,{$k:function(){return o},Ef:function(){return f},FT:function(){return O},Nj:function(){return r},Ot:function(){return u},VS:function(){return i},_X:function(){return A},gu:function(){return E},lv:function(){return c},qZ:function(){return a},sN:function(){return s},uL:function(){return T},x4:function(){return e}});var n=t(12301);const s="settings_review-workflows",E="Settings/Review_Workflows/RESET_WORKFLOW",a="Settings/Review_Workflows/SET_WORKFLOW",e="Settings/Review_Workflows/WORKFLOW_DELETE_STAGE",u="Settings/Review_Workflows/WORKFLOW_ADD_STAGE",r="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE",o="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE_POSITION",i="Settings/Review_Workflows/WORKFLOW_UPDATE",c={primary600:"Blue",primary200:"Lilac",alternative600:"Violet",alternative200:"Lavender",success600:"Green",success200:"Pale Green",danger500:"Cherry",danger200:"Pink",warning600:"Orange",warning200:"Yellow",secondary600:"Teal",secondary200:"Baby Blue",neutral400:"Gray",neutral0:"White"},O=n.W.colors.primary600,T={STAGE:"stage"},f="numberOfWorkflows",A="stagesPerWorkflow"},68886:function(W,l,t){t.d(l,{k:function(){return E},s:function(){return a}});var n=t(12301),s=t(2121);function E(e){if(!e)return null;const r=Object.entries(n.W.colors).filter(([,o])=>o.toUpperCase()===e.toUpperCase()).reduce((o,[i])=>(s.lv?.[i]&&(o=i),o),null);return r?{themeColorName:r,name:s.lv[r]}:null}function a(){return Object.entries(s.lv).map(([e,u])=>({hex:n.W.colors[e].toUpperCase(),name:u}))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[4546],{17379:function(W,v,n){n.d(v,{r:function(){return P}});var m=n(32735),E=n(72850),C=n(60216),I=n.n(C),K=n(74506);function x(M,O,h){if(!M||!O)return{display:"none"};const{x:A,y:U}=h;return{transform:`translate(${A}px, ${U}px)`}}function P({renderItem:M}){const{itemType:O,isDragging:h,item:A,initialOffset:U,currentOffset:Z,mouseOffset:Y}=(0,K.useDragLayer)(L=>({item:L.getItem(),itemType:L.getItemType(),initialOffset:L.getInitialSourceClientOffset(),currentOffset:L.getSourceClientOffset(),isDragging:L.isDragging(),mouseOffset:L.getClientOffset()}));return h?m.createElement(E.x,{height:"100%",left:0,position:"fixed",pointerEvents:"none",top:0,zIndex:100,width:"100%"},m.createElement(E.x,{style:x(U,Z,Y)},M({type:O,item:A}))):null}P.propTypes={renderItem:I().func.isRequired}},75430:function(W,v,n){var m=n(32735);const E=(0,m.createContext)();var C=null},69242:function(W,v,n){n.d(v,{PL:function(){return K},Y9:function(){return x.Y},zE:function(){return ae},Ky:function(){return X},fi:function(){return re},zH:function(){return de},r5:function(){return o}});var m=n(32735),E=n(15062),C=n(53634),K=()=>{const e=(0,E.v9)(C.Z),r=(0,m.useCallback)(t=>e?.components?.[t]??{},[e]);return{...e,getComponentLayout:r}},x=n(77622),P=n(19565),M=n(84306),O=n(20716),h=n(97889);const A={error:null,isLoading:!0,layout:{},layouts:{}};var Z=(e,r)=>(0,h.ZP)(e,t=>{switch(r.type){case"GET_DATA":{t.isLoading=!0,t.error=null,t.layout={};break}case"GET_DATA_SUCCEEDED":{const i=r.data.contentType.uid;t.layout=r.data,t.layouts[i]=r.data,t.isLoading=!1;break}case"GET_DATA_ERROR":{t.isLoading=!1,t.error=r.error;break}case"SET_LAYOUT_FROM_STATE":{t.error=null,t.layout=e.layouts[r.uid];break}case"UPDATE_LAYOUT":{const i=e.layout;t.layout={...i,contentType:{uid:i.contentType.uid,...r.newLayout.contentType}},t.layouts[i.contentType.uid]={...i,contentType:{uid:i.contentType.uid,...r.newLayout.contentType}};break}default:return t}}),Y=n(99381),L=n.n(Y),q=n(33795),R=n.n(q),oe=n(3040),S=n.n(oe),_=n(69997);const Q=(e,r)=>r.find(t=>t.uid===e),ie=(e,r)=>{const t=ee(e,r),i=k(t.contentType,r),f=te(t.contentType,t.components);return S()(t,["contentType","layouts","edit"],i),S()(t,["contentType","layouts","list"],f),Object.keys(t.components).forEach(l=>{const p=k(t.components[l],r);S()(t,["components",l,"layouts","edit"],p)}),t},ee=(e,r)=>{const t=(0,_.w8)(L()(e),r,"contentType"),{components:i,contentType:f}=t,l=p=>Object.keys(p.metadatas).reduce((y,b)=>{const N=R()(p,["attributes",b],{});let F=p.metadatas[b];if(N.type==="relation"){const ye=Q(N.targetModel,r),j=F.edit.mainField,G={name:j,schema:R()(ye,["attributes",j])};F={list:{...F.list,mainField:G},edit:{...F.edit,mainField:G}}}return y[b]=F,y},{});return S()(t,["contentType","metadatas"],l(f)),Object.keys(i).forEach(p=>{const y=i[p],b=l(y);S()(t,["components",p,"metadatas"],b)}),t},k=(e,r)=>e.layouts.edit.reduce((t,i)=>{const f=i.map(l=>{const p=R()(e,["attributes",l.name],{}),y={...l,fieldSchema:p,metadatas:R()(e,["metadatas",l.name,"edit"],{})};if(p.type==="relation"){const N=Q(p.targetModel,r).pluginOptions||{};S()(y,"targetModelPluginOptions",N),S()(y,"queryInfos",{shouldDisplayRelationLink:V(e,l.name,r)})}return y});return t.push(f),t},[]),te=(e,r)=>e.layouts.list.reduce((i,f)=>{const l=R()(e,["attributes",f],{}),p=R()(e,["metadatas",f,"list"],{}),y=l.type;if(y==="relation")return i.push({key:`__${f}_key__`,name:f,fieldSchema:l,metadatas:p}),i;if(y==="component"){const b=r[l.component],N=b.settings.mainField,F=b.attributes[N];return i.push({key:`__${f}_key__`,name:f,fieldSchema:l,metadatas:{...p,mainField:{...F,name:N}}}),i}return i.push({key:`__${f}_key__`,name:f,fieldSchema:l,metadatas:p}),i},[]),V=(e,r,t)=>{const i=R()(e,["attributes",r,"targetModel"],"");return B(t).includes(i)},B=e=>e.filter(r=>r.isDisplayed).map(({uid:r})=>r);var z=ie,ae=e=>{const[{error:r,isLoading:t,layout:i,layouts:f},l]=(0,m.useReducer)(Z,A),p=(0,m.useMemo)(O.Vo,[]),{schemas:y}=(0,E.v9)(j=>p(j),E.wU),b=(0,m.useRef)(!0),{get:N}=(0,P.kY)(),F=(0,m.useCallback)(async(j,G)=>{if(f[j]){l({type:"SET_LAYOUT_FROM_STATE",uid:j});return}l({type:"GET_DATA"});try{const{data:{data:se}}=await N(`/content-manager/content-types/${j}/configuration`,{cancelToken:G.token});l({type:"GET_DATA_SUCCEEDED",data:z(se,y)})}catch(se){if(M.default.isCancel(se))return;b.current&&console.error(se),b.current&&l({type:"GET_DATA_ERROR",error:se})}},[f,y,N]);(0,m.useEffect)(()=>()=>{b.current=!1},[]),(0,m.useEffect)(()=>{const G=M.default.CancelToken.source();return F(e,G),()=>{G.cancel("Operation canceled by the user.")}},[e,F]);const ye=(0,m.useCallback)(j=>{l({type:"UPDATE_LAYOUT",newLayout:z(j,y)})},[y]);return{error:r,isLoading:t,layout:i,updateLayout:ye}},ge=e=>e["content-manager_app"].collectionTypeLinks,ce=n(85973),T=n.n(ce),H=n(33348);const ue=(e,r)=>Object.keys(e).reduce((t,i)=>{const f=e[i],l=R()(r,[i],f);return T()(f)?{...t,[i]:ue(f,l)}:(t[i]=l,t)},{});var le=(e,r,t)=>{const i=e.find(({to:F})=>F.includes(r));if(!i)return"/";const{to:f,search:l}=i,p=(0,H.parse)(l),y=(0,H.parse)(t.substring(1)),b=ue(p,y);return`${f}?${(0,H.stringify)(b,{encode:!1})}`},X=e=>{const[{rawQuery:r}]=(0,P.Kx)(),t=(0,E.v9)(ge);return le(t,e,r)},Te=n(15655),$=n(53038),re=()=>{const{search:e}=(0,$.TH)(),r=e?(0,H.parse)(e.substring(1)):{};return r.plugins?(0,H.stringify)({plugins:r.plugins},{encode:!1}):""};const de=e=>{const r=(0,m.useRef)();return(0,m.useEffect)(()=>{r.current=e},[e]),r.current};var J=n(85149);const fe=(e,r,t)=>({type:J.m,permissions:e,__meta__:{plugins:r,containerName:t}}),me=()=>({type:J.Q}),s=e=>e["content-manager_rbacManager"].permissions,u=e=>e.rbacProvider.collectionTypesRelatedPermissions;var o=(e,r,t="listView")=>{const i=(0,E.I0)(),f=(0,E.v9)(u),l=(0,E.v9)(s),p=f[r];(0,m.useEffect)(()=>p?(i(fe(p,e?e.plugins:null,t)),()=>{i(me())}):()=>{},[p,i,e,t]);const y=l?.some(b=>b.subject!==r)??!0;return{isValid:l&&!y,permissions:l}},d=n(75430);const g=()=>useContext(WysiwygContext);var c=null},77622:function(W,v,n){n.d(v,{Y:function(){return K}});var m=n(32735),E=n(74506),C=n.n(E),I=n(15655);const K=(x,{type:P="STRAPI_DND",index:M,item:O={},onStart:h,onEnd:A,onGrabItem:U,onDropItem:Z,onCancel:Y,onMoveItem:L,dropSensitivity:q="regular"})=>{const R=(0,m.useRef)(null),[{handlerId:oe},S]=(0,E.useDrop)({accept:P,collect(k){return{handlerId:k.getHandlerId()}},hover(k,te){if(!R.current)return;const V=k.index,B=M;if(V!==B){if(q==="regular"){const z=R.current.getBoundingClientRect(),ne=(z.bottom-z.top)/2,w=te.getClientOffset().y-z.top;if(V<B&&w<ne||V>B&&w>ne)return}L(B,V),k.index=B}}}),[{isDragging:_},Q,ie]=(0,E.useDrag)({type:P,item(){h&&h();const{width:k}=R.current?.getBoundingClientRect()??{};return{index:M,width:k,...O}},end(){A&&A()},canDrag:x,isDragging:O.id?k=>O.id===k.getItem().id:void 0,collect:k=>({isDragging:k.isDragging()})}),ee=(0,I.A)(x,M,{onGrabItem:U,onDropItem:Z,onCancel:Y,onMoveItem:L});return[{handlerId:oe,isDragging:_,handleKeyDown:ee},R,S,Q,ie]}},15655:function(W,v,n){n.d(v,{A:function(){return E}});var m=n(32735);const E=(C,I,{onCancel:K,onDropItem:x,onGrabItem:P,onMoveItem:M})=>{const[O,h]=(0,m.useState)(!1),A=L=>{O&&(L==="UP"?M(I-1,I):L==="DOWN"&&M(I+1,I))},U=()=>{O?(x&&x(I),h(!1)):(P&&P(I),h(!0))},Z=()=>{O&&(h(!1),K&&K(I))};return L=>{if(C&&!(L.key==="Tab"&&!O))switch(L.preventDefault(),L.key){case" ":case"Enter":U();break;case"Escape":Z();break;case"ArrowDown":case"ArrowRight":A("DOWN");break;case"ArrowUp":case"ArrowLeft":A("UP");break;default:}}}},20716:function(W,v,n){n.d(v,{Jg:function(){return M},KQ:function(){return x},Vo:function(){return P},Yg:function(){return C}});var m=n(98178),E=n(60371);const C=()=>h=>h["content-manager_app"]||E.E,I=()=>createSelector(C(),h=>h),K=()=>createSelector(C(),h=>h.models),x=()=>(0,m.P1)(C(),h=>({collectionTypeLinks:h.collectionTypeLinks,singleTypeLinks:h.singleTypeLinks})),P=()=>(0,m.P1)(C(),({components:h,models:A})=>({schemas:[...h,...A]})),M=(0,m.P1)(C(),h=>h.fieldSizes);var O=null},53634:function(W,v){const n=m=>m["content-manager_editViewLayoutManager"].currentLayout;v.Z=n},24381:function(W,v){v.Z={COMPONENT:"component",EDIT_FIELD:"editField",FIELD:"field",DYNAMIC_ZONE:"dynamicZone",RELATION:"relation"}},7921:function(W,v){const n=m=>`content-manager.${m}`;v.Z=n},69997:function(W,v,n){n.d(v,{_Q:function(){return B.Z},W3:function(){return I},ko:function(){return x},FE:function(){return M},Di:function(){return U},Ex:function(){return me},du:function(){return q},TA:function(){return S},Ts:function(){return ee},Uo:function(){return te},OB:function(){return V.Z},w8:function(){return ce},kc:function(){return ue}});var m=n(99381),E=n.n(m),I=(s,u,a)=>{if(Array.isArray(s)&&u>=0&&a>=0&&u<=s.length-1&&a<=s.length-1){const o=E()(s),d=o.splice(u,1);return o.splice(a,0,d[0]),o}return s},x=s=>{const{type:u}=s;return u==="relation"?!(s?.relationType??"").toLowerCase().includes("morph"):!["json","dynamiczone","richtext","password"].includes(u)&&!!u};const P=(s,u)=>{typeof s=="function"?s(u):s!=null&&(s.current=u)},M=(...s)=>u=>s.forEach(a=>P(a,u));var O=n(33795),h=n.n(O);const A=(s,u)=>Object.keys(s).reduce((a,o)=>{const d=h()(s,[o],{}),{default:g,component:c,type:e,required:r,min:t,repeatable:i}=d;if(g!==void 0&&(a[o]=g),e==="component"){const f=u?.[c]?.attributes??{},l=A(f,u);if(r===!0&&(a[o]=i===!0?[]:l),t&&i===!0&&r){a[o]=[];for(let p=0;p<t;p+=1)a[o].push(l)}}return e==="dynamiczone"&&r===!0&&(a[o]=[]),a},{});var U=A,Z=n(9086),Y=n.n(Z),q=({layouts:s,metadatas:u,...a})=>{const o=s.list.map(c=>c.name?c.name:c),d=Object.keys(u).reduce((c,e)=>{const r=h()(u,[e],{});let t=r.edit;return t.mainField&&(t={...t,mainField:r.edit.mainField.name}),{...c,[e]:{edit:t,list:Y()(r.list,["mainField"])}}},{}),g=s.edit.map(c=>c.map(({name:e,size:r})=>({name:e,size:r})));return{...a,layouts:{edit:g,list:o},metadatas:d}};const R=(s,u)=>s.map(a=>({...a,subject:u}));var S=s=>{const u={create:[{action:"plugin::content-manager.explorer.create",subject:null}],delete:[{action:"plugin::content-manager.explorer.delete",subject:null}],publish:[{action:"plugin::content-manager.explorer.publish",subject:null}],read:[{action:"plugin::content-manager.explorer.read",subject:null}],update:[{action:"plugin::content-manager.explorer.update",subject:null}]};return Object.keys(u).reduce((a,o)=>(a[o]=R(u[o],s),a),{})},_=n(95919),Q=n.n(_),ee=s=>s.split(".").filter(u=>Q()(parseInt(u,10))),te=s=>{if(s.length===0)return-1;const u=Math.max.apply(Math,s.map(a=>a.__temp_key__??0));return Number.isNaN(u)?-1:u},V=n(7921),B=n(24381),z=n(86349),ne=n.n(z),ae=n(3040),w=n.n(ae),ce=(s,u,a)=>{const o=e=>u.find(r=>r.uid===e),d=Object.assign({},s),g=s[a].uid,c=o(g);return w()(d,[a],ne()({},c,s[a])),Object.keys(s.components).forEach(e=>{const r=o(e);w()(d,["components",e],{...s.components[e],...r})}),d},T=n(19565),ue=(s,u,a)=>{const o=(d,g)=>Object.keys(d).reduce((c,e)=>{const r=(0,T.UN)(g,e),t=h()(d,e),i=(0,T.k2)(g,[e,"component"]),f=(0,T.k2)(g,[e,"repeatable"]);return r==="dynamiczone"?(c[e]=t.map(l=>o(l,a[l.__component])),c):r==="component"?(f?c[e]=t&&t.map(l=>o(l,a[i])):c[e]=t&&o(t,a[i]),c):(r!=="password"&&(c[e]=t),c)},{});return o(s,u)},pe=n(51355),le=n.n(pe),he=n(86834),X=n.n(he),Te=n(78746),$=n.n(Te),D=n(24346),re=n(73347);D.kM(D.nK,"defined",function(){return this.test("defined",T.I0.required,s=>s!==void 0)}),D.kM(D.IX,"notEmptyMin",function(s){return this.test("notEmptyMin",T.I0.min,u=>X()(u)?!0:u.length>=s)}),D.kM(D.Z_,"isInferior",function(s,u){return this.test("isInferior",s,function(a){return!a||Number.isNaN($()(a))?!0:$()(u)>=$()(a)})}),D.kM(D.Z_,"isSuperior",function(s,u){return this.test("isSuperior",s,function(a){return!a||Number.isNaN($()(a))?!0:$()(a)>=$()(u)})});const de=s=>h()(s,["attributes"],{}),J=(s,{components:u},a={isCreatingEntry:!0,isDraft:!0,isFromComponent:!1})=>{const o=de(s);return D.Ry().shape(Object.keys(o).reduce((d,g)=>{const c=o[g];if(c.type!=="relation"&&c.type!=="component"&&c.type!=="dynamiczone"){const e=fe(c.type,c,a);d[g]=e}if(c.type==="relation"&&(d[g]=["oneWay","oneToOne","manyToOne","oneToManyMorph","oneToOneMorph"].includes(c.relationType)?D.Ry().nullable():D.IX().nullable()),c.type==="component"){const e=J(u[c.component],{components:u},{...a,isFromComponent:!0});if(c.repeatable===!0){const{min:t,max:i,required:f}=c;let l=D.Vo(p=>{let y=D.IX().of(e);return t?f?y=y.min(t,T.I0.min):f!==!0&&X()(p)?y=y.nullable():y=y.min(t,T.I0.min):f&&!a.isDraft&&(y=y.min(1,T.I0.required)),i&&(y=y.max(i,T.I0.max)),y});return d[g]=l,d}const r=D.Vo(t=>t!==void 0?c.required===!0&&!a.isDraft?e.defined():e.nullable():c.required===!0?D.Ry().defined():D.Ry().nullable());return d[g]=r,d}if(c.type==="dynamiczone"){let e=D.IX().of(D.Vo(({__component:i})=>J(u[i],{components:u},{...a,isFromComponent:!0})));const{max:r,min:t}=c;t?c.required?e=e.test("min",T.I0.min,i=>a.isCreatingEntry?i&&i.length>=t:i===void 0?!0:i!==null&&i.length>=t).test("required",T.I0.required,i=>a.isCreatingEntry?i!==null||i!==void 0:i===void 0?!0:i!==null):e=e.notEmptyMin(t):c.required&&!a.isDraft&&(e=e.test("required",T.I0.required,i=>a.isCreatingEntry?i!==null||i!==void 0:i===void 0?!0:i!==null)),r&&(e=e.max(r,T.I0.max)),d[g]=e}return d},{}))},fe=(s,u,a)=>{let o=D.nK();return["string","uid","text","richtext","email","password","enumeration"].includes(s)&&(o=D.Z_()),s==="json"&&(o=D.nK(T.I0.json).test("isJSON",T.I0.json,d=>{if(!d||!d.length)return!0;try{return JSON.parse(d),!0}catch{return!1}}).nullable().test("required",T.I0.required,d=>!(u.required&&(!d||!d.length)))),s==="email"&&(o=o.email(T.I0.email)),["number","integer","float","decimal"].includes(s)&&(o=D.Rx().transform(d=>Q()(d)?void 0:d).typeError()),s==="biginteger"&&(o=D.Z_().matches(/^-?\d*$/)),["date","datetime"].includes(s)&&(o=D.hT()),Object.keys(u).forEach(d=>{const g=u[d];if(g||!le()(g)&&Number.isInteger(Math.floor(g))||g===0)switch(d){case"required":{a.isDraft||(s==="password"&&a.isCreatingEntry&&(o=o.required(T.I0.required)),s!=="password"&&(a.isCreatingEntry?o=o.required(T.I0.required):o=o.test("required",T.I0.required,c=>c===void 0&&!a.isFromComponent?!0:(0,re.Z)(s)?c===0?!0:!!c:s==="boolean"?c!=null:s==="date"||s==="datetime"?typeof c=="string"?!X()(c):!X()(c?.toString()):!X()(c))));break}case"max":{s==="biginteger"?o=o.isInferior(T.I0.max,g):o=o.max(g,T.I0.max);break}case"maxLength":o=o.max(g,T.I0.maxLength);break;case"min":{s==="biginteger"?o=o.isSuperior(T.I0.min,g):o=o.min(g,T.I0.min);break}case"minLength":{a.isDraft||(o=o.min(g,T.I0.minLength));break}case"regex":o=o.matches(new RegExp(g),{message:T.I0.regex,excludeEmptyString:!u.required});break;case"lowercase":["text","textarea","email","string"].includes(s)&&(o=o.strict().lowercase());break;case"uppercase":["text","textarea","email","string"].includes(s)&&(o=o.strict().uppercase());break;case"positive":(0,re.Z)(s)&&(o=o.positive());break;case"negative":(0,re.Z)(s)&&(o=o.negative());break;default:o=o.nullable()}}),o};var me=J},73347:function(W,v,n){n.d(v,{Z:function(){return m}});function m(E){return["integer","biginteger","decimal","float","number"].includes(E)}}}]);
@@ -1,6 +0,0 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5483],{90978:function(h,f,e){e.r(f),e.d(f,{InformationBoxEE:function(){return I}});var t=e(32735),r=e(77035),s=e(87933),E=e(49372),u=e(23866),a=e(19565),c=e(67879),l=e(20108),n=e(98865),m=e(98866),o=e(90562),i=e(2121),g=e(32329),v=e(68886);const w="strapi_stage";function I(){const{initialData:A,isCreatingEntry:R,layout:{uid:y,options:D},isSingleType:P,onChange:C}=(0,a.Wq)(),{put:d}=(0,a.kY)(),T=A?.[w]??null,k=D?.reviewWorkflows??!1,{formatMessage:p}=(0,c.Z)(),{formatAPIError:x}=(0,a.So)(),G=(0,a.lm)(),{getFeature:Z}=(0,m.q)(),[F,L]=t.useState(!1),{meta:$,workflows:[B],isLoading:Y}=(0,g.n)({filters:{contentTypes:y}}),{error:K,isLoading:j,mutateAsync:H}=(0,l.useMutation)(async({entityId:O,stageId:W,uid:M})=>{const N=P?"single-types":"collection-types",{data:{data:U}}=await d(`/admin/content-manager/${N}/${M}/${O}/stage`,{data:{id:W}});return C({target:{name:w,value:U[w]}},!0),U},{onSuccess(){G({type:"success",message:{id:"content-manager.reviewWorkflows.stage.notification.saved",defaultMessage:"Review stage updated"}})}}),S=Z("review-workflows"),Q=K&&x(K)||null,X=async({value:O})=>{try{S?.[i.Ef]&&parseInt(S[i.Ef],10)<$.workflowCount?L("workflow"):S?.[i._X]&&parseInt(S[i._X],10)<B.stages.length?L("stage"):await H({entityId:A.id,stageId:O,uid:y})}catch{}},{themeColorName:V}=T?.color?(0,v.k)(T?.color):{};return t.createElement(n.d.Root,null,t.createElement(n.d.Title,null),k&&!R&&t.createElement(r.q4,{error:Q,name:w,id:w,value:T?.id,onChange:O=>X({value:O}),label:p({id:"content-manager.reviewWorkflows.stage.label",defaultMessage:"Review stage"}),startIcon:t.createElement(s.k,{as:"span",height:2,background:T?.color,borderColor:V==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2,marginRight:"-3px"}),customizeContent:()=>t.createElement(s.k,{as:"span",justifyContent:"space-between",alignItems:"center",width:"100%"},t.createElement(E.Z,{textColor:"neutral800",ellipsis:!0},T?.name),Y||j?t.createElement(u.a,{small:!0,style:{display:"flex"}}):null)},B?B.stages.map(({id:O,color:W,name:M})=>{const{themeColorName:N}=(0,v.k)(W);return t.createElement(r.ag,{startIcon:t.createElement(s.k,{height:2,background:W,borderColor:N==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),value:O,textValue:M},M)}):[]),t.createElement(n.d.Body,null),t.createElement(o.fC,{isOpen:F==="workflow",onClose:()=>L(!1)},t.createElement(o.Dx,null,p({id:"content-manager.reviewWorkflows.workflows.limit.title",defaultMessage:"You\u2019ve reached the limit of workflows in your plan"})),t.createElement(o.uT,null,p({id:"content-manager.reviewWorkflows.workflows.limit.body",defaultMessage:"Delete a workflow or contact Sales to enable more workflows."}))),t.createElement(o.fC,{isOpen:F==="stage",onClose:()=>L(!1)},t.createElement(o.Dx,null,p({id:"content-manager.reviewWorkflows.stages.limit.title",defaultMessage:"You have reached the limit of stages for this workflow in your plan"})),t.createElement(o.uT,null,p({id:"content-manager.reviewWorkflows.stages.limit.body",defaultMessage:"Try deleting some stages or contact Sales to enable more stages."}))))}},98866:function(h,f,e){e.d(f,{q:function(){return E}});var t=e(32735),r=e(19565),s=e(20108);function E({enabled:u}={enabled:!0}){const{get:a}=(0,r.kY)(),{data:c,isError:l,isLoading:n}=(0,s.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:i}}=await a("/admin/license-limit-information");return i},{enabled:u}),m=t.useMemo(()=>c??{},[c]),o=t.useCallback(i=>(m?.features??[]).find(v=>v.name===i)?.options??{},[m?.features]);return{license:m,getFeature:o,isError:l,isLoading:n}}},90562:function(h,f,e){e.d(f,{uT:function(){return y},fC:function(){return C},Dx:function(){return R}});var t=e(32735),r=e(49372),s=e(87933),E=e(85025),u=e(31600),a=e(72850),c=e(50563),l=e(95489),n=e(35331),m=e(60216),o=e.n(m),i=e(67879),g=e(8471),v=e.p+"0cd5f8915b265d5b1856.png";const w="limits-title",I="https://strapi.io/pricing-cloud",A="https://strapi.io/contact-sales";function R({children:d}){return t.createElement(r.Z,{variant:"alpha",id:w},d)}R.propTypes={children:o().node.isRequired};function y({children:d}){return t.createElement(r.Z,{variant:"omega"},d)}y.propTypes={children:o().node.isRequired};function D(){const{formatMessage:d}=(0,i.Z)();return t.createElement(s.k,{gap:2,paddingTop:4},t.createElement(l.Q,{variant:"default",isExternal:!0,href:I},d({id:"Settings.review-workflows.limit.cta.learn",defaultMessage:"Learn more"})),t.createElement(l.Q,{variant:"tertiary",isExternal:!0,href:A},d({id:"Settings.review-workflows.limit.cta.sales",defaultMessage:"Contact Sales"})))}const P=g.ZP.img`
2
- // Margin top|right reverse the padding of ModalBody
3
- margin-right: ${({theme:d})=>`-${d.spaces[7]}`};
4
- margin-top: ${({theme:d})=>`-${d.spaces[7]}`};
5
- width: 360px;
6
- `;function C({children:d,isOpen:T,onClose:k}){const{formatMessage:p}=(0,i.Z)();return T?t.createElement(E.P,{labelledBy:w},t.createElement(u.f,null,t.createElement(s.k,{gap:2,paddingLeft:7,position:"relative"},t.createElement(s.k,{alignItems:"start",direction:"column",gap:2,width:"60%"},d,t.createElement(D,null)),t.createElement(s.k,{justifyContent:"end",height:"100%",width:"40%"},t.createElement(P,{src:v,"aria-hidden":!0,alt:"",loading:"lazy"}),t.createElement(a.x,{display:"flex",position:"absolute",right:0,top:0},t.createElement(c.h,{icon:t.createElement(n.Z,null),"aria-label":p({id:"global.close",defaultMessage:"Close"}),onClick:k})))))):null}C.defaultProps={isOpen:!1},C.propTypes={children:o().node.isRequired,isOpen:o().bool,onClose:o().func.isRequired}},2121:function(h,f,e){e.d(f,{$k:function(){return l},Ef:function(){return g},FT:function(){return o},Nj:function(){return c},Ot:function(){return a},VS:function(){return n},_X:function(){return v},gu:function(){return s},lv:function(){return m},qZ:function(){return E},sN:function(){return r},uL:function(){return i},x4:function(){return u}});var t=e(12301);const r="settings_review-workflows",s="Settings/Review_Workflows/RESET_WORKFLOW",E="Settings/Review_Workflows/SET_WORKFLOW",u="Settings/Review_Workflows/WORKFLOW_DELETE_STAGE",a="Settings/Review_Workflows/WORKFLOW_ADD_STAGE",c="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE",l="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE_POSITION",n="Settings/Review_Workflows/WORKFLOW_UPDATE",m={primary600:"Blue",primary200:"Lilac",alternative600:"Violet",alternative200:"Lavender",success600:"Green",success200:"Pale Green",danger500:"Cherry",danger200:"Pink",warning600:"Orange",warning200:"Yellow",secondary600:"Teal",secondary200:"Baby Blue",neutral400:"Gray",neutral0:"White"},o=t.W.colors.primary600,i={STAGE:"stage"},g="numberOfWorkflows",v="stagesPerWorkflow"},32329:function(h,f,e){e.d(f,{n:function(){return s}});var t=e(19565),r=e(20108);function s(E={}){const{get:u}=(0,t.kY)(),{id:a="",...c}=E,l={populate:"stages"},{data:n,isLoading:m,status:o,refetch:i}=(0,r.useQuery)(["review-workflows","workflows",a],async()=>(await u(`/admin/review-workflows/workflows/${a}`,{params:{...l,...c}})).data);let g=[];return a&&n?.data?g=[n.data]:Array.isArray(n?.data)&&(g=n.data),{meta:n?.meta??{},workflows:g,isLoading:m,status:o,refetch:i}}},68886:function(h,f,e){e.d(f,{k:function(){return s},s:function(){return E}});var t=e(12301),r=e(2121);function s(u){if(!u)return null;const c=Object.entries(t.W.colors).filter(([,l])=>l.toUpperCase()===u.toUpperCase()).reduce((l,[n])=>(r.lv?.[n]&&(l=n),l),null);return c?{themeColorName:c,name:r.lv[c]}:null}function E(){return Object.entries(r.lv).map(([u,a])=>({hex:t.W.colors[u].toUpperCase(),name:a}))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[6158],{76158:function(n,a,e){e.r(a),e.d(a,{REVIEW_WORKFLOW_COLUMNS_EE:function(){return s}});var t=e(7921);const s={key:"__strapi_stage_temp_key__",name:"strapi_stage",fieldSchema:{type:"relation"},metadatas:{label:{id:(0,t.Z)("containers.ListPage.table-headers.reviewWorkflows.stage"),defaultMessage:"Review stage"},searchable:!1,sortable:!0,mainField:{name:"name",schema:{type:"string"}}}}}}]);