datastake-daf 0.6.787 → 0.6.789
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/build/favicon.ico +0 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/dist/components/index.js +588 -729
- package/dist/pages/index.js +775 -34
- package/dist/services/index.js +1 -10
- package/dist/utils/index.js +12 -28
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Widget/ActivityIndicators/ActivityIndicators.stories.js +24 -0
- package/src/@daf/core/components/Dashboard/Widget/ActivityIndicators/index.jsx +1 -0
- package/src/@daf/core/components/Dashboard/Widget/ActivityIndicators/style.js +34 -0
- package/src/@daf/core/components/Dashboard/Widget/KeyIndicators/KeyIndicators.stories.js +39 -0
- package/src/@daf/core/components/Dashboard/Widget/KeyIndicators/LabelWithIcon.jsx +38 -0
- package/src/@daf/core/components/Dashboard/Widget/KeyIndicators/index.jsx +16 -3
- package/src/@daf/core/components/Dashboard/Widget/KeyIndicators/style.js +33 -0
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/TopContributors/hook.js +1 -0
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/TopContributors/index.jsx +1 -1
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/UserGrowth/hook.js +1 -1
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/UserGrowth/index.jsx +1 -1
- package/src/@daf/core/components/Screens/Admin/AdminModals/AddUser/index.jsx +1 -0
- package/src/@daf/core/components/Screens/Admin/AdminModals/CombineLocation/index.jsx +1 -1
- package/src/@daf/core/components/Screens/Admin/AdminModals/NewAccount/index.jsx +1 -1
- package/src/@daf/core/components/Screens/Admin/AdminScreens/Dashboard.jsx +2 -2
- package/src/@daf/core/components/Screens/Admin/AdminScreens/Location.jsx +5 -5
- package/src/@daf/core/components/Screens/Admin/AdminScreens/Subjects.jsx +2 -2
- package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/index.jsx +5 -23
- package/src/@daf/core/components/Screens/Admin/AdminTables/SubjectsTable/columns.js +36 -36
- package/src/@daf/core/components/Screens/Admin/AdminTables/SubjectsTable/index.jsx +21 -12
- package/src/@daf/core/components/Screens/Admin/AdminViews/components/Users/helper.js +8 -13
- package/src/@daf/core/components/Screens/Admin/AdminViews/components/Users/index.jsx +2 -2
- package/src/@daf/core/components/Screens/Admin/adminRoutes.js +2 -2
- package/src/@daf/pages/Summary/Activities/Monitoring/components/ActivityImagery/index.jsx +29 -0
- package/src/@daf/pages/Summary/Activities/Monitoring/components/ActivityLocation/index.jsx +94 -0
- package/src/@daf/pages/Summary/Activities/Monitoring/components/MangroveGrowthAndSurvival/components/PlantedSpecies/index.jsx +56 -0
- package/src/@daf/pages/Summary/Activities/Monitoring/components/MangroveGrowthAndSurvival/components/SeedlingsHeight/index.jsx +121 -0
- package/src/@daf/pages/Summary/Activities/Monitoring/components/MangroveGrowthAndSurvival/components/SurvivalRate/index.jsx +94 -0
- package/src/@daf/pages/Summary/Activities/Monitoring/components/MangroveGrowthAndSurvival/index.jsx +54 -0
- package/src/@daf/pages/Summary/Activities/Monitoring/components/WorkersDistribution/index.jsx +49 -0
- package/src/@daf/pages/Summary/Activities/Monitoring/config.js +51 -0
- package/src/@daf/pages/Summary/Activities/Monitoring/helper.js +236 -0
- package/src/@daf/pages/Summary/Activities/Monitoring/index.jsx +66 -0
- package/src/@daf/pages/Summary/Minesite/components/StakeholderMapping/index.js +1 -1
- package/src/@daf/services/AdminService.js +3 -12
- package/src/@daf/services/DashboardService.js +1 -2
- package/src/@daf/utils/filters.js +89 -89
- package/src/constants/locales/en/translation.js +0 -3
- package/src/constants/locales/fr/translation.js +1 -1
- package/src/constants/locales/sp/translation.js +1 -1
- package/src/pages.js +1 -0
- package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/column.js +0 -224
- package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/helper.js +0 -65
- package/src/@daf/pages/SelfAssesment/components/AssociatedInformationTable/columns.js +0 -180
- package/src/@daf/pages/SelfAssesment/components/AssociatedInformationTable/config.js +0 -0
- package/src/@daf/pages/SelfAssesment/components/AssociatedInformationTable/index.jsx +0 -27
- package/src/@daf/pages/SelfAssesment/components/OrgInformationTable/columns.js +0 -157
- package/src/@daf/pages/SelfAssesment/components/OrgInformationTable/config.js +0 -31
- package/src/@daf/pages/SelfAssesment/components/OrgInformationTable/index.js +0 -77
- package/src/@daf/pages/SelfAssesment/components/ProductionSiteTable/columns.js +0 -117
- package/src/@daf/pages/SelfAssesment/components/ProductionSiteTable/index.jsx +0 -54
- package/src/@daf/pages/SelfAssesment/index.jsx +0 -0
package/dist/components/index.js
CHANGED
|
@@ -4778,7 +4778,7 @@ const config$2 = {
|
|
|
4778
4778
|
Down: config$3
|
|
4779
4779
|
};
|
|
4780
4780
|
|
|
4781
|
-
const _excluded$
|
|
4781
|
+
const _excluded$C = ["width", "height", "size", "name", "fill"];
|
|
4782
4782
|
const CustomIcon = _ref => {
|
|
4783
4783
|
let {
|
|
4784
4784
|
width = 14,
|
|
@@ -4787,7 +4787,7 @@ const CustomIcon = _ref => {
|
|
|
4787
4787
|
name = "",
|
|
4788
4788
|
fill = "none"
|
|
4789
4789
|
} = _ref,
|
|
4790
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4790
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
4791
4791
|
const conf = config$2[name];
|
|
4792
4792
|
if (conf) {
|
|
4793
4793
|
return /*#__PURE__*/jsxRuntime.jsx("svg", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -5076,7 +5076,7 @@ createCommonjsModule(function (module, exports) {
|
|
|
5076
5076
|
!function(e,n){module.exports=n();}(commonjsGlobal,(function(){return {name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return "["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}}}));
|
|
5077
5077
|
});
|
|
5078
5078
|
|
|
5079
|
-
const _excluded$
|
|
5079
|
+
const _excluded$B = ["view", "module", "scope", "form", "meta", "createdAt", "updatedAt"];
|
|
5080
5080
|
dayjs__default["default"].extend(customParseFormat);
|
|
5081
5081
|
dayjs__default["default"].extend(utc);
|
|
5082
5082
|
dayjs__default["default"].extend(utc);
|
|
@@ -5452,7 +5452,7 @@ const filterCreateData = data => {
|
|
|
5452
5452
|
createdAt,
|
|
5453
5453
|
updatedAt
|
|
5454
5454
|
} = data,
|
|
5455
|
-
rest = _objectWithoutProperties(data, _excluded$
|
|
5455
|
+
rest = _objectWithoutProperties(data, _excluded$B);
|
|
5456
5456
|
const _meta = isObjectEmpty(meta) ? undefined : meta;
|
|
5457
5457
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
5458
5458
|
meta: _meta
|
|
@@ -5848,7 +5848,7 @@ SelectFilters.propTypes = {
|
|
|
5848
5848
|
apiUrl: PropTypes__default["default"].string
|
|
5849
5849
|
};
|
|
5850
5850
|
|
|
5851
|
-
const _excluded$
|
|
5851
|
+
const _excluded$A = ["columns", "data", "defaultFilters", "style", "pagination", "loading", "onChange", "onFilterChange", "selectOptions", "filtersConfig", "rowSelection", "setShowFilters", "rowKey", "showFilters", "hideOnLoading", "sourcesKey", "className", "projects", "t", "selectedProject", "sourceId", "projectSources", "language", "scrollX", "apiUrl", "app", "doEmptyRows"];
|
|
5852
5852
|
function DAFTable(_ref) {
|
|
5853
5853
|
let {
|
|
5854
5854
|
columns = [],
|
|
@@ -5879,7 +5879,7 @@ function DAFTable(_ref) {
|
|
|
5879
5879
|
app,
|
|
5880
5880
|
doEmptyRows
|
|
5881
5881
|
} = _ref,
|
|
5882
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5882
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
5883
5883
|
const [source, setSource] = React.useState([]);
|
|
5884
5884
|
const projectData = (projects || []).find(p => p.id === selectedProject);
|
|
5885
5885
|
const [filtersInit, setFiltersInit] = React.useState(!loading);
|
|
@@ -6697,7 +6697,7 @@ function ComponentWithFocus(_ref) {
|
|
|
6697
6697
|
}
|
|
6698
6698
|
|
|
6699
6699
|
var _templateObject$f;
|
|
6700
|
-
const _excluded$
|
|
6700
|
+
const _excluded$z = ["size", "maxHeight", "containerHeight", "dataSource", "columns", "pagination", "doEmptyRows"];
|
|
6701
6701
|
function StickyTable(_ref) {
|
|
6702
6702
|
let {
|
|
6703
6703
|
size = "small",
|
|
@@ -6708,7 +6708,7 @@ function StickyTable(_ref) {
|
|
|
6708
6708
|
pagination = false,
|
|
6709
6709
|
doEmptyRows = true
|
|
6710
6710
|
} = _ref,
|
|
6711
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6711
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
6712
6712
|
const data = React__default["default"].useMemo(() => {
|
|
6713
6713
|
if (!doEmptyRows) {
|
|
6714
6714
|
return dataSource;
|
|
@@ -7233,7 +7233,7 @@ const BTN_SIZE = {
|
|
|
7233
7233
|
LG: 'large'
|
|
7234
7234
|
};
|
|
7235
7235
|
|
|
7236
|
-
const _excluded$
|
|
7236
|
+
const _excluded$y = ["content", "size", "type", "icon", "onClick", "disabled", "loading", "title", "style", "className"];
|
|
7237
7237
|
function DafButton(_ref) {
|
|
7238
7238
|
let {
|
|
7239
7239
|
content = '',
|
|
@@ -7247,7 +7247,7 @@ function DafButton(_ref) {
|
|
|
7247
7247
|
style = {},
|
|
7248
7248
|
className = ''
|
|
7249
7249
|
} = _ref,
|
|
7250
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
7250
|
+
restProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
7251
7251
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({
|
|
7252
7252
|
icon: icon,
|
|
7253
7253
|
type: type,
|
|
@@ -7366,12 +7366,12 @@ const Style$R = styled__default["default"].div`
|
|
|
7366
7366
|
}
|
|
7367
7367
|
`;
|
|
7368
7368
|
|
|
7369
|
-
const _excluded$
|
|
7369
|
+
const _excluded$x = ["children"];
|
|
7370
7370
|
const BorderedButton = _ref => {
|
|
7371
7371
|
let {
|
|
7372
7372
|
children
|
|
7373
7373
|
} = _ref,
|
|
7374
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7374
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
7375
7375
|
return /*#__PURE__*/jsxRuntime.jsx(Style$R, {
|
|
7376
7376
|
className: "d-btn-cont",
|
|
7377
7377
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -7511,12 +7511,12 @@ Badge.propTypes = {
|
|
|
7511
7511
|
props: PropTypes__default["default"].object
|
|
7512
7512
|
};
|
|
7513
7513
|
|
|
7514
|
-
const _excluded$
|
|
7514
|
+
const _excluded$w = ["icon"];
|
|
7515
7515
|
function GetIcon(_ref) {
|
|
7516
7516
|
let {
|
|
7517
7517
|
icon
|
|
7518
7518
|
} = _ref,
|
|
7519
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7519
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
7520
7520
|
let Icon = Icons__namespace.CloseOutlined;
|
|
7521
7521
|
if (Icons__namespace[icon]) {
|
|
7522
7522
|
Icon = Icons__namespace[icon];
|
|
@@ -7846,7 +7846,7 @@ const MultiSelectStyled = styled__default["default"](antd.Select)`
|
|
|
7846
7846
|
}
|
|
7847
7847
|
`;
|
|
7848
7848
|
|
|
7849
|
-
const _excluded$
|
|
7849
|
+
const _excluded$v = ["options", "defaultSelected", "onChange", "textWhenMultiple", "withCount", "oneAlwaysSelected", "canUnselectLast", "isAvatarGroup", "maxAvatarCount", "dropDownWidth", "topAvatarValue", "isSingle", "selectionType"];
|
|
7850
7850
|
const {
|
|
7851
7851
|
useToken: useToken$n
|
|
7852
7852
|
} = antd.theme;
|
|
@@ -7939,7 +7939,7 @@ function Multiselect(_ref) {
|
|
|
7939
7939
|
isSingle = false,
|
|
7940
7940
|
selectionType = SELECTION_TYPES.DEFAULT
|
|
7941
7941
|
} = _ref,
|
|
7942
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
7942
|
+
restProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
7943
7943
|
const {
|
|
7944
7944
|
token
|
|
7945
7945
|
} = useToken$n();
|
|
@@ -8661,7 +8661,7 @@ DAFHeader.propTypes = {
|
|
|
8661
8661
|
filtersConfig: PropTypes__default["default"].any
|
|
8662
8662
|
};
|
|
8663
8663
|
|
|
8664
|
-
const _excluded$
|
|
8664
|
+
const _excluded$u = ["tabs", "onChange", "value", "className"];
|
|
8665
8665
|
function TabsHeader(_ref) {
|
|
8666
8666
|
let {
|
|
8667
8667
|
tabs = [],
|
|
@@ -8669,7 +8669,7 @@ function TabsHeader(_ref) {
|
|
|
8669
8669
|
value = '',
|
|
8670
8670
|
className = 'mt-2'
|
|
8671
8671
|
} = _ref,
|
|
8672
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8672
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
8673
8673
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
8674
8674
|
className: formatClassname(['daf-tabs-header pl-6 pr-6', className]),
|
|
8675
8675
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Tabs, _objectSpread2({
|
|
@@ -8766,7 +8766,7 @@ DrawerHeader.propTypes = {
|
|
|
8766
8766
|
tabsConfig: PropTypes__default["default"].any
|
|
8767
8767
|
};
|
|
8768
8768
|
|
|
8769
|
-
const _excluded$
|
|
8769
|
+
const _excluded$t = ["label", "onClick", "icon", "type", "tooltip", "disabled", "loading", "style", "className"];
|
|
8770
8770
|
const useFooter = _ref => {
|
|
8771
8771
|
let {
|
|
8772
8772
|
leftContent,
|
|
@@ -8801,7 +8801,7 @@ const useFooter = _ref => {
|
|
|
8801
8801
|
style = {},
|
|
8802
8802
|
className = ""
|
|
8803
8803
|
} = button,
|
|
8804
|
-
restProps = _objectWithoutProperties(button, _excluded$
|
|
8804
|
+
restProps = _objectWithoutProperties(button, _excluded$t);
|
|
8805
8805
|
return /*#__PURE__*/jsxRuntime.jsx(DafButton, _objectSpread2({
|
|
8806
8806
|
content: label,
|
|
8807
8807
|
type: type,
|
|
@@ -9612,25 +9612,27 @@ const renderFieldData = (type, value, user, config, getApiBaseUrl = () => {}, ge
|
|
|
9612
9612
|
}
|
|
9613
9613
|
};
|
|
9614
9614
|
|
|
9615
|
-
const renderValue =
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9615
|
+
const renderValue = _ref => {
|
|
9616
|
+
let {
|
|
9617
|
+
value,
|
|
9618
|
+
hasChildren,
|
|
9619
|
+
config,
|
|
9620
|
+
user,
|
|
9621
|
+
getApiBaseUrl = () => {},
|
|
9622
|
+
getAppHeader = () => {},
|
|
9623
|
+
app,
|
|
9624
|
+
allData = {}
|
|
9625
|
+
} = _ref;
|
|
9626
|
+
if ((config === null || config === void 0 ? void 0 : config.type) === 'groupInputs') {
|
|
9627
|
+
if (!(config !== null && config !== void 0 && config.inputs)) return null;
|
|
9627
9628
|
const inputKeys = Object.keys(config.inputs).sort((a, b) => {
|
|
9628
|
-
|
|
9629
|
-
const
|
|
9629
|
+
var _config$inputs$a, _config$inputs$b;
|
|
9630
|
+
const positionA = ((_config$inputs$a = config.inputs[a]) === null || _config$inputs$a === void 0 ? void 0 : _config$inputs$a.position) || 0;
|
|
9631
|
+
const positionB = ((_config$inputs$b = config.inputs[b]) === null || _config$inputs$b === void 0 ? void 0 : _config$inputs$b.position) || 0;
|
|
9630
9632
|
return positionA - positionB;
|
|
9631
9633
|
});
|
|
9632
9634
|
const values = inputKeys.map(inputKey => {
|
|
9633
|
-
let inputValue = value
|
|
9635
|
+
let inputValue = value === null || value === void 0 ? void 0 : value[inputKey];
|
|
9634
9636
|
if (inputValue === null || inputValue === undefined || inputValue === '') {
|
|
9635
9637
|
return '';
|
|
9636
9638
|
} else if (typeof inputValue === 'object' && inputValue !== null) {
|
|
@@ -9671,8 +9673,8 @@ const renderValue = ({
|
|
|
9671
9673
|
} else {
|
|
9672
9674
|
displayValue = String(value);
|
|
9673
9675
|
}
|
|
9674
|
-
const fieldType = config
|
|
9675
|
-
let cssClass =
|
|
9676
|
+
const fieldType = (config === null || config === void 0 ? void 0 : config.type) || 'text';
|
|
9677
|
+
let cssClass = "tree-value ".concat(fieldType, "-type");
|
|
9676
9678
|
if (displayValue === '-') {
|
|
9677
9679
|
cssClass += ' empty';
|
|
9678
9680
|
}
|
|
@@ -9682,19 +9684,21 @@ const renderValue = ({
|
|
|
9682
9684
|
children: displayValue
|
|
9683
9685
|
});
|
|
9684
9686
|
};
|
|
9685
|
-
const determineHasChildren =
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9687
|
+
const determineHasChildren = _ref2 => {
|
|
9688
|
+
var _config$meta;
|
|
9689
|
+
let {
|
|
9690
|
+
config,
|
|
9691
|
+
level
|
|
9692
|
+
} = _ref2;
|
|
9693
|
+
if ((config === null || config === void 0 ? void 0 : config.type) === 'groupInputs') {
|
|
9690
9694
|
return false;
|
|
9691
9695
|
}
|
|
9692
|
-
if (config
|
|
9696
|
+
if ((config === null || config === void 0 ? void 0 : config.type) === 'header' && config !== null && config !== void 0 && config.inputs && Object.keys(config.inputs).length > 0) {
|
|
9693
9697
|
return true;
|
|
9694
9698
|
}
|
|
9695
|
-
return config
|
|
9699
|
+
return (config === null || config === void 0 ? void 0 : config.inputs) || (config === null || config === void 0 ? void 0 : config.type) === 'group' || (config === null || config === void 0 ? void 0 : config.type) === 'dataLinkGroup' || (config === null || config === void 0 ? void 0 : config.type) === 'section' || (config === null || config === void 0 ? void 0 : config.type) === 'ajaxSubGroup' ||
|
|
9696
9700
|
// Add this line
|
|
9697
|
-
config
|
|
9701
|
+
(config === null || config === void 0 ? void 0 : config.type) === 'dataLink' && (config === null || config === void 0 || (_config$meta = config.meta) === null || _config$meta === void 0 ? void 0 : _config$meta.tableKeys) || level === 0 && config && typeof config === 'object' && Object.keys(config).some(key => key !== 'id' && key !== 'label' && key !== 'position' && key !== 'subTitle' && typeof config[key] === 'object' && config[key] !== null);
|
|
9698
9702
|
};
|
|
9699
9703
|
|
|
9700
9704
|
const sortByPosition = (items, getConfig) => {
|
|
@@ -9965,44 +9969,44 @@ function useAjaxModal$2({
|
|
|
9965
9969
|
}
|
|
9966
9970
|
|
|
9967
9971
|
const mergeObject = obj => {
|
|
9968
|
-
return Object.entries(obj || {}).reduce((acc,
|
|
9972
|
+
return Object.entries(obj || {}).reduce((acc, _ref) => {
|
|
9973
|
+
let [key, value] = _ref;
|
|
9969
9974
|
if (typeof value === "object" && !Array.isArray(value) && value !== null) {
|
|
9970
|
-
return {
|
|
9971
|
-
...acc,
|
|
9972
|
-
...value
|
|
9973
|
-
};
|
|
9975
|
+
return _objectSpread2(_objectSpread2({}, acc), value);
|
|
9974
9976
|
}
|
|
9975
|
-
return {
|
|
9976
|
-
...acc,
|
|
9977
|
+
return _objectSpread2(_objectSpread2({}, acc), {}, {
|
|
9977
9978
|
[key]: value
|
|
9978
|
-
};
|
|
9979
|
+
});
|
|
9979
9980
|
}, {});
|
|
9980
9981
|
};
|
|
9981
|
-
const handleDataLinkGroupWithTableKeys =
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9982
|
+
const handleDataLinkGroupWithTableKeys = _ref2 => {
|
|
9983
|
+
var _inputConfig$meta, _config$meta2, _inputConfig$meta3, _inputConfig$meta4, _inputConfig$meta5;
|
|
9984
|
+
let {
|
|
9985
|
+
config,
|
|
9986
|
+
inputConfig,
|
|
9987
|
+
inputKey,
|
|
9988
|
+
value,
|
|
9989
|
+
level,
|
|
9990
|
+
t,
|
|
9991
|
+
rootForm,
|
|
9992
|
+
allData,
|
|
9993
|
+
user,
|
|
9994
|
+
getApiBaseUrl = () => {},
|
|
9995
|
+
getAppHeader = () => {},
|
|
9996
|
+
app,
|
|
9997
|
+
TreeNodeComponent
|
|
9998
|
+
} = _ref2;
|
|
9996
9999
|
if (!(config.type === 'dataLinkGroup' || config.type === 'dataLink')) {
|
|
9997
10000
|
return null;
|
|
9998
10001
|
}
|
|
9999
|
-
if (inputConfig
|
|
10002
|
+
if ((inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.type) !== 'dataLink' || !(inputConfig !== null && inputConfig !== void 0 && (_inputConfig$meta = inputConfig.meta) !== null && _inputConfig$meta !== void 0 && _inputConfig$meta.tableKeys)) {
|
|
10000
10003
|
const parentInputKeys = Object.keys(config.inputs || {});
|
|
10001
10004
|
const isHandledBySiblingDataLink = parentInputKeys.some(otherInputKey => {
|
|
10002
10005
|
const otherConfig = config.inputs[otherInputKey];
|
|
10003
|
-
if (otherConfig
|
|
10004
|
-
|
|
10005
|
-
const
|
|
10006
|
+
if ((otherConfig === null || otherConfig === void 0 ? void 0 : otherConfig.type) === 'dataLink') {
|
|
10007
|
+
var _otherConfig$meta, _config$meta;
|
|
10008
|
+
const siblingTableKeys = (otherConfig === null || otherConfig === void 0 || (_otherConfig$meta = otherConfig.meta) === null || _otherConfig$meta === void 0 ? void 0 : _otherConfig$meta.tableKeys) || [];
|
|
10009
|
+
const additionalTableKeys = ((_config$meta = config.meta) === null || _config$meta === void 0 ? void 0 : _config$meta.additionalTableKeys) || [];
|
|
10006
10010
|
const allSiblingKeys = [...siblingTableKeys, ...additionalTableKeys];
|
|
10007
10011
|
return allSiblingKeys.includes(inputKey) && otherInputKey !== inputKey;
|
|
10008
10012
|
}
|
|
@@ -10016,23 +10020,26 @@ const handleDataLinkGroupWithTableKeys = ({
|
|
|
10016
10020
|
return null;
|
|
10017
10021
|
}
|
|
10018
10022
|
const tableKeys = inputConfig.meta.tableKeys;
|
|
10019
|
-
const additionalTableKeys = config.meta
|
|
10023
|
+
const additionalTableKeys = ((_config$meta2 = config.meta) === null || _config$meta2 === void 0 ? void 0 : _config$meta2.additionalTableKeys) || [];
|
|
10020
10024
|
const parentInputKeys = Object.keys(config.inputs || {});
|
|
10021
10025
|
const siblingInputsMatchingTableKeys = parentInputKeys.filter(siblingKey => siblingKey !== inputKey).filter(siblingKey => tableKeys.includes(siblingKey) || additionalTableKeys.includes(siblingKey));
|
|
10022
10026
|
[...new Set([...tableKeys, ...siblingInputsMatchingTableKeys])];
|
|
10023
|
-
const isAjaxModal = React.useMemo(() =>
|
|
10027
|
+
const isAjaxModal = React.useMemo(() => {
|
|
10028
|
+
var _inputConfig$meta2;
|
|
10029
|
+
return !!(inputConfig !== null && inputConfig !== void 0 && (_inputConfig$meta2 = inputConfig.meta) !== null && _inputConfig$meta2 !== void 0 && _inputConfig$meta2.namespace);
|
|
10030
|
+
}, [inputConfig]);
|
|
10024
10031
|
const ajaxModalValues = useAjaxModal$2({
|
|
10025
10032
|
name: inputKey,
|
|
10026
10033
|
user,
|
|
10027
|
-
namespace: inputConfig
|
|
10028
|
-
skipFetch: inputConfig
|
|
10034
|
+
namespace: inputConfig === null || inputConfig === void 0 || (_inputConfig$meta3 = inputConfig.meta) === null || _inputConfig$meta3 === void 0 ? void 0 : _inputConfig$meta3.namespace,
|
|
10035
|
+
skipFetch: inputConfig === null || inputConfig === void 0 || (_inputConfig$meta4 = inputConfig.meta) === null || _inputConfig$meta4 === void 0 ? void 0 : _inputConfig$meta4.skipFetch,
|
|
10029
10036
|
isAjaxModal,
|
|
10030
|
-
formScope: inputConfig
|
|
10037
|
+
formScope: inputConfig === null || inputConfig === void 0 || (_inputConfig$meta5 = inputConfig.meta) === null || _inputConfig$meta5 === void 0 ? void 0 : _inputConfig$meta5.formScope,
|
|
10031
10038
|
APP: app,
|
|
10032
10039
|
apiBaseUrl: getApiBaseUrl(),
|
|
10033
10040
|
_getAppHeader: getAppHeader
|
|
10034
10041
|
});
|
|
10035
|
-
const dataLinkForm = ajaxModalValues
|
|
10042
|
+
const dataLinkForm = ajaxModalValues === null || ajaxModalValues === void 0 ? void 0 : ajaxModalValues.form;
|
|
10036
10043
|
const createInputsAndValues = item => {
|
|
10037
10044
|
const inputs = {};
|
|
10038
10045
|
const values = {};
|
|
@@ -10044,12 +10051,12 @@ const handleDataLinkGroupWithTableKeys = ({
|
|
|
10044
10051
|
'videos': 'Video'
|
|
10045
10052
|
};
|
|
10046
10053
|
tableKeys.filter(tableKey => tableKey !== 'datastakeId').forEach(tableKey => {
|
|
10047
|
-
|
|
10054
|
+
var _dataLinkForm$identif;
|
|
10055
|
+
const formInputConfig = (dataLinkForm === null || dataLinkForm === void 0 ? void 0 : dataLinkForm[tableKey]) || (dataLinkForm === null || dataLinkForm === void 0 || (_dataLinkForm$identif = dataLinkForm['identification']) === null || _dataLinkForm$identif === void 0 ? void 0 : _dataLinkForm$identif[tableKey]);
|
|
10048
10056
|
if (formInputConfig) {
|
|
10049
|
-
inputs[tableKey] = {
|
|
10050
|
-
...formInputConfig,
|
|
10057
|
+
inputs[tableKey] = _objectSpread2(_objectSpread2({}, formInputConfig), {}, {
|
|
10051
10058
|
label: uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : formInputConfig.label || formInputConfig.tableLabel || tableKey
|
|
10052
|
-
};
|
|
10059
|
+
});
|
|
10053
10060
|
if (formInputConfig.label && typeof formInputConfig.label === 'object') {
|
|
10054
10061
|
const dynamicLabelKeys = Object.keys(formInputConfig.label);
|
|
10055
10062
|
let resolvedLabel = null;
|
|
@@ -10057,7 +10064,7 @@ const handleDataLinkGroupWithTableKeys = ({
|
|
|
10057
10064
|
const parts = labelKey.split(' is ');
|
|
10058
10065
|
if (parts.length === 2) {
|
|
10059
10066
|
const [conditionKey, conditionValue] = parts;
|
|
10060
|
-
if (item
|
|
10067
|
+
if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
|
|
10061
10068
|
resolvedLabel = formInputConfig.label[labelKey];
|
|
10062
10069
|
break;
|
|
10063
10070
|
}
|
|
@@ -10065,37 +10072,37 @@ const handleDataLinkGroupWithTableKeys = ({
|
|
|
10065
10072
|
}
|
|
10066
10073
|
inputs[tableKey].label = resolvedLabel || Object.values(formInputConfig.label)[0] || (uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey);
|
|
10067
10074
|
}
|
|
10068
|
-
values[tableKey] = item
|
|
10075
|
+
values[tableKey] = item === null || item === void 0 ? void 0 : item[tableKey];
|
|
10069
10076
|
} else {
|
|
10077
|
+
var _item$linking;
|
|
10070
10078
|
inputs[tableKey] = {
|
|
10071
10079
|
label: uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey,
|
|
10072
|
-
type: inputConfig
|
|
10080
|
+
type: inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.type
|
|
10073
10081
|
};
|
|
10074
|
-
values[tableKey] = item
|
|
10082
|
+
values[tableKey] = (item === null || item === void 0 || (_item$linking = item.linking) === null || _item$linking === void 0 || (_item$linking = _item$linking.SCL) === null || _item$linking === void 0 || (_item$linking = _item$linking[item === null || item === void 0 ? void 0 : item[tableKey]]) === null || _item$linking === void 0 ? void 0 : _item$linking.name) || (item === null || item === void 0 ? void 0 : item[tableKey]);
|
|
10075
10083
|
}
|
|
10076
10084
|
});
|
|
10077
10085
|
siblingInputsMatchingTableKeys.forEach(siblingKey => {
|
|
10078
10086
|
const siblingConfig = config.inputs[siblingKey];
|
|
10079
10087
|
if (siblingConfig) {
|
|
10080
|
-
inputs[siblingKey] = {
|
|
10081
|
-
...siblingConfig,
|
|
10088
|
+
inputs[siblingKey] = _objectSpread2(_objectSpread2({}, siblingConfig), {}, {
|
|
10082
10089
|
label: siblingConfig.label || siblingKey
|
|
10083
|
-
};
|
|
10084
|
-
values[siblingKey] = item
|
|
10090
|
+
});
|
|
10091
|
+
values[siblingKey] = item === null || item === void 0 ? void 0 : item[siblingKey];
|
|
10085
10092
|
}
|
|
10086
10093
|
});
|
|
10087
|
-
if (dataLinkForm
|
|
10094
|
+
if (dataLinkForm !== null && dataLinkForm !== void 0 && dataLinkForm.identification && typeof dataLinkForm.identification === 'object') {
|
|
10088
10095
|
Object.keys(dataLinkForm.identification).filter(fieldKey => fieldKey !== 'datastakeId' && !tableKeys.includes(fieldKey)).filter(fieldKey => {
|
|
10089
10096
|
const formInputConfig = dataLinkForm.identification[fieldKey];
|
|
10090
10097
|
return formInputConfig && typeof formInputConfig === 'object' && !Array.isArray(formInputConfig);
|
|
10091
10098
|
}).forEach(fieldKey => {
|
|
10099
|
+
var _item$linking2;
|
|
10092
10100
|
const formInputConfig = dataLinkForm.identification[fieldKey];
|
|
10093
|
-
inputs[fieldKey] = {
|
|
10094
|
-
...formInputConfig,
|
|
10101
|
+
inputs[fieldKey] = _objectSpread2(_objectSpread2({}, formInputConfig), {}, {
|
|
10095
10102
|
label: uploadTypeFields.includes(fieldKey) ? uploadTypeLabels[fieldKey] : formInputConfig.label || formInputConfig.tableLabel || fieldKey
|
|
10096
|
-
};
|
|
10097
|
-
if (formInputConfig
|
|
10098
|
-
const dynamicLabelKeys = Object.keys(formInputConfig
|
|
10103
|
+
});
|
|
10104
|
+
if (formInputConfig !== null && formInputConfig !== void 0 && formInputConfig.label && typeof (formInputConfig === null || formInputConfig === void 0 ? void 0 : formInputConfig.label) === 'object') {
|
|
10105
|
+
const dynamicLabelKeys = Object.keys(formInputConfig === null || formInputConfig === void 0 ? void 0 : formInputConfig.label);
|
|
10099
10106
|
let resolvedLabel = null;
|
|
10100
10107
|
for (const labelKey of dynamicLabelKeys) {
|
|
10101
10108
|
const parts = labelKey.split(' is ');
|
|
@@ -10104,7 +10111,7 @@ const handleDataLinkGroupWithTableKeys = ({
|
|
|
10104
10111
|
const flattenedItem = Object.assign({}, item.location, {
|
|
10105
10112
|
address: item.address
|
|
10106
10113
|
});
|
|
10107
|
-
if (flattenedItem
|
|
10114
|
+
if ((flattenedItem === null || flattenedItem === void 0 ? void 0 : flattenedItem[conditionKey]) === conditionValue) {
|
|
10108
10115
|
resolvedLabel = formInputConfig.label[labelKey];
|
|
10109
10116
|
break;
|
|
10110
10117
|
}
|
|
@@ -10112,7 +10119,7 @@ const handleDataLinkGroupWithTableKeys = ({
|
|
|
10112
10119
|
}
|
|
10113
10120
|
inputs[fieldKey].label = resolvedLabel || Object.values(formInputConfig.label)[0] || (uploadTypeFields.includes(fieldKey) ? uploadTypeLabels[fieldKey] : fieldKey);
|
|
10114
10121
|
}
|
|
10115
|
-
values[fieldKey] = item
|
|
10122
|
+
values[fieldKey] = (item === null || item === void 0 || (_item$linking2 = item.linking) === null || _item$linking2 === void 0 || (_item$linking2 = _item$linking2.SCL) === null || _item$linking2 === void 0 || (_item$linking2 = _item$linking2[item === null || item === void 0 ? void 0 : item[fieldKey]]) === null || _item$linking2 === void 0 ? void 0 : _item$linking2.name) || (item === null || item === void 0 ? void 0 : item[fieldKey]);
|
|
10116
10123
|
});
|
|
10117
10124
|
}
|
|
10118
10125
|
return {
|
|
@@ -10122,16 +10129,17 @@ const handleDataLinkGroupWithTableKeys = ({
|
|
|
10122
10129
|
};
|
|
10123
10130
|
if (Array.isArray(value)) {
|
|
10124
10131
|
return value.map((item, itemIndex) => {
|
|
10132
|
+
var _merged$inputKey;
|
|
10125
10133
|
const merged = mergeObject(item);
|
|
10126
|
-
const datastakeIdValue = merged
|
|
10134
|
+
const datastakeIdValue = (merged === null || merged === void 0 || (_merged$inputKey = merged[inputKey]) === null || _merged$inputKey === void 0 ? void 0 : _merged$inputKey.datastakeId) || (merged === null || merged === void 0 ? void 0 : merged.datastakeId);
|
|
10127
10135
|
const {
|
|
10128
10136
|
inputs,
|
|
10129
10137
|
values
|
|
10130
10138
|
} = createInputsAndValues(merged);
|
|
10131
10139
|
return /*#__PURE__*/jsxRuntime.jsx(TreeNodeComponent, {
|
|
10132
|
-
nodeKey: datastakeIdValue || t(
|
|
10140
|
+
nodeKey: datastakeIdValue || t("No ID ".concat(itemIndex + 1)),
|
|
10133
10141
|
config: {
|
|
10134
|
-
label: datastakeIdValue || t(
|
|
10142
|
+
label: datastakeIdValue || t("No ID ".concat(itemIndex + 1)),
|
|
10135
10143
|
type: 'custom-datalink-group',
|
|
10136
10144
|
inputs: inputs
|
|
10137
10145
|
},
|
|
@@ -10145,11 +10153,12 @@ const handleDataLinkGroupWithTableKeys = ({
|
|
|
10145
10153
|
getApiBaseUrl: getApiBaseUrl,
|
|
10146
10154
|
getAppHeader: getAppHeader,
|
|
10147
10155
|
app: app
|
|
10148
|
-
},
|
|
10156
|
+
}, "".concat(inputKey, "-").concat(itemIndex));
|
|
10149
10157
|
});
|
|
10150
10158
|
} else {
|
|
10159
|
+
var _merged$inputKey2;
|
|
10151
10160
|
const merged = mergeObject(value);
|
|
10152
|
-
const datastakeIdValue = merged
|
|
10161
|
+
const datastakeIdValue = (merged === null || merged === void 0 || (_merged$inputKey2 = merged[inputKey]) === null || _merged$inputKey2 === void 0 ? void 0 : _merged$inputKey2.datastakeId) || (merged === null || merged === void 0 ? void 0 : merged.datastakeId);
|
|
10153
10162
|
const {
|
|
10154
10163
|
inputs,
|
|
10155
10164
|
values
|
|
@@ -10171,7 +10180,7 @@ const handleDataLinkGroupWithTableKeys = ({
|
|
|
10171
10180
|
getApiBaseUrl: getApiBaseUrl,
|
|
10172
10181
|
getAppHeader: getAppHeader,
|
|
10173
10182
|
app: app
|
|
10174
|
-
},
|
|
10183
|
+
}, "".concat(inputKey, "-group"));
|
|
10175
10184
|
}
|
|
10176
10185
|
};
|
|
10177
10186
|
|
|
@@ -11682,7 +11691,7 @@ Widget.propTypes = {
|
|
|
11682
11691
|
};
|
|
11683
11692
|
Widget.displayName = 'Widget';
|
|
11684
11693
|
|
|
11685
|
-
const _excluded$
|
|
11694
|
+
const _excluded$s = ["loading", "title", "image", "description", "imgAlt", "noDescriptionText", "isPdf"];
|
|
11686
11695
|
function ImageWidget(_ref) {
|
|
11687
11696
|
let {
|
|
11688
11697
|
loading = false,
|
|
@@ -11693,7 +11702,7 @@ function ImageWidget(_ref) {
|
|
|
11693
11702
|
noDescriptionText,
|
|
11694
11703
|
isPdf = false
|
|
11695
11704
|
} = _ref,
|
|
11696
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11705
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
11697
11706
|
const expandable = isPdf ? false : props.expandable;
|
|
11698
11707
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
|
|
11699
11708
|
loading: loading,
|
|
@@ -11753,7 +11762,7 @@ function ImageWidget(_ref) {
|
|
|
11753
11762
|
ImageWidget.displayName = 'ImageWidget';
|
|
11754
11763
|
|
|
11755
11764
|
var _templateObject$c;
|
|
11756
|
-
const _excluded$
|
|
11765
|
+
const _excluded$r = ["title", "loading", "data", "current", "defaultActiveTab", "widgetClassname", "className", "direction"];
|
|
11757
11766
|
function FlowWidget(_ref) {
|
|
11758
11767
|
let {
|
|
11759
11768
|
title,
|
|
@@ -11765,7 +11774,7 @@ function FlowWidget(_ref) {
|
|
|
11765
11774
|
className,
|
|
11766
11775
|
direction = "horizontal"
|
|
11767
11776
|
} = _ref,
|
|
11768
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11777
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
11769
11778
|
const [activeTab, setActiveTab] = React.useState();
|
|
11770
11779
|
React.useEffect(() => {
|
|
11771
11780
|
if (defaultActiveTab) {
|
|
@@ -12022,12 +12031,45 @@ const Style$O = styled__default["default"].div`
|
|
|
12022
12031
|
margin-top: 14px;
|
|
12023
12032
|
}
|
|
12024
12033
|
}
|
|
12034
|
+
|
|
12035
|
+
&.row-item-with-icon {
|
|
12036
|
+
display: flex;
|
|
12037
|
+
align-items: center;
|
|
12038
|
+
justify-content: space-between;
|
|
12039
|
+
gap: 8px;
|
|
12040
|
+
|
|
12041
|
+
h4 {
|
|
12042
|
+
margin-bottom: 0;
|
|
12043
|
+
flex: 0 0 auto;
|
|
12044
|
+
}
|
|
12045
|
+
|
|
12046
|
+
.flex {
|
|
12047
|
+
flex: 0 0 auto;
|
|
12048
|
+
display: flex;
|
|
12049
|
+
align-items: center;
|
|
12050
|
+
font-size: 16px;
|
|
12051
|
+
font-weight: 500;
|
|
12052
|
+
line-height: 38px;
|
|
12053
|
+
letter-spacing: 0;
|
|
12054
|
+
color: var(--base-gray-90);
|
|
12055
|
+
font-family: 'SF UI Display', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
12056
|
+
}
|
|
12057
|
+
}
|
|
12025
12058
|
}
|
|
12026
12059
|
|
|
12027
12060
|
&.small-content {
|
|
12028
12061
|
span {
|
|
12029
12062
|
font-size: 16px;
|
|
12030
12063
|
}
|
|
12064
|
+
|
|
12065
|
+
.row-item-with-icon {
|
|
12066
|
+
.flex {
|
|
12067
|
+
font-size: 16px;
|
|
12068
|
+
line-height: 38px;
|
|
12069
|
+
font-weight: 500;
|
|
12070
|
+
color: var(--base-gray-90);
|
|
12071
|
+
}
|
|
12072
|
+
}
|
|
12031
12073
|
}
|
|
12032
12074
|
|
|
12033
12075
|
.ant-tag {
|
|
@@ -12137,6 +12179,50 @@ const NoMinWidth$1 = styled__default["default"].div`
|
|
|
12137
12179
|
}
|
|
12138
12180
|
`;
|
|
12139
12181
|
|
|
12182
|
+
const LabelWithIcon = ({
|
|
12183
|
+
t,
|
|
12184
|
+
name,
|
|
12185
|
+
icon,
|
|
12186
|
+
iconColor = "#028788",
|
|
12187
|
+
iconWidth = 16,
|
|
12188
|
+
iconHeight = 16
|
|
12189
|
+
}) => {
|
|
12190
|
+
// name is expected to be already translated (string) or a translation key
|
|
12191
|
+
// If it's a string that looks like a translation key (contains '::'), translate it
|
|
12192
|
+
// Otherwise, use it as-is (already translated)
|
|
12193
|
+
const displayText = typeof name === 'string' && name.includes('::') && t && typeof t === 'function' ? t(name) : name;
|
|
12194
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
12195
|
+
className: "flex items-center",
|
|
12196
|
+
style: {
|
|
12197
|
+
gap: 8
|
|
12198
|
+
},
|
|
12199
|
+
children: [icon && /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
12200
|
+
name: icon,
|
|
12201
|
+
color: iconColor,
|
|
12202
|
+
width: iconWidth,
|
|
12203
|
+
height: iconHeight
|
|
12204
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
12205
|
+
style: {
|
|
12206
|
+
fontSize: '14px',
|
|
12207
|
+
fontWeight: 500,
|
|
12208
|
+
lineHeight: '26px',
|
|
12209
|
+
letterSpacing: '0%',
|
|
12210
|
+
color: 'var(--base-gray-70)',
|
|
12211
|
+
fontFamily: 'SF UI Display, -apple-system, BlinkMacSystemFont, sans-serif'
|
|
12212
|
+
},
|
|
12213
|
+
children: displayText
|
|
12214
|
+
})]
|
|
12215
|
+
});
|
|
12216
|
+
};
|
|
12217
|
+
LabelWithIcon.propTypes = {
|
|
12218
|
+
t: PropTypes__default["default"].func,
|
|
12219
|
+
name: PropTypes__default["default"].string.isRequired,
|
|
12220
|
+
icon: PropTypes__default["default"].string,
|
|
12221
|
+
iconColor: PropTypes__default["default"].string,
|
|
12222
|
+
iconWidth: PropTypes__default["default"].number,
|
|
12223
|
+
iconHeight: PropTypes__default["default"].number
|
|
12224
|
+
};
|
|
12225
|
+
|
|
12140
12226
|
function KeyIndicatorsWidget$1(_ref) {
|
|
12141
12227
|
let {
|
|
12142
12228
|
t = s => s,
|
|
@@ -12158,10 +12244,12 @@ function KeyIndicatorsWidget$1(_ref) {
|
|
|
12158
12244
|
children: [children, /*#__PURE__*/jsxRuntime.jsx(Style$O, {
|
|
12159
12245
|
className: formatClassname(["flex", className]),
|
|
12160
12246
|
children: config.map((c, i) => /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
12161
|
-
className: "row-item",
|
|
12247
|
+
className: "row-item ".concat(c.icon ? 'row-item-with-icon' : ''),
|
|
12162
12248
|
children: [/*#__PURE__*/jsxRuntime.jsx(Label$2, {
|
|
12163
12249
|
label: c.label,
|
|
12164
|
-
|
|
12250
|
+
icon: c.icon,
|
|
12251
|
+
withTooltip: withTooltip,
|
|
12252
|
+
t: t
|
|
12165
12253
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
12166
12254
|
className: "flex",
|
|
12167
12255
|
children: c.render()
|
|
@@ -12179,8 +12267,29 @@ function KeyIndicatorsWidget$1(_ref) {
|
|
|
12179
12267
|
function Label$2(_ref2) {
|
|
12180
12268
|
let {
|
|
12181
12269
|
label,
|
|
12182
|
-
|
|
12270
|
+
icon,
|
|
12271
|
+
withTooltip,
|
|
12272
|
+
t
|
|
12183
12273
|
} = _ref2;
|
|
12274
|
+
if (icon) {
|
|
12275
|
+
const labelContent = /*#__PURE__*/jsxRuntime.jsx(LabelWithIcon, {
|
|
12276
|
+
t: t,
|
|
12277
|
+
name: label,
|
|
12278
|
+
icon: icon
|
|
12279
|
+
});
|
|
12280
|
+
if (withTooltip) {
|
|
12281
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
12282
|
+
title: label,
|
|
12283
|
+
placement: "topLeft",
|
|
12284
|
+
children: /*#__PURE__*/jsxRuntime.jsx("h4", {
|
|
12285
|
+
children: labelContent
|
|
12286
|
+
})
|
|
12287
|
+
});
|
|
12288
|
+
}
|
|
12289
|
+
return /*#__PURE__*/jsxRuntime.jsx("h4", {
|
|
12290
|
+
children: labelContent
|
|
12291
|
+
});
|
|
12292
|
+
}
|
|
12184
12293
|
if (withTooltip) {
|
|
12185
12294
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
12186
12295
|
title: label,
|
|
@@ -12294,6 +12403,40 @@ const Style$N = styled__default["default"].div`
|
|
|
12294
12403
|
}
|
|
12295
12404
|
}
|
|
12296
12405
|
}
|
|
12406
|
+
|
|
12407
|
+
&.single-column {
|
|
12408
|
+
grid-template-columns: 1fr;
|
|
12409
|
+
|
|
12410
|
+
.indicator-item {
|
|
12411
|
+
/* Remove the 2-column specific separators first */
|
|
12412
|
+
&:nth-child(1),
|
|
12413
|
+
&:nth-child(2),
|
|
12414
|
+
&:nth-child(3),
|
|
12415
|
+
&:nth-child(4) {
|
|
12416
|
+
&::after {
|
|
12417
|
+
display: none !important;
|
|
12418
|
+
}
|
|
12419
|
+
}
|
|
12420
|
+
|
|
12421
|
+
/* On single column, all items except last get separator */
|
|
12422
|
+
&:not(:last-child) {
|
|
12423
|
+
&::after {
|
|
12424
|
+
content: '' !important;
|
|
12425
|
+
position: absolute;
|
|
12426
|
+
bottom: 0;
|
|
12427
|
+
left: var(--size-lg);
|
|
12428
|
+
right: var(--size-lg);
|
|
12429
|
+
height: 1px;
|
|
12430
|
+
background-color: var(--border-color, #E5E7EB);
|
|
12431
|
+
display: block !important;
|
|
12432
|
+
}
|
|
12433
|
+
}
|
|
12434
|
+
|
|
12435
|
+
&:last-child::after {
|
|
12436
|
+
display: none !important;
|
|
12437
|
+
}
|
|
12438
|
+
}
|
|
12439
|
+
}
|
|
12297
12440
|
`;
|
|
12298
12441
|
const NoMinWidth = styled__default["default"].div`
|
|
12299
12442
|
.indicator-item {
|
|
@@ -15318,7 +15461,7 @@ Map$3.propTypes = {
|
|
|
15318
15461
|
link: PropTypes__default["default"].any
|
|
15319
15462
|
};
|
|
15320
15463
|
|
|
15321
|
-
const _excluded$
|
|
15464
|
+
const _excluded$q = ["isExpanded", "shouldRenderMap", "renderKey", "title", "loading", "t", "user", "data", "height", "widgetConfig"];
|
|
15322
15465
|
function InExpandableWidgetMap(_ref) {
|
|
15323
15466
|
let {
|
|
15324
15467
|
isExpanded,
|
|
@@ -15332,7 +15475,7 @@ function InExpandableWidgetMap(_ref) {
|
|
|
15332
15475
|
height,
|
|
15333
15476
|
widgetConfig
|
|
15334
15477
|
} = _ref,
|
|
15335
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15478
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
15336
15479
|
const [mapKey, setMapKey] = React.useState(0);
|
|
15337
15480
|
const [isMapReady, setIsMapReady] = React.useState(false);
|
|
15338
15481
|
React.useEffect(() => {
|
|
@@ -17532,14 +17675,14 @@ const MapConfig = ({
|
|
|
17532
17675
|
});
|
|
17533
17676
|
};
|
|
17534
17677
|
|
|
17535
|
-
const _excluded$
|
|
17678
|
+
const _excluded$p = ["config", "title", "loading"];
|
|
17536
17679
|
const Details = _ref => {
|
|
17537
17680
|
let {
|
|
17538
17681
|
config = [],
|
|
17539
17682
|
title,
|
|
17540
17683
|
loading = false
|
|
17541
17684
|
} = _ref,
|
|
17542
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17685
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
17543
17686
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
|
|
17544
17687
|
className: "with-border-header h-w-btn-header card",
|
|
17545
17688
|
loading: loading,
|
|
@@ -17555,14 +17698,14 @@ const Details = _ref => {
|
|
|
17555
17698
|
}));
|
|
17556
17699
|
};
|
|
17557
17700
|
|
|
17558
|
-
const _excluded$
|
|
17701
|
+
const _excluded$o = ["config", "title", "loading"];
|
|
17559
17702
|
const KeyIndicatorsDetails = _ref => {
|
|
17560
17703
|
let {
|
|
17561
17704
|
config,
|
|
17562
17705
|
title,
|
|
17563
17706
|
loading = false
|
|
17564
17707
|
} = _ref,
|
|
17565
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17708
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
17566
17709
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
|
|
17567
17710
|
className: "with-border-header h-w-btn-header",
|
|
17568
17711
|
title: title,
|
|
@@ -17592,7 +17735,7 @@ const Style$G = styled__default["default"].div`
|
|
|
17592
17735
|
}
|
|
17593
17736
|
`;
|
|
17594
17737
|
|
|
17595
|
-
const _excluded$
|
|
17738
|
+
const _excluded$n = ["children", "config", "detailsTitle", "firstColumnWidth"];
|
|
17596
17739
|
const DetailsSection = _ref => {
|
|
17597
17740
|
let {
|
|
17598
17741
|
children,
|
|
@@ -17600,7 +17743,7 @@ const DetailsSection = _ref => {
|
|
|
17600
17743
|
detailsTitle,
|
|
17601
17744
|
firstColumnWidth = "250px"
|
|
17602
17745
|
} = _ref,
|
|
17603
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17746
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
17604
17747
|
return /*#__PURE__*/jsxRuntime.jsx(Style$G, {
|
|
17605
17748
|
firstColumnWidth: firstColumnWidth,
|
|
17606
17749
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -17776,14 +17919,14 @@ const getGoalConfig = () => {
|
|
|
17776
17919
|
};
|
|
17777
17920
|
|
|
17778
17921
|
var _templateObject$a;
|
|
17779
|
-
const _excluded$
|
|
17922
|
+
const _excluded$m = ["title", "activeSdgGoals", "t"];
|
|
17780
17923
|
function SDGWidget(_ref) {
|
|
17781
17924
|
let {
|
|
17782
17925
|
title = "Sustainable Development Goals",
|
|
17783
17926
|
activeSdgGoals = [],
|
|
17784
17927
|
t = key => key
|
|
17785
17928
|
} = _ref,
|
|
17786
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
17929
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
17787
17930
|
const sdgConfig = getGoalConfig();
|
|
17788
17931
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
|
|
17789
17932
|
title: title,
|
|
@@ -18081,7 +18224,7 @@ function SdgList({
|
|
|
18081
18224
|
});
|
|
18082
18225
|
}
|
|
18083
18226
|
|
|
18084
|
-
const _excluded$
|
|
18227
|
+
const _excluded$l = ["title", "description", "onLinkClick", "image", "linkIcon", "sdgList", "items", "onCardClick", "hideSDGList", "t"];
|
|
18085
18228
|
const {
|
|
18086
18229
|
Meta
|
|
18087
18230
|
} = antd.Card;
|
|
@@ -18101,7 +18244,7 @@ function ProjectWidget(_ref) {
|
|
|
18101
18244
|
hideSDGList = false,
|
|
18102
18245
|
t = x => x
|
|
18103
18246
|
} = _ref,
|
|
18104
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
18247
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
18105
18248
|
const [isHovered, setIsHovered] = React__default["default"].useState(false);
|
|
18106
18249
|
const {
|
|
18107
18250
|
token
|
|
@@ -18373,13 +18516,13 @@ const WidgetCard = _ref => {
|
|
|
18373
18516
|
});
|
|
18374
18517
|
};
|
|
18375
18518
|
|
|
18376
|
-
const _excluded$
|
|
18519
|
+
const _excluded$k = ["title", "children"];
|
|
18377
18520
|
const CarouselWidget = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
18378
18521
|
let {
|
|
18379
18522
|
title,
|
|
18380
18523
|
children
|
|
18381
18524
|
} = _ref,
|
|
18382
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
18525
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
18383
18526
|
/**
|
|
18384
18527
|
* Handles carousel slide change events
|
|
18385
18528
|
* @param {number} currentSlide - The index of the current slide after change
|
|
@@ -18543,7 +18686,7 @@ const EmptyStateContainer = styled__default["default"].div`
|
|
|
18543
18686
|
}
|
|
18544
18687
|
`;
|
|
18545
18688
|
|
|
18546
|
-
const _excluded$
|
|
18689
|
+
const _excluded$j = ["title", "images", "height", "fallback", "activeDotColor", "inactiveDotColor", "arrowIconColor", "arrowHoverIconColor", "customArrows", "emptyLogo", "emptyText"];
|
|
18547
18690
|
function ImageCarousel(_ref) {
|
|
18548
18691
|
let {
|
|
18549
18692
|
title,
|
|
@@ -18558,7 +18701,7 @@ function ImageCarousel(_ref) {
|
|
|
18558
18701
|
emptyLogo = antd.Empty.PRESENTED_IMAGE_SIMPLE,
|
|
18559
18702
|
emptyText = "No Image"
|
|
18560
18703
|
} = _ref,
|
|
18561
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
18704
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
18562
18705
|
const [previewVisible, setPreviewVisible] = React.useState(false);
|
|
18563
18706
|
const [current, setCurrent] = React.useState(0);
|
|
18564
18707
|
const carouselRef = React.useRef(null);
|
|
@@ -24114,7 +24257,7 @@ const RepeatableModals = ({
|
|
|
24114
24257
|
}) : null;
|
|
24115
24258
|
};
|
|
24116
24259
|
|
|
24117
|
-
const _excluded$
|
|
24260
|
+
const _excluded$i = ["viewGroup"],
|
|
24118
24261
|
_excluded2$1 = ["label", "icon", "position"];
|
|
24119
24262
|
const Content$1 = _ref => {
|
|
24120
24263
|
let {
|
|
@@ -24183,7 +24326,7 @@ const Content$1 = _ref => {
|
|
|
24183
24326
|
if (groups[gKey].viewGroup === key) {
|
|
24184
24327
|
// eslint-disable-next-line no-unused-vars
|
|
24185
24328
|
const _groups$gKey = groups[gKey],
|
|
24186
|
-
gCfg = _objectWithoutProperties(_groups$gKey, _excluded$
|
|
24329
|
+
gCfg = _objectWithoutProperties(_groups$gKey, _excluded$i);
|
|
24187
24330
|
items[gKey] = gCfg;
|
|
24188
24331
|
}
|
|
24189
24332
|
return items;
|
|
@@ -24441,7 +24584,7 @@ const Content$1 = _ref => {
|
|
|
24441
24584
|
});
|
|
24442
24585
|
};
|
|
24443
24586
|
|
|
24444
|
-
const _excluded$
|
|
24587
|
+
const _excluded$h = ["t", "open", "title", "children", "onClose", "onSuccess", "cancelBtnText", "saveBtnText", "className", "loading", "disabled", "withModalFormWrapper"];
|
|
24445
24588
|
function Modal(_ref) {
|
|
24446
24589
|
let {
|
|
24447
24590
|
t = text => text,
|
|
@@ -24457,7 +24600,7 @@ function Modal(_ref) {
|
|
|
24457
24600
|
disabled = false,
|
|
24458
24601
|
withModalFormWrapper = true
|
|
24459
24602
|
} = _ref,
|
|
24460
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
24603
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
24461
24604
|
return /*#__PURE__*/jsxRuntime.jsxs(antd.Modal, _objectSpread2(_objectSpread2({
|
|
24462
24605
|
width: 650,
|
|
24463
24606
|
footer: null,
|
|
@@ -34993,7 +35136,7 @@ const beforeUpload = allowedExtensions => file => {
|
|
|
34993
35136
|
};
|
|
34994
35137
|
const allowedImageExtensions = ['.jpg', '.jpeg', '.png', '.gif', '.webp', '.avif', '.bmp', '.tiff', '.tif', '.heif', '.heic', '.svg', '.ico'];
|
|
34995
35138
|
|
|
34996
|
-
const _excluded$
|
|
35139
|
+
const _excluded$g = ["placeholder"],
|
|
34997
35140
|
_excluded2 = ["label", "description", "excludeFromEdit", "showFormIf", "icon", "position", "template", "formClass"];
|
|
34998
35141
|
dayjs__default["default"].extend(utc);
|
|
34999
35142
|
dayjs__default["default"].extend(timezone);
|
|
@@ -35942,7 +36085,7 @@ const inputTypeComponent$1 = {
|
|
|
35942
36085
|
},
|
|
35943
36086
|
commentHint
|
|
35944
36087
|
} = _ref19,
|
|
35945
|
-
props = _objectWithoutProperties(_ref19.props, _excluded$
|
|
36088
|
+
props = _objectWithoutProperties(_ref19.props, _excluded$g);
|
|
35946
36089
|
let {
|
|
35947
36090
|
onChange,
|
|
35948
36091
|
value,
|
|
@@ -38624,7 +38767,7 @@ function AjaxSelect(props) {
|
|
|
38624
38767
|
}, props));
|
|
38625
38768
|
}
|
|
38626
38769
|
|
|
38627
|
-
const _excluded$
|
|
38770
|
+
const _excluded$f = ["placeholder"];
|
|
38628
38771
|
const propHasValue = val => {
|
|
38629
38772
|
if (Array.isArray(val)) {
|
|
38630
38773
|
return val.length > 0 ? true : false;
|
|
@@ -39379,7 +39522,7 @@ const inputTypeComponent = {
|
|
|
39379
39522
|
},
|
|
39380
39523
|
commentHint
|
|
39381
39524
|
} = _ref15,
|
|
39382
|
-
props = _objectWithoutProperties(_ref15.props, _excluded$
|
|
39525
|
+
props = _objectWithoutProperties(_ref15.props, _excluded$f);
|
|
39383
39526
|
let {
|
|
39384
39527
|
onChange,
|
|
39385
39528
|
value
|
|
@@ -41017,7 +41160,7 @@ const getGrouContent = (form, values, i, formId, excludedKeys, getData, setValue
|
|
|
41017
41160
|
});
|
|
41018
41161
|
};
|
|
41019
41162
|
|
|
41020
|
-
const _excluded$
|
|
41163
|
+
const _excluded$e = ["icon"];
|
|
41021
41164
|
function DynamicForm(_ref) {
|
|
41022
41165
|
var _data$meta;
|
|
41023
41166
|
let {
|
|
@@ -41632,7 +41775,7 @@ function DynamicForm(_ref) {
|
|
|
41632
41775
|
let {
|
|
41633
41776
|
icon: Icon
|
|
41634
41777
|
} = _ref3,
|
|
41635
|
-
form = _objectWithoutProperties(_ref3, _excluded$
|
|
41778
|
+
form = _objectWithoutProperties(_ref3, _excluded$e);
|
|
41636
41779
|
return /*#__PURE__*/jsxRuntime.jsxs(antd.Button, {
|
|
41637
41780
|
type: "link",
|
|
41638
41781
|
size: "large",
|
|
@@ -41850,7 +41993,7 @@ const Navigation = _ref => {
|
|
|
41850
41993
|
var _templateObject$7;
|
|
41851
41994
|
const StyledSelect = styled__default["default"](antd.Select)(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteral(["\n width: 100%;\n \n .ant-select-arrow {\n margin-top: 1px !important;\n }\n"])));
|
|
41852
41995
|
|
|
41853
|
-
const _excluded$
|
|
41996
|
+
const _excluded$d = ["onChange", "value"];
|
|
41854
41997
|
function AuthForm(_ref) {
|
|
41855
41998
|
var _steps$currentStep;
|
|
41856
41999
|
let {
|
|
@@ -41980,7 +42123,7 @@ function AuthForm(_ref) {
|
|
|
41980
42123
|
{
|
|
41981
42124
|
var _field$options;
|
|
41982
42125
|
const _ref3 = field.props || {},
|
|
41983
|
-
restSelectProps = _objectWithoutProperties(_ref3, _excluded$
|
|
42126
|
+
restSelectProps = _objectWithoutProperties(_ref3, _excluded$d);
|
|
41984
42127
|
inputNode = /*#__PURE__*/jsxRuntime.jsx(StyledSelect, _objectSpread2(_objectSpread2({
|
|
41985
42128
|
placeholder: field.placeholder
|
|
41986
42129
|
}, restSelectProps), {}, {
|
|
@@ -42144,7 +42287,7 @@ function MultiBarProgress(_ref) {
|
|
|
42144
42287
|
}
|
|
42145
42288
|
const Style$x = styled__default["default"].div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n\theight: 6px;\n\twidth: 100%;\n\tbackground: var(--base-gray-40);\n\tborder-radius: 8px;\n\tdisplay: flex;\n\toverflow: hidden;\n\tdiv {\n\t\theight: 100%;\n\t}\n"])));
|
|
42146
42289
|
|
|
42147
|
-
const _excluded$
|
|
42290
|
+
const _excluded$c = ["tooltipTitle", "percentage", "strokeColor", "showInfo"];
|
|
42148
42291
|
function MultiColorProgressBar(_ref) {
|
|
42149
42292
|
let {
|
|
42150
42293
|
tooltipTitle,
|
|
@@ -42156,7 +42299,7 @@ function MultiColorProgressBar(_ref) {
|
|
|
42156
42299
|
},
|
|
42157
42300
|
showInfo = false
|
|
42158
42301
|
} = _ref,
|
|
42159
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
42302
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
42160
42303
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
42161
42304
|
title: tooltipTitle,
|
|
42162
42305
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Progress, _objectSpread2({
|
|
@@ -42203,7 +42346,7 @@ const SideIcon = _ref3 => {
|
|
|
42203
42346
|
});
|
|
42204
42347
|
};
|
|
42205
42348
|
|
|
42206
|
-
const _excluded$
|
|
42349
|
+
const _excluded$b = ["value", "options", "onChange", "className", "width"];
|
|
42207
42350
|
const ProgressTabs = _ref => {
|
|
42208
42351
|
let {
|
|
42209
42352
|
value = 'setup',
|
|
@@ -42224,7 +42367,7 @@ const ProgressTabs = _ref => {
|
|
|
42224
42367
|
className = '',
|
|
42225
42368
|
width = '100%'
|
|
42226
42369
|
} = _ref,
|
|
42227
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
42370
|
+
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
42228
42371
|
// Transform options to include icons and handle disabled state
|
|
42229
42372
|
const transformedOptions = options.map(option => _objectSpread2(_objectSpread2({}, option), {}, {
|
|
42230
42373
|
label: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -44439,6 +44582,7 @@ const getDefaultActiveFilters = (params, selectFiltersConfig, defaultPageSize, d
|
|
|
44439
44582
|
});
|
|
44440
44583
|
return o;
|
|
44441
44584
|
};
|
|
44585
|
+
const NEW_PAGINATION_APPS = ["nashiriki"];
|
|
44442
44586
|
const filterParams = (value, module) => {
|
|
44443
44587
|
const {
|
|
44444
44588
|
activeFilters,
|
|
@@ -44454,12 +44598,10 @@ const filterParams = (value, module) => {
|
|
|
44454
44598
|
...filters
|
|
44455
44599
|
} = activeFilters || {};
|
|
44456
44600
|
const params = {};
|
|
44457
|
-
|
|
44458
|
-
|
|
44459
|
-
|
|
44460
|
-
|
|
44461
|
-
take: pageSize || 20
|
|
44462
|
-
};
|
|
44601
|
+
params.pagination = JSON.stringify({
|
|
44602
|
+
[NEW_PAGINATION_APPS.includes(module) ? "skip" : "page"]: page,
|
|
44603
|
+
[NEW_PAGINATION_APPS.includes(module) ? "take" : "pageSize"]: pageSize
|
|
44604
|
+
});
|
|
44463
44605
|
if (search && searchParams) {
|
|
44464
44606
|
params.search = JSON.stringify({
|
|
44465
44607
|
qs: search,
|
|
@@ -44474,24 +44616,12 @@ const filterParams = (value, module) => {
|
|
|
44474
44616
|
}
|
|
44475
44617
|
if (Object.keys(filters).length) {
|
|
44476
44618
|
if (value.sourceId && value.sourceId === "overview") {
|
|
44477
|
-
|
|
44478
|
-
activeTab,
|
|
44479
|
-
...restFilters
|
|
44480
|
-
} = filters;
|
|
44481
|
-
Object.assign(params, restFilters);
|
|
44482
|
-
if (activeTab !== undefined) {
|
|
44483
|
-
params.tab = activeTab;
|
|
44484
|
-
}
|
|
44619
|
+
params.filters = JSON.stringify(filters);
|
|
44485
44620
|
} else {
|
|
44486
|
-
|
|
44487
|
-
|
|
44488
|
-
|
|
44489
|
-
|
|
44490
|
-
} = filters;
|
|
44491
|
-
Object.assign(params, restFilters);
|
|
44492
|
-
if (activeTab !== undefined) {
|
|
44493
|
-
params.tab = activeTab;
|
|
44494
|
-
}
|
|
44621
|
+
params.filters = JSON.stringify({
|
|
44622
|
+
...filters,
|
|
44623
|
+
authorId: undefined
|
|
44624
|
+
});
|
|
44495
44625
|
}
|
|
44496
44626
|
}
|
|
44497
44627
|
return {
|
|
@@ -44789,7 +44919,7 @@ const renderRows = ({
|
|
|
44789
44919
|
});
|
|
44790
44920
|
};
|
|
44791
44921
|
|
|
44792
|
-
const _excluded$
|
|
44922
|
+
const _excluded$a = ["page", "pageSize"];
|
|
44793
44923
|
function DataStoreTable$1(_ref) {
|
|
44794
44924
|
let {
|
|
44795
44925
|
mod,
|
|
@@ -44887,7 +45017,7 @@ function DataStoreTable$1(_ref) {
|
|
|
44887
45017
|
page,
|
|
44888
45018
|
pageSize
|
|
44889
45019
|
} = activeFilters,
|
|
44890
|
-
rest = _objectWithoutProperties(activeFilters, _excluded$
|
|
45020
|
+
rest = _objectWithoutProperties(activeFilters, _excluded$a);
|
|
44891
45021
|
const params = _objectSpread2({
|
|
44892
45022
|
pagination: {
|
|
44893
45023
|
page,
|
|
@@ -45207,7 +45337,7 @@ const getLinkedColumns = ({
|
|
|
45207
45337
|
ellipsis: true
|
|
45208
45338
|
}];
|
|
45209
45339
|
|
|
45210
|
-
const _excluded$
|
|
45340
|
+
const _excluded$9 = ["administrativeLevel1", "administrativeLevel2"];
|
|
45211
45341
|
function DataStoreView(_ref) {
|
|
45212
45342
|
let {
|
|
45213
45343
|
mod,
|
|
@@ -45270,7 +45400,7 @@ function DataStoreView(_ref) {
|
|
|
45270
45400
|
administrativeLevel1,
|
|
45271
45401
|
administrativeLevel2
|
|
45272
45402
|
} = _ref2,
|
|
45273
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
45403
|
+
rest = _objectWithoutProperties(_ref2, _excluded$9);
|
|
45274
45404
|
const levels = [administrativeLevel1, administrativeLevel2].filter(p => !!p);
|
|
45275
45405
|
let levelsRes = {
|
|
45276
45406
|
data: []
|
|
@@ -46768,14 +46898,14 @@ const TabsStyled = styled__default["default"](antd.Tabs)`
|
|
|
46768
46898
|
|
|
46769
46899
|
`;
|
|
46770
46900
|
|
|
46771
|
-
const _excluded$
|
|
46901
|
+
const _excluded$8 = ["defaultActiveKey", "items", "onChange"];
|
|
46772
46902
|
const StyledTabs = _ref => {
|
|
46773
46903
|
let {
|
|
46774
46904
|
defaultActiveKey,
|
|
46775
46905
|
items,
|
|
46776
46906
|
onChange
|
|
46777
46907
|
} = _ref,
|
|
46778
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46908
|
+
rest = _objectWithoutProperties(_ref, _excluded$8);
|
|
46779
46909
|
return /*#__PURE__*/jsxRuntime.jsx(TabsStyled, _objectSpread2({
|
|
46780
46910
|
defaultActiveKey: defaultActiveKey,
|
|
46781
46911
|
items: items,
|
|
@@ -46846,7 +46976,7 @@ const Container$1 = styled__default["default"].div`
|
|
|
46846
46976
|
width: ${props => props.isPdf ? props.width ? props.width : '1000px' : 'calc(100% - 48px)'};
|
|
46847
46977
|
`;
|
|
46848
46978
|
|
|
46849
|
-
const _excluded$
|
|
46979
|
+
const _excluded$7 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "isPercentage", "seriesField", "formattedYAxis", "formattedXAxis", "color", "height", "t", "isPdf", "legendConfig", "width", "xAxisConfig"];
|
|
46850
46980
|
const {
|
|
46851
46981
|
useToken: useToken$g
|
|
46852
46982
|
} = antd.theme;
|
|
@@ -46936,7 +47066,7 @@ function BarChart(_ref) {
|
|
|
46936
47066
|
width,
|
|
46937
47067
|
xAxisConfig = {}
|
|
46938
47068
|
} = _ref;
|
|
46939
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
47069
|
+
_objectWithoutProperties(_ref, _excluded$7);
|
|
46940
47070
|
const containerRef = React__default["default"].useRef(null);
|
|
46941
47071
|
const chartRef = React__default["default"].useRef(null);
|
|
46942
47072
|
const {
|
|
@@ -47020,7 +47150,7 @@ function BarChart(_ref) {
|
|
|
47020
47150
|
});
|
|
47021
47151
|
}
|
|
47022
47152
|
|
|
47023
|
-
const _excluded$
|
|
47153
|
+
const _excluded$6 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isSmooth", "seriesField", "isArea", "formattedYAxis", "formattedXAxis", "color", "isPercentage", "height", "autoHideXLabel", "t", "isPdf", "legendConfig", "width", "yAxis", "xAxis"];
|
|
47024
47154
|
const {
|
|
47025
47155
|
useToken: useToken$f
|
|
47026
47156
|
} = antd.theme;
|
|
@@ -47109,7 +47239,7 @@ function LineChart(_ref) {
|
|
|
47109
47239
|
yAxis: customYAxis,
|
|
47110
47240
|
xAxis: customXAxis
|
|
47111
47241
|
} = _ref;
|
|
47112
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
47242
|
+
_objectWithoutProperties(_ref, _excluded$6);
|
|
47113
47243
|
const containerRef = React__default["default"].useRef(null);
|
|
47114
47244
|
const chartRef = React__default["default"].useRef(null);
|
|
47115
47245
|
const {
|
|
@@ -47211,7 +47341,7 @@ function LineChart(_ref) {
|
|
|
47211
47341
|
});
|
|
47212
47342
|
}
|
|
47213
47343
|
|
|
47214
|
-
const _excluded$
|
|
47344
|
+
const _excluded$5 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "seriesField", "isPercentage", "showBackground", "formattedYAxis", "formattedXAxis", "color", "height", "groupField", "width", "legendConfig", "isPdf", "yAxis", "xAxis"];
|
|
47215
47345
|
const {
|
|
47216
47346
|
useToken: useToken$e
|
|
47217
47347
|
} = antd.theme;
|
|
@@ -47316,7 +47446,7 @@ function ColumnChart(_ref) {
|
|
|
47316
47446
|
yAxis: customYAxis,
|
|
47317
47447
|
xAxis: customXAxis
|
|
47318
47448
|
} = _ref;
|
|
47319
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
47449
|
+
_objectWithoutProperties(_ref, _excluded$5);
|
|
47320
47450
|
const containerRef = React__default["default"].useRef(null);
|
|
47321
47451
|
const chartRef = React__default["default"].useRef(null);
|
|
47322
47452
|
const {
|
|
@@ -47584,7 +47714,7 @@ function RadialBarChart(_ref) {
|
|
|
47584
47714
|
});
|
|
47585
47715
|
}
|
|
47586
47716
|
|
|
47587
|
-
const _excluded$
|
|
47717
|
+
const _excluded$4 = ["data", "angleField", "colorField", "color", "height", "innerRadius", "radius", "legend", "label", "statistic", "tooltip", "renderTooltipContent", "tooltipConfig", "meta", "animation", "t", "isPdf", "legendConfig"];
|
|
47588
47718
|
const {
|
|
47589
47719
|
useToken: useToken$c
|
|
47590
47720
|
} = antd.theme;
|
|
@@ -47659,7 +47789,7 @@ function DonutPie(_ref) {
|
|
|
47659
47789
|
isPdf = false,
|
|
47660
47790
|
legendConfig = {}
|
|
47661
47791
|
} = _ref,
|
|
47662
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47792
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
47663
47793
|
const containerRef = React.useRef(null);
|
|
47664
47794
|
const chartRef = React.useRef(null);
|
|
47665
47795
|
const {
|
|
@@ -48179,7 +48309,7 @@ function StackChart(_ref) {
|
|
|
48179
48309
|
});
|
|
48180
48310
|
}
|
|
48181
48311
|
|
|
48182
|
-
const _excluded$
|
|
48312
|
+
const _excluded$3 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "fillOpacity", "height", "t", "isPdf", "legendConfig", "width"];
|
|
48183
48313
|
const {
|
|
48184
48314
|
useToken: useToken$a
|
|
48185
48315
|
} = antd.theme;
|
|
@@ -48256,7 +48386,7 @@ const AreaChart = _ref => {
|
|
|
48256
48386
|
legendConfig = {},
|
|
48257
48387
|
width
|
|
48258
48388
|
} = _ref,
|
|
48259
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48389
|
+
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
48260
48390
|
const containerRef = React.useRef(null);
|
|
48261
48391
|
const chartRef = React.useRef(null);
|
|
48262
48392
|
const {
|
|
@@ -48344,7 +48474,7 @@ const AreaChart = _ref => {
|
|
|
48344
48474
|
});
|
|
48345
48475
|
};
|
|
48346
48476
|
|
|
48347
|
-
const _excluded$
|
|
48477
|
+
const _excluded$2 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "score", "height", "isPdf", "legendConfig"];
|
|
48348
48478
|
const {
|
|
48349
48479
|
useToken: useToken$9
|
|
48350
48480
|
} = antd.theme;
|
|
@@ -48369,7 +48499,7 @@ const RadarChart = _ref => {
|
|
|
48369
48499
|
isPdf = false,
|
|
48370
48500
|
legendConfig = {}
|
|
48371
48501
|
} = _ref,
|
|
48372
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48502
|
+
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
48373
48503
|
const containerRef = React.useRef(null);
|
|
48374
48504
|
const chartRef = React.useRef(null);
|
|
48375
48505
|
const {
|
|
@@ -50701,7 +50831,7 @@ function StakeholderMappings(_ref3) {
|
|
|
50701
50831
|
}
|
|
50702
50832
|
var index = withProvider(StakeholderMappings);
|
|
50703
50833
|
|
|
50704
|
-
const _excluded$
|
|
50834
|
+
const _excluded$1 = ["t", "checkboxConfig", "defaultTableFilters", "columns", "children", "data", "loading", "APP", "getApiBaseUrl", "selectOptions", "selectFilters", "showCreate", "location", "goTo", "getRedirectLink", "defaultUrlParams", "view", "module", "filtersConfig", "isMobile"];
|
|
50705
50835
|
const BaseScreen = _ref => {
|
|
50706
50836
|
var _data$data;
|
|
50707
50837
|
let {
|
|
@@ -50739,7 +50869,7 @@ const BaseScreen = _ref => {
|
|
|
50739
50869
|
filtersConfig,
|
|
50740
50870
|
isMobile
|
|
50741
50871
|
} = _ref,
|
|
50742
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50872
|
+
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
50743
50873
|
const [showFilters, setShowFilters] = React.useState(false);
|
|
50744
50874
|
const [hasError, setHasError] = React.useState(false);
|
|
50745
50875
|
const {
|
|
@@ -51172,7 +51302,6 @@ function useUserGrowth({
|
|
|
51172
51302
|
const {
|
|
51173
51303
|
token
|
|
51174
51304
|
} = useToken$6();
|
|
51175
|
-
console.log("mainData", mainData);
|
|
51176
51305
|
const fetchData = () => {
|
|
51177
51306
|
const {
|
|
51178
51307
|
dates = []
|
|
@@ -51308,7 +51437,6 @@ function UserGrowth({
|
|
|
51308
51437
|
t,
|
|
51309
51438
|
translationKeys
|
|
51310
51439
|
});
|
|
51311
|
-
console.log("usergrowthhhhh", data);
|
|
51312
51440
|
React.useEffect(() => {
|
|
51313
51441
|
if (typeof fetchUserGrowth === "function") {
|
|
51314
51442
|
fetchUserGrowth(selectValue);
|
|
@@ -51436,7 +51564,6 @@ function TopContributors({
|
|
|
51436
51564
|
data,
|
|
51437
51565
|
t
|
|
51438
51566
|
});
|
|
51439
|
-
console.log("topcontributorshhhh", data);
|
|
51440
51567
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, {
|
|
51441
51568
|
title: t(`admin::top-contributors`),
|
|
51442
51569
|
className: "with-border-header overflow-hidden h-w-btn-header",
|
|
@@ -51707,6 +51834,7 @@ function AddUserModal({
|
|
|
51707
51834
|
setAccountUsed(true);
|
|
51708
51835
|
}).catch(() => {});
|
|
51709
51836
|
};
|
|
51837
|
+
console.log("hellooooooooooooooooooooooooo");
|
|
51710
51838
|
return /*#__PURE__*/jsxRuntime.jsx(Modal, {
|
|
51711
51839
|
open: isOpen,
|
|
51712
51840
|
title: "admin::edit-user",
|
|
@@ -51832,7 +51960,7 @@ const renderTypeTag = ({
|
|
|
51832
51960
|
});
|
|
51833
51961
|
};
|
|
51834
51962
|
|
|
51835
|
-
const getColumns$
|
|
51963
|
+
const getColumns$6 = ({
|
|
51836
51964
|
t,
|
|
51837
51965
|
show = "show",
|
|
51838
51966
|
selectOptions,
|
|
@@ -52316,7 +52444,7 @@ function UserTable(_ref) {
|
|
|
52316
52444
|
role: config.userRoles.filter(c => !c.isForAppAdmin)
|
|
52317
52445
|
};
|
|
52318
52446
|
}, [config.userRoles, config.accountTypes, accounts]);
|
|
52319
|
-
const columns = React.useMemo(() => getColumns$
|
|
52447
|
+
const columns = React.useMemo(() => getColumns$6({
|
|
52320
52448
|
t,
|
|
52321
52449
|
show: activeTab,
|
|
52322
52450
|
selectOptions,
|
|
@@ -52412,7 +52540,7 @@ function UserTable(_ref) {
|
|
|
52412
52540
|
});
|
|
52413
52541
|
}
|
|
52414
52542
|
|
|
52415
|
-
const getColumns$
|
|
52543
|
+
const getColumns$5 = ({
|
|
52416
52544
|
t,
|
|
52417
52545
|
goTo,
|
|
52418
52546
|
show = "show",
|
|
@@ -52765,7 +52893,7 @@ const getTabs$1 = ({
|
|
|
52765
52893
|
label: t("Suspended")
|
|
52766
52894
|
}];
|
|
52767
52895
|
|
|
52768
|
-
const getColumns$
|
|
52896
|
+
const getColumns$4 = ({
|
|
52769
52897
|
t,
|
|
52770
52898
|
selectOptions,
|
|
52771
52899
|
module
|
|
@@ -52888,7 +53016,7 @@ function CombineAccountModal({
|
|
|
52888
53016
|
} = useToken$4();
|
|
52889
53017
|
const [MainForm] = antd.Form.useForm();
|
|
52890
53018
|
const columns = React.useMemo(() => {
|
|
52891
|
-
return getColumns$
|
|
53019
|
+
return getColumns$4({
|
|
52892
53020
|
t,
|
|
52893
53021
|
selectOptions,
|
|
52894
53022
|
module
|
|
@@ -53057,7 +53185,7 @@ function NewAccount({
|
|
|
53057
53185
|
};
|
|
53058
53186
|
return /*#__PURE__*/jsxRuntime.jsx(Modal, {
|
|
53059
53187
|
t: t,
|
|
53060
|
-
title: t(isEdit ? "edit-account" : "add-account"),
|
|
53188
|
+
title: t(isEdit ? "admin::edit-account" : "admin::add-account"),
|
|
53061
53189
|
open: isOpen,
|
|
53062
53190
|
onClose: onClose,
|
|
53063
53191
|
onSuccess: onSubmit,
|
|
@@ -53191,7 +53319,7 @@ function AccountTable(_ref) {
|
|
|
53191
53319
|
onCancel: () => {}
|
|
53192
53320
|
});
|
|
53193
53321
|
}, [t, fetchData, fetchPendingAccounts]);
|
|
53194
|
-
const columns = React.useMemo(() => getColumns$
|
|
53322
|
+
const columns = React.useMemo(() => getColumns$5({
|
|
53195
53323
|
t,
|
|
53196
53324
|
show: activeTab,
|
|
53197
53325
|
selectOptions,
|
|
@@ -53362,12 +53490,233 @@ const checkboxConfig$8 = {
|
|
|
53362
53490
|
name: "Name",
|
|
53363
53491
|
datastakeId: "ID"
|
|
53364
53492
|
};
|
|
53365
|
-
const getNameByLevel
|
|
53493
|
+
const getNameByLevel = (data, level) => {
|
|
53366
53494
|
const entry = Object.values(data || {}).find(item => item.level === level);
|
|
53367
53495
|
return entry;
|
|
53368
53496
|
};
|
|
53369
53497
|
|
|
53370
|
-
const getColumns$
|
|
53498
|
+
const getColumns$3 = ({
|
|
53499
|
+
t,
|
|
53500
|
+
goTo = () => {},
|
|
53501
|
+
show = "show",
|
|
53502
|
+
getRedirectLink = () => {},
|
|
53503
|
+
token,
|
|
53504
|
+
selectedSubjects,
|
|
53505
|
+
setSelectedSubjects,
|
|
53506
|
+
selectOptions,
|
|
53507
|
+
entity
|
|
53508
|
+
}) => {
|
|
53509
|
+
const cols = [{
|
|
53510
|
+
title: "",
|
|
53511
|
+
dataIndex: "select",
|
|
53512
|
+
key: "select",
|
|
53513
|
+
width: 50,
|
|
53514
|
+
show: true,
|
|
53515
|
+
render: (v, all) => {
|
|
53516
|
+
if (all.empty) {
|
|
53517
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53518
|
+
className: "daf-default-cell"
|
|
53519
|
+
});
|
|
53520
|
+
}
|
|
53521
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Checkbox, {
|
|
53522
|
+
onChange: () => setSelectedSubjects(prev => {
|
|
53523
|
+
const isSelected = prev.some(p => p.id === all.id);
|
|
53524
|
+
if (isSelected) {
|
|
53525
|
+
return prev.filter(p => p.id !== all.id);
|
|
53526
|
+
}
|
|
53527
|
+
return [...prev, all];
|
|
53528
|
+
}),
|
|
53529
|
+
checked: selectedSubjects.some(p => p.id === all.id),
|
|
53530
|
+
disabled: selectedSubjects?.length >= 3 && !selectedSubjects.some(p => p.id === all.id)
|
|
53531
|
+
});
|
|
53532
|
+
}
|
|
53533
|
+
}, {
|
|
53534
|
+
title: t("ID"),
|
|
53535
|
+
dataIndex: "datastakeId",
|
|
53536
|
+
key: "datastakeId",
|
|
53537
|
+
ellipsis: true,
|
|
53538
|
+
show: true,
|
|
53539
|
+
render: (value, all) => {
|
|
53540
|
+
if (all.empty) {
|
|
53541
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53542
|
+
className: "daf-default-cell"
|
|
53543
|
+
});
|
|
53544
|
+
}
|
|
53545
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53546
|
+
title: value,
|
|
53547
|
+
children: value
|
|
53548
|
+
});
|
|
53549
|
+
}
|
|
53550
|
+
}, {
|
|
53551
|
+
title: t("Name"),
|
|
53552
|
+
dataIndex: "name",
|
|
53553
|
+
key: "name",
|
|
53554
|
+
ellipsis: true,
|
|
53555
|
+
show: true,
|
|
53556
|
+
render: (value, all) => {
|
|
53557
|
+
if (all.empty) {
|
|
53558
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53559
|
+
className: "daf-default-cell"
|
|
53560
|
+
});
|
|
53561
|
+
}
|
|
53562
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53563
|
+
title: value,
|
|
53564
|
+
children: value
|
|
53565
|
+
});
|
|
53566
|
+
}
|
|
53567
|
+
}, {
|
|
53568
|
+
title: t("Category"),
|
|
53569
|
+
dataIndex: "category",
|
|
53570
|
+
key: "category",
|
|
53571
|
+
ellipsis: true,
|
|
53572
|
+
show: true,
|
|
53573
|
+
render: (value, all) => {
|
|
53574
|
+
if (all.empty) {
|
|
53575
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53576
|
+
className: "daf-default-cell"
|
|
53577
|
+
});
|
|
53578
|
+
}
|
|
53579
|
+
const category = findOptions(value, selectOptions?.category || []) || "--";
|
|
53580
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53581
|
+
title: category,
|
|
53582
|
+
children: category
|
|
53583
|
+
});
|
|
53584
|
+
}
|
|
53585
|
+
}, {
|
|
53586
|
+
title: t("Country"),
|
|
53587
|
+
dataIndex: "country",
|
|
53588
|
+
key: "country",
|
|
53589
|
+
ellipsis: true,
|
|
53590
|
+
show: true,
|
|
53591
|
+
render: (value, all) => {
|
|
53592
|
+
if (all.empty) {
|
|
53593
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53594
|
+
className: "daf-default-cell"
|
|
53595
|
+
});
|
|
53596
|
+
}
|
|
53597
|
+
const country = findOptions(value, selectOptions?.country || []) || "--";
|
|
53598
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53599
|
+
title: country,
|
|
53600
|
+
children: country
|
|
53601
|
+
});
|
|
53602
|
+
}
|
|
53603
|
+
}, {
|
|
53604
|
+
title: t("Province"),
|
|
53605
|
+
dataIndex: "administrativeLevel1",
|
|
53606
|
+
key: "administrativeLevel1",
|
|
53607
|
+
ellipsis: true,
|
|
53608
|
+
show: entity.includes("locations"),
|
|
53609
|
+
render: (value, all) => {
|
|
53610
|
+
if (all.empty) {
|
|
53611
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53612
|
+
className: "daf-default-cell"
|
|
53613
|
+
});
|
|
53614
|
+
}
|
|
53615
|
+
let label;
|
|
53616
|
+
if (all?.administrativeLevel1 && value === all?.administrativeLevel1) {
|
|
53617
|
+
label = all?.linking?.SCL?.[value]?.name;
|
|
53618
|
+
} else {
|
|
53619
|
+
label = getNameByLevel(all?.linking?.SCL, "level_1")?.name;
|
|
53620
|
+
}
|
|
53621
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53622
|
+
title: label || '-',
|
|
53623
|
+
children: label || '-'
|
|
53624
|
+
});
|
|
53625
|
+
}
|
|
53626
|
+
}, {
|
|
53627
|
+
title: t("Territory"),
|
|
53628
|
+
dataIndex: "administrativeLevel2",
|
|
53629
|
+
key: "administrativeLevel2",
|
|
53630
|
+
show: entity.includes("locations"),
|
|
53631
|
+
ellipsis: true,
|
|
53632
|
+
render: (value, all) => {
|
|
53633
|
+
if (all.empty) {
|
|
53634
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53635
|
+
className: "daf-default-cell"
|
|
53636
|
+
});
|
|
53637
|
+
}
|
|
53638
|
+
let label;
|
|
53639
|
+
if (all?.administrativeLevel2 && value === all?.administrativeLevel2) {
|
|
53640
|
+
label = all?.linking?.SCL?.[value]?.name;
|
|
53641
|
+
} else {
|
|
53642
|
+
label = getNameByLevel(all?.linking?.SCL, "level_2")?.name;
|
|
53643
|
+
}
|
|
53644
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53645
|
+
title: label || '-',
|
|
53646
|
+
children: label || '-'
|
|
53647
|
+
});
|
|
53648
|
+
}
|
|
53649
|
+
}, {
|
|
53650
|
+
title: t("Sources"),
|
|
53651
|
+
dataIndex: "sources",
|
|
53652
|
+
key: "sources",
|
|
53653
|
+
show: true,
|
|
53654
|
+
render: (value, all) => {
|
|
53655
|
+
if (all.empty) {
|
|
53656
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53657
|
+
className: "daf-default-cell"
|
|
53658
|
+
});
|
|
53659
|
+
}
|
|
53660
|
+
const MAX_SOURCES = 3;
|
|
53661
|
+
const count = value?.length === MAX_SOURCES + 1 ? value?.length : MAX_SOURCES;
|
|
53662
|
+
return Array.isArray(value) && value?.length > 0 ? /*#__PURE__*/jsxRuntime.jsx(antd.Avatar.Group, {
|
|
53663
|
+
max: {
|
|
53664
|
+
count: count,
|
|
53665
|
+
style: {
|
|
53666
|
+
color: token.baseGray90,
|
|
53667
|
+
backgroundColor: token.baseGray20,
|
|
53668
|
+
border: `1px solid ${token.baseGray40}`
|
|
53669
|
+
}
|
|
53670
|
+
},
|
|
53671
|
+
size: "small",
|
|
53672
|
+
children: value.map((v, i) => /*#__PURE__*/jsxRuntime.jsx(antd.Avatar, {
|
|
53673
|
+
size: "small",
|
|
53674
|
+
style: {
|
|
53675
|
+
backgroundColor: token.baseGray20,
|
|
53676
|
+
color: token.baseGray90,
|
|
53677
|
+
border: `1px solid ${token.baseGray40}`,
|
|
53678
|
+
display: "flex",
|
|
53679
|
+
alignItems: "center",
|
|
53680
|
+
justifyContent: "center"
|
|
53681
|
+
},
|
|
53682
|
+
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
53683
|
+
name: "Organisation02",
|
|
53684
|
+
width: 18,
|
|
53685
|
+
height: 18,
|
|
53686
|
+
color: token.baseGray90
|
|
53687
|
+
})
|
|
53688
|
+
}, i))
|
|
53689
|
+
}) : '-';
|
|
53690
|
+
}
|
|
53691
|
+
}, {
|
|
53692
|
+
title: "",
|
|
53693
|
+
dataIndex: "actions",
|
|
53694
|
+
key: "actions",
|
|
53695
|
+
width: 60,
|
|
53696
|
+
show: true,
|
|
53697
|
+
render: (value, all) => {
|
|
53698
|
+
if (all.empty) {
|
|
53699
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53700
|
+
className: "daf-default-cell"
|
|
53701
|
+
});
|
|
53702
|
+
}
|
|
53703
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53704
|
+
className: "cursor-pointer",
|
|
53705
|
+
onClick: () => {
|
|
53706
|
+
goTo(getRedirectLink(`/app/accounts/view/${all.id}/details`));
|
|
53707
|
+
},
|
|
53708
|
+
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
53709
|
+
name: "Link",
|
|
53710
|
+
width: 18,
|
|
53711
|
+
height: 18
|
|
53712
|
+
})
|
|
53713
|
+
});
|
|
53714
|
+
}
|
|
53715
|
+
}];
|
|
53716
|
+
return cols.filter(c => c[show]);
|
|
53717
|
+
};
|
|
53718
|
+
|
|
53719
|
+
const getColumns$2 = ({
|
|
53371
53720
|
t,
|
|
53372
53721
|
selectOptions,
|
|
53373
53722
|
module,
|
|
@@ -53430,7 +53779,7 @@ const getColumns$4 = ({
|
|
|
53430
53779
|
if (all?.administrativeLevel1 && value === all?.administrativeLevel1) {
|
|
53431
53780
|
label = all?.linking?.SCL?.[value]?.name;
|
|
53432
53781
|
} else {
|
|
53433
|
-
label = getNameByLevel
|
|
53782
|
+
label = getNameByLevel(all?.linking?.SCL, "level_1")?.name;
|
|
53434
53783
|
}
|
|
53435
53784
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53436
53785
|
title: label || '-',
|
|
@@ -53447,7 +53796,7 @@ const getColumns$4 = ({
|
|
|
53447
53796
|
if (all?.administrativeLevel2 && value === all?.administrativeLevel2) {
|
|
53448
53797
|
label = all?.linking?.SCL?.[value]?.name;
|
|
53449
53798
|
} else {
|
|
53450
|
-
label = getNameByLevel
|
|
53799
|
+
label = getNameByLevel(all?.linking?.SCL, "level_2")?.name;
|
|
53451
53800
|
}
|
|
53452
53801
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53453
53802
|
title: label || '-',
|
|
@@ -53476,7 +53825,7 @@ function CombineLocationModal({
|
|
|
53476
53825
|
const [MainForm] = antd.Form.useForm();
|
|
53477
53826
|
const [isDisabled, setIsDisabled] = React.useState(true);
|
|
53478
53827
|
const columns = React.useMemo(() => {
|
|
53479
|
-
return getColumns$
|
|
53828
|
+
return getColumns$2({
|
|
53480
53829
|
t,
|
|
53481
53830
|
selectOptions,
|
|
53482
53831
|
module,
|
|
@@ -53594,7 +53943,7 @@ function CombineLocationModal({
|
|
|
53594
53943
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
|
|
53595
53944
|
placeholder: t("Province"),
|
|
53596
53945
|
options: selectedLocations.map(location => {
|
|
53597
|
-
const _data = getNameByLevel
|
|
53946
|
+
const _data = getNameByLevel(location?.linking?.SCL, "level_1");
|
|
53598
53947
|
return {
|
|
53599
53948
|
label: _data?.name || "-",
|
|
53600
53949
|
value: _data?.id || "-"
|
|
@@ -53607,7 +53956,7 @@ function CombineLocationModal({
|
|
|
53607
53956
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
|
|
53608
53957
|
placeholder: t("Territory"),
|
|
53609
53958
|
options: selectedLocations.map(location => {
|
|
53610
|
-
const _data = getNameByLevel
|
|
53959
|
+
const _data = getNameByLevel(location?.linking?.SCL, "level_2");
|
|
53611
53960
|
return {
|
|
53612
53961
|
label: _data?.name || "-",
|
|
53613
53962
|
value: _data?.id || "-"
|
|
@@ -53625,233 +53974,6 @@ function CombineLocationModal({
|
|
|
53625
53974
|
});
|
|
53626
53975
|
}
|
|
53627
53976
|
|
|
53628
|
-
const getNameByLevel = (data, level) => {
|
|
53629
|
-
const entry = Object.values(data || {}).find(item => item.level === level);
|
|
53630
|
-
return entry;
|
|
53631
|
-
};
|
|
53632
|
-
|
|
53633
|
-
const getColumns$3 = ({
|
|
53634
|
-
t,
|
|
53635
|
-
goTo = () => {},
|
|
53636
|
-
show = "show",
|
|
53637
|
-
getRedirectLink = () => {},
|
|
53638
|
-
token,
|
|
53639
|
-
selectedLocations,
|
|
53640
|
-
setSelectedLocations,
|
|
53641
|
-
selectOptions,
|
|
53642
|
-
entity
|
|
53643
|
-
}) => {
|
|
53644
|
-
const cols = [{
|
|
53645
|
-
title: "",
|
|
53646
|
-
dataIndex: "select",
|
|
53647
|
-
key: "select",
|
|
53648
|
-
width: 50,
|
|
53649
|
-
show: true,
|
|
53650
|
-
render: (v, all) => {
|
|
53651
|
-
if (all.empty) {
|
|
53652
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53653
|
-
className: "daf-default-cell"
|
|
53654
|
-
});
|
|
53655
|
-
}
|
|
53656
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Checkbox, {
|
|
53657
|
-
onChange: () => setSelectedLocations(prev => {
|
|
53658
|
-
const isSelected = prev.some(p => p.id === all.id);
|
|
53659
|
-
if (isSelected) {
|
|
53660
|
-
return prev.filter(p => p.id !== all.id);
|
|
53661
|
-
}
|
|
53662
|
-
return [...prev, all];
|
|
53663
|
-
}),
|
|
53664
|
-
checked: selectedLocations.some(p => p.id === all.id),
|
|
53665
|
-
disabled: selectedLocations?.length >= 3 && !selectedLocations.some(p => p.id === all.id)
|
|
53666
|
-
});
|
|
53667
|
-
}
|
|
53668
|
-
}, {
|
|
53669
|
-
title: t("ID"),
|
|
53670
|
-
dataIndex: "datastakeId",
|
|
53671
|
-
key: "datastakeId",
|
|
53672
|
-
ellipsis: true,
|
|
53673
|
-
show: true,
|
|
53674
|
-
render: (value, all) => {
|
|
53675
|
-
if (all.empty) {
|
|
53676
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53677
|
-
className: "daf-default-cell"
|
|
53678
|
-
});
|
|
53679
|
-
}
|
|
53680
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53681
|
-
title: value,
|
|
53682
|
-
children: value
|
|
53683
|
-
});
|
|
53684
|
-
}
|
|
53685
|
-
}, {
|
|
53686
|
-
title: t("Name"),
|
|
53687
|
-
dataIndex: "name",
|
|
53688
|
-
key: "name",
|
|
53689
|
-
ellipsis: true,
|
|
53690
|
-
show: true,
|
|
53691
|
-
render: (value, all) => {
|
|
53692
|
-
if (all.empty) {
|
|
53693
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53694
|
-
className: "daf-default-cell"
|
|
53695
|
-
});
|
|
53696
|
-
}
|
|
53697
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53698
|
-
title: value,
|
|
53699
|
-
children: value
|
|
53700
|
-
});
|
|
53701
|
-
}
|
|
53702
|
-
}, {
|
|
53703
|
-
title: t("Category"),
|
|
53704
|
-
dataIndex: "category",
|
|
53705
|
-
key: "category",
|
|
53706
|
-
ellipsis: true,
|
|
53707
|
-
show: true,
|
|
53708
|
-
render: (value, all) => {
|
|
53709
|
-
if (all.empty) {
|
|
53710
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53711
|
-
className: "daf-default-cell"
|
|
53712
|
-
});
|
|
53713
|
-
}
|
|
53714
|
-
const category = findOptions(value, selectOptions?.category || []) || "--";
|
|
53715
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53716
|
-
title: category,
|
|
53717
|
-
children: category
|
|
53718
|
-
});
|
|
53719
|
-
}
|
|
53720
|
-
}, {
|
|
53721
|
-
title: t("Country"),
|
|
53722
|
-
dataIndex: "country",
|
|
53723
|
-
key: "country",
|
|
53724
|
-
ellipsis: true,
|
|
53725
|
-
show: true,
|
|
53726
|
-
render: (value, all) => {
|
|
53727
|
-
if (all.empty) {
|
|
53728
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53729
|
-
className: "daf-default-cell"
|
|
53730
|
-
});
|
|
53731
|
-
}
|
|
53732
|
-
const country = findOptions(value, selectOptions?.country || []) || "--";
|
|
53733
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53734
|
-
title: country,
|
|
53735
|
-
children: country
|
|
53736
|
-
});
|
|
53737
|
-
}
|
|
53738
|
-
}, {
|
|
53739
|
-
title: t("Admin Level 1"),
|
|
53740
|
-
dataIndex: "administrativeLevel1",
|
|
53741
|
-
key: "administrativeLevel1",
|
|
53742
|
-
ellipsis: true,
|
|
53743
|
-
show: entity.includes("location"),
|
|
53744
|
-
render: (value, all) => {
|
|
53745
|
-
if (all.empty) {
|
|
53746
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53747
|
-
className: "daf-default-cell"
|
|
53748
|
-
});
|
|
53749
|
-
}
|
|
53750
|
-
let label;
|
|
53751
|
-
if (all?.administrativeLevel1 && value === all?.administrativeLevel1) {
|
|
53752
|
-
label = all?.linking?.SCL?.[value]?.name;
|
|
53753
|
-
} else {
|
|
53754
|
-
label = getNameByLevel(all?.linking?.SCL, "level_1")?.name;
|
|
53755
|
-
}
|
|
53756
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53757
|
-
title: label || '-',
|
|
53758
|
-
children: label || '-'
|
|
53759
|
-
});
|
|
53760
|
-
}
|
|
53761
|
-
}, {
|
|
53762
|
-
title: t("Admin Level 2"),
|
|
53763
|
-
dataIndex: "administrativeLevel2",
|
|
53764
|
-
key: "administrativeLevel2",
|
|
53765
|
-
show: entity.includes("location"),
|
|
53766
|
-
ellipsis: true,
|
|
53767
|
-
render: (value, all) => {
|
|
53768
|
-
if (all.empty) {
|
|
53769
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53770
|
-
className: "daf-default-cell"
|
|
53771
|
-
});
|
|
53772
|
-
}
|
|
53773
|
-
let label;
|
|
53774
|
-
if (all?.administrativeLevel2 && value === all?.administrativeLevel2) {
|
|
53775
|
-
label = all?.linking?.SCL?.[value]?.name;
|
|
53776
|
-
} else {
|
|
53777
|
-
label = getNameByLevel(all?.linking?.SCL, "level_2")?.name;
|
|
53778
|
-
}
|
|
53779
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
53780
|
-
title: label || '-',
|
|
53781
|
-
children: label || '-'
|
|
53782
|
-
});
|
|
53783
|
-
}
|
|
53784
|
-
}, {
|
|
53785
|
-
title: t("Sources"),
|
|
53786
|
-
dataIndex: "sources",
|
|
53787
|
-
key: "sources",
|
|
53788
|
-
show: true,
|
|
53789
|
-
render: (value, all) => {
|
|
53790
|
-
if (all.empty) {
|
|
53791
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53792
|
-
className: "daf-default-cell"
|
|
53793
|
-
});
|
|
53794
|
-
}
|
|
53795
|
-
const MAX_SOURCES = 3;
|
|
53796
|
-
const count = value?.length === MAX_SOURCES + 1 ? value?.length : MAX_SOURCES;
|
|
53797
|
-
return Array.isArray(value) && value?.length > 0 ? /*#__PURE__*/jsxRuntime.jsx(antd.Avatar.Group, {
|
|
53798
|
-
max: {
|
|
53799
|
-
count: count,
|
|
53800
|
-
style: {
|
|
53801
|
-
color: token.baseGray90,
|
|
53802
|
-
backgroundColor: token.baseGray20,
|
|
53803
|
-
border: `1px solid ${token.baseGray40}`
|
|
53804
|
-
}
|
|
53805
|
-
},
|
|
53806
|
-
size: "small",
|
|
53807
|
-
children: value.map((v, i) => /*#__PURE__*/jsxRuntime.jsx(antd.Avatar, {
|
|
53808
|
-
size: "small",
|
|
53809
|
-
style: {
|
|
53810
|
-
backgroundColor: token.baseGray20,
|
|
53811
|
-
color: token.baseGray90,
|
|
53812
|
-
border: `1px solid ${token.baseGray40}`,
|
|
53813
|
-
display: "flex",
|
|
53814
|
-
alignItems: "center",
|
|
53815
|
-
justifyContent: "center"
|
|
53816
|
-
},
|
|
53817
|
-
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
53818
|
-
name: "Organisation02",
|
|
53819
|
-
width: 18,
|
|
53820
|
-
height: 18,
|
|
53821
|
-
color: token.baseGray90
|
|
53822
|
-
})
|
|
53823
|
-
}, i))
|
|
53824
|
-
}) : '-';
|
|
53825
|
-
}
|
|
53826
|
-
}, {
|
|
53827
|
-
title: "",
|
|
53828
|
-
dataIndex: "actions",
|
|
53829
|
-
key: "actions",
|
|
53830
|
-
width: 60,
|
|
53831
|
-
show: true,
|
|
53832
|
-
render: (value, all) => {
|
|
53833
|
-
if (all.empty) {
|
|
53834
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53835
|
-
className: "daf-default-cell"
|
|
53836
|
-
});
|
|
53837
|
-
}
|
|
53838
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
53839
|
-
className: "cursor-pointer",
|
|
53840
|
-
onClick: () => {
|
|
53841
|
-
goTo(getRedirectLink(`/app/accounts/view/${all.id}/details`));
|
|
53842
|
-
},
|
|
53843
|
-
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
53844
|
-
name: "Link",
|
|
53845
|
-
width: 18,
|
|
53846
|
-
height: 18
|
|
53847
|
-
})
|
|
53848
|
-
});
|
|
53849
|
-
}
|
|
53850
|
-
}];
|
|
53851
|
-
return cols.filter(c => c[show]);
|
|
53852
|
-
};
|
|
53853
|
-
|
|
53854
|
-
const _excluded$1 = ["pagination", "tab"];
|
|
53855
53977
|
const {
|
|
53856
53978
|
useToken: useToken$2
|
|
53857
53979
|
} = antd.theme;
|
|
@@ -53879,29 +54001,6 @@ function LocationTable(_ref) {
|
|
|
53879
54001
|
token
|
|
53880
54002
|
} = useToken$2();
|
|
53881
54003
|
const [combineLocationVisible, setCombineLocationVisible] = React.useState(false);
|
|
53882
|
-
|
|
53883
|
-
// Wrapper to transform pagination params to strings and ensure tab is at root level
|
|
53884
|
-
const getDataWithStringPagination = async _ref2 => {
|
|
53885
|
-
let {
|
|
53886
|
-
params
|
|
53887
|
-
} = _ref2;
|
|
53888
|
-
// Extract tab from the params (it should already be there from filterParams)
|
|
53889
|
-
const {
|
|
53890
|
-
pagination,
|
|
53891
|
-
tab
|
|
53892
|
-
} = params,
|
|
53893
|
-
otherParams = _objectWithoutProperties(params, _excluded$1);
|
|
53894
|
-
const transformedParams = _objectSpread2(_objectSpread2({}, otherParams), {}, {
|
|
53895
|
-
pagination: {
|
|
53896
|
-
skip: String((pagination === null || pagination === void 0 ? void 0 : pagination.skip) || 1),
|
|
53897
|
-
take: String((pagination === null || pagination === void 0 ? void 0 : pagination.take) || 20)
|
|
53898
|
-
},
|
|
53899
|
-
tab: tab || "active" // Ensure tab is at root level with default value
|
|
53900
|
-
});
|
|
53901
|
-
return getData({
|
|
53902
|
-
params: transformedParams
|
|
53903
|
-
});
|
|
53904
|
-
};
|
|
53905
54004
|
const {
|
|
53906
54005
|
filter,
|
|
53907
54006
|
activeTab,
|
|
@@ -53923,7 +54022,7 @@ function LocationTable(_ref) {
|
|
|
53923
54022
|
defaultPageSize,
|
|
53924
54023
|
filtersConfig: filtersConfig$8,
|
|
53925
54024
|
getRedirectLink,
|
|
53926
|
-
getData
|
|
54025
|
+
getData,
|
|
53927
54026
|
refetchTrigger
|
|
53928
54027
|
});
|
|
53929
54028
|
const selectOptions = React.useMemo(() => {
|
|
@@ -53951,7 +54050,7 @@ function LocationTable(_ref) {
|
|
|
53951
54050
|
children: [/*#__PURE__*/jsxRuntime.jsxs(AdminTable, {
|
|
53952
54051
|
filters: filter,
|
|
53953
54052
|
t: t,
|
|
53954
|
-
headerTitle:
|
|
54053
|
+
headerTitle: headerTitle,
|
|
53955
54054
|
actionButton: [{
|
|
53956
54055
|
icon: "Merge",
|
|
53957
54056
|
onClick: () => setCombineLocationVisible(true),
|
|
@@ -54019,7 +54118,6 @@ function LocationTable(_ref) {
|
|
|
54019
54118
|
if (typeof mergeSubjectsFunction === 'function') {
|
|
54020
54119
|
mergeSubjectsFunction(data);
|
|
54021
54120
|
setSelectedLocations([]);
|
|
54022
|
-
antd.message.success(t("Locations successfully merged."));
|
|
54023
54121
|
}
|
|
54024
54122
|
},
|
|
54025
54123
|
selectedLocations: selectedLocations,
|
|
@@ -54030,227 +54128,6 @@ function LocationTable(_ref) {
|
|
|
54030
54128
|
});
|
|
54031
54129
|
}
|
|
54032
54130
|
|
|
54033
|
-
const getColumns$2 = ({
|
|
54034
|
-
t,
|
|
54035
|
-
goTo = () => {},
|
|
54036
|
-
show = "show",
|
|
54037
|
-
getRedirectLink = () => {},
|
|
54038
|
-
token,
|
|
54039
|
-
selectedSubjects,
|
|
54040
|
-
setSelectedSubjects,
|
|
54041
|
-
selectOptions,
|
|
54042
|
-
entity
|
|
54043
|
-
}) => {
|
|
54044
|
-
const cols = [{
|
|
54045
|
-
title: "",
|
|
54046
|
-
dataIndex: "select",
|
|
54047
|
-
key: "select",
|
|
54048
|
-
width: 50,
|
|
54049
|
-
show: true,
|
|
54050
|
-
render: (v, all) => {
|
|
54051
|
-
if (all.empty) {
|
|
54052
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54053
|
-
className: "daf-default-cell"
|
|
54054
|
-
});
|
|
54055
|
-
}
|
|
54056
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Checkbox, {
|
|
54057
|
-
onChange: () => setSelectedSubjects(prev => {
|
|
54058
|
-
const isSelected = prev.some(p => p.id === all.id);
|
|
54059
|
-
if (isSelected) {
|
|
54060
|
-
return prev.filter(p => p.id !== all.id);
|
|
54061
|
-
}
|
|
54062
|
-
return [...prev, all];
|
|
54063
|
-
}),
|
|
54064
|
-
checked: selectedSubjects.some(p => p.id === all.id),
|
|
54065
|
-
disabled: selectedSubjects?.length >= 3 && !selectedSubjects.some(p => p.id === all.id)
|
|
54066
|
-
});
|
|
54067
|
-
}
|
|
54068
|
-
}, {
|
|
54069
|
-
title: t("ID"),
|
|
54070
|
-
dataIndex: "datastakeId",
|
|
54071
|
-
key: "datastakeId",
|
|
54072
|
-
ellipsis: true,
|
|
54073
|
-
show: true,
|
|
54074
|
-
render: (value, all) => {
|
|
54075
|
-
if (all.empty) {
|
|
54076
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54077
|
-
className: "daf-default-cell"
|
|
54078
|
-
});
|
|
54079
|
-
}
|
|
54080
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
54081
|
-
title: value,
|
|
54082
|
-
children: value
|
|
54083
|
-
});
|
|
54084
|
-
}
|
|
54085
|
-
}, {
|
|
54086
|
-
title: t("Name"),
|
|
54087
|
-
dataIndex: "name",
|
|
54088
|
-
key: "name",
|
|
54089
|
-
ellipsis: true,
|
|
54090
|
-
show: true,
|
|
54091
|
-
render: (value, all) => {
|
|
54092
|
-
if (all.empty) {
|
|
54093
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54094
|
-
className: "daf-default-cell"
|
|
54095
|
-
});
|
|
54096
|
-
}
|
|
54097
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
54098
|
-
title: value,
|
|
54099
|
-
children: value
|
|
54100
|
-
});
|
|
54101
|
-
}
|
|
54102
|
-
}, {
|
|
54103
|
-
title: t("Category"),
|
|
54104
|
-
dataIndex: "category",
|
|
54105
|
-
key: "category",
|
|
54106
|
-
ellipsis: true,
|
|
54107
|
-
show: true,
|
|
54108
|
-
render: (value, all) => {
|
|
54109
|
-
if (all.empty) {
|
|
54110
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54111
|
-
className: "daf-default-cell"
|
|
54112
|
-
});
|
|
54113
|
-
}
|
|
54114
|
-
const category = findOptions(value, selectOptions?.category || []) || "--";
|
|
54115
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
54116
|
-
title: category,
|
|
54117
|
-
children: category
|
|
54118
|
-
});
|
|
54119
|
-
}
|
|
54120
|
-
}, {
|
|
54121
|
-
title: t("Country"),
|
|
54122
|
-
dataIndex: "country",
|
|
54123
|
-
key: "country",
|
|
54124
|
-
ellipsis: true,
|
|
54125
|
-
show: true,
|
|
54126
|
-
render: (value, all) => {
|
|
54127
|
-
if (all.empty) {
|
|
54128
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54129
|
-
className: "daf-default-cell"
|
|
54130
|
-
});
|
|
54131
|
-
}
|
|
54132
|
-
const country = findOptions(value, selectOptions?.country || []) || "--";
|
|
54133
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
54134
|
-
title: country,
|
|
54135
|
-
children: country
|
|
54136
|
-
});
|
|
54137
|
-
}
|
|
54138
|
-
}, {
|
|
54139
|
-
title: t("Admin Level 1"),
|
|
54140
|
-
dataIndex: "administrativeLevel1",
|
|
54141
|
-
key: "administrativeLevel1",
|
|
54142
|
-
ellipsis: true,
|
|
54143
|
-
show: entity.includes("location"),
|
|
54144
|
-
render: (value, all) => {
|
|
54145
|
-
if (all.empty) {
|
|
54146
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54147
|
-
className: "daf-default-cell"
|
|
54148
|
-
});
|
|
54149
|
-
}
|
|
54150
|
-
let label;
|
|
54151
|
-
if (all?.administrativeLevel1 && value === all?.administrativeLevel1) {
|
|
54152
|
-
label = all?.linking?.SCL?.[value]?.name;
|
|
54153
|
-
} else {
|
|
54154
|
-
label = getNameByLevel$1(all?.linking?.SCL, "level_1")?.name;
|
|
54155
|
-
}
|
|
54156
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
54157
|
-
title: label || '-',
|
|
54158
|
-
children: label || '-'
|
|
54159
|
-
});
|
|
54160
|
-
}
|
|
54161
|
-
}, {
|
|
54162
|
-
title: t("Admin Level 2"),
|
|
54163
|
-
dataIndex: "administrativeLevel2",
|
|
54164
|
-
key: "administrativeLevel2",
|
|
54165
|
-
show: entity.includes("location"),
|
|
54166
|
-
ellipsis: true,
|
|
54167
|
-
render: (value, all) => {
|
|
54168
|
-
if (all.empty) {
|
|
54169
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54170
|
-
className: "daf-default-cell"
|
|
54171
|
-
});
|
|
54172
|
-
}
|
|
54173
|
-
let label;
|
|
54174
|
-
if (all?.administrativeLevel2 && value === all?.administrativeLevel2) {
|
|
54175
|
-
label = all?.linking?.SCL?.[value]?.name;
|
|
54176
|
-
} else {
|
|
54177
|
-
label = getNameByLevel$1(all?.linking?.SCL, "level_2")?.name;
|
|
54178
|
-
}
|
|
54179
|
-
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
54180
|
-
title: label || '-',
|
|
54181
|
-
children: label || '-'
|
|
54182
|
-
});
|
|
54183
|
-
}
|
|
54184
|
-
}, {
|
|
54185
|
-
title: t("Sources"),
|
|
54186
|
-
dataIndex: "sources",
|
|
54187
|
-
key: "sources",
|
|
54188
|
-
show: true,
|
|
54189
|
-
render: (value, all) => {
|
|
54190
|
-
if (all.empty) {
|
|
54191
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54192
|
-
className: "daf-default-cell"
|
|
54193
|
-
});
|
|
54194
|
-
}
|
|
54195
|
-
const MAX_SOURCES = 3;
|
|
54196
|
-
const count = value?.length === MAX_SOURCES + 1 ? value?.length : MAX_SOURCES;
|
|
54197
|
-
return Array.isArray(value) && value?.length > 0 ? /*#__PURE__*/jsxRuntime.jsx(antd.Avatar.Group, {
|
|
54198
|
-
max: {
|
|
54199
|
-
count: count,
|
|
54200
|
-
style: {
|
|
54201
|
-
color: token.baseGray90,
|
|
54202
|
-
backgroundColor: token.baseGray20,
|
|
54203
|
-
border: `1px solid ${token.baseGray40}`
|
|
54204
|
-
}
|
|
54205
|
-
},
|
|
54206
|
-
size: "small",
|
|
54207
|
-
children: value.map((v, i) => /*#__PURE__*/jsxRuntime.jsx(antd.Avatar, {
|
|
54208
|
-
size: "small",
|
|
54209
|
-
style: {
|
|
54210
|
-
backgroundColor: token.baseGray20,
|
|
54211
|
-
color: token.baseGray90,
|
|
54212
|
-
border: `1px solid ${token.baseGray40}`,
|
|
54213
|
-
display: "flex",
|
|
54214
|
-
alignItems: "center",
|
|
54215
|
-
justifyContent: "center"
|
|
54216
|
-
},
|
|
54217
|
-
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
54218
|
-
name: "Organisation02",
|
|
54219
|
-
width: 18,
|
|
54220
|
-
height: 18,
|
|
54221
|
-
color: token.baseGray90
|
|
54222
|
-
})
|
|
54223
|
-
}, i))
|
|
54224
|
-
}) : '-';
|
|
54225
|
-
}
|
|
54226
|
-
}, {
|
|
54227
|
-
title: "",
|
|
54228
|
-
dataIndex: "actions",
|
|
54229
|
-
key: "actions",
|
|
54230
|
-
width: 60,
|
|
54231
|
-
show: true,
|
|
54232
|
-
render: (value, all) => {
|
|
54233
|
-
if (all.empty) {
|
|
54234
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54235
|
-
className: "daf-default-cell"
|
|
54236
|
-
});
|
|
54237
|
-
}
|
|
54238
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
54239
|
-
className: "cursor-pointer",
|
|
54240
|
-
onClick: () => {
|
|
54241
|
-
goTo(getRedirectLink(`/app/accounts/view/${all.id}/details`));
|
|
54242
|
-
},
|
|
54243
|
-
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
54244
|
-
name: "Link",
|
|
54245
|
-
width: 18,
|
|
54246
|
-
height: 18
|
|
54247
|
-
})
|
|
54248
|
-
});
|
|
54249
|
-
}
|
|
54250
|
-
}];
|
|
54251
|
-
return cols.filter(c => c[show]);
|
|
54252
|
-
};
|
|
54253
|
-
|
|
54254
54131
|
const mapToSelectOptions = (items, valueKey, selectOptions, optionKey, customMapper = null) => {
|
|
54255
54132
|
return items.map(item => {
|
|
54256
54133
|
if (customMapper) {
|
|
@@ -54329,7 +54206,7 @@ const getColumns$1 = ({
|
|
|
54329
54206
|
if (all?.administrativeLevel1 && value === all?.administrativeLevel1) {
|
|
54330
54207
|
label = all?.linking?.SCL?.[value]?.name;
|
|
54331
54208
|
} else {
|
|
54332
|
-
label = getNameByLevel
|
|
54209
|
+
label = getNameByLevel(all?.linking?.SCL, "level_1")?.name;
|
|
54333
54210
|
}
|
|
54334
54211
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
54335
54212
|
title: label || '-',
|
|
@@ -54346,7 +54223,7 @@ const getColumns$1 = ({
|
|
|
54346
54223
|
if (all?.administrativeLevel2 && value === all?.administrativeLevel2) {
|
|
54347
54224
|
label = all?.linking?.SCL?.[value]?.name;
|
|
54348
54225
|
} else {
|
|
54349
|
-
label = getNameByLevel
|
|
54226
|
+
label = getNameByLevel(all?.linking?.SCL, "level_2")?.name;
|
|
54350
54227
|
}
|
|
54351
54228
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
54352
54229
|
title: label || '-',
|
|
@@ -54478,7 +54355,7 @@ function CombineSubjectsModal({
|
|
|
54478
54355
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
|
|
54479
54356
|
placeholder: t("Province"),
|
|
54480
54357
|
options: mapToSelectOptions(selectedSubjects, null, selectOptions, null, subject => {
|
|
54481
|
-
const _data = getNameByLevel
|
|
54358
|
+
const _data = getNameByLevel(subject?.linking?.SCL, "level_1");
|
|
54482
54359
|
return {
|
|
54483
54360
|
label: _data?.name || "-",
|
|
54484
54361
|
value: _data?.id || "-"
|
|
@@ -54491,7 +54368,7 @@ function CombineSubjectsModal({
|
|
|
54491
54368
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
|
|
54492
54369
|
placeholder: t("Territory"),
|
|
54493
54370
|
options: mapToSelectOptions(selectedSubjects, null, selectOptions, null, subject => {
|
|
54494
|
-
const _data = getNameByLevel
|
|
54371
|
+
const _data = getNameByLevel(subject?.linking?.SCL, "level_2");
|
|
54495
54372
|
return {
|
|
54496
54373
|
label: _data?.name || "-",
|
|
54497
54374
|
value: _data?.id || "-"
|
|
@@ -54565,11 +54442,11 @@ function SubjectsTable(_ref) {
|
|
|
54565
54442
|
return {
|
|
54566
54443
|
category: (_config$options = config.options) === null || _config$options === void 0 ? void 0 : _config$options.category,
|
|
54567
54444
|
country: (_config$options2 = config.options) === null || _config$options2 === void 0 ? void 0 : _config$options2.countries,
|
|
54568
|
-
sources: []
|
|
54445
|
+
sources: [] //TODO: add sources logic and make sure you only show unique sources only once
|
|
54569
54446
|
};
|
|
54570
54447
|
}, [config.options]);
|
|
54571
54448
|
const columns = React.useMemo(() => {
|
|
54572
|
-
return getColumns$
|
|
54449
|
+
return getColumns$3({
|
|
54573
54450
|
t,
|
|
54574
54451
|
goTo,
|
|
54575
54452
|
token,
|
|
@@ -54644,20 +54521,19 @@ function SubjectsTable(_ref) {
|
|
|
54644
54521
|
}), /*#__PURE__*/jsxRuntime.jsx(CombineSubjectsModal, {
|
|
54645
54522
|
isOpen: isCombineModalOpen,
|
|
54646
54523
|
t: t,
|
|
54647
|
-
onClose: () =>
|
|
54524
|
+
onClose: () => {
|
|
54525
|
+
setIsModalOpen(false);
|
|
54526
|
+
},
|
|
54648
54527
|
onSuccess: data => {
|
|
54649
54528
|
setIsModalOpen(false);
|
|
54650
54529
|
setLoading(true);
|
|
54651
|
-
antd.message.success(t("Subjects successfully merged."));
|
|
54652
54530
|
if (typeof mergeSubjectsFunction === 'function') {
|
|
54653
|
-
mergeSubjectsFunction(data)
|
|
54654
|
-
|
|
54655
|
-
fetchData();
|
|
54656
|
-
});
|
|
54531
|
+
mergeSubjectsFunction(data);
|
|
54532
|
+
setSelectedSubjects([]);
|
|
54657
54533
|
}
|
|
54658
54534
|
},
|
|
54659
54535
|
selectedSubjects: selectedSubjects,
|
|
54660
|
-
selectOptions: selectOptions,
|
|
54536
|
+
selectOptions: selectOptions || {},
|
|
54661
54537
|
module: module,
|
|
54662
54538
|
entity: headerTitle
|
|
54663
54539
|
})]
|
|
@@ -55110,7 +54986,10 @@ const getColumns = ({
|
|
|
55110
54986
|
}];
|
|
55111
54987
|
return cols.filter(v => v.show);
|
|
55112
54988
|
};
|
|
55113
|
-
const checkboxConfig$7 = {
|
|
54989
|
+
const checkboxConfig$7 = {
|
|
54990
|
+
name: "Name",
|
|
54991
|
+
datastakeId: "ID"
|
|
54992
|
+
};
|
|
55114
54993
|
const selectFiltersConfig$7 = {
|
|
55115
54994
|
userRole: {
|
|
55116
54995
|
type: "select",
|
|
@@ -55140,18 +55019,11 @@ const selectFiltersConfig$7 = {
|
|
|
55140
55019
|
}
|
|
55141
55020
|
};
|
|
55142
55021
|
const filtersConfig$7 = {
|
|
55143
|
-
|
|
55144
|
-
|
|
55145
|
-
const defaultUrlParams = {
|
|
55146
|
-
search: "",
|
|
55147
|
-
userRole: null,
|
|
55148
|
-
status: null
|
|
55149
|
-
};
|
|
55150
|
-
const defaultTableFilters = {
|
|
55151
|
-
search: "",
|
|
55152
|
-
userRole: null,
|
|
55153
|
-
status: null
|
|
55022
|
+
name: "",
|
|
55023
|
+
datastakeId: ""
|
|
55154
55024
|
};
|
|
55025
|
+
const defaultUrlParams = {};
|
|
55026
|
+
const defaultTableFilters = {};
|
|
55155
55027
|
|
|
55156
55028
|
function Users({
|
|
55157
55029
|
t,
|
|
@@ -55195,9 +55067,9 @@ function Users({
|
|
|
55195
55067
|
userRole: userRoles.filter(u => !u.isForAppAdmin),
|
|
55196
55068
|
status: accountStatuses
|
|
55197
55069
|
};
|
|
55198
|
-
}, [userRoles
|
|
55070
|
+
}, [userRoles]);
|
|
55199
55071
|
const canClearSearch = React.useMemo(() => {
|
|
55200
|
-
return !!activeFilters.search
|
|
55072
|
+
return !!activeFilters.search;
|
|
55201
55073
|
}, [activeFilters]);
|
|
55202
55074
|
const onDeleteUserClick = React.useCallback(id => {
|
|
55203
55075
|
antd.Modal.confirm({
|
|
@@ -55916,9 +55788,9 @@ function AdminDashboardScreen({
|
|
|
55916
55788
|
fetchUserGrowth,
|
|
55917
55789
|
userGrowthDataLoading
|
|
55918
55790
|
} = useWidgetFetch();
|
|
55919
|
-
|
|
55920
|
-
|
|
55921
|
-
|
|
55791
|
+
console.log({
|
|
55792
|
+
userGrowthData
|
|
55793
|
+
});
|
|
55922
55794
|
const actionsWidgetsConfig = React.useMemo(() => getActionWidgetsConfig({
|
|
55923
55795
|
getRedirectLink
|
|
55924
55796
|
}), [getRedirectLink, getActionWidgetsConfig]);
|
|
@@ -55929,7 +55801,6 @@ function AdminDashboardScreen({
|
|
|
55929
55801
|
const safeUserActivity = Array.isArray(data?.data?.userActivity) ? data.data.userActivity : [];
|
|
55930
55802
|
const safeTopContributors = Array.isArray(data?.topContributors) ? data.topContributors : [];
|
|
55931
55803
|
const safeUserGrowth = Array.isArray(data?.userGrowthData) ? data.userGrowthData : [];
|
|
55932
|
-
console.log("safeUserGrowth", safeUserGrowth);
|
|
55933
55804
|
return /*#__PURE__*/jsxRuntime.jsx(AdminDashboard, {
|
|
55934
55805
|
t: t,
|
|
55935
55806
|
goTo: goTo,
|
|
@@ -56185,10 +56056,7 @@ function AdminSubjectsScreen({
|
|
|
56185
56056
|
const handleMergeSubjects = React.useCallback(async mergeData => {
|
|
56186
56057
|
try {
|
|
56187
56058
|
if (AdminService.mergeSubjects) {
|
|
56188
|
-
await AdminService.mergeSubjects(
|
|
56189
|
-
subject: 'stakeholder',
|
|
56190
|
-
...mergeData
|
|
56191
|
-
});
|
|
56059
|
+
await AdminService.mergeSubjects(mergeData);
|
|
56192
56060
|
antd.message.success(t("Subjects merged successfully"));
|
|
56193
56061
|
} else {
|
|
56194
56062
|
console.warn("AdminService.mergeSubjects is not implemented");
|
|
@@ -56204,10 +56072,7 @@ function AdminSubjectsScreen({
|
|
|
56204
56072
|
if (getData) {
|
|
56205
56073
|
return getData(params);
|
|
56206
56074
|
}
|
|
56207
|
-
return AdminService.getSubjects(
|
|
56208
|
-
subject: 'stakeholder',
|
|
56209
|
-
params
|
|
56210
|
-
});
|
|
56075
|
+
return AdminService.getSubjects(params);
|
|
56211
56076
|
}, [getData, AdminService]);
|
|
56212
56077
|
return /*#__PURE__*/jsxRuntime.jsx(SubjectsTable, {
|
|
56213
56078
|
t: t,
|
|
@@ -56255,14 +56120,11 @@ function AdminLocationScreen({
|
|
|
56255
56120
|
} = config;
|
|
56256
56121
|
const handleMergeLocations = React.useCallback(async mergeData => {
|
|
56257
56122
|
try {
|
|
56258
|
-
if (AdminService.
|
|
56259
|
-
await AdminService.
|
|
56260
|
-
subject: 'location',
|
|
56261
|
-
...mergeData
|
|
56262
|
-
});
|
|
56123
|
+
if (AdminService.mergeLocations) {
|
|
56124
|
+
await AdminService.mergeLocations(mergeData);
|
|
56263
56125
|
antd.message.success(t("Locations merged successfully"));
|
|
56264
56126
|
} else {
|
|
56265
|
-
console.warn("AdminService.
|
|
56127
|
+
console.warn("AdminService.mergeLocations is not implemented");
|
|
56266
56128
|
antd.message.success(t("Locations merged successfully"));
|
|
56267
56129
|
}
|
|
56268
56130
|
} catch (err) {
|
|
@@ -56270,15 +56132,12 @@ function AdminLocationScreen({
|
|
|
56270
56132
|
}
|
|
56271
56133
|
}, [AdminService, t, handleError]);
|
|
56272
56134
|
|
|
56273
|
-
// Use custom getData if provided, otherwise use default AdminService.
|
|
56135
|
+
// Use custom getData if provided, otherwise use default AdminService.getLocations
|
|
56274
56136
|
const getLocations = React.useCallback(params => {
|
|
56275
56137
|
if (getData) {
|
|
56276
56138
|
return getData(params);
|
|
56277
56139
|
}
|
|
56278
|
-
return AdminService.
|
|
56279
|
-
subject: 'location',
|
|
56280
|
-
params
|
|
56281
|
-
});
|
|
56140
|
+
return AdminService.getLocations(params);
|
|
56282
56141
|
}, [getData, AdminService]);
|
|
56283
56142
|
return /*#__PURE__*/jsxRuntime.jsx(LocationTable, {
|
|
56284
56143
|
t: t,
|
|
@@ -56383,13 +56242,13 @@ function getAdminRoutes(config) {
|
|
|
56383
56242
|
visible: user => userIsAdmin(user),
|
|
56384
56243
|
component: subjectsIndexComponent
|
|
56385
56244
|
}, ...(typeof useAdminLocationConfig === "function" ? [{
|
|
56386
|
-
path: "
|
|
56245
|
+
path: "subjects/location",
|
|
56387
56246
|
key: "".concat(APP_PREFIX, "_ADMIN_SUBJECTS_LOCATIONS"),
|
|
56388
56247
|
exact: true,
|
|
56389
56248
|
visible: user => userIsAdmin(user),
|
|
56390
56249
|
component: /*#__PURE__*/jsxRuntime.jsx(LocationWrapper, {})
|
|
56391
56250
|
}] : []), ...(typeof useAdminSubjectsConfig === "function" ? [{
|
|
56392
|
-
path: "
|
|
56251
|
+
path: "subjects/stakeholder",
|
|
56393
56252
|
key: "".concat(APP_PREFIX, "_ADMIN_SUBJECTS_STAKEHOLDERS"),
|
|
56394
56253
|
exact: true,
|
|
56395
56254
|
visible: user => userIsAdmin(user),
|