datastake-daf 0.6.748 → 0.6.749

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 (46) hide show
  1. package/dist/components/index.js +3979 -2782
  2. package/dist/pages/index.js +1305 -692
  3. package/package.json +1 -1
  4. package/src/@daf/core/components/Screens/Settings/Edit/components/Form/index.js +115 -0
  5. package/src/@daf/core/components/Screens/Settings/Edit/components/Form/style.js +35 -0
  6. package/src/@daf/core/components/Screens/Settings/Edit/components/Inputs/ImageUpload.js +67 -0
  7. package/src/@daf/core/components/Screens/Settings/Edit/components/Inputs/Phone.js +24 -0
  8. package/src/@daf/core/components/Screens/Settings/Edit/components/Inputs/ResetPassword.js +122 -0
  9. package/src/@daf/core/components/Screens/Settings/Edit/components/Inputs/Select.js +26 -0
  10. package/src/@daf/core/components/Screens/Settings/Edit/components/Inputs/Switch.js +56 -0
  11. package/src/@daf/core/components/Screens/Settings/Edit/components/Inputs/Text.js +19 -0
  12. package/src/@daf/core/components/Screens/Settings/Edit/components/Inputs/TransferRights.js +30 -0
  13. package/src/@daf/core/components/Screens/Settings/Edit/components/helper.js +13 -0
  14. package/src/@daf/core/components/Screens/Settings/Edit/components/style.js +56 -0
  15. package/src/@daf/core/components/Screens/Settings/Edit/index.js +63 -0
  16. package/src/@daf/core/components/Screens/Settings/View/components/Content/helper.js +142 -0
  17. package/src/@daf/core/components/Screens/Settings/View/components/Content/index.js +61 -0
  18. package/src/@daf/core/components/Screens/Settings/View/components/Content/style.js +338 -0
  19. package/src/@daf/core/components/Screens/Settings/View/index.js +46 -0
  20. package/src/@daf/core/components/Screens/Settings/components/Header/index.js +64 -0
  21. package/src/@daf/core/components/Screens/Settings/components/Menu/index.js +36 -0
  22. package/src/@daf/core/components/Screens/Settings/config.js +30 -0
  23. package/src/@daf/core/components/Screens/Settings/index.js +164 -0
  24. package/src/@daf/pages/Documents/columns.js +25 -8
  25. package/src/@daf/pages/Documents/config.js +7 -10
  26. package/src/@daf/pages/Events/Activities/columns.js +19 -9
  27. package/src/@daf/pages/Events/Activities/config.js +23 -13
  28. package/src/@daf/pages/Events/Incidents/columns.js +19 -9
  29. package/src/@daf/pages/Events/Incidents/config.js +23 -13
  30. package/src/@daf/pages/Events/columns.js +33 -8
  31. package/src/@daf/pages/Events/config.js +14 -22
  32. package/src/@daf/pages/Locations/MineSite/columns.js +53 -18
  33. package/src/@daf/pages/Locations/columns.js +54 -32
  34. package/src/@daf/pages/Locations/config.js +12 -2
  35. package/src/@daf/pages/Stakeholders/Operators/columns.js +57 -22
  36. package/src/@daf/pages/Stakeholders/columns.js +45 -23
  37. package/src/@daf/pages/Stakeholders/config.js +12 -2
  38. package/src/@daf/pages/Stakeholders/index.jsx +1 -0
  39. package/src/@daf/services/BaseService.js +15 -0
  40. package/src/index.js +9 -0
  41. package/build/favicon.ico +0 -0
  42. package/build/logo192.png +0 -0
  43. package/build/logo512.png +0 -0
  44. package/build/manifest.json +0 -25
  45. package/build/robots.txt +0 -3
  46. package/dist/style/datastake/mapbox-gl.css +0 -330
@@ -15749,21 +15749,300 @@ function sourceAvatarConfig(items, user, applications) {
15749
15749
  });
15750
15750
  }
15751
15751
 
15752
- const getLinkValue$4 = (value, linkingObject) => {
15753
- if (linkingObject && linkingObject?.[value]) {
15754
- return linkingObject?.[value]?.name;
15755
- }
15756
- return null;
15752
+ const mmtTheme = {
15753
+ // Base
15754
+ white: '#ffffff',
15755
+ colorPrimary: '#2E90FA',
15756
+ borderColor: '#EAECF0',
15757
+ // Gray
15758
+ gray50: '#D2D6DB',
15759
+ // Base Gray
15760
+ baseGray10: '#FCFCFD',
15761
+ baseGray20: '#f5f5f5',
15762
+ baseGray30: '#F3F4F6',
15763
+ baseGray40: '#E5E7EB',
15764
+ baseGray50: '#D2D6DB',
15765
+ baseGray60: '#9DA4AE',
15766
+ baseGray70: '#6C737F',
15767
+ baseGray80: '#4D5761',
15768
+ baseGray90: '#384250',
15769
+ baseGray100: '#2B3644',
15770
+ baseGray110: '#1F2A37',
15771
+ // Primary
15772
+ colorPrimary1: '#F5FAFF',
15773
+ colorPrimary2: '#EFF8FF',
15774
+ colorPrimary3: '#D1E9FF',
15775
+ colorPrimary4: '#B2DDFF',
15776
+ colorPrimary5: '#84CAFF',
15777
+ colorPrimary6: '#53B1FD',
15778
+ colorPrimary7: '#2E90FA',
15779
+ colorPrimary8: '#1570EF',
15780
+ colorPrimary9: '#175CD3',
15781
+ colorPrimary10: '#1849A9',
15782
+ // Success
15783
+ success1: '#F6FEF9',
15784
+ success2: '#ECFDF3',
15785
+ success3: '#D7FBE5',
15786
+ success4: '#B0F3CB',
15787
+ success5: '#6AD99E',
15788
+ success6: '#32D583',
15789
+ success7: '#12B76A',
15790
+ success8: '#039855',
15791
+ success9: '#05603A',
15792
+ success10: '#054F31',
15793
+ // Warning
15794
+ warning1: '#FFFCF5',
15795
+ warning2: '#FFFAEB',
15796
+ warning3: '#FEF0C7',
15797
+ warning4: '#FEDF89',
15798
+ warning5: '#FEC84B',
15799
+ warning6: '#FDB022',
15800
+ warning7: '#F79009',
15801
+ warning8: '#DC6803',
15802
+ warning9: '#B54708',
15803
+ warning10: '#93370D',
15804
+ // Error
15805
+ error1: '#FFFBFA',
15806
+ error2: '#FEF3F2',
15807
+ error3: '#FEE4E2',
15808
+ error4: '#FECDCA',
15809
+ error5: '#FDA29B',
15810
+ error6: '#F97066',
15811
+ error7: '#F04438',
15812
+ error8: '#D92D20',
15813
+ error9: '#B42318',
15814
+ error10: '#912018',
15815
+ // Red
15816
+ red1: '#FFF1F0',
15817
+ red2: '#FFCCC7',
15818
+ red3: '#FFA39E',
15819
+ red4: '#FF7875',
15820
+ red5: '#FF4D4F',
15821
+ red6: '#F5222D',
15822
+ red7: '#CF1322',
15823
+ red8: '#A8071A',
15824
+ red9: '#820014',
15825
+ red10: '#5C0011',
15826
+ // Volcano
15827
+ volcano1: '#FFF2E8',
15828
+ volcano2: '#FFD8BF',
15829
+ volcano3: '#FFBB96',
15830
+ volcano4: '#FF9C6E',
15831
+ volcano5: '#FF7A45',
15832
+ volcano6: '#FA541C',
15833
+ volcano7: '#D4380D',
15834
+ volcano8: '#AD2102',
15835
+ volcano9: '#871400',
15836
+ volcano10: '#610B00',
15837
+ // Orange
15838
+ orange1: '#FFF7E6',
15839
+ orange2: '#FFE7BA',
15840
+ orange3: '#FFD591',
15841
+ orange4: '#FFC069',
15842
+ orange5: '#FFA940',
15843
+ orange6: '#FA8C16',
15844
+ orange7: '#D46B08',
15845
+ orange8: '#AD4E00',
15846
+ orange9: '#873800',
15847
+ orange10: '#612500',
15848
+ // Gold
15849
+ gold1: '#FFFBE6',
15850
+ gold2: '#FFF1B8',
15851
+ gold3: '#FFE58F',
15852
+ gold4: '#FFD666',
15853
+ gold5: '#FFC53D',
15854
+ gold6: '#FAAD14',
15855
+ gold7: '#D48806',
15856
+ gold8: '#AD6800',
15857
+ gold9: '#874D00',
15858
+ gold10: '#613400',
15859
+ // Yellow
15860
+ yellow1: '#feffe6',
15861
+ yellow2: '#ffffb8',
15862
+ yellow3: '#fffb8f',
15863
+ yellow4: '#fff566',
15864
+ yellow5: '#ffec3d',
15865
+ yellow6: '#fadb14',
15866
+ yellow7: '#d4b106',
15867
+ yellow8: '#ad8b00',
15868
+ yellow9: '#876800',
15869
+ yellow10: '#614700',
15870
+ // Lime
15871
+ lime1: '#FCFFE6',
15872
+ lime2: '#F4FFB8',
15873
+ lime3: '#EAFF8F',
15874
+ lime4: '#D3F261',
15875
+ lime5: '#BAE637',
15876
+ lime6: '#A0D911',
15877
+ lime7: '#7CB305',
15878
+ lime8: '#5B8C00',
15879
+ lime9: '#3F6600',
15880
+ lime10: '#254000',
15881
+ // Green
15882
+ green1: '#F6FFED',
15883
+ green2: '#D9F7BE',
15884
+ green3: '#B7EB8F',
15885
+ green4: '#95DE64',
15886
+ green5: '#73D13D',
15887
+ green6: '#52C41A',
15888
+ green7: '#389E0D',
15889
+ green8: '#237804',
15890
+ green9: '#135200',
15891
+ green10: '#092B00',
15892
+ // Cyan
15893
+ cyan1: '#E6FFFB',
15894
+ cyan2: '#B5F5EC',
15895
+ cyan3: '#87E8DE',
15896
+ cyan4: '#5CDBD3',
15897
+ cyan5: '#36CFC9',
15898
+ cyan6: '#13C2C2',
15899
+ cyan7: '#08979C',
15900
+ cyan8: '#006D75',
15901
+ cyan9: '#00474F',
15902
+ cyan10: '#002329',
15903
+ // Blue
15904
+ blue1: '#E6F4FF',
15905
+ blue2: '#BAE0FF',
15906
+ blue3: '#91CAFF',
15907
+ blue4: '#69B1FF',
15908
+ blue5: '#4096FF',
15909
+ blue6: '#1677FF',
15910
+ blue7: '#0958D9',
15911
+ blue8: '#003EB3',
15912
+ blue9: '#002C8C',
15913
+ blue10: '#001D66',
15914
+ // Primary
15915
+ mmtPrimary1: '#F5FAFF',
15916
+ mmtPrimary2: '#EFF8FF',
15917
+ mmtPrimary3: '#D1E9FF',
15918
+ mmtPrimary4: '#B2DDFF',
15919
+ mmtPrimary5: '#84CAFF',
15920
+ mmtPrimary6: '#53B1FD',
15921
+ mmtPrimary7: '#2E90FA',
15922
+ mmtPrimary8: '#1570EF',
15923
+ mmtPrimary9: '#175CD3',
15924
+ mmtPrimary10: '#1849A9',
15925
+ // Purple
15926
+ purple1: '#F9F0FF',
15927
+ purple2: '#EFDBFF',
15928
+ purple3: '#D3ADF7',
15929
+ purple4: '#B37FEB',
15930
+ purple5: '#9254DE',
15931
+ purple6: '#722ED1',
15932
+ purple7: '#531DAB',
15933
+ purple8: '#391085',
15934
+ purple9: '#22075E',
15935
+ purple10: '#120338',
15936
+ // Magenta
15937
+ magenta1: '#FFF0F6',
15938
+ magenta2: '#FFD6E7',
15939
+ magenta3: '#FFADD2',
15940
+ magenta4: '#FF85C0',
15941
+ magenta5: '#F759AB',
15942
+ magenta6: '#EB2F96',
15943
+ magenta7: '#C41D7F',
15944
+ magenta8: '#9E1068',
15945
+ magenta9: '#780650',
15946
+ magenta10: '#520339',
15947
+ // Sizes
15948
+ sizeUnit: 4,
15949
+ size: 16,
15950
+ sizeXXS: 4,
15951
+ sizeXS: 8,
15952
+ sizeSM: 12,
15953
+ sizeMD: 20,
15954
+ sizeLG: 24,
15955
+ sizeXL: 40,
15956
+ sizeXXL: 30,
15957
+ // Padding
15958
+ padding: 16,
15959
+ paddingXXS: 4,
15960
+ paddingXS: 8,
15961
+ paddingSM: 12,
15962
+ paddingMD: 20,
15963
+ paddingLG: 24,
15964
+ paddingXL: 32,
15965
+ paddingXXL: 48,
15966
+ // Margin
15967
+ margin: 16,
15968
+ marginXXS: 4,
15969
+ marginXS: 8,
15970
+ marginSM: 12,
15971
+ marginMD: 16,
15972
+ marginLG: 24,
15973
+ marginXL: 48,
15974
+ // Height
15975
+ controlHeight: 32,
15976
+ controlHeightXS: 16,
15977
+ controlHeightSM: 24,
15978
+ controlHeightLG: 40,
15979
+ // Border Radius
15980
+ borderRadius: 6,
15981
+ borderRadiusXS: 2,
15982
+ borderRadiusSM: 4,
15983
+ borderRadiusLG: 8,
15984
+ // Font Size
15985
+ fontSize: 14,
15986
+ fontSizeSM: 12,
15987
+ fontSizeLG: 16,
15988
+ fontSizeXL: 20,
15989
+ fontSizeHeading1: 38,
15990
+ fontSizeHeading2: 30,
15991
+ fontSizeHeading3: 24,
15992
+ fontSizeHeading4: 20,
15993
+ fontSizeHeading5: 16
15757
15994
  };
15758
- const getColumns$8 = ({
15759
- t,
15760
- goTo,
15761
- user,
15762
- options,
15763
- activeTab,
15764
- getRedirectLink,
15765
- theme,
15766
- subject,
15995
+
15996
+ function MoreMenu({
15997
+ items = [],
15998
+ placement = "bottomRight",
15999
+ trigger = ["click"],
16000
+ color = mmtTheme.baseGray70
16001
+ }) {
16002
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
16003
+ className: "daf-more-menu",
16004
+ children: /*#__PURE__*/jsxRuntime.jsx(antd.Dropdown, {
16005
+ menu: {
16006
+ items
16007
+ },
16008
+ trigger: trigger,
16009
+ placement: placement,
16010
+ children: /*#__PURE__*/jsxRuntime.jsx("a", {
16011
+ onClick: e => e.preventDefault(),
16012
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
16013
+ className: "flex-row justify-content-center",
16014
+ children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
16015
+ name: "More",
16016
+ width: 3,
16017
+ height: 13,
16018
+ color: color
16019
+ })
16020
+ })
16021
+ })
16022
+ })
16023
+ });
16024
+ }
16025
+ MoreMenu.propTypes = {
16026
+ items: PropTypes__default["default"].array,
16027
+ placement: PropTypes__default["default"].oneOf(["bottom", "bottomLeft", "bottomRight", "top", "topLeft", "topRight"]),
16028
+ trigger: PropTypes__default["default"].oneOf(["click", "hover", "contextMenu"])
16029
+ };
16030
+
16031
+ const getLinkValue$4 = (value, linkingObject) => {
16032
+ if (linkingObject && linkingObject?.[value]) {
16033
+ return linkingObject?.[value]?.name;
16034
+ }
16035
+ return null;
16036
+ };
16037
+ const getColumns$8 = ({
16038
+ t,
16039
+ goTo,
16040
+ user,
16041
+ options,
16042
+ activeTab,
16043
+ getRedirectLink,
16044
+ theme,
16045
+ subject,
15767
16046
  data,
15768
16047
  applications
15769
16048
  }) => [{
@@ -15866,6 +16145,24 @@ const getColumns$8 = ({
15866
16145
  children: district
15867
16146
  }) : '-';
15868
16147
  }
16148
+ }, {
16149
+ title: t("Last Update"),
16150
+ dataIndex: "updatedAt",
16151
+ key: "updatedAt",
16152
+ width: 125,
16153
+ render: (date, all) => {
16154
+ if (all.empty) {
16155
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
16156
+ className: "daf-default-cell"
16157
+ });
16158
+ }
16159
+ const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
16160
+ return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16161
+ title: _date,
16162
+ children: _date
16163
+ });
16164
+ },
16165
+ ellipsis: true
15869
16166
  }, {
15870
16167
  title: t("Sources"),
15871
16168
  dataIndex: "sources",
@@ -15883,23 +16180,22 @@ const getColumns$8 = ({
15883
16180
  });
15884
16181
  }
15885
16182
  }, {
15886
- title: t("Last Update"),
15887
- dataIndex: "updatedAt",
15888
- key: "updatedAt",
15889
- width: 125,
15890
- render: (date, all) => {
16183
+ title: t("Status"),
16184
+ dataIndex: 'status',
16185
+ ellipsis: true,
16186
+ show: activeTab == "own",
16187
+ render: (v, all) => {
15891
16188
  if (all.empty) {
15892
16189
  return /*#__PURE__*/jsxRuntime.jsx("div", {
15893
16190
  className: "daf-default-cell"
15894
16191
  });
15895
16192
  }
15896
- const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
15897
- return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
15898
- title: _date,
15899
- children: _date
15900
- });
15901
- },
15902
- ellipsis: true
16193
+ const status = findOptions(v, data?.options?.statusOptions);
16194
+ return status ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16195
+ title: status,
16196
+ children: status
16197
+ }) : '-';
16198
+ }
15903
16199
  }, {
15904
16200
  id: 'actions',
15905
16201
  title: "",
@@ -15910,19 +16206,32 @@ const getColumns$8 = ({
15910
16206
  className: "daf-default-cell"
15911
16207
  });
15912
16208
  }
15913
- const link = `/app/view/${subject}/${all.datastakeId}`;
16209
+ const onClick = () => {
16210
+ const link = `/app/view/${subject}/${all.datastakeId}`;
16211
+ if (activeTab === "shared") {
16212
+ link += `?sourceId=${all?.authorId?.id}`;
16213
+ }
16214
+ goTo(getRedirectLink(link));
16215
+ };
16216
+ const moreMenuItems = [{
16217
+ label: t("Details"),
16218
+ value: "details",
16219
+ onClick: onClick
16220
+ }, {
16221
+ label: t("Summary"),
16222
+ value: "Summary",
16223
+ onClick: () => {
16224
+ let link = `/app/operator-summary/${all.datastakeId}`;
16225
+ if (activeTab === "shared") {
16226
+ link += `?sourceId=${all?.authorId?.id}`;
16227
+ }
16228
+ goTo(getRedirectLink(link));
16229
+ }
16230
+ // disabled: true,
16231
+ }];
15914
16232
  return /*#__PURE__*/jsxRuntime.jsx("div", {
15915
- style: {
15916
- display: "flex",
15917
- justifyContent: "center"
15918
- },
15919
- children: /*#__PURE__*/jsxRuntime.jsx("a", {
15920
- href: getRedirectLink(link),
15921
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
15922
- name: "Link",
15923
- size: 15,
15924
- color: theme.baseGray70
15925
- })
16233
+ children: /*#__PURE__*/jsxRuntime.jsx(MoreMenu, {
16234
+ items: moreMenuItems
15926
16235
  })
15927
16236
  });
15928
16237
  }
@@ -19470,498 +19779,219 @@ function Geolocation$1({
19470
19779
  setModel({
19471
19780
  latitude: undefined,
19472
19781
  longitude: undefined
19473
- });
19474
- onChange(null);
19475
- } else {
19476
- setModel({
19477
- longitude: ev,
19478
- latitude: model.latitude
19479
- });
19480
- }
19481
- },
19482
- max: 180,
19483
- min: -180,
19484
- disabled: disabled,
19485
- placeholder: getMetaPlaceholer(inputMeta, t) || t('Longitude')
19486
- })
19487
- }), /*#__PURE__*/jsxRuntime.jsx(antd.Popover, {
19488
- content: /*#__PURE__*/jsxRuntime.jsxs("div", {
19489
- style: {
19490
- display: "flex",
19491
- flexDirection: "column"
19492
- },
19493
- children: [/*#__PURE__*/jsxRuntime.jsx(antd.Alert, {
19494
- message: t('GPS Info'),
19495
- type: "info",
19496
- style: {
19497
- marginBottom: '12px',
19498
- maxWidth: '800px'
19499
- }
19500
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
19501
- id: mapId,
19502
- style: {
19503
- width: '100%',
19504
- height: '450px'
19505
- }
19506
- }), /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
19507
- onClick: () => setMapVisible(false),
19508
- style: {
19509
- width: '100%',
19510
- marginTop: '12px'
19511
- },
19512
- type: "dashed",
19513
- disabled: !propHasValue$1(model.latitude) || !propHasValue$1(model.longitude),
19514
- icon: /*#__PURE__*/jsxRuntime.jsx(Icons.SaveOutlined, {
19515
- style: {
19516
- verticalAlign: '0px'
19517
- }
19518
- }),
19519
- children: t('Save')
19520
- })]
19521
- }),
19522
- placement: "left",
19523
- open: mapVisible,
19524
- trigger: "click",
19525
- onOpenChange: () => {
19526
- if (!disabled) {
19527
- setMapVisible(prev => !prev);
19528
- }
19529
- },
19530
- children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
19531
- icon: /*#__PURE__*/jsxRuntime.jsx(Icons.PushpinOutlined, {}),
19532
- disabled: disabled,
19533
- className: "open-map",
19534
- size: size,
19535
- onClick: () => {
19536
- setMapVisible(true);
19537
- }
19538
- })
19539
- })]
19540
- });
19541
- }
19542
-
19543
- const {
19544
- useToken: useToken$2
19545
- } = antd.theme;
19546
- function Smart() {
19547
- const {
19548
- token
19549
- } = useToken$2();
19550
- const [isOpen, setIsOpen] = React.useState(false);
19551
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
19552
- style: {
19553
- border: "1px solid #E5E7EB",
19554
- width: "100%",
19555
- borderRadius: "4px",
19556
- boxShadow: "0px 1px 2px 0px #00000008, 0px 1px 6px -1px #00000005, 0px 2px 4px 0px #00000005"
19557
- },
19558
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
19559
- style: {
19560
- display: "flex",
19561
- alignItems: "center",
19562
- gap: "8px",
19563
- padding: "8px"
19564
- },
19565
- onClick: () => setIsOpen(!isOpen),
19566
- children: [/*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
19567
- name: "Lightning",
19568
- size: 16,
19569
- color: token.colorPrimary7
19570
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
19571
- style: {
19572
- marginRight: "auto"
19573
- },
19574
- children: "Smart Help"
19575
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
19576
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
19577
- name: "ChevronRight",
19578
- size: 12,
19579
- color: token.colorPrimary7,
19580
- style: {
19581
- transform: isOpen ? "rotate(90deg)" : "rotate(0deg)",
19582
- transition: "transform 0.3s ease-in-out"
19583
- }
19584
- })
19585
- })]
19586
- }), isOpen && /*#__PURE__*/jsxRuntime.jsxs("div", {
19587
- style: {
19588
- padding: "8px",
19589
- display: "flex",
19590
- flexDirection: "column",
19591
- gap: "12px"
19592
- },
19593
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
19594
- style: {
19595
- paddingLeft: "4px",
19596
- color: "#6C737F",
19597
- fontFamily: "SF UI Display",
19598
- fontWeight: "500",
19599
- fontStyle: "Medium",
19600
- fontSize: "14px",
19601
- leadingTrim: "NONE",
19602
- lineHeight: "20px",
19603
- letterSpacing: "0%"
19604
- },
19605
- children: "The information available here has been identified as matching the requirements of this question."
19606
- }), /*#__PURE__*/jsxRuntime.jsx(SmartWidget, {
19607
- label: "Operational Activities",
19608
- icon: "AimOutlined",
19609
- link: "Link"
19610
- }), /*#__PURE__*/jsxRuntime.jsx(SmartWidget, {
19611
- label: "Monitoring Activities",
19612
- icon: "Eye",
19613
- link: "Link"
19614
- }), /*#__PURE__*/jsxRuntime.jsx(SmartWidget, {
19615
- label: "Project Locations",
19616
- icon: "DashboardLocations",
19617
- link: "Link"
19618
- }), /*#__PURE__*/jsxRuntime.jsx(SmartWidget, {
19619
- label: "Documents & Media",
19620
- icon: "DashboardDocuments",
19621
- link: "Link"
19622
- })]
19623
- })]
19624
- });
19625
- }
19626
- function SmartWidget({
19627
- label,
19628
- icon,
19629
- link
19630
- }) {
19631
- const {
19632
- token
19633
- } = useToken$2();
19634
- return /*#__PURE__*/jsxRuntime.jsx(Widget, {
19635
- noTitle: true,
19636
- className: "no-p-body p-xs",
19637
- children: /*#__PURE__*/jsxRuntime.jsxs("div", {
19638
- style: {
19639
- display: "flex",
19640
- alignItems: "center",
19641
- gap: "8px"
19642
- },
19643
- children: [/*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
19644
- name: icon,
19645
- size: 16,
19646
- color: "#384250"
19647
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
19648
- style: {
19649
- marginRight: "auto"
19650
- },
19651
- children: label
19652
- }), /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
19653
- name: link,
19654
- size: 16,
19655
- color: token.baseGray50,
19656
- style: {
19657
- cursor: "not-allowed"
19658
- }
19659
- })]
19660
- })
19661
- });
19662
- }
19663
-
19664
- styled__default["default"].div`
19665
- position: absolute;
19666
- right: 25px;
19667
- top: 60px;
19668
- background: white;
19669
- padding: 10px 10px 10px 10px;
19670
- box-shadow: 0px 10px 30px 10px rgba(0, 0, 0, 0.1);
19671
- z-index: 1000;
19672
- width: 300px;
19673
- border: 1px solid rgba(0, 0, 0, 0.1);
19674
-
19675
- .comment-shown {
19676
- display: flex;
19677
- flex-direction: column;
19678
-
19679
- .link {
19680
- display: flex;
19681
- gap: 8px;
19682
- justify-content: flex-end;
19683
- }
19684
- }
19685
- `;
19686
-
19687
- const mmtTheme = {
19688
- // Base
19689
- white: '#ffffff',
19690
- colorPrimary: '#2E90FA',
19691
- borderColor: '#EAECF0',
19692
- // Gray
19693
- gray50: '#D2D6DB',
19694
- // Base Gray
19695
- baseGray10: '#FCFCFD',
19696
- baseGray20: '#f5f5f5',
19697
- baseGray30: '#F3F4F6',
19698
- baseGray40: '#E5E7EB',
19699
- baseGray50: '#D2D6DB',
19700
- baseGray60: '#9DA4AE',
19701
- baseGray70: '#6C737F',
19702
- baseGray80: '#4D5761',
19703
- baseGray90: '#384250',
19704
- baseGray100: '#2B3644',
19705
- baseGray110: '#1F2A37',
19706
- // Primary
19707
- colorPrimary1: '#F5FAFF',
19708
- colorPrimary2: '#EFF8FF',
19709
- colorPrimary3: '#D1E9FF',
19710
- colorPrimary4: '#B2DDFF',
19711
- colorPrimary5: '#84CAFF',
19712
- colorPrimary6: '#53B1FD',
19713
- colorPrimary7: '#2E90FA',
19714
- colorPrimary8: '#1570EF',
19715
- colorPrimary9: '#175CD3',
19716
- colorPrimary10: '#1849A9',
19717
- // Success
19718
- success1: '#F6FEF9',
19719
- success2: '#ECFDF3',
19720
- success3: '#D7FBE5',
19721
- success4: '#B0F3CB',
19722
- success5: '#6AD99E',
19723
- success6: '#32D583',
19724
- success7: '#12B76A',
19725
- success8: '#039855',
19726
- success9: '#05603A',
19727
- success10: '#054F31',
19728
- // Warning
19729
- warning1: '#FFFCF5',
19730
- warning2: '#FFFAEB',
19731
- warning3: '#FEF0C7',
19732
- warning4: '#FEDF89',
19733
- warning5: '#FEC84B',
19734
- warning6: '#FDB022',
19735
- warning7: '#F79009',
19736
- warning8: '#DC6803',
19737
- warning9: '#B54708',
19738
- warning10: '#93370D',
19739
- // Error
19740
- error1: '#FFFBFA',
19741
- error2: '#FEF3F2',
19742
- error3: '#FEE4E2',
19743
- error4: '#FECDCA',
19744
- error5: '#FDA29B',
19745
- error6: '#F97066',
19746
- error7: '#F04438',
19747
- error8: '#D92D20',
19748
- error9: '#B42318',
19749
- error10: '#912018',
19750
- // Red
19751
- red1: '#FFF1F0',
19752
- red2: '#FFCCC7',
19753
- red3: '#FFA39E',
19754
- red4: '#FF7875',
19755
- red5: '#FF4D4F',
19756
- red6: '#F5222D',
19757
- red7: '#CF1322',
19758
- red8: '#A8071A',
19759
- red9: '#820014',
19760
- red10: '#5C0011',
19761
- // Volcano
19762
- volcano1: '#FFF2E8',
19763
- volcano2: '#FFD8BF',
19764
- volcano3: '#FFBB96',
19765
- volcano4: '#FF9C6E',
19766
- volcano5: '#FF7A45',
19767
- volcano6: '#FA541C',
19768
- volcano7: '#D4380D',
19769
- volcano8: '#AD2102',
19770
- volcano9: '#871400',
19771
- volcano10: '#610B00',
19772
- // Orange
19773
- orange1: '#FFF7E6',
19774
- orange2: '#FFE7BA',
19775
- orange3: '#FFD591',
19776
- orange4: '#FFC069',
19777
- orange5: '#FFA940',
19778
- orange6: '#FA8C16',
19779
- orange7: '#D46B08',
19780
- orange8: '#AD4E00',
19781
- orange9: '#873800',
19782
- orange10: '#612500',
19783
- // Gold
19784
- gold1: '#FFFBE6',
19785
- gold2: '#FFF1B8',
19786
- gold3: '#FFE58F',
19787
- gold4: '#FFD666',
19788
- gold5: '#FFC53D',
19789
- gold6: '#FAAD14',
19790
- gold7: '#D48806',
19791
- gold8: '#AD6800',
19792
- gold9: '#874D00',
19793
- gold10: '#613400',
19794
- // Yellow
19795
- yellow1: '#feffe6',
19796
- yellow2: '#ffffb8',
19797
- yellow3: '#fffb8f',
19798
- yellow4: '#fff566',
19799
- yellow5: '#ffec3d',
19800
- yellow6: '#fadb14',
19801
- yellow7: '#d4b106',
19802
- yellow8: '#ad8b00',
19803
- yellow9: '#876800',
19804
- yellow10: '#614700',
19805
- // Lime
19806
- lime1: '#FCFFE6',
19807
- lime2: '#F4FFB8',
19808
- lime3: '#EAFF8F',
19809
- lime4: '#D3F261',
19810
- lime5: '#BAE637',
19811
- lime6: '#A0D911',
19812
- lime7: '#7CB305',
19813
- lime8: '#5B8C00',
19814
- lime9: '#3F6600',
19815
- lime10: '#254000',
19816
- // Green
19817
- green1: '#F6FFED',
19818
- green2: '#D9F7BE',
19819
- green3: '#B7EB8F',
19820
- green4: '#95DE64',
19821
- green5: '#73D13D',
19822
- green6: '#52C41A',
19823
- green7: '#389E0D',
19824
- green8: '#237804',
19825
- green9: '#135200',
19826
- green10: '#092B00',
19827
- // Cyan
19828
- cyan1: '#E6FFFB',
19829
- cyan2: '#B5F5EC',
19830
- cyan3: '#87E8DE',
19831
- cyan4: '#5CDBD3',
19832
- cyan5: '#36CFC9',
19833
- cyan6: '#13C2C2',
19834
- cyan7: '#08979C',
19835
- cyan8: '#006D75',
19836
- cyan9: '#00474F',
19837
- cyan10: '#002329',
19838
- // Blue
19839
- blue1: '#E6F4FF',
19840
- blue2: '#BAE0FF',
19841
- blue3: '#91CAFF',
19842
- blue4: '#69B1FF',
19843
- blue5: '#4096FF',
19844
- blue6: '#1677FF',
19845
- blue7: '#0958D9',
19846
- blue8: '#003EB3',
19847
- blue9: '#002C8C',
19848
- blue10: '#001D66',
19849
- // Primary
19850
- mmtPrimary1: '#F5FAFF',
19851
- mmtPrimary2: '#EFF8FF',
19852
- mmtPrimary3: '#D1E9FF',
19853
- mmtPrimary4: '#B2DDFF',
19854
- mmtPrimary5: '#84CAFF',
19855
- mmtPrimary6: '#53B1FD',
19856
- mmtPrimary7: '#2E90FA',
19857
- mmtPrimary8: '#1570EF',
19858
- mmtPrimary9: '#175CD3',
19859
- mmtPrimary10: '#1849A9',
19860
- // Purple
19861
- purple1: '#F9F0FF',
19862
- purple2: '#EFDBFF',
19863
- purple3: '#D3ADF7',
19864
- purple4: '#B37FEB',
19865
- purple5: '#9254DE',
19866
- purple6: '#722ED1',
19867
- purple7: '#531DAB',
19868
- purple8: '#391085',
19869
- purple9: '#22075E',
19870
- purple10: '#120338',
19871
- // Magenta
19872
- magenta1: '#FFF0F6',
19873
- magenta2: '#FFD6E7',
19874
- magenta3: '#FFADD2',
19875
- magenta4: '#FF85C0',
19876
- magenta5: '#F759AB',
19877
- magenta6: '#EB2F96',
19878
- magenta7: '#C41D7F',
19879
- magenta8: '#9E1068',
19880
- magenta9: '#780650',
19881
- magenta10: '#520339',
19882
- // Sizes
19883
- sizeUnit: 4,
19884
- size: 16,
19885
- sizeXXS: 4,
19886
- sizeXS: 8,
19887
- sizeSM: 12,
19888
- sizeMD: 20,
19889
- sizeLG: 24,
19890
- sizeXL: 40,
19891
- sizeXXL: 30,
19892
- // Padding
19893
- padding: 16,
19894
- paddingXXS: 4,
19895
- paddingXS: 8,
19896
- paddingSM: 12,
19897
- paddingMD: 20,
19898
- paddingLG: 24,
19899
- paddingXL: 32,
19900
- paddingXXL: 48,
19901
- // Margin
19902
- margin: 16,
19903
- marginXXS: 4,
19904
- marginXS: 8,
19905
- marginSM: 12,
19906
- marginMD: 16,
19907
- marginLG: 24,
19908
- marginXL: 48,
19909
- // Height
19910
- controlHeight: 32,
19911
- controlHeightXS: 16,
19912
- controlHeightSM: 24,
19913
- controlHeightLG: 40,
19914
- // Border Radius
19915
- borderRadius: 6,
19916
- borderRadiusXS: 2,
19917
- borderRadiusSM: 4,
19918
- borderRadiusLG: 8,
19919
- // Font Size
19920
- fontSize: 14,
19921
- fontSizeSM: 12,
19922
- fontSizeLG: 16,
19923
- fontSizeXL: 20,
19924
- fontSizeHeading1: 38,
19925
- fontSizeHeading2: 30,
19926
- fontSizeHeading3: 24,
19927
- fontSizeHeading4: 20,
19928
- fontSizeHeading5: 16
19929
- };
19782
+ });
19783
+ onChange(null);
19784
+ } else {
19785
+ setModel({
19786
+ longitude: ev,
19787
+ latitude: model.latitude
19788
+ });
19789
+ }
19790
+ },
19791
+ max: 180,
19792
+ min: -180,
19793
+ disabled: disabled,
19794
+ placeholder: getMetaPlaceholer(inputMeta, t) || t('Longitude')
19795
+ })
19796
+ }), /*#__PURE__*/jsxRuntime.jsx(antd.Popover, {
19797
+ content: /*#__PURE__*/jsxRuntime.jsxs("div", {
19798
+ style: {
19799
+ display: "flex",
19800
+ flexDirection: "column"
19801
+ },
19802
+ children: [/*#__PURE__*/jsxRuntime.jsx(antd.Alert, {
19803
+ message: t('GPS Info'),
19804
+ type: "info",
19805
+ style: {
19806
+ marginBottom: '12px',
19807
+ maxWidth: '800px'
19808
+ }
19809
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
19810
+ id: mapId,
19811
+ style: {
19812
+ width: '100%',
19813
+ height: '450px'
19814
+ }
19815
+ }), /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
19816
+ onClick: () => setMapVisible(false),
19817
+ style: {
19818
+ width: '100%',
19819
+ marginTop: '12px'
19820
+ },
19821
+ type: "dashed",
19822
+ disabled: !propHasValue$1(model.latitude) || !propHasValue$1(model.longitude),
19823
+ icon: /*#__PURE__*/jsxRuntime.jsx(Icons.SaveOutlined, {
19824
+ style: {
19825
+ verticalAlign: '0px'
19826
+ }
19827
+ }),
19828
+ children: t('Save')
19829
+ })]
19830
+ }),
19831
+ placement: "left",
19832
+ open: mapVisible,
19833
+ trigger: "click",
19834
+ onOpenChange: () => {
19835
+ if (!disabled) {
19836
+ setMapVisible(prev => !prev);
19837
+ }
19838
+ },
19839
+ children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
19840
+ icon: /*#__PURE__*/jsxRuntime.jsx(Icons.PushpinOutlined, {}),
19841
+ disabled: disabled,
19842
+ className: "open-map",
19843
+ size: size,
19844
+ onClick: () => {
19845
+ setMapVisible(true);
19846
+ }
19847
+ })
19848
+ })]
19849
+ });
19850
+ }
19930
19851
 
19931
- function MoreMenu({
19932
- items = [],
19933
- placement = "bottomRight",
19934
- trigger = ["click"],
19935
- color = mmtTheme.baseGray70
19936
- }) {
19937
- return /*#__PURE__*/jsxRuntime.jsx("div", {
19938
- className: "daf-more-menu",
19939
- children: /*#__PURE__*/jsxRuntime.jsx(antd.Dropdown, {
19940
- menu: {
19941
- items
19852
+ const {
19853
+ useToken: useToken$2
19854
+ } = antd.theme;
19855
+ function Smart() {
19856
+ const {
19857
+ token
19858
+ } = useToken$2();
19859
+ const [isOpen, setIsOpen] = React.useState(false);
19860
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
19861
+ style: {
19862
+ border: "1px solid #E5E7EB",
19863
+ width: "100%",
19864
+ borderRadius: "4px",
19865
+ boxShadow: "0px 1px 2px 0px #00000008, 0px 1px 6px -1px #00000005, 0px 2px 4px 0px #00000005"
19866
+ },
19867
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
19868
+ style: {
19869
+ display: "flex",
19870
+ alignItems: "center",
19871
+ gap: "8px",
19872
+ padding: "8px"
19942
19873
  },
19943
- trigger: trigger,
19944
- placement: placement,
19945
- children: /*#__PURE__*/jsxRuntime.jsx("a", {
19946
- onClick: e => e.preventDefault(),
19947
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
19948
- className: "flex-row justify-content-center",
19949
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
19950
- name: "More",
19951
- width: 3,
19952
- height: 13,
19953
- color: color
19954
- })
19874
+ onClick: () => setIsOpen(!isOpen),
19875
+ children: [/*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
19876
+ name: "Lightning",
19877
+ size: 16,
19878
+ color: token.colorPrimary7
19879
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
19880
+ style: {
19881
+ marginRight: "auto"
19882
+ },
19883
+ children: "Smart Help"
19884
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
19885
+ children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
19886
+ name: "ChevronRight",
19887
+ size: 12,
19888
+ color: token.colorPrimary7,
19889
+ style: {
19890
+ transform: isOpen ? "rotate(90deg)" : "rotate(0deg)",
19891
+ transition: "transform 0.3s ease-in-out"
19892
+ }
19955
19893
  })
19956
- })
19894
+ })]
19895
+ }), isOpen && /*#__PURE__*/jsxRuntime.jsxs("div", {
19896
+ style: {
19897
+ padding: "8px",
19898
+ display: "flex",
19899
+ flexDirection: "column",
19900
+ gap: "12px"
19901
+ },
19902
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
19903
+ style: {
19904
+ paddingLeft: "4px",
19905
+ color: "#6C737F",
19906
+ fontFamily: "SF UI Display",
19907
+ fontWeight: "500",
19908
+ fontStyle: "Medium",
19909
+ fontSize: "14px",
19910
+ leadingTrim: "NONE",
19911
+ lineHeight: "20px",
19912
+ letterSpacing: "0%"
19913
+ },
19914
+ children: "The information available here has been identified as matching the requirements of this question."
19915
+ }), /*#__PURE__*/jsxRuntime.jsx(SmartWidget, {
19916
+ label: "Operational Activities",
19917
+ icon: "AimOutlined",
19918
+ link: "Link"
19919
+ }), /*#__PURE__*/jsxRuntime.jsx(SmartWidget, {
19920
+ label: "Monitoring Activities",
19921
+ icon: "Eye",
19922
+ link: "Link"
19923
+ }), /*#__PURE__*/jsxRuntime.jsx(SmartWidget, {
19924
+ label: "Project Locations",
19925
+ icon: "DashboardLocations",
19926
+ link: "Link"
19927
+ }), /*#__PURE__*/jsxRuntime.jsx(SmartWidget, {
19928
+ label: "Documents & Media",
19929
+ icon: "DashboardDocuments",
19930
+ link: "Link"
19931
+ })]
19932
+ })]
19933
+ });
19934
+ }
19935
+ function SmartWidget({
19936
+ label,
19937
+ icon,
19938
+ link
19939
+ }) {
19940
+ const {
19941
+ token
19942
+ } = useToken$2();
19943
+ return /*#__PURE__*/jsxRuntime.jsx(Widget, {
19944
+ noTitle: true,
19945
+ className: "no-p-body p-xs",
19946
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
19947
+ style: {
19948
+ display: "flex",
19949
+ alignItems: "center",
19950
+ gap: "8px"
19951
+ },
19952
+ children: [/*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
19953
+ name: icon,
19954
+ size: 16,
19955
+ color: "#384250"
19956
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
19957
+ style: {
19958
+ marginRight: "auto"
19959
+ },
19960
+ children: label
19961
+ }), /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
19962
+ name: link,
19963
+ size: 16,
19964
+ color: token.baseGray50,
19965
+ style: {
19966
+ cursor: "not-allowed"
19967
+ }
19968
+ })]
19957
19969
  })
19958
19970
  });
19959
19971
  }
19960
- MoreMenu.propTypes = {
19961
- items: PropTypes__default["default"].array,
19962
- placement: PropTypes__default["default"].oneOf(["bottom", "bottomLeft", "bottomRight", "top", "topLeft", "topRight"]),
19963
- trigger: PropTypes__default["default"].oneOf(["click", "hover", "contextMenu"])
19964
- };
19972
+
19973
+ styled__default["default"].div`
19974
+ position: absolute;
19975
+ right: 25px;
19976
+ top: 60px;
19977
+ background: white;
19978
+ padding: 10px 10px 10px 10px;
19979
+ box-shadow: 0px 10px 30px 10px rgba(0, 0, 0, 0.1);
19980
+ z-index: 1000;
19981
+ width: 300px;
19982
+ border: 1px solid rgba(0, 0, 0, 0.1);
19983
+
19984
+ .comment-shown {
19985
+ display: flex;
19986
+ flex-direction: column;
19987
+
19988
+ .link {
19989
+ display: flex;
19990
+ gap: 8px;
19991
+ justify-content: flex-end;
19992
+ }
19993
+ }
19994
+ `;
19965
19995
 
19966
19996
  const Styles = styled__default["default"].div`
19967
19997
  display: flex;
@@ -30167,8 +30197,8 @@ const getColumns$7 = ({
30167
30197
  }) : '-';
30168
30198
  }
30169
30199
  }, {
30170
- dataIndex: 'administrativeLevel1',
30171
- title: t('Region'),
30200
+ dataIndex: 'province',
30201
+ title: t('Province'),
30172
30202
  ellipsis: true,
30173
30203
  show: true,
30174
30204
  render: (v, all) => {
@@ -30177,15 +30207,15 @@ const getColumns$7 = ({
30177
30207
  className: "daf-default-cell"
30178
30208
  });
30179
30209
  }
30180
- const region = getLinkValue$3(v, all?.linking?.SCL);
30181
- return region ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
30182
- title: region,
30183
- children: region
30210
+ const province = getLinkValue$3(v, all?.linking?.SCL);
30211
+ return province ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
30212
+ title: province,
30213
+ children: province
30184
30214
  }) : '-';
30185
30215
  }
30186
30216
  }, {
30187
- dataIndex: 'administrativeLevel2',
30188
- title: t('District'),
30217
+ dataIndex: 'territory',
30218
+ title: t('Territory'),
30189
30219
  ellipsis: true,
30190
30220
  show: true,
30191
30221
  render: (v, all) => {
@@ -30194,11 +30224,27 @@ const getColumns$7 = ({
30194
30224
  className: "daf-default-cell"
30195
30225
  });
30196
30226
  }
30197
- const district = getLinkValue$3(v, all?.linking?.SCL);
30198
- return district ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
30199
- title: district,
30200
- children: district
30201
- }) : '-';
30227
+ const territory = getLinkValue$3(v, all?.linking?.SCL);
30228
+ return territory ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
30229
+ title: territory,
30230
+ children: territory
30231
+ }) : '-';
30232
+ }
30233
+ }, {
30234
+ title: t("Sources"),
30235
+ dataIndex: "sources",
30236
+ key: "sources",
30237
+ show: activeTab !== "own",
30238
+ render: (val, all) => {
30239
+ if (all.empty) {
30240
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
30241
+ className: "daf-default-cell"
30242
+ });
30243
+ }
30244
+ const sources = sourceAvatarConfig(val, user, applications);
30245
+ return /*#__PURE__*/jsxRuntime.jsx(AvatarGroup, {
30246
+ items: sources
30247
+ });
30202
30248
  }
30203
30249
  }, {
30204
30250
  title: t("Last Update"),
@@ -30218,22 +30264,6 @@ const getColumns$7 = ({
30218
30264
  });
30219
30265
  },
30220
30266
  ellipsis: true
30221
- }, {
30222
- title: t("Sources"),
30223
- dataIndex: "sources",
30224
- key: "sources",
30225
- show: activeTab !== "own",
30226
- render: (val, all) => {
30227
- if (all.empty) {
30228
- return /*#__PURE__*/jsxRuntime.jsx("div", {
30229
- className: "daf-default-cell"
30230
- });
30231
- }
30232
- const sources = sourceAvatarConfig(val, user, applications);
30233
- return /*#__PURE__*/jsxRuntime.jsx(AvatarGroup, {
30234
- items: sources
30235
- });
30236
- }
30237
30267
  }, {
30238
30268
  id: 'actions',
30239
30269
  title: "",
@@ -30244,19 +30274,32 @@ const getColumns$7 = ({
30244
30274
  className: "daf-default-cell"
30245
30275
  });
30246
30276
  }
30247
- const link = `/app/view/${subject}/${all.datastakeId}`;
30277
+ const onClick = () => {
30278
+ const link = `/app/view/${subject}/${all.datastakeId}`;
30279
+ if (activeTab === "shared") {
30280
+ link += `?sourceId=${all?.authorId?.id}`;
30281
+ }
30282
+ goTo(getRedirectLink(link));
30283
+ };
30284
+ const moreMenuItems = [{
30285
+ label: t("Details"),
30286
+ value: "details",
30287
+ onClick: onClick
30288
+ }, {
30289
+ label: t("Summary"),
30290
+ value: "Summary",
30291
+ onClick: () => {
30292
+ let link = `/app/summary/${subject}/${all.datastakeId}`;
30293
+ if (activeTab === "shared") {
30294
+ link += `?sourceId=${all?.authorId?.id}`;
30295
+ }
30296
+ goTo(getRedirectLink(link));
30297
+ }
30298
+ // disabled: true,
30299
+ }];
30248
30300
  return /*#__PURE__*/jsxRuntime.jsx("div", {
30249
- style: {
30250
- display: "flex",
30251
- justifyContent: "center"
30252
- },
30253
- children: /*#__PURE__*/jsxRuntime.jsx("a", {
30254
- href: getRedirectLink(link),
30255
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
30256
- name: "Link",
30257
- size: 15,
30258
- color: theme.baseGray70
30259
- })
30301
+ children: /*#__PURE__*/jsxRuntime.jsx(MoreMenu, {
30302
+ items: moreMenuItems
30260
30303
  })
30261
30304
  });
30262
30305
  }
@@ -30281,6 +30324,19 @@ const getFiltersConfig$7 = ({
30281
30324
  },
30282
30325
  getLabel: option => option.label,
30283
30326
  getValue: option => option.value
30327
+ },
30328
+ category: {
30329
+ type: 'select',
30330
+ label: 'Category',
30331
+ placeholder: t => `${t('Filter by')} ${t('Category').toLowerCase()}`,
30332
+ style: {
30333
+ flex: 1
30334
+ },
30335
+ labelStyle: {
30336
+ flex: 1
30337
+ },
30338
+ getLabel: option => option.label,
30339
+ getValue: option => option.value
30284
30340
  }
30285
30341
  };
30286
30342
  };
@@ -30290,10 +30346,12 @@ const filtersConfig$7 = {
30290
30346
  };
30291
30347
  const getFilterOptions$7 = (options, t) => {
30292
30348
  const {
30293
- countries
30349
+ countries = [],
30350
+ category = []
30294
30351
  } = options || {};
30295
30352
  const _default = {
30296
- country: countries
30353
+ country: countries,
30354
+ category: category
30297
30355
  };
30298
30356
  return _default;
30299
30357
  };
@@ -30629,24 +30687,6 @@ const getColumns$6 = ({
30629
30687
  children: country
30630
30688
  }) : '-';
30631
30689
  }
30632
- }, {
30633
- title: t("Last Update"),
30634
- dataIndex: "updatedAt",
30635
- key: "updatedAt",
30636
- width: 125,
30637
- render: (date, all) => {
30638
- if (all.empty) {
30639
- return /*#__PURE__*/jsxRuntime.jsx("div", {
30640
- className: "daf-default-cell"
30641
- });
30642
- }
30643
- const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
30644
- return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
30645
- title: _date,
30646
- children: _date
30647
- });
30648
- },
30649
- ellipsis: true
30650
30690
  }, {
30651
30691
  title: t("Sources"),
30652
30692
  dataIndex: "sources",
@@ -30666,6 +30706,24 @@ const getColumns$6 = ({
30666
30706
  items: sources
30667
30707
  });
30668
30708
  }
30709
+ }, {
30710
+ title: t("Last Update"),
30711
+ dataIndex: "updatedAt",
30712
+ key: "updatedAt",
30713
+ width: 125,
30714
+ render: (date, all) => {
30715
+ if (all.empty) {
30716
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
30717
+ className: "daf-default-cell"
30718
+ });
30719
+ }
30720
+ const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
30721
+ return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
30722
+ title: _date,
30723
+ children: _date
30724
+ });
30725
+ },
30726
+ ellipsis: true
30669
30727
  }, {
30670
30728
  id: 'actions',
30671
30729
  title: "",
@@ -30676,19 +30734,32 @@ const getColumns$6 = ({
30676
30734
  className: "daf-default-cell"
30677
30735
  });
30678
30736
  }
30679
- const link = `/app/view/${subject}/${all.datastakeId}`;
30737
+ const onClick = () => {
30738
+ const link = `/app/view/${subject}/${all.datastakeId}`;
30739
+ if (activeTab === "shared") {
30740
+ link += `?sourceId=${all?.authorId?.id}`;
30741
+ }
30742
+ goTo(getRedirectLink(link));
30743
+ };
30744
+ const moreMenuItems = [{
30745
+ label: t("Details"),
30746
+ value: "details",
30747
+ onClick: onClick
30748
+ }, {
30749
+ label: t("Summary"),
30750
+ value: "Summary",
30751
+ onClick: () => {
30752
+ let link = `/app/summary/${subject}/${all.datastakeId}`;
30753
+ if (activeTab === "shared") {
30754
+ link += `?sourceId=${all?.authorId?.id}`;
30755
+ }
30756
+ goTo(getRedirectLink(link));
30757
+ }
30758
+ // disabled: true,
30759
+ }];
30680
30760
  return /*#__PURE__*/jsxRuntime.jsx("div", {
30681
- style: {
30682
- display: "flex",
30683
- justifyContent: "center"
30684
- },
30685
- children: /*#__PURE__*/jsxRuntime.jsx("a", {
30686
- href: getRedirectLink(link),
30687
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
30688
- name: "Link",
30689
- size: 15,
30690
- color: theme.baseGray70
30691
- })
30761
+ children: /*#__PURE__*/jsxRuntime.jsx(MoreMenu, {
30762
+ items: moreMenuItems
30692
30763
  })
30693
30764
  });
30694
30765
  }
@@ -30713,6 +30784,19 @@ const getFiltersConfig$6 = ({
30713
30784
  },
30714
30785
  getLabel: option => option.label,
30715
30786
  getValue: option => option.value
30787
+ },
30788
+ category: {
30789
+ type: 'select',
30790
+ label: 'Category',
30791
+ placeholder: t => `${t('Filter by')} ${t('Category').toLowerCase()}`,
30792
+ style: {
30793
+ flex: 1
30794
+ },
30795
+ labelStyle: {
30796
+ flex: 1
30797
+ },
30798
+ getLabel: option => option.label,
30799
+ getValue: option => option.value
30716
30800
  }
30717
30801
  };
30718
30802
  };
@@ -30722,10 +30806,12 @@ const filtersConfig$6 = {
30722
30806
  };
30723
30807
  const getFilterOptions$6 = (options, t) => {
30724
30808
  const {
30725
- countries
30809
+ countries = [],
30810
+ category = []
30726
30811
  } = options || {};
30727
30812
  const _default = {
30728
- country: countries
30813
+ country: countries,
30814
+ category: category
30729
30815
  };
30730
30816
  return _default;
30731
30817
  };
@@ -31293,6 +31379,24 @@ const getColumns$5 = ({
31293
31379
  });
31294
31380
  },
31295
31381
  ellipsis: true
31382
+ }, {
31383
+ title: t("Last Update"),
31384
+ dataIndex: "updatedAt",
31385
+ key: "updatedAt",
31386
+ width: 125,
31387
+ render: (date, all) => {
31388
+ if (all.empty) {
31389
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
31390
+ className: "daf-default-cell"
31391
+ });
31392
+ }
31393
+ const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
31394
+ return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
31395
+ title: _date,
31396
+ children: _date
31397
+ });
31398
+ },
31399
+ ellipsis: true
31296
31400
  }, {
31297
31401
  id: 'actions',
31298
31402
  title: "",
@@ -31303,19 +31407,21 @@ const getColumns$5 = ({
31303
31407
  className: "daf-default-cell"
31304
31408
  });
31305
31409
  }
31306
- const link = `/app/view/${subject}/${all.datastakeId}`;
31410
+ const onClick = () => {
31411
+ const link = `/app/view/${subject}/${all.datastakeId}`;
31412
+ if (activeTab === "shared") {
31413
+ link += `?sourceId=${all?.authorId?.id}`;
31414
+ }
31415
+ goTo(getRedirectLink(link));
31416
+ };
31417
+ const moreMenuItems = [{
31418
+ label: t("Details"),
31419
+ value: "details",
31420
+ onClick: onClick
31421
+ }];
31307
31422
  return /*#__PURE__*/jsxRuntime.jsx("div", {
31308
- style: {
31309
- display: "flex",
31310
- justifyContent: "center"
31311
- },
31312
- children: /*#__PURE__*/jsxRuntime.jsx("a", {
31313
- href: getRedirectLink(link),
31314
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
31315
- name: "Link",
31316
- size: 15,
31317
- color: theme.baseGray70
31318
- })
31423
+ children: /*#__PURE__*/jsxRuntime.jsx(MoreMenu, {
31424
+ items: moreMenuItems
31319
31425
  })
31320
31426
  });
31321
31427
  }
@@ -31520,15 +31626,9 @@ const filtersConfig$5 = {
31520
31626
  const getFilterOptions$5 = (options, t) => {
31521
31627
  const {
31522
31628
  timeframe = [],
31523
- statusOptions = [],
31629
+ status = [],
31524
31630
  categoryOptions = [],
31525
31631
  countries = [],
31526
- subCategory = [],
31527
- subCategoriesOptions,
31528
- stakeholderCategoryOptions,
31529
- stakeholderSubCategoriesOptions,
31530
- administrativeLevel1,
31531
- administrativeLevel2,
31532
31632
  category = []
31533
31633
  } = options || {};
31534
31634
  console.log({
@@ -31537,10 +31637,6 @@ const getFilterOptions$5 = (options, t) => {
31537
31637
  const _default = {
31538
31638
  timeframe: timeframe,
31539
31639
  country: countries,
31540
- category: stakeholderCategoryOptions || categoryOptions,
31541
- administrativeLevel1,
31542
- administrativeLevel2,
31543
- // subCategory: subCategoriesOptions,
31544
31640
  category: category,
31545
31641
  status: [{
31546
31642
  value: "submitted",
@@ -31908,19 +32004,28 @@ const getColumns$4 = ({
31908
32004
  className: "daf-default-cell"
31909
32005
  });
31910
32006
  }
31911
- const link = `/app/view/${subject}/${all.datastakeId}`;
31912
- return /*#__PURE__*/jsxRuntime.jsx("div", {
31913
- style: {
31914
- display: "flex",
31915
- justifyContent: "center"
32007
+ const onClick = () => {
32008
+ const link = `/app/view/${subject}/${all.datastakeId}`;
32009
+ if (activeTab === "shared") {
32010
+ link += `?sourceId=${all?.authorId?.id}`;
32011
+ }
32012
+ goTo(getRedirectLink(link));
32013
+ };
32014
+ const moreMenuItems = [{
32015
+ label: t("Details"),
32016
+ value: "details",
32017
+ onClick: onClick
32018
+ }, {
32019
+ label: t("Remove"),
32020
+ value: "remove",
32021
+ onClick: () => {
32022
+ console.log("remove");
31916
32023
  },
31917
- children: /*#__PURE__*/jsxRuntime.jsx("a", {
31918
- href: getRedirectLink(link),
31919
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
31920
- name: "Link",
31921
- size: 15,
31922
- color: theme.baseGray70
31923
- })
32024
+ disabled: true
32025
+ }];
32026
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
32027
+ children: /*#__PURE__*/jsxRuntime.jsx(MoreMenu, {
32028
+ items: moreMenuItems
31924
32029
  })
31925
32030
  });
31926
32031
  }
@@ -31934,17 +32039,12 @@ const getFiltersConfig$4 = ({
31934
32039
  t
31935
32040
  }) => {
31936
32041
  return {
31937
- country: {
31938
- type: 'select',
31939
- placeholder: t('Country'),
32042
+ timeframe: {
32043
+ type: "timeframe",
32044
+ label: "Timeframe",
31940
32045
  style: {
31941
32046
  flex: 1
31942
- },
31943
- labelStyle: {
31944
- flex: 1
31945
- },
31946
- getLabel: option => option.label,
31947
- getValue: option => option.value
32047
+ }
31948
32048
  }
31949
32049
  };
31950
32050
  };
@@ -31954,10 +32054,10 @@ const filtersConfig$4 = {
31954
32054
  };
31955
32055
  const getFilterOptions$4 = (options, t) => {
31956
32056
  const {
31957
- countries
32057
+ timeframe = []
31958
32058
  } = options || {};
31959
32059
  const _default = {
31960
- country: countries
32060
+ timeframe: timeframe
31961
32061
  };
31962
32062
  return _default;
31963
32063
  };
@@ -33114,19 +33214,21 @@ const getColumns$2 = ({
33114
33214
  className: "daf-default-cell"
33115
33215
  });
33116
33216
  }
33117
- const link = `/app/view/${subject}/${all.datastakeId}`;
33217
+ const onClick = () => {
33218
+ const link = `/app/view/${subject}/${all.datastakeId}`;
33219
+ if (activeTab === "shared") {
33220
+ link += `?sourceId=${all?.authorId?.id}`;
33221
+ }
33222
+ goTo(getRedirectLink(link));
33223
+ };
33224
+ const moreMenuItems = [{
33225
+ label: t("Details"),
33226
+ value: "details",
33227
+ onClick: onClick
33228
+ }];
33118
33229
  return /*#__PURE__*/jsxRuntime.jsx("div", {
33119
- style: {
33120
- display: "flex",
33121
- justifyContent: "center"
33122
- },
33123
- children: /*#__PURE__*/jsxRuntime.jsx("a", {
33124
- href: getRedirectLink(link),
33125
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
33126
- name: "Link",
33127
- size: 15,
33128
- color: theme.baseGray70
33129
- })
33230
+ children: /*#__PURE__*/jsxRuntime.jsx(MoreMenu, {
33231
+ items: moreMenuItems
33130
33232
  })
33131
33233
  });
33132
33234
  }
@@ -33140,6 +33242,13 @@ const getFiltersConfig$2 = ({
33140
33242
  t
33141
33243
  }) => {
33142
33244
  return {
33245
+ timeframe: {
33246
+ type: "timeframe",
33247
+ label: "Timeframe",
33248
+ style: {
33249
+ flex: 1
33250
+ }
33251
+ },
33143
33252
  country: {
33144
33253
  type: 'select',
33145
33254
  label: 'Country',
@@ -33240,10 +33349,10 @@ const getFiltersConfig$2 = ({
33240
33349
  flex: 1
33241
33350
  }
33242
33351
  },
33243
- activity: {
33352
+ category: {
33244
33353
  type: 'select',
33245
- label: 'Activity',
33246
- placeholder: t => `${t('Filter by')} ${t('Activity').toLowerCase()}`,
33354
+ label: 'Category',
33355
+ placeholder: t => `${t('Filter by')} ${t('Category').toLowerCase()}`,
33247
33356
  style: {
33248
33357
  flex: 1
33249
33358
  },
@@ -33310,11 +33419,12 @@ const filtersConfig$2 = {
33310
33419
  };
33311
33420
  const getFilterOptions$2 = (options, t) => {
33312
33421
  const {
33422
+ timeframe = [],
33313
33423
  statusOptions = [],
33314
33424
  categoryOptions = [],
33315
33425
  countries = [],
33316
33426
  subCategory = [],
33317
- activityAtSiteOptions = [],
33427
+ category = [],
33318
33428
  stakeholderCategoryOptions,
33319
33429
  stakeholderSubCategoriesOptions,
33320
33430
  administrativeLevel1,
@@ -33323,6 +33433,7 @@ const getFilterOptions$2 = (options, t) => {
33323
33433
  subCategoriesOptions
33324
33434
  } = options || {};
33325
33435
  const _default = {
33436
+ timeframe: timeframe,
33326
33437
  status: [{
33327
33438
  value: "submitted",
33328
33439
  label: "Submitted"
@@ -33333,7 +33444,7 @@ const getFilterOptions$2 = (options, t) => {
33333
33444
  category: stakeholderCategoryOptions || categoryOptions,
33334
33445
  country: countries,
33335
33446
  subCategory: subCategoriesOptions,
33336
- activity: activityAtSiteOptions,
33447
+ category: category,
33337
33448
  administrativeLevel1,
33338
33449
  administrativeLevel2,
33339
33450
  positionInTheMineralSupplyChain: positionInMineralSupplyChainOptions
@@ -33829,19 +33940,21 @@ const getColumns$1 = ({
33829
33940
  className: "daf-default-cell"
33830
33941
  });
33831
33942
  }
33832
- const link = `/app/view/${subject}/${all.datastakeId}`;
33943
+ const onClick = () => {
33944
+ const link = `/app/view/${subject}/${all.datastakeId}`;
33945
+ if (activeTab === "shared") {
33946
+ link += `?sourceId=${all?.authorId?.id}`;
33947
+ }
33948
+ goTo(getRedirectLink(link));
33949
+ };
33950
+ const moreMenuItems = [{
33951
+ label: t("Details"),
33952
+ value: "details",
33953
+ onClick: onClick
33954
+ }];
33833
33955
  return /*#__PURE__*/jsxRuntime.jsx("div", {
33834
- style: {
33835
- display: "flex",
33836
- justifyContent: "center"
33837
- },
33838
- children: /*#__PURE__*/jsxRuntime.jsx("a", {
33839
- href: getRedirectLink(link),
33840
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
33841
- name: "Link",
33842
- size: 15,
33843
- color: theme.baseGray70
33844
- })
33956
+ children: /*#__PURE__*/jsxRuntime.jsx(MoreMenu, {
33957
+ items: moreMenuItems
33845
33958
  })
33846
33959
  });
33847
33960
  }
@@ -33855,6 +33968,13 @@ const getFiltersConfig$1 = ({
33855
33968
  t
33856
33969
  }) => {
33857
33970
  return {
33971
+ timeframe: {
33972
+ type: "timeframe",
33973
+ label: "Timeframe",
33974
+ style: {
33975
+ flex: 1
33976
+ }
33977
+ },
33858
33978
  country: {
33859
33979
  type: 'select',
33860
33980
  label: 'Country',
@@ -33955,10 +34075,10 @@ const getFiltersConfig$1 = ({
33955
34075
  flex: 1
33956
34076
  }
33957
34077
  },
33958
- activity: {
34078
+ category: {
33959
34079
  type: 'select',
33960
- label: 'Activity',
33961
- placeholder: t => `${t('Filter by')} ${t('Activity').toLowerCase()}`,
34080
+ label: 'Category',
34081
+ placeholder: t => `${t('Filter by')} ${t('Category').toLowerCase()}`,
33962
34082
  style: {
33963
34083
  flex: 1
33964
34084
  },
@@ -34025,11 +34145,12 @@ const filtersConfig$1 = {
34025
34145
  };
34026
34146
  const getFilterOptions$1 = (options, t) => {
34027
34147
  const {
34148
+ timeframe = [],
34028
34149
  statusOptions = [],
34029
34150
  categoryOptions = [],
34030
34151
  countries = [],
34031
34152
  subCategory = [],
34032
- activityAtSiteOptions = [],
34153
+ category = [],
34033
34154
  stakeholderCategoryOptions,
34034
34155
  stakeholderSubCategoriesOptions,
34035
34156
  administrativeLevel1,
@@ -34038,6 +34159,7 @@ const getFilterOptions$1 = (options, t) => {
34038
34159
  subCategoriesOptions
34039
34160
  } = options || {};
34040
34161
  const _default = {
34162
+ timeframe: timeframe,
34041
34163
  status: [{
34042
34164
  value: "submitted",
34043
34165
  label: "Submitted"
@@ -34048,7 +34170,7 @@ const getFilterOptions$1 = (options, t) => {
34048
34170
  category: stakeholderCategoryOptions || categoryOptions,
34049
34171
  country: countries,
34050
34172
  subCategory: subCategoriesOptions,
34051
- activity: activityAtSiteOptions,
34173
+ category: category,
34052
34174
  administrativeLevel1,
34053
34175
  administrativeLevel2,
34054
34176
  positionInTheMineralSupplyChain: positionInMineralSupplyChainOptions
@@ -34405,7 +34527,7 @@ const getColumns = ({
34405
34527
  items: val
34406
34528
  });
34407
34529
  }
34408
- },, {
34530
+ }, {
34409
34531
  dataIndex: 'operator',
34410
34532
  title: t('Operator'),
34411
34533
  ellipsis: true,
@@ -34457,6 +34579,23 @@ const getColumns = ({
34457
34579
  children: status
34458
34580
  }) : '-';
34459
34581
  }
34582
+ }, {
34583
+ title: t("Sources"),
34584
+ dataIndex: 'source',
34585
+ ellipsis: true,
34586
+ show: activeTab !== "own",
34587
+ render: (v, all) => {
34588
+ if (all.empty) {
34589
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
34590
+ className: "daf-default-cell"
34591
+ });
34592
+ }
34593
+ const source = findOptions(v, data?.options?.sourceOptions);
34594
+ return source ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
34595
+ title: source,
34596
+ children: source
34597
+ }) : '-';
34598
+ }
34460
34599
  }, {
34461
34600
  id: 'actions',
34462
34601
  title: "",
@@ -34467,19 +34606,32 @@ const getColumns = ({
34467
34606
  className: "daf-default-cell"
34468
34607
  });
34469
34608
  }
34470
- const link = `/app/view/${subject}/${all.datastakeId}`;
34609
+ const onClick = () => {
34610
+ const link = `/app/view/${subject}/${all.datastakeId}`;
34611
+ if (activeTab === "shared") {
34612
+ link += `?sourceId=${all?.authorId?.id}`;
34613
+ }
34614
+ goTo(getRedirectLink(link));
34615
+ };
34616
+ const moreMenuItems = [{
34617
+ label: t("Details"),
34618
+ value: "details",
34619
+ onClick: onClick
34620
+ }, {
34621
+ label: t("Summary"),
34622
+ value: "Summary",
34623
+ onClick: () => {
34624
+ let link = `/app/mine-summary/${all.datastakeId}`;
34625
+ if (activeTab === "shared") {
34626
+ link += `?sourceId=${all?.authorId?.id}`;
34627
+ }
34628
+ goTo(getRedirectLink(link));
34629
+ }
34630
+ // disabled: true,
34631
+ }];
34471
34632
  return /*#__PURE__*/jsxRuntime.jsx("div", {
34472
- style: {
34473
- display: "flex",
34474
- justifyContent: "center"
34475
- },
34476
- children: /*#__PURE__*/jsxRuntime.jsx("a", {
34477
- href: getRedirectLink(link),
34478
- children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
34479
- name: "Link",
34480
- size: 15,
34481
- color: theme.baseGray70
34482
- })
34633
+ children: /*#__PURE__*/jsxRuntime.jsx(MoreMenu, {
34634
+ items: moreMenuItems
34483
34635
  })
34484
34636
  });
34485
34637
  }
@@ -40122,6 +40274,467 @@ styled__default["default"].div`
40122
40274
  }
40123
40275
  `;
40124
40276
 
40277
+ styled__default["default"].div`
40278
+ display: flex;
40279
+ flex-direction: column;
40280
+ justify-content: flex-start;
40281
+ width: 100%;
40282
+ height: 100%;
40283
+
40284
+ .ant-menu {
40285
+ min-width: 200px;
40286
+ height: 100%;
40287
+
40288
+ .ant-menu-item{
40289
+ padding-left: var(--size)!important;
40290
+ }
40291
+
40292
+ .ant-menu-submenu {
40293
+ .ant-menu-submenu-title {
40294
+ padding-left: var(--size) !important;
40295
+ }
40296
+ .ant-menu.ant-menu-sub {
40297
+ .ant-menu-item {
40298
+ padding-left: 32px !important;
40299
+ }
40300
+ }
40301
+ }
40302
+ }
40303
+
40304
+ .view-content {
40305
+ display: flex;
40306
+ flex-direction: row;
40307
+ justify-content: space-between;
40308
+ position: relative;
40309
+ width: 100%;
40310
+ flex: 1;
40311
+ overflow: auto;
40312
+
40313
+ .content {
40314
+ width: 100%;
40315
+ display: flex;
40316
+ flex-direction: column;
40317
+ overflow-y: auto;
40318
+ padding: 20px 20px 0 20px;
40319
+
40320
+ .title {
40321
+ margin-bottom: 20px;
40322
+ font-size: var(--size-lg);
40323
+
40324
+ &.with-subtitle {
40325
+ margin-bottom: var(--size-lg) !important;
40326
+ display: flex;
40327
+ align-items: baseline !important;
40328
+ flex-direction: column;
40329
+
40330
+ h1 {
40331
+ margin-bottom: 4px !important;
40332
+ }
40333
+
40334
+ p {
40335
+ margin-bottom: 0px;
40336
+ color: #667085;
40337
+ font-size: 15px;
40338
+ font-weight: 500;
40339
+ }
40340
+ }
40341
+ }
40342
+
40343
+ .wrapper {
40344
+ padding: 0;
40345
+ display: flex;
40346
+ flex-direction: row;
40347
+ flex-wrap: wrap;
40348
+
40349
+ .group, .group-extra {
40350
+ width: 100%;
40351
+ background: #fbfbfb;
40352
+ border: 1px solid #f2f2f2;
40353
+ padding: var(--size);
40354
+ display: flex;
40355
+ flex-direction: row;
40356
+ flex-wrap: wrap;
40357
+ margin-bottom: 20px;
40358
+ justify-content: space-between;
40359
+
40360
+ .title {
40361
+ width: 100%;
40362
+ display: flex;
40363
+ align-items: center;
40364
+ margin-bottom: var(--size);
40365
+
40366
+ h1 {
40367
+ font-size: 20px;
40368
+ color: #001529;
40369
+ margin-bottom: 0;
40370
+ }
40371
+ }
40372
+
40373
+ .input {
40374
+ display: flex;
40375
+ flex-direction: column;
40376
+ justify-content: space-between;
40377
+ width: calc(50% - 10px);
40378
+ border-bottom: 1px solid #e4e8ed;
40379
+ margin-bottom: var(--size);
40380
+ margin-top: auto !important;
40381
+
40382
+ .label {
40383
+ display: flex;
40384
+ align-items: center;
40385
+ }
40386
+
40387
+ .label, .value {
40388
+ font-size: 14px;
40389
+ color: #828282;
40390
+ line-height: 22px;
40391
+ margin: 0;
40392
+ }
40393
+
40394
+ .value {
40395
+ color: #001529;
40396
+ font-weight: 400;
40397
+ margin-bottom: var(--size);
40398
+ margin-top: 8px;
40399
+ }
40400
+ }
40401
+
40402
+ .input.checkboxGroup {
40403
+ margin-top: 12px !important;
40404
+ .opt {
40405
+ display: flex;
40406
+ justify-content: space-between;
40407
+ align-items: center;
40408
+ padding: 6px 0;
40409
+ color: rgba(0, 0, 0, 0.78);
40410
+ &:not(:last-of-type) {
40411
+ border-bottom: 1px solid rgba(0, 0, 0, 0.07);
40412
+ }
40413
+ }
40414
+ }
40415
+
40416
+ .input.last {
40417
+ margin: 0;
40418
+ border: none;
40419
+ .value {
40420
+ margin: 0;
40421
+ margin-top: 8px;
40422
+ }
40423
+ }
40424
+ }
40425
+
40426
+ .group {
40427
+ &.display, &.repeatable {
40428
+ padding-bottom: var(--size);
40429
+ }
40430
+ }
40431
+
40432
+ .group.repeatable, .group-extra.repeatable {
40433
+ justify-content: flex-start;
40434
+ .repeatable-row {
40435
+ width: 100%;
40436
+ display: flex;
40437
+ background: white;
40438
+ button {
40439
+ border-radius: 8px;
40440
+ span[role="img"] {
40441
+ font-size: 12px;
40442
+ svg {
40443
+ margin-top: -5px;
40444
+ }
40445
+ }
40446
+ }
40447
+ &.open {
40448
+ color: var(--mmt-primary-70) !important;
40449
+ background: #e6f7ff !important;
40450
+ border-color: #91d5ff !important;
40451
+ .input {
40452
+ color: var(--mmt-primary-70) !important;
40453
+ background: #e6f7ff !important;
40454
+ border-color: #91d5ff !important;
40455
+ .value {
40456
+ color: var(--mmt-primary-70) !important;
40457
+ background: #e6f7ff !important;
40458
+ border: none;
40459
+ }
40460
+ }
40461
+ }
40462
+ }
40463
+ .input {
40464
+ margin-right: 0 !important;
40465
+ margin: 0;
40466
+ border-bottom: none;
40467
+ .label {
40468
+ display: flex;
40469
+ align-items: center;
40470
+ padding: 0px 8px 12px;
40471
+ border-bottom: 1px solid #e4e8ed;
40472
+ min-height: 35px;
40473
+ }
40474
+ .value {
40475
+ padding: 12px 8px;
40476
+ background: white;
40477
+ border-bottom: 1px solid #e4e8ed;
40478
+ min-height: 48px;
40479
+ margin-bottom: 0;
40480
+ margin-top: 0;
40481
+ }
40482
+ &.first-col{
40483
+ .value {
40484
+ padding-left: 14px;
40485
+ }
40486
+ }
40487
+ }
40488
+ .input.action {
40489
+ .value {
40490
+ text-align: center;
40491
+ }
40492
+ }
40493
+ .no-data {
40494
+ padding: 12px;
40495
+ background: white;
40496
+ width: 100%;
40497
+ text-align: center;
40498
+ margin-bottom: 0 !important;
40499
+ }
40500
+ }
40501
+
40502
+ .group.repeatable {
40503
+ .input {
40504
+ .label {
40505
+ display: flex;
40506
+ align-items: center;
40507
+ height: 100%;
40508
+ }
40509
+ }
40510
+ .repetable-row-extra {
40511
+ width: 100%;
40512
+ display: flex;
40513
+ flex-wrap: wrap;
40514
+ padding: var(--size) 0;
40515
+ background: #fbfbfb;
40516
+ overflow: hidden;
40517
+ transition: all 300ms ease;
40518
+ .input {
40519
+ display: flex !important;
40520
+ flex-direction: column;
40521
+ justify-content: space-between;
40522
+ border-bottom: 1px solid #e4e8ed;
40523
+ margin-bottom: var(--size);
40524
+ }
40525
+ .label, .value {
40526
+ font-size: 14px;
40527
+ color: #828282;
40528
+ line-height: 22px;
40529
+ margin: 0;
40530
+ border-bottom: none;
40531
+ padding-right: var(--size);
40532
+ padding-bottom: 0px;
40533
+ }
40534
+ .value {
40535
+ color: #001529;
40536
+ font-weight: 400;
40537
+ margin-bottom: var(--size);
40538
+ background: none;
40539
+ border-bottom: none;
40540
+ padding: 0 8px;
40541
+ min-height: unset;
40542
+ }
40543
+ .input.last {
40544
+ margin: 0;
40545
+ border: none;
40546
+ .value {
40547
+ margin: 0;
40548
+ }
40549
+ }
40550
+ }
40551
+ }
40552
+ }
40553
+
40554
+ .group.display {
40555
+ flex-wrap: wrap;
40556
+ .title {
40557
+ margin-bottom: 0;
40558
+ }
40559
+ .group {
40560
+ width: calc(100% / 2 - 8px);
40561
+ background: white;
40562
+ margin-bottom: 0;
40563
+ margin-top: var(--size);
40564
+ .title {
40565
+ margin-bottom: var(--size);
40566
+ h1 {
40567
+ font-size: var(--font-size-lg);
40568
+ }
40569
+ }
40570
+ }
40571
+ }
40572
+ }
40573
+
40574
+ .section-tabs {
40575
+ .ant-tabs-bar.ant-tabs-top-bar {
40576
+ display: flex;
40577
+ justify-content: center;
40578
+ border-bottom: none;
40579
+ }
40580
+ }
40581
+ }
40582
+
40583
+ .anticon {
40584
+ vertical-align: 0;
40585
+ margin-right: 0px;
40586
+ margin-top: 4px;
40587
+ }
40588
+
40589
+ .image-container{
40590
+ display: flex;
40591
+ flex-direction: row;
40592
+ flex-wrap: wrap;
40593
+ vertical-align: middle;
40594
+ .ant-image{
40595
+ border: 1px solid rgb(204, 204, 204);
40596
+ margin-right: 10px;
40597
+ }
40598
+ }
40599
+
40600
+ @media (min-width: 768px){
40601
+ .group.col-md-6.col-sm-12.ml-2,
40602
+ .group.col-md-6.col-sm-12.mr-2 {
40603
+ flex: 0 0 calc(50% - 0.75rem);
40604
+ max-width: calc(50% - 0.75rem);
40605
+ }
40606
+ }
40607
+
40608
+ b {
40609
+ color: #001529;
40610
+ }
40611
+ `;
40612
+
40613
+ styled__default["default"].div`
40614
+ display: flex;
40615
+ flex-direction: column;
40616
+ justify-content: flex-start;
40617
+ width: 100%;
40618
+ height: 100%;
40619
+ overflow: hidden;
40620
+
40621
+ .ant-menu {
40622
+ min-width: 200px;
40623
+ height: 100%;
40624
+
40625
+ .ant-menu-item {
40626
+ padding-left: var(--size) !important;
40627
+ }
40628
+ }
40629
+
40630
+ .view-content {
40631
+ display: flex;
40632
+ flex-direction: row;
40633
+ justify-content: space-between;
40634
+ position: relative;
40635
+ width: 100%;
40636
+ flex: 1;
40637
+ overflow: auto;
40638
+
40639
+ .form-edit {
40640
+ width: 100%;
40641
+ display: flex;
40642
+ justify-content: center;
40643
+ padding-top: var(--size-lg);
40644
+ overflow: auto;
40645
+ flex-direction: column;
40646
+ padding: 20px 100px 0 100px;
40647
+
40648
+ .main-form {
40649
+ min-width: 400px;
40650
+ width: 100%;
40651
+ max-width: 700px;
40652
+ min-height: 100%;
40653
+ margin: auto;
40654
+
40655
+ @media screen and (max-width: 1200px) {
40656
+ min-width: 600px;
40657
+ }
40658
+
40659
+ @media screen and (max-width: 768px) {
40660
+ min-width: 100%;
40661
+ }
40662
+ }
40663
+ }
40664
+ }
40665
+ `;
40666
+
40667
+ styled__default["default"].div`
40668
+ display: flex;
40669
+ flex-direction: column;
40670
+ gap: 34px;
40671
+ padding-bottom: 34px;
40672
+
40673
+ .group-header {
40674
+ border-bottom: 1px solid #E5E7EB;
40675
+ margin-bottom: var(--size-lg);
40676
+
40677
+ h3 {
40678
+ font-size: 20px;
40679
+ font-weight: 600;
40680
+ margin-bottom: 4px;
40681
+ }
40682
+
40683
+ p {
40684
+ color: #667085;
40685
+ margin-bottom: var(--size-lg);
40686
+ font-weight: 500;
40687
+ }
40688
+ }
40689
+
40690
+ .input-group {
40691
+ display: flex;
40692
+ gap: 8px;
40693
+
40694
+ .ant-form-item {
40695
+ flex: 1;
40696
+ }
40697
+ }
40698
+ `;
40699
+
40700
+ /* eslint-disable react/prop-types */
40701
+ styled__default["default"].div`
40702
+ width: 100%;
40703
+ display: flex;
40704
+ gap: 32px;
40705
+
40706
+ .label-cont {
40707
+ flex: 1;
40708
+
40709
+ h3 {
40710
+ font-size: var(--font-size-lg);
40711
+ font-weight: 500;
40712
+ margin-bottom: 4px;
40713
+ }
40714
+
40715
+ p {
40716
+ color: #6C737F;
40717
+ font-size: 14px;
40718
+ font-weight: 500;
40719
+ }
40720
+ }
40721
+ `;
40722
+
40723
+ /* eslint-disable react/prop-types */
40724
+ styled__default["default"].div`
40725
+ .form-footer {
40726
+ display: flex;
40727
+ justify-content: center;
40728
+ gap: 8px;
40729
+ margin-top: 28px;
40730
+ }
40731
+ `;
40732
+
40733
+ /* eslint-disable react/prop-types */
40734
+ styled__default["default"].div`
40735
+ flex: 1;
40736
+ `;
40737
+
40125
40738
  const getKeyIndicatorsRowConfig = ({
40126
40739
  t,
40127
40740
  data = {}