{"version":3,"sources":["logo.png","common/Common.style.tsx","services/customhooks/useFetchConfig.ts","components/QuickTrack/karooLogo.png","components/QuickTrack/TrackingTimeline.tsx","components/QuickTrack/QuickTrack.tsx","App.tsx","index.tsx"],"names":["useStyles","makeStyles","textAlignRight","textAlign","textAlignCenter","justifyContent","padding20","padding","marginLeft30","marginLeft","fullWidth","width","trackerViewParent","display","position","fontSize","fontWeight","icon","height","transition","fill","flexShrink","userSelect","currentStatus","borderBottom","borderColor","arrow","border","content","origin","destination","navlogo","maxHeight","trackingline","wordBreak","env","window","oplAuthContext","app","tenant","user","TenantId","useFetchConfig","assetname","useState","data","setData","configUrl","useEffect","axios","get","then","response","TrackingTimeline","props","styles","trackerData","Timeline","className","eventList","map","status","index","TimelineItem","TimelineOppositeContent","color","event","TimelineSeparator","TimelineDot","length","TimelineConnector","TimelineContent","eventDateTime","eventLocation","QuickTrack","useParams","config","setSelectedRows","form","methods","useForm","setClientID","loading","setLoading","watchControlValue","watch","setShow","setTrackerData","info","setInfo","OplEvents","read","subscribe","params","action","message","formConfig","dataType","dataPath","label","id","controlType","defaultValue","attributes","visible","disabled","tabIndex","placeholder","readonly","validate","events","options","list","key","value","undefined","onChange","OplConnections","call","connections","reset","Grid","alignItems","container","spacing","lg","md","sm","item","Paper","formType","variant","onClick","payload","wayBillNumber","getValues","courierParterCode","catch","error","style","xlinkHref","docketTrackingStatus","Stack","sx","Alert","severity","src","KarooLogo","alt","href","target","pages","settings","App","React","anchorElNav","setAnchorElNav","anchorElUser","setAnchorElUser","handleCloseNavMenu","handleCloseUserMenu","AppBar","elevation","Container","maxWidth","Toolbar","disableGutters","Logo","Box","flexGrow","xs","IconButton","size","currentTarget","Menu","anchorEl","anchorOrigin","vertical","horizontal","keepMounted","transformOrigin","open","Boolean","onClose","page","MenuItem","Typography","Button","my","Tooltip","title","p","Avatar","mt","setting","ReactDOM","render","document","getElementById"],"mappings":"oSAAe,MAA0B,iC,4DCEnCA,EAAYC,YAAW,CAC3BC,eA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O,OACpB,cAACT,EAAA,EAAQ,CAAerD,QAAS4B,EAAoB,SACnD,cAAC0B,EAAA,EAAU,CAACvL,UAAU,SAAQ,SAAE+L,KADnBA,EAEJ,UAMnB7J,eAAeG,MAAQ,cAACgI,EAAA,EAAG,CAACzB,GAAI,CAAE0B,SAAU,GAAI,SAC5C,cAACkB,EAAA,EAAM,CAACxD,QAAQ,WAAWlE,MAAM,UAAS,4BAUhD,uBAAK,uBAAK,uBAAK,uBACf,uBAAK,uBAAK,uBAAK,uBAEhB,cAAC,EAAU,QAIhB,EC/JAkI,IAASC,OAEP,cAAC,EAAG,IAEJC,SAASC,eAAe,Q","file":"static/js/main.60854d22.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/logo.9841def7.png\";","import { makeStyles } from \"@material-ui/styles\";\r\n\r\nconst useStyles = makeStyles({\r\n textAlignRight: {\r\n textAlign: \"right\"\r\n },\r\n textAlignCenter: {\r\n textAlign: \"center\",\r\n justifyContent: \"space-around\"\r\n },\r\n padding20: {\r\n padding: \"20px\"\r\n },\r\n marginLeft30:{\r\n marginLeft: \"30px\"\r\n\r\n },\r\n fullWidth:{\r\n width:\"100%\"\r\n },\r\n trackerViewParent: {\r\n display: \"flex\",\r\n position: \"relative\",\r\n fontSize:\"1.2em\",\r\n fontWeight:\"bold\"\r\n },\r\n icon: {\r\n width: \"1em\",\r\n height: \"1em\",\r\n display: \"inline-block\",\r\n fontSize: \"1.5rem\",\r\n transition: \"fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms\",\r\n fill: \"currentColor\",\r\n flexShrink: 0,\r\n userSelect: \"none\",\r\n },\r\n currentStatus: {\r\n width: \"100%\",\r\n borderBottom: \"2px solid #3f51b5\",\r\n textAlign: \"center\",\r\n borderColor: \"transparent transparent transparent #3f51b5\"\r\n },\r\n arrow: {\r\n position: \"absolute\",\r\n\r\n \"&::before\": {\r\n border: \"1px solid #BE5F4B\",\r\n height: \"25px\",\r\n content: \"\",\r\n position: \"absolute\",\r\n },\r\n \"&::after\": {\r\n border: \"1px solid #BE5F4B\",\r\n height: \"25px\",\r\n content: \"\",\r\n position: \"absolute\",\r\n }\r\n\r\n },\r\n origin: {\r\n textAlign: \"right\",\r\n },\r\n destination: {\r\n textAlign: \"left\"\r\n },\r\n navlogo:{\r\n maxHeight:\"50px\"\r\n },\r\n trackingline:{\r\n '& li div':{\r\n wordBreak:\"break-all\"\r\n \r\n }\r\n }\r\n\r\n \r\n});\r\n\r\n\r\nexport { useStyles }; \r\n","import axios from \"axios\";\r\nimport React, { useState, useEffect } from \"react\";\r\n\r\nconst env = window.oplAuthContext.app?.env\r\n ? window.oplAuthContext.app?.env\r\n : \"unknownEnv\";\r\nconst tenant =\r\n window.oplAuthContext.user && window.oplAuthContext.user.TenantId\r\n ? window.oplAuthContext.user.TenantId\r\n : \"unknownTenant\";\r\n\r\nconst useFetchConfig = (assetname: string | undefined) => {\r\n const [data, setData] = useState(null);\r\n\r\n const configUrl = `https://swastikconstruction.co.in//asset-store/getConfig.php?name=${env}/${tenant}/${assetname}.json`;\r\n\r\n useEffect(() => {\r\n axios.get(configUrl).then((response) => setData(response.data));\r\n return () => setData(null);\r\n }, [assetname]);\r\n\r\n return data;\r\n};\r\n\r\nexport default useFetchConfig;\r\n","export default __webpack_public_path__ + \"static/media/karooLogo.0bb83aff.png\";","import { useStyles } from '../../common/Common.style';\r\nimport Timeline from '@mui/lab/Timeline';\r\nimport TimelineItem from '@mui/lab/TimelineItem';\r\nimport TimelineSeparator from '@mui/lab/TimelineSeparator';\r\nimport TimelineConnector from '@mui/lab/TimelineConnector';\r\nimport TimelineContent from '@mui/lab/TimelineContent';\r\nimport TimelineDot from '@mui/lab/TimelineDot';\r\nimport TimelineOppositeContent from '@mui/lab/TimelineOppositeContent';\r\nimport { OrderTrackStatus } from '../../intefaces/OrderTrackStatus.interface';\r\nconst TrackingTimeline = (props: { trackerData: OrderTrackStatus }) => {\r\n const styles = useStyles();\r\n const { trackerData } = props;\r\n return (\r\n \r\n \r\n {trackerData && trackerData.eventList && trackerData.eventList.map((status, index: number) => {\r\n return ( \r\n\r\n \r\n \r\n \r\n {status.event}\r\n \r\n \r\n \r\n \r\n {(index + 1) !== trackerData.eventList?.length && }\r\n \r\n {status.eventDateTime} {status.eventLocation}\r\n \r\n \r\n );\r\n })\r\n }\r\n \r\n )\r\n\r\n}\r\n\r\nexport default TrackingTimeline;","import OplFormLayout from \"@openlane/opl-form-layout\";\r\nimport { IFormConfig } from \"@openlane/opl-form-layout/interface/IFormConfig.interface\";\r\nimport axios from \"axios\";\r\nimport Alert from '@mui/material/Alert';\r\nimport Stack from '@mui/material/Stack';\r\nimport { useEffect, useState } from \"react\";\r\nimport { useParams } from \"react-router-dom\";\r\nimport { FormProvider, useForm } from \"react-hook-form\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport { useStyles } from \"../../common/Common.style\";\r\nimport { OplConnections } from \"@openlane/opl-connections\";\r\nimport { OplEvents } from \"@openlane/opl-events\";\r\nimport useFetchConfig from \"../../services/customhooks/useFetchConfig\";\r\nimport Accordion from \"@material-ui/core/Accordion\";\r\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\r\nimport AccordionSummary from \"@material-ui/core/AccordionSummary\";\r\nimport Grid from \"@mui/material/Grid\";\r\nimport { Paper } from \"@mui/material\";\r\nimport OplForm from \"@openlane/opl-form\";\r\nimport KarooLogo from \"./karooLogo.png\";\r\nimport * as React from \"react\";\r\nimport { OrderTrackStatus } from \"../../intefaces/OrderTrackStatus.interface\";\r\nimport TrackingTimeline from \"./TrackingTimeline\";\r\nimport { ClassNames } from \"@emotion/react\";\r\nconst QuickTrack = () => {\r\n const { assetname } = useParams();\r\n const config: any = useFetchConfig(assetname);\r\n const [selectedRows, setSelectedRows] = useState();\r\n const styles = useStyles();\r\n const [form, setForm] = useState();\r\n const methods = useForm();\r\n const [clientID, setClientID] = useState(\"\");\r\n const [loading, setLoading] = useState(false);\r\n const watchControlValue = methods.watch(\"basicDetails_client\");\r\n const [show, setShow] = useState(false);\r\n const [trackerData, setTrackerData] = useState(null);\r\nconst [info, setInfo] = useState(false)\r\n\r\n useEffect(() => {\r\n OplEvents.read().subscribe((params) => {\r\n if (params.action === \"SELECTEDROWS\") {\r\n setSelectedRows(params.message);\r\n }\r\n });\r\n }, []);\r\n // const orderTrackStatus: OrderTrackStatus =\r\n // {\r\n // \"DocketNo\": \"500005247\",\r\n // \"BookingDate\": \"25 Aug 2022\",\r\n // \"BillingParty\": \"AIC 0189:ADITYA BIRLA FASHION AND RETAIL LIMITED\",\r\n // \"Origin\": \"BWDH : BHIWANDI\",\r\n // \"Destination\": \"BOMH : PANVEL\",\r\n // \"CurrentLocation\": \"BOMH\",\r\n // \"DocketTrackingStatus\": \"Delivered At BOMH On 25 Aug 22\",\r\n // \"IsPODExist\": true,\r\n // \"IsDelivered\": true,\r\n // \"DeliveredDateTime\": \"25 Aug 2022 18:05\",\r\n // \"PODImageDateTime\": \"25 Aug 2022 22:08\",\r\n // \"PODImageName\": \"10218/DRSUPDATE/2022/Aug/500005247.jpg\",\r\n // \"PODImageType\": \"jpg\",\r\n // \"PODImageBase64\": null,\r\n // \"PODImageLink\": \"https://webxsaas.blob.core.windows.net/velocity/10218/DRSUPDATE/2022/Aug/500005247.jpg\",\r\n // \"EventList\": [\r\n // {\r\n // \"DocketNo\": \"500005247\",\r\n // \"Event\": \"Stock available For LS/MF @ BWDH\",\r\n // \"EventStatus\": \"Stock available For LS/MF @ BWDH\",\r\n // \"EventDateTime\": \"25 Aug 2022 08:11:06\",\r\n // \"EventLocation\": \"BWDH\",\r\n // \"StatusCode\": \"TDCNENT1T\"\r\n // },\r\n // {\r\n // \"DocketNo\": \"500005247 \",\r\n // \"Event\": \"In LS LS/BWDH/2223/000813\",\r\n // \"EventStatus\": \"In LS LS/BWDH/2223/000813\",\r\n // \"EventDateTime\": \"25 Aug 2022 08:12:07\",\r\n // \"EventLocation\": \"BWDH\",\r\n // \"StatusCode\": \"TDLDSHTCRT1\"\r\n // },\r\n // {\r\n // \"DocketNo\": \"500005247\",\r\n // \"Event\": \"In MF MF/BWDH/2223/000758\",\r\n // \"EventStatus\": \"In MF MF/BWDH/2223/000758\",\r\n // \"EventDateTime\": \"25 Aug 2022 08:12:47\",\r\n // \"EventLocation\": \"BWDH\",\r\n // \"StatusCode\": \"TDLDSHTUPD1\"\r\n // },\r\n // {\r\n // \"DocketNo\": \"500005247\",\r\n // \"Event\": \"In Transit between BWDH and BOMH\",\r\n // \"EventStatus\": \"In Transit between BWDH and BOMH\",\r\n // \"EventDateTime\": \"25 Aug 2022 08:13:08\",\r\n // \"EventLocation\": \"BWDH\",\r\n // \"StatusCode\": \"TDTHCDEP1\"\r\n // },\r\n // {\r\n // \"DocketNo\": \"500005247\",\r\n // \"Event\": \"Pending for Stock Update @ BOMH\",\r\n // \"EventStatus\": \"Pending for Stock Update @ BOMH\",\r\n // \"EventDateTime\": \"25 Aug 2022 16:55:38\",\r\n // \"EventLocation\": \"BOMH\",\r\n // \"StatusCode\": \"TDVA1D\"\r\n // },\r\n // {\r\n // \"DocketNo\": \"500005247\",\r\n // \"Event\": \"Stock @ BOMH\\nand available for DRS\",\r\n // \"EventStatus\": \"Stock @ BOMH\\nand available for DRS\",\r\n // \"EventDateTime\": \"25 Aug 2022 16:59:08\",\r\n // \"EventLocation\": \"BOMH\",\r\n // \"StatusCode\": \"TDSTUPDDELDRS1\"\r\n // },\r\n // {\r\n // \"DocketNo\": \"500005247\",\r\n // \"Event\": \"Gone for Delivery Via DS/BOMH/2223/000643 On 25 Aug 2022\",\r\n // \"EventStatus\": \"Gone for Delivery Via DS/BOMH/2223/000643 On 25 Aug 2022\",\r\n // \"EventDateTime\": \"25 Aug 2022 18:12:21\",\r\n // \"EventLocation\": \"BOMH\",\r\n // \"StatusCode\": \"TDDRSGEN1\"\r\n // },\r\n // {\r\n // \"DocketNo\": \"500005247\",\r\n // \"Event\": \"Delivered @ BOMH On 25 Aug 2022\",\r\n // \"EventStatus\": \"Delivered @ BOMH On 25 Aug 2022\",\r\n // \"EventDateTime\": \"25 Aug 2022 22:08:42\",\r\n // \"EventLocation\": \"BOMH\",\r\n // \"StatusCode\": \"TDDRSUPDDLY1\"\r\n // }\r\n // ]\r\n // };\r\n // const getOrders = async (config: any, payload: any) => {\r\n // const dataCollection = {\r\n // payload: payload,\r\n // };\r\n // const response = await OplConnections.call(\"GetTrackerRequest\", dataCollection);\r\n // const dbform = response.data.data;\r\n // const result = dbform.map((form: any) => {\r\n\r\n // config.sections.map((section: OrderTrackStatus) => {\r\n // console.log(section.DocketNo)\r\n // });\r\n\r\n // });\r\n // return result;\r\n\r\n // };\r\n\r\n const formConfig = [\r\n {\r\n dataType: \"string\",\r\n dataPath: \"\",\r\n label: \"Way Bill number\",\r\n id: \"wayBillNumber\",\r\n controlType: \"text\",\r\n defaultValue: \"\",\r\n attributes: {\r\n visible: true,\r\n disabled: false,\r\n tabIndex: 0,\r\n placeholder: \"\",\r\n readonly: false,\r\n },\r\n validate: {},\r\n events: {},\r\n },\r\n {\r\n dataType: \"string\",\r\n dataPath: \"\",\r\n label: \"Courier\",\r\n id: \"courier\",\r\n controlType: \"select\",\r\n defaultValue: \"\",\r\n attributes: {\r\n visible: true,\r\n disabled: false,\r\n tabIndex: 0,\r\n placeholder: \"\",\r\n readonly: false,\r\n },\r\n options: {\r\n list: [\r\n { key: \"xpressbees\", value: \"XpressBees\" },\r\n { key: \"oxyzenexpress\", value: \"Oxygen Express\" },\r\n ],\r\n config: undefined,\r\n },\r\n events: {\r\n onChange: {\r\n params: null,\r\n },\r\n },\r\n validate: {},\r\n },\r\n ];\r\n const handleFilter = () => {\r\n setLoading(true);\r\n\r\n setShow(true);\r\n const payload = {\r\n // fromClientID: methods.getValues(\"consignor\"),\r\n // billDate: methods.getValues(\"billDate\"),\r\n // invoiceId: \"noLink\",\r\n wayBillNumber: methods.getValues(\"wayBillNumber\"),\r\n courierParterCode: methods.getValues(\"courier\"),\r\n };\r\n // console.log(\"outside tracker\");\r\n // console.log(\"loading\");\r\n setLoading(true);\r\n setInfo(true)\r\n\r\n OplConnections.call(\"GetTrackerRequest\", { payload })\r\n .then((response: any) => {\r\n setLoading(false);\r\n // console.log(response);\r\n // console.log(\"inside tracker\");\r\n setTrackerData(response.data);\r\n // console.log(response.data);\r\n // console.log(response.data.docketNo);\r\n })\r\n\r\n .catch((error: any) => setLoading(false));\r\n\r\n // OplConnections.call(\"GetAllOrderMaster\", { payload })\r\n // .then((response: any) => {\r\n // setLoading(false);\r\n // })\r\n // .catch((error: any) => setLoading(false));\r\n // OplConnections.call(\"GetTaxes\").then((response: any) => setGstPercentage(response.data.data[0].value));\r\n };\r\n\r\n useEffect(() => {\r\n if (watchControlValue) {\r\n setLoading(true);\r\n setClientID(watchControlValue);\r\n config &&\r\n OplConnections.call(config.connections.get, {\r\n id: watchControlValue,\r\n }).then((response: any) => {\r\n setLoading(false);\r\n const data = {\r\n organizationId: watchControlValue,\r\n orders: response.data.data,\r\n };\r\n //const formData = generateDbFormData(config, data);\r\n // setForm(formData);\r\n });\r\n }\r\n }, [watchControlValue]);\r\n\r\n useEffect(() => {\r\n methods.reset(form);\r\n }, [form]);\r\n\r\n const handleSave = () => {\r\n if (clientID) {\r\n const selectedOrders =\r\n selectedRows && selectedRows.map((r) => r[\"orders_id\"]);\r\n const dataCollection = {\r\n payload: {\r\n orders: selectedOrders,\r\n organizationId: clientID,\r\n },\r\n };\r\n OplConnections.call(config.connections.save, dataCollection)\r\n .then((response: any) => {\r\n // navigate(config.afterSave);\r\n response.data.status === \"Success\"\r\n ? OplEvents.send(\"form\", \"setAlertMessage\", {\r\n open: true,\r\n type: \"success\",\r\n message: \"Records saved successfully!\",\r\n autoHide: false,\r\n autoHideDuration: 5000,\r\n })\r\n : OplEvents.send(\"form\", \"setAlertMessage\", {\r\n open: true,\r\n type: \"error\",\r\n message: \"Error while saving records\",\r\n autoHide: false,\r\n autoHideDuration: 5000,\r\n });\r\n })\r\n .catch((error: any) => {\r\n OplEvents.send(\"form\", \"setAlertMessage\", {\r\n open: true,\r\n type: \"error\",\r\n message: \"Error while saving records\",\r\n autoHide: false,\r\n autoHideDuration: 5000,\r\n });\r\n console.log(error.message);\r\n });\r\n //saveData(config.connections.save, dataCollection);\r\n }\r\n };\r\n\r\n return config ? (\r\n <>\r\n \r\n \r\n {/* tracker */}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n Track\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {/* location */}\r\n\r\n \r\n
\r\n {loading ? (\r\n
\r\n

Loading...

\r\n
\r\n ) : trackerData ? (\r\n <>\r\n
\r\n
\r\n {trackerData ? trackerData.origin : \"\"}\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n {\" \"}\r\n {trackerData ? trackerData.docketTrackingStatus : \"\"}\r\n
\r\n
\r\n
\r\n {trackerData ? trackerData.destination : \"\"}\r\n\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n {/*

{trackerData ? trackerData : \"docket number\"}

*/}\r\n {/*

{trackerData && trackerData.bookingDate}

\r\n

{trackerData && trackerData.billingParty}

*/}\r\n\r\n \r\n
\r\n \r\n ) : info? (\r\n \r\n Invalid Way Bill Number or Courier\r\n \r\n ): \"\"}\r\n
\r\n
\r\n
\r\n\r\n \r\n {/* logo */}\r\n \r\n \r\n \r\n {/* about */}\r\n\r\n \r\n
\r\n

About Us

\r\n
\r\n Lorem Ipsum is simply dummy text of the printing and typesetting\r\n industry. Lorem Ipsum has been the industry's standard dummy\r\n text ever since the 1500s, when an unknown printer took a galley\r\n of type and scrambled it to make a type specimen book. It has\r\n survived not only five centuries, but also the leap into\r\n electronic typesetting, remaining essentially unchanged. It was\r\n popularised in the 1960s with the release of Letraset sheets\r\n containing Lorem Ipsum passages, and more recently with desktop\r\n publishing software like Aldus PageMaker including versions of\r\n Lorem Ipsum.\r\n
\r\n
\r\n
\r\n

Our Services

\r\n
\r\n
    \r\n
  • Courier Service
  • \r\n
  • e-Com Service
  • \r\n
  • Domestic Air
  • \r\n
  • Domestic Surface
  • \r\n
  • International Courier
  • \r\n
  • Internation by Air/Sea
  • \r\n
  • Warehousing
  • \r\n
  • 3PL Service
  • \r\n
\r\n
\r\n
\r\n \r\n Explore Services\r\n \r\n \r\n Contact Us\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n ) : null;\r\n};\r\n\r\nexport default QuickTrack;\r\n","import * as React from 'react';\r\nimport AppBar from '@mui/material/AppBar';\r\nimport Box from '@mui/material/Box';\r\nimport Toolbar from '@mui/material/Toolbar';\r\nimport IconButton from '@mui/material/IconButton';\r\nimport Typography from '@mui/material/Typography';\r\nimport Menu from '@mui/material/Menu';\r\n// import MenuIcon from '@mui/icons-material/Menu';\r\nimport Container from '@mui/material/Container';\r\nimport Avatar from '@mui/material/Avatar';\r\nimport Button from '@mui/material/Button';\r\nimport Tooltip from '@mui/material/Tooltip';\r\nimport MenuItem from '@mui/material/MenuItem';\r\nimport AdbIcon from '@mui/icons-material/Adb';\r\nimport Paper from '@mui/material/Paper';\r\nimport Logo from './logo.png';\r\nimport QuickTrack from './components/QuickTrack/QuickTrack';\r\nimport { BrowserRouter as Router, Routes, Route } from \"react-router-dom\";\r\nconst pages = ['About Us'];\r\nconst settings = [ 'Account Settings', 'Logout'];\r\ndeclare var oplAuthContext:any;\r\nconst App = () => {\r\n const [anchorElNav, setAnchorElNav] = React.useState(null);\r\n const [anchorElUser, setAnchorElUser] = React.useState(null);\r\n\r\n const handleOpenNavMenu = (event: React.MouseEvent) => {\r\n setAnchorElNav(event.currentTarget);\r\n };\r\n const handleOpenUserMenu = (event: React.MouseEvent) => {\r\n setAnchorElUser(event.currentTarget);\r\n };\r\n\r\n const handleCloseNavMenu = () => {\r\n setAnchorElNav(null);\r\n };\r\n\r\n const handleCloseUserMenu = () => {\r\n setAnchorElUser(null);\r\n };\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n {/* \r\n Karoo Logistics\r\n */}\r\n \r\n \r\n \r\n {/* */}\r\n \r\n \r\n {pages.map((page) => (\r\n \r\n {page}\r\n \r\n ))}\r\n \r\n \r\n\r\n \r\n \r\n {pages.map((page) => (\r\n \r\n {page}\r\n \r\n ))}\r\n \r\n{\r\n oplAuthContext && oplAuthContext.user && \r\n \r\n \r\n \r\n \r\n \r\n \r\n {settings.map((setting) => (\r\n \r\n {setting}\r\n \r\n ))}\r\n \r\n \r\n}\r\n{\r\n !oplAuthContext.user && \r\n \r\n \r\n \r\n}\r\n \r\n \r\n \r\n \r\n



\r\n



\r\n \r\n \r\n
\r\n
\r\n );\r\n};\r\nexport default App;\r\n","import React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport \"./index.css\";\r\nimport App from \"./App\";\r\n//import reportWebVitals from './reportWebVitals';\r\n\r\nReactDOM.render(\r\n // \r\n ,\r\n // ,\r\n document.getElementById(\"root\")\r\n);\r\n\r\n// If you want to start measuring performance in your app, pass a function\r\n// to log results (for example: reportWebVitals(console.log))\r\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\r\n//reportWebVitals();\r\n"],"sourceRoot":""}