@djb25/digit-ui-module-ekyc 1.0.3 → 1.0.5

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.
@@ -1,6 +1,6 @@
1
- import React, { useMemo, useState, useCallback, useRef, Fragment } from 'react';
1
+ import React, { useMemo, useState, useCallback, useRef, useEffect, Fragment } from 'react';
2
2
  import { Link, useHistory, useRouteMatch, useLocation, Switch } from 'react-router-dom';
3
- import { PersonIcon, EmployeeModuleCard, Card, HomeIcon, Table, Header, TextInput, SubmitBar, Loader, DetailsCard, FilterForm, FilterFormField, Dropdown, CardHeader, StatusTable, Row, CardLabel, Modal, RadioButtons, Toast, LocationIcon, LabelFieldPair, PropertyHouse, InfoBannerIcon, RemoveableTag, ActionBar, ConnectingCheckPoints, CheckPoint, TickMark, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute } from '@djb25/digit-ui-react-components';
3
+ import { PersonIcon as PersonIcon$1, EmployeeModuleCard, Card, HomeIcon, Table, Header, TextInput, SubmitBar, Loader, DetailsCard, FilterForm, FilterFormField, Dropdown, CardHeader, StatusTable, Row, CardLabel, Modal, RadioButtons, Toast, LocationIcon, PropertyHouse, InfoBannerIcon, ActionBar, LabelFieldPair, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute } from '@djb25/digit-ui-react-components';
4
4
  import { useTranslation } from 'react-i18next';
5
5
 
6
6
  const EKYCCard = () => {
@@ -8,7 +8,7 @@ const EKYCCard = () => {
8
8
  t
9
9
  } = useTranslation();
10
10
  const propsForModuleCard = {
11
- Icon: /*#__PURE__*/React.createElement(PersonIcon, null),
11
+ Icon: /*#__PURE__*/React.createElement(PersonIcon$1, null),
12
12
  moduleName: t("ACTION_TEST_EKYC"),
13
13
  kpis: [{
14
14
  count: "-",
@@ -107,23 +107,14 @@ const DesktopInbox = ({
107
107
  var _row$original2;
108
108
  return /*#__PURE__*/React.createElement("span", null, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.citizenName) || "NA");
109
109
  }
110
- }, {
111
- Header: t("EKYC_MOBILE_NO"),
112
- accessor: "mobileNumber",
113
- Cell: ({
114
- row
115
- }) => {
116
- var _row$original3;
117
- return /*#__PURE__*/React.createElement("span", null, ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.mobileNumber) || "NA");
118
- }
119
110
  }, {
120
111
  Header: t("EKYC_STATUS"),
121
112
  accessor: "status",
122
113
  Cell: ({
123
114
  row
124
115
  }) => {
125
- var _row$original4;
126
- const status = ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.status) || "DEFAULT";
116
+ var _row$original3;
117
+ const status = ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.status) || "DEFAULT";
127
118
  return /*#__PURE__*/React.createElement("span", {
128
119
  className: `ekyc-status-tag ${status}`
129
120
  }, t(`EKYC_STATUS_${status}`));
@@ -360,7 +351,13 @@ const SearchConsumer = ({
360
351
  paddingLeft: "12px",
361
352
  height: "44px"
362
353
  }
363
- }))), /*#__PURE__*/React.createElement("div", {
354
+ })))), /*#__PURE__*/React.createElement("div", {
355
+ style: {
356
+ display: "flex",
357
+ justifyContent: "flex-end",
358
+ marginTop: "20px"
359
+ }
360
+ }, /*#__PURE__*/React.createElement("div", {
364
361
  style: {
365
362
  display: "flex",
366
363
  gap: "12px",
@@ -385,8 +382,7 @@ const SearchConsumer = ({
385
382
  margin: 0,
386
383
  borderRadius: "8px",
387
384
  height: "44px",
388
- padding: "0 32px",
389
- marginTop: "-55px"
385
+ padding: "0 32px"
390
386
  }
391
387
  }))))), children));
392
388
  };
@@ -522,32 +518,6 @@ const Filter = ({
522
518
  })));
523
519
  };
524
520
 
525
- const MOCK_DATA_ITEMS = [{
526
- applicationNumber: "EKYC-2024-001",
527
- citizenName: "Rahul Sharma",
528
- mobileNumber: "9876543210",
529
- status: "COMPLETED"
530
- }, {
531
- applicationNumber: "EKYC-2024-002",
532
- citizenName: "Anjali Devi",
533
- mobileNumber: "9123456789",
534
- status: "PENDING"
535
- }, {
536
- applicationNumber: "EKYC-2024-003",
537
- citizenName: "Amit Kumar",
538
- mobileNumber: "8888888888",
539
- status: "REJECTED"
540
- }, {
541
- applicationNumber: "EKYC-2024-004",
542
- citizenName: "Priya Singh",
543
- mobileNumber: "7777777777",
544
- status: "COMPLETED"
545
- }, {
546
- applicationNumber: "EKYC-2024-005",
547
- citizenName: "Suresh Gupta",
548
- mobileNumber: "6666666666",
549
- status: "PENDING"
550
- }];
551
521
  const Inbox = ({
552
522
  parentRoute,
553
523
  businessService: _businessService = "EKYC",
@@ -555,6 +525,7 @@ const Inbox = ({
555
525
  filterComponent,
556
526
  isInbox
557
527
  }) => {
528
+ var _searchParams$status, _dashboardData$dashbo2;
558
529
  const tenantId = Digit.ULBService.getCurrentTenantId();
559
530
  const {
560
531
  t
@@ -572,25 +543,37 @@ const Inbox = ({
572
543
  const [searchParams, setSearchParams] = useState(_initialStates.searchParams || {
573
544
  status: defaultStatusOption
574
545
  });
575
- const filteredStaticData = useMemo(() => {
576
- return MOCK_DATA_ITEMS.filter(item => {
577
- var _searchParams$status;
578
- let match = true;
579
- const currentStatus = ((_searchParams$status = searchParams.status) === null || _searchParams$status === void 0 ? void 0 : _searchParams$status.value) !== undefined ? searchParams.status.value : searchParams.status;
580
- if (currentStatus && item.status !== currentStatus) {
581
- match = false;
582
- }
583
- return match;
584
- });
585
- }, [searchParams]);
586
- const staticCountData = useMemo(() => {
546
+ const {
547
+ isLoading,
548
+ data: dashboardData,
549
+ isFetching
550
+ } = Digit.Hooks.ekyc.useEkycSurveyorDashboard({}, {
551
+ tenantId,
552
+ offset: pageOffset,
553
+ limit: pageSize,
554
+ status: ((_searchParams$status = searchParams.status) === null || _searchParams$status === void 0 ? void 0 : _searchParams$status.value) || ""
555
+ }, {
556
+ enabled: !!tenantId
557
+ });
558
+ const filteredData = useMemo(() => {
559
+ var _dashboardData$dashbo;
560
+ const items = (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo = dashboardData.dashboardInfo) === null || _dashboardData$dashbo === void 0 ? void 0 : _dashboardData$dashbo.consumerList) || [];
561
+ return items.map(item => ({
562
+ ...item,
563
+ applicationNumber: item.kno || item.applicationNumber,
564
+ citizenName: item.consumerName || item.citizenName
565
+ }));
566
+ }, [dashboardData]);
567
+ const countData = useMemo(() => {
568
+ const info = (dashboardData === null || dashboardData === void 0 ? void 0 : dashboardData.dashboardInfo) || {};
587
569
  return {
588
- total: MOCK_DATA_ITEMS.length,
589
- completed: MOCK_DATA_ITEMS.filter(i => i.status === "COMPLETED").length,
590
- pending: MOCK_DATA_ITEMS.filter(i => i.status === "PENDING").length,
591
- rejected: MOCK_DATA_ITEMS.filter(i => i.status === "REJECTED").length
570
+ total: info.total || 0,
571
+ completed: info.completed || 0,
572
+ pending: info.pending || 0,
573
+ rejected: info.rejected || 0
592
574
  };
593
- }, []);
575
+ }, [dashboardData]);
576
+ const totalRecords = (dashboardData === null || dashboardData === void 0 ? void 0 : (_dashboardData$dashbo2 = dashboardData.dashboardInfo) === null || _dashboardData$dashbo2 === void 0 ? void 0 : _dashboardData$dashbo2.totalRecords) || (dashboardData === null || dashboardData === void 0 ? void 0 : dashboardData.totalCount) || 0;
594
577
  const handleSearch = useCallback(filterParam => {
595
578
  setSearchParams(prev => ({
596
579
  ...prev,
@@ -633,22 +616,22 @@ const Inbox = ({
633
616
  className: "inbox-main-container"
634
617
  }, Digit.Utils.browser.isMobile() ? /*#__PURE__*/React.createElement(MobileInbox, {
635
618
  data: {
636
- items: filteredStaticData,
637
- totalCount: filteredStaticData.length
619
+ items: filteredData,
620
+ totalCount: totalRecords
638
621
  },
639
- isLoading: false,
622
+ isLoading: isLoading || isFetching,
640
623
  onSearch: handleSearch,
641
624
  searchFields: searchFields,
642
625
  searchParams: searchParams,
643
626
  parentRoute: parentRoute,
644
- countData: staticCountData
627
+ countData: countData
645
628
  }) : /*#__PURE__*/React.createElement(DesktopInbox, {
646
629
  businessService: _businessService,
647
630
  data: {
648
- items: filteredStaticData,
649
- totalCount: filteredStaticData.length
631
+ items: filteredData,
632
+ totalCount: totalRecords
650
633
  },
651
- isLoading: false,
634
+ isLoading: isLoading || isFetching,
652
635
  searchFields: searchFields,
653
636
  onSearch: handleSearch,
654
637
  onSort: handleSort,
@@ -660,8 +643,8 @@ const Inbox = ({
660
643
  parentRoute: parentRoute,
661
644
  searchParams: searchParams,
662
645
  sortParams: sortParams,
663
- totalRecords: filteredStaticData.length,
664
- countData: staticCountData,
646
+ totalRecords: totalRecords,
647
+ countData: countData,
665
648
  filterComponent: "EKYC_INBOX_FILTER"
666
649
  })));
667
650
  };
@@ -724,27 +707,27 @@ const ConnectionDetailsView = ({
724
707
  style: {
725
708
  marginTop: "24px"
726
709
  }
727
- }, t("EKYC_CONNECTION_DETAILS")), connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.connectionDetailsInfo ? /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
710
+ }, t("EKYC_CONNECTION_DETAILS")), connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.connectionDetails ? /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
728
711
  label: t("EKYC_CONSUMER_NAME"),
729
- text: connectionDetails.connectionDetailsInfo.consumerName || t("CS_NA")
712
+ text: connectionDetails.connectionDetails.consumerName || t("CS_NA")
730
713
  }), /*#__PURE__*/React.createElement(Row, {
731
714
  label: t("EKYC_ADDRESS"),
732
- text: connectionDetails.connectionDetailsInfo.address || t("CS_NA")
715
+ text: connectionDetails.connectionDetails.address || t("CS_NA")
733
716
  }), /*#__PURE__*/React.createElement(Row, {
734
717
  label: t("EKYC_CONNECTION_TYPE"),
735
- text: connectionDetails.connectionDetailsInfo.connectionType || t("CS_NA")
718
+ text: connectionDetails.connectionDetails.connectionType || t("CS_NA")
736
719
  }), /*#__PURE__*/React.createElement(Row, {
737
720
  label: t("EKYC_METER_NO"),
738
- text: connectionDetails.connectionDetailsInfo.meterNumber || t("CS_NA")
721
+ text: connectionDetails.connectionDetails.meterNumber || t("CS_NA")
739
722
  }), /*#__PURE__*/React.createElement(Row, {
740
723
  label: t("EKYC_PHONE_NO"),
741
- text: connectionDetails.connectionDetailsInfo.phoneNumber || t("CS_NA")
724
+ text: connectionDetails.connectionDetails.phoneNumber || t("CS_NA")
742
725
  }), /*#__PURE__*/React.createElement(Row, {
743
726
  label: t("EKYC_EMAIL"),
744
- text: connectionDetails.connectionDetailsInfo.email || t("CS_NA")
727
+ text: connectionDetails.connectionDetails.email || t("CS_NA")
745
728
  }), /*#__PURE__*/React.createElement(Row, {
746
729
  label: t("EKYC_STATUS"),
747
- text: connectionDetails.connectionDetailsInfo.statusflag || t("CS_NA")
730
+ text: connectionDetails.connectionDetails.statusflag || t("CS_NA")
748
731
  })) : /*#__PURE__*/React.createElement(CardLabel, null, t("EKYC_NO_CONNECTION_DETAILS_FOUND")), /*#__PURE__*/React.createElement("div", {
749
732
  style: {
750
733
  display: "flex",
@@ -816,34 +799,19 @@ const Create = () => {
816
799
  data: connectionDetails,
817
800
  error,
818
801
  revalidate
819
- } = Digit.Hooks.ekyc.useGetConnection({
802
+ } = Digit.Hooks.ekyc.useSearchConnection({
820
803
  tenantId,
821
804
  details: {
822
- kno: searchParams.kNumber
805
+ kno: searchParams.kNumber,
806
+ name: searchParams.kName
823
807
  }
824
808
  }, {
825
- enabled: searchPerformed && !!searchParams.kNumber
826
- });
827
- const {
828
- mutate: validateUser,
829
- isLoading: isValidating
830
- } = Digit.Hooks.ekyc.useValidateUser(tenantId, {
831
- onSuccess: data => {
832
- var _data$responseInfo;
833
- if ((data === null || data === void 0 ? void 0 : (_data$responseInfo = data.responseInfo) === null || _data$responseInfo === void 0 ? void 0 : _data$responseInfo.status) === "successful") ; else {
834
- setShowToast({
835
- error: true,
836
- label: (data === null || data === void 0 ? void 0 : data.message) || t("EKYC_VALIDATION_FAILED")
837
- });
838
- setSearchPerformed(false);
839
- sessionStorage.removeItem("EKYC_CREATE_SEARCH_PERFORMED");
840
- }
841
- },
809
+ enabled: searchPerformed && !!searchParams.kNumber && !!searchParams.kName,
842
810
  onError: error => {
843
811
  var _error$response, _error$response$data, _error$response$data$, _error$response$data$2;
844
812
  setShowToast({
845
813
  error: true,
846
- label: (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : (_error$response$data$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : (_error$response$data$2 = _error$response$data$[0]) === null || _error$response$data$2 === void 0 ? void 0 : _error$response$data$2.message) || t("EKYC_VALIDATION_ERROR_PLEASE_ENTER_THE_CORRECT_CREDENTIALS")
814
+ label: (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : (_error$response$data$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : (_error$response$data$2 = _error$response$data$[0]) === null || _error$response$data$2 === void 0 ? void 0 : _error$response$data$2.message) || t("EKYC_SEARCH_ERROR_PLEASE_ENTER_THE_CORRECT_CREDENTIALS")
847
815
  });
848
816
  setSearchPerformed(false);
849
817
  sessionStorage.removeItem("EKYC_CREATE_SEARCH_PERFORMED");
@@ -871,10 +839,6 @@ const Create = () => {
871
839
  setSearchPerformed(true);
872
840
  sessionStorage.setItem("EKYC_CREATE_SEARCH_PARAMS", JSON.stringify(params));
873
841
  sessionStorage.setItem("EKYC_CREATE_SEARCH_PERFORMED", "true");
874
- validateUser({
875
- kno: params.kNumber,
876
- name: params.kName
877
- });
878
842
  };
879
843
  const closeToast = () => {
880
844
  setShowToast(null);
@@ -886,7 +850,7 @@ const Create = () => {
886
850
  kNumber: searchParams.kNumber,
887
851
  kName: searchParams.kName,
888
852
  connectionDetails: connectionDetails,
889
- isLoading: isSearching || isValidating
853
+ isLoading: isSearching
890
854
  }), !searchPerformed && !isSearching && /*#__PURE__*/React.createElement(Card, {
891
855
  style: {
892
856
  textAlign: "center",
@@ -904,11 +868,140 @@ const Create = () => {
904
868
  }));
905
869
  };
906
870
 
871
+ const CameraIcon = ({
872
+ size: _size3 = 28
873
+ }) => /*#__PURE__*/React.createElement("svg", {
874
+ width: _size3,
875
+ height: _size3,
876
+ viewBox: "0 0 24 24",
877
+ fill: "none"
878
+ }, /*#__PURE__*/React.createElement("path", {
879
+ d: "M9 2L7.17 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4H16.83L15 2H9ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",
880
+ fill: "#185FA5"
881
+ }));
882
+ const TargetIcon = ({
883
+ size: _size4 = 20
884
+ }) => /*#__PURE__*/React.createElement("svg", {
885
+ width: _size4,
886
+ height: _size4,
887
+ viewBox: "0 0 24 24",
888
+ fill: "none"
889
+ }, /*#__PURE__*/React.createElement("path", {
890
+ d: "M12 8C9.79 8 8 9.79 8 12C8 14.21 9.79 16 12 16C14.21 16 16 14.21 16 12C16 9.79 14.21 8 12 8ZM20.94 11C20.48 6.83 17.17 3.52 13 3.06V1H11V3.06C6.83 3.52 3.52 6.83 3.06 11H1V13H3.06C3.52 17.17 6.83 20.48 11 20.94V23H13V20.94C17.17 20.48 20.48 17.17 20.94 13H23V11H20.94ZM12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12C19 15.87 15.87 19 12 19Z",
891
+ fill: "#185FA5"
892
+ }));
893
+ const PincodeIcon = ({
894
+ size: _size5 = 18
895
+ }) => /*#__PURE__*/React.createElement("svg", {
896
+ width: _size5,
897
+ height: _size5,
898
+ viewBox: "0 0 24 24",
899
+ fill: "none"
900
+ }, /*#__PURE__*/React.createElement("path", {
901
+ d: "M13 13V11H15V13H13ZM13 9V7H15V9H13ZM17 13V11H19V13H17ZM17 9V7H19V9H17ZM11 13V11H9V13H11ZM11 9V7H9V9H11ZM7 13V11H5V13H7ZM7 9V7H5V9H7ZM21 3H3C1.9 3 1 3.9 1 5V19C1 20.1 1.9 21 3 21H21C22.1 21 23 20.1 23 19V5C23 3.9 22.1 3 21 3ZM21 19H3V5H21V19Z",
902
+ fill: "currentColor"
903
+ }));
904
+ const TrashIcon = ({
905
+ size: _size6 = 16
906
+ }) => /*#__PURE__*/React.createElement("svg", {
907
+ width: _size6,
908
+ height: _size6,
909
+ viewBox: "0 0 24 24",
910
+ fill: "none",
911
+ stroke: "#D92D20",
912
+ strokeWidth: "2",
913
+ strokeLinecap: "round"
914
+ }, /*#__PURE__*/React.createElement("polyline", {
915
+ points: "3 6 5 6 21 6"
916
+ }), /*#__PURE__*/React.createElement("path", {
917
+ d: "M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"
918
+ }), /*#__PURE__*/React.createElement("path", {
919
+ d: "M10 11v6M14 11v6"
920
+ }), /*#__PURE__*/React.createElement("path", {
921
+ d: "M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"
922
+ }));
923
+ const CheckIcon = ({
924
+ size: _size7 = 11,
925
+ color: _color = "#fff"
926
+ }) => /*#__PURE__*/React.createElement("svg", {
927
+ width: _size7,
928
+ height: _size7,
929
+ viewBox: "0 0 24 24",
930
+ fill: "none",
931
+ stroke: _color,
932
+ strokeWidth: "3",
933
+ strokeLinecap: "round"
934
+ }, /*#__PURE__*/React.createElement("polyline", {
935
+ points: "20 6 9 17 4 12"
936
+ }));
937
+ const IconInput = ({
938
+ icon,
939
+ topAligned: _topAligned = false,
940
+ inputStyle: _inputStyle = {},
941
+ ...props
942
+ }) => /*#__PURE__*/React.createElement("div", {
943
+ style: {
944
+ position: "relative",
945
+ width: "100%"
946
+ }
947
+ }, /*#__PURE__*/React.createElement("div", {
948
+ style: {
949
+ position: "absolute",
950
+ left: "10px",
951
+ ...(_topAligned ? {
952
+ top: "14px"
953
+ } : {
954
+ top: "50%",
955
+ transform: "translateY(-50%)"
956
+ }),
957
+ zIndex: 1,
958
+ opacity: 0.45,
959
+ display: "flex",
960
+ pointerEvents: "none"
961
+ }
962
+ }, icon), /*#__PURE__*/React.createElement(TextInput, Object.assign({
963
+ textInputStyle: {
964
+ paddingLeft: "36px",
965
+ paddingRight: "12px",
966
+ ..._inputStyle
967
+ }
968
+ }, props)));
969
+ const SectionHead = ({
970
+ icon,
971
+ label
972
+ }) => /*#__PURE__*/React.createElement("div", {
973
+ style: {
974
+ display: "flex",
975
+ alignItems: "center",
976
+ gap: "8px",
977
+ marginBottom: "16px",
978
+ marginTop: "4px"
979
+ }
980
+ }, /*#__PURE__*/React.createElement("div", {
981
+ style: {
982
+ opacity: 0.5,
983
+ display: "flex"
984
+ }
985
+ }, icon), /*#__PURE__*/React.createElement("span", {
986
+ style: {
987
+ fontSize: "15px",
988
+ fontWeight: "600",
989
+ color: "#0B0C0C",
990
+ whiteSpace: "nowrap"
991
+ }
992
+ }, label), /*#__PURE__*/React.createElement("div", {
993
+ style: {
994
+ flex: 1,
995
+ height: "1px",
996
+ background: "#EAECF0"
997
+ }
998
+ }));
907
999
  const AddressDetails = ({
908
1000
  isSection: _isSection = false,
909
1001
  onComplete,
910
1002
  parentState
911
1003
  }) => {
1004
+ var _flowState$connection, _mdmsRes$egovLocatio, _mdmsRes$egovLocatio$, _mdmsRes$egovLocatio2, _mdmsRes$egovLocatio3;
912
1005
  const {
913
1006
  t
914
1007
  } = useTranslation();
@@ -922,6 +1015,7 @@ const AddressDetails = ({
922
1015
  },
923
1016
  connectionDetails: null
924
1017
  };
1018
+ const addrDetails = ((_flowState$connection = flowState.connectionDetails) === null || _flowState$connection === void 0 ? void 0 : _flowState$connection.addressDetails) || {};
925
1019
  const [addressType, setAddressType] = useState({
926
1020
  code: "AADHAAR",
927
1021
  name: "EKYC_AADHAAR_ADDRESS"
@@ -930,14 +1024,80 @@ const AddressDetails = ({
930
1024
  code: "NO",
931
1025
  name: "CORE_COMMON_NO"
932
1026
  });
933
- const [fullAddress, setFullAddress] = useState("");
934
- const [flatNo, setFlatNo] = useState("");
935
- const [building, setBuilding] = useState("");
936
- const [landmark, setLandmark] = useState("");
937
- const [pincode, setPincode] = useState("");
1027
+ const [fullAddress, setFullAddress] = useState(addrDetails.fullAddress || "");
1028
+ const [flatNo, setFlatNo] = useState(addrDetails.flatHouseNumber || "");
1029
+ const [building, setBuilding] = useState(addrDetails.buildingTower || "");
1030
+ const [landmark, setLandmark] = useState(addrDetails.landmark || "");
1031
+ const [pincode, setPincode] = useState(addrDetails.pinCode || "");
938
1032
  const [doorPhoto, setDoorPhoto] = useState(null);
939
1033
  const [isLocationFetching, setIsLocationFetching] = useState(false);
940
1034
  const fileInputRef = useRef(null);
1035
+ const tenantId = Digit.ULBService.getCurrentTenantId();
1036
+ const {
1037
+ data: mdmsData,
1038
+ isLoading: isMdmsLoading
1039
+ } = Digit.Hooks.useCommonMDMS(tenantId, "egov-location", ["TenantBoundary"]);
1040
+ const mdmsRes = (mdmsData === null || mdmsData === void 0 ? void 0 : mdmsData.MdmsRes) || mdmsData;
1041
+ const adminHierarchy = (mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$egovLocatio = mdmsRes["egov-location"]) === null || _mdmsRes$egovLocatio === void 0 ? void 0 : (_mdmsRes$egovLocatio$ = _mdmsRes$egovLocatio.TenantBoundary) === null || _mdmsRes$egovLocatio$ === void 0 ? void 0 : _mdmsRes$egovLocatio$.find(h => h.hierarchyType.code === "ADMIN")) || (mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$egovLocatio2 = mdmsRes["egov-location"]) === null || _mdmsRes$egovLocatio2 === void 0 ? void 0 : (_mdmsRes$egovLocatio3 = _mdmsRes$egovLocatio2.TenantBoundary) === null || _mdmsRes$egovLocatio3 === void 0 ? void 0 : _mdmsRes$egovLocatio3[0]);
1042
+ const rootBoundary = adminHierarchy === null || adminHierarchy === void 0 ? void 0 : adminHierarchy.boundary;
1043
+ const getAssemblies = boundaries => {
1044
+ if (!boundaries) return [];
1045
+ let assemblies = [];
1046
+ const targetLabel = "assembly constituency";
1047
+ for (const boundary of boundaries) {
1048
+ var _boundary$children;
1049
+ const label = (boundary.label || boundary.name || "").toLowerCase().replace(/_/g, " ");
1050
+ if (label === targetLabel || label === "assemblyconstituency") {
1051
+ assemblies.push({
1052
+ code: boundary.code,
1053
+ name: boundary.name,
1054
+ children: boundary.children
1055
+ });
1056
+ }
1057
+ if ((_boundary$children = boundary.children) !== null && _boundary$children !== void 0 && _boundary$children.length) {
1058
+ assemblies.push(...getAssemblies(boundary.children));
1059
+ }
1060
+ }
1061
+ return assemblies;
1062
+ };
1063
+ const getBlocks = children => {
1064
+ if (!children) return [];
1065
+ let blocks = [];
1066
+ const targetLabel = "block";
1067
+ for (const child of children) {
1068
+ var _child$children;
1069
+ const label = (child.label || child.name || "").toLowerCase().replace(/_/g, " ");
1070
+ if (label === targetLabel) {
1071
+ blocks.push({
1072
+ code: child.code,
1073
+ name: child.name
1074
+ });
1075
+ }
1076
+ if ((_child$children = child.children) !== null && _child$children !== void 0 && _child$children.length) {
1077
+ blocks.push(...getBlocks(child.children));
1078
+ }
1079
+ }
1080
+ return blocks;
1081
+ };
1082
+ const assemblies = getAssemblies(Array.isArray(rootBoundary) ? rootBoundary : rootBoundary ? [rootBoundary] : []);
1083
+ const [assembly, setAssembly] = useState(addrDetails.assembly ? {
1084
+ name: addrDetails.assembly
1085
+ } : null);
1086
+ const [ward, setWard] = useState(addrDetails.ward ? {
1087
+ name: addrDetails.ward
1088
+ } : null);
1089
+ useEffect(() => {
1090
+ if (mdmsRes && addrDetails.assembly && !(assembly !== null && assembly !== void 0 && assembly.code)) {
1091
+ const foundAssembly = assemblies.find(a => a.name === addrDetails.assembly || a.code === addrDetails.assembly);
1092
+ if (foundAssembly) setAssembly(foundAssembly);
1093
+ }
1094
+ }, [mdmsRes, assemblies]);
1095
+ const blocks = assembly ? getBlocks(assembly.children) : [];
1096
+ useEffect(() => {
1097
+ if (assembly && ward && !blocks.find(b => b.name === ward.name)) {
1098
+ setWard(null);
1099
+ }
1100
+ }, [assembly]);
941
1101
  const addressOptions = [{
942
1102
  code: "AADHAAR",
943
1103
  name: "EKYC_AADHAAR_ADDRESS"
@@ -953,16 +1113,19 @@ const AddressDetails = ({
953
1113
  name: "CORE_COMMON_NO"
954
1114
  }];
955
1115
  const handleCompleteVerification = () => {
1116
+ const payload = {
1117
+ addressType,
1118
+ fullAddress,
1119
+ flatNo,
1120
+ building,
1121
+ landmark,
1122
+ pincode,
1123
+ doorPhoto,
1124
+ assembly: assembly === null || assembly === void 0 ? void 0 : assembly.name,
1125
+ ward: ward === null || ward === void 0 ? void 0 : ward.name
1126
+ };
956
1127
  if (onComplete) {
957
- onComplete({
958
- addressType,
959
- fullAddress,
960
- flatNo,
961
- building,
962
- landmark,
963
- pincode,
964
- doorPhoto
965
- });
1128
+ onComplete(payload);
966
1129
  } else {
967
1130
  const {
968
1131
  kNumber,
@@ -973,30 +1136,16 @@ const AddressDetails = ({
973
1136
  kNumber,
974
1137
  selectedOption,
975
1138
  connectionDetails,
976
- addressDetails: {
977
- addressType,
978
- fullAddress,
979
- flatNo,
980
- building,
981
- landmark,
982
- pincode,
983
- doorPhoto
984
- }
1139
+ addressDetails: payload
985
1140
  });
986
1141
  }
987
1142
  };
988
1143
  const handleCapture = e => {
989
1144
  const file = e.target.files[0];
990
- if (file) {
991
- const reader = new FileReader();
992
- reader.onloadend = () => {
993
- setDoorPhoto(reader.result);
994
- };
995
- reader.readAsDataURL(file);
996
- }
997
- };
998
- const openGallery = () => {
999
- fileInputRef.current.click();
1145
+ if (!file) return;
1146
+ const reader = new FileReader();
1147
+ reader.onloadend = () => setDoorPhoto(reader.result);
1148
+ reader.readAsDataURL(file);
1000
1149
  };
1001
1150
  const removePhoto = () => {
1002
1151
  setDoorPhoto(null);
@@ -1008,105 +1157,55 @@ const AddressDetails = ({
1008
1157
  return;
1009
1158
  }
1010
1159
  setIsLocationFetching(true);
1011
- navigator.geolocation.getCurrentPosition(async position => {
1012
- const {
1160
+ navigator.geolocation.getCurrentPosition(async ({
1161
+ coords: {
1013
1162
  latitude,
1014
1163
  longitude
1015
- } = position.coords;
1164
+ }
1165
+ }) => {
1016
1166
  try {
1017
- const response = await fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${latitude}&lon=${longitude}&zoom=18&addressdetails=1`);
1018
- if (!response.ok) throw new Error("Failed to fetch address");
1019
- const data = await response.json();
1020
- if (data && data.address) {
1021
- var _data$address, _data$address2, _data$address3, _data$address4, _data$address5, _data$address6, _data$address7, _data$address8, _data$address9, _data$address0, _data$address1;
1022
- const addr = [(_data$address = data.address) === null || _data$address === void 0 ? void 0 : _data$address.amenity, (_data$address2 = data.address) === null || _data$address2 === void 0 ? void 0 : _data$address2.road, (_data$address3 = data.address) === null || _data$address3 === void 0 ? void 0 : _data$address3.neighbourhood, (_data$address4 = data.address) === null || _data$address4 === void 0 ? void 0 : _data$address4.suburb, (_data$address5 = data.address) === null || _data$address5 === void 0 ? void 0 : _data$address5.city, (_data$address6 = data.address) === null || _data$address6 === void 0 ? void 0 : _data$address6.state, (_data$address7 = data.address) === null || _data$address7 === void 0 ? void 0 : _data$address7.postcode].filter(Boolean).join(", ");
1023
- setFullAddress(addr || "");
1024
- setPincode(((_data$address8 = data.address) === null || _data$address8 === void 0 ? void 0 : _data$address8.postcode) || "");
1025
- setLandmark(((_data$address9 = data.address) === null || _data$address9 === void 0 ? void 0 : _data$address9.suburb) || ((_data$address0 = data.address) === null || _data$address0 === void 0 ? void 0 : _data$address0.neighbourhood) || "");
1026
- setFlatNo(((_data$address1 = data.address) === null || _data$address1 === void 0 ? void 0 : _data$address1.amenity) || "");
1167
+ const res = await fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${latitude}&lon=${longitude}&zoom=18&addressdetails=1`);
1168
+ if (!res.ok) throw new Error("Geocode failed");
1169
+ const data = await res.json();
1170
+ if (data !== null && data !== void 0 && data.address) {
1171
+ const a = data.address;
1172
+ setFullAddress([a.amenity, a.road, a.neighbourhood, a.suburb, a.city, a.state, a.postcode].filter(Boolean).join(", "));
1173
+ setPincode(a.postcode || "");
1174
+ setLandmark(a.suburb || a.neighbourhood || "");
1175
+ setFlatNo(a.amenity || "");
1027
1176
  }
1028
- } catch (error) {
1029
- console.error("Error reverse geocoding:", error);
1177
+ } catch (err) {
1178
+ console.error("Reverse geocode error:", err);
1030
1179
  } finally {
1031
1180
  setIsLocationFetching(false);
1032
1181
  }
1033
- }, error => {
1034
- console.error("Error getting location:", error);
1182
+ }, err => {
1183
+ console.error("Geolocation error:", err);
1035
1184
  setIsLocationFetching(false);
1036
- alert(t("LOCATION_FETCH_FAILED") || "Failed to fetch your current location. Please ensure location permissions are granted.");
1185
+ alert(t("LOCATION_FETCH_FAILED") || "Failed to fetch location. Please grant location permissions.");
1037
1186
  }, {
1038
1187
  enableHighAccuracy: true,
1039
1188
  timeout: 10000,
1040
1189
  maximumAge: 0
1041
1190
  });
1042
1191
  };
1043
- const FlagIcon = () => /*#__PURE__*/React.createElement("svg", {
1044
- width: "24",
1045
- height: "24",
1046
- viewBox: "0 0 24 24",
1047
- fill: "none",
1048
- xmlns: "http://www.w3.org/2000/svg"
1049
- }, /*#__PURE__*/React.createElement("path", {
1050
- d: "M14.4 6L13.6 4H5V21H7V14H12.6L13.4 16H20V6H14.4Z",
1051
- fill: "#2E9E8F"
1052
- }));
1053
- const IdCardIcon = () => /*#__PURE__*/React.createElement("svg", {
1054
- width: "24",
1055
- height: "24",
1056
- viewBox: "0 0 24 24",
1057
- fill: "none",
1058
- xmlns: "http://www.w3.org/2000/svg"
1059
- }, /*#__PURE__*/React.createElement("path", {
1060
- d: "M2 7V17C2 18.1 2.9 19 4 19H20C21.1 19 22 18.1 22 17V7C22 5.9 21.1 5 20 5H4C2.9 5 2 5.9 2 7ZM12 11H14V13H12V11ZM12 7H14V9H12V7ZM16 11H20V13H16V11ZM16 7H20V9H16V7ZM4 7H10V15H4V7ZM20 17H4V16H20V17Z",
1061
- fill: "#3D51B0"
1062
- }));
1063
- const CameraIcon = () => /*#__PURE__*/React.createElement("svg", {
1064
- width: "32",
1065
- height: "32",
1066
- viewBox: "0 0 24 24",
1067
- fill: "none",
1068
- xmlns: "http://www.w3.org/2000/svg"
1069
- }, /*#__PURE__*/React.createElement("path", {
1070
- d: "M9 2L7.17 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4H16.83L15 2H9ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",
1071
- fill: "#0068faff"
1072
- }));
1073
- const TargetIcon = () => /*#__PURE__*/React.createElement("svg", {
1074
- width: "24",
1075
- height: "24",
1076
- viewBox: "0 0 24 24",
1077
- fill: "none",
1078
- xmlns: "http://www.w3.org/2000/svg"
1079
- }, /*#__PURE__*/React.createElement("path", {
1080
- d: "M12 8C9.79 8 8 9.79 8 12C8 14.21 9.79 16 12 16C14.21 16 16 14.21 16 12C16 9.79 14.21 8 12 8ZM20.94 11C20.48 6.83 17.17 3.52 13 3.06V1H11V3.06C6.83 3.52 3.52 6.83 3.06 11H1V13H3.06C3.52 17.17 6.83 20.48 11 20.94V23H13V20.94C17.17 20.48 20.48 17.17 20.94 13H23V11H20.94ZM12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12C19 15.87 15.87 19 12 19Z",
1081
- fill: "#0068faff"
1082
- }));
1083
- const PincodeIcon = () => /*#__PURE__*/React.createElement("svg", {
1084
- width: "24",
1085
- height: "24",
1086
- viewBox: "0 0 24 24",
1087
- fill: "none",
1088
- xmlns: "http://www.w3.org/2000/svg"
1089
- }, /*#__PURE__*/React.createElement("path", {
1090
- d: "M13 13V11H15V13H13ZM13 9V7H15V9H13ZM17 13V11H19V13H17ZM17 9V7H19V9H17ZM11 13V11H9V13H11ZM11 9V7H9V9H11ZM7 13V11H5V13H7ZM7 9V7H5V9H7ZM21 3H3C1.9 3 1 3.9 1 5V19C1 20.1 1.9 21 3 21H21C22.1 21 23 20.1 23 19V5C23 3.9 22.1 3 21 3ZM21 19H3V5H21V19Z",
1091
- fill: "#0068faff"
1092
- }));
1093
1192
  const renderContent = () => /*#__PURE__*/React.createElement("div", {
1094
1193
  style: {
1095
1194
  animation: "fadeSlideIn 0.3s ease"
1096
1195
  }
1097
- }, _isSection && /*#__PURE__*/React.createElement("hr", {
1098
- style: {
1099
- margin: "40px 0",
1100
- border: "0",
1101
- borderTop: "2px solid #EAECF0"
1102
- }
1103
- }), /*#__PURE__*/React.createElement(Header, {
1104
- style: {
1105
- marginBottom: "24px"
1106
- }
1107
- }, t("EKYC_ADDRESS_DETAILS_HEADER") || "Address Details"), /*#__PURE__*/React.createElement("div", {
1196
+ }, /*#__PURE__*/React.createElement(SectionHead, {
1197
+ icon: /*#__PURE__*/React.createElement(LocationIcon, {
1198
+ className: "icon",
1199
+ styles: {
1200
+ fill: "#0B0C0C",
1201
+ width: "16px",
1202
+ height: "16px"
1203
+ }
1204
+ }),
1205
+ label: t("EKYC_ADDRESS_DETAILS_HEADER") || "Address Details"
1206
+ }), /*#__PURE__*/React.createElement("div", {
1108
1207
  style: {
1109
- marginBottom: "32px"
1208
+ marginBottom: "20px"
1110
1209
  }
1111
1210
  }, /*#__PURE__*/React.createElement(RadioButtons, {
1112
1211
  options: addressOptions,
@@ -1120,56 +1219,61 @@ const AddressDetails = ({
1120
1219
  },
1121
1220
  style: {
1122
1221
  display: "flex",
1123
- gap: "50px",
1124
- justifyContent: "flex-start"
1222
+ gap: "40px"
1125
1223
  }
1126
1224
  })), addressType.code === "AADHAAR" && /*#__PURE__*/React.createElement("div", {
1127
1225
  style: {
1128
- backgroundColor: "#F9FAFB",
1129
- padding: "16px",
1130
- borderRadius: "12px",
1131
- marginBottom: "24px",
1132
- border: "1px solid #EAECF0",
1226
+ backgroundColor: "#E1F5EE",
1227
+ border: "0.5px solid #5DCAA5",
1228
+ borderRadius: "8px",
1229
+ padding: "14px 16px",
1133
1230
  display: "flex",
1134
1231
  alignItems: "flex-start",
1135
1232
  gap: "12px",
1233
+ marginBottom: "20px",
1136
1234
  animation: "fadeSlideIn 0.3s ease"
1137
1235
  }
1138
1236
  }, /*#__PURE__*/React.createElement("div", {
1139
1237
  style: {
1140
- backgroundColor: "#E7F4EE",
1141
- padding: "8px",
1142
- borderRadius: "8px"
1238
+ backgroundColor: "#9FE1CB",
1239
+ padding: "6px",
1240
+ borderRadius: "6px",
1241
+ display: "flex",
1242
+ flexShrink: 0
1143
1243
  }
1144
1244
  }, /*#__PURE__*/React.createElement(LocationIcon, {
1145
1245
  className: "icon",
1146
1246
  styles: {
1147
- fill: "#2E9E8F",
1148
- width: "20px",
1149
- height: "20px"
1247
+ fill: "#085041",
1248
+ width: "16px",
1249
+ height: "16px"
1150
1250
  }
1151
1251
  })), /*#__PURE__*/React.createElement("div", {
1152
1252
  style: {
1153
- fontSize: "16px",
1253
+ fontSize: "14px",
1154
1254
  lineHeight: "1.6",
1155
- color: "#344054",
1255
+ color: "#04342C",
1156
1256
  fontWeight: "500"
1157
1257
  }
1158
- }, "H.No. 123, Sector 15, Rohini", /*#__PURE__*/React.createElement("br", null), "Delhi - 110085")), addressType.code === "OLD" && /*#__PURE__*/React.createElement("div", {
1258
+ }, addrDetails.fullAddress || "H.No. 123, Sector 15, Rohini, Delhi 110085")), addressType.code === "OLD" && /*#__PURE__*/React.createElement("div", {
1159
1259
  style: {
1160
1260
  animation: "fadeSlideIn 0.3s ease"
1161
1261
  }
1162
1262
  }, /*#__PURE__*/React.createElement("div", {
1163
1263
  style: {
1164
- marginBottom: "24px"
1264
+ display: "flex",
1265
+ alignItems: "center",
1266
+ justifyContent: "space-between",
1267
+ marginBottom: "14px"
1165
1268
  }
1166
1269
  }, /*#__PURE__*/React.createElement(CardLabel, {
1167
1270
  style: {
1168
- marginBottom: "12px",
1169
- fontWeight: "600",
1170
- color: "#344054"
1271
+ fontWeight: "500",
1272
+ marginBottom: 0,
1273
+ fontSize: "13px",
1274
+ color: "#505A5F"
1171
1275
  }
1172
- }, t("EKYC_ADDRESS_CORRECTION_PROMPT") || "Do you want to correct the address?"), /*#__PURE__*/React.createElement(RadioButtons, {
1276
+ }, t("EKYC_ADDRESS_CORRECTION_PROMPT") || "Correct the address?"), /*#__PURE__*/React.createElement(RadioButtons, {
1173
1277
  options: yesNoOptions,
1174
1278
  optionsKey: "name",
1175
1279
  selectedOption: correctAddress,
@@ -1177,31 +1281,32 @@ const AddressDetails = ({
1177
1281
  t: t,
1178
1282
  innerStyles: {
1179
1283
  display: "flex",
1180
- alignItems: "center"
1284
+ gap: "20px"
1181
1285
  },
1182
1286
  style: {
1183
- display: "flex",
1184
- gap: "50px",
1185
- justifyContent: "flex-start"
1287
+ marginBottom: 0
1186
1288
  }
1187
1289
  })), /*#__PURE__*/React.createElement("div", {
1290
+ onClick: !isLocationFetching ? handleUseCurrentLocation : undefined,
1188
1291
  style: {
1189
- border: "1px solid #D0D5DD",
1190
- borderRadius: "12px",
1191
- padding: "14px 16px",
1292
+ border: "0.5px solid #D0D5DD",
1293
+ borderRadius: "8px",
1294
+ padding: "12px 16px",
1192
1295
  display: "flex",
1193
1296
  alignItems: "center",
1194
1297
  justifyContent: "space-between",
1195
- marginBottom: "24px",
1298
+ marginBottom: "20px",
1196
1299
  cursor: isLocationFetching ? "not-allowed" : "pointer",
1197
- backgroundColor: isLocationFetching ? "#F2F4F7" : "#FFFFFF",
1198
- transition: "all 0.2s ease",
1199
- opacity: isLocationFetching ? 0.7 : 1,
1200
- boxShadow: "0px 1px 2px rgba(16, 24, 40, 0.05)"
1300
+ backgroundColor: isLocationFetching ? "#F9FAFB" : "#fff",
1301
+ transition: "background 0.15s",
1302
+ opacity: isLocationFetching ? 0.7 : 1
1201
1303
  },
1202
- onClick: !isLocationFetching ? handleUseCurrentLocation : undefined,
1203
- onMouseOver: e => !isLocationFetching ? e.currentTarget.style.backgroundColor = "#F9FAFB" : null,
1204
- onMouseOut: e => !isLocationFetching ? e.currentTarget.style.backgroundColor = "#FFFFFF" : null
1304
+ onMouseOver: e => {
1305
+ if (!isLocationFetching) e.currentTarget.style.background = "#F9FAFB";
1306
+ },
1307
+ onMouseOut: e => {
1308
+ if (!isLocationFetching) e.currentTarget.style.background = "#fff";
1309
+ }
1205
1310
  }, /*#__PURE__*/React.createElement("div", {
1206
1311
  style: {
1207
1312
  display: "flex",
@@ -1210,347 +1315,260 @@ const AddressDetails = ({
1210
1315
  }
1211
1316
  }, /*#__PURE__*/React.createElement("div", {
1212
1317
  style: {
1213
- backgroundColor: "#EEF4FF",
1214
- padding: "8px",
1215
- borderRadius: "8px"
1318
+ backgroundColor: "#E6F1FB",
1319
+ padding: "7px",
1320
+ borderRadius: "7px",
1321
+ display: "flex"
1216
1322
  }
1217
1323
  }, isLocationFetching ? /*#__PURE__*/React.createElement("div", {
1218
- className: "location-loader",
1219
1324
  style: {
1220
- width: "20px",
1221
- height: "20px",
1222
- border: "2px solid #0068faff",
1325
+ width: "18px",
1326
+ height: "18px",
1327
+ border: "2px solid #185FA5",
1223
1328
  borderTopColor: "transparent",
1224
1329
  borderRadius: "50%",
1225
1330
  animation: "spin 1s linear infinite"
1226
1331
  }
1227
- }) : /*#__PURE__*/React.createElement(TargetIcon, null)), /*#__PURE__*/React.createElement("span", {
1332
+ }) : /*#__PURE__*/React.createElement(TargetIcon, {
1333
+ size: 18
1334
+ })), /*#__PURE__*/React.createElement("span", {
1228
1335
  style: {
1229
- fontWeight: "600",
1336
+ fontWeight: "500",
1337
+ fontSize: "14px",
1230
1338
  color: "#344054"
1231
1339
  }
1232
- }, isLocationFetching ? t("EKYC_FETCHING_LOCATION") || "Fetching Location..." : t("EKYC_USE_CURRENT_LOCATION") || "Use Current Location")), !isLocationFetching && /*#__PURE__*/React.createElement("span", {
1340
+ }, isLocationFetching ? t("EKYC_FETCHING_LOCATION") || "Fetching location..." : t("EKYC_USE_CURRENT_LOCATION") || "Use current location")), !isLocationFetching && /*#__PURE__*/React.createElement("span", {
1233
1341
  style: {
1234
- fontSize: "20px",
1235
- color: "#98A2B3"
1236
- }
1237
- }, "\u203A")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
1238
- style: {
1239
- fontWeight: "600"
1342
+ fontSize: "18px",
1343
+ color: "#98A2B3",
1344
+ lineHeight: 1
1240
1345
  }
1241
- }, t("EKYC_FULL_ADDRESS") || "Full Address"), /*#__PURE__*/React.createElement("div", {
1242
- className: "field",
1346
+ }, "\u203A")), /*#__PURE__*/React.createElement("div", {
1243
1347
  style: {
1244
- position: "relative"
1348
+ marginBottom: "14px"
1245
1349
  }
1246
1350
  }, /*#__PURE__*/React.createElement("div", {
1247
1351
  style: {
1248
- position: "absolute",
1249
- left: "12px",
1250
- top: "16px",
1251
- zIndex: 1,
1252
- opacity: 0.6
1253
- }
1254
- }, /*#__PURE__*/React.createElement(PropertyHouse, {
1255
- styles: {
1256
- fill: "#0068faff",
1257
- width: "20px",
1258
- height: "20px"
1259
- }
1260
- })), /*#__PURE__*/React.createElement(TextInput, {
1352
+ fontSize: "11px",
1353
+ fontWeight: "600",
1354
+ color: "#667085",
1355
+ textTransform: "uppercase",
1356
+ letterSpacing: "0.04em",
1357
+ marginBottom: "6px"
1358
+ }
1359
+ }, t("EKYC_FULL_ADDRESS") || "Full address"), /*#__PURE__*/React.createElement(IconInput, {
1360
+ icon: /*#__PURE__*/React.createElement(PropertyHouse, {
1361
+ styles: {
1362
+ fill: "#0068fa",
1363
+ width: "15px",
1364
+ height: "15px"
1365
+ }
1366
+ }),
1367
+ topAligned: true,
1261
1368
  value: fullAddress,
1262
1369
  onChange: e => setFullAddress(e.target.value),
1263
- placeholder: t("EKYC_ENTER_FULL_ADDRESS") || "Enter Full Address",
1264
- textInputStyle: {
1265
- paddingLeft: "40px",
1266
- minHeight: "80px"
1370
+ placeholder: t("EKYC_ENTER_FULL_ADDRESS") || "Enter full address",
1371
+ inputStyle: {
1372
+ minHeight: "72px"
1267
1373
  }
1268
- }))), /*#__PURE__*/React.createElement("div", {
1374
+ })), /*#__PURE__*/React.createElement("div", {
1269
1375
  style: {
1270
1376
  display: "grid",
1271
1377
  gridTemplateColumns: "1fr 1fr",
1272
- gap: "24px"
1273
- }
1274
- }, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
1275
- style: {
1276
- fontWeight: "600"
1277
- }
1278
- }, t("EKYC_FLAT_HOUSE_NUMBER") || "Flat/House Number"), /*#__PURE__*/React.createElement("div", {
1279
- className: "field",
1280
- style: {
1281
- position: "relative"
1378
+ gap: "14px",
1379
+ marginBottom: "14px"
1282
1380
  }
1283
- }, /*#__PURE__*/React.createElement("div", {
1381
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1284
1382
  style: {
1285
- position: "absolute",
1286
- left: "12px",
1287
- top: "50%",
1288
- transform: "translateY(-50%)",
1289
- zIndex: 1,
1290
- opacity: 0.6
1291
- }
1292
- }, /*#__PURE__*/React.createElement(PropertyHouse, {
1293
- styles: {
1294
- fill: "#0068faff",
1295
- width: "20px",
1296
- height: "20px"
1297
- }
1298
- })), /*#__PURE__*/React.createElement(TextInput, {
1383
+ fontSize: "11px",
1384
+ fontWeight: "600",
1385
+ color: "#667085",
1386
+ textTransform: "uppercase",
1387
+ letterSpacing: "0.04em",
1388
+ marginBottom: "6px"
1389
+ }
1390
+ }, t("EKYC_FLAT_HOUSE_NUMBER") || "Flat / House no."), /*#__PURE__*/React.createElement(IconInput, {
1391
+ icon: /*#__PURE__*/React.createElement(PropertyHouse, {
1392
+ styles: {
1393
+ fill: "#0068fa",
1394
+ width: "15px",
1395
+ height: "15px"
1396
+ }
1397
+ }),
1299
1398
  value: flatNo,
1300
1399
  onChange: e => setFlatNo(e.target.value),
1301
- placeholder: t("EKYC_ENTER_FLAT_NO") || "e.g. 45-B",
1302
- textInputStyle: {
1303
- paddingLeft: "40px"
1304
- }
1305
- }))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
1306
- style: {
1307
- fontWeight: "600"
1308
- }
1309
- }, t("EKYC_BUILDING_TOWER") || "Building/Tower"), /*#__PURE__*/React.createElement("div", {
1310
- className: "field",
1311
- style: {
1312
- position: "relative"
1313
- }
1314
- }, /*#__PURE__*/React.createElement("div", {
1400
+ placeholder: t("EKYC_ENTER_FLAT_NO") || "e.g. 45-B"
1401
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1315
1402
  style: {
1316
- position: "absolute",
1317
- left: "12px",
1318
- top: "50%",
1319
- transform: "translateY(-50%)",
1320
- zIndex: 1,
1321
- opacity: 0.6
1322
- }
1323
- }, /*#__PURE__*/React.createElement(PropertyHouse, {
1324
- styles: {
1325
- fill: "#0068faff",
1326
- width: "20px",
1327
- height: "20px"
1328
- }
1329
- })), /*#__PURE__*/React.createElement(TextInput, {
1403
+ fontSize: "11px",
1404
+ fontWeight: "600",
1405
+ color: "#667085",
1406
+ textTransform: "uppercase",
1407
+ letterSpacing: "0.04em",
1408
+ marginBottom: "6px"
1409
+ }
1410
+ }, t("EKYC_BUILDING_TOWER") || "Building / Tower"), /*#__PURE__*/React.createElement(IconInput, {
1411
+ icon: /*#__PURE__*/React.createElement(PropertyHouse, {
1412
+ styles: {
1413
+ fill: "#0068fa",
1414
+ width: "15px",
1415
+ height: "15px"
1416
+ }
1417
+ }),
1330
1418
  value: building,
1331
1419
  onChange: e => setBuilding(e.target.value),
1332
- placeholder: t("EKYC_ENTER_BUILDING") || "e.g. Tower 4",
1333
- textInputStyle: {
1334
- paddingLeft: "40px"
1335
- }
1336
- })))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
1337
- style: {
1338
- fontWeight: "600"
1339
- }
1340
- }, t("EKYC_LANDMARK") || "Landmark"), /*#__PURE__*/React.createElement("div", {
1341
- className: "field",
1420
+ placeholder: t("EKYC_ENTER_BUILDING") || "e.g. Tower 4"
1421
+ }))), /*#__PURE__*/React.createElement("div", {
1342
1422
  style: {
1343
- position: "relative"
1423
+ display: "grid",
1424
+ gridTemplateColumns: "1fr 1fr",
1425
+ gap: "14px",
1426
+ marginBottom: "4px"
1344
1427
  }
1345
- }, /*#__PURE__*/React.createElement("div", {
1428
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1346
1429
  style: {
1347
- position: "absolute",
1348
- left: "12px",
1349
- top: "50%",
1350
- transform: "translateY(-50%)",
1351
- zIndex: 1,
1352
- opacity: 0.6
1353
- }
1354
- }, /*#__PURE__*/React.createElement(LocationIcon, {
1355
- className: "icon",
1356
- styles: {
1357
- fill: "#0068faff",
1358
- width: "20px",
1359
- height: "20px"
1360
- }
1361
- })), /*#__PURE__*/React.createElement(TextInput, {
1430
+ fontSize: "11px",
1431
+ fontWeight: "600",
1432
+ color: "#667085",
1433
+ textTransform: "uppercase",
1434
+ letterSpacing: "0.04em",
1435
+ marginBottom: "6px"
1436
+ }
1437
+ }, t("EKYC_LANDMARK") || "Landmark"), /*#__PURE__*/React.createElement(IconInput, {
1438
+ icon: /*#__PURE__*/React.createElement(LocationIcon, {
1439
+ className: "icon",
1440
+ styles: {
1441
+ fill: "#0068fa",
1442
+ width: "15px",
1443
+ height: "15px"
1444
+ }
1445
+ }),
1362
1446
  value: landmark,
1363
1447
  onChange: e => setLandmark(e.target.value),
1364
- placeholder: t("EKYC_ENTER_LANDMARK") || "Near Central Park",
1365
- textInputStyle: {
1366
- paddingLeft: "40px"
1367
- }
1368
- }))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
1448
+ placeholder: t("EKYC_ENTER_LANDMARK") || "Near Central Park"
1449
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1369
1450
  style: {
1370
- fontWeight: "600"
1451
+ fontSize: "11px",
1452
+ fontWeight: "600",
1453
+ color: "#667085",
1454
+ textTransform: "uppercase",
1455
+ letterSpacing: "0.04em",
1456
+ marginBottom: "6px"
1371
1457
  }
1372
- }, t("EKYC_PINCODE") || "Pincode"), /*#__PURE__*/React.createElement("div", {
1373
- className: "field",
1374
- style: {
1375
- position: "relative"
1376
- }
1377
- }, /*#__PURE__*/React.createElement("div", {
1378
- style: {
1379
- position: "absolute",
1380
- left: "12px",
1381
- top: "50%",
1382
- transform: "translateY(-50%)",
1383
- zIndex: 1,
1384
- opacity: 0.6
1385
- }
1386
- }, /*#__PURE__*/React.createElement(PincodeIcon, null)), /*#__PURE__*/React.createElement(TextInput, {
1458
+ }, t("EKYC_PINCODE") || "Pincode"), /*#__PURE__*/React.createElement(IconInput, {
1459
+ icon: /*#__PURE__*/React.createElement(PincodeIcon, {
1460
+ size: 15
1461
+ }),
1387
1462
  value: pincode,
1388
- onChange: e => setPincode(e.target.value),
1389
- placeholder: t("EKYC_ENTER_PINCODE") || "6-digit pincode",
1390
- textInputStyle: {
1391
- paddingLeft: "40px"
1463
+ onChange: e => {
1464
+ if (/^\d*$/.test(e.target.value)) setPincode(e.target.value);
1392
1465
  },
1466
+ placeholder: t("EKYC_ENTER_PINCODE") || "6-digit pincode",
1393
1467
  maxLength: 6
1394
1468
  })))), /*#__PURE__*/React.createElement("hr", {
1395
1469
  style: {
1396
- margin: "32px 0",
1397
- border: "0",
1470
+ margin: "24px 0",
1471
+ border: 0,
1398
1472
  borderTop: "1px solid #EAECF0"
1399
1473
  }
1400
- }), /*#__PURE__*/React.createElement("div", {
1401
- style: {
1402
- display: "flex",
1403
- alignItems: "center",
1404
- gap: "10px",
1405
- marginBottom: "20px"
1406
- }
1407
- }, /*#__PURE__*/React.createElement("div", {
1408
- style: {
1409
- backgroundColor: "#EEF4FF",
1410
- padding: "8px",
1411
- borderRadius: "8px"
1412
- }
1413
- }, /*#__PURE__*/React.createElement(PropertyHouse, {
1414
- styles: {
1415
- fill: "#0068faff",
1416
- width: "24px",
1417
- height: "24px"
1418
- }
1419
- })), /*#__PURE__*/React.createElement(CardHeader, {
1420
- style: {
1421
- margin: 0,
1422
- fontSize: "20px"
1423
- }
1424
- }, t("EKYC_ADMINISTRATIVE_DIVISION") || "Administrative Division")), /*#__PURE__*/React.createElement("div", {
1474
+ }), /*#__PURE__*/React.createElement(SectionHead, {
1475
+ icon: /*#__PURE__*/React.createElement(PropertyHouse, {
1476
+ styles: {
1477
+ fill: "#0B0C0C",
1478
+ width: "16px",
1479
+ height: "16px"
1480
+ }
1481
+ }),
1482
+ label: t("EKYC_ADMINISTRATIVE_DIVISION") || "Administrative Division"
1483
+ }), isMdmsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
1425
1484
  style: {
1426
1485
  display: "grid",
1427
1486
  gridTemplateColumns: "1fr 1fr",
1428
- gap: "24px",
1429
- marginBottom: "32px"
1430
- }
1431
- }, /*#__PURE__*/React.createElement("div", {
1432
- style: {
1433
- backgroundColor: "#F9FAFB",
1434
- padding: "16px",
1435
- borderRadius: "12px",
1436
- display: "flex",
1437
- alignItems: "center",
1438
- gap: "16px",
1439
- border: "1px solid #EAECF0"
1440
- }
1441
- }, /*#__PURE__*/React.createElement("div", {
1442
- style: {
1443
- backgroundColor: "#E7F4EE",
1444
- padding: "10px",
1445
- borderRadius: "10px",
1446
- display: "flex"
1487
+ gap: "14px",
1488
+ marginBottom: "24px"
1447
1489
  }
1448
- }, /*#__PURE__*/React.createElement(FlagIcon, null)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1490
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1449
1491
  style: {
1450
- color: "#2E9E8F",
1451
- fontSize: "12px",
1452
- fontWeight: "700",
1492
+ fontSize: "11px",
1493
+ fontWeight: "600",
1494
+ color: "#667085",
1453
1495
  textTransform: "uppercase",
1454
- letterSpacing: "0.5px"
1455
- }
1456
- }, t("EKYC_ASSEMBLY") || "ASSEMBLY"), /*#__PURE__*/React.createElement("div", {
1457
- style: {
1458
- fontSize: "15px",
1459
- fontWeight: "700",
1460
- color: "#101828",
1461
- marginTop: "2px"
1462
- }
1463
- }, "AC-12 Chandni Chowk"))), /*#__PURE__*/React.createElement("div", {
1464
- style: {
1465
- backgroundColor: "#F9FAFB",
1466
- padding: "16px",
1467
- borderRadius: "12px",
1468
- display: "flex",
1469
- alignItems: "center",
1470
- gap: "16px",
1471
- border: "1px solid #EAECF0"
1472
- }
1473
- }, /*#__PURE__*/React.createElement("div", {
1474
- style: {
1475
- backgroundColor: "#EEF4FF",
1476
- padding: "10px",
1477
- borderRadius: "10px",
1478
- display: "flex"
1479
- }
1480
- }, /*#__PURE__*/React.createElement(IdCardIcon, null)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1496
+ letterSpacing: "0.04em",
1497
+ marginBottom: "6px"
1498
+ }
1499
+ }, t("EKYC_ASSEMBLY") || "Assembly Constituency"), /*#__PURE__*/React.createElement(Dropdown, {
1500
+ option: assemblies,
1501
+ optionKey: "name",
1502
+ selected: assembly,
1503
+ select: val => {
1504
+ setAssembly(val);
1505
+ setWard(null);
1506
+ },
1507
+ t: t
1508
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1481
1509
  style: {
1482
- color: "#0068faff",
1483
- fontSize: "12px",
1484
- fontWeight: "700",
1510
+ fontSize: "11px",
1511
+ fontWeight: "600",
1512
+ color: "#667085",
1485
1513
  textTransform: "uppercase",
1486
- letterSpacing: "0.5px"
1487
- }
1488
- }, t("EKYC_WARD") || "WARD"), /*#__PURE__*/React.createElement("div", {
1489
- style: {
1490
- fontSize: "15px",
1491
- fontWeight: "700",
1492
- color: "#101828",
1493
- marginTop: "2px"
1494
- }
1495
- }, "WARD-45 Civil Lines")))), /*#__PURE__*/React.createElement(CardHeader, {
1514
+ letterSpacing: "0.04em",
1515
+ marginBottom: "6px"
1516
+ }
1517
+ }, t("EKYC_WARD") || "Block"), /*#__PURE__*/React.createElement(Dropdown, {
1518
+ option: blocks,
1519
+ optionKey: "name",
1520
+ selected: ward,
1521
+ select: setWard,
1522
+ disabled: !assembly,
1523
+ t: t
1524
+ }))), /*#__PURE__*/React.createElement("hr", {
1496
1525
  style: {
1497
- fontSize: "18px",
1498
- color: "#101828",
1499
- marginBottom: "4px"
1526
+ margin: "24px 0",
1527
+ border: 0,
1528
+ borderTop: "1px solid #EAECF0"
1500
1529
  }
1501
- }, t("EKYC_DOOR_PHOTO_HEADER") || "Door Photo with GPS Stamp"), /*#__PURE__*/React.createElement("div", {
1530
+ }), /*#__PURE__*/React.createElement(SectionHead, {
1531
+ icon: /*#__PURE__*/React.createElement(CameraIcon, {
1532
+ size: 16
1533
+ }),
1534
+ label: t("EKYC_DOOR_PHOTO_HEADER") || "Door photo with GPS stamp"
1535
+ }), /*#__PURE__*/React.createElement("div", {
1502
1536
  style: {
1537
+ fontSize: "12px",
1503
1538
  color: "#667085",
1504
- fontSize: "14px",
1505
- marginBottom: "16px"
1539
+ marginBottom: "12px"
1506
1540
  }
1507
1541
  }, t("EKYC_REQUIRED_FOR_VERIFICATION") || "Required for verification"), /*#__PURE__*/React.createElement("div", {
1508
1542
  style: {
1509
1543
  backgroundColor: "#FFFAEB",
1510
- padding: "14px",
1511
- borderRadius: "12px",
1544
+ border: "0.5px solid #FEDF89",
1545
+ borderRadius: "8px",
1546
+ padding: "12px 14px",
1512
1547
  display: "flex",
1513
- alignItems: "center",
1514
- gap: "12px",
1515
- marginBottom: "20px",
1516
- border: "1px solid #FEDF89"
1548
+ alignItems: "flex-start",
1549
+ gap: "10px",
1550
+ marginBottom: "16px"
1551
+ }
1552
+ }, /*#__PURE__*/React.createElement("div", {
1553
+ style: {
1554
+ flexShrink: 0,
1555
+ marginTop: "1px"
1517
1556
  }
1518
1557
  }, /*#__PURE__*/React.createElement(InfoBannerIcon, {
1519
1558
  fill: "#B54708"
1520
- }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1559
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1521
1560
  style: {
1522
- fontWeight: "700",
1561
+ fontWeight: "600",
1523
1562
  color: "#B54708",
1524
- fontSize: "14px"
1563
+ fontSize: "13px",
1564
+ marginBottom: "2px"
1525
1565
  }
1526
1566
  }, t("EKYC_IMPORTANT") || "Important"), /*#__PURE__*/React.createElement("div", {
1527
1567
  style: {
1528
- fontSize: "13px",
1529
- color: "#B54708",
1530
- marginTop: "2px"
1568
+ fontSize: "12px",
1569
+ color: "#92400E"
1531
1570
  }
1532
- }, t("EKYC_CAPTURE_LIVE_CAMERA") || "Capture with live camera for GPS metadata"))), /*#__PURE__*/React.createElement("div", {
1533
- style: {
1534
- border: "2px dashed #D0D5DD",
1535
- borderRadius: "16px",
1536
- padding: doorPhoto ? "12px" : "40px 24px",
1537
- textAlign: "center",
1538
- cursor: "pointer",
1539
- position: "relative",
1540
- overflow: "hidden",
1541
- minHeight: "180px",
1542
- display: "flex",
1543
- flexDirection: "column",
1544
- alignItems: "center",
1545
- justifyContent: "center",
1546
- backgroundColor: "#F9FAFB",
1547
- transition: "all 0.2s ease",
1548
- boxShadow: "inset 0px 2px 4px rgba(0, 0, 0, 0.02)"
1549
- },
1550
- onClick: !doorPhoto ? openGallery : undefined,
1551
- onMouseOver: e => !doorPhoto ? e.currentTarget.style.borderColor = "#0068faff" : null,
1552
- onMouseOut: e => !doorPhoto ? e.currentTarget.style.borderColor = "#D0D5DD" : null
1553
- }, /*#__PURE__*/React.createElement("input", {
1571
+ }, t("EKYC_CAPTURE_LIVE_CAMERA") || "Capture with live camera for GPS metadata"))), /*#__PURE__*/React.createElement("input", {
1554
1572
  type: "file",
1555
1573
  ref: fileInputRef,
1556
1574
  onChange: handleCapture,
@@ -1558,135 +1576,232 @@ const AddressDetails = ({
1558
1576
  style: {
1559
1577
  display: "none"
1560
1578
  }
1561
- }), !doorPhoto ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
1579
+ }), /*#__PURE__*/React.createElement("div", {
1580
+ onClick: !doorPhoto ? () => fileInputRef.current.click() : undefined,
1581
+ onMouseOver: e => {
1582
+ if (!doorPhoto) e.currentTarget.style.borderColor = "#185FA5";
1583
+ },
1584
+ onMouseOut: e => {
1585
+ if (!doorPhoto) e.currentTarget.style.borderColor = "#D0D5DD";
1586
+ },
1562
1587
  style: {
1563
- backgroundColor: "#FFFFFF",
1564
- width: "64px",
1565
- height: "64px",
1566
- borderRadius: "50%",
1588
+ border: "1.5px dashed #D0D5DD",
1589
+ borderRadius: "10px",
1590
+ minHeight: "160px",
1567
1591
  display: "flex",
1592
+ flexDirection: "column",
1568
1593
  alignItems: "center",
1569
1594
  justifyContent: "center",
1570
- margin: "0 auto 16px",
1571
- boxShadow: "0px 1px 3px rgba(16, 24, 40, 0.1)"
1595
+ backgroundColor: "#F9FAFB",
1596
+ cursor: doorPhoto ? "default" : "pointer",
1597
+ overflow: "hidden",
1598
+ transition: "border-color 0.15s",
1599
+ position: "relative",
1600
+ padding: doorPhoto ? "0" : "32px 24px"
1572
1601
  }
1573
- }, /*#__PURE__*/React.createElement(CameraIcon, null)), /*#__PURE__*/React.createElement("div", {
1602
+ }, !doorPhoto ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
1574
1603
  style: {
1575
- fontWeight: "700",
1576
- fontSize: "16px",
1577
- marginBottom: "4px",
1578
- color: "#101828"
1604
+ width: "52px",
1605
+ height: "52px",
1606
+ borderRadius: "50%",
1607
+ background: "#E6F1FB",
1608
+ display: "flex",
1609
+ alignItems: "center",
1610
+ justifyContent: "center",
1611
+ marginBottom: "12px"
1579
1612
  }
1580
- }, t("EKYC_TAP_TO_CAPTURE") || "Tap to Capture"), /*#__PURE__*/React.createElement("div", {
1613
+ }, /*#__PURE__*/React.createElement(CameraIcon, {
1614
+ size: 26
1615
+ })), /*#__PURE__*/React.createElement("div", {
1581
1616
  style: {
1582
- color: "#667085",
1583
- fontSize: "14px"
1617
+ fontWeight: "600",
1618
+ fontSize: "14px",
1619
+ color: "#101828",
1620
+ marginBottom: "4px"
1584
1621
  }
1585
- }, t("EKYC_CAPTURE_DOOR_IMAGE") || "Capture Door Image")) : /*#__PURE__*/React.createElement("div", {
1622
+ }, t("EKYC_TAP_TO_CAPTURE") || "Tap to capture"), /*#__PURE__*/React.createElement("div", {
1586
1623
  style: {
1587
- position: "relative",
1588
- width: "100%",
1589
- height: "100%",
1590
- display: "flex",
1591
- justifyContent: "center"
1624
+ fontSize: "12px",
1625
+ color: "#667085"
1592
1626
  }
1593
- }, /*#__PURE__*/React.createElement("img", {
1627
+ }, t("EKYC_CAPTURE_DOOR_IMAGE") || "Capture door image")) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("img", {
1594
1628
  src: doorPhoto,
1595
1629
  alt: "Door",
1596
1630
  style: {
1597
1631
  width: "100%",
1598
- maxHeight: "300px",
1632
+ maxHeight: "280px",
1599
1633
  objectFit: "cover",
1600
- borderRadius: "12px",
1601
1634
  display: "block"
1602
1635
  }
1603
- }), /*#__PURE__*/React.createElement("div", {
1604
- style: {
1605
- position: "absolute",
1606
- top: "12px",
1607
- right: "12px"
1608
- }
1609
- }, /*#__PURE__*/React.createElement("button", {
1636
+ }), /*#__PURE__*/React.createElement("button", {
1610
1637
  onClick: e => {
1611
1638
  e.stopPropagation();
1612
1639
  removePhoto();
1613
1640
  },
1614
1641
  style: {
1615
- background: "#FFFFFF",
1616
- border: "1px solid #EAECF0",
1617
- borderRadius: "8px",
1618
- padding: "8px",
1642
+ position: "absolute",
1643
+ top: "10px",
1644
+ right: "10px",
1645
+ background: "#fff",
1646
+ border: "0.5px solid #EAECF0",
1647
+ borderRadius: "7px",
1648
+ padding: "6px 10px",
1619
1649
  display: "flex",
1620
- boxShadow: "0px 1px 2px rgba(16, 24, 40, 0.05)",
1621
- cursor: "pointer"
1622
- }
1623
- }, /*#__PURE__*/React.createElement(RemoveableTag, {
1624
- text: "",
1625
- onClick: () => {},
1626
- extraStyles: {
1627
- tagStyles: {
1628
- margin: 0,
1629
- padding: 0
1630
- }
1650
+ alignItems: "center",
1651
+ gap: "5px",
1652
+ cursor: "pointer",
1653
+ fontSize: "12px",
1654
+ color: "#D92D20",
1655
+ fontWeight: "500"
1656
+ }
1657
+ }, /*#__PURE__*/React.createElement(TrashIcon, {
1658
+ size: 13
1659
+ }), " ", t("EKYC_REMOVE") || "Remove"))), _isSection ? /*#__PURE__*/React.createElement("div", {
1660
+ style: {
1661
+ marginTop: "24px"
1631
1662
  }
1632
- }))))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
1633
- label: _isSection ? t("EKYC_COMPLETE_VERIFICATION_AND_PROCEED") || "Complete & Proceed" : t("EKYC_COMPLETE_VERIFICATION") || "Complete Verification",
1663
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
1664
+ label: t("EKYC_COMPLETE_VERIFICATION_AND_PROCEED") || "Complete & Proceed",
1634
1665
  onSubmit: handleCompleteVerification
1635
- })));
1636
- if (_isSection) return renderContent();
1666
+ })) : /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
1667
+ label: t("EKYC_COMPLETE_VERIFICATION") || "Complete Verification",
1668
+ onSubmit: handleCompleteVerification
1669
+ })), /*#__PURE__*/React.createElement("div", {
1670
+ style: {
1671
+ display: "flex",
1672
+ alignItems: "center",
1673
+ justifyContent: "center",
1674
+ gap: "5px",
1675
+ marginTop: "16px",
1676
+ fontSize: "11px",
1677
+ color: "#98A2B3"
1678
+ }
1679
+ }, /*#__PURE__*/React.createElement("svg", {
1680
+ width: "11",
1681
+ height: "11",
1682
+ viewBox: "0 0 24 24",
1683
+ fill: "none",
1684
+ stroke: "currentColor",
1685
+ strokeWidth: "2",
1686
+ strokeLinecap: "round"
1687
+ }, /*#__PURE__*/React.createElement("rect", {
1688
+ x: "3",
1689
+ y: "11",
1690
+ width: "18",
1691
+ height: "11",
1692
+ rx: "2"
1693
+ }), /*#__PURE__*/React.createElement("path", {
1694
+ d: "M7 11V7a5 5 0 0 1 10 0v4"
1695
+ })), t("EKYC_SECURE_DATA_NOTICE") || "Your data is encrypted and secure"));
1696
+ if (_isSection) {
1697
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("hr", {
1698
+ style: {
1699
+ margin: "32px 0",
1700
+ border: 0,
1701
+ borderTop: "2px solid #EAECF0"
1702
+ }
1703
+ }), renderContent());
1704
+ }
1637
1705
  return /*#__PURE__*/React.createElement("div", {
1638
1706
  className: "inbox-container"
1639
1707
  }, /*#__PURE__*/React.createElement("style", null, `
1640
- @keyframes spin { to { transform: rotate(360deg); } }
1641
- @keyframes fadeSlideIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
1642
- `), /*#__PURE__*/React.createElement("div", {
1708
+ @keyframes spin { to { transform: rotate(360deg); } }
1709
+ @keyframes fadeSlideIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
1710
+ `), /*#__PURE__*/React.createElement("div", {
1643
1711
  className: "filters-container"
1644
1712
  }, /*#__PURE__*/React.createElement(Card, {
1645
- className: "sidebar-title-card",
1646
1713
  style: {
1647
1714
  display: "flex",
1648
1715
  alignItems: "center",
1649
- padding: "16px",
1650
- marginBottom: "16px",
1651
- borderRadius: "4px"
1716
+ padding: "12px 16px",
1717
+ marginBottom: "12px",
1718
+ borderRadius: "8px"
1652
1719
  }
1653
1720
  }, /*#__PURE__*/React.createElement("div", {
1654
- className: "icon-container",
1655
1721
  style: {
1656
- color: "#0068faff",
1657
- marginRight: "12px"
1722
+ color: "#185FA5",
1723
+ marginRight: "10px",
1724
+ display: "flex"
1658
1725
  }
1659
1726
  }, /*#__PURE__*/React.createElement(HomeIcon, {
1660
1727
  style: {
1661
- width: "24px",
1662
- height: "24px"
1728
+ width: "20px",
1729
+ height: "20px"
1663
1730
  }
1664
1731
  })), /*#__PURE__*/React.createElement("div", {
1665
1732
  style: {
1666
- fontWeight: "700",
1667
- fontSize: "18px",
1733
+ fontWeight: "600",
1734
+ fontSize: "15px",
1668
1735
  color: "#0B0C0C"
1669
1736
  }
1670
- }, t("EKYC_PROCESS"))), /*#__PURE__*/React.createElement("div", {
1737
+ }, t("EKYC_PROCESS") || "eKYC Process")), /*#__PURE__*/React.createElement("div", {
1671
1738
  style: {
1672
- backgroundColor: "#FFFFFF",
1673
- padding: "16px",
1739
+ background: "#fff",
1740
+ padding: "16px 14px",
1674
1741
  borderRadius: "8px",
1675
- border: "1px solid #EAECF0",
1676
- boxShadow: "0 2px 4px rgba(0,0,0,0.02)"
1742
+ border: "1px solid #EAECF0"
1677
1743
  }
1678
- }, /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, /*#__PURE__*/React.createElement(CheckPoint, {
1744
+ }, [{
1679
1745
  label: t("EKYC_STEP_AADHAAR") || "Aadhaar",
1680
- isCompleted: true
1681
- }), /*#__PURE__*/React.createElement(CheckPoint, {
1746
+ done: true,
1747
+ active: false
1748
+ }, {
1682
1749
  label: t("EKYC_STEP_ADDRESS") || "Address",
1683
- isCompleted: true
1684
- }), /*#__PURE__*/React.createElement(CheckPoint, {
1750
+ done: false,
1751
+ active: true
1752
+ }, {
1685
1753
  label: t("EKYC_STEP_PROPERTY") || "Property",
1686
- isCompleted: false
1687
- }), /*#__PURE__*/React.createElement(CheckPoint, {
1688
- label: t("EKYC_STEP_REVIEW") || "Review"
1689
- })))), /*#__PURE__*/React.createElement("div", {
1754
+ done: false,
1755
+ active: false
1756
+ }, {
1757
+ label: t("EKYC_STEP_REVIEW") || "Review",
1758
+ done: false,
1759
+ active: false
1760
+ }].map((step, i) => /*#__PURE__*/React.createElement("div", {
1761
+ key: i,
1762
+ style: {
1763
+ display: "flex",
1764
+ gap: "10px",
1765
+ alignItems: "flex-start",
1766
+ position: "relative",
1767
+ paddingBottom: i < 3 ? "18px" : 0
1768
+ }
1769
+ }, i < 3 && /*#__PURE__*/React.createElement("div", {
1770
+ style: {
1771
+ position: "absolute",
1772
+ left: "10px",
1773
+ top: "22px",
1774
+ width: "1px",
1775
+ height: "calc(100% - 10px)",
1776
+ background: "#EAECF0"
1777
+ }
1778
+ }), /*#__PURE__*/React.createElement("div", {
1779
+ style: {
1780
+ width: "20px",
1781
+ height: "20px",
1782
+ borderRadius: "50%",
1783
+ flexShrink: 0,
1784
+ marginTop: "1px",
1785
+ border: step.done ? "none" : step.active ? "1.5px solid #185FA5" : "1.5px solid #D0D5DD",
1786
+ background: step.done ? "#0F6E56" : step.active ? "#E6F1FB" : "#fff",
1787
+ display: "flex",
1788
+ alignItems: "center",
1789
+ justifyContent: "center",
1790
+ fontSize: "10px",
1791
+ fontWeight: "500",
1792
+ color: step.done ? "#fff" : step.active ? "#185FA5" : "#98A2B3"
1793
+ }
1794
+ }, step.done ? /*#__PURE__*/React.createElement(CheckIcon, {
1795
+ size: 11,
1796
+ color: "#fff"
1797
+ }) : i + 1), /*#__PURE__*/React.createElement("div", {
1798
+ style: {
1799
+ fontSize: "12px",
1800
+ paddingTop: "2px",
1801
+ color: step.done ? "#0F6E56" : step.active ? "#0B0C0C" : "#667085",
1802
+ fontWeight: step.done || step.active ? "600" : "400"
1803
+ }
1804
+ }, step.label))))), /*#__PURE__*/React.createElement("div", {
1690
1805
  style: {
1691
1806
  flex: 1,
1692
1807
  marginLeft: "16px"
@@ -1696,69 +1811,80 @@ const AddressDetails = ({
1696
1811
  display: "flex",
1697
1812
  justifyContent: "space-between",
1698
1813
  alignItems: "center",
1699
- marginBottom: "24px"
1814
+ marginBottom: "20px"
1700
1815
  }
1701
- }, /*#__PURE__*/React.createElement(Header, null, t("EKYC_ADDRESS_DETAILS_HEADER") || "Address Details"), /*#__PURE__*/React.createElement("div", {
1816
+ }, /*#__PURE__*/React.createElement(CardHeader, {
1702
1817
  style: {
1703
- fontSize: "14px",
1704
- fontWeight: "700",
1705
- color: "#505A5F"
1818
+ margin: 0,
1819
+ fontSize: "18px"
1706
1820
  }
1707
- }, t("EKYC_K_NUMBER"), ": ", /*#__PURE__*/React.createElement("span", {
1821
+ }, t("EKYC_ADDRESS_DETAILS_HEADER") || "Address Details"), /*#__PURE__*/React.createElement("div", {
1708
1822
  style: {
1709
- color: "#0B0C0C"
1823
+ background: "#F9FAFB",
1824
+ border: "0.5px solid #EAECF0",
1825
+ borderRadius: "20px",
1826
+ padding: "4px 14px",
1827
+ fontSize: "12px",
1828
+ color: "#667085"
1829
+ }
1830
+ }, t("EKYC_K_NUMBER") || "K Number", ":", " ", /*#__PURE__*/React.createElement("span", {
1831
+ style: {
1832
+ color: "#0B0C0C",
1833
+ fontWeight: "600"
1710
1834
  }
1711
1835
  }, flowState === null || flowState === void 0 ? void 0 : flowState.kNumber))), renderContent())));
1712
1836
  };
1713
1837
 
1714
- const FingerprintIcon = ({
1715
- size: _size = 22,
1716
- color: _color = "#6366f1"
1838
+ const LockIcon = ({
1839
+ size: _size = 16
1717
1840
  }) => /*#__PURE__*/React.createElement("svg", {
1718
1841
  width: _size,
1719
1842
  height: _size,
1720
1843
  viewBox: "0 0 24 24",
1721
- fill: "none"
1722
- }, /*#__PURE__*/React.createElement("path", {
1723
- d: "M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.67-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.96.46 5.57 1.41.24.13.33.43.2.67-.09.13-.24.39-.39.39zM12 21c-.28 0-.5-.22-.5-.5v-4.42c-2.33-.21-4.44-1.35-5.94-3.21-1.5-1.86-2.22-4.18-2.02-6.52.05-.59.55-1.03 1.14-.98s1.03.55.98 1.14c-.15 1.76.39 3.51 1.52 4.91 1.12 1.4 2.7 2.26 4.45 2.42.21.02.37.19.37.4v6.26c0 .28-.22.5-.5.5z",
1724
- fill: _color
1844
+ fill: "none",
1845
+ stroke: "currentColor",
1846
+ strokeWidth: "1.8",
1847
+ strokeLinecap: "round"
1848
+ }, /*#__PURE__*/React.createElement("rect", {
1849
+ x: "3",
1850
+ y: "11",
1851
+ width: "18",
1852
+ height: "11",
1853
+ rx: "2"
1725
1854
  }), /*#__PURE__*/React.createElement("path", {
1726
- d: "M12 11c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z",
1727
- fill: _color
1855
+ d: "M7 11V7a5 5 0 0 1 10 0v4"
1728
1856
  }));
1729
1857
  const UserIcon = ({
1730
1858
  size: _size2 = 16,
1731
- color: _color2 = "#64748b"
1859
+ color: _color = "currentColor"
1732
1860
  }) => /*#__PURE__*/React.createElement("svg", {
1733
1861
  width: _size2,
1734
1862
  height: _size2,
1735
1863
  viewBox: "0 0 24 24",
1736
- fill: "none"
1737
- }, /*#__PURE__*/React.createElement("path", {
1738
- d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2",
1739
- stroke: _color2,
1740
- strokeWidth: "2",
1864
+ fill: "none",
1865
+ stroke: _color,
1866
+ strokeWidth: "1.8",
1741
1867
  strokeLinecap: "round"
1868
+ }, /*#__PURE__*/React.createElement("path", {
1869
+ d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"
1742
1870
  }), /*#__PURE__*/React.createElement("circle", {
1743
1871
  cx: "12",
1744
1872
  cy: "7",
1745
- r: "4",
1746
- stroke: _color2,
1747
- strokeWidth: "2"
1873
+ r: "4"
1748
1874
  }));
1749
1875
  const PhoneIcon = ({
1750
1876
  size: _size3 = 16,
1751
- color: _color3 = "#64748b"
1877
+ color: _color2 = "currentColor"
1752
1878
  }) => /*#__PURE__*/React.createElement("svg", {
1753
1879
  width: _size3,
1754
1880
  height: _size3,
1755
1881
  viewBox: "0 0 24 24",
1756
- fill: "none"
1757
- }, /*#__PURE__*/React.createElement("path", {
1758
- d: "M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07A19.5 19.5 0 013.07 10.6 19.79 19.79 0 0 0 3 1.82C3 .72 3.72 0 4.82 0h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.91 7.91a16 16 0 006.16 6.16l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z",
1759
- stroke: _color3,
1760
- strokeWidth: "2",
1882
+ fill: "none",
1883
+ stroke: _color2,
1884
+ strokeWidth: "1.8",
1761
1885
  strokeLinecap: "round"
1886
+ }, /*#__PURE__*/React.createElement("path", {
1887
+ d: "M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-5.37-5.37 19.79 19.79 0 01-3.07-8.63A2 2 0 014.82 0h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.91 7.91a16 16 0 006.16 6.16l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z"
1762
1888
  }));
1763
1889
  const WhatsappIcon = ({
1764
1890
  size: _size4 = 16
@@ -1768,65 +1894,169 @@ const WhatsappIcon = ({
1768
1894
  viewBox: "0 0 24 24",
1769
1895
  fill: "none"
1770
1896
  }, /*#__PURE__*/React.createElement("path", {
1771
- d: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z",
1897
+ d: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413z",
1772
1898
  fill: "#25D366"
1773
1899
  }), /*#__PURE__*/React.createElement("path", {
1774
1900
  d: "M12 2C6.477 2 2 6.477 2 12c0 1.89.525 3.66 1.438 5.168L2 22l4.832-1.438A9.96 9.96 0 0012 22c5.523 0 10-4.477 10-10S17.523 2 12 2z",
1775
1901
  stroke: "#25D366",
1776
- strokeWidth: "2",
1902
+ strokeWidth: "1.8",
1777
1903
  strokeLinecap: "round"
1778
1904
  }));
1779
1905
  const MailIcon = ({
1780
1906
  size: _size5 = 16,
1781
- color: _color4 = "#64748b"
1907
+ color: _color3 = "currentColor"
1782
1908
  }) => /*#__PURE__*/React.createElement("svg", {
1783
1909
  width: _size5,
1784
1910
  height: _size5,
1785
1911
  viewBox: "0 0 24 24",
1786
- fill: "none"
1787
- }, /*#__PURE__*/React.createElement("path", {
1788
- d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z",
1789
- stroke: _color4,
1790
- strokeWidth: "2",
1912
+ fill: "none",
1913
+ stroke: _color3,
1914
+ strokeWidth: "1.8",
1791
1915
  strokeLinecap: "round"
1916
+ }, /*#__PURE__*/React.createElement("path", {
1917
+ d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"
1792
1918
  }), /*#__PURE__*/React.createElement("path", {
1793
- d: "M22 6l-10 7L2 6",
1794
- stroke: _color4,
1795
- strokeWidth: "2",
1796
- strokeLinecap: "round"
1919
+ d: "M22 6l-10 7L2 6"
1797
1920
  }));
1798
1921
  const UsersIcon = ({
1799
1922
  size: _size6 = 16,
1800
- color: _color5 = "#64748b"
1923
+ color: _color4 = "currentColor"
1801
1924
  }) => /*#__PURE__*/React.createElement("svg", {
1802
1925
  width: _size6,
1803
1926
  height: _size6,
1804
1927
  viewBox: "0 0 24 24",
1805
- fill: "none"
1806
- }, /*#__PURE__*/React.createElement("path", {
1807
- d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2",
1808
- stroke: _color5,
1809
- strokeWidth: "2",
1928
+ fill: "none",
1929
+ stroke: _color4,
1930
+ strokeWidth: "1.8",
1810
1931
  strokeLinecap: "round"
1932
+ }, /*#__PURE__*/React.createElement("path", {
1933
+ d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"
1811
1934
  }), /*#__PURE__*/React.createElement("circle", {
1812
1935
  cx: "9",
1813
1936
  cy: "7",
1814
- r: "4",
1815
- stroke: _color5,
1816
- strokeWidth: "2"
1817
- }), /*#__PURE__*/React.createElement("path", {
1818
- d: "M23 21v-2a4 4 0 0 0-3-3.87",
1819
- stroke: _color5,
1820
- strokeWidth: "2",
1821
- strokeLinecap: "round"
1937
+ r: "4"
1822
1938
  }), /*#__PURE__*/React.createElement("path", {
1823
- d: "M16 3.13a4 4 0 0 1 0 7.75",
1939
+ d: "M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75"
1940
+ }));
1941
+ const CheckIcon$1 = ({
1942
+ size: _size7 = 15,
1943
+ color: _color5 = "#1D9E75"
1944
+ }) => /*#__PURE__*/React.createElement("svg", {
1945
+ width: _size7,
1946
+ height: _size7,
1947
+ viewBox: "0 0 24 24",
1948
+ fill: "none",
1824
1949
  stroke: _color5,
1825
- strokeWidth: "2",
1950
+ strokeWidth: "2.8",
1826
1951
  strokeLinecap: "round"
1952
+ }, /*#__PURE__*/React.createElement("polyline", {
1953
+ points: "20 6 9 17 4 12"
1954
+ }));
1955
+ const IconInput$1 = ({
1956
+ icon,
1957
+ rightIcon,
1958
+ inputStyle: _inputStyle = {},
1959
+ ...props
1960
+ }) => /*#__PURE__*/React.createElement("div", {
1961
+ style: {
1962
+ position: "relative",
1963
+ width: "100%"
1964
+ }
1965
+ }, /*#__PURE__*/React.createElement("div", {
1966
+ style: {
1967
+ position: "absolute",
1968
+ left: "10px",
1969
+ top: "50%",
1970
+ transform: "translateY(-50%)",
1971
+ zIndex: 1,
1972
+ opacity: 0.45,
1973
+ display: "flex",
1974
+ pointerEvents: "none"
1975
+ }
1976
+ }, icon), /*#__PURE__*/React.createElement(TextInput, Object.assign({
1977
+ textInputStyle: {
1978
+ paddingLeft: "36px",
1979
+ paddingRight: rightIcon ? "36px" : "12px",
1980
+ ..._inputStyle
1981
+ }
1982
+ }, props)), rightIcon && /*#__PURE__*/React.createElement("div", {
1983
+ style: {
1984
+ position: "absolute",
1985
+ right: "10px",
1986
+ top: "50%",
1987
+ transform: "translateY(-50%)",
1988
+ display: "flex"
1989
+ }
1990
+ }, rightIcon));
1991
+ const SectionHead$1 = ({
1992
+ icon,
1993
+ label
1994
+ }) => /*#__PURE__*/React.createElement("div", {
1995
+ style: {
1996
+ display: "flex",
1997
+ alignItems: "center",
1998
+ gap: "8px",
1999
+ marginBottom: "16px",
2000
+ marginTop: "4px"
2001
+ }
2002
+ }, /*#__PURE__*/React.createElement("div", {
2003
+ style: {
2004
+ opacity: 0.5,
2005
+ display: "flex"
2006
+ }
2007
+ }, icon), /*#__PURE__*/React.createElement("span", {
2008
+ style: {
2009
+ fontSize: "15px",
2010
+ fontWeight: "600",
2011
+ color: "#0B0C0C",
2012
+ whiteSpace: "nowrap"
2013
+ }
2014
+ }, label), /*#__PURE__*/React.createElement("div", {
2015
+ style: {
2016
+ flex: 1,
2017
+ height: "1px",
2018
+ background: "#EAECF0"
2019
+ }
2020
+ }));
2021
+ const RadioToggleRow = ({
2022
+ label,
2023
+ selected,
2024
+ onSelect,
2025
+ t,
2026
+ options
2027
+ }) => /*#__PURE__*/React.createElement("div", {
2028
+ style: {
2029
+ display: "flex",
2030
+ alignItems: "center",
2031
+ justifyContent: "space-between",
2032
+ marginBottom: "8px"
2033
+ }
2034
+ }, /*#__PURE__*/React.createElement(CardLabel, {
2035
+ style: {
2036
+ fontWeight: "500",
2037
+ marginBottom: 0,
2038
+ fontSize: "13px",
2039
+ color: "#505A5F"
2040
+ }
2041
+ }, label), /*#__PURE__*/React.createElement(RadioButtons, {
2042
+ options: options,
2043
+ optionsKey: "name",
2044
+ selectedOption: selected,
2045
+ onSelect: onSelect,
2046
+ t: t,
2047
+ innerStyles: {
2048
+ display: "flex",
2049
+ gap: "20px",
2050
+ alignItems: "center"
2051
+ },
2052
+ style: {
2053
+ display: "flex",
2054
+ gap: "20px",
2055
+ marginBottom: 0
2056
+ }
1827
2057
  }));
1828
2058
  const AadhaarVerification = () => {
1829
- var _connectionDetails$co, _connectionDetails$co2, _connectionDetails$co3, _connectionDetails$co4;
2059
+ var _connectionDetails$ad;
1830
2060
  const {
1831
2061
  t
1832
2062
  } = useTranslation();
@@ -1852,6 +2082,7 @@ const AadhaarVerification = () => {
1852
2082
  }
1853
2083
  }
1854
2084
  };
2085
+ const details = (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.connectionDetails) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.connectionDetailsInfo) || {};
1855
2086
  const [aadhaarLastFour, setAadhaarLastFour] = useState("");
1856
2087
  const [isAadhaarVerified, setIsAadhaarVerified] = useState(false);
1857
2088
  const [isVerifying, setIsVerifying] = useState(false);
@@ -1859,15 +2090,15 @@ const AadhaarVerification = () => {
1859
2090
  code: "NO",
1860
2091
  name: "CORE_COMMON_NO"
1861
2092
  });
1862
- const [userName, setUserName] = useState((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$co = connectionDetails.connectionDetailsInfo) === null || _connectionDetails$co === void 0 ? void 0 : _connectionDetails$co.consumerName) || "");
2093
+ const [userName, setUserName] = useState(details.consumerName || "");
1863
2094
  const [mobileChange, setMobileChange] = useState({
1864
2095
  code: "NO",
1865
2096
  name: "CORE_COMMON_NO"
1866
2097
  });
1867
- const [mobileNumber, setMobileNumber] = useState((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$co2 = connectionDetails.connectionDetailsInfo) === null || _connectionDetails$co2 === void 0 ? void 0 : _connectionDetails$co2.phoneNumber) || "");
1868
- const [whatsappNumber, setWhatsappNumber] = useState((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$co3 = connectionDetails.connectionDetailsInfo) === null || _connectionDetails$co3 === void 0 ? void 0 : _connectionDetails$co3.phoneNumber) || "");
1869
- const [email, setEmail] = useState((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$co4 = connectionDetails.connectionDetailsInfo) === null || _connectionDetails$co4 === void 0 ? void 0 : _connectionDetails$co4.email) || "");
1870
- const [noOfPersons, setNoOfPersons] = useState("");
2098
+ const [mobileNumber, setMobileNumber] = useState(details.phoneNumber || "");
2099
+ const [whatsappNumber, setWhatsappNumber] = useState(details.phoneNumber || "");
2100
+ const [email, setEmail] = useState(details.email || "");
2101
+ const [noOfPersons, setNoOfPersons] = useState((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ad = connectionDetails.addressDetails) === null || _connectionDetails$ad === void 0 ? void 0 : _connectionDetails$ad.noOfPerson) || "");
1871
2102
  const [showAddressSection, setShowAddressSection] = useState(false);
1872
2103
  const [addressData, setAddressData] = useState(null);
1873
2104
  const yesNoOptions = [{
@@ -1878,19 +2109,26 @@ const AadhaarVerification = () => {
1878
2109
  name: "CORE_COMMON_NO"
1879
2110
  }];
1880
2111
  const handleVerifyAadhaar = () => {
1881
- if (aadhaarLastFour.length === 4) {
1882
- setIsVerifying(true);
2112
+ if (aadhaarLastFour.length !== 4 || isVerifying) return;
2113
+ setIsVerifying(true);
2114
+ setTimeout(() => {
2115
+ setIsVerifying(false);
2116
+ setIsAadhaarVerified(true);
2117
+ setShowAddressSection(true);
1883
2118
  setTimeout(() => {
1884
- setIsVerifying(false);
1885
- setIsAadhaarVerified(true);
1886
- }, 1200);
1887
- }
2119
+ var _addressSectionRef$cu;
2120
+ (_addressSectionRef$cu = addressSectionRef.current) === null || _addressSectionRef$cu === void 0 ? void 0 : _addressSectionRef$cu.scrollIntoView({
2121
+ behavior: "smooth",
2122
+ block: "start"
2123
+ });
2124
+ }, 100);
2125
+ }, 1200);
1888
2126
  };
1889
- const handleSaveAndContinueAadhaar = () => {
2127
+ const handleSaveAndContinue = () => {
1890
2128
  setShowAddressSection(true);
1891
2129
  setTimeout(() => {
1892
- var _addressSectionRef$cu;
1893
- (_addressSectionRef$cu = addressSectionRef.current) === null || _addressSectionRef$cu === void 0 ? void 0 : _addressSectionRef$cu.scrollIntoView({
2130
+ var _addressSectionRef$cu2;
2131
+ (_addressSectionRef$cu2 = addressSectionRef.current) === null || _addressSectionRef$cu2 === void 0 ? void 0 : _addressSectionRef$cu2.scrollIntoView({
1894
2132
  behavior: "smooth",
1895
2133
  block: "start"
1896
2134
  });
@@ -1914,60 +2152,135 @@ const AadhaarVerification = () => {
1914
2152
  addressDetails
1915
2153
  });
1916
2154
  };
2155
+ const styles = {
2156
+ verifiedInput: {
2157
+ borderColor: "#1D9E75",
2158
+ backgroundColor: "#E1F5EE"
2159
+ },
2160
+ verifiedCard: {
2161
+ backgroundColor: "#E1F5EE",
2162
+ border: "0.5px solid #5DCAA5",
2163
+ borderRadius: "8px",
2164
+ padding: "16px",
2165
+ marginTop: "14px",
2166
+ marginBottom: "4px",
2167
+ animation: "fadeSlideIn 0.35s ease"
2168
+ },
2169
+ infoLabel: {
2170
+ fontSize: "11px",
2171
+ fontWeight: "600",
2172
+ color: "#1D9E75",
2173
+ textTransform: "uppercase",
2174
+ letterSpacing: "0.05em",
2175
+ marginBottom: "3px"
2176
+ },
2177
+ infoValue: {
2178
+ fontSize: "14px",
2179
+ fontWeight: "500",
2180
+ color: "#04342C"
2181
+ },
2182
+ twoCol: {
2183
+ display: "grid",
2184
+ gridTemplateColumns: "1fr 1fr",
2185
+ gap: "14px",
2186
+ marginBottom: "20px"
2187
+ },
2188
+ optionalTag: {
2189
+ display: "inline-block",
2190
+ fontSize: "10px",
2191
+ background: "#F1EFE8",
2192
+ color: "#5F5E5A",
2193
+ border: "0.5px solid #D3D1C7",
2194
+ borderRadius: "10px",
2195
+ padding: "1px 7px",
2196
+ marginLeft: "6px",
2197
+ fontWeight: "400"
2198
+ }
2199
+ };
1917
2200
  return /*#__PURE__*/React.createElement("div", {
1918
2201
  className: "inbox-container"
1919
2202
  }, /*#__PURE__*/React.createElement("style", null, `
1920
- @keyframes spin { to { transform: rotate(360deg); } }
1921
- @keyframes fadeSlideIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
1922
- @keyframes pulseGreen { 0%,100% { box-shadow:0 0 0 0 rgba(22,163,74,0.4); } 50% { box-shadow:0 0 0 8px rgba(22,163,74,0); } }
1923
- `), /*#__PURE__*/React.createElement("div", {
2203
+ @keyframes fadeSlideIn {
2204
+ from { opacity: 0; transform: translateY(6px); }
2205
+ to { opacity: 1; transform: translateY(0); }
2206
+ }
2207
+ @keyframes pulseGreen {
2208
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(29,158,117,0.35); }
2209
+ 50% { box-shadow: 0 0 0 6px rgba(29,158,117,0); }
2210
+ }
2211
+ .ekyc-sidebar-step { display: flex; gap: 10px; align-items: flex-start; position: relative; padding-bottom: 18px; }
2212
+ .ekyc-sidebar-step:last-child { padding-bottom: 0; }
2213
+ .ekyc-step-line { position: absolute; left: 10px; top: 22px; width: 1px; height: calc(100% - 10px); background: #EAECF0; }
2214
+ .ekyc-step-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #D0D5DD; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; color: #98A2B3; background: #fff; flex-shrink: 0; margin-top: 1px; }
2215
+ .ekyc-step-dot.active { border-color: #185FA5; color: #185FA5; background: #E6F1FB; }
2216
+ .ekyc-step-dot.done { border-color: #0F6E56; background: #0F6E56; color: #fff; }
2217
+ .ekyc-step-label { font-size: 12px; color: #667085; padding-top: 2px; }
2218
+ .ekyc-step-label.active { color: #0B0C0C; font-weight: 600; }
2219
+ .ekyc-step-label.done { color: #0F6E56; }
2220
+ .ekyc-field-label { font-size: 11px; font-weight: 600; color: #667085; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
2221
+ `), /*#__PURE__*/React.createElement("div", {
1924
2222
  className: "filters-container"
1925
2223
  }, /*#__PURE__*/React.createElement(Card, {
1926
- className: "sidebar-title-card",
1927
2224
  style: {
1928
2225
  display: "flex",
1929
2226
  alignItems: "center",
1930
- padding: "16px",
1931
- marginBottom: "16px",
1932
- borderRadius: "4px"
2227
+ padding: "12px 16px",
2228
+ marginBottom: "12px",
2229
+ borderRadius: "8px"
1933
2230
  }
1934
2231
  }, /*#__PURE__*/React.createElement("div", {
1935
- className: "icon-container",
1936
2232
  style: {
1937
- color: "#0068faff",
1938
- marginRight: "12px"
2233
+ color: "#185FA5",
2234
+ marginRight: "10px",
2235
+ display: "flex"
1939
2236
  }
1940
2237
  }, /*#__PURE__*/React.createElement(HomeIcon, {
1941
2238
  style: {
1942
- width: "24px",
1943
- height: "24px"
2239
+ width: "20px",
2240
+ height: "20px"
1944
2241
  }
1945
2242
  })), /*#__PURE__*/React.createElement("div", {
1946
2243
  style: {
1947
- fontWeight: "700",
1948
- fontSize: "18px",
2244
+ fontWeight: "600",
2245
+ fontSize: "15px",
1949
2246
  color: "#0B0C0C"
1950
2247
  }
1951
- }, t("EKYC_PROCESS"))), /*#__PURE__*/React.createElement("div", {
2248
+ }, t("EKYC_PROCESS") || "eKYC Process")), /*#__PURE__*/React.createElement("div", {
1952
2249
  style: {
1953
- backgroundColor: "#FFFFFF",
1954
- padding: "16px",
2250
+ background: "#fff",
2251
+ padding: "16px 14px",
1955
2252
  borderRadius: "8px",
1956
- border: "1px solid #EAECF0",
1957
- boxShadow: "0 2px 4px rgba(0,0,0,0.02)"
2253
+ border: "1px solid #EAECF0"
1958
2254
  }
1959
- }, /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, /*#__PURE__*/React.createElement(CheckPoint, {
2255
+ }, [{
1960
2256
  label: t("EKYC_STEP_AADHAAR") || "Aadhaar",
1961
- isCompleted: showAddressSection
1962
- }), /*#__PURE__*/React.createElement(CheckPoint, {
2257
+ done: showAddressSection,
2258
+ active: !showAddressSection
2259
+ }, {
1963
2260
  label: t("EKYC_STEP_ADDRESS") || "Address",
1964
- isCompleted: addressData !== null
1965
- }), /*#__PURE__*/React.createElement(CheckPoint, {
2261
+ done: addressData !== null,
2262
+ active: showAddressSection && addressData === null
2263
+ }, {
1966
2264
  label: t("EKYC_STEP_PROPERTY") || "Property",
1967
- isCompleted: false
1968
- }), /*#__PURE__*/React.createElement(CheckPoint, {
1969
- label: t("EKYC_STEP_REVIEW") || "Review"
1970
- })))), /*#__PURE__*/React.createElement("div", {
2265
+ done: false,
2266
+ active: false
2267
+ }, {
2268
+ label: t("EKYC_STEP_REVIEW") || "Review",
2269
+ done: false,
2270
+ active: false
2271
+ }].map((step, i) => /*#__PURE__*/React.createElement("div", {
2272
+ className: "ekyc-sidebar-step",
2273
+ key: i
2274
+ }, /*#__PURE__*/React.createElement("div", {
2275
+ className: `ekyc-step-dot${step.done ? " done" : step.active ? " active" : ""}`
2276
+ }, step.done ? /*#__PURE__*/React.createElement(CheckIcon$1, {
2277
+ size: 11,
2278
+ color: "#fff"
2279
+ }) : i + 1), i < 3 && /*#__PURE__*/React.createElement("div", {
2280
+ className: "ekyc-step-line"
2281
+ }), /*#__PURE__*/React.createElement("div", {
2282
+ className: `ekyc-step-label${step.done ? " done" : step.active ? " active" : ""}`
2283
+ }, step.label))))), /*#__PURE__*/React.createElement("div", {
1971
2284
  style: {
1972
2285
  flex: 1,
1973
2286
  marginLeft: "16px"
@@ -1975,394 +2288,215 @@ const AadhaarVerification = () => {
1975
2288
  }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
1976
2289
  style: {
1977
2290
  display: "flex",
1978
- justifyContent: "space-between",
1979
- alignItems: "center",
1980
- marginBottom: "24px"
1981
- }
1982
- }, /*#__PURE__*/React.createElement(Header, null, t("EKYC_AADHAAR_VERIFICATION_HEADER") || "Aadhaar Verification"), /*#__PURE__*/React.createElement("div", {
1983
- style: {
1984
- fontSize: "14px",
1985
- fontWeight: "700",
1986
- color: "#505A5F"
1987
- }
1988
- }, t("EKYC_K_NUMBER"), ": ", /*#__PURE__*/React.createElement("span", {
1989
- style: {
1990
- color: "#0B0C0C"
2291
+ justifyContent: "flex-end",
2292
+ marginBottom: "20px"
1991
2293
  }
1992
- }, kNumber))), /*#__PURE__*/React.createElement(CardHeader, {
2294
+ }, /*#__PURE__*/React.createElement("div", {
1993
2295
  style: {
1994
- fontSize: "20px",
1995
- marginBottom: "16px"
2296
+ background: "#F9FAFB",
2297
+ border: "0.5px solid #EAECF0",
2298
+ borderRadius: "20px",
2299
+ padding: "4px 14px",
2300
+ fontSize: "12px",
2301
+ color: "#667085"
1996
2302
  }
1997
- }, t("EKYC_AADHAAR_NUMBER_HEADER") || "Aadhaar Number"), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
2303
+ }, t("EKYC_K_NUMBER") || "K Number", ":", " ", /*#__PURE__*/React.createElement("span", {
1998
2304
  style: {
2305
+ color: "#0B0C0C",
1999
2306
  fontWeight: "600"
2000
2307
  }
2001
- }, t("EKYC_LAST_4_DIGIT_AADHAAR") || "Last 4-digit Aadhaar Number"), /*#__PURE__*/React.createElement("div", {
2002
- className: "field",
2003
- style: {
2004
- position: "relative"
2005
- }
2006
- }, /*#__PURE__*/React.createElement("div", {
2007
- style: {
2008
- position: "absolute",
2009
- left: "12px",
2010
- top: "50%",
2011
- transform: "translateY(-50%)",
2012
- zIndex: 1,
2013
- opacity: 0.6
2014
- }
2015
- }, /*#__PURE__*/React.createElement(FingerprintIcon, {
2016
- size: 20
2017
- })), /*#__PURE__*/React.createElement(TextInput, {
2308
+ }, kNumber))), /*#__PURE__*/React.createElement(SectionHead$1, {
2309
+ icon: /*#__PURE__*/React.createElement(LockIcon, {
2310
+ size: 16
2311
+ }),
2312
+ label: t("EKYC_AADHAAR_NUMBER_HEADER") || "Aadhaar Number"
2313
+ }), /*#__PURE__*/React.createElement("div", {
2314
+ className: "ekyc-field-label"
2315
+ }, t("EKYC_LAST_4_DIGIT_AADHAAR") || "Enter 12 digits of Aadhaar"), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
2316
+ className: "field"
2317
+ }, /*#__PURE__*/React.createElement(IconInput$1, {
2318
+ icon: /*#__PURE__*/React.createElement(LockIcon, {
2319
+ size: 15
2320
+ }),
2321
+ rightIcon: isAadhaarVerified ? /*#__PURE__*/React.createElement(CheckIcon$1, {
2322
+ size: 15
2323
+ }) : null,
2018
2324
  value: aadhaarLastFour,
2019
2325
  onChange: e => {
2020
2326
  const val = e.target.value;
2021
- if (val.length <= 4 && /^\d*$/.test(val)) setAadhaarLastFour(val);
2327
+ if (val.length <= 12 && /^\d*$/.test(val)) setAadhaarLastFour(val);
2022
2328
  },
2023
- placeholder: t("EKYC_ENTER_LAST_4_DIGIT") || "Enter last 4 digits",
2024
- textInputStyle: {
2025
- paddingLeft: "40px"
2026
- },
2027
- maxLength: 4
2028
- }), isAadhaarVerified && /*#__PURE__*/React.createElement("div", {
2029
- style: {
2030
- position: "absolute",
2031
- right: "12px",
2032
- top: "50%",
2033
- transform: "translateY(-50%)"
2034
- }
2035
- }, /*#__PURE__*/React.createElement(TickMark, {
2036
- fillColor: "#2E9E8F"
2037
- })))), !isAadhaarVerified && /*#__PURE__*/React.createElement(SubmitBar, {
2329
+ placeholder: t("EKYC_ENTER_LAST_4_DIGIT") || "Enter 12 digits",
2330
+ maxLength: 12,
2331
+ disabled: isAadhaarVerified,
2332
+ inputStyle: isAadhaarVerified ? styles.verifiedInput : {}
2333
+ }))), !isAadhaarVerified && /*#__PURE__*/React.createElement(SubmitBar, {
2038
2334
  label: isVerifying ? t("EKYC_VERIFYING") || "Verifying..." : t("EKYC_VERIFY_AADHAAR_BTN") || "Verify Aadhaar",
2039
2335
  onSubmit: handleVerifyAadhaar,
2040
2336
  disabled: aadhaarLastFour.length !== 4 || isVerifying,
2041
2337
  style: {
2042
- marginTop: "16px",
2043
- opacity: aadhaarLastFour.length !== 4 ? 0.6 : 1
2338
+ marginTop: "12px"
2044
2339
  }
2045
2340
  }), isAadhaarVerified && /*#__PURE__*/React.createElement("div", {
2046
- style: {
2047
- backgroundColor: "#E7F4EE",
2048
- padding: "20px",
2049
- borderRadius: "8px",
2050
- marginTop: "24px",
2051
- marginBottom: "24px",
2052
- border: "1px solid #D1E9DB",
2053
- animation: "fadeSlideIn 0.4s ease"
2054
- }
2341
+ style: styles.verifiedCard
2055
2342
  }, /*#__PURE__*/React.createElement("div", {
2056
2343
  style: {
2057
2344
  display: "flex",
2058
2345
  alignItems: "center",
2059
- gap: "10px",
2060
- marginBottom: "16px"
2346
+ gap: "8px",
2347
+ marginBottom: "14px"
2061
2348
  }
2062
2349
  }, /*#__PURE__*/React.createElement("div", {
2063
2350
  style: {
2064
- backgroundColor: "#D1E9DB",
2065
- padding: "4px",
2351
+ width: "24px",
2352
+ height: "24px",
2066
2353
  borderRadius: "50%",
2354
+ background: "#9FE1CB",
2067
2355
  display: "flex",
2068
- animation: "pulseGreen 2s ease infinite"
2356
+ alignItems: "center",
2357
+ justifyContent: "center",
2358
+ animation: "pulseGreen 2s ease infinite",
2359
+ flexShrink: 0
2069
2360
  }
2070
- }, /*#__PURE__*/React.createElement(TickMark, {
2071
- fillColor: "#2E9E8F"
2361
+ }, /*#__PURE__*/React.createElement(CheckIcon$1, {
2362
+ size: 13,
2363
+ color: "#085041"
2072
2364
  })), /*#__PURE__*/React.createElement("span", {
2073
2365
  style: {
2074
- fontWeight: "700",
2075
- color: "#2E9E8F",
2076
- fontSize: "18px"
2366
+ fontWeight: "600",
2367
+ color: "#085041",
2368
+ fontSize: "14px"
2077
2369
  }
2078
2370
  }, t("EKYC_AADHAAR_VERIFIED_SUCCESS") || "Aadhaar Verified Successfully")), /*#__PURE__*/React.createElement("div", {
2079
2371
  style: {
2080
2372
  display: "grid",
2081
2373
  gridTemplateColumns: "1fr 1fr",
2082
- gap: "16px"
2083
- }
2084
- }, /*#__PURE__*/React.createElement("div", {
2085
- style: {
2086
- display: "flex",
2087
- flexDirection: "column"
2088
- }
2089
- }, /*#__PURE__*/React.createElement("span", {
2090
- style: {
2091
- color: "#667085",
2092
- fontSize: "12px",
2093
- fontWeight: "700",
2094
- textTransform: "uppercase"
2095
- }
2096
- }, t("EKYC_NAME")), /*#__PURE__*/React.createElement("span", {
2097
- style: {
2098
- fontWeight: "700",
2099
- fontSize: "16px",
2100
- color: "#101828"
2101
- }
2102
- }, "Rajesh Kumar Singh")), /*#__PURE__*/React.createElement("div", {
2103
- style: {
2104
- display: "flex",
2105
- flexDirection: "column"
2106
- }
2107
- }, /*#__PURE__*/React.createElement("span", {
2108
- style: {
2109
- color: "#667085",
2110
- fontSize: "12px",
2111
- fontWeight: "700",
2112
- textTransform: "uppercase"
2113
- }
2114
- }, t("EKYC_AADHAAR")), /*#__PURE__*/React.createElement("span", {
2115
- style: {
2116
- fontWeight: "700",
2117
- fontSize: "16px",
2118
- color: "#101828"
2374
+ gap: "12px"
2119
2375
  }
2376
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
2377
+ style: styles.infoLabel
2378
+ }, t("EKYC_NAME") || "Name"), /*#__PURE__*/React.createElement("div", {
2379
+ style: styles.infoValue
2380
+ }, details.consumerName)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
2381
+ style: styles.infoLabel
2382
+ }, t("EKYC_AADHAAR") || "Aadhaar"), /*#__PURE__*/React.createElement("div", {
2383
+ style: styles.infoValue
2120
2384
  }, "XXXX XXXX ", aadhaarLastFour)), /*#__PURE__*/React.createElement("div", {
2121
2385
  style: {
2122
- display: "flex",
2123
- flexDirection: "column",
2124
2386
  gridColumn: "span 2"
2125
2387
  }
2126
- }, /*#__PURE__*/React.createElement("span", {
2127
- style: {
2128
- color: "#667085",
2129
- fontSize: "12px",
2130
- fontWeight: "700",
2131
- textTransform: "uppercase"
2132
- }
2133
- }, t("EKYC_ADDRESS")), /*#__PURE__*/React.createElement("span", {
2134
- style: {
2135
- fontWeight: "500",
2136
- fontSize: "15px",
2137
- color: "#344054"
2138
- }
2139
- }, "House No. 45, Sector 12, New Delhi - 110001")))), /*#__PURE__*/React.createElement("hr", {
2140
- style: {
2141
- margin: "32px 0",
2142
- border: "0",
2143
- borderTop: "1px solid #EAECF0"
2144
- }
2145
- }), /*#__PURE__*/React.createElement(CardHeader, {
2146
- style: {
2147
- fontSize: "20px",
2148
- marginBottom: "16px"
2149
- }
2150
- }, t("EKYC_CONTACT_DETAILS_HEADER") || "Contact Details"), /*#__PURE__*/React.createElement(LabelFieldPair, {
2151
- style: {
2152
- animation: "fadeSlideIn 0.3s ease"
2153
- }
2154
2388
  }, /*#__PURE__*/React.createElement("div", {
2389
+ style: styles.infoLabel
2390
+ }, t("EKYC_ADDRESS") || "Address"), /*#__PURE__*/React.createElement("div", {
2155
2391
  style: {
2156
- display: "flex",
2157
- alignItems: "center",
2158
- gap: "20px"
2392
+ ...styles.infoValue,
2393
+ fontSize: "13px"
2159
2394
  }
2160
- }, /*#__PURE__*/React.createElement(CardLabel, {
2395
+ }, details.address)))), /*#__PURE__*/React.createElement("hr", {
2161
2396
  style: {
2162
- fontWeight: "600",
2163
- marginBottom: "0"
2397
+ margin: "24px 0",
2398
+ border: 0,
2399
+ borderTop: "1px solid #EAECF0"
2164
2400
  }
2165
- }, t("EKYC_USER_NAME") || "Corrected Name"), /*#__PURE__*/React.createElement(RadioButtons, {
2166
- options: yesNoOptions,
2167
- optionsKey: "name",
2168
- selectedOption: nameCorrect,
2401
+ }), /*#__PURE__*/React.createElement(SectionHead$1, {
2402
+ icon: /*#__PURE__*/React.createElement(UserIcon, {
2403
+ size: 16
2404
+ }),
2405
+ label: t("EKYC_CONTACT_DETAILS_HEADER") || "Contact Details"
2406
+ }), /*#__PURE__*/React.createElement(RadioToggleRow, {
2407
+ label: `${t("EKYC_USER_NAME")} (${t("EKYC_NAME_CORRECT_HINT")})`,
2408
+ selected: nameCorrect,
2169
2409
  onSelect: setNameCorrect,
2170
- t: t,
2171
- innerStyles: {
2172
- display: "flex",
2173
- gap: "24px"
2174
- },
2175
- style: {
2176
- display: "flex",
2177
- gap: "50px",
2178
- marginBottom: "0"
2179
- }
2180
- })), /*#__PURE__*/React.createElement("div", {
2181
- className: "field",
2182
- style: {
2183
- position: "relative"
2184
- }
2185
- }, /*#__PURE__*/React.createElement("div", {
2410
+ options: yesNoOptions,
2411
+ sty: true,
2412
+ t: t
2413
+ }), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
2414
+ className: "field"
2415
+ }, /*#__PURE__*/React.createElement(IconInput$1, {
2416
+ icon: /*#__PURE__*/React.createElement(UserIcon, {
2417
+ size: 15,
2418
+ color: nameCorrect.code === "YES" ? "#64748b" : "#94a3b8"
2419
+ }),
2186
2420
  style: {
2187
- position: "absolute",
2188
- left: "12px",
2189
- top: "50%",
2190
- transform: "translateY(-50%)",
2191
- zIndex: 1,
2192
- opacity: nameCorrect.code === "YES" ? 0.6 : 0.3
2193
- }
2194
- }, /*#__PURE__*/React.createElement(UserIcon, {
2195
- size: 18,
2196
- color: nameCorrect.code === "YES" ? "#64748b" : "#94a3b8"
2197
- })), /*#__PURE__*/React.createElement(TextInput, {
2421
+ marginBottom: "12px"
2422
+ },
2198
2423
  value: userName,
2199
2424
  onChange: e => setUserName(e.target.value),
2200
2425
  placeholder: t("EKYC_ENTER_NAME_PLACEHOLDER") || "Enter full name",
2201
- textInputStyle: {
2202
- paddingLeft: "40px"
2203
- },
2204
2426
  disabled: nameCorrect.code !== "YES"
2205
- }))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
2206
- style: {
2207
- display: "flex",
2208
- alignItems: "center",
2209
- gap: "20px",
2210
- padding: "10px"
2211
- }
2212
- }, /*#__PURE__*/React.createElement(CardLabel, {
2213
- style: {
2214
- fontWeight: "600",
2215
- marginBottom: "0"
2216
- }
2217
- }, t("EKYC_USER_MOBILE_NUMBER") || "User Mobile Number"), /*#__PURE__*/React.createElement(RadioButtons, {
2218
- options: yesNoOptions,
2219
- optionsKey: "name",
2220
- selectedOption: mobileChange,
2427
+ }))), /*#__PURE__*/React.createElement(RadioToggleRow, {
2428
+ label: `${t("EKYC_USER_MOBILE_NUMBER")} (${t("EKYC_UPDATE_MOBILE_HINT")})`,
2429
+ selected: mobileChange,
2221
2430
  onSelect: setMobileChange,
2222
- t: t,
2223
- innerStyles: {
2224
- display: "flex",
2225
- gap: "24px"
2226
- },
2227
- style: {
2228
- display: "flex",
2229
- gap: "50px",
2230
- marginBottom: "0"
2231
- }
2232
- })), /*#__PURE__*/React.createElement("div", {
2233
- className: "field",
2234
- style: {
2235
- position: "relative"
2236
- }
2237
- }, /*#__PURE__*/React.createElement("div", {
2431
+ options: yesNoOptions,
2432
+ t: t
2433
+ }), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
2434
+ className: "field"
2435
+ }, /*#__PURE__*/React.createElement(IconInput$1, {
2436
+ icon: /*#__PURE__*/React.createElement(PhoneIcon, {
2437
+ size: 15,
2438
+ color: mobileChange.code === "YES" ? "#64748b" : "#94a3b8"
2439
+ }),
2238
2440
  style: {
2239
- position: "absolute",
2240
- left: "12px",
2241
- top: "50%",
2242
- transform: "translateY(-50%)",
2243
- zIndex: 1,
2244
- opacity: mobileChange.code === "YES" ? 0.6 : 0.3
2245
- }
2246
- }, /*#__PURE__*/React.createElement(PhoneIcon, {
2247
- size: 18,
2248
- color: mobileChange.code === "YES" ? "#64748b" : "#94a3b8"
2249
- })), /*#__PURE__*/React.createElement(TextInput, {
2441
+ marginBottom: "12px"
2442
+ },
2250
2443
  value: mobileNumber,
2251
2444
  onChange: e => setMobileNumber(e.target.value),
2252
2445
  placeholder: "+91 XXXXX XXXXX",
2253
- textInputStyle: {
2254
- paddingLeft: "40px"
2255
- },
2256
2446
  disabled: mobileChange.code !== "YES"
2257
2447
  }))), /*#__PURE__*/React.createElement("div", {
2258
- style: {
2259
- display: "grid",
2260
- gridTemplateColumns: "1fr 1fr",
2261
- gap: "24px",
2262
- marginTop: "24px"
2263
- }
2264
- }, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
2265
- style: {
2266
- fontWeight: "600"
2267
- }
2268
- }, t("EKYC_WHATSAPP_NUMBER") || "WhatsApp Number"), /*#__PURE__*/React.createElement("div", {
2269
- className: "field",
2270
- style: {
2271
- position: "relative"
2272
- }
2273
- }, /*#__PURE__*/React.createElement("div", {
2274
- style: {
2275
- position: "absolute",
2276
- left: "12px",
2277
- top: "50%",
2278
- transform: "translateY(-50%)",
2279
- zIndex: 1,
2280
- opacity: 0.6
2281
- }
2282
- }, /*#__PURE__*/React.createElement(WhatsappIcon, {
2283
- size: 18
2284
- })), /*#__PURE__*/React.createElement(TextInput, {
2448
+ style: styles.twoCol
2449
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
2450
+ className: "ekyc-field-label"
2451
+ }, t("EKYC_WHATSAPP_NUMBER") || "WhatsApp Number"), /*#__PURE__*/React.createElement(IconInput$1, {
2452
+ icon: /*#__PURE__*/React.createElement(WhatsappIcon, {
2453
+ size: 15
2454
+ }),
2285
2455
  value: whatsappNumber,
2286
2456
  onChange: e => setWhatsappNumber(e.target.value),
2287
- placeholder: "+91 XXXXX XXXXX",
2288
- textInputStyle: {
2289
- paddingLeft: "40px"
2290
- }
2291
- }))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
2292
- style: {
2293
- fontWeight: "600"
2294
- }
2295
- }, t("EKYC_EMAIL_ADDRESS") || "Email Address", " ", /*#__PURE__*/React.createElement("span", {
2296
- style: {
2297
- fontWeight: "400",
2298
- color: "#667085"
2299
- }
2300
- }, "(", t("EKYC_OPTIONAL") || "Optional", ")")), /*#__PURE__*/React.createElement("div", {
2301
- className: "field",
2302
- style: {
2303
- position: "relative"
2304
- }
2305
- }, /*#__PURE__*/React.createElement("div", {
2306
- style: {
2307
- position: "absolute",
2308
- left: "12px",
2309
- top: "50%",
2310
- transform: "translateY(-50%)",
2311
- zIndex: 1,
2312
- opacity: 0.6
2313
- }
2314
- }, /*#__PURE__*/React.createElement(MailIcon, {
2315
- size: 18
2316
- })), /*#__PURE__*/React.createElement(TextInput, {
2457
+ placeholder: "+91 XXXXX XXXXX"
2458
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
2459
+ className: "ekyc-field-label"
2460
+ }, t("EKYC_EMAIL_ADDRESS") || "Email Address", /*#__PURE__*/React.createElement("span", {
2461
+ style: styles.optionalTag
2462
+ }, t("EKYC_OPTIONAL") || "Optional")), /*#__PURE__*/React.createElement(IconInput$1, {
2463
+ icon: /*#__PURE__*/React.createElement(MailIcon, {
2464
+ size: 15
2465
+ }),
2317
2466
  value: email,
2318
2467
  onChange: e => setEmail(e.target.value),
2319
- placeholder: t("EKYC_EMAIL_ADDRESS_PLACEHOLDER") || "example@email.com",
2320
- textInputStyle: {
2321
- paddingLeft: "40px"
2322
- }
2323
- })))), /*#__PURE__*/React.createElement("hr", {
2468
+ placeholder: t("EKYC_EMAIL_ADDRESS_PLACEHOLDER") || "example@email.com"
2469
+ }))), /*#__PURE__*/React.createElement("hr", {
2324
2470
  style: {
2325
- margin: "32px 0",
2326
- border: "0",
2471
+ margin: "24px 0",
2472
+ border: 0,
2327
2473
  borderTop: "1px solid #EAECF0"
2328
2474
  }
2329
- }), /*#__PURE__*/React.createElement(CardHeader, {
2330
- style: {
2331
- fontSize: "20px",
2332
- marginBottom: "16px"
2333
- }
2334
- }, t("EKYC_FAMILY_DETAILS_HEADER") || "Family Details"), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
2335
- style: {
2336
- fontWeight: "600"
2337
- }
2338
- }, t("EKYC_NO_OF_PERSONS") || "Number of Family Members"), /*#__PURE__*/React.createElement("div", {
2339
- className: "field",
2340
- style: {
2341
- position: "relative"
2342
- }
2343
- }, /*#__PURE__*/React.createElement("div", {
2344
- style: {
2345
- position: "absolute",
2346
- left: "12px",
2347
- top: "50%",
2348
- transform: "translateY(-50%)",
2349
- zIndex: 1,
2350
- opacity: 0.6
2351
- }
2352
- }, /*#__PURE__*/React.createElement(UsersIcon, {
2353
- size: 18
2354
- })), /*#__PURE__*/React.createElement(TextInput, {
2475
+ }), /*#__PURE__*/React.createElement(SectionHead$1, {
2476
+ icon: /*#__PURE__*/React.createElement(UsersIcon, {
2477
+ size: 16
2478
+ }),
2479
+ label: t("EKYC_FAMILY_DETAILS_HEADER") || "Family Details"
2480
+ }), /*#__PURE__*/React.createElement("div", {
2481
+ className: "ekyc-field-label"
2482
+ }, t("EKYC_NO_OF_PERSONS") || "Number of Family Members"), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
2483
+ className: "field"
2484
+ }, /*#__PURE__*/React.createElement(IconInput$1, {
2485
+ icon: /*#__PURE__*/React.createElement(UsersIcon, {
2486
+ size: 15
2487
+ }),
2355
2488
  value: noOfPersons,
2356
2489
  onChange: e => {
2357
2490
  if (/^\d*$/.test(e.target.value)) setNoOfPersons(e.target.value);
2358
2491
  },
2359
- placeholder: t("EKYC_ENTER_NO_OF_PERSONS") || "Enter total number of persons",
2360
- textInputStyle: {
2361
- paddingLeft: "40px"
2492
+ placeholder: t("EKYC_ENTER_NO_OF_PERSONS") || "Enter total number of persons"
2493
+ }))), !showAddressSection && /*#__PURE__*/React.createElement("div", {
2494
+ style: {
2495
+ marginTop: "24px"
2362
2496
  }
2363
- }))), !showAddressSection && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
2497
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
2364
2498
  label: t("ES_COMMON_SAVE_CONTINUE") || "Save & Continue",
2365
- onSubmit: handleSaveAndContinueAadhaar
2499
+ onSubmit: handleSaveAndContinue
2366
2500
  })), showAddressSection && /*#__PURE__*/React.createElement("div", {
2367
2501
  ref: addressSectionRef
2368
2502
  }, /*#__PURE__*/React.createElement(AddressDetails, {
@@ -2375,66 +2509,196 @@ const AadhaarVerification = () => {
2375
2509
  }
2376
2510
  })), /*#__PURE__*/React.createElement("div", {
2377
2511
  style: {
2378
- textAlign: "center",
2379
- marginTop: "24px"
2380
- }
2381
- }, /*#__PURE__*/React.createElement("p", {
2382
- style: {
2383
- fontSize: "12px",
2384
- color: "#667085",
2385
2512
  display: "flex",
2386
2513
  alignItems: "center",
2387
2514
  justifyContent: "center",
2388
- gap: "4px"
2515
+ gap: "5px",
2516
+ marginTop: "20px",
2517
+ fontSize: "11px",
2518
+ color: "#98A2B3"
2389
2519
  }
2390
- }, /*#__PURE__*/React.createElement("svg", {
2391
- width: "12",
2392
- height: "12",
2393
- viewBox: "0 0 24 24",
2394
- fill: "none",
2395
- stroke: "currentColor",
2396
- strokeWidth: "2"
2397
- }, /*#__PURE__*/React.createElement("path", {
2398
- d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"
2399
- }), /*#__PURE__*/React.createElement("path", {
2400
- d: "M12 11V17M12 7H12.01",
2401
- strokeLinecap: "round"
2402
- })), t("EKYC_SECURE_DATA_NOTICE") || "Your data is encrypted and secure")))));
2520
+ }, /*#__PURE__*/React.createElement(LockIcon, {
2521
+ size: 11
2522
+ }), t("EKYC_SECURE_DATA_NOTICE") || "Your data is encrypted and secure"))));
2403
2523
  };
2404
2524
 
2525
+ const CheckIcon$2 = ({
2526
+ size: _size = 11,
2527
+ color: _color = "#fff"
2528
+ }) => /*#__PURE__*/React.createElement("svg", {
2529
+ width: _size,
2530
+ height: _size,
2531
+ viewBox: "0 0 24 24",
2532
+ fill: "none",
2533
+ stroke: _color,
2534
+ strokeWidth: "3",
2535
+ strokeLinecap: "round"
2536
+ }, /*#__PURE__*/React.createElement("polyline", {
2537
+ points: "20 6 9 17 4 12"
2538
+ }));
2539
+ const BuildingIcon = ({
2540
+ size: _size2 = 16
2541
+ }) => /*#__PURE__*/React.createElement("svg", {
2542
+ width: _size2,
2543
+ height: _size2,
2544
+ viewBox: "0 0 24 24",
2545
+ fill: "currentColor"
2546
+ }, /*#__PURE__*/React.createElement("path", {
2547
+ d: "M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8V9h8v10zm-2-8h-4v2h4v-2zm0 4h-4v2h4v-2z"
2548
+ }));
2549
+ const BriefcaseIcon = ({
2550
+ size: _size3 = 16
2551
+ }) => /*#__PURE__*/React.createElement("svg", {
2552
+ width: _size3,
2553
+ height: _size3,
2554
+ viewBox: "0 0 24 24",
2555
+ fill: "currentColor"
2556
+ }, /*#__PURE__*/React.createElement("path", {
2557
+ d: "M20 6H16V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6-2v2h-4V4h4z"
2558
+ }));
2559
+ const DocumentIcon = ({
2560
+ size: _size4 = 16
2561
+ }) => /*#__PURE__*/React.createElement("svg", {
2562
+ width: _size4,
2563
+ height: _size4,
2564
+ viewBox: "0 0 24 24",
2565
+ fill: "currentColor"
2566
+ }, /*#__PURE__*/React.createElement("path", {
2567
+ d: "M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm-1 7V3.5L18.5 9H13z"
2568
+ }));
2569
+ const CameraIcon$1 = ({
2570
+ size: _size5 = 24
2571
+ }) => /*#__PURE__*/React.createElement("svg", {
2572
+ width: _size5,
2573
+ height: _size5,
2574
+ viewBox: "0 0 24 24",
2575
+ fill: "currentColor"
2576
+ }, /*#__PURE__*/React.createElement("path", {
2577
+ d: "M9 2L7.17 4H4C2.9 4 2 4.9 2 6v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L13 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
2578
+ }));
2579
+ const TrashIcon$1 = ({
2580
+ size: _size6 = 14
2581
+ }) => /*#__PURE__*/React.createElement("svg", {
2582
+ width: _size6,
2583
+ height: _size6,
2584
+ viewBox: "0 0 24 24",
2585
+ fill: "none",
2586
+ stroke: "#D92D20",
2587
+ strokeWidth: "2",
2588
+ strokeLinecap: "round"
2589
+ }, /*#__PURE__*/React.createElement("polyline", {
2590
+ points: "3 6 5 6 21 6"
2591
+ }), /*#__PURE__*/React.createElement("path", {
2592
+ d: "M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"
2593
+ }), /*#__PURE__*/React.createElement("path", {
2594
+ d: "M10 11v6M14 11v6"
2595
+ }), /*#__PURE__*/React.createElement("path", {
2596
+ d: "M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"
2597
+ }));
2598
+ const PidIcon = ({
2599
+ size: _size7 = 16
2600
+ }) => /*#__PURE__*/React.createElement("svg", {
2601
+ width: _size7,
2602
+ height: _size7,
2603
+ viewBox: "0 0 24 24",
2604
+ fill: "none",
2605
+ stroke: "currentColor",
2606
+ strokeWidth: "2",
2607
+ strokeLinecap: "round"
2608
+ }, /*#__PURE__*/React.createElement("rect", {
2609
+ x: "3",
2610
+ y: "4",
2611
+ width: "18",
2612
+ height: "16",
2613
+ rx: "2"
2614
+ }), /*#__PURE__*/React.createElement("path", {
2615
+ d: "M7 8h5M7 12h8M7 16h4"
2616
+ }));
2617
+ const SectionHead$2 = ({
2618
+ icon,
2619
+ label
2620
+ }) => /*#__PURE__*/React.createElement("div", {
2621
+ style: {
2622
+ display: "flex",
2623
+ alignItems: "center",
2624
+ gap: "8px",
2625
+ marginBottom: "16px",
2626
+ marginTop: "4px"
2627
+ }
2628
+ }, /*#__PURE__*/React.createElement("div", {
2629
+ style: {
2630
+ opacity: 0.5,
2631
+ display: "flex"
2632
+ }
2633
+ }, icon), /*#__PURE__*/React.createElement("span", {
2634
+ style: {
2635
+ fontSize: "15px",
2636
+ fontWeight: "600",
2637
+ color: "#0B0C0C",
2638
+ whiteSpace: "nowrap"
2639
+ }
2640
+ }, label), /*#__PURE__*/React.createElement("div", {
2641
+ style: {
2642
+ flex: 1,
2643
+ height: "1px",
2644
+ background: "#EAECF0"
2645
+ }
2646
+ }));
2647
+ const IconInput$2 = ({
2648
+ icon,
2649
+ ...props
2650
+ }) => /*#__PURE__*/React.createElement("div", {
2651
+ style: {
2652
+ position: "relative",
2653
+ width: "100%"
2654
+ }
2655
+ }, /*#__PURE__*/React.createElement("div", {
2656
+ style: {
2657
+ position: "absolute",
2658
+ left: "10px",
2659
+ top: "50%",
2660
+ transform: "translateY(-50%)",
2661
+ zIndex: 1,
2662
+ opacity: 0.45,
2663
+ display: "flex",
2664
+ pointerEvents: "none"
2665
+ }
2666
+ }, icon), /*#__PURE__*/React.createElement(TextInput, Object.assign({
2667
+ textInputStyle: {
2668
+ paddingLeft: "36px",
2669
+ paddingRight: "12px"
2670
+ }
2671
+ }, props)));
2405
2672
  const PropertyInfo = () => {
2406
- var _dataV0$wsServicesC, _dataV0$wsServicesC$p, _data$wsServicesCal, _data$wsServicesCal$c, _dataV1$wsServicesC, _dataV1$wsServicesC$u, _dataV2$wsServicesC, _dataV2$wsServicesC$f;
2673
+ var _dataV0$wsServicesC, _dataV0$wsServicesC$p, _dataConn$wsServices, _dataConn$wsServices$, _dataV1$wsServicesC, _dataV1$wsServicesC$u, _dataV2$wsServicesC, _dataV2$wsServicesC$f;
2407
2674
  const {
2408
2675
  t
2409
2676
  } = useTranslation();
2410
2677
  const history = useHistory();
2411
2678
  const location = useLocation();
2412
- const {
2413
- kNumber
2414
- } = location.state || {
2679
+ const flowState = location.state || {
2415
2680
  kNumber: "EKYC-1234567890"
2416
2681
  };
2682
+ const {
2683
+ kNumber
2684
+ } = flowState;
2417
2685
  const tenantId = Digit.ULBService.getCurrentTenantId();
2418
2686
  const {
2419
- data: dataV0,
2420
- isLoading: isLoadingV0
2687
+ data: dataV0
2421
2688
  } = Digit.Hooks.ekyc.useGetPropertyType(tenantId);
2422
2689
  const {
2423
- data,
2424
- isLoading
2690
+ data: dataConn
2425
2691
  } = Digit.Hooks.ekyc.useGetConnectionTypeV2(tenantId);
2426
2692
  const {
2427
- data: dataV1,
2428
- isLoading: isLoadingV1
2693
+ data: dataV1
2429
2694
  } = Digit.Hooks.ekyc.useGetUserType(tenantId);
2430
2695
  const {
2431
- data: dataV2,
2432
- isLoading: isLoadingV2
2696
+ data: dataV2
2433
2697
  } = Digit.Hooks.ekyc.useGetFloorCount(tenantId);
2434
2698
  const [ownerType, setOwnerType] = useState("OWNER");
2435
2699
  const [pidNumber, setPidNumber] = useState("");
2436
- const [connectionType, setConnectionType] = useState(null);
2437
2700
  const [connectionCategory, setConnectionCategory] = useState(null);
2701
+ const [connectionType, setConnectionType] = useState(null);
2438
2702
  const [userType, setUserType] = useState(null);
2439
2703
  const [noOfFloors, setNoOfFloors] = useState(null);
2440
2704
  const [propertyDocument, setPropertyDocument] = useState(null);
@@ -2443,7 +2707,7 @@ const PropertyInfo = () => {
2443
2707
  const cameraRef = useRef(null);
2444
2708
  const handleSaveAndContinue = () => {
2445
2709
  history.push("/digit-ui/employee/ekyc/review", {
2446
- ...location.state,
2710
+ ...flowState,
2447
2711
  propertyDetails: {
2448
2712
  ownerType,
2449
2713
  pidNumber,
@@ -2456,514 +2720,762 @@ const PropertyInfo = () => {
2456
2720
  }
2457
2721
  });
2458
2722
  };
2459
- const SuitcaseIcon = () => /*#__PURE__*/React.createElement("div", {
2460
- style: {
2461
- backgroundColor: "#E8EAF6",
2462
- padding: "8px",
2463
- borderRadius: "8px",
2464
- display: "flex",
2465
- alignItems: "center",
2466
- justifyContent: "center"
2467
- }
2468
- }, /*#__PURE__*/React.createElement("svg", {
2469
- width: "24",
2470
- height: "24",
2471
- viewBox: "0 0 24 24",
2472
- fill: "none",
2473
- xmlns: "http://www.w3.org/2000/svg"
2474
- }, /*#__PURE__*/React.createElement("path", {
2475
- d: "M20 6H16V4C16 2.89 15.11 2 14 2H10C8.89 2 8 2.89 8 4V6H4C2.89 6 2 6.89 2 8V19C2 20.11 2.89 21 4 21H20C21.11 21 22 20.11 22 19V8C22 6.89 21.11 6 20 6ZM10 4H14V6H10V4ZM20 19H4V8H20V19ZM13 13V10H11V13H8L12 17L16 13H13Z",
2476
- fill: "#3D51B0"
2477
- })));
2478
- const BuildingIcon = () => /*#__PURE__*/React.createElement("div", {
2479
- style: {
2480
- backgroundColor: "#E8EAF6",
2481
- padding: "8px",
2482
- borderRadius: "8px",
2483
- display: "flex",
2484
- alignItems: "center",
2485
- justifyContent: "center"
2486
- }
2487
- }, /*#__PURE__*/React.createElement("svg", {
2488
- width: "24",
2489
- height: "24",
2490
- viewBox: "0 0 24 24",
2491
- fill: "none",
2492
- xmlns: "http://www.w3.org/2000/svg"
2493
- }, /*#__PURE__*/React.createElement("path", {
2494
- d: "M12 7V3H2V21H22V7H12ZM6 19H4V17H6V19ZM6 15H4V13H6V15ZM6 11H4V9H6V11ZM6 7H4V5H6V7ZM10 19H8V17H10V19ZM10 15H8V13H10V15ZM10 11H8V9H10V11ZM10 7H8V5H10V7ZM20 19H12V9H20V19ZM18 11H14V13H18V11ZM18 15H14V17H18V15Z",
2495
- fill: "#3D51B0"
2496
- })));
2497
- const PdfIcon = () => /*#__PURE__*/React.createElement("svg", {
2498
- width: "48",
2499
- height: "48",
2500
- viewBox: "0 0 24 24",
2501
- fill: "none",
2502
- xmlns: "http://www.w3.org/2000/svg"
2503
- }, /*#__PURE__*/React.createElement("path", {
2504
- d: "M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2ZM13 9V3.5L18.5 9H13Z",
2505
- fill: "#1976D2"
2506
- }), /*#__PURE__*/React.createElement("path", {
2507
- d: "M11 14H13V18H11V14ZM11 12H13V13H11V12Z",
2508
- fill: "white"
2509
- }), /*#__PURE__*/React.createElement("path", {
2510
- d: "M8 16H9V17H8V16Z",
2511
- fill: "white"
2512
- }), /*#__PURE__*/React.createElement("path", {
2513
- d: "M15 16H16V17H15V16Z",
2514
- fill: "white"
2515
- }), /*#__PURE__*/React.createElement("path", {
2516
- d: "M12 15.5L14 13.5H10L12 15.5Z",
2517
- fill: "white"
2518
- }), /*#__PURE__*/React.createElement("path", {
2519
- d: "M12 18V14M12 14L10 16M12 14L14 16",
2520
- stroke: "white",
2521
- strokeWidth: "2",
2522
- strokeLinecap: "round",
2523
- strokeLinejoin: "round"
2524
- }));
2525
- const CameraIcon = () => /*#__PURE__*/React.createElement("svg", {
2526
- width: "32",
2527
- height: "32",
2528
- viewBox: "0 0 24 24",
2529
- fill: "none",
2530
- xmlns: "http://www.w3.org/2000/svg"
2531
- }, /*#__PURE__*/React.createElement("path", {
2532
- d: "M9 2L7.17 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4H16.83L15 2H9ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",
2533
- fill: "#3D51B0"
2534
- }));
2723
+ const handleFileUpload = e => {
2724
+ const file = e.target.files[0];
2725
+ if (!file) return;
2726
+ setPropertyDocument(file);
2727
+ };
2728
+ const handlePhotoCapture = e => {
2729
+ const file = e.target.files[0];
2730
+ if (!file) return;
2731
+ const reader = new FileReader();
2732
+ reader.onloadend = () => setBuildingPhoto(reader.result);
2733
+ reader.readAsDataURL(file);
2734
+ };
2735
+ const connectionCategoryOptions = (dataV0 === null || dataV0 === void 0 ? void 0 : (_dataV0$wsServicesC = dataV0["ws-services-calculation"]) === null || _dataV0$wsServicesC === void 0 ? void 0 : (_dataV0$wsServicesC$p = _dataV0$wsServicesC.propertyTypeV2) === null || _dataV0$wsServicesC$p === void 0 ? void 0 : _dataV0$wsServicesC$p.map(item => ({
2736
+ label: t(item.code),
2737
+ value: item.code
2738
+ }))) || [];
2739
+ const connectionTypeOptions = (dataConn === null || dataConn === void 0 ? void 0 : (_dataConn$wsServices = dataConn["ws-services-calculation"]) === null || _dataConn$wsServices === void 0 ? void 0 : (_dataConn$wsServices$ = _dataConn$wsServices.connectionTypeV2) === null || _dataConn$wsServices$ === void 0 ? void 0 : _dataConn$wsServices$.map(item => ({
2740
+ label: t(item.code),
2741
+ value: item.code
2742
+ }))) || [];
2743
+ const userTypeOptions = (dataV1 === null || dataV1 === void 0 ? void 0 : (_dataV1$wsServicesC = dataV1["ws-services-calculation"]) === null || _dataV1$wsServicesC === void 0 ? void 0 : (_dataV1$wsServicesC$u = _dataV1$wsServicesC.userTypeV2) === null || _dataV1$wsServicesC$u === void 0 ? void 0 : _dataV1$wsServicesC$u.map(item => ({
2744
+ label: t(item.code),
2745
+ value: item.code
2746
+ }))) || [];
2747
+ const floorOptions = (dataV2 === null || dataV2 === void 0 ? void 0 : (_dataV2$wsServicesC = dataV2["ws-services-calculation"]) === null || _dataV2$wsServicesC === void 0 ? void 0 : (_dataV2$wsServicesC$f = _dataV2$wsServicesC.floorCount) === null || _dataV2$wsServicesC$f === void 0 ? void 0 : _dataV2$wsServicesC$f.map(item => ({
2748
+ label: t(item.code),
2749
+ value: item.code
2750
+ }))) || [];
2535
2751
  return /*#__PURE__*/React.createElement("div", {
2536
2752
  className: "inbox-container"
2537
- }, /*#__PURE__*/React.createElement("div", {
2753
+ }, /*#__PURE__*/React.createElement("style", null, `
2754
+ @keyframes fadeSlideIn {
2755
+ from { opacity: 0; transform: translateY(8px); }
2756
+ to { opacity: 1; transform: translateY(0); }
2757
+ }
2758
+ `), /*#__PURE__*/React.createElement("div", {
2538
2759
  className: "filters-container"
2539
2760
  }, /*#__PURE__*/React.createElement(Card, {
2540
- className: "sidebar-title-card",
2541
2761
  style: {
2542
2762
  display: "flex",
2543
2763
  alignItems: "center",
2544
- padding: "16px",
2545
- marginBottom: "16px",
2546
- borderRadius: "4px"
2764
+ padding: "12px 16px",
2765
+ marginBottom: "12px",
2766
+ borderRadius: "8px"
2547
2767
  }
2548
2768
  }, /*#__PURE__*/React.createElement("div", {
2549
- className: "icon-container",
2550
2769
  style: {
2551
- color: "#0068faff",
2552
- marginRight: "12px"
2770
+ color: "#185FA5",
2771
+ marginRight: "10px",
2772
+ display: "flex"
2553
2773
  }
2554
2774
  }, /*#__PURE__*/React.createElement(HomeIcon, {
2555
2775
  style: {
2556
- width: "24px",
2557
- height: "24px"
2776
+ width: "20px",
2777
+ height: "20px"
2558
2778
  }
2559
2779
  })), /*#__PURE__*/React.createElement("div", {
2560
2780
  style: {
2561
- fontWeight: "700",
2562
- fontSize: "18px",
2781
+ fontWeight: "600",
2782
+ fontSize: "15px",
2563
2783
  color: "#0B0C0C"
2564
2784
  }
2565
- }, t("EKYC_PROCESS"))), /*#__PURE__*/React.createElement("div", {
2785
+ }, t("EKYC_PROCESS") || "eKYC Process")), /*#__PURE__*/React.createElement("div", {
2566
2786
  style: {
2567
- backgroundColor: "#FFFFFF",
2568
- padding: "16px",
2787
+ background: "#fff",
2788
+ padding: "16px 14px",
2569
2789
  borderRadius: "8px",
2570
- border: "1px solid #EAECF0",
2571
- boxShadow: "0 2px 4px rgba(0,0,0,0.02)"
2790
+ border: "1px solid #EAECF0"
2572
2791
  }
2573
- }, /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, /*#__PURE__*/React.createElement(CheckPoint, {
2792
+ }, [{
2574
2793
  label: t("EKYC_STEP_AADHAAR") || "Aadhaar",
2575
- isCompleted: true
2576
- }), /*#__PURE__*/React.createElement(CheckPoint, {
2794
+ done: true,
2795
+ active: false
2796
+ }, {
2577
2797
  label: t("EKYC_STEP_ADDRESS") || "Address",
2578
- isCompleted: true
2579
- }), /*#__PURE__*/React.createElement(CheckPoint, {
2798
+ done: true,
2799
+ active: false
2800
+ }, {
2580
2801
  label: t("EKYC_STEP_PROPERTY") || "Property",
2581
- isCompleted: false
2582
- }), /*#__PURE__*/React.createElement(CheckPoint, {
2583
- label: t("EKYC_STEP_REVIEW") || "Review"
2584
- })))), /*#__PURE__*/React.createElement("div", {
2802
+ done: false,
2803
+ active: true
2804
+ }, {
2805
+ label: t("EKYC_STEP_REVIEW") || "Review",
2806
+ done: false,
2807
+ active: false
2808
+ }].map((step, i) => /*#__PURE__*/React.createElement("div", {
2809
+ key: i,
2585
2810
  style: {
2586
- flex: 1,
2587
- marginLeft: "16px"
2811
+ display: "flex",
2812
+ gap: "10px",
2813
+ alignItems: "flex-start",
2814
+ position: "relative",
2815
+ paddingBottom: i < 3 ? "18px" : 0
2588
2816
  }
2589
- }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
2817
+ }, i < 3 && /*#__PURE__*/React.createElement("div", {
2818
+ style: {
2819
+ position: "absolute",
2820
+ left: "10px",
2821
+ top: "22px",
2822
+ width: "1px",
2823
+ height: "calc(100% - 10px)",
2824
+ background: "#EAECF0"
2825
+ }
2826
+ }), /*#__PURE__*/React.createElement("div", {
2590
2827
  style: {
2828
+ width: "20px",
2829
+ height: "20px",
2830
+ borderRadius: "50%",
2831
+ flexShrink: 0,
2832
+ marginTop: "1px",
2833
+ border: step.done ? "none" : step.active ? "1.5px solid #185FA5" : "1.5px solid #D0D5DD",
2834
+ background: step.done ? "#0F6E56" : step.active ? "#E6F1FB" : "#fff",
2591
2835
  display: "flex",
2592
- justifyContent: "space-between",
2593
2836
  alignItems: "center",
2594
- marginBottom: "24px"
2837
+ justifyContent: "center",
2838
+ fontSize: "10px",
2839
+ fontWeight: "500",
2840
+ color: step.done ? "#fff" : step.active ? "#185FA5" : "#98A2B3"
2595
2841
  }
2596
- }, /*#__PURE__*/React.createElement(Header, null, t("Property Details")), /*#__PURE__*/React.createElement("div", {
2842
+ }, step.done ? /*#__PURE__*/React.createElement(CheckIcon$2, {
2843
+ size: 11,
2844
+ color: "#fff"
2845
+ }) : i + 1), /*#__PURE__*/React.createElement("div", {
2597
2846
  style: {
2598
- fontSize: "14px",
2599
- fontWeight: "700",
2600
- color: "#505A5F"
2847
+ fontSize: "12px",
2848
+ paddingTop: "2px",
2849
+ color: step.done ? "#0F6E56" : step.active ? "#0B0C0C" : "#667085",
2850
+ fontWeight: step.done || step.active ? "600" : "400"
2601
2851
  }
2602
- }, t("EKYC_K_NUMBER"), ": ", /*#__PURE__*/React.createElement("span", {
2852
+ }, step.label))))), /*#__PURE__*/React.createElement("div", {
2603
2853
  style: {
2604
- color: "#0B0C0C"
2854
+ flex: 1,
2855
+ marginLeft: "16px"
2605
2856
  }
2606
- }, kNumber))), /*#__PURE__*/React.createElement("div", {
2857
+ }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
2607
2858
  style: {
2608
2859
  display: "flex",
2860
+ justifyContent: "space-between",
2609
2861
  alignItems: "center",
2610
- gap: "12px",
2611
- marginBottom: "24px"
2862
+ marginBottom: "20px"
2612
2863
  }
2613
- }, /*#__PURE__*/React.createElement(SuitcaseIcon, null), /*#__PURE__*/React.createElement("span", {
2864
+ }, /*#__PURE__*/React.createElement(CardHeader, {
2614
2865
  style: {
2615
- fontSize: "20px",
2616
- fontWeight: "700",
2617
- color: "#101828"
2866
+ margin: 0,
2867
+ fontSize: "18px"
2618
2868
  }
2619
- }, t("Property Details"))), /*#__PURE__*/React.createElement(Card, {
2869
+ }, t("EKYC_PROPERTY_DETAILS_HEADER") || "Property Details"), /*#__PURE__*/React.createElement("div", {
2620
2870
  style: {
2621
- padding: "20px",
2622
- borderRadius: "16px",
2623
- border: "1px solid #EAECF0",
2624
- marginBottom: "24px"
2871
+ background: "#F9FAFB",
2872
+ border: "0.5px solid #EAECF0",
2873
+ borderRadius: "20px",
2874
+ padding: "4px 14px",
2875
+ fontSize: "12px",
2876
+ color: "#667085"
2625
2877
  }
2626
- }, /*#__PURE__*/React.createElement("div", {
2878
+ }, t("EKYC_K_NUMBER") || "K Number", ":", " ", /*#__PURE__*/React.createElement("span", {
2627
2879
  style: {
2628
- marginBottom: "24px"
2880
+ color: "#0B0C0C",
2881
+ fontWeight: "600"
2629
2882
  }
2630
- }, /*#__PURE__*/React.createElement(CardLabel, {
2883
+ }, kNumber))), /*#__PURE__*/React.createElement("div", {
2631
2884
  style: {
2632
- fontSize: "14px",
2633
- fontWeight: "600",
2634
- color: "#667085",
2635
- marginBottom: "12px"
2885
+ animation: "fadeSlideIn 0.3s ease"
2636
2886
  }
2637
- }, t("Property_Owner")), /*#__PURE__*/React.createElement("div", {
2887
+ }, /*#__PURE__*/React.createElement(SectionHead$2, {
2888
+ icon: /*#__PURE__*/React.createElement(BriefcaseIcon, {
2889
+ size: 16
2890
+ }),
2891
+ label: t("EKYC_PROPERTY_DETAILS") || "Property details"
2892
+ }), /*#__PURE__*/React.createElement("div", {
2893
+ style: {
2894
+ marginBottom: "20px"
2895
+ }
2896
+ }, /*#__PURE__*/React.createElement("div", {
2897
+ style: {
2898
+ fontSize: "11px",
2899
+ fontWeight: "600",
2900
+ color: "#667085",
2901
+ textTransform: "uppercase",
2902
+ letterSpacing: "0.04em",
2903
+ marginBottom: "8px"
2904
+ }
2905
+ }, t("EKYC_PROPERTY_OWNER") || "Property owner"), /*#__PURE__*/React.createElement("div", {
2638
2906
  style: {
2639
2907
  display: "flex",
2640
2908
  backgroundColor: "#F2F4F7",
2641
2909
  padding: "4px",
2642
- borderRadius: "12px"
2643
- }
2644
- }, /*#__PURE__*/React.createElement("button", {
2645
- onClick: () => setOwnerType("OWNER"),
2646
- style: {
2647
- flex: 1,
2648
- padding: "10px",
2649
2910
  borderRadius: "10px",
2650
- border: "none",
2651
- backgroundColor: ownerType === "OWNER" ? "#3D51B0" : "transparent",
2652
- color: ownerType === "OWNER" ? "#FFFFFF" : "#667085",
2653
- fontWeight: "600",
2654
- cursor: "pointer",
2655
- transition: "all 0.2s"
2911
+ gap: "4px"
2656
2912
  }
2657
- }, t("Owner")), /*#__PURE__*/React.createElement("button", {
2658
- onClick: () => setOwnerType("TENANT"),
2913
+ }, ["OWNER", "TENANT"].map(type => /*#__PURE__*/React.createElement("button", {
2914
+ key: type,
2915
+ onClick: () => setOwnerType(type),
2659
2916
  style: {
2660
2917
  flex: 1,
2661
- padding: "10px",
2662
- borderRadius: "10px",
2918
+ padding: "9px 12px",
2919
+ borderRadius: "7px",
2663
2920
  border: "none",
2664
- backgroundColor: ownerType === "TENANT" ? "#3D51B0" : "transparent",
2665
- color: ownerType === "TENANT" ? "#FFFFFF" : "#667085",
2666
- fontWeight: "600",
2667
2921
  cursor: "pointer",
2668
- transition: "all 0.2s"
2922
+ fontSize: "13px",
2923
+ fontWeight: "600",
2924
+ transition: "all 0.15s",
2925
+ background: ownerType === type ? "#185FA5" : "transparent",
2926
+ color: ownerType === type ? "#fff" : "#667085"
2669
2927
  }
2670
- }, t("Tenant")))), /*#__PURE__*/React.createElement("div", {
2928
+ }, t(`EKYC_${type}`) || (type === "OWNER" ? "Owner" : "Tenant"))))), /*#__PURE__*/React.createElement("div", {
2671
2929
  style: {
2672
- marginBottom: "8px"
2930
+ marginBottom: "20px"
2673
2931
  }
2674
- }, /*#__PURE__*/React.createElement(CardLabel, {
2932
+ }, /*#__PURE__*/React.createElement("div", {
2675
2933
  style: {
2676
- fontSize: "14px",
2934
+ fontSize: "11px",
2677
2935
  fontWeight: "600",
2678
2936
  color: "#667085",
2679
- marginBottom: "12px"
2937
+ textTransform: "uppercase",
2938
+ letterSpacing: "0.04em",
2939
+ marginBottom: "6px"
2680
2940
  }
2681
- }, t("PID_Number"), " ", /*#__PURE__*/React.createElement("span", {
2941
+ }, t("EKYC_PID_NUMBER") || "PID number", " ", /*#__PURE__*/React.createElement("span", {
2682
2942
  style: {
2683
2943
  fontStyle: "italic",
2684
2944
  fontWeight: "400",
2945
+ textTransform: "none",
2685
2946
  color: "#98A2B3"
2686
2947
  }
2687
- }, t("Optional"))), /*#__PURE__*/React.createElement("div", {
2688
- className: "field",
2689
- style: {
2690
- position: "relative"
2691
- }
2692
- }, /*#__PURE__*/React.createElement(TextInput, {
2948
+ }, "\u2014 ", t("EKYC_OPTIONAL") || "optional")), /*#__PURE__*/React.createElement(IconInput$2, {
2949
+ icon: /*#__PURE__*/React.createElement(PidIcon, {
2950
+ size: 15
2951
+ }),
2693
2952
  value: pidNumber,
2694
2953
  onChange: e => setPidNumber(e.target.value),
2695
- placeholder: t("Enter_PID_Number"),
2696
- textInputStyle: {
2697
- paddingLeft: "44px",
2698
- borderRadius: "12px",
2699
- border: "1px solid #D0D5DD",
2700
- height: "56px"
2954
+ placeholder: t("EKYC_ENTER_PID_NUMBER") || "Enter PID number"
2955
+ })), /*#__PURE__*/React.createElement("hr", {
2956
+ style: {
2957
+ margin: "24px 0",
2958
+ border: 0,
2959
+ borderTop: "1px solid #EAECF0"
2701
2960
  }
2961
+ }), /*#__PURE__*/React.createElement(SectionHead$2, {
2962
+ icon: /*#__PURE__*/React.createElement(BuildingIcon, {
2963
+ size: 16
2964
+ }),
2965
+ label: t("EKYC_BUILDING_INFO") || "Building info"
2702
2966
  }), /*#__PURE__*/React.createElement("div", {
2703
2967
  style: {
2704
- position: "absolute",
2705
- left: "16px",
2706
- top: "50%",
2707
- transform: "translateY(-50%)",
2708
- color: "#3D51B0",
2709
- fontSize: "20px",
2710
- fontWeight: "600"
2968
+ display: "grid",
2969
+ gridTemplateColumns: "1fr 1fr",
2970
+ gap: "14px",
2971
+ marginBottom: "14px"
2711
2972
  }
2712
- }, "#")))), /*#__PURE__*/React.createElement("div", {
2973
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
2713
2974
  style: {
2714
- display: "flex",
2715
- alignItems: "center",
2716
- gap: "12px",
2717
- marginBottom: "24px"
2975
+ fontSize: "11px",
2976
+ fontWeight: "600",
2977
+ color: "#667085",
2978
+ textTransform: "uppercase",
2979
+ letterSpacing: "0.04em",
2980
+ marginBottom: "6px"
2718
2981
  }
2719
- }, /*#__PURE__*/React.createElement(BuildingIcon, null), /*#__PURE__*/React.createElement("span", {
2982
+ }, t("EKYC_TYPE_OF_CONNECTION") || "Type of connection"), /*#__PURE__*/React.createElement(Dropdown, {
2983
+ selected: connectionCategory,
2984
+ select: setConnectionCategory,
2985
+ option: connectionCategoryOptions,
2986
+ optionKey: "label",
2987
+ t: t,
2988
+ placeholder: t("EKYC_SELECT") || "Select"
2989
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
2720
2990
  style: {
2721
- fontSize: "20px",
2722
- fontWeight: "700",
2723
- color: "#101828"
2991
+ fontSize: "11px",
2992
+ fontWeight: "600",
2993
+ color: "#667085",
2994
+ textTransform: "uppercase",
2995
+ letterSpacing: "0.04em",
2996
+ marginBottom: "6px"
2724
2997
  }
2725
- }, t("Building_Info"))), /*#__PURE__*/React.createElement(Card, {
2998
+ }, t("EKYC_CONNECTION_CATEGORY") || "Connection category"), /*#__PURE__*/React.createElement(Dropdown, {
2999
+ selected: connectionType,
3000
+ select: setConnectionType,
3001
+ option: connectionTypeOptions,
3002
+ optionKey: "label",
3003
+ t: t,
3004
+ placeholder: t("EKYC_SELECT") || "Select"
3005
+ }))), /*#__PURE__*/React.createElement("div", {
2726
3006
  style: {
2727
- padding: "20px",
2728
- borderRadius: "16px",
2729
- border: "1px solid #EAECF0",
3007
+ display: "grid",
3008
+ gridTemplateColumns: "1fr 1fr",
3009
+ gap: "14px",
2730
3010
  marginBottom: "24px"
2731
3011
  }
2732
- }, [{
2733
- label: "Type_of_Connection",
2734
- state: connectionCategory,
2735
- setState: setConnectionCategory,
2736
- options: (dataV0 === null || dataV0 === void 0 ? void 0 : (_dataV0$wsServicesC = dataV0["ws-services-calculation"]) === null || _dataV0$wsServicesC === void 0 ? void 0 : (_dataV0$wsServicesC$p = _dataV0$wsServicesC.propertyTypeV2) === null || _dataV0$wsServicesC$p === void 0 ? void 0 : _dataV0$wsServicesC$p.map(item => ({
2737
- label: t(item.code),
2738
- value: item.code
2739
- }))) || []
2740
- }, {
2741
- label: "Connection_Category",
2742
- state: connectionType,
2743
- setState: setConnectionType,
2744
- options: (data === null || data === void 0 ? void 0 : (_data$wsServicesCal = data["ws-services-calculation"]) === null || _data$wsServicesCal === void 0 ? void 0 : (_data$wsServicesCal$c = _data$wsServicesCal.connectionTypeV2) === null || _data$wsServicesCal$c === void 0 ? void 0 : _data$wsServicesCal$c.map(item => ({
2745
- label: t(item.code),
2746
- value: item.code
2747
- }))) || []
2748
- }, {
2749
- label: "User_Type",
2750
- state: userType,
2751
- setState: setUserType,
2752
- options: (dataV1 === null || dataV1 === void 0 ? void 0 : (_dataV1$wsServicesC = dataV1["ws-services-calculation"]) === null || _dataV1$wsServicesC === void 0 ? void 0 : (_dataV1$wsServicesC$u = _dataV1$wsServicesC.userTypeV2) === null || _dataV1$wsServicesC$u === void 0 ? void 0 : _dataV1$wsServicesC$u.map(item => ({
2753
- label: t(item.code),
2754
- value: item.code
2755
- }))) || []
2756
- }, {
2757
- label: "No_of_Floor",
2758
- state: noOfFloors,
2759
- setState: setNoOfFloors,
2760
- options: (dataV2 === null || dataV2 === void 0 ? void 0 : (_dataV2$wsServicesC = dataV2["ws-services-calculation"]) === null || _dataV2$wsServicesC === void 0 ? void 0 : (_dataV2$wsServicesC$f = _dataV2$wsServicesC.floorCount) === null || _dataV2$wsServicesC$f === void 0 ? void 0 : _dataV2$wsServicesC$f.map(item => ({
2761
- label: t(item.code),
2762
- value: item.code
2763
- }))) || []
2764
- }].map((item, idx) => /*#__PURE__*/React.createElement("div", {
2765
- key: idx,
3012
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
2766
3013
  style: {
2767
- marginBottom: "20px"
2768
- }
2769
- }, /*#__PURE__*/React.createElement(CardLabel, {
2770
- style: {
2771
- fontSize: "14px",
3014
+ fontSize: "11px",
2772
3015
  fontWeight: "600",
2773
- color: "#344054",
2774
- marginBottom: "8px"
3016
+ color: "#667085",
3017
+ textTransform: "uppercase",
3018
+ letterSpacing: "0.04em",
3019
+ marginBottom: "6px"
2775
3020
  }
2776
- }, t(item.label)), /*#__PURE__*/React.createElement(Dropdown, {
2777
- selected: item.state,
2778
- select: item.setState,
2779
- option: item.options || [{
2780
- label: `Select ${item.label}`,
2781
- value: ""
2782
- }],
3021
+ }, t("EKYC_USER_TYPE") || "User type"), /*#__PURE__*/React.createElement(Dropdown, {
3022
+ selected: userType,
3023
+ select: setUserType,
3024
+ option: userTypeOptions,
2783
3025
  optionKey: "label",
2784
3026
  t: t,
3027
+ placeholder: t("EKYC_SELECT") || "Select"
3028
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
2785
3029
  style: {
2786
- borderRadius: "12px",
2787
- border: "1px solid #D0D5DD",
2788
- height: "48px"
3030
+ fontSize: "11px",
3031
+ fontWeight: "600",
3032
+ color: "#667085",
3033
+ textTransform: "uppercase",
3034
+ letterSpacing: "0.04em",
3035
+ marginBottom: "6px"
2789
3036
  }
2790
- }))), /*#__PURE__*/React.createElement("div", {
3037
+ }, t("EKYC_NO_OF_FLOORS") || "No. of floors"), /*#__PURE__*/React.createElement(Dropdown, {
3038
+ selected: noOfFloors,
3039
+ select: setNoOfFloors,
3040
+ option: floorOptions,
3041
+ optionKey: "label",
3042
+ t: t,
3043
+ placeholder: t("EKYC_SELECT") || "Select"
3044
+ }))), /*#__PURE__*/React.createElement("hr", {
2791
3045
  style: {
2792
- display: "flex",
2793
- gap: "24px",
2794
- alignItems: "stretch",
2795
- flexWrap: "wrap"
3046
+ margin: "24px 0",
3047
+ border: 0,
3048
+ borderTop: "1px solid #EAECF0"
2796
3049
  }
2797
- }, /*#__PURE__*/React.createElement("div", {
3050
+ }), /*#__PURE__*/React.createElement(SectionHead$2, {
3051
+ icon: /*#__PURE__*/React.createElement(DocumentIcon, {
3052
+ size: 16
3053
+ }),
3054
+ label: t("EKYC_DOCUMENTS_PHOTO") || "Documents & photo"
3055
+ }), /*#__PURE__*/React.createElement("div", {
2798
3056
  style: {
2799
- flex: 1,
2800
- minWidth: "300px",
2801
- display: "flex",
2802
- flexDirection: "column"
3057
+ display: "grid",
3058
+ gridTemplateColumns: "1fr 1fr",
3059
+ gap: "14px",
3060
+ marginBottom: "20px"
2803
3061
  }
2804
- }, /*#__PURE__*/React.createElement(CardLabel, {
3062
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
2805
3063
  style: {
2806
- fontSize: "14px",
3064
+ fontSize: "11px",
2807
3065
  fontWeight: "600",
2808
- color: "#344054",
3066
+ color: "#667085",
3067
+ textTransform: "uppercase",
3068
+ letterSpacing: "0.04em",
2809
3069
  marginBottom: "8px"
2810
3070
  }
2811
- }, t("Upload_Property_Document")), /*#__PURE__*/React.createElement("div", {
2812
- style: {
2813
- flex: 1,
2814
- backgroundColor: "#EBF5FF",
2815
- border: "1px solid #B2DDFF",
2816
- borderRadius: "16px",
2817
- padding: "32px 24px",
2818
- textAlign: "center",
2819
- cursor: "pointer",
2820
- display: "flex",
2821
- flexDirection: "column",
2822
- justifyContent: "center"
2823
- },
2824
- onClick: () => fileRef.current.click()
2825
- }, /*#__PURE__*/React.createElement("input", {
3071
+ }, t("EKYC_UPLOAD_PROPERTY_DOC") || "Upload property document"), /*#__PURE__*/React.createElement("input", {
2826
3072
  type: "file",
2827
3073
  ref: fileRef,
3074
+ accept: ".pdf",
2828
3075
  style: {
2829
3076
  display: "none"
2830
3077
  },
2831
- accept: ".pdf"
3078
+ onChange: handleFileUpload
2832
3079
  }), /*#__PURE__*/React.createElement("div", {
3080
+ onClick: () => fileRef.current.click(),
3081
+ onMouseOver: e => e.currentTarget.style.borderColor = "#185FA5",
3082
+ onMouseOut: e => e.currentTarget.style.borderColor = "#B5D4F4",
2833
3083
  style: {
2834
- color: "#1570EF",
2835
- fontWeight: "600",
2836
- fontSize: "16px",
2837
- marginBottom: "20px",
2838
- lineHeight: "1.5"
2839
- }
2840
- }, t("Upload_your_property_document_in_PDF_Only")), /*#__PURE__*/React.createElement("div", {
2841
- style: {
3084
+ border: "1.5px dashed #B5D4F4",
3085
+ borderRadius: "10px",
3086
+ padding: "28px 20px",
3087
+ textAlign: "center",
3088
+ cursor: "pointer",
3089
+ backgroundColor: "#E6F1FB",
3090
+ minHeight: "160px",
2842
3091
  display: "flex",
2843
- justifyContent: "center"
3092
+ flexDirection: "column",
3093
+ alignItems: "center",
3094
+ justifyContent: "center",
3095
+ gap: "10px",
3096
+ transition: "border-color 0.15s"
2844
3097
  }
2845
3098
  }, /*#__PURE__*/React.createElement("div", {
2846
3099
  style: {
2847
- backgroundColor: "#FFFFFF",
2848
- padding: "12px",
2849
- borderRadius: "12px",
2850
- boxShadow: "0px 1px 2px rgba(16, 24, 40, 0.05)"
3100
+ background: "#fff",
3101
+ padding: "10px",
3102
+ borderRadius: "10px",
3103
+ display: "flex"
2851
3104
  }
2852
- }, /*#__PURE__*/React.createElement(PdfIcon, null))))), /*#__PURE__*/React.createElement("div", {
3105
+ }, /*#__PURE__*/React.createElement("svg", {
3106
+ width: "32",
3107
+ height: "32",
3108
+ viewBox: "0 0 24 24",
3109
+ fill: "#185FA5"
3110
+ }, /*#__PURE__*/React.createElement("path", {
3111
+ d: "M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm-1 7V3.5L18.5 9H13z"
3112
+ }), /*#__PURE__*/React.createElement("path", {
3113
+ d: "M12 18v-4M12 14l-2 2M12 14l2 2",
3114
+ stroke: "#fff",
3115
+ strokeWidth: "1.5",
3116
+ strokeLinecap: "round"
3117
+ }))), propertyDocument ? /*#__PURE__*/React.createElement("div", {
2853
3118
  style: {
2854
- flex: 1,
2855
- minWidth: "300px",
2856
- display: "flex",
2857
- flexDirection: "column"
3119
+ fontSize: "13px",
3120
+ fontWeight: "600",
3121
+ color: "#0F6E56"
2858
3122
  }
2859
- }, /*#__PURE__*/React.createElement(CardLabel, {
3123
+ }, "\u2713 ", propertyDocument.name) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
2860
3124
  style: {
2861
- fontSize: "14px",
3125
+ fontSize: "13px",
2862
3126
  fontWeight: "600",
2863
- color: "#344054",
2864
- marginBottom: "8px"
3127
+ color: "#185FA5"
2865
3128
  }
2866
- }, t("Capture_Building_Image")), /*#__PURE__*/React.createElement("div", {
3129
+ }, t("EKYC_UPLOAD_PROPERTY_DOC_CTA") || "Tap to upload"), /*#__PURE__*/React.createElement("div", {
2867
3130
  style: {
2868
- flex: 1,
2869
- border: "1px solid #D0D5DD",
2870
- borderRadius: "16px",
2871
- padding: "40px 24px",
2872
- textAlign: "center",
2873
- cursor: "pointer",
2874
- backgroundColor: "#FFFFFF",
2875
- display: "flex",
2876
- flexDirection: "column",
2877
- justifyContent: "center"
2878
- },
2879
- onClick: () => cameraRef.current.click()
2880
- }, /*#__PURE__*/React.createElement("input", {
3131
+ fontSize: "12px",
3132
+ color: "#378ADD"
3133
+ }
3134
+ }, "PDF only")))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
3135
+ style: {
3136
+ fontSize: "11px",
3137
+ fontWeight: "600",
3138
+ color: "#667085",
3139
+ textTransform: "uppercase",
3140
+ letterSpacing: "0.04em",
3141
+ marginBottom: "8px"
3142
+ }
3143
+ }, t("EKYC_CAPTURE_BUILDING_IMAGE") || "Capture building image"), /*#__PURE__*/React.createElement("input", {
2881
3144
  type: "file",
2882
3145
  ref: cameraRef,
3146
+ accept: "image/*",
3147
+ capture: "environment",
2883
3148
  style: {
2884
3149
  display: "none"
2885
3150
  },
2886
- accept: "image/*",
2887
- capture: "environment"
3151
+ onChange: handlePhotoCapture
2888
3152
  }), /*#__PURE__*/React.createElement("div", {
3153
+ onClick: !buildingPhoto ? () => cameraRef.current.click() : undefined,
3154
+ onMouseOver: e => {
3155
+ if (!buildingPhoto) e.currentTarget.style.borderColor = "#185FA5";
3156
+ },
3157
+ onMouseOut: e => {
3158
+ if (!buildingPhoto) e.currentTarget.style.borderColor = "#D0D5DD";
3159
+ },
3160
+ style: {
3161
+ border: "1.5px dashed #D0D5DD",
3162
+ borderRadius: "10px",
3163
+ minHeight: "160px",
3164
+ display: "flex",
3165
+ flexDirection: "column",
3166
+ alignItems: "center",
3167
+ justifyContent: "center",
3168
+ backgroundColor: "#F9FAFB",
3169
+ cursor: buildingPhoto ? "default" : "pointer",
3170
+ overflow: "hidden",
3171
+ transition: "border-color 0.15s",
3172
+ position: "relative",
3173
+ padding: buildingPhoto ? "0" : "28px 20px"
3174
+ }
3175
+ }, !buildingPhoto ? /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
2889
3176
  style: {
2890
- backgroundColor: "#EEF4FF",
2891
- width: "56px",
2892
- height: "56px",
3177
+ background: "#E6F1FB",
3178
+ width: "52px",
3179
+ height: "52px",
2893
3180
  borderRadius: "50%",
2894
3181
  display: "flex",
2895
3182
  alignItems: "center",
2896
3183
  justifyContent: "center",
2897
- margin: "0 auto 16px"
3184
+ marginBottom: "10px"
2898
3185
  }
2899
- }, /*#__PURE__*/React.createElement(CameraIcon, null)), /*#__PURE__*/React.createElement("div", {
3186
+ }, /*#__PURE__*/React.createElement(CameraIcon$1, {
3187
+ size: 26
3188
+ })), /*#__PURE__*/React.createElement("div", {
2900
3189
  style: {
3190
+ fontSize: "13px",
2901
3191
  fontWeight: "600",
2902
- color: "#101828",
2903
- fontSize: "16px",
2904
- marginBottom: "4px"
3192
+ color: "#101828"
2905
3193
  }
2906
- }, t("Tap_to_Capture")), /*#__PURE__*/React.createElement("div", {
3194
+ }, t("EKYC_TAP_TO_CAPTURE") || "Tap to capture"), /*#__PURE__*/React.createElement("div", {
2907
3195
  style: {
3196
+ fontSize: "12px",
2908
3197
  color: "#667085",
2909
- fontSize: "14px"
3198
+ marginTop: "2px"
2910
3199
  }
2911
- }, t("Building_Photo"))))), /*#__PURE__*/React.createElement("div", {
3200
+ }, t("EKYC_BUILDING_PHOTO") || "Building photo with GPS")) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("img", {
3201
+ src: buildingPhoto,
3202
+ alt: "Building",
2912
3203
  style: {
2913
- marginTop: "24px",
2914
- backgroundColor: "#EFF8FF",
2915
- padding: "16px",
2916
- borderRadius: "12px",
3204
+ width: "100%",
3205
+ maxHeight: "200px",
3206
+ objectFit: "cover",
3207
+ display: "block"
3208
+ }
3209
+ }), /*#__PURE__*/React.createElement("button", {
3210
+ onClick: e => {
3211
+ e.stopPropagation();
3212
+ setBuildingPhoto(null);
3213
+ if (cameraRef.current) cameraRef.current.value = "";
3214
+ },
3215
+ style: {
3216
+ position: "absolute",
3217
+ top: "8px",
3218
+ right: "8px",
3219
+ background: "#fff",
3220
+ border: "0.5px solid #EAECF0",
3221
+ borderRadius: "7px",
3222
+ padding: "5px 10px",
2917
3223
  display: "flex",
2918
- gap: "12px",
2919
- border: "1px solid #B2DDFF"
3224
+ alignItems: "center",
3225
+ gap: "5px",
3226
+ cursor: "pointer",
3227
+ fontSize: "12px",
3228
+ color: "#D92D20",
3229
+ fontWeight: "500"
3230
+ }
3231
+ }, /*#__PURE__*/React.createElement(TrashIcon$1, {
3232
+ size: 13
3233
+ }), " ", t("EKYC_REMOVE") || "Remove"))))), /*#__PURE__*/React.createElement("div", {
3234
+ style: {
3235
+ backgroundColor: "#E6F1FB",
3236
+ border: "0.5px solid #B5D4F4",
3237
+ borderRadius: "8px",
3238
+ padding: "12px 14px",
3239
+ display: "flex",
3240
+ alignItems: "flex-start",
3241
+ gap: "10px",
3242
+ marginBottom: "4px"
2920
3243
  }
2921
3244
  }, /*#__PURE__*/React.createElement("div", {
2922
3245
  style: {
2923
- color: "#1570EF"
3246
+ flexShrink: 0,
3247
+ marginTop: "1px"
2924
3248
  }
2925
- }, /*#__PURE__*/React.createElement("svg", {
2926
- width: "20",
2927
- height: "20",
2928
- viewBox: "0 0 20 20",
2929
- fill: "none",
2930
- xmlns: "http://www.w3.org/2000/svg"
2931
- }, /*#__PURE__*/React.createElement("path", {
2932
- d: "M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM11 15H9V9H11V15ZM11 7H9V5H11V7Z",
2933
- fill: "currentColor"
2934
- }))), /*#__PURE__*/React.createElement("div", {
3249
+ }, /*#__PURE__*/React.createElement(InfoBannerIcon, {
3250
+ fill: "#185FA5"
3251
+ })), /*#__PURE__*/React.createElement("div", {
2935
3252
  style: {
2936
- color: "#175CD3",
2937
- fontSize: "14px",
2938
- fontWeight: "500",
2939
- lineHeight: "1.4"
3253
+ fontSize: "13px",
3254
+ color: "#185FA5",
3255
+ lineHeight: "1.5"
2940
3256
  }
2941
- }, t("This_section_is_enabled_only_if_user_is_not_the_owner."))), /*#__PURE__*/React.createElement("div", {
3257
+ }, t("EKYC_TENANT_INFO_NOTICE") || "This section is enabled only if the user is not the owner. Tenant details will be required if tenant is selected."))), /*#__PURE__*/React.createElement("div", {
2942
3258
  style: {
2943
- display: "flex",
2944
- justifyContent: "flex-start",
2945
3259
  marginTop: "24px"
2946
3260
  }
2947
3261
  }, /*#__PURE__*/React.createElement(SubmitBar, {
2948
- label: t("Save_&_Continue"),
2949
- onSubmit: handleSaveAndContinue,
3262
+ label: t("EKYC_SAVE_AND_CONTINUE") || "Save & Continue",
3263
+ onSubmit: handleSaveAndContinue
3264
+ })), /*#__PURE__*/React.createElement("div", {
2950
3265
  style: {
2951
- borderRadius: "8px",
2952
- height: "48px",
2953
- margin: 0
3266
+ display: "flex",
3267
+ alignItems: "center",
3268
+ justifyContent: "center",
3269
+ gap: "5px",
3270
+ marginTop: "16px",
3271
+ fontSize: "11px",
3272
+ color: "#98A2B3"
2954
3273
  }
2955
- }))))));
3274
+ }, /*#__PURE__*/React.createElement("svg", {
3275
+ width: "11",
3276
+ height: "11",
3277
+ viewBox: "0 0 24 24",
3278
+ fill: "none",
3279
+ stroke: "currentColor",
3280
+ strokeWidth: "2",
3281
+ strokeLinecap: "round"
3282
+ }, /*#__PURE__*/React.createElement("rect", {
3283
+ x: "3",
3284
+ y: "11",
3285
+ width: "18",
3286
+ height: "11",
3287
+ rx: "2"
3288
+ }), /*#__PURE__*/React.createElement("path", {
3289
+ d: "M7 11V7a5 5 0 0 1 10 0v4"
3290
+ })), t("EKYC_SECURE_DATA_NOTICE") || "Your data is encrypted and secure"))));
2956
3291
  };
2957
3292
 
3293
+ const CheckIcon$3 = ({
3294
+ size: _size = 11,
3295
+ color: _color = "#fff"
3296
+ }) => /*#__PURE__*/React.createElement("svg", {
3297
+ width: _size,
3298
+ height: _size,
3299
+ viewBox: "0 0 24 24",
3300
+ fill: "none",
3301
+ stroke: _color,
3302
+ strokeWidth: "3",
3303
+ strokeLinecap: "round"
3304
+ }, /*#__PURE__*/React.createElement("polyline", {
3305
+ points: "20 6 9 17 4 12"
3306
+ }));
3307
+ const PersonIcon = ({
3308
+ size: _size2 = 16
3309
+ }) => /*#__PURE__*/React.createElement("svg", {
3310
+ width: _size2,
3311
+ height: _size2,
3312
+ viewBox: "0 0 24 24",
3313
+ fill: "currentColor"
3314
+ }, /*#__PURE__*/React.createElement("path", {
3315
+ d: "M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"
3316
+ }));
3317
+ const LocationIcon2 = ({
3318
+ size: _size3 = 16
3319
+ }) => /*#__PURE__*/React.createElement("svg", {
3320
+ width: _size3,
3321
+ height: _size3,
3322
+ viewBox: "0 0 24 24",
3323
+ fill: "currentColor"
3324
+ }, /*#__PURE__*/React.createElement("path", {
3325
+ d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
3326
+ }));
3327
+ const BuildingIcon$1 = ({
3328
+ size: _size4 = 16
3329
+ }) => /*#__PURE__*/React.createElement("svg", {
3330
+ width: _size4,
3331
+ height: _size4,
3332
+ viewBox: "0 0 24 24",
3333
+ fill: "currentColor"
3334
+ }, /*#__PURE__*/React.createElement("path", {
3335
+ d: "M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8V9h8v10zm-2-8h-4v2h4v-2zm0 4h-4v2h4v-2z"
3336
+ }));
3337
+ const EditIcon = ({
3338
+ size: _size5 = 14
3339
+ }) => /*#__PURE__*/React.createElement("svg", {
3340
+ width: _size5,
3341
+ height: _size5,
3342
+ viewBox: "0 0 24 24",
3343
+ fill: "none",
3344
+ stroke: "currentColor",
3345
+ strokeWidth: "2",
3346
+ strokeLinecap: "round"
3347
+ }, /*#__PURE__*/React.createElement("path", {
3348
+ d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
3349
+ }), /*#__PURE__*/React.createElement("path", {
3350
+ d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"
3351
+ }));
3352
+ const SectionHead$3 = ({
3353
+ icon,
3354
+ label
3355
+ }) => /*#__PURE__*/React.createElement("div", {
3356
+ style: {
3357
+ display: "flex",
3358
+ alignItems: "center",
3359
+ gap: "8px",
3360
+ marginBottom: "16px",
3361
+ marginTop: "4px"
3362
+ }
3363
+ }, /*#__PURE__*/React.createElement("div", {
3364
+ style: {
3365
+ opacity: 0.5,
3366
+ display: "flex"
3367
+ }
3368
+ }, icon), /*#__PURE__*/React.createElement("span", {
3369
+ style: {
3370
+ fontSize: "15px",
3371
+ fontWeight: "600",
3372
+ color: "#0B0C0C",
3373
+ whiteSpace: "nowrap"
3374
+ }
3375
+ }, label), /*#__PURE__*/React.createElement("div", {
3376
+ style: {
3377
+ flex: 1,
3378
+ height: "1px",
3379
+ background: "#EAECF0"
3380
+ }
3381
+ }));
3382
+ const ReviewCard = ({
3383
+ icon,
3384
+ title,
3385
+ onEdit,
3386
+ editLabel,
3387
+ rows
3388
+ }) => /*#__PURE__*/React.createElement("div", {
3389
+ style: {
3390
+ border: "0.5px solid #EAECF0",
3391
+ borderRadius: "10px",
3392
+ overflow: "hidden",
3393
+ marginBottom: "16px",
3394
+ animation: "fadeSlideIn 0.3s ease"
3395
+ }
3396
+ }, /*#__PURE__*/React.createElement("div", {
3397
+ style: {
3398
+ display: "flex",
3399
+ justifyContent: "space-between",
3400
+ alignItems: "center",
3401
+ padding: "14px 16px",
3402
+ background: "#F9FAFB",
3403
+ borderBottom: "0.5px solid #EAECF0"
3404
+ }
3405
+ }, /*#__PURE__*/React.createElement("div", {
3406
+ style: {
3407
+ display: "flex",
3408
+ alignItems: "center",
3409
+ gap: "8px"
3410
+ }
3411
+ }, /*#__PURE__*/React.createElement("div", {
3412
+ style: {
3413
+ opacity: 0.5,
3414
+ display: "flex"
3415
+ }
3416
+ }, icon), /*#__PURE__*/React.createElement("span", {
3417
+ style: {
3418
+ fontSize: "14px",
3419
+ fontWeight: "600",
3420
+ color: "#0B0C0C"
3421
+ }
3422
+ }, title)), /*#__PURE__*/React.createElement("button", {
3423
+ onClick: onEdit,
3424
+ style: {
3425
+ display: "flex",
3426
+ alignItems: "center",
3427
+ gap: "5px",
3428
+ background: "none",
3429
+ border: "0.5px solid #D0D5DD",
3430
+ borderRadius: "6px",
3431
+ padding: "5px 12px",
3432
+ fontSize: "12px",
3433
+ fontWeight: "600",
3434
+ color: "#185FA5",
3435
+ cursor: "pointer"
3436
+ }
3437
+ }, /*#__PURE__*/React.createElement(EditIcon, {
3438
+ size: 12
3439
+ }), editLabel)), /*#__PURE__*/React.createElement("div", {
3440
+ style: {
3441
+ padding: "4px 0"
3442
+ }
3443
+ }, rows.map((row, i) => row.value ? /*#__PURE__*/React.createElement("div", {
3444
+ key: i,
3445
+ style: {
3446
+ display: "flex",
3447
+ alignItems: "flex-start",
3448
+ padding: "10px 16px",
3449
+ borderBottom: i < rows.length - 1 ? "0.5px solid #F2F4F7" : "none"
3450
+ }
3451
+ }, /*#__PURE__*/React.createElement("div", {
3452
+ style: {
3453
+ flex: "0 0 180px",
3454
+ fontSize: "12px",
3455
+ fontWeight: "600",
3456
+ color: "#667085",
3457
+ textTransform: "uppercase",
3458
+ letterSpacing: "0.04em",
3459
+ paddingTop: "1px"
3460
+ }
3461
+ }, row.label), /*#__PURE__*/React.createElement("div", {
3462
+ style: {
3463
+ flex: 1,
3464
+ fontSize: "14px",
3465
+ color: "#101828",
3466
+ fontWeight: "500",
3467
+ wordBreak: "break-word"
3468
+ }
3469
+ }, row.value)) : null)));
2958
3470
  const Review = () => {
2959
- var _propertyDetails$conn, _propertyDetails$conn2;
3471
+ var _propertyDetails$conn, _propertyDetails$conn2, _propertyDetails$user, _propertyDetails$noOf;
2960
3472
  const {
2961
3473
  t
2962
3474
  } = useTranslation();
2963
3475
  const history = useHistory();
2964
3476
  const location = useLocation();
2965
3477
  const {
2966
- kNumber = "NA",
3478
+ kNumber = "EKYC-1234567890",
2967
3479
  aadhaarDetails = {},
2968
3480
  addressDetails = {},
2969
3481
  propertyDetails = {}
@@ -2982,194 +3494,311 @@ const Review = () => {
2982
3494
  };
2983
3495
  return /*#__PURE__*/React.createElement("div", {
2984
3496
  className: "inbox-container"
2985
- }, /*#__PURE__*/React.createElement("div", {
3497
+ }, /*#__PURE__*/React.createElement("style", null, `
3498
+ @keyframes fadeSlideIn {
3499
+ from { opacity: 0; transform: translateY(8px); }
3500
+ to { opacity: 1; transform: translateY(0); }
3501
+ }
3502
+ `), /*#__PURE__*/React.createElement("div", {
2986
3503
  className: "filters-container"
2987
3504
  }, /*#__PURE__*/React.createElement(Card, {
2988
- className: "sidebar-title-card",
2989
3505
  style: {
2990
3506
  display: "flex",
2991
3507
  alignItems: "center",
2992
- padding: "16px",
2993
- marginBottom: "16px",
2994
- borderRadius: "4px"
3508
+ padding: "12px 16px",
3509
+ marginBottom: "12px",
3510
+ borderRadius: "8px"
2995
3511
  }
2996
3512
  }, /*#__PURE__*/React.createElement("div", {
2997
- className: "icon-container",
2998
3513
  style: {
2999
- color: "#0068faff",
3000
- marginRight: "12px"
3514
+ color: "#185FA5",
3515
+ marginRight: "10px",
3516
+ display: "flex"
3001
3517
  }
3002
3518
  }, /*#__PURE__*/React.createElement(HomeIcon, {
3003
3519
  style: {
3004
- width: "24px",
3005
- height: "24px"
3520
+ width: "20px",
3521
+ height: "20px"
3006
3522
  }
3007
3523
  })), /*#__PURE__*/React.createElement("div", {
3008
3524
  style: {
3009
- fontWeight: "700",
3010
- fontSize: "18px",
3525
+ fontWeight: "600",
3526
+ fontSize: "15px",
3011
3527
  color: "#0B0C0C"
3012
3528
  }
3013
- }, t("EKYC_PROCESS"))), /*#__PURE__*/React.createElement("div", {
3529
+ }, t("EKYC_PROCESS") || "eKYC Process")), /*#__PURE__*/React.createElement("div", {
3014
3530
  style: {
3015
- backgroundColor: "#FFFFFF",
3016
- padding: "16px",
3531
+ background: "#fff",
3532
+ padding: "16px 14px",
3017
3533
  borderRadius: "8px",
3018
- border: "1px solid #EAECF0",
3019
- boxShadow: "0 2px 4px rgba(0,0,0,0.02)"
3534
+ border: "1px solid #EAECF0"
3020
3535
  }
3021
- }, /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, /*#__PURE__*/React.createElement(CheckPoint, {
3536
+ }, [{
3022
3537
  label: t("EKYC_STEP_AADHAAR") || "Aadhaar",
3023
- isCompleted: true
3024
- }), /*#__PURE__*/React.createElement(CheckPoint, {
3538
+ done: true,
3539
+ active: false
3540
+ }, {
3025
3541
  label: t("EKYC_STEP_ADDRESS") || "Address",
3026
- isCompleted: true
3027
- }), /*#__PURE__*/React.createElement(CheckPoint, {
3542
+ done: true,
3543
+ active: false
3544
+ }, {
3028
3545
  label: t("EKYC_STEP_PROPERTY") || "Property",
3029
- isCompleted: true
3030
- }), /*#__PURE__*/React.createElement(CheckPoint, {
3546
+ done: true,
3547
+ active: false
3548
+ }, {
3031
3549
  label: t("EKYC_STEP_REVIEW") || "Review",
3032
- isCompleted: false
3033
- })))), /*#__PURE__*/React.createElement("div", {
3550
+ done: false,
3551
+ active: true
3552
+ }].map((step, i) => /*#__PURE__*/React.createElement("div", {
3553
+ key: i,
3034
3554
  style: {
3035
- flex: 1,
3036
- marginLeft: "16px"
3555
+ display: "flex",
3556
+ gap: "10px",
3557
+ alignItems: "flex-start",
3558
+ position: "relative",
3559
+ paddingBottom: i < 3 ? "18px" : 0
3037
3560
  }
3038
- }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
3561
+ }, i < 3 && /*#__PURE__*/React.createElement("div", {
3039
3562
  style: {
3040
- display: "flex",
3041
- justifyContent: "space-between",
3042
- alignItems: "center",
3043
- marginBottom: "24px"
3563
+ position: "absolute",
3564
+ left: "10px",
3565
+ top: "22px",
3566
+ width: "1px",
3567
+ height: "calc(100% - 10px)",
3568
+ background: "#EAECF0"
3044
3569
  }
3045
- }, /*#__PURE__*/React.createElement(Header, null, t("EKYC_REVIEW_DETAILS") || "Review Details"), /*#__PURE__*/React.createElement("div", {
3570
+ }), /*#__PURE__*/React.createElement("div", {
3046
3571
  style: {
3047
- fontSize: "14px",
3048
- fontWeight: "700",
3049
- color: "#505A5F"
3572
+ width: "20px",
3573
+ height: "20px",
3574
+ borderRadius: "50%",
3575
+ flexShrink: 0,
3576
+ marginTop: "1px",
3577
+ border: step.done ? "none" : step.active ? "1.5px solid #185FA5" : "1.5px solid #D0D5DD",
3578
+ background: step.done ? "#0F6E56" : step.active ? "#E6F1FB" : "#fff",
3579
+ display: "flex",
3580
+ alignItems: "center",
3581
+ justifyContent: "center",
3582
+ fontSize: "10px",
3583
+ fontWeight: "500",
3584
+ color: step.done ? "#fff" : step.active ? "#185FA5" : "#98A2B3"
3050
3585
  }
3051
- }, t("EKYC_K_NUMBER"), ": ", /*#__PURE__*/React.createElement("span", {
3586
+ }, step.done ? /*#__PURE__*/React.createElement(CheckIcon$3, {
3587
+ size: 11,
3588
+ color: "#fff"
3589
+ }) : i + 1), /*#__PURE__*/React.createElement("div", {
3052
3590
  style: {
3053
- color: "#0B0C0C"
3591
+ fontSize: "12px",
3592
+ paddingTop: "2px",
3593
+ color: step.done ? "#0F6E56" : step.active ? "#0B0C0C" : "#667085",
3594
+ fontWeight: step.done || step.active ? "600" : "400"
3054
3595
  }
3055
- }, kNumber))), /*#__PURE__*/React.createElement(Card, {
3596
+ }, step.label))))), /*#__PURE__*/React.createElement("div", {
3056
3597
  style: {
3057
- padding: "24px",
3058
- marginBottom: "24px",
3059
- borderRadius: "12px",
3060
- border: "1px solid #EAECF0"
3598
+ flex: 1,
3599
+ marginLeft: "16px"
3061
3600
  }
3062
- }, /*#__PURE__*/React.createElement("div", {
3601
+ }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
3063
3602
  style: {
3064
3603
  display: "flex",
3065
3604
  justifyContent: "space-between",
3066
3605
  alignItems: "center",
3067
- marginBottom: "16px"
3606
+ marginBottom: "20px"
3068
3607
  }
3069
3608
  }, /*#__PURE__*/React.createElement(CardHeader, {
3070
3609
  style: {
3071
3610
  margin: 0,
3072
- fontSize: "18px",
3073
- color: "#0B0C0C"
3611
+ fontSize: "18px"
3074
3612
  }
3075
- }, t("EKYC_AADHAAR_VERIFICATION_HEADER") || "Aadhaar Details"), /*#__PURE__*/React.createElement("span", {
3076
- onClick: handleEditAadhaar,
3613
+ }, t("EKYC_REVIEW_DETAILS") || "Review Details"), /*#__PURE__*/React.createElement("div", {
3077
3614
  style: {
3078
- color: "#3A8DCC",
3079
- fontWeight: "600",
3080
- cursor: "pointer",
3081
- fontSize: "14px"
3615
+ background: "#F9FAFB",
3616
+ border: "0.5px solid #EAECF0",
3617
+ borderRadius: "20px",
3618
+ padding: "4px 14px",
3619
+ fontSize: "12px",
3620
+ color: "#667085"
3082
3621
  }
3083
- }, t("CS_COMMON_EDIT"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
3084
- label: t("EKYC_NAME"),
3085
- text: aadhaarDetails.userName || "Rajesh Kumar Singh"
3086
- }), /*#__PURE__*/React.createElement(Row, {
3087
- label: t("EKYC_AADHAAR"),
3088
- text: aadhaarDetails.aadhaarLastFour ? `XXXX XXXX ${aadhaarDetails.aadhaarLastFour}` : t("CS_NA")
3089
- }), /*#__PURE__*/React.createElement(Row, {
3090
- label: t("EKYC_MOBILE_NO"),
3091
- text: aadhaarDetails.mobileNumber || t("CS_NA")
3092
- }), /*#__PURE__*/React.createElement(Row, {
3093
- label: t("EKYC_EMAIL_ADDRESS"),
3094
- text: aadhaarDetails.email || t("CS_NA")
3095
- }))), /*#__PURE__*/React.createElement(Card, {
3622
+ }, t("EKYC_K_NUMBER") || "K Number", ":", " ", /*#__PURE__*/React.createElement("span", {
3096
3623
  style: {
3097
- padding: "24px",
3098
- marginBottom: "24px",
3099
- borderRadius: "12px",
3100
- border: "1px solid #EAECF0"
3624
+ color: "#0B0C0C",
3625
+ fontWeight: "600"
3101
3626
  }
3102
- }, /*#__PURE__*/React.createElement("div", {
3627
+ }, kNumber))), /*#__PURE__*/React.createElement("div", {
3103
3628
  style: {
3629
+ backgroundColor: "#E1F5EE",
3630
+ border: "0.5px solid #5DCAA5",
3631
+ borderRadius: "8px",
3632
+ padding: "12px 16px",
3104
3633
  display: "flex",
3105
- justifyContent: "space-between",
3106
3634
  alignItems: "center",
3107
- marginBottom: "16px"
3635
+ gap: "10px",
3636
+ marginBottom: "24px"
3108
3637
  }
3109
- }, /*#__PURE__*/React.createElement(CardHeader, {
3638
+ }, /*#__PURE__*/React.createElement("div", {
3110
3639
  style: {
3111
- margin: 0,
3112
- fontSize: "18px",
3113
- color: "#0B0C0C"
3640
+ backgroundColor: "#9FE1CB",
3641
+ padding: "5px",
3642
+ borderRadius: "6px",
3643
+ display: "flex",
3644
+ flexShrink: 0
3114
3645
  }
3115
- }, t("EKYC_ADDRESS_DETAILS_HEADER") || "Address Details"), /*#__PURE__*/React.createElement("span", {
3116
- onClick: handleEditAddress,
3646
+ }, /*#__PURE__*/React.createElement("svg", {
3647
+ width: "14",
3648
+ height: "14",
3649
+ viewBox: "0 0 24 24",
3650
+ fill: "none",
3651
+ stroke: "#085041",
3652
+ strokeWidth: "3",
3653
+ strokeLinecap: "round"
3654
+ }, /*#__PURE__*/React.createElement("polyline", {
3655
+ points: "20 6 9 17 4 12"
3656
+ }))), /*#__PURE__*/React.createElement("div", {
3117
3657
  style: {
3118
- color: "#3A8DCC",
3119
- fontWeight: "600",
3120
- cursor: "pointer",
3121
- fontSize: "14px"
3658
+ fontSize: "13px",
3659
+ color: "#04342C",
3660
+ fontWeight: "500"
3122
3661
  }
3123
- }, t("CS_COMMON_EDIT"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
3124
- label: t("EKYC_FULL_ADDRESS"),
3125
- text: addressDetails.fullAddress || "H.No. 123, Sector 15, Rohini"
3126
- }), /*#__PURE__*/React.createElement(Row, {
3127
- label: t("EKYC_PINCODE"),
3128
- text: addressDetails.pincode || "110085"
3129
- }))), /*#__PURE__*/React.createElement(Card, {
3662
+ }, t("EKYC_REVIEW_NOTICE") || "Please review all details carefully before submitting. You can edit any section by clicking Edit.")), /*#__PURE__*/React.createElement("div", {
3130
3663
  style: {
3131
- padding: "24px",
3132
- marginBottom: "24px",
3133
- borderRadius: "12px",
3134
- border: "1px solid #EAECF0"
3664
+ animation: "fadeSlideIn 0.3s ease"
3135
3665
  }
3136
- }, /*#__PURE__*/React.createElement("div", {
3666
+ }, /*#__PURE__*/React.createElement(SectionHead$3, {
3667
+ icon: /*#__PURE__*/React.createElement(PersonIcon, {
3668
+ size: 16
3669
+ }),
3670
+ label: t("EKYC_AADHAAR_VERIFICATION_HEADER") || "Aadhaar details"
3671
+ }), /*#__PURE__*/React.createElement(ReviewCard, {
3672
+ icon: /*#__PURE__*/React.createElement(PersonIcon, {
3673
+ size: 16
3674
+ }),
3675
+ title: t("EKYC_AADHAAR_VERIFICATION_HEADER") || "Aadhaar details",
3676
+ onEdit: handleEditAadhaar,
3677
+ editLabel: t("CS_COMMON_EDIT") || "Edit",
3678
+ rows: [{
3679
+ label: t("EKYC_NAME") || "Name",
3680
+ value: aadhaarDetails.userName || "Rajesh Kumar Singh"
3681
+ }, {
3682
+ label: t("EKYC_AADHAAR") || "Aadhaar no.",
3683
+ value: aadhaarDetails.aadhaarLastFour ? `XXXX XXXX ${aadhaarDetails.aadhaarLastFour}` : "XXXX XXXX 1234"
3684
+ }, {
3685
+ label: t("EKYC_MOBILE_NO") || "Mobile no.",
3686
+ value: aadhaarDetails.mobileNumber || "XXXXXXXXXX"
3687
+ }, {
3688
+ label: t("EKYC_EMAIL_ADDRESS") || "Email",
3689
+ value: aadhaarDetails.email || null
3690
+ }]
3691
+ }), /*#__PURE__*/React.createElement("hr", {
3137
3692
  style: {
3138
- display: "flex",
3139
- justifyContent: "space-between",
3140
- alignItems: "center",
3141
- marginBottom: "16px"
3693
+ margin: "20px 0",
3694
+ border: 0,
3695
+ borderTop: "1px solid #EAECF0"
3142
3696
  }
3143
- }, /*#__PURE__*/React.createElement(CardHeader, {
3697
+ }), /*#__PURE__*/React.createElement(SectionHead$3, {
3698
+ icon: /*#__PURE__*/React.createElement(LocationIcon2, {
3699
+ size: 16
3700
+ }),
3701
+ label: t("EKYC_ADDRESS_DETAILS_HEADER") || "Address details"
3702
+ }), /*#__PURE__*/React.createElement(ReviewCard, {
3703
+ icon: /*#__PURE__*/React.createElement(LocationIcon2, {
3704
+ size: 16
3705
+ }),
3706
+ title: t("EKYC_ADDRESS_DETAILS_HEADER") || "Address details",
3707
+ onEdit: handleEditAddress,
3708
+ editLabel: t("CS_COMMON_EDIT") || "Edit",
3709
+ rows: [{
3710
+ label: t("EKYC_FULL_ADDRESS") || "Full address",
3711
+ value: addressDetails.fullAddress || "H.No. 123, Sector 15, Rohini, Delhi – 110085"
3712
+ }, {
3713
+ label: t("EKYC_FLAT_HOUSE_NUMBER") || "Flat / House no.",
3714
+ value: addressDetails.flatNo || null
3715
+ }, {
3716
+ label: t("EKYC_BUILDING_TOWER") || "Building",
3717
+ value: addressDetails.building || null
3718
+ }, {
3719
+ label: t("EKYC_LANDMARK") || "Landmark",
3720
+ value: addressDetails.landmark || null
3721
+ }, {
3722
+ label: t("EKYC_PINCODE") || "Pincode",
3723
+ value: addressDetails.pincode || "110085"
3724
+ }, {
3725
+ label: t("EKYC_ASSEMBLY") || "Assembly",
3726
+ value: addressDetails.assembly || "AC-12 Chandni Chowk"
3727
+ }, {
3728
+ label: t("EKYC_WARD") || "Ward",
3729
+ value: addressDetails.ward || "WARD-45 Civil Lines"
3730
+ }]
3731
+ }), /*#__PURE__*/React.createElement("hr", {
3144
3732
  style: {
3145
- margin: 0,
3146
- fontSize: "18px",
3147
- color: "#0B0C0C"
3733
+ margin: "20px 0",
3734
+ border: 0,
3735
+ borderTop: "1px solid #EAECF0"
3148
3736
  }
3149
- }, t("EKYC_PROPERTY_INFO") || "Property Information"), /*#__PURE__*/React.createElement("span", {
3150
- onClick: handleEditProperty,
3737
+ }), /*#__PURE__*/React.createElement(SectionHead$3, {
3738
+ icon: /*#__PURE__*/React.createElement(BuildingIcon$1, {
3739
+ size: 16
3740
+ }),
3741
+ label: t("EKYC_PROPERTY_INFO") || "Property details"
3742
+ }), /*#__PURE__*/React.createElement(ReviewCard, {
3743
+ icon: /*#__PURE__*/React.createElement(BuildingIcon$1, {
3744
+ size: 16
3745
+ }),
3746
+ title: t("EKYC_PROPERTY_INFO") || "Property details",
3747
+ onEdit: handleEditProperty,
3748
+ editLabel: t("CS_COMMON_EDIT") || "Edit",
3749
+ rows: [{
3750
+ label: t("EKYC_PROPERTY_OWNER") || "Property owner",
3751
+ value: propertyDetails.ownerType || "Owner"
3752
+ }, {
3753
+ label: t("EKYC_PID_NUMBER") || "PID number",
3754
+ value: propertyDetails.pidNumber || null
3755
+ }, {
3756
+ label: t("EKYC_TYPE_OF_CONNECTION") || "Type of connection",
3757
+ value: ((_propertyDetails$conn = propertyDetails.connectionCategory) === null || _propertyDetails$conn === void 0 ? void 0 : _propertyDetails$conn.label) || null
3758
+ }, {
3759
+ label: t("EKYC_CONNECTION_CATEGORY") || "Connection category",
3760
+ value: ((_propertyDetails$conn2 = propertyDetails.connectionType) === null || _propertyDetails$conn2 === void 0 ? void 0 : _propertyDetails$conn2.label) || null
3761
+ }, {
3762
+ label: t("EKYC_USER_TYPE") || "User type",
3763
+ value: ((_propertyDetails$user = propertyDetails.userType) === null || _propertyDetails$user === void 0 ? void 0 : _propertyDetails$user.label) || null
3764
+ }, {
3765
+ label: t("EKYC_NO_OF_FLOORS") || "No. of floors",
3766
+ value: ((_propertyDetails$noOf = propertyDetails.noOfFloors) === null || _propertyDetails$noOf === void 0 ? void 0 : _propertyDetails$noOf.label) || null
3767
+ }]
3768
+ })), /*#__PURE__*/React.createElement("div", {
3151
3769
  style: {
3152
- color: "#3A8DCC",
3153
- fontWeight: "600",
3154
- cursor: "pointer",
3155
- fontSize: "14px"
3770
+ marginTop: "24px"
3156
3771
  }
3157
- }, t("CS_COMMON_EDIT"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
3158
- label: t("Property_Owner"),
3159
- text: propertyDetails.ownerType || "OWNER"
3160
- }), /*#__PURE__*/React.createElement(Row, {
3161
- label: t("PID_Number"),
3162
- text: propertyDetails.pidNumber || t("CS_NA")
3163
- }), /*#__PURE__*/React.createElement(Row, {
3164
- label: t("Type_of_Connection"),
3165
- text: ((_propertyDetails$conn = propertyDetails.connectionType) === null || _propertyDetails$conn === void 0 ? void 0 : _propertyDetails$conn.label) || t("CS_NA")
3166
- }), /*#__PURE__*/React.createElement(Row, {
3167
- label: t("Connection_Category"),
3168
- text: ((_propertyDetails$conn2 = propertyDetails.connectionCategory) === null || _propertyDetails$conn2 === void 0 ? void 0 : _propertyDetails$conn2.label) || t("CS_NA")
3169
- }))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
3772
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
3170
3773
  label: t("ES_COMMON_SUBMIT") || "Submit",
3171
3774
  onSubmit: handleSubmit
3172
- })))));
3775
+ })), /*#__PURE__*/React.createElement("div", {
3776
+ style: {
3777
+ display: "flex",
3778
+ alignItems: "center",
3779
+ justifyContent: "center",
3780
+ gap: "5px",
3781
+ marginTop: "16px",
3782
+ fontSize: "11px",
3783
+ color: "#98A2B3"
3784
+ }
3785
+ }, /*#__PURE__*/React.createElement("svg", {
3786
+ width: "11",
3787
+ height: "11",
3788
+ viewBox: "0 0 24 24",
3789
+ fill: "none",
3790
+ stroke: "currentColor",
3791
+ strokeWidth: "2",
3792
+ strokeLinecap: "round"
3793
+ }, /*#__PURE__*/React.createElement("rect", {
3794
+ x: "3",
3795
+ y: "11",
3796
+ width: "18",
3797
+ height: "11",
3798
+ rx: "2"
3799
+ }), /*#__PURE__*/React.createElement("path", {
3800
+ d: "M7 11V7a5 5 0 0 1 10 0v4"
3801
+ })), t("EKYC_SECURE_DATA_NOTICE") || "Your data is encrypted and secure"))));
3173
3802
  };
3174
3803
 
3175
3804
  const EmployeeApp = ({