@djb25/digit-ui-module-fsm 1.0.7 → 1.0.9
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 +68 -104
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddNewIcon, ShippingTruck, EmployeeModuleCard, TickMark, FormStep as FormStep$1, RadioOrSelect, LabelFieldPair, CardLabel as CardLabel$1, Dropdown as Dropdown$2, TextInput as TextInput$1, RadioButtons, Loader, LocationSearchCard, TextArea as TextArea$1, CardLabelError as CardLabelError$1, CitizenInfoLabel, CardText as CardText$1, WrapUnMaskComponent, PitDimension, ImageUploadHandler, KeyNote, BackButton, PrivateRoute, TelePhone, CardSectionHeader, CheckPoint, ConnectingCheckPoints, LinkButton as LinkButton$1, ActionLinks, Rating, SubmitBar as SubmitBar$1, Header, Card as Card$1, CardHeader as CardHeader$1, CardSubHeader, StatusTable, Row, Banner, RatingCard, ULBHomeCard, ViewReportIcon, InboxIcon, Table, CheckBox, CloseSvg, Localities, RemoveableTag, ActionBar, ApplyFilterBar, Label, LinkLabel, DatePicker as DatePicker$3, DetailsCard, SearchAction, FilterAction, PopUp, BreadCrumb, ModuleHeader, ArrowLeft,
|
|
1
|
+
import { AddNewIcon, ShippingTruck, EmployeeModuleCard, TickMark, FormStep as FormStep$1, RadioOrSelect, LabelFieldPair, CardLabel as CardLabel$1, Dropdown as Dropdown$2, TextInput as TextInput$1, RadioButtons, Loader, LocationSearchCard, TextArea as TextArea$1, CardLabelError as CardLabelError$1, CitizenInfoLabel, CardText as CardText$1, WrapUnMaskComponent, PitDimension, ImageUploadHandler, KeyNote, BackButton, PrivateRoute, TelePhone, CardSectionHeader, CheckPoint, ConnectingCheckPoints, LinkButton as LinkButton$1, ActionLinks, Rating, SubmitBar as SubmitBar$1, Header, Card as Card$1, CardHeader as CardHeader$1, CardSubHeader, StatusTable, Row, Banner, RatingCard, ULBHomeCard, ViewReportIcon, InboxIcon, Table, CheckBox, CloseSvg, Localities, RemoveableTag, ActionBar, ApplyFilterBar, Label, LinkLabel, DatePicker as DatePicker$3, DetailsCard, SearchAction, FilterAction, PopUp, BreadCrumb, ModuleHeader, ArrowLeft, HomeIcon, Modal, FormComposer, UploadPitPhoto, ImageViewer, BreakLine, Toast, Menu, MultiUploadWrapper, AddIcon, ToggleSwitch, InfoIcon, EditIcon, DeleteIcon, VerticalTimeline, CitizenHomeCard, CitizenTruck } from '@djb25/digit-ui-react-components';
|
|
2
2
|
import React, { useState, useEffect, Fragment as Fragment$1, forwardRef, useCallback, useMemo, useRef } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useLocation, useParams, Switch, Redirect, Link, useHistory, useRouteMatch, Route } from 'react-router-dom';
|
|
@@ -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(
|
|
552
|
+
return /*#__PURE__*/React.createElement(LabelFieldPair, 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,
|
|
@@ -2249,12 +2249,14 @@ const InputCard = ({
|
|
|
2249
2249
|
style: _cardStyle
|
|
2250
2250
|
}, _texts.headerCaption && /*#__PURE__*/React.createElement(CardCaption, null, t(_texts.headerCaption)), (_texts === null || _texts === void 0 ? void 0 : _texts.header) && /*#__PURE__*/React.createElement(CardHeader, null, t(_texts.header)), (_texts === null || _texts === void 0 ? void 0 : _texts.cardText) && /*#__PURE__*/React.createElement(CardText, null, t(_texts.cardText)), /*#__PURE__*/React.createElement("div", {
|
|
2251
2251
|
className: "formcomposer-section-grid"
|
|
2252
|
-
}, children), _texts.submitBarLabel ? /*#__PURE__*/React.createElement(
|
|
2252
|
+
}, children), _texts.submitBarLabel ? /*#__PURE__*/React.createElement("div", {
|
|
2253
|
+
className: "formcomposer-section-button"
|
|
2254
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
2253
2255
|
disabled: isDisable,
|
|
2254
2256
|
submit: _submit,
|
|
2255
2257
|
label: t(_texts.submitBarLabel),
|
|
2256
2258
|
onSubmit: onNext
|
|
2257
|
-
}) : null, _texts.skipLabel ? /*#__PURE__*/React.createElement(CardText, {
|
|
2259
|
+
}), " ") : null, _texts.skipLabel ? /*#__PURE__*/React.createElement(CardText, {
|
|
2258
2260
|
style: {
|
|
2259
2261
|
marginTop: "10px",
|
|
2260
2262
|
textAlign: isMobile ? "center" : "left"
|
|
@@ -12749,6 +12751,11 @@ const EmployeeApp = ({
|
|
|
12749
12751
|
t
|
|
12750
12752
|
} = useTranslation();
|
|
12751
12753
|
const location = useLocation();
|
|
12754
|
+
const DSO = Digit.UserService.hasAccess(["FSM_DSO"]);
|
|
12755
|
+
const COLLECTOR = Digit.UserService.hasAccess("FSM_COLLECTOR") || false;
|
|
12756
|
+
const FSM_ADMIN = Digit.UserService.hasAccess("FSM_ADMIN") || false;
|
|
12757
|
+
const FSM_EDITOR = Digit.UserService.hasAccess("FSM_EDITOR_EMP") || false;
|
|
12758
|
+
const FSM_CREATOR = Digit.UserService.hasAccess("FSM_CREATOR_EMP") || false;
|
|
12752
12759
|
useEffect(() => {
|
|
12753
12760
|
var _location$pathname16;
|
|
12754
12761
|
if (!(location !== null && location !== void 0 && (_location$pathname16 = location.pathname) !== null && _location$pathname16 !== void 0 && _location$pathname16.includes("application-details"))) {
|
|
@@ -12770,6 +12777,7 @@ const EmployeeApp = ({
|
|
|
12770
12777
|
const ApplicationAudit = Digit.ComponentRegistryService.getComponent("FSMApplicationAudit");
|
|
12771
12778
|
const RateView = Digit.ComponentRegistryService.getComponent("FSMRateView");
|
|
12772
12779
|
const FSMLinks = Digit.ComponentRegistryService.getComponent("FSMLinks");
|
|
12780
|
+
const FSTPO = Digit.UserService.hasAccess(["FSM_EMP_FSTPO"]);
|
|
12773
12781
|
const FSMRegistry = Digit.ComponentRegistryService.getComponent("FSMRegistry");
|
|
12774
12782
|
const VendorDetails = Digit.ComponentRegistryService.getComponent("VendorDetails");
|
|
12775
12783
|
const AddVendor = Digit.ComponentRegistryService.getComponent("AddVendor");
|
|
@@ -12780,6 +12788,8 @@ const EmployeeApp = ({
|
|
|
12780
12788
|
const DriverDetails = Digit.ComponentRegistryService.getComponent("DriverDetails");
|
|
12781
12789
|
const AddDriver = Digit.ComponentRegistryService.getComponent("AddDriver");
|
|
12782
12790
|
const EditDriver = Digit.ComponentRegistryService.getComponent("EditDriver");
|
|
12791
|
+
const BreadCrumbComp = Digit.ComponentRegistryService.getComponent("FsmBreadCrumb");
|
|
12792
|
+
const locationCheck = window.location.href.includes("/employee/fsm/inbox") || window.location.href.includes("/employee/fsm/registry") || window.location.href.includes("/employee/fsm/application-details/");
|
|
12783
12793
|
const getDynamicBreadcrumbs = () => {
|
|
12784
12794
|
const pathname = location.pathname;
|
|
12785
12795
|
let crumbs = [{
|
|
@@ -12828,6 +12838,7 @@ const EmployeeApp = ({
|
|
|
12828
12838
|
}
|
|
12829
12839
|
return crumbs;
|
|
12830
12840
|
};
|
|
12841
|
+
const desludgingApplicationCheck = window.location.href.includes("/employee/fsm/new-application") || window.location.href.includes("/employee/fsm/modify-application");
|
|
12831
12842
|
return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
12832
12843
|
className: "ground-container employee-app-container form-container"
|
|
12833
12844
|
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
@@ -12839,189 +12850,142 @@ const EmployeeApp = ({
|
|
|
12839
12850
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12840
12851
|
exact: true,
|
|
12841
12852
|
path: `${path}/`,
|
|
12842
|
-
component:
|
|
12843
|
-
layoutClass: "normal"
|
|
12844
|
-
}, /*#__PURE__*/React.createElement(FSMLinks, Object.assign({}, props, {
|
|
12853
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(FSMLinks, {
|
|
12845
12854
|
matchPath: path,
|
|
12846
12855
|
userType: userType
|
|
12847
|
-
}))
|
|
12856
|
+
}), layouts.normal)
|
|
12848
12857
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12849
12858
|
path: `${path}/inbox`,
|
|
12850
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12851
|
-
layoutClass: "normal"
|
|
12852
|
-
}, /*#__PURE__*/React.createElement(Inbox, Object.assign({}, props, {
|
|
12859
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(Inbox, Object.assign({}, props, {
|
|
12853
12860
|
parentRoute: path,
|
|
12854
12861
|
isInbox: true
|
|
12855
|
-
})))
|
|
12862
|
+
})), layouts.normal)
|
|
12856
12863
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12857
12864
|
path: `${path}/fstp-inbox`,
|
|
12858
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12859
|
-
layoutClass: "normal"
|
|
12860
|
-
}, /*#__PURE__*/React.createElement(FstpInbox, Object.assign({}, props, {
|
|
12865
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpInbox, Object.assign({}, props, {
|
|
12861
12866
|
parentRoute: path
|
|
12862
|
-
})))
|
|
12867
|
+
})), layouts.normal)
|
|
12863
12868
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12864
12869
|
path: `${path}/new-application`,
|
|
12865
|
-
component: () => /*#__PURE__*/React.createElement(
|
|
12866
|
-
layoutClass: "normal"
|
|
12867
|
-
}, /*#__PURE__*/React.createElement(NewApplication, {
|
|
12870
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(NewApplication, {
|
|
12868
12871
|
parentUrl: url
|
|
12869
|
-
}))
|
|
12872
|
+
}), layouts.normal)
|
|
12870
12873
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12871
12874
|
path: `${path}/modify-application/:id`,
|
|
12872
|
-
component: () => /*#__PURE__*/React.createElement(
|
|
12873
|
-
layoutClass: "normal"
|
|
12874
|
-
}, /*#__PURE__*/React.createElement(EditApplication, null))
|
|
12875
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(EditApplication, null), layouts.normal)
|
|
12875
12876
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12876
12877
|
path: `${path}/application-details/:id`,
|
|
12877
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12878
|
-
layoutClass: "normal"
|
|
12879
|
-
}, /*#__PURE__*/React.createElement(EmployeeApplicationDetails, Object.assign({}, props, {
|
|
12878
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EmployeeApplicationDetails, Object.assign({}, props, {
|
|
12880
12879
|
parentRoute: path,
|
|
12881
12880
|
userType: "EMPLOYEE"
|
|
12882
|
-
})))
|
|
12881
|
+
})), layouts.normal)
|
|
12883
12882
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12884
12883
|
path: `${path}/fstp-operator-details/:id`,
|
|
12885
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12886
|
-
layoutClass: "normal"
|
|
12887
|
-
}, /*#__PURE__*/React.createElement(FstpOperatorDetails, props))
|
|
12884
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpOperatorDetails, props), layouts.normal)
|
|
12888
12885
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12889
12886
|
path: `${path}/response`,
|
|
12890
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12891
|
-
layoutClass: "normal"
|
|
12892
|
-
}, /*#__PURE__*/React.createElement(Response, Object.assign({}, props, {
|
|
12887
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(Response, Object.assign({}, props, {
|
|
12893
12888
|
parentRoute: path
|
|
12894
|
-
})))
|
|
12889
|
+
})), layouts.normal)
|
|
12895
12890
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12896
12891
|
path: `${path}/application-audit/:id`,
|
|
12897
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12898
|
-
layoutClass: "normal"
|
|
12899
|
-
}, /*#__PURE__*/React.createElement(ApplicationAudit, Object.assign({}, props, {
|
|
12892
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(ApplicationAudit, Object.assign({}, props, {
|
|
12900
12893
|
parentRoute: path
|
|
12901
|
-
})))
|
|
12894
|
+
})), layouts.normal)
|
|
12902
12895
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12903
12896
|
path: `${path}/search`,
|
|
12904
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12905
|
-
layoutClass: "normal"
|
|
12906
|
-
}, /*#__PURE__*/React.createElement(Inbox, Object.assign({}, props, {
|
|
12897
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(Inbox, Object.assign({}, props, {
|
|
12907
12898
|
parentRoute: path,
|
|
12908
12899
|
isSearch: true
|
|
12909
|
-
})))
|
|
12900
|
+
})), layouts.normal)
|
|
12910
12901
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12911
12902
|
path: `${path}/rate-view/:id`,
|
|
12912
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12913
|
-
layoutClass: "normal"
|
|
12914
|
-
}, /*#__PURE__*/React.createElement(RateView, Object.assign({}, props, {
|
|
12903
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(RateView, Object.assign({}, props, {
|
|
12915
12904
|
parentRoute: path
|
|
12916
|
-
})))
|
|
12905
|
+
})), layouts.normal)
|
|
12917
12906
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12918
12907
|
path: `${path}/mark-for-disposal`,
|
|
12919
|
-
component: () => /*#__PURE__*/React.createElement(
|
|
12920
|
-
layoutClass: "normal"
|
|
12921
|
-
}, /*#__PURE__*/React.createElement("div", null))
|
|
12908
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement("div", null), layouts.normal)
|
|
12922
12909
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12923
12910
|
exact: true,
|
|
12924
12911
|
path: `${path}/registry`,
|
|
12925
|
-
|
|
12926
|
-
layoutClass: "normal"
|
|
12927
|
-
}, /*#__PURE__*/React.createElement(FSMRegistry, Object.assign({}, props, {
|
|
12912
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FSMRegistry, Object.assign({}, props, {
|
|
12928
12913
|
parentRoute: path
|
|
12929
|
-
})))
|
|
12914
|
+
})), layouts.normal)
|
|
12930
12915
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12931
12916
|
path: `${path}/registry/vendor-details/:id`,
|
|
12932
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12933
|
-
layoutClass: "normal"
|
|
12934
|
-
}, /*#__PURE__*/React.createElement(VendorDetails, Object.assign({}, props, {
|
|
12917
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(VendorDetails, Object.assign({}, props, {
|
|
12935
12918
|
parentRoute: path
|
|
12936
|
-
})))
|
|
12919
|
+
})), layouts.normal)
|
|
12937
12920
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12938
12921
|
path: `${path}/registry/new-vendor`,
|
|
12939
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12940
|
-
layoutClass: "normal"
|
|
12941
|
-
}, /*#__PURE__*/React.createElement(AddVendor, Object.assign({}, props, {
|
|
12922
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(AddVendor, Object.assign({}, props, {
|
|
12942
12923
|
parentRoute: path
|
|
12943
|
-
})))
|
|
12924
|
+
})), layouts.normal)
|
|
12944
12925
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12945
12926
|
path: `${path}/registry/modify-vendor/:id`,
|
|
12946
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12947
|
-
layoutClass: "action"
|
|
12948
|
-
}, /*#__PURE__*/React.createElement(EditVendor, Object.assign({}, props, {
|
|
12927
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EditVendor, Object.assign({}, props, {
|
|
12949
12928
|
parentRoute: path
|
|
12950
|
-
})))
|
|
12929
|
+
})), layouts.action)
|
|
12951
12930
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12952
12931
|
path: `${path}/registry/vehicle-details/:id`,
|
|
12953
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12954
|
-
layoutClass: "normal"
|
|
12955
|
-
}, /*#__PURE__*/React.createElement(VehicleDetails, Object.assign({}, props, {
|
|
12932
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(VehicleDetails, Object.assign({}, props, {
|
|
12956
12933
|
parentRoute: path
|
|
12957
|
-
})))
|
|
12934
|
+
})), layouts.normal)
|
|
12958
12935
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12959
12936
|
path: `${path}/registry/new-vehicle`,
|
|
12960
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12961
|
-
layoutClass: "normal"
|
|
12962
|
-
}, /*#__PURE__*/React.createElement(AddVehicle, Object.assign({}, props, {
|
|
12937
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(AddVehicle, Object.assign({}, props, {
|
|
12963
12938
|
parentRoute: path
|
|
12964
|
-
})))
|
|
12939
|
+
})), layouts.normal)
|
|
12965
12940
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12966
12941
|
path: `${path}/registry/modify-vehicle/:id`,
|
|
12967
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12968
|
-
layoutClass: "action"
|
|
12969
|
-
}, /*#__PURE__*/React.createElement(EditVehicle, Object.assign({}, props, {
|
|
12942
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EditVehicle, Object.assign({}, props, {
|
|
12970
12943
|
parentRoute: path
|
|
12971
|
-
})))
|
|
12944
|
+
})), layouts.action)
|
|
12972
12945
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12973
12946
|
path: `${path}/registry/driver-details/:id`,
|
|
12974
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12975
|
-
layoutClass: "normal"
|
|
12976
|
-
}, /*#__PURE__*/React.createElement(DriverDetails, Object.assign({}, props, {
|
|
12947
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(DriverDetails, Object.assign({}, props, {
|
|
12977
12948
|
parentRoute: path
|
|
12978
|
-
})))
|
|
12949
|
+
})), layouts.normal)
|
|
12979
12950
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12980
12951
|
path: `${path}/registry/new-driver`,
|
|
12981
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12982
|
-
layoutClass: "normal"
|
|
12983
|
-
}, /*#__PURE__*/React.createElement(AddDriver, Object.assign({}, props, {
|
|
12952
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(AddDriver, Object.assign({}, props, {
|
|
12984
12953
|
parentRoute: path
|
|
12985
|
-
})))
|
|
12954
|
+
})), layouts.normal)
|
|
12986
12955
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12987
12956
|
path: `${path}/registry/modify-driver/:id`,
|
|
12988
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
12989
|
-
layoutClass: "action"
|
|
12990
|
-
}, /*#__PURE__*/React.createElement(EditDriver, Object.assign({}, props, {
|
|
12957
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(EditDriver, Object.assign({}, props, {
|
|
12991
12958
|
parentRoute: path
|
|
12992
|
-
})))
|
|
12959
|
+
})), layouts.action)
|
|
12993
12960
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
12994
12961
|
exact: true,
|
|
12995
12962
|
path: `${path}/fstp-operations`,
|
|
12996
|
-
component: () => /*#__PURE__*/React.createElement(
|
|
12997
|
-
layoutClass: "normal"
|
|
12998
|
-
}, /*#__PURE__*/React.createElement(FstpOperations, null))
|
|
12963
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(FstpOperations, null), layouts.normal)
|
|
12999
12964
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
13000
12965
|
exact: true,
|
|
13001
12966
|
path: `${path}/fstp-add-vehicle`,
|
|
13002
|
-
component: () => /*#__PURE__*/React.createElement(
|
|
13003
|
-
layoutClass: "normal"
|
|
13004
|
-
}, /*#__PURE__*/React.createElement(FstpAddVehicle, null))
|
|
12967
|
+
component: renderWithLayout(() => /*#__PURE__*/React.createElement(FstpAddVehicle, null), layouts.normal)
|
|
13005
12968
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
13006
12969
|
exact: true,
|
|
13007
12970
|
path: `${path}/fstp-fsm-request/:id`,
|
|
13008
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
13009
|
-
layoutClass: "normal"
|
|
13010
|
-
}, /*#__PURE__*/React.createElement(FstpServiceRequest, props))
|
|
12971
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpServiceRequest, props), layouts.normal)
|
|
13011
12972
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
13012
12973
|
exact: true,
|
|
13013
12974
|
path: `${path}/fstp/new-vehicle-entry`,
|
|
13014
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
13015
|
-
layoutClass: "normal"
|
|
13016
|
-
}, /*#__PURE__*/React.createElement(FstpOperatorDetails, props))
|
|
12975
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpOperatorDetails, props), layouts.normal)
|
|
13017
12976
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
13018
12977
|
exact: true,
|
|
13019
12978
|
path: `${path}/fstp/new-vehicle-entry/:id`,
|
|
13020
|
-
component: props => /*#__PURE__*/React.createElement(
|
|
13021
|
-
layoutClass: "normal"
|
|
13022
|
-
}, /*#__PURE__*/React.createElement(FstpOperatorDetails, props))
|
|
12979
|
+
component: renderWithLayout(props => /*#__PURE__*/React.createElement(FstpOperatorDetails, props), layouts.normal)
|
|
13023
12980
|
}))));
|
|
13024
12981
|
};
|
|
12982
|
+
const renderWithLayout = (Component, layoutClass) => routeProps => /*#__PURE__*/React.createElement("div", {
|
|
12983
|
+
className: layoutClass
|
|
12984
|
+
}, /*#__PURE__*/React.createElement(Component, routeProps));
|
|
12985
|
+
const layouts = {
|
|
12986
|
+
normal: "employee-form",
|
|
12987
|
+
action: "employee-form employee-form-content-with-action-bar"
|
|
12988
|
+
};
|
|
13025
12989
|
|
|
13026
12990
|
const ApplicationAudit = ({
|
|
13027
12991
|
parentRoute
|