datastake-daf 0.6.786 → 0.6.787

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/components/index.js +685 -407
  2. package/dist/services/index.js +10 -1
  3. package/dist/utils/index.js +28 -12
  4. package/package.json +1 -1
  5. package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/TopContributors/hook.js +0 -1
  6. package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/TopContributors/index.jsx +1 -1
  7. package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/UserGrowth/hook.js +1 -1
  8. package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/UserGrowth/index.jsx +1 -1
  9. package/src/@daf/core/components/Screens/Admin/AdminModals/AddUser/index.jsx +0 -1
  10. package/src/@daf/core/components/Screens/Admin/AdminModals/CombineLocation/index.jsx +1 -1
  11. package/src/@daf/core/components/Screens/Admin/AdminModals/NewAccount/index.jsx +1 -1
  12. package/src/@daf/core/components/Screens/Admin/AdminScreens/Dashboard.jsx +2 -2
  13. package/src/@daf/core/components/Screens/Admin/AdminScreens/Location.jsx +5 -5
  14. package/src/@daf/core/components/Screens/Admin/AdminScreens/Subjects.jsx +2 -2
  15. package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/column.js +224 -0
  16. package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/helper.js +65 -0
  17. package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/index.jsx +23 -5
  18. package/src/@daf/core/components/Screens/Admin/AdminTables/SubjectsTable/columns.js +36 -36
  19. package/src/@daf/core/components/Screens/Admin/AdminTables/SubjectsTable/index.jsx +12 -21
  20. package/src/@daf/core/components/Screens/Admin/AdminViews/components/Users/helper.js +13 -8
  21. package/src/@daf/core/components/Screens/Admin/AdminViews/components/Users/index.jsx +2 -2
  22. package/src/@daf/core/components/Screens/Admin/adminRoutes.js +2 -2
  23. package/src/@daf/pages/SelfAssesment/components/AssociatedInformationTable/columns.js +180 -0
  24. package/src/@daf/pages/SelfAssesment/components/AssociatedInformationTable/config.js +0 -0
  25. package/src/@daf/pages/SelfAssesment/components/AssociatedInformationTable/index.jsx +27 -0
  26. package/src/@daf/pages/SelfAssesment/components/OrgInformationTable/columns.js +157 -0
  27. package/src/@daf/pages/SelfAssesment/components/OrgInformationTable/config.js +31 -0
  28. package/src/@daf/pages/SelfAssesment/components/OrgInformationTable/index.js +77 -0
  29. package/src/@daf/pages/SelfAssesment/components/ProductionSiteTable/columns.js +117 -0
  30. package/src/@daf/pages/SelfAssesment/components/ProductionSiteTable/index.jsx +54 -0
  31. package/src/@daf/pages/SelfAssesment/index.jsx +0 -0
  32. package/src/@daf/services/AdminService.js +12 -3
  33. package/src/@daf/services/DashboardService.js +2 -1
  34. package/src/@daf/utils/filters.js +89 -89
  35. package/src/constants/locales/en/translation.js +3 -0
  36. package/src/constants/locales/fr/translation.js +1 -1
  37. package/src/constants/locales/sp/translation.js +1 -1
  38. package/build/favicon.ico +0 -0
  39. package/build/logo192.png +0 -0
  40. package/build/logo512.png +0 -0
  41. package/build/manifest.json +0 -25
  42. package/build/robots.txt +0 -3
@@ -4778,7 +4778,7 @@ const config$2 = {
4778
4778
  Down: config$3
4779
4779
  };
4780
4780
 
4781
- const _excluded$C = ["width", "height", "size", "name", "fill"];
4781
+ const _excluded$D = ["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$C);
4790
+ props = _objectWithoutProperties(_ref, _excluded$D);
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$B = ["view", "module", "scope", "form", "meta", "createdAt", "updatedAt"];
5079
+ const _excluded$C = ["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$B);
5455
+ rest = _objectWithoutProperties(data, _excluded$C);
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$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"];
5851
+ const _excluded$B = ["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$A);
5882
+ rest = _objectWithoutProperties(_ref, _excluded$B);
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$z = ["size", "maxHeight", "containerHeight", "dataSource", "columns", "pagination", "doEmptyRows"];
6700
+ const _excluded$A = ["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$z);
6711
+ props = _objectWithoutProperties(_ref, _excluded$A);
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$y = ["content", "size", "type", "icon", "onClick", "disabled", "loading", "title", "style", "className"];
7236
+ const _excluded$z = ["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$y);
7250
+ restProps = _objectWithoutProperties(_ref, _excluded$z);
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$x = ["children"];
7369
+ const _excluded$y = ["children"];
7370
7370
  const BorderedButton = _ref => {
7371
7371
  let {
7372
7372
  children
7373
7373
  } = _ref,
7374
- props = _objectWithoutProperties(_ref, _excluded$x);
7374
+ props = _objectWithoutProperties(_ref, _excluded$y);
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$w = ["icon"];
7514
+ const _excluded$x = ["icon"];
7515
7515
  function GetIcon(_ref) {
7516
7516
  let {
7517
7517
  icon
7518
7518
  } = _ref,
7519
- props = _objectWithoutProperties(_ref, _excluded$w);
7519
+ props = _objectWithoutProperties(_ref, _excluded$x);
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$v = ["options", "defaultSelected", "onChange", "textWhenMultiple", "withCount", "oneAlwaysSelected", "canUnselectLast", "isAvatarGroup", "maxAvatarCount", "dropDownWidth", "topAvatarValue", "isSingle", "selectionType"];
7849
+ const _excluded$w = ["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$v);
7942
+ restProps = _objectWithoutProperties(_ref, _excluded$w);
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$u = ["tabs", "onChange", "value", "className"];
8664
+ const _excluded$v = ["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$u);
8672
+ rest = _objectWithoutProperties(_ref, _excluded$v);
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$t = ["label", "onClick", "icon", "type", "tooltip", "disabled", "loading", "style", "className"];
8769
+ const _excluded$u = ["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$t);
8804
+ restProps = _objectWithoutProperties(button, _excluded$u);
8805
8805
  return /*#__PURE__*/jsxRuntime.jsx(DafButton, _objectSpread2({
8806
8806
  content: label,
8807
8807
  type: type,
@@ -9612,27 +9612,25 @@ const renderFieldData = (type, value, user, config, getApiBaseUrl = () => {}, ge
9612
9612
  }
9613
9613
  };
9614
9614
 
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;
9615
+ const renderValue = ({
9616
+ value,
9617
+ hasChildren,
9618
+ config,
9619
+ user,
9620
+ getApiBaseUrl = () => {},
9621
+ getAppHeader = () => {},
9622
+ app,
9623
+ allData = {}
9624
+ }) => {
9625
+ if (config?.type === 'groupInputs') {
9626
+ if (!config?.inputs) return null;
9628
9627
  const inputKeys = Object.keys(config.inputs).sort((a, b) => {
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;
9628
+ const positionA = config.inputs[a]?.position || 0;
9629
+ const positionB = config.inputs[b]?.position || 0;
9632
9630
  return positionA - positionB;
9633
9631
  });
9634
9632
  const values = inputKeys.map(inputKey => {
9635
- let inputValue = value === null || value === void 0 ? void 0 : value[inputKey];
9633
+ let inputValue = value?.[inputKey];
9636
9634
  if (inputValue === null || inputValue === undefined || inputValue === '') {
9637
9635
  return '';
9638
9636
  } else if (typeof inputValue === 'object' && inputValue !== null) {
@@ -9673,8 +9671,8 @@ const renderValue = _ref => {
9673
9671
  } else {
9674
9672
  displayValue = String(value);
9675
9673
  }
9676
- const fieldType = (config === null || config === void 0 ? void 0 : config.type) || 'text';
9677
- let cssClass = "tree-value ".concat(fieldType, "-type");
9674
+ const fieldType = config?.type || 'text';
9675
+ let cssClass = `tree-value ${fieldType}-type`;
9678
9676
  if (displayValue === '-') {
9679
9677
  cssClass += ' empty';
9680
9678
  }
@@ -9684,21 +9682,19 @@ const renderValue = _ref => {
9684
9682
  children: displayValue
9685
9683
  });
9686
9684
  };
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') {
9685
+ const determineHasChildren = ({
9686
+ config,
9687
+ level
9688
+ }) => {
9689
+ if (config?.type === 'groupInputs') {
9694
9690
  return false;
9695
9691
  }
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) {
9692
+ if (config?.type === 'header' && config?.inputs && Object.keys(config.inputs).length > 0) {
9697
9693
  return true;
9698
9694
  }
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' ||
9695
+ return config?.inputs || config?.type === 'group' || config?.type === 'dataLinkGroup' || config?.type === 'section' || config?.type === 'ajaxSubGroup' ||
9700
9696
  // Add this line
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);
9697
+ config?.type === 'dataLink' && 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);
9702
9698
  };
9703
9699
 
9704
9700
  const sortByPosition = (items, getConfig) => {
@@ -9783,30 +9779,28 @@ const handleSectionChildren = ({
9783
9779
  });
9784
9780
  };
9785
9781
 
9786
- const handleArrayChildren = _ref => {
9787
- let {
9788
- value,
9789
- config,
9790
- label,
9791
- level,
9792
- t,
9793
- rootForm,
9794
- allData,
9795
- user,
9796
- getApiBaseUrl = () => {},
9797
- getAppHeader = () => {},
9798
- app,
9799
- TreeNodeComponent
9800
- } = _ref;
9782
+ const handleArrayChildren = ({
9783
+ value,
9784
+ config,
9785
+ label,
9786
+ level,
9787
+ t,
9788
+ rootForm,
9789
+ allData,
9790
+ user,
9791
+ getApiBaseUrl = () => {},
9792
+ getAppHeader = () => {},
9793
+ app,
9794
+ TreeNodeComponent
9795
+ }) => {
9801
9796
  if (!Array.isArray(value)) {
9802
9797
  return null;
9803
9798
  }
9804
9799
  return value.map((item, itemIndex) => /*#__PURE__*/jsxRuntime.jsx("div", {
9805
9800
  className: "array-item",
9806
9801
  children: Object.keys(config.inputs).sort((a, b) => {
9807
- var _config$inputs$a, _config$inputs$b;
9808
- const positionA = ((_config$inputs$a = config.inputs[a]) === null || _config$inputs$a === void 0 ? void 0 : _config$inputs$a.position) || 0;
9809
- const positionB = ((_config$inputs$b = config.inputs[b]) === null || _config$inputs$b === void 0 ? void 0 : _config$inputs$b.position) || 0;
9802
+ const positionA = config.inputs[a]?.position || 0;
9803
+ const positionB = config.inputs[b]?.position || 0;
9810
9804
  return positionA - positionB;
9811
9805
  }).map(subInputKey => {
9812
9806
  const subInputConfig = config.inputs[subInputKey];
@@ -9824,9 +9818,9 @@ const handleArrayChildren = _ref => {
9824
9818
  getApiBaseUrl: getApiBaseUrl,
9825
9819
  getAppHeader: getAppHeader,
9826
9820
  app: app
9827
- }, "".concat(itemIndex, "-").concat(subInputKey));
9821
+ }, `${itemIndex}-${subInputKey}`);
9828
9822
  })
9829
- }, "".concat(itemIndex)));
9823
+ }, `${itemIndex}`));
9830
9824
  };
9831
9825
 
9832
9826
  const noDafApps = ['tif', 'cukura']; //PACKAGE_CHANGE_LATER (remove sbg)
@@ -11688,7 +11682,7 @@ Widget.propTypes = {
11688
11682
  };
11689
11683
  Widget.displayName = 'Widget';
11690
11684
 
11691
- const _excluded$s = ["loading", "title", "image", "description", "imgAlt", "noDescriptionText", "isPdf"];
11685
+ const _excluded$t = ["loading", "title", "image", "description", "imgAlt", "noDescriptionText", "isPdf"];
11692
11686
  function ImageWidget(_ref) {
11693
11687
  let {
11694
11688
  loading = false,
@@ -11699,7 +11693,7 @@ function ImageWidget(_ref) {
11699
11693
  noDescriptionText,
11700
11694
  isPdf = false
11701
11695
  } = _ref,
11702
- props = _objectWithoutProperties(_ref, _excluded$s);
11696
+ props = _objectWithoutProperties(_ref, _excluded$t);
11703
11697
  const expandable = isPdf ? false : props.expandable;
11704
11698
  return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
11705
11699
  loading: loading,
@@ -11759,7 +11753,7 @@ function ImageWidget(_ref) {
11759
11753
  ImageWidget.displayName = 'ImageWidget';
11760
11754
 
11761
11755
  var _templateObject$c;
11762
- const _excluded$r = ["title", "loading", "data", "current", "defaultActiveTab", "widgetClassname", "className", "direction"];
11756
+ const _excluded$s = ["title", "loading", "data", "current", "defaultActiveTab", "widgetClassname", "className", "direction"];
11763
11757
  function FlowWidget(_ref) {
11764
11758
  let {
11765
11759
  title,
@@ -11771,7 +11765,7 @@ function FlowWidget(_ref) {
11771
11765
  className,
11772
11766
  direction = "horizontal"
11773
11767
  } = _ref,
11774
- rest = _objectWithoutProperties(_ref, _excluded$r);
11768
+ rest = _objectWithoutProperties(_ref, _excluded$s);
11775
11769
  const [activeTab, setActiveTab] = React.useState();
11776
11770
  React.useEffect(() => {
11777
11771
  if (defaultActiveTab) {
@@ -15324,7 +15318,7 @@ Map$3.propTypes = {
15324
15318
  link: PropTypes__default["default"].any
15325
15319
  };
15326
15320
 
15327
- const _excluded$q = ["isExpanded", "shouldRenderMap", "renderKey", "title", "loading", "t", "user", "data", "height", "widgetConfig"];
15321
+ const _excluded$r = ["isExpanded", "shouldRenderMap", "renderKey", "title", "loading", "t", "user", "data", "height", "widgetConfig"];
15328
15322
  function InExpandableWidgetMap(_ref) {
15329
15323
  let {
15330
15324
  isExpanded,
@@ -15338,7 +15332,7 @@ function InExpandableWidgetMap(_ref) {
15338
15332
  height,
15339
15333
  widgetConfig
15340
15334
  } = _ref,
15341
- rest = _objectWithoutProperties(_ref, _excluded$q);
15335
+ rest = _objectWithoutProperties(_ref, _excluded$r);
15342
15336
  const [mapKey, setMapKey] = React.useState(0);
15343
15337
  const [isMapReady, setIsMapReady] = React.useState(false);
15344
15338
  React.useEffect(() => {
@@ -17538,14 +17532,14 @@ const MapConfig = ({
17538
17532
  });
17539
17533
  };
17540
17534
 
17541
- const _excluded$p = ["config", "title", "loading"];
17535
+ const _excluded$q = ["config", "title", "loading"];
17542
17536
  const Details = _ref => {
17543
17537
  let {
17544
17538
  config = [],
17545
17539
  title,
17546
17540
  loading = false
17547
17541
  } = _ref,
17548
- rest = _objectWithoutProperties(_ref, _excluded$p);
17542
+ rest = _objectWithoutProperties(_ref, _excluded$q);
17549
17543
  return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
17550
17544
  className: "with-border-header h-w-btn-header card",
17551
17545
  loading: loading,
@@ -17561,14 +17555,14 @@ const Details = _ref => {
17561
17555
  }));
17562
17556
  };
17563
17557
 
17564
- const _excluded$o = ["config", "title", "loading"];
17558
+ const _excluded$p = ["config", "title", "loading"];
17565
17559
  const KeyIndicatorsDetails = _ref => {
17566
17560
  let {
17567
17561
  config,
17568
17562
  title,
17569
17563
  loading = false
17570
17564
  } = _ref,
17571
- rest = _objectWithoutProperties(_ref, _excluded$o);
17565
+ rest = _objectWithoutProperties(_ref, _excluded$p);
17572
17566
  return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
17573
17567
  className: "with-border-header h-w-btn-header",
17574
17568
  title: title,
@@ -17598,7 +17592,7 @@ const Style$G = styled__default["default"].div`
17598
17592
  }
17599
17593
  `;
17600
17594
 
17601
- const _excluded$n = ["children", "config", "detailsTitle", "firstColumnWidth"];
17595
+ const _excluded$o = ["children", "config", "detailsTitle", "firstColumnWidth"];
17602
17596
  const DetailsSection = _ref => {
17603
17597
  let {
17604
17598
  children,
@@ -17606,7 +17600,7 @@ const DetailsSection = _ref => {
17606
17600
  detailsTitle,
17607
17601
  firstColumnWidth = "250px"
17608
17602
  } = _ref,
17609
- rest = _objectWithoutProperties(_ref, _excluded$n);
17603
+ rest = _objectWithoutProperties(_ref, _excluded$o);
17610
17604
  return /*#__PURE__*/jsxRuntime.jsx(Style$G, {
17611
17605
  firstColumnWidth: firstColumnWidth,
17612
17606
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -17782,14 +17776,14 @@ const getGoalConfig = () => {
17782
17776
  };
17783
17777
 
17784
17778
  var _templateObject$a;
17785
- const _excluded$m = ["title", "activeSdgGoals", "t"];
17779
+ const _excluded$n = ["title", "activeSdgGoals", "t"];
17786
17780
  function SDGWidget(_ref) {
17787
17781
  let {
17788
17782
  title = "Sustainable Development Goals",
17789
17783
  activeSdgGoals = [],
17790
17784
  t = key => key
17791
17785
  } = _ref,
17792
- props = _objectWithoutProperties(_ref, _excluded$m);
17786
+ props = _objectWithoutProperties(_ref, _excluded$n);
17793
17787
  const sdgConfig = getGoalConfig();
17794
17788
  return /*#__PURE__*/jsxRuntime.jsx(Widget, _objectSpread2(_objectSpread2({
17795
17789
  title: title,
@@ -18087,7 +18081,7 @@ function SdgList({
18087
18081
  });
18088
18082
  }
18089
18083
 
18090
- const _excluded$l = ["title", "description", "onLinkClick", "image", "linkIcon", "sdgList", "items", "onCardClick", "hideSDGList", "t"];
18084
+ const _excluded$m = ["title", "description", "onLinkClick", "image", "linkIcon", "sdgList", "items", "onCardClick", "hideSDGList", "t"];
18091
18085
  const {
18092
18086
  Meta
18093
18087
  } = antd.Card;
@@ -18107,7 +18101,7 @@ function ProjectWidget(_ref) {
18107
18101
  hideSDGList = false,
18108
18102
  t = x => x
18109
18103
  } = _ref,
18110
- props = _objectWithoutProperties(_ref, _excluded$l);
18104
+ props = _objectWithoutProperties(_ref, _excluded$m);
18111
18105
  const [isHovered, setIsHovered] = React__default["default"].useState(false);
18112
18106
  const {
18113
18107
  token
@@ -18379,13 +18373,13 @@ const WidgetCard = _ref => {
18379
18373
  });
18380
18374
  };
18381
18375
 
18382
- const _excluded$k = ["title", "children"];
18376
+ const _excluded$l = ["title", "children"];
18383
18377
  const CarouselWidget = /*#__PURE__*/React.forwardRef((_ref, ref) => {
18384
18378
  let {
18385
18379
  title,
18386
18380
  children
18387
18381
  } = _ref,
18388
- rest = _objectWithoutProperties(_ref, _excluded$k);
18382
+ rest = _objectWithoutProperties(_ref, _excluded$l);
18389
18383
  /**
18390
18384
  * Handles carousel slide change events
18391
18385
  * @param {number} currentSlide - The index of the current slide after change
@@ -18549,7 +18543,7 @@ const EmptyStateContainer = styled__default["default"].div`
18549
18543
  }
18550
18544
  `;
18551
18545
 
18552
- const _excluded$j = ["title", "images", "height", "fallback", "activeDotColor", "inactiveDotColor", "arrowIconColor", "arrowHoverIconColor", "customArrows", "emptyLogo", "emptyText"];
18546
+ const _excluded$k = ["title", "images", "height", "fallback", "activeDotColor", "inactiveDotColor", "arrowIconColor", "arrowHoverIconColor", "customArrows", "emptyLogo", "emptyText"];
18553
18547
  function ImageCarousel(_ref) {
18554
18548
  let {
18555
18549
  title,
@@ -18564,7 +18558,7 @@ function ImageCarousel(_ref) {
18564
18558
  emptyLogo = antd.Empty.PRESENTED_IMAGE_SIMPLE,
18565
18559
  emptyText = "No Image"
18566
18560
  } = _ref,
18567
- rest = _objectWithoutProperties(_ref, _excluded$j);
18561
+ rest = _objectWithoutProperties(_ref, _excluded$k);
18568
18562
  const [previewVisible, setPreviewVisible] = React.useState(false);
18569
18563
  const [current, setCurrent] = React.useState(0);
18570
18564
  const carouselRef = React.useRef(null);
@@ -24120,7 +24114,7 @@ const RepeatableModals = ({
24120
24114
  }) : null;
24121
24115
  };
24122
24116
 
24123
- const _excluded$i = ["viewGroup"],
24117
+ const _excluded$j = ["viewGroup"],
24124
24118
  _excluded2$1 = ["label", "icon", "position"];
24125
24119
  const Content$1 = _ref => {
24126
24120
  let {
@@ -24189,7 +24183,7 @@ const Content$1 = _ref => {
24189
24183
  if (groups[gKey].viewGroup === key) {
24190
24184
  // eslint-disable-next-line no-unused-vars
24191
24185
  const _groups$gKey = groups[gKey],
24192
- gCfg = _objectWithoutProperties(_groups$gKey, _excluded$i);
24186
+ gCfg = _objectWithoutProperties(_groups$gKey, _excluded$j);
24193
24187
  items[gKey] = gCfg;
24194
24188
  }
24195
24189
  return items;
@@ -24447,7 +24441,7 @@ const Content$1 = _ref => {
24447
24441
  });
24448
24442
  };
24449
24443
 
24450
- const _excluded$h = ["t", "open", "title", "children", "onClose", "onSuccess", "cancelBtnText", "saveBtnText", "className", "loading", "disabled", "withModalFormWrapper"];
24444
+ const _excluded$i = ["t", "open", "title", "children", "onClose", "onSuccess", "cancelBtnText", "saveBtnText", "className", "loading", "disabled", "withModalFormWrapper"];
24451
24445
  function Modal(_ref) {
24452
24446
  let {
24453
24447
  t = text => text,
@@ -24463,7 +24457,7 @@ function Modal(_ref) {
24463
24457
  disabled = false,
24464
24458
  withModalFormWrapper = true
24465
24459
  } = _ref,
24466
- props = _objectWithoutProperties(_ref, _excluded$h);
24460
+ props = _objectWithoutProperties(_ref, _excluded$i);
24467
24461
  return /*#__PURE__*/jsxRuntime.jsxs(antd.Modal, _objectSpread2(_objectSpread2({
24468
24462
  width: 650,
24469
24463
  footer: null,
@@ -34999,7 +34993,7 @@ const beforeUpload = allowedExtensions => file => {
34999
34993
  };
35000
34994
  const allowedImageExtensions = ['.jpg', '.jpeg', '.png', '.gif', '.webp', '.avif', '.bmp', '.tiff', '.tif', '.heif', '.heic', '.svg', '.ico'];
35001
34995
 
35002
- const _excluded$g = ["placeholder"],
34996
+ const _excluded$h = ["placeholder"],
35003
34997
  _excluded2 = ["label", "description", "excludeFromEdit", "showFormIf", "icon", "position", "template", "formClass"];
35004
34998
  dayjs__default["default"].extend(utc);
35005
34999
  dayjs__default["default"].extend(timezone);
@@ -35948,7 +35942,7 @@ const inputTypeComponent$1 = {
35948
35942
  },
35949
35943
  commentHint
35950
35944
  } = _ref19,
35951
- props = _objectWithoutProperties(_ref19.props, _excluded$g);
35945
+ props = _objectWithoutProperties(_ref19.props, _excluded$h);
35952
35946
  let {
35953
35947
  onChange,
35954
35948
  value,
@@ -38630,7 +38624,7 @@ function AjaxSelect(props) {
38630
38624
  }, props));
38631
38625
  }
38632
38626
 
38633
- const _excluded$f = ["placeholder"];
38627
+ const _excluded$g = ["placeholder"];
38634
38628
  const propHasValue = val => {
38635
38629
  if (Array.isArray(val)) {
38636
38630
  return val.length > 0 ? true : false;
@@ -39385,7 +39379,7 @@ const inputTypeComponent = {
39385
39379
  },
39386
39380
  commentHint
39387
39381
  } = _ref15,
39388
- props = _objectWithoutProperties(_ref15.props, _excluded$f);
39382
+ props = _objectWithoutProperties(_ref15.props, _excluded$g);
39389
39383
  let {
39390
39384
  onChange,
39391
39385
  value
@@ -41023,7 +41017,7 @@ const getGrouContent = (form, values, i, formId, excludedKeys, getData, setValue
41023
41017
  });
41024
41018
  };
41025
41019
 
41026
- const _excluded$e = ["icon"];
41020
+ const _excluded$f = ["icon"];
41027
41021
  function DynamicForm(_ref) {
41028
41022
  var _data$meta;
41029
41023
  let {
@@ -41638,7 +41632,7 @@ function DynamicForm(_ref) {
41638
41632
  let {
41639
41633
  icon: Icon
41640
41634
  } = _ref3,
41641
- form = _objectWithoutProperties(_ref3, _excluded$e);
41635
+ form = _objectWithoutProperties(_ref3, _excluded$f);
41642
41636
  return /*#__PURE__*/jsxRuntime.jsxs(antd.Button, {
41643
41637
  type: "link",
41644
41638
  size: "large",
@@ -41856,7 +41850,7 @@ const Navigation = _ref => {
41856
41850
  var _templateObject$7;
41857
41851
  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"])));
41858
41852
 
41859
- const _excluded$d = ["onChange", "value"];
41853
+ const _excluded$e = ["onChange", "value"];
41860
41854
  function AuthForm(_ref) {
41861
41855
  var _steps$currentStep;
41862
41856
  let {
@@ -41986,7 +41980,7 @@ function AuthForm(_ref) {
41986
41980
  {
41987
41981
  var _field$options;
41988
41982
  const _ref3 = field.props || {},
41989
- restSelectProps = _objectWithoutProperties(_ref3, _excluded$d);
41983
+ restSelectProps = _objectWithoutProperties(_ref3, _excluded$e);
41990
41984
  inputNode = /*#__PURE__*/jsxRuntime.jsx(StyledSelect, _objectSpread2(_objectSpread2({
41991
41985
  placeholder: field.placeholder
41992
41986
  }, restSelectProps), {}, {
@@ -42150,7 +42144,7 @@ function MultiBarProgress(_ref) {
42150
42144
  }
42151
42145
  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"])));
42152
42146
 
42153
- const _excluded$c = ["tooltipTitle", "percentage", "strokeColor", "showInfo"];
42147
+ const _excluded$d = ["tooltipTitle", "percentage", "strokeColor", "showInfo"];
42154
42148
  function MultiColorProgressBar(_ref) {
42155
42149
  let {
42156
42150
  tooltipTitle,
@@ -42162,7 +42156,7 @@ function MultiColorProgressBar(_ref) {
42162
42156
  },
42163
42157
  showInfo = false
42164
42158
  } = _ref,
42165
- rest = _objectWithoutProperties(_ref, _excluded$c);
42159
+ rest = _objectWithoutProperties(_ref, _excluded$d);
42166
42160
  return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
42167
42161
  title: tooltipTitle,
42168
42162
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Progress, _objectSpread2({
@@ -42209,7 +42203,7 @@ const SideIcon = _ref3 => {
42209
42203
  });
42210
42204
  };
42211
42205
 
42212
- const _excluded$b = ["value", "options", "onChange", "className", "width"];
42206
+ const _excluded$c = ["value", "options", "onChange", "className", "width"];
42213
42207
  const ProgressTabs = _ref => {
42214
42208
  let {
42215
42209
  value = 'setup',
@@ -42230,7 +42224,7 @@ const ProgressTabs = _ref => {
42230
42224
  className = '',
42231
42225
  width = '100%'
42232
42226
  } = _ref,
42233
- rest = _objectWithoutProperties(_ref, _excluded$b);
42227
+ rest = _objectWithoutProperties(_ref, _excluded$c);
42234
42228
  // Transform options to include icons and handle disabled state
42235
42229
  const transformedOptions = options.map(option => _objectSpread2(_objectSpread2({}, option), {}, {
42236
42230
  label: /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -44445,7 +44439,6 @@ const getDefaultActiveFilters = (params, selectFiltersConfig, defaultPageSize, d
44445
44439
  });
44446
44440
  return o;
44447
44441
  };
44448
- const NEW_PAGINATION_APPS = ["nashiriki"];
44449
44442
  const filterParams = (value, module) => {
44450
44443
  const {
44451
44444
  activeFilters,
@@ -44461,10 +44454,12 @@ const filterParams = (value, module) => {
44461
44454
  ...filters
44462
44455
  } = activeFilters || {};
44463
44456
  const params = {};
44464
- params.pagination = JSON.stringify({
44465
- [NEW_PAGINATION_APPS.includes(module) ? "skip" : "page"]: page,
44466
- [NEW_PAGINATION_APPS.includes(module) ? "take" : "pageSize"]: pageSize
44467
- });
44457
+ // Use skip and take inside pagination object
44458
+ // Calculate skip from page number (page 1 = skip 1, page 2 = skip 21, etc.)
44459
+ params.pagination = {
44460
+ skip: page ? (page - 1) * (pageSize || 20) + 1 : 1,
44461
+ take: pageSize || 20
44462
+ };
44468
44463
  if (search && searchParams) {
44469
44464
  params.search = JSON.stringify({
44470
44465
  qs: search,
@@ -44479,12 +44474,24 @@ const filterParams = (value, module) => {
44479
44474
  }
44480
44475
  if (Object.keys(filters).length) {
44481
44476
  if (value.sourceId && value.sourceId === "overview") {
44482
- params.filters = JSON.stringify(filters);
44477
+ const {
44478
+ activeTab,
44479
+ ...restFilters
44480
+ } = filters;
44481
+ Object.assign(params, restFilters);
44482
+ if (activeTab !== undefined) {
44483
+ params.tab = activeTab;
44484
+ }
44483
44485
  } else {
44484
- params.filters = JSON.stringify({
44485
- ...filters,
44486
- authorId: undefined
44487
- });
44486
+ const {
44487
+ authorId,
44488
+ activeTab,
44489
+ ...restFilters
44490
+ } = filters;
44491
+ Object.assign(params, restFilters);
44492
+ if (activeTab !== undefined) {
44493
+ params.tab = activeTab;
44494
+ }
44488
44495
  }
44489
44496
  }
44490
44497
  return {
@@ -44782,7 +44789,7 @@ const renderRows = ({
44782
44789
  });
44783
44790
  };
44784
44791
 
44785
- const _excluded$a = ["page", "pageSize"];
44792
+ const _excluded$b = ["page", "pageSize"];
44786
44793
  function DataStoreTable$1(_ref) {
44787
44794
  let {
44788
44795
  mod,
@@ -44880,7 +44887,7 @@ function DataStoreTable$1(_ref) {
44880
44887
  page,
44881
44888
  pageSize
44882
44889
  } = activeFilters,
44883
- rest = _objectWithoutProperties(activeFilters, _excluded$a);
44890
+ rest = _objectWithoutProperties(activeFilters, _excluded$b);
44884
44891
  const params = _objectSpread2({
44885
44892
  pagination: {
44886
44893
  page,
@@ -45200,7 +45207,7 @@ const getLinkedColumns = ({
45200
45207
  ellipsis: true
45201
45208
  }];
45202
45209
 
45203
- const _excluded$9 = ["administrativeLevel1", "administrativeLevel2"];
45210
+ const _excluded$a = ["administrativeLevel1", "administrativeLevel2"];
45204
45211
  function DataStoreView(_ref) {
45205
45212
  let {
45206
45213
  mod,
@@ -45263,7 +45270,7 @@ function DataStoreView(_ref) {
45263
45270
  administrativeLevel1,
45264
45271
  administrativeLevel2
45265
45272
  } = _ref2,
45266
- rest = _objectWithoutProperties(_ref2, _excluded$9);
45273
+ rest = _objectWithoutProperties(_ref2, _excluded$a);
45267
45274
  const levels = [administrativeLevel1, administrativeLevel2].filter(p => !!p);
45268
45275
  let levelsRes = {
45269
45276
  data: []
@@ -46761,14 +46768,14 @@ const TabsStyled = styled__default["default"](antd.Tabs)`
46761
46768
 
46762
46769
  `;
46763
46770
 
46764
- const _excluded$8 = ["defaultActiveKey", "items", "onChange"];
46771
+ const _excluded$9 = ["defaultActiveKey", "items", "onChange"];
46765
46772
  const StyledTabs = _ref => {
46766
46773
  let {
46767
46774
  defaultActiveKey,
46768
46775
  items,
46769
46776
  onChange
46770
46777
  } = _ref,
46771
- rest = _objectWithoutProperties(_ref, _excluded$8);
46778
+ rest = _objectWithoutProperties(_ref, _excluded$9);
46772
46779
  return /*#__PURE__*/jsxRuntime.jsx(TabsStyled, _objectSpread2({
46773
46780
  defaultActiveKey: defaultActiveKey,
46774
46781
  items: items,
@@ -46839,7 +46846,7 @@ const Container$1 = styled__default["default"].div`
46839
46846
  width: ${props => props.isPdf ? props.width ? props.width : '1000px' : 'calc(100% - 48px)'};
46840
46847
  `;
46841
46848
 
46842
- const _excluded$7 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "isPercentage", "seriesField", "formattedYAxis", "formattedXAxis", "color", "height", "t", "isPdf", "legendConfig", "width", "xAxisConfig"];
46849
+ const _excluded$8 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "isPercentage", "seriesField", "formattedYAxis", "formattedXAxis", "color", "height", "t", "isPdf", "legendConfig", "width", "xAxisConfig"];
46843
46850
  const {
46844
46851
  useToken: useToken$g
46845
46852
  } = antd.theme;
@@ -46929,7 +46936,7 @@ function BarChart(_ref) {
46929
46936
  width,
46930
46937
  xAxisConfig = {}
46931
46938
  } = _ref;
46932
- _objectWithoutProperties(_ref, _excluded$7);
46939
+ _objectWithoutProperties(_ref, _excluded$8);
46933
46940
  const containerRef = React__default["default"].useRef(null);
46934
46941
  const chartRef = React__default["default"].useRef(null);
46935
46942
  const {
@@ -47013,7 +47020,7 @@ function BarChart(_ref) {
47013
47020
  });
47014
47021
  }
47015
47022
 
47016
- const _excluded$6 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isSmooth", "seriesField", "isArea", "formattedYAxis", "formattedXAxis", "color", "isPercentage", "height", "autoHideXLabel", "t", "isPdf", "legendConfig", "width", "yAxis", "xAxis"];
47023
+ const _excluded$7 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isSmooth", "seriesField", "isArea", "formattedYAxis", "formattedXAxis", "color", "isPercentage", "height", "autoHideXLabel", "t", "isPdf", "legendConfig", "width", "yAxis", "xAxis"];
47017
47024
  const {
47018
47025
  useToken: useToken$f
47019
47026
  } = antd.theme;
@@ -47102,7 +47109,7 @@ function LineChart(_ref) {
47102
47109
  yAxis: customYAxis,
47103
47110
  xAxis: customXAxis
47104
47111
  } = _ref;
47105
- _objectWithoutProperties(_ref, _excluded$6);
47112
+ _objectWithoutProperties(_ref, _excluded$7);
47106
47113
  const containerRef = React__default["default"].useRef(null);
47107
47114
  const chartRef = React__default["default"].useRef(null);
47108
47115
  const {
@@ -47204,7 +47211,7 @@ function LineChart(_ref) {
47204
47211
  });
47205
47212
  }
47206
47213
 
47207
- const _excluded$5 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "seriesField", "isPercentage", "showBackground", "formattedYAxis", "formattedXAxis", "color", "height", "groupField", "width", "legendConfig", "isPdf", "yAxis", "xAxis"];
47214
+ const _excluded$6 = ["data", "xFieldKey", "yFieldKey", "renderTooltipContent", "tooltipConfig", "animated", "isStack", "isGroup", "seriesField", "isPercentage", "showBackground", "formattedYAxis", "formattedXAxis", "color", "height", "groupField", "width", "legendConfig", "isPdf", "yAxis", "xAxis"];
47208
47215
  const {
47209
47216
  useToken: useToken$e
47210
47217
  } = antd.theme;
@@ -47309,7 +47316,7 @@ function ColumnChart(_ref) {
47309
47316
  yAxis: customYAxis,
47310
47317
  xAxis: customXAxis
47311
47318
  } = _ref;
47312
- _objectWithoutProperties(_ref, _excluded$5);
47319
+ _objectWithoutProperties(_ref, _excluded$6);
47313
47320
  const containerRef = React__default["default"].useRef(null);
47314
47321
  const chartRef = React__default["default"].useRef(null);
47315
47322
  const {
@@ -47577,7 +47584,7 @@ function RadialBarChart(_ref) {
47577
47584
  });
47578
47585
  }
47579
47586
 
47580
- const _excluded$4 = ["data", "angleField", "colorField", "color", "height", "innerRadius", "radius", "legend", "label", "statistic", "tooltip", "renderTooltipContent", "tooltipConfig", "meta", "animation", "t", "isPdf", "legendConfig"];
47587
+ const _excluded$5 = ["data", "angleField", "colorField", "color", "height", "innerRadius", "radius", "legend", "label", "statistic", "tooltip", "renderTooltipContent", "tooltipConfig", "meta", "animation", "t", "isPdf", "legendConfig"];
47581
47588
  const {
47582
47589
  useToken: useToken$c
47583
47590
  } = antd.theme;
@@ -47652,7 +47659,7 @@ function DonutPie(_ref) {
47652
47659
  isPdf = false,
47653
47660
  legendConfig = {}
47654
47661
  } = _ref,
47655
- rest = _objectWithoutProperties(_ref, _excluded$4);
47662
+ rest = _objectWithoutProperties(_ref, _excluded$5);
47656
47663
  const containerRef = React.useRef(null);
47657
47664
  const chartRef = React.useRef(null);
47658
47665
  const {
@@ -48172,7 +48179,7 @@ function StackChart(_ref) {
48172
48179
  });
48173
48180
  }
48174
48181
 
48175
- const _excluded$3 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "fillOpacity", "height", "t", "isPdf", "legendConfig", "width"];
48182
+ const _excluded$4 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "fillOpacity", "height", "t", "isPdf", "legendConfig", "width"];
48176
48183
  const {
48177
48184
  useToken: useToken$a
48178
48185
  } = antd.theme;
@@ -48249,7 +48256,7 @@ const AreaChart = _ref => {
48249
48256
  legendConfig = {},
48250
48257
  width
48251
48258
  } = _ref,
48252
- rest = _objectWithoutProperties(_ref, _excluded$3);
48259
+ rest = _objectWithoutProperties(_ref, _excluded$4);
48253
48260
  const containerRef = React.useRef(null);
48254
48261
  const chartRef = React.useRef(null);
48255
48262
  const {
@@ -48337,7 +48344,7 @@ const AreaChart = _ref => {
48337
48344
  });
48338
48345
  };
48339
48346
 
48340
- const _excluded$2 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "score", "height", "isPdf", "legendConfig"];
48347
+ const _excluded$3 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "score", "height", "isPdf", "legendConfig"];
48341
48348
  const {
48342
48349
  useToken: useToken$9
48343
48350
  } = antd.theme;
@@ -48362,7 +48369,7 @@ const RadarChart = _ref => {
48362
48369
  isPdf = false,
48363
48370
  legendConfig = {}
48364
48371
  } = _ref,
48365
- rest = _objectWithoutProperties(_ref, _excluded$2);
48372
+ rest = _objectWithoutProperties(_ref, _excluded$3);
48366
48373
  const containerRef = React.useRef(null);
48367
48374
  const chartRef = React.useRef(null);
48368
48375
  const {
@@ -50694,7 +50701,7 @@ function StakeholderMappings(_ref3) {
50694
50701
  }
50695
50702
  var index = withProvider(StakeholderMappings);
50696
50703
 
50697
- const _excluded$1 = ["t", "checkboxConfig", "defaultTableFilters", "columns", "children", "data", "loading", "APP", "getApiBaseUrl", "selectOptions", "selectFilters", "showCreate", "location", "goTo", "getRedirectLink", "defaultUrlParams", "view", "module", "filtersConfig", "isMobile"];
50704
+ const _excluded$2 = ["t", "checkboxConfig", "defaultTableFilters", "columns", "children", "data", "loading", "APP", "getApiBaseUrl", "selectOptions", "selectFilters", "showCreate", "location", "goTo", "getRedirectLink", "defaultUrlParams", "view", "module", "filtersConfig", "isMobile"];
50698
50705
  const BaseScreen = _ref => {
50699
50706
  var _data$data;
50700
50707
  let {
@@ -50732,7 +50739,7 @@ const BaseScreen = _ref => {
50732
50739
  filtersConfig,
50733
50740
  isMobile
50734
50741
  } = _ref,
50735
- rest = _objectWithoutProperties(_ref, _excluded$1);
50742
+ rest = _objectWithoutProperties(_ref, _excluded$2);
50736
50743
  const [showFilters, setShowFilters] = React.useState(false);
50737
50744
  const [hasError, setHasError] = React.useState(false);
50738
50745
  const {
@@ -51165,6 +51172,7 @@ function useUserGrowth({
51165
51172
  const {
51166
51173
  token
51167
51174
  } = useToken$6();
51175
+ console.log("mainData", mainData);
51168
51176
  const fetchData = () => {
51169
51177
  const {
51170
51178
  dates = []
@@ -51300,6 +51308,7 @@ function UserGrowth({
51300
51308
  t,
51301
51309
  translationKeys
51302
51310
  });
51311
+ console.log("usergrowthhhhh", data);
51303
51312
  React.useEffect(() => {
51304
51313
  if (typeof fetchUserGrowth === "function") {
51305
51314
  fetchUserGrowth(selectValue);
@@ -51427,6 +51436,7 @@ function TopContributors({
51427
51436
  data,
51428
51437
  t
51429
51438
  });
51439
+ console.log("topcontributorshhhh", data);
51430
51440
  return /*#__PURE__*/jsxRuntime.jsx(Widget, {
51431
51441
  title: t(`admin::top-contributors`),
51432
51442
  className: "with-border-header overflow-hidden h-w-btn-header",
@@ -51697,7 +51707,6 @@ function AddUserModal({
51697
51707
  setAccountUsed(true);
51698
51708
  }).catch(() => {});
51699
51709
  };
51700
- console.log("hellooooooooooooooooooooooooo");
51701
51710
  return /*#__PURE__*/jsxRuntime.jsx(Modal, {
51702
51711
  open: isOpen,
51703
51712
  title: "admin::edit-user",
@@ -51823,7 +51832,7 @@ const renderTypeTag = ({
51823
51832
  });
51824
51833
  };
51825
51834
 
51826
- const getColumns$6 = ({
51835
+ const getColumns$7 = ({
51827
51836
  t,
51828
51837
  show = "show",
51829
51838
  selectOptions,
@@ -52307,7 +52316,7 @@ function UserTable(_ref) {
52307
52316
  role: config.userRoles.filter(c => !c.isForAppAdmin)
52308
52317
  };
52309
52318
  }, [config.userRoles, config.accountTypes, accounts]);
52310
- const columns = React.useMemo(() => getColumns$6({
52319
+ const columns = React.useMemo(() => getColumns$7({
52311
52320
  t,
52312
52321
  show: activeTab,
52313
52322
  selectOptions,
@@ -52403,7 +52412,7 @@ function UserTable(_ref) {
52403
52412
  });
52404
52413
  }
52405
52414
 
52406
- const getColumns$5 = ({
52415
+ const getColumns$6 = ({
52407
52416
  t,
52408
52417
  goTo,
52409
52418
  show = "show",
@@ -52756,7 +52765,7 @@ const getTabs$1 = ({
52756
52765
  label: t("Suspended")
52757
52766
  }];
52758
52767
 
52759
- const getColumns$4 = ({
52768
+ const getColumns$5 = ({
52760
52769
  t,
52761
52770
  selectOptions,
52762
52771
  module
@@ -52879,7 +52888,7 @@ function CombineAccountModal({
52879
52888
  } = useToken$4();
52880
52889
  const [MainForm] = antd.Form.useForm();
52881
52890
  const columns = React.useMemo(() => {
52882
- return getColumns$4({
52891
+ return getColumns$5({
52883
52892
  t,
52884
52893
  selectOptions,
52885
52894
  module
@@ -53048,7 +53057,7 @@ function NewAccount({
53048
53057
  };
53049
53058
  return /*#__PURE__*/jsxRuntime.jsx(Modal, {
53050
53059
  t: t,
53051
- title: t(isEdit ? "admin::edit-account" : "admin::add-account"),
53060
+ title: t(isEdit ? "edit-account" : "add-account"),
53052
53061
  open: isOpen,
53053
53062
  onClose: onClose,
53054
53063
  onSuccess: onSubmit,
@@ -53182,7 +53191,7 @@ function AccountTable(_ref) {
53182
53191
  onCancel: () => {}
53183
53192
  });
53184
53193
  }, [t, fetchData, fetchPendingAccounts]);
53185
- const columns = React.useMemo(() => getColumns$5({
53194
+ const columns = React.useMemo(() => getColumns$6({
53186
53195
  t,
53187
53196
  show: activeTab,
53188
53197
  selectOptions,
@@ -53353,233 +53362,12 @@ const checkboxConfig$8 = {
53353
53362
  name: "Name",
53354
53363
  datastakeId: "ID"
53355
53364
  };
53356
- const getNameByLevel = (data, level) => {
53365
+ const getNameByLevel$1 = (data, level) => {
53357
53366
  const entry = Object.values(data || {}).find(item => item.level === level);
53358
53367
  return entry;
53359
53368
  };
53360
53369
 
53361
- const getColumns$3 = ({
53362
- t,
53363
- goTo = () => {},
53364
- show = "show",
53365
- getRedirectLink = () => {},
53366
- token,
53367
- selectedSubjects,
53368
- setSelectedSubjects,
53369
- selectOptions,
53370
- entity
53371
- }) => {
53372
- const cols = [{
53373
- title: "",
53374
- dataIndex: "select",
53375
- key: "select",
53376
- width: 50,
53377
- show: true,
53378
- render: (v, all) => {
53379
- if (all.empty) {
53380
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53381
- className: "daf-default-cell"
53382
- });
53383
- }
53384
- return /*#__PURE__*/jsxRuntime.jsx(antd.Checkbox, {
53385
- onChange: () => setSelectedSubjects(prev => {
53386
- const isSelected = prev.some(p => p.id === all.id);
53387
- if (isSelected) {
53388
- return prev.filter(p => p.id !== all.id);
53389
- }
53390
- return [...prev, all];
53391
- }),
53392
- checked: selectedSubjects.some(p => p.id === all.id),
53393
- disabled: selectedSubjects?.length >= 3 && !selectedSubjects.some(p => p.id === all.id)
53394
- });
53395
- }
53396
- }, {
53397
- title: t("ID"),
53398
- dataIndex: "datastakeId",
53399
- key: "datastakeId",
53400
- ellipsis: true,
53401
- show: true,
53402
- render: (value, all) => {
53403
- if (all.empty) {
53404
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53405
- className: "daf-default-cell"
53406
- });
53407
- }
53408
- return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
53409
- title: value,
53410
- children: value
53411
- });
53412
- }
53413
- }, {
53414
- title: t("Name"),
53415
- dataIndex: "name",
53416
- key: "name",
53417
- ellipsis: true,
53418
- show: true,
53419
- render: (value, all) => {
53420
- if (all.empty) {
53421
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53422
- className: "daf-default-cell"
53423
- });
53424
- }
53425
- return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
53426
- title: value,
53427
- children: value
53428
- });
53429
- }
53430
- }, {
53431
- title: t("Category"),
53432
- dataIndex: "category",
53433
- key: "category",
53434
- ellipsis: true,
53435
- show: true,
53436
- render: (value, all) => {
53437
- if (all.empty) {
53438
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53439
- className: "daf-default-cell"
53440
- });
53441
- }
53442
- const category = findOptions(value, selectOptions?.category || []) || "--";
53443
- return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
53444
- title: category,
53445
- children: category
53446
- });
53447
- }
53448
- }, {
53449
- title: t("Country"),
53450
- dataIndex: "country",
53451
- key: "country",
53452
- ellipsis: true,
53453
- show: true,
53454
- render: (value, all) => {
53455
- if (all.empty) {
53456
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53457
- className: "daf-default-cell"
53458
- });
53459
- }
53460
- const country = findOptions(value, selectOptions?.country || []) || "--";
53461
- return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
53462
- title: country,
53463
- children: country
53464
- });
53465
- }
53466
- }, {
53467
- title: t("Province"),
53468
- dataIndex: "administrativeLevel1",
53469
- key: "administrativeLevel1",
53470
- ellipsis: true,
53471
- show: entity.includes("locations"),
53472
- render: (value, all) => {
53473
- if (all.empty) {
53474
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53475
- className: "daf-default-cell"
53476
- });
53477
- }
53478
- let label;
53479
- if (all?.administrativeLevel1 && value === all?.administrativeLevel1) {
53480
- label = all?.linking?.SCL?.[value]?.name;
53481
- } else {
53482
- label = getNameByLevel(all?.linking?.SCL, "level_1")?.name;
53483
- }
53484
- return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
53485
- title: label || '-',
53486
- children: label || '-'
53487
- });
53488
- }
53489
- }, {
53490
- title: t("Territory"),
53491
- dataIndex: "administrativeLevel2",
53492
- key: "administrativeLevel2",
53493
- show: entity.includes("locations"),
53494
- ellipsis: true,
53495
- render: (value, all) => {
53496
- if (all.empty) {
53497
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53498
- className: "daf-default-cell"
53499
- });
53500
- }
53501
- let label;
53502
- if (all?.administrativeLevel2 && value === all?.administrativeLevel2) {
53503
- label = all?.linking?.SCL?.[value]?.name;
53504
- } else {
53505
- label = getNameByLevel(all?.linking?.SCL, "level_2")?.name;
53506
- }
53507
- return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
53508
- title: label || '-',
53509
- children: label || '-'
53510
- });
53511
- }
53512
- }, {
53513
- title: t("Sources"),
53514
- dataIndex: "sources",
53515
- key: "sources",
53516
- show: true,
53517
- render: (value, all) => {
53518
- if (all.empty) {
53519
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53520
- className: "daf-default-cell"
53521
- });
53522
- }
53523
- const MAX_SOURCES = 3;
53524
- const count = value?.length === MAX_SOURCES + 1 ? value?.length : MAX_SOURCES;
53525
- return Array.isArray(value) && value?.length > 0 ? /*#__PURE__*/jsxRuntime.jsx(antd.Avatar.Group, {
53526
- max: {
53527
- count: count,
53528
- style: {
53529
- color: token.baseGray90,
53530
- backgroundColor: token.baseGray20,
53531
- border: `1px solid ${token.baseGray40}`
53532
- }
53533
- },
53534
- size: "small",
53535
- children: value.map((v, i) => /*#__PURE__*/jsxRuntime.jsx(antd.Avatar, {
53536
- size: "small",
53537
- style: {
53538
- backgroundColor: token.baseGray20,
53539
- color: token.baseGray90,
53540
- border: `1px solid ${token.baseGray40}`,
53541
- display: "flex",
53542
- alignItems: "center",
53543
- justifyContent: "center"
53544
- },
53545
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
53546
- name: "Organisation02",
53547
- width: 18,
53548
- height: 18,
53549
- color: token.baseGray90
53550
- })
53551
- }, i))
53552
- }) : '-';
53553
- }
53554
- }, {
53555
- title: "",
53556
- dataIndex: "actions",
53557
- key: "actions",
53558
- width: 60,
53559
- show: true,
53560
- render: (value, all) => {
53561
- if (all.empty) {
53562
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53563
- className: "daf-default-cell"
53564
- });
53565
- }
53566
- return /*#__PURE__*/jsxRuntime.jsx("div", {
53567
- className: "cursor-pointer",
53568
- onClick: () => {
53569
- goTo(getRedirectLink(`/app/accounts/view/${all.id}/details`));
53570
- },
53571
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
53572
- name: "Link",
53573
- width: 18,
53574
- height: 18
53575
- })
53576
- });
53577
- }
53578
- }];
53579
- return cols.filter(c => c[show]);
53580
- };
53581
-
53582
- const getColumns$2 = ({
53370
+ const getColumns$4 = ({
53583
53371
  t,
53584
53372
  selectOptions,
53585
53373
  module,
@@ -53642,7 +53430,7 @@ const getColumns$2 = ({
53642
53430
  if (all?.administrativeLevel1 && value === all?.administrativeLevel1) {
53643
53431
  label = all?.linking?.SCL?.[value]?.name;
53644
53432
  } else {
53645
- label = getNameByLevel(all?.linking?.SCL, "level_1")?.name;
53433
+ label = getNameByLevel$1(all?.linking?.SCL, "level_1")?.name;
53646
53434
  }
53647
53435
  return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
53648
53436
  title: label || '-',
@@ -53659,7 +53447,7 @@ const getColumns$2 = ({
53659
53447
  if (all?.administrativeLevel2 && value === all?.administrativeLevel2) {
53660
53448
  label = all?.linking?.SCL?.[value]?.name;
53661
53449
  } else {
53662
- label = getNameByLevel(all?.linking?.SCL, "level_2")?.name;
53450
+ label = getNameByLevel$1(all?.linking?.SCL, "level_2")?.name;
53663
53451
  }
53664
53452
  return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
53665
53453
  title: label || '-',
@@ -53688,7 +53476,7 @@ function CombineLocationModal({
53688
53476
  const [MainForm] = antd.Form.useForm();
53689
53477
  const [isDisabled, setIsDisabled] = React.useState(true);
53690
53478
  const columns = React.useMemo(() => {
53691
- return getColumns$2({
53479
+ return getColumns$4({
53692
53480
  t,
53693
53481
  selectOptions,
53694
53482
  module,
@@ -53806,7 +53594,7 @@ function CombineLocationModal({
53806
53594
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
53807
53595
  placeholder: t("Province"),
53808
53596
  options: selectedLocations.map(location => {
53809
- const _data = getNameByLevel(location?.linking?.SCL, "level_1");
53597
+ const _data = getNameByLevel$1(location?.linking?.SCL, "level_1");
53810
53598
  return {
53811
53599
  label: _data?.name || "-",
53812
53600
  value: _data?.id || "-"
@@ -53819,7 +53607,7 @@ function CombineLocationModal({
53819
53607
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
53820
53608
  placeholder: t("Territory"),
53821
53609
  options: selectedLocations.map(location => {
53822
- const _data = getNameByLevel(location?.linking?.SCL, "level_2");
53610
+ const _data = getNameByLevel$1(location?.linking?.SCL, "level_2");
53823
53611
  return {
53824
53612
  label: _data?.name || "-",
53825
53613
  value: _data?.id || "-"
@@ -53837,6 +53625,233 @@ function CombineLocationModal({
53837
53625
  });
53838
53626
  }
53839
53627
 
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"];
53840
53855
  const {
53841
53856
  useToken: useToken$2
53842
53857
  } = antd.theme;
@@ -53864,6 +53879,29 @@ function LocationTable(_ref) {
53864
53879
  token
53865
53880
  } = useToken$2();
53866
53881
  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
+ };
53867
53905
  const {
53868
53906
  filter,
53869
53907
  activeTab,
@@ -53885,7 +53923,7 @@ function LocationTable(_ref) {
53885
53923
  defaultPageSize,
53886
53924
  filtersConfig: filtersConfig$8,
53887
53925
  getRedirectLink,
53888
- getData,
53926
+ getData: getDataWithStringPagination,
53889
53927
  refetchTrigger
53890
53928
  });
53891
53929
  const selectOptions = React.useMemo(() => {
@@ -53913,7 +53951,7 @@ function LocationTable(_ref) {
53913
53951
  children: [/*#__PURE__*/jsxRuntime.jsxs(AdminTable, {
53914
53952
  filters: filter,
53915
53953
  t: t,
53916
- headerTitle: headerTitle,
53954
+ headerTitle: "test",
53917
53955
  actionButton: [{
53918
53956
  icon: "Merge",
53919
53957
  onClick: () => setCombineLocationVisible(true),
@@ -53981,6 +54019,7 @@ function LocationTable(_ref) {
53981
54019
  if (typeof mergeSubjectsFunction === 'function') {
53982
54020
  mergeSubjectsFunction(data);
53983
54021
  setSelectedLocations([]);
54022
+ antd.message.success(t("Locations successfully merged."));
53984
54023
  }
53985
54024
  },
53986
54025
  selectedLocations: selectedLocations,
@@ -53991,6 +54030,227 @@ function LocationTable(_ref) {
53991
54030
  });
53992
54031
  }
53993
54032
 
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
+
53994
54254
  const mapToSelectOptions = (items, valueKey, selectOptions, optionKey, customMapper = null) => {
53995
54255
  return items.map(item => {
53996
54256
  if (customMapper) {
@@ -54069,7 +54329,7 @@ const getColumns$1 = ({
54069
54329
  if (all?.administrativeLevel1 && value === all?.administrativeLevel1) {
54070
54330
  label = all?.linking?.SCL?.[value]?.name;
54071
54331
  } else {
54072
- label = getNameByLevel(all?.linking?.SCL, "level_1")?.name;
54332
+ label = getNameByLevel$1(all?.linking?.SCL, "level_1")?.name;
54073
54333
  }
54074
54334
  return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
54075
54335
  title: label || '-',
@@ -54086,7 +54346,7 @@ const getColumns$1 = ({
54086
54346
  if (all?.administrativeLevel2 && value === all?.administrativeLevel2) {
54087
54347
  label = all?.linking?.SCL?.[value]?.name;
54088
54348
  } else {
54089
- label = getNameByLevel(all?.linking?.SCL, "level_2")?.name;
54349
+ label = getNameByLevel$1(all?.linking?.SCL, "level_2")?.name;
54090
54350
  }
54091
54351
  return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
54092
54352
  title: label || '-',
@@ -54218,7 +54478,7 @@ function CombineSubjectsModal({
54218
54478
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
54219
54479
  placeholder: t("Province"),
54220
54480
  options: mapToSelectOptions(selectedSubjects, null, selectOptions, null, subject => {
54221
- const _data = getNameByLevel(subject?.linking?.SCL, "level_1");
54481
+ const _data = getNameByLevel$1(subject?.linking?.SCL, "level_1");
54222
54482
  return {
54223
54483
  label: _data?.name || "-",
54224
54484
  value: _data?.id || "-"
@@ -54231,7 +54491,7 @@ function CombineSubjectsModal({
54231
54491
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
54232
54492
  placeholder: t("Territory"),
54233
54493
  options: mapToSelectOptions(selectedSubjects, null, selectOptions, null, subject => {
54234
- const _data = getNameByLevel(subject?.linking?.SCL, "level_2");
54494
+ const _data = getNameByLevel$1(subject?.linking?.SCL, "level_2");
54235
54495
  return {
54236
54496
  label: _data?.name || "-",
54237
54497
  value: _data?.id || "-"
@@ -54305,11 +54565,11 @@ function SubjectsTable(_ref) {
54305
54565
  return {
54306
54566
  category: (_config$options = config.options) === null || _config$options === void 0 ? void 0 : _config$options.category,
54307
54567
  country: (_config$options2 = config.options) === null || _config$options2 === void 0 ? void 0 : _config$options2.countries,
54308
- sources: [] //TODO: add sources logic and make sure you only show unique sources only once
54568
+ sources: []
54309
54569
  };
54310
54570
  }, [config.options]);
54311
54571
  const columns = React.useMemo(() => {
54312
- return getColumns$3({
54572
+ return getColumns$2({
54313
54573
  t,
54314
54574
  goTo,
54315
54575
  token,
@@ -54384,19 +54644,20 @@ function SubjectsTable(_ref) {
54384
54644
  }), /*#__PURE__*/jsxRuntime.jsx(CombineSubjectsModal, {
54385
54645
  isOpen: isCombineModalOpen,
54386
54646
  t: t,
54387
- onClose: () => {
54388
- setIsModalOpen(false);
54389
- },
54647
+ onClose: () => setIsModalOpen(false),
54390
54648
  onSuccess: data => {
54391
54649
  setIsModalOpen(false);
54392
54650
  setLoading(true);
54651
+ antd.message.success(t("Subjects successfully merged."));
54393
54652
  if (typeof mergeSubjectsFunction === 'function') {
54394
- mergeSubjectsFunction(data);
54395
- setSelectedSubjects([]);
54653
+ mergeSubjectsFunction(data).finally(() => {
54654
+ setSelectedSubjects([]);
54655
+ fetchData();
54656
+ });
54396
54657
  }
54397
54658
  },
54398
54659
  selectedSubjects: selectedSubjects,
54399
- selectOptions: selectOptions || {},
54660
+ selectOptions: selectOptions,
54400
54661
  module: module,
54401
54662
  entity: headerTitle
54402
54663
  })]
@@ -54849,10 +55110,7 @@ const getColumns = ({
54849
55110
  }];
54850
55111
  return cols.filter(v => v.show);
54851
55112
  };
54852
- const checkboxConfig$7 = {
54853
- name: "Name",
54854
- datastakeId: "ID"
54855
- };
55113
+ const checkboxConfig$7 = {};
54856
55114
  const selectFiltersConfig$7 = {
54857
55115
  userRole: {
54858
55116
  type: "select",
@@ -54882,11 +55140,18 @@ const selectFiltersConfig$7 = {
54882
55140
  }
54883
55141
  };
54884
55142
  const filtersConfig$7 = {
54885
- name: "",
54886
- datastakeId: ""
55143
+ search: ""
55144
+ };
55145
+ const defaultUrlParams = {
55146
+ search: "",
55147
+ userRole: null,
55148
+ status: null
55149
+ };
55150
+ const defaultTableFilters = {
55151
+ search: "",
55152
+ userRole: null,
55153
+ status: null
54887
55154
  };
54888
- const defaultUrlParams = {};
54889
- const defaultTableFilters = {};
54890
55155
 
54891
55156
  function Users({
54892
55157
  t,
@@ -54930,9 +55195,9 @@ function Users({
54930
55195
  userRole: userRoles.filter(u => !u.isForAppAdmin),
54931
55196
  status: accountStatuses
54932
55197
  };
54933
- }, [userRoles]);
55198
+ }, [userRoles, accountStatuses]);
54934
55199
  const canClearSearch = React.useMemo(() => {
54935
- return !!activeFilters.search;
55200
+ return !!activeFilters.search || !!activeFilters.userRole || !!activeFilters.status;
54936
55201
  }, [activeFilters]);
54937
55202
  const onDeleteUserClick = React.useCallback(id => {
54938
55203
  antd.Modal.confirm({
@@ -55651,9 +55916,9 @@ function AdminDashboardScreen({
55651
55916
  fetchUserGrowth,
55652
55917
  userGrowthDataLoading
55653
55918
  } = useWidgetFetch();
55654
- console.log({
55655
- userGrowthData
55656
- });
55919
+
55920
+ // console.log({userGrowthData});
55921
+
55657
55922
  const actionsWidgetsConfig = React.useMemo(() => getActionWidgetsConfig({
55658
55923
  getRedirectLink
55659
55924
  }), [getRedirectLink, getActionWidgetsConfig]);
@@ -55664,6 +55929,7 @@ function AdminDashboardScreen({
55664
55929
  const safeUserActivity = Array.isArray(data?.data?.userActivity) ? data.data.userActivity : [];
55665
55930
  const safeTopContributors = Array.isArray(data?.topContributors) ? data.topContributors : [];
55666
55931
  const safeUserGrowth = Array.isArray(data?.userGrowthData) ? data.userGrowthData : [];
55932
+ console.log("safeUserGrowth", safeUserGrowth);
55667
55933
  return /*#__PURE__*/jsxRuntime.jsx(AdminDashboard, {
55668
55934
  t: t,
55669
55935
  goTo: goTo,
@@ -55919,7 +56185,10 @@ function AdminSubjectsScreen({
55919
56185
  const handleMergeSubjects = React.useCallback(async mergeData => {
55920
56186
  try {
55921
56187
  if (AdminService.mergeSubjects) {
55922
- await AdminService.mergeSubjects(mergeData);
56188
+ await AdminService.mergeSubjects({
56189
+ subject: 'stakeholder',
56190
+ ...mergeData
56191
+ });
55923
56192
  antd.message.success(t("Subjects merged successfully"));
55924
56193
  } else {
55925
56194
  console.warn("AdminService.mergeSubjects is not implemented");
@@ -55935,7 +56204,10 @@ function AdminSubjectsScreen({
55935
56204
  if (getData) {
55936
56205
  return getData(params);
55937
56206
  }
55938
- return AdminService.getSubjects(params);
56207
+ return AdminService.getSubjects({
56208
+ subject: 'stakeholder',
56209
+ params
56210
+ });
55939
56211
  }, [getData, AdminService]);
55940
56212
  return /*#__PURE__*/jsxRuntime.jsx(SubjectsTable, {
55941
56213
  t: t,
@@ -55983,11 +56255,14 @@ function AdminLocationScreen({
55983
56255
  } = config;
55984
56256
  const handleMergeLocations = React.useCallback(async mergeData => {
55985
56257
  try {
55986
- if (AdminService.mergeLocations) {
55987
- await AdminService.mergeLocations(mergeData);
56258
+ if (AdminService.mergeSubjects) {
56259
+ await AdminService.mergeSubjects({
56260
+ subject: 'location',
56261
+ ...mergeData
56262
+ });
55988
56263
  antd.message.success(t("Locations merged successfully"));
55989
56264
  } else {
55990
- console.warn("AdminService.mergeLocations is not implemented");
56265
+ console.warn("AdminService.mergeSubjects is not implemented");
55991
56266
  antd.message.success(t("Locations merged successfully"));
55992
56267
  }
55993
56268
  } catch (err) {
@@ -55995,12 +56270,15 @@ function AdminLocationScreen({
55995
56270
  }
55996
56271
  }, [AdminService, t, handleError]);
55997
56272
 
55998
- // Use custom getData if provided, otherwise use default AdminService.getLocations
56273
+ // Use custom getData if provided, otherwise use default AdminService.getSubjects
55999
56274
  const getLocations = React.useCallback(params => {
56000
56275
  if (getData) {
56001
56276
  return getData(params);
56002
56277
  }
56003
- return AdminService.getLocations(params);
56278
+ return AdminService.getSubjects({
56279
+ subject: 'location',
56280
+ params
56281
+ });
56004
56282
  }, [getData, AdminService]);
56005
56283
  return /*#__PURE__*/jsxRuntime.jsx(LocationTable, {
56006
56284
  t: t,
@@ -56105,13 +56383,13 @@ function getAdminRoutes(config) {
56105
56383
  visible: user => userIsAdmin(user),
56106
56384
  component: subjectsIndexComponent
56107
56385
  }, ...(typeof useAdminLocationConfig === "function" ? [{
56108
- path: "subjects/location",
56386
+ path: "management/subjects/location",
56109
56387
  key: "".concat(APP_PREFIX, "_ADMIN_SUBJECTS_LOCATIONS"),
56110
56388
  exact: true,
56111
56389
  visible: user => userIsAdmin(user),
56112
56390
  component: /*#__PURE__*/jsxRuntime.jsx(LocationWrapper, {})
56113
56391
  }] : []), ...(typeof useAdminSubjectsConfig === "function" ? [{
56114
- path: "subjects/stakeholder",
56392
+ path: "management/subjects/stakeholder",
56115
56393
  key: "".concat(APP_PREFIX, "_ADMIN_SUBJECTS_STAKEHOLDERS"),
56116
56394
  exact: true,
56117
56395
  visible: user => userIsAdmin(user),