@djb25/digit-ui-module-ekyc 1.0.61 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6417,14 +6417,6 @@ const AssignEkycModal = _ref => {
6417
6417
  const _useState7 = React.useState(filters),
6418
6418
  debouncedFilters = _useState7[0],
6419
6419
  setDebouncedFilters = _useState7[1];
6420
- const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.ZROLocation(tenantId),
6421
- zroLocationsData = _Digit$Hooks$ws$useWS.data;
6422
- const mappedZROLocation = React.useMemo(() => {
6423
- return (zroLocationsData || []).map(item => ({
6424
- code: item.code,
6425
- name: item.name
6426
- }));
6427
- }, [zroLocationsData]);
6428
6420
  const _Digit$Hooks$useCommo = Digit.Hooks.useCommonMDMS(tenantId, "egov-location", ["TenantBoundary"]),
6429
6421
  egovLocationData = _Digit$Hooks$useCommo.data;
6430
6422
  const boundaryData = React.useMemo(() => {
@@ -6437,38 +6429,6 @@ const AssignEkycModal = _ref => {
6437
6429
  const boundary = (revenueData === null || revenueData === void 0 ? void 0 : revenueData.boundary) || [];
6438
6430
  return Array.isArray(boundary) ? boundary : [boundary];
6439
6431
  }, [egovLocationData]);
6440
- const _useMemo = React.useMemo(() => {
6441
- const assemblies = new Map();
6442
- const wards = new Map();
6443
- const boundaries = Array.isArray(boundaryData) ? boundaryData : boundaryData ? [boundaryData] : [];
6444
- const traverse = node => {
6445
- if (!node) return;
6446
- if (node.label === "Ward" || node.label === "WARD" || node.label === "Block" || node.label === "BLOCK") {
6447
- const code = node.code || node.localname || node.name;
6448
- const name = node.name || node.localname || code;
6449
- if (code) wards.set(code, {
6450
- code,
6451
- name: name
6452
- });
6453
- }
6454
- if (node.label === "Assembly Constituency" || node.label === "ASSEMBLY_CONSTITUENCY") {
6455
- const code = node.code || node.localname || node.name;
6456
- const name = node.name || node.localname || code;
6457
- if (code) assemblies.set(code, {
6458
- code,
6459
- name: name
6460
- });
6461
- }
6462
- if (node.children && node.children.length > 0) {
6463
- node.children.forEach(traverse);
6464
- }
6465
- };
6466
- boundaries.forEach(traverse);
6467
- return {
6468
- assemblyOptions: Array.from(assemblies.values()).sort((a, b) => a.name.localeCompare(b.name)),
6469
- wardOptions: Array.from(wards.values()).sort((a, b) => a.name.localeCompare(b.name))
6470
- };
6471
- }, [boundaryData]);
6472
6432
  const structuredLocalityData = React.useMemo(() => {
6473
6433
  let localities = [];
6474
6434
  const boundaries = Array.isArray(boundaryData) ? boundaryData : boundaryData ? [boundaryData] : [];
@@ -6790,9 +6750,10 @@ const AssignEkycModal = _ref => {
6790
6750
  value: filters.kno,
6791
6751
  onChange: e => handleFilterChange("kno", e.target.value)
6792
6752
  }), /*#__PURE__*/React__default.createElement("select", {
6793
- className: "form-control",
6753
+ className: "form-control disabled",
6794
6754
  value: filters.pincode,
6795
- onChange: e => handleFilterChange("pincode", e.target.value)
6755
+ onChange: e => handleFilterChange("pincode", e.target.value),
6756
+ disabled: true
6796
6757
  }, /*#__PURE__*/React__default.createElement("option", {
6797
6758
  value: ""
6798
6759
  }, "Select Pincode"), pincodeOptions.map(pin => /*#__PURE__*/React__default.createElement("option", {
@@ -7285,7 +7246,6 @@ const SurveyorDetailsDashboard = () => {
7285
7246
  meterPhotoFileStoreId: t("METER_PHOTO_FILESTORE_ID"),
7286
7247
  modifiedBy: t("MODIFIED_BY"),
7287
7248
  emailId: t("EMAIL_ID"),
7288
- fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
7289
7249
  dob: t("DOB"),
7290
7250
  consumerType: t("CONSUMER_TYPE"),
7291
7251
  createdTime: t("CREATED_TIME"),
@@ -8128,7 +8088,7 @@ const breadcrumb = (userType, listLabel, listPath, detailLabel) => [{
8128
8088
  }, {
8129
8089
  label: detailLabel
8130
8090
  }];
8131
- const getEkycRoutes = userType => [{
8091
+ const getEkycRoutes = (userType, t) => [{
8132
8092
  path: "/dashboard",
8133
8093
  component: Dashboard,
8134
8094
  layout: "normal",
@@ -8185,7 +8145,7 @@ const getEkycRoutes = userType => [{
8185
8145
  path: ["/vendors/:vendorId", "/vendors"],
8186
8146
  component: VendorDetailsCard,
8187
8147
  layout: "normal",
8188
- breadcrumb: breadcrumb(userType, "EKYC_VENDORS", "vendors:vendorId", "EKYC_VENDOR_DETAILS")
8148
+ breadcrumb: breadcrumb(userType, "EKYC_VENDORS", "admin-dashboard", "EKYC_VENDOR_DETAILS")
8189
8149
  }, {
8190
8150
  path: ["/supervisor-dashboard/:id", "/supervisor-dashboard"],
8191
8151
  component: SupervisorDetailsCard,