@djb25/digit-ui-module-fsm 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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +76 -84
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -407,7 +407,7 @@ const FSMSelectAddress = ({
|
|
|
407
407
|
}
|
|
408
408
|
if (userType === "employee") {
|
|
409
409
|
var _formData$address7, _formData$address7$lo;
|
|
410
|
-
return /*#__PURE__*/React.createElement(
|
|
410
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, {
|
|
411
411
|
className: "card-label-smaller"
|
|
412
412
|
}, t("MYCITY_CODE_LABEL"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
413
413
|
className: "form-field",
|
|
@@ -418,7 +418,7 @@ const FSMSelectAddress = ({
|
|
|
418
418
|
select: selectCity,
|
|
419
419
|
optionKey: "code",
|
|
420
420
|
t: t
|
|
421
|
-
})), !isUrcEnable || isNewVendor || isEditVendor ? /*#__PURE__*/React.createElement(
|
|
421
|
+
})), !isUrcEnable || isNewVendor || isEditVendor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, {
|
|
422
422
|
className: "card-label-smaller"
|
|
423
423
|
}, t("ES_NEW_APPLICATION_LOCATION_MOHALLA"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
424
424
|
className: "form-field",
|
|
@@ -549,7 +549,7 @@ const SelectGender = ({
|
|
|
549
549
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
550
550
|
}
|
|
551
551
|
if (userType === "employee") {
|
|
552
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
552
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel$1, null, t(config.label)), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
553
553
|
className: "payment-form-text-input-correction",
|
|
554
554
|
isMandatory: config.isMandatory,
|
|
555
555
|
selected: genderType,
|
|
@@ -2381,6 +2381,9 @@ const FormStep = ({
|
|
|
2381
2381
|
}
|
|
2382
2382
|
});
|
|
2383
2383
|
return /*#__PURE__*/React.createElement("form", {
|
|
2384
|
+
style: {
|
|
2385
|
+
flex: "1"
|
|
2386
|
+
},
|
|
2384
2387
|
onSubmit: handleSubmit(goNext)
|
|
2385
2388
|
}, /*#__PURE__*/React.createElement(InputCard, Object.assign({}, {
|
|
2386
2389
|
isDisable: isDisable,
|
|
@@ -9625,9 +9628,7 @@ const SelectVehicleType = ({
|
|
|
9625
9628
|
type: type
|
|
9626
9629
|
});
|
|
9627
9630
|
};
|
|
9628
|
-
return /*#__PURE__*/React.createElement(
|
|
9629
|
-
className: "card-label-smaller"
|
|
9630
|
-
}, t("ES_FSM_REGISTRY_VEHICLE_MODEL"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
9631
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, null, t("ES_FSM_REGISTRY_VEHICLE_MODEL"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
9631
9632
|
className: "form-field",
|
|
9632
9633
|
isMandatory: true,
|
|
9633
9634
|
selected: selectedModal,
|
|
@@ -9636,9 +9637,7 @@ const SelectVehicleType = ({
|
|
|
9636
9637
|
select: selectModal,
|
|
9637
9638
|
optionKey: "name",
|
|
9638
9639
|
t: t
|
|
9639
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, {
|
|
9640
|
-
className: "card-label-smaller"
|
|
9641
|
-
}, t("ES_FSM_REGISTRY_VEHICLE_TYPE"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
9640
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, null, t("ES_FSM_REGISTRY_VEHICLE_TYPE"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
9642
9641
|
className: "form-field",
|
|
9643
9642
|
isMandatory: true,
|
|
9644
9643
|
selected: selectedType,
|
|
@@ -9646,13 +9645,8 @@ const SelectVehicleType = ({
|
|
|
9646
9645
|
select: selectType,
|
|
9647
9646
|
optionKey: "name",
|
|
9648
9647
|
t: t
|
|
9649
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, {
|
|
9650
|
-
className: "card-label-smaller"
|
|
9651
|
-
}, t("ES_FSM_REGISTRY_VEHICLE_CAPACITY"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(TextInput$1, {
|
|
9648
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel$1, null, t("ES_FSM_REGISTRY_VEHICLE_CAPACITY"), config.isMandatory ? " * " : null), /*#__PURE__*/React.createElement(TextInput$1, {
|
|
9652
9649
|
className: "",
|
|
9653
|
-
textInputStyle: {
|
|
9654
|
-
width: "50%"
|
|
9655
|
-
},
|
|
9656
9650
|
value: selectedCapacity,
|
|
9657
9651
|
onChange: () => {},
|
|
9658
9652
|
disable: true
|
|
@@ -12851,139 +12845,144 @@ const EmployeeApp = ({
|
|
|
12851
12845
|
}), "Back"),
|
|
12852
12846
|
onLeftClick: () => window.history.back(),
|
|
12853
12847
|
breadcrumbs: getDynamicBreadcrumbs()
|
|
12854
|
-
}), /*#__PURE__*/React.createElement(
|
|
12855
|
-
className: "employee-form"
|
|
12856
|
-
}, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12848
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12857
12849
|
exact: true,
|
|
12858
12850
|
path: `${path}/`,
|
|
12859
|
-
component: () => /*#__PURE__*/React.createElement(FSMLinks, {
|
|
12851
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(FSMLinks, {
|
|
12860
12852
|
matchPath: path,
|
|
12861
12853
|
userType: userType
|
|
12862
|
-
})
|
|
12854
|
+
}), layouts.normal)
|
|
12863
12855
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12864
12856
|
path: `${path}/inbox`,
|
|
12865
|
-
component: (
|
|
12857
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(Inbox, Object.assign({}, props, {
|
|
12866
12858
|
parentRoute: path,
|
|
12867
12859
|
isInbox: true
|
|
12868
|
-
})
|
|
12860
|
+
})), layouts.normal)
|
|
12869
12861
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12870
12862
|
path: `${path}/fstp-inbox`,
|
|
12871
|
-
component: (
|
|
12863
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpInbox, Object.assign({}, props, {
|
|
12872
12864
|
parentRoute: path
|
|
12873
|
-
})
|
|
12865
|
+
})), layouts.normal)
|
|
12874
12866
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12875
12867
|
path: `${path}/new-application`,
|
|
12876
|
-
component: () => /*#__PURE__*/React.createElement(NewApplication, {
|
|
12868
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(NewApplication, {
|
|
12877
12869
|
parentUrl: url
|
|
12878
|
-
})
|
|
12870
|
+
}), layouts.normal)
|
|
12879
12871
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12880
12872
|
path: `${path}/modify-application/:id`,
|
|
12881
|
-
component: () => /*#__PURE__*/React.createElement(EditApplication, null)
|
|
12873
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(EditApplication, null), layouts.normal)
|
|
12882
12874
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12883
12875
|
path: `${path}/application-details/:id`,
|
|
12884
|
-
component: (
|
|
12876
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EmployeeApplicationDetails, Object.assign({}, props, {
|
|
12885
12877
|
parentRoute: path,
|
|
12886
12878
|
userType: "EMPLOYEE"
|
|
12887
|
-
})
|
|
12879
|
+
})), layouts.normal)
|
|
12888
12880
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12889
12881
|
path: `${path}/fstp-operator-details/:id`,
|
|
12890
|
-
component: FstpOperatorDetails
|
|
12882
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpOperatorDetails, props), layouts.normal)
|
|
12891
12883
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12892
12884
|
path: `${path}/response`,
|
|
12893
|
-
component: props => /*#__PURE__*/React.createElement(Response, Object.assign({}, props, {
|
|
12885
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(Response, Object.assign({}, props, {
|
|
12894
12886
|
parentRoute: path
|
|
12895
|
-
}))
|
|
12887
|
+
})), layouts.normal)
|
|
12896
12888
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12897
12889
|
path: `${path}/application-audit/:id`,
|
|
12898
|
-
component: (
|
|
12890
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(ApplicationAudit, Object.assign({}, props, {
|
|
12899
12891
|
parentRoute: path
|
|
12900
|
-
})
|
|
12892
|
+
})), layouts.normal)
|
|
12901
12893
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12902
12894
|
path: `${path}/search`,
|
|
12903
|
-
component: (
|
|
12895
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(Inbox, Object.assign({}, props, {
|
|
12904
12896
|
parentRoute: path,
|
|
12905
12897
|
isSearch: true
|
|
12906
|
-
})
|
|
12898
|
+
})), layouts.normal)
|
|
12907
12899
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12908
12900
|
path: `${path}/rate-view/:id`,
|
|
12909
|
-
component: (
|
|
12901
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(RateView, Object.assign({}, props, {
|
|
12910
12902
|
parentRoute: path
|
|
12911
|
-
})
|
|
12903
|
+
})), layouts.normal)
|
|
12912
12904
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12913
12905
|
path: `${path}/mark-for-disposal`,
|
|
12914
|
-
component: () => /*#__PURE__*/React.createElement("div", null)
|
|
12906
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement("div", null), layouts.normal)
|
|
12915
12907
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12916
12908
|
exact: true,
|
|
12917
12909
|
path: `${path}/registry`,
|
|
12918
|
-
component: (
|
|
12910
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FSMRegistry, Object.assign({}, props, {
|
|
12919
12911
|
parentRoute: path
|
|
12920
|
-
})
|
|
12912
|
+
})), layouts.normal)
|
|
12921
12913
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12922
12914
|
path: `${path}/registry/vendor-details/:id`,
|
|
12923
|
-
component: (
|
|
12915
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(VendorDetails, Object.assign({}, props, {
|
|
12924
12916
|
parentRoute: path
|
|
12925
|
-
})
|
|
12917
|
+
})), layouts.normal)
|
|
12926
12918
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12927
12919
|
path: `${path}/registry/new-vendor`,
|
|
12928
|
-
component: (
|
|
12920
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(AddVendor, Object.assign({}, props, {
|
|
12929
12921
|
parentRoute: path
|
|
12930
|
-
})
|
|
12922
|
+
})), layouts.normal)
|
|
12931
12923
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12932
12924
|
path: `${path}/registry/modify-vendor/:id`,
|
|
12933
|
-
component: (
|
|
12925
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EditVendor, Object.assign({}, props, {
|
|
12934
12926
|
parentRoute: path
|
|
12935
|
-
})
|
|
12927
|
+
})), layouts.action)
|
|
12936
12928
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12937
12929
|
path: `${path}/registry/vehicle-details/:id`,
|
|
12938
|
-
component: (
|
|
12930
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(VehicleDetails, Object.assign({}, props, {
|
|
12939
12931
|
parentRoute: path
|
|
12940
|
-
})
|
|
12932
|
+
})), layouts.normal)
|
|
12941
12933
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12942
12934
|
path: `${path}/registry/new-vehicle`,
|
|
12943
|
-
component: (
|
|
12935
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(AddVehicle, Object.assign({}, props, {
|
|
12944
12936
|
parentRoute: path
|
|
12945
|
-
})
|
|
12937
|
+
})), layouts.normal)
|
|
12946
12938
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12947
12939
|
path: `${path}/registry/modify-vehicle/:id`,
|
|
12948
|
-
component: (
|
|
12940
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EditVehicle, Object.assign({}, props, {
|
|
12949
12941
|
parentRoute: path
|
|
12950
|
-
})
|
|
12942
|
+
})), layouts.action)
|
|
12951
12943
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12952
12944
|
path: `${path}/registry/driver-details/:id`,
|
|
12953
|
-
component: (
|
|
12945
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(DriverDetails, Object.assign({}, props, {
|
|
12954
12946
|
parentRoute: path
|
|
12955
|
-
})
|
|
12947
|
+
})), layouts.normal)
|
|
12956
12948
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12957
12949
|
path: `${path}/registry/new-driver`,
|
|
12958
|
-
component: (
|
|
12950
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(AddDriver, Object.assign({}, props, {
|
|
12959
12951
|
parentRoute: path
|
|
12960
|
-
})
|
|
12952
|
+
})), layouts.normal)
|
|
12961
12953
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12962
12954
|
path: `${path}/registry/modify-driver/:id`,
|
|
12963
|
-
component: (
|
|
12955
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EditDriver, Object.assign({}, props, {
|
|
12964
12956
|
parentRoute: path
|
|
12965
|
-
})
|
|
12957
|
+
})), layouts.action)
|
|
12966
12958
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12967
12959
|
exact: true,
|
|
12968
12960
|
path: `${path}/fstp-operations`,
|
|
12969
|
-
component: () => /*#__PURE__*/React.createElement(FstpOperations, null)
|
|
12961
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(FstpOperations, null), layouts.normal)
|
|
12970
12962
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12971
12963
|
exact: true,
|
|
12972
12964
|
path: `${path}/fstp-add-vehicle`,
|
|
12973
|
-
component: () => /*#__PURE__*/React.createElement(FstpAddVehicle, null)
|
|
12965
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(FstpAddVehicle, null), layouts.normal)
|
|
12974
12966
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12975
12967
|
exact: true,
|
|
12976
12968
|
path: `${path}/fstp-fsm-request/:id`,
|
|
12977
|
-
component: (
|
|
12969
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpServiceRequest, props), layouts.normal)
|
|
12978
12970
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12979
12971
|
exact: true,
|
|
12980
12972
|
path: `${path}/fstp/new-vehicle-entry`,
|
|
12981
|
-
component: FstpOperatorDetails
|
|
12973
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpOperatorDetails, props), layouts.normal)
|
|
12982
12974
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12983
12975
|
exact: true,
|
|
12984
12976
|
path: `${path}/fstp/new-vehicle-entry/:id`,
|
|
12985
|
-
component: FstpOperatorDetails
|
|
12986
|
-
}))))
|
|
12977
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpOperatorDetails, props), layouts.normal)
|
|
12978
|
+
}))));
|
|
12979
|
+
};
|
|
12980
|
+
const renderWithLayout = (Component, layoutClass) => routeProps => /*#__PURE__*/React.createElement("div", {
|
|
12981
|
+
className: layoutClass
|
|
12982
|
+
}, /*#__PURE__*/React.createElement(Component, routeProps));
|
|
12983
|
+
const layouts = {
|
|
12984
|
+
normal: "employee-form",
|
|
12985
|
+
action: "employee-form employee-form-content-with-action-bar"
|
|
12987
12986
|
};
|
|
12988
12987
|
|
|
12989
12988
|
const ApplicationAudit = ({
|
|
@@ -20219,7 +20218,7 @@ const EditVehicle = ({
|
|
|
20219
20218
|
setShowToast(null);
|
|
20220
20219
|
};
|
|
20221
20220
|
const onSubmit = data => {
|
|
20222
|
-
var _data$vehicle, _data$vehicle$type, _data$vehicle2, _data$vehicle3, _data$vehicle3$modal, _data$vehicle4, _data$vehicle5, _data$vehicle5$type, _data$vehicle6, _data$pollutionCert, _data$insurance, _data$roadTax, _data$fitnessValidity, _vehicleDetails$owner;
|
|
20221
|
+
var _data$vehicle, _data$vehicle$type, _data$vehicle2, _data$vehicle3, _data$vehicle3$modal, _data$vehicle4, _data$vehicle5, _data$vehicle5$type, _data$vehicle6, _data$pollutionCert, _data$insurance, _data$roadTax, _data$fitnessValidity, _vehicleDetails$owner, _vehicleDetails$owner2, _vehicleDetails$owner3, _vehicleDetails$owner4;
|
|
20223
20222
|
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) || (data === null || data === void 0 ? void 0 : (_data$vehicle2 = data.vehicle) === null || _data$vehicle2 === void 0 ? void 0 : _data$vehicle2.type);
|
|
20224
20223
|
const vehicleModal = (data === null || data === void 0 ? void 0 : (_data$vehicle3 = data.vehicle) === null || _data$vehicle3 === void 0 ? void 0 : (_data$vehicle3$modal = _data$vehicle3.modal) === null || _data$vehicle3$modal === void 0 ? void 0 : _data$vehicle3$modal.code) || (data === null || data === void 0 ? void 0 : (_data$vehicle4 = data.vehicle) === null || _data$vehicle4 === void 0 ? void 0 : _data$vehicle4.modal);
|
|
20225
20224
|
const tankCapacity = (data === null || data === void 0 ? void 0 : (_data$vehicle5 = data.vehicle) === null || _data$vehicle5 === void 0 ? void 0 : (_data$vehicle5$type = _data$vehicle5.type) === null || _data$vehicle5$type === void 0 ? void 0 : _data$vehicle5$type.capacity) || (data === null || data === void 0 ? void 0 : (_data$vehicle6 = data.vehicle) === null || _data$vehicle6 === void 0 ? void 0 : _data$vehicle6.tankCapacity);
|
|
@@ -20244,11 +20243,11 @@ const EditVehicle = ({
|
|
|
20244
20243
|
},
|
|
20245
20244
|
owner: {
|
|
20246
20245
|
...vehicleDetails.owner,
|
|
20247
|
-
gender:
|
|
20248
|
-
dob: dob,
|
|
20249
|
-
emailId: emailId || "abc@egov.com",
|
|
20250
|
-
name:
|
|
20251
|
-
mobileNumber: phone
|
|
20246
|
+
gender: (data === null || data === void 0 ? void 0 : data.selectGender) || ((_vehicleDetails$owner = vehicleDetails.owner) === null || _vehicleDetails$owner === void 0 ? void 0 : _vehicleDetails$owner.gender) || "OTHER",
|
|
20247
|
+
dob: (data === null || data === void 0 ? void 0 : data.dob) || ((_vehicleDetails$owner2 = vehicleDetails.owner) === null || _vehicleDetails$owner2 === void 0 ? void 0 : _vehicleDetails$owner2.dob),
|
|
20248
|
+
emailId: (data === null || data === void 0 ? void 0 : data.emailId) || "abc@egov.com",
|
|
20249
|
+
name: (data === null || data === void 0 ? void 0 : data.ownerName) || ((_vehicleDetails$owner3 = vehicleDetails.owner) === null || _vehicleDetails$owner3 === void 0 ? void 0 : _vehicleDetails$owner3.name),
|
|
20250
|
+
mobileNumber: (data === null || data === void 0 ? void 0 : data.phone) || ((_vehicleDetails$owner4 = vehicleDetails.owner) === null || _vehicleDetails$owner4 === void 0 ? void 0 : _vehicleDetails$owner4.mobileNumber)
|
|
20252
20251
|
}
|
|
20253
20252
|
}
|
|
20254
20253
|
};
|
|
@@ -20274,15 +20273,10 @@ const EditVehicle = ({
|
|
|
20274
20273
|
}
|
|
20275
20274
|
});
|
|
20276
20275
|
};
|
|
20277
|
-
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
20278
20276
|
if (vehicleDataLoading || Object.keys(defaultValues).length == 0) {
|
|
20279
20277
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
20280
20278
|
}
|
|
20281
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
20282
|
-
style: !isMobile ? {
|
|
20283
|
-
marginLeft: "-15px"
|
|
20284
|
-
} : {}
|
|
20285
|
-
}, /*#__PURE__*/React.createElement(FormComposer, {
|
|
20279
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormComposer, {
|
|
20286
20280
|
isDisabled: !canSubmit,
|
|
20287
20281
|
label: t("ES_COMMON_APPLICATION_SUBMIT"),
|
|
20288
20282
|
config: Config.filter(i => !i.hideInEmployee).map(config => {
|
|
@@ -20297,12 +20291,13 @@ const EditVehicle = ({
|
|
|
20297
20291
|
onSubmit: onSubmit,
|
|
20298
20292
|
defaultValues: defaultValues,
|
|
20299
20293
|
onFormValueChange: onFormValueChange,
|
|
20300
|
-
noBreakLine: true
|
|
20294
|
+
noBreakLine: true,
|
|
20295
|
+
formClassName: "vehicle-details-card"
|
|
20301
20296
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
20302
20297
|
error: showToast.key === "error" ? true : false,
|
|
20303
20298
|
label: t(showToast.key === "success" ? `ES_FSM_REGISTRY_${showToast.action}_SUCCESS` : showToast.action),
|
|
20304
20299
|
onClose: closeToast
|
|
20305
|
-
}))
|
|
20300
|
+
}));
|
|
20306
20301
|
};
|
|
20307
20302
|
|
|
20308
20303
|
const Heading$3 = props => {
|
|
@@ -21029,14 +21024,11 @@ const EditDriver = ({
|
|
|
21029
21024
|
}
|
|
21030
21025
|
});
|
|
21031
21026
|
};
|
|
21032
|
-
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
21033
21027
|
if (daoDataLoading || Object.keys(defaultValues).length == 0) {
|
|
21034
21028
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
21035
21029
|
}
|
|
21036
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div",
|
|
21037
|
-
|
|
21038
|
-
marginLeft: "-15px"
|
|
21039
|
-
} : {}
|
|
21030
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
21031
|
+
className: "employee-form-content"
|
|
21040
21032
|
}, /*#__PURE__*/React.createElement(FormComposer, {
|
|
21041
21033
|
isDisabled: !canSubmit,
|
|
21042
21034
|
label: t("ES_COMMON_APPLICATION_SUBMIT"),
|