@djb25/digit-ui-module-vendor 1.0.13 → 1.0.14

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.
@@ -8185,7 +8185,7 @@ const VendorInbox = props => {
8185
8185
  const [vendors, setVendors] = useState([]);
8186
8186
  const [drivers, setDrivers] = useState([]);
8187
8187
  const queryClient = useQueryClient();
8188
- const [address, setAddress] = useState();
8188
+ const [toast, setToast] = useState(null);
8189
8189
  const {
8190
8190
  data: vendorData,
8191
8191
  isLoading: isVendorLoading,
@@ -8451,12 +8451,51 @@ const VendorInbox = props => {
8451
8451
  }, {
8452
8452
  enabled: (vendorIds === null || vendorIds === void 0 ? void 0 : vendorIds.length) > 0
8453
8453
  });
8454
+ const {
8455
+ data: allFillingPointsData
8456
+ } = Digit.Hooks.wt.useFillPointSearch({
8457
+ tenantId,
8458
+ filters: {
8459
+ limit: 1000
8460
+ }
8461
+ }, {
8462
+ enabled: true
8463
+ });
8464
+ const allFillingPoints = (allFillingPointsData === null || allFillingPointsData === void 0 ? void 0 : allFillingPointsData.fillingPoints) || [];
8465
+ const {
8466
+ mutate: mapFixedFilling
8467
+ } = Digit.Hooks.wt.useVendorFillingMap(tenantId);
8468
+ const onFillingPointSelect = (row, value) => {
8469
+ const payload = {
8470
+ mappings: [{
8471
+ tenantId: tenantId,
8472
+ fillingPointId: (value === null || value === void 0 ? void 0 : value.id) || (value === null || value === void 0 ? void 0 : value.bookingId) || (value === null || value === void 0 ? void 0 : value.fillingPointId),
8473
+ vendorId: row.original.id
8474
+ }]
8475
+ };
8476
+ mapFixedFilling(payload, {
8477
+ onSuccess: () => {
8478
+ setToast({
8479
+ label: t("WT_FIXED_FILLING_MAPPING_SUCCESS")
8480
+ });
8481
+ setTimeout(closeToast, 5000);
8482
+ },
8483
+ onError: err => {
8484
+ var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
8485
+ setToast({
8486
+ label: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || t("WT_FIXED_FILLING_MAPPING_FAIL"),
8487
+ error: true
8488
+ });
8489
+ setTimeout(closeToast, 5000);
8490
+ }
8491
+ });
8492
+ };
8454
8493
  const columns = React.useMemo(() => {
8455
8494
  switch (props.selectedTab) {
8456
8495
  case "VENDOR":
8457
8496
  return [{
8458
8497
  Header: t("ES_VENDOR_INBOX_VENDOR_NAME"),
8459
- disableSortBy: true,
8498
+ accessor: "name",
8460
8499
  Cell: ({
8461
8500
  row
8462
8501
  }) => {
@@ -8464,7 +8503,7 @@ const VendorInbox = props => {
8464
8503
  className: "link"
8465
8504
  }, /*#__PURE__*/React.createElement(Link, {
8466
8505
  to: "/digit-ui/employee/vendor/registry/vendor-details/" + row.original["id"]
8467
- }, /*#__PURE__*/React.createElement("div", null, row.original.name, /*#__PURE__*/React.createElement("br", null)))));
8506
+ }, /*#__PURE__*/React.createElement("div", null, row.original.name))));
8468
8507
  }
8469
8508
  }, {
8470
8509
  Header: t("ES_VENDOR_INBOX_DATE_VENDOR_CREATION"),
@@ -8475,13 +8514,52 @@ const VendorInbox = props => {
8475
8514
  var _row$original, _row$original$auditDe, _row$original2, _row$original2$auditD;
8476
8515
  return GetCell((_row$original = row.original) !== null && _row$original !== void 0 && (_row$original$auditDe = _row$original.auditDetails) !== null && _row$original$auditDe !== void 0 && _row$original$auditDe.createdTime ? Digit.DateUtils.ConvertEpochToDate((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : (_row$original2$auditD = _row$original2.auditDetails) === null || _row$original2$auditD === void 0 ? void 0 : _row$original2$auditD.createdTime) : "");
8477
8516
  }
8517
+ }, {
8518
+ Header: t("WT_FILLING_POINT"),
8519
+ accessor: row => {
8520
+ var _row$fillingpointmeta;
8521
+ return (row === null || row === void 0 ? void 0 : row.fillingPointId) || (row === null || row === void 0 ? void 0 : (_row$fillingpointmeta = row.fillingpointmetadata) === null || _row$fillingpointmeta === void 0 ? void 0 : _row$fillingpointmeta.fillingPointId) || (row === null || row === void 0 ? void 0 : row.filling_pt_name) || (row === null || row === void 0 ? void 0 : row.fillingPoint) || "NA";
8522
+ },
8523
+ id: "fillingPoint",
8524
+ Cell: ({
8525
+ row
8526
+ }) => {
8527
+ return /*#__PURE__*/React.createElement(Dropdown$2, {
8528
+ className: "fsm-registry-dropdown",
8529
+ selected: allFillingPoints === null || allFillingPoints === void 0 ? void 0 : allFillingPoints.find(fp => {
8530
+ var _fp$fillingpointmetad, _row$original$filling, _row$original$filling2, _row$original$filling3;
8531
+ const fpId = String(fp.id || fp.bookingId || fp.fillingPointId || fp.uuid || ((_fp$fillingpointmetad = fp.fillingpointmetadata) === null || _fp$fillingpointmetad === void 0 ? void 0 : _fp$fillingpointmetad.fillingPointId));
8532
+ const rowFpId = String(row.original.fillingPointId || ((_row$original$filling = row.original.fillingpointmetadata) === null || _row$original$filling === void 0 ? void 0 : _row$original$filling.fillingPointId) || row.original.filling_pt_name || row.original.fillingPoint || ((_row$original$filling2 = row.original.fillingPointDetail) === null || _row$original$filling2 === void 0 ? void 0 : _row$original$filling2.id) || ((_row$original$filling3 = row.original.fillingPointDetail) === null || _row$original$filling3 === void 0 ? void 0 : _row$original$filling3.bookingId));
8533
+ return fpId === rowFpId && rowFpId !== "undefined" && rowFpId !== "null";
8534
+ }),
8535
+ option: allFillingPoints,
8536
+ select: value => onFillingPointSelect(row, value),
8537
+ style: {
8538
+ textAlign: "left"
8539
+ },
8540
+ optionKey: "fillingPointName",
8541
+ t: t
8542
+ });
8543
+ }
8478
8544
  }, {
8479
8545
  Header: t("ES_VENDOR_INBOX_SERVICE_TYPE"),
8480
- disableSortBy: true,
8546
+ id: "serviceType",
8547
+ accessor: row => {
8548
+ var _row$dsoDetails, _additionalDetails;
8549
+ let additionalDetails = (_row$dsoDetails = row.dsoDetails) === null || _row$dsoDetails === void 0 ? void 0 : _row$dsoDetails.additionalDetails;
8550
+ if (typeof additionalDetails === "string") {
8551
+ try {
8552
+ additionalDetails = JSON.parse(additionalDetails);
8553
+ } catch (error) {
8554
+ additionalDetails = {};
8555
+ }
8556
+ }
8557
+ return ((_additionalDetails = additionalDetails) === null || _additionalDetails === void 0 ? void 0 : _additionalDetails.serviceType) || "N/A";
8558
+ },
8481
8559
  Cell: ({
8482
8560
  row
8483
8561
  }) => {
8484
- var _row$original$dsoDeta, _additionalDetails;
8562
+ var _row$original$dsoDeta, _additionalDetails2;
8485
8563
  let additionalDetails = (_row$original$dsoDeta = row.original.dsoDetails) === null || _row$original$dsoDeta === void 0 ? void 0 : _row$original$dsoDeta.additionalDetails;
8486
8564
  if (typeof additionalDetails === "string") {
8487
8565
  try {
@@ -8491,12 +8569,16 @@ const VendorInbox = props => {
8491
8569
  additionalDetails = {};
8492
8570
  }
8493
8571
  }
8494
- const serviceType = ((_additionalDetails = additionalDetails) === null || _additionalDetails === void 0 ? void 0 : _additionalDetails.serviceType) || "N/A";
8572
+ const serviceType = ((_additionalDetails2 = additionalDetails) === null || _additionalDetails2 === void 0 ? void 0 : _additionalDetails2.serviceType) || "N/A";
8495
8573
  return /*#__PURE__*/React.createElement("div", null, serviceType);
8496
8574
  }
8497
8575
  }, {
8498
8576
  Header: t("ES_VENDOR_REGISTRY_INBOX_ENABLED"),
8499
- disableSortBy: true,
8577
+ id: "status",
8578
+ accessor: row => {
8579
+ var _row$dsoDetails2;
8580
+ return ((_row$dsoDetails2 = row.dsoDetails) === null || _row$dsoDetails2 === void 0 ? void 0 : _row$dsoDetails2.status) || "";
8581
+ },
8500
8582
  Cell: ({
8501
8583
  row
8502
8584
  }) => {
@@ -8540,7 +8622,7 @@ const VendorInbox = props => {
8540
8622
  case "VEHICLE":
8541
8623
  return [{
8542
8624
  Header: t("ES_FSM_REGISTRY_INBOX_VEHICLE_NAME"),
8543
- disableSortBy: true,
8625
+ accessor: "registrationNumber",
8544
8626
  Cell: ({
8545
8627
  row
8546
8628
  }) => {
@@ -8548,7 +8630,7 @@ const VendorInbox = props => {
8548
8630
  className: "link"
8549
8631
  }, /*#__PURE__*/React.createElement(Link, {
8550
8632
  to: "/digit-ui/employee/vendor/registry/vehicle-details/" + row.original["registrationNumber"]
8551
- }, /*#__PURE__*/React.createElement("div", null, row.original.registrationNumber, /*#__PURE__*/React.createElement("br", null)))));
8633
+ }, /*#__PURE__*/React.createElement("div", null, row.original.registrationNumber))));
8552
8634
  }
8553
8635
  }, {
8554
8636
  Header: t("ES_FSM_REGISTRY_INBOX_DATE_VEHICLE_CREATION"),
@@ -8561,7 +8643,11 @@ const VendorInbox = props => {
8561
8643
  }
8562
8644
  }, {
8563
8645
  Header: t("ES_FSM_REGISTRY_INBOX_VENDOR_NAME"),
8564
- disableSortBy: true,
8646
+ id: "vendorName",
8647
+ accessor: row => {
8648
+ var _row$vendor;
8649
+ return ((_row$vendor = row.vendor) === null || _row$vendor === void 0 ? void 0 : _row$vendor.name) || "NA";
8650
+ },
8565
8651
  Cell: ({
8566
8652
  row
8567
8653
  }) => {
@@ -8570,11 +8656,23 @@ const VendorInbox = props => {
8570
8656
  }
8571
8657
  }, {
8572
8658
  Header: t("ES_VENDOR_INBOX_SERVICE_TYPE"),
8573
- disableSortBy: true,
8659
+ id: "serviceType",
8660
+ accessor: row => {
8661
+ var _additionalDetail;
8662
+ let additionalDetail = row.additionalDetails;
8663
+ if (typeof additionalDetail === "string") {
8664
+ try {
8665
+ additionalDetail = JSON.parse(additionalDetail);
8666
+ } catch (error) {
8667
+ additionalDetail = {};
8668
+ }
8669
+ }
8670
+ return ((_additionalDetail = additionalDetail) === null || _additionalDetail === void 0 ? void 0 : _additionalDetail.serviceType) || "N/A";
8671
+ },
8574
8672
  Cell: ({
8575
8673
  row
8576
8674
  }) => {
8577
- var _additionalDetail;
8675
+ var _additionalDetail2;
8578
8676
  let additionalDetail = row.original.additionalDetails;
8579
8677
  if (typeof additionalDetail === "string") {
8580
8678
  try {
@@ -8584,11 +8682,16 @@ const VendorInbox = props => {
8584
8682
  additionalDetail = {};
8585
8683
  }
8586
8684
  }
8587
- const serviceType = ((_additionalDetail = additionalDetail) === null || _additionalDetail === void 0 ? void 0 : _additionalDetail.serviceType) || "N/A";
8685
+ const serviceType = ((_additionalDetail2 = additionalDetail) === null || _additionalDetail2 === void 0 ? void 0 : _additionalDetail2.serviceType) || "N/A";
8588
8686
  return /*#__PURE__*/React.createElement("div", null, serviceType);
8589
8687
  }
8590
8688
  }, {
8591
8689
  Header: t("ES_FSM_REGISTRY_SELECT_DRIVER"),
8690
+ id: "driver",
8691
+ accessor: row => {
8692
+ var _row$driverData, _row$driver;
8693
+ return ((_row$driverData = row.driverData) === null || _row$driverData === void 0 ? void 0 : _row$driverData.name) || ((_row$driver = row.driver) === null || _row$driver === void 0 ? void 0 : _row$driver.name) || "NA";
8694
+ },
8592
8695
  Cell: ({
8593
8696
  row
8594
8697
  }) => {
@@ -8609,7 +8712,8 @@ const VendorInbox = props => {
8609
8712
  }
8610
8713
  }, {
8611
8714
  Header: t("ES_FSM_REGISTRY_INBOX_ENABLED"),
8612
- disableSortBy: true,
8715
+ id: "status",
8716
+ accessor: row => row.status || "",
8613
8717
  Cell: ({
8614
8718
  row
8615
8719
  }) => {
@@ -8628,7 +8732,11 @@ const VendorInbox = props => {
8628
8732
  case "DRIVER":
8629
8733
  return [{
8630
8734
  Header: t("ES_FSM_REGISTRY_INBOX_USERNAME"),
8631
- disableSortBy: true,
8735
+ id: "userName",
8736
+ accessor: row => {
8737
+ var _row$owner;
8738
+ return ((_row$owner = row.owner) === null || _row$owner === void 0 ? void 0 : _row$owner.userName) || "NA";
8739
+ },
8632
8740
  Cell: ({
8633
8741
  row
8634
8742
  }) => {
@@ -8637,12 +8745,11 @@ const VendorInbox = props => {
8637
8745
  className: "link"
8638
8746
  }, /*#__PURE__*/React.createElement(Link, {
8639
8747
  to: "/digit-ui/employee/vendor/registry/driver-details/" + row.original["id"]
8640
- }, /*#__PURE__*/React.createElement("div", null, ((_row$original$owner = row.original.owner) === null || _row$original$owner === void 0 ? void 0 : _row$original$owner.userName) || "NA", /*#__PURE__*/React.createElement("br", null)))));
8748
+ }, /*#__PURE__*/React.createElement("div", null, ((_row$original$owner = row.original.owner) === null || _row$original$owner === void 0 ? void 0 : _row$original$owner.userName) || "NA"))));
8641
8749
  }
8642
8750
  }, {
8643
8751
  Header: t("ES_FSM_REGISTRY_INBOX_DRIVER_NAME"),
8644
- disableSortBy: true,
8645
- accessor: "tripDetails",
8752
+ accessor: "name",
8646
8753
  Cell: ({
8647
8754
  row
8648
8755
  }) => {
@@ -8650,7 +8757,7 @@ const VendorInbox = props => {
8650
8757
  className: "link"
8651
8758
  }, /*#__PURE__*/React.createElement(Link, {
8652
8759
  to: "/digit-ui/employee/vendor/registry/driver-details/" + row.original["id"]
8653
- }, /*#__PURE__*/React.createElement("div", null, row.original.name, /*#__PURE__*/React.createElement("br", null)))));
8760
+ }, /*#__PURE__*/React.createElement("div", null, row.original.name))));
8654
8761
  }
8655
8762
  }, {
8656
8763
  Header: t("ES_FSM_REGISTRY_INBOX_DATE_DRIVER_CREATION"),
@@ -8663,6 +8770,11 @@ const VendorInbox = props => {
8663
8770
  }
8664
8771
  }, {
8665
8772
  Header: t("ES_FSM_REGISTRY_INBOX_VENDOR_NAME"),
8773
+ id: "vendorName",
8774
+ accessor: row => {
8775
+ var _row$vendorData, _row$vendor2;
8776
+ return ((_row$vendorData = row.vendorData) === null || _row$vendorData === void 0 ? void 0 : _row$vendorData.name) || ((_row$vendor2 = row.vendor) === null || _row$vendor2 === void 0 ? void 0 : _row$vendor2.name) || "NA";
8777
+ },
8666
8778
  Cell: ({
8667
8779
  row
8668
8780
  }) => {
@@ -8683,7 +8795,8 @@ const VendorInbox = props => {
8683
8795
  }
8684
8796
  }, {
8685
8797
  Header: t("ES_FSM_REGISTRY_INBOX_ENABLED"),
8686
- disableSortBy: true,
8798
+ id: "status",
8799
+ accessor: row => row.status || "",
8687
8800
  Cell: ({
8688
8801
  row
8689
8802
  }) => {
@@ -8750,9 +8863,8 @@ const VendorInbox = props => {
8750
8863
  getCellProps: cellInfo => {
8751
8864
  return {
8752
8865
  style: {
8753
- minWidth: cellInfo.column.Header === t("ES_INBOX_APPLICATION_NO") ? "240px" : "",
8754
- padding: cellInfo.column.Header === t("ES_FSM_REGISTRY_INBOX_VENDOR_NAME") ? "10px 18px" : "20px 18px",
8755
- fontSize: "16px"
8866
+ padding: "8px 12px",
8867
+ fontSize: "13.5px"
8756
8868
  }
8757
8869
  };
8758
8870
  },
@@ -9106,7 +9218,7 @@ const SelectServiceType = ({
9106
9218
  return /*#__PURE__*/React.createElement(Loader, null);
9107
9219
  }
9108
9220
  if (userType === "employee") {
9109
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, config.label), /*#__PURE__*/React.createElement(Dropdown$2, {
9221
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t(config.label)), /*#__PURE__*/React.createElement(Dropdown$2, {
9110
9222
  className: "payment-form-text-input-correction",
9111
9223
  isMandatory: config.isMandatory,
9112
9224
  selected: serviceTypes,
@@ -9873,24 +9985,26 @@ const VehicleConfig = (t, disabled = false) => {
9873
9985
  title: t("ES_FSM_VEHICLE_FORMAT_TIP")
9874
9986
  },
9875
9987
  error: t("FSM_REGISTRY_INVALID_REGISTRATION_NUMBER"),
9876
- defaultValue: "",
9877
- className: "payment-form-text-input-correction"
9988
+ defaultValue: ""
9878
9989
  }
9879
9990
  }, {
9880
9991
  label: "ES_VENDOR_REGISTRY_SERVICE_TYPE",
9881
9992
  isMandatory: true,
9882
9993
  type: "component",
9883
- route: "select-service",
9884
- hideInEmployee: false,
9885
- key: "additionalDetails",
9994
+ key: "serviceType",
9886
9995
  component: "SelectServiceType",
9887
9996
  disable: disabled,
9997
+ populators: {
9998
+ name: "serviceType",
9999
+ defaultValue: {
10000
+ code: "WT",
10001
+ name: "WT",
10002
+ i18nKey: "WT"
10003
+ }
10004
+ },
9888
10005
  texts: {
9889
- headerCaption: "",
9890
- header: "CS_COMMON_CHOOSE_SERVICE",
9891
- cardText: "CS_COMMON_SELECT_SERVICE",
9892
- submitBarLabel: "CS_COMMON_NEXT",
9893
- skipText: "CORE_COMMON_SKIP_CONTINUE"
10006
+ header: "CS_COMMON_CHOOSE_SERVICE_TYPE",
10007
+ submitBarLabel: "CS_COMMON_NEXT"
9894
10008
  }
9895
10009
  }, {
9896
10010
  route: "vehicle",
@@ -9971,8 +10085,7 @@ const VehicleConfig = (t, disabled = false) => {
9971
10085
  pattern: /^[A-Za-z]/
9972
10086
  },
9973
10087
  error: t("FSM_REGISTRY_INVALID_NAME"),
9974
- defaultValue: "",
9975
- className: "payment-form-text-input-correction"
10088
+ defaultValue: ""
9976
10089
  }
9977
10090
  }, {
9978
10091
  label: "ES_FSM_REGISTRY_NEW_VEHICLE_OWNER_PHONE",
@@ -9987,12 +10100,7 @@ const VehicleConfig = (t, disabled = false) => {
9987
10100
  pattern: /^[6-9]\d{9}$/
9988
10101
  },
9989
10102
  error: t("FSM_REGISTRY_INVALID_PHONE"),
9990
- defaultValue: "",
9991
- className: "payment-form-text-input-correction",
9992
- labelStyle: {
9993
- border: "1px solid black",
9994
- borderRight: "none"
9995
- }
10103
+ defaultValue: ""
9996
10104
  }
9997
10105
  }, {
9998
10106
  label: "ES_FSM_REGISTRY_NEW_GENDER",
@@ -10031,8 +10139,7 @@ const VehicleConfig = (t, disabled = false) => {
10031
10139
  pattern: /^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+$/
10032
10140
  },
10033
10141
  error: t("FSM_REGISTRY_INVALID_EMAIL"),
10034
- defaultValue: "",
10035
- className: "payment-form-text-input-correction"
10142
+ defaultValue: ""
10036
10143
  }
10037
10144
  }]
10038
10145
  }];
@@ -10088,6 +10195,11 @@ const AddVehicle = ({
10088
10195
  });
10089
10196
  const [canSubmit, setSubmitValve] = useState(false);
10090
10197
  const defaultValues = {
10198
+ serviceType: {
10199
+ code: "WT",
10200
+ name: "WT",
10201
+ i18nKey: "WT"
10202
+ },
10091
10203
  tripData: {
10092
10204
  noOfTrips: 1,
10093
10205
  amountPerTrip: null,
@@ -10115,7 +10227,7 @@ const AddVehicle = ({
10115
10227
  setShowToast(null);
10116
10228
  };
10117
10229
  const onSubmit = data => {
10118
- var _data$vehicle, _data$vehicle$type, _data$vehicle2, _data$vehicle2$modal, _data$vehicle3, _data$vehicle3$type, _data$additionalDetai, _data$selectGender;
10230
+ var _data$vehicle, _data$vehicle$type, _data$vehicle2, _data$vehicle2$modal, _data$vehicle3, _data$vehicle3$type, _data$serviceType, _data$selectGender;
10119
10231
  const registrationNumber = data === null || data === void 0 ? void 0 : data.registrationNumber;
10120
10232
  const vehicleType = data === null || data === void 0 ? void 0 : (_data$vehicle = data.vehicle) === null || _data$vehicle === void 0 ? void 0 : (_data$vehicle$type = _data$vehicle.type) === null || _data$vehicle$type === void 0 ? void 0 : _data$vehicle$type.code;
10121
10233
  const vehicleModal = data === null || data === void 0 ? void 0 : (_data$vehicle2 = data.vehicle) === null || _data$vehicle2 === void 0 ? void 0 : (_data$vehicle2$modal = _data$vehicle2.modal) === null || _data$vehicle2$modal === void 0 ? void 0 : _data$vehicle2$modal.code;
@@ -10126,7 +10238,7 @@ const AddVehicle = ({
10126
10238
  const fitnessValidity = new Date(`${data === null || data === void 0 ? void 0 : data.fitnessValidity}`).getTime();
10127
10239
  const ownerName = data === null || data === void 0 ? void 0 : data.ownerName;
10128
10240
  const phone = data === null || data === void 0 ? void 0 : data.phone;
10129
- const additionalDetails = data === null || data === void 0 ? void 0 : (_data$additionalDetai = data.additionalDetails) === null || _data$additionalDetai === void 0 ? void 0 : _data$additionalDetai.code;
10241
+ const additionalDetails = data === null || data === void 0 ? void 0 : (_data$serviceType = data.serviceType) === null || _data$serviceType === void 0 ? void 0 : _data$serviceType.code;
10130
10242
  const gender = data === null || data === void 0 ? void 0 : (_data$selectGender = data.selectGender) === null || _data$selectGender === void 0 ? void 0 : _data$selectGender.code;
10131
10243
  const emailId = data === null || data === void 0 ? void 0 : data.emailId;
10132
10244
  const dob = new Date(`${data.dob}`).getTime() || new Date(`1/1/1970`).getTime();
@@ -10356,7 +10468,6 @@ const VENDORCreate = ({
10356
10468
  const onSuccess = () => {
10357
10469
  clearParams();
10358
10470
  queryClient.invalidateQueries("VENDOR_CREATE");
10359
- queryClient.invalidateQueries("EMP_VENDOR_COMMON_SEARCH");
10360
10471
  };
10361
10472
  let commonFields = createConfig;
10362
10473
  commonFields.forEach(obj => {
@@ -11583,30 +11694,24 @@ const SelectVehicleType = ({
11583
11694
  if (!vehicleData || !serviceTypeData) {
11584
11695
  return /*#__PURE__*/React.createElement("div", null, t("ERROR_FETCHING_DATA"));
11585
11696
  }
11586
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
11587
- className: "card-label-smaller"
11588
- }, t("ES_FSM_REGISTRY_VEHICLE_MODEL")), /*#__PURE__*/React.createElement(Dropdown$2, {
11697
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("ES_FSM_REGISTRY_VEHICLE_MODEL")), /*#__PURE__*/React.createElement(Dropdown$2, {
11589
11698
  className: "form-field",
11590
11699
  selected: selectedModal,
11591
11700
  option: modals,
11592
11701
  select: selectModal,
11593
11702
  optionKey: "name",
11594
11703
  t: t
11595
- })), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
11596
- className: "card-label-smaller"
11597
- }, t("ES_FSM_REGISTRY_VEHICLE_TYPE")), /*#__PURE__*/React.createElement(Dropdown$2, {
11704
+ })), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("ES_FSM_REGISTRY_VEHICLE_TYPE")), /*#__PURE__*/React.createElement(Dropdown$2, {
11598
11705
  className: "form-field",
11599
11706
  selected: selectedType,
11600
11707
  option: types,
11601
11708
  select: selectType,
11602
11709
  optionKey: "name",
11603
11710
  t: t
11604
- })), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
11605
- className: "card-label-smaller"
11606
- }, t("ES_FSM_REGISTRY_VEHICLE_CAPACITY")), /*#__PURE__*/React.createElement(TextInput, {
11711
+ })), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("ES_FSM_REGISTRY_VEHICLE_CAPACITY")), /*#__PURE__*/React.createElement(TextInput, {
11607
11712
  className: "",
11608
11713
  textInputStyle: {
11609
- width: "50%"
11714
+ width: "100%"
11610
11715
  },
11611
11716
  value: selectedCapacity,
11612
11717
  disable: true