{"version":3,"sources":["helper/index.js","reduxState/constants/authConstant.js","reduxState/constants/CategoryConstant.js","Config/axios.js","reduxState/aciton/authAction.js","component/Login/index.js","component/Register/index.js","component/ui/MainListItems.js","component/ui/Layout.js","component/ResetPassword/Email.js","component/ResetPassword/RestoredPassword.js","Route/index.js","component/DashboardStats/TitleCard/index.js","component/DashboardStats/CardSummary/index.js","component/DashboardStats/Chart/react-charts/PerYear.js","component/DashboardStats/Chart/react-charts/PerMonth.js","component/DashboardStats/Chart/react-charts/PerDays.js","component/DashboardStats/Chart/react-charts/PerOneDays.js","component/DashboardStats/Chart/Tabs.js","component/DashboardStats/Chart/index.js","component/DashboardStats/Stats/index.js","component/DashboardStats/PowerStats/index.js","component/DashboardStats/index.js","component/Maps/map.js","component/Maps/index.js","component/EditPlants/Card/Card1.js","component/EditPlants/Card/Card2.js","component/EditPlants/Card/Card3.js","component/EditPlants/index.js","component/Table/index.js","component/Plants/index.js","component/Alarms/index.js","component/Account-Info/Details/index.js","component/Account-Info/index.js","component/ChangePassword/Fields/index.js","component/ChangePassword/index.js","component/NotFound/NotFound.js","component/ContactInfo/index.js","component/AboutUs/index.js","component/Devices/index.js","component/Devices/device-power-stats.js","component/Devices/realtime-status-flow.js","component/Devices/device-detail.js","component/Devices/collector-detail.js","component/RealTimeStatus/index.js","Route/CustomRouter.js","App.js","reduxState/constants/orderConstant.js","reduxState/constants/ProductsConstant.js","reduxState/reducers/CategoryReducer.js","reduxState/constants/Userconstant.js","Store.js","reduxState/reducers/authReducer.js","reduxState/reducers/UserReducer.js","reduxState/reducers/ProductsReducer.js","reduxState/reducers/orderReducer.js","component/ui/theme.js","index.js"],"names":["cookies","require","Cookies","getPlantId","cookie","get","plantId","name","id","generateHash","action","postActions","salt","token","rest","hash","property","nestedObject","nestedProperty","encode","Buffer","from","toString","utf","crypto","createHash","update","digest","generateUrl","sign","url","monthNames","extractDate","date","type","dateobj","Date","day","getDate","month","getMonth","year","getFullYear","USER_LOGIN_SUCCESS","USER_LOGIN_REQUEST","USER_LOGIN_FAIL","USER_LOGOUT","USER_REGISTER_SUCCESS","USER_REGISTER_REQUEST","USER_REGISTER_FAIL","USER_RESET_PASSWORD_SUCCESS","USER_RESET_PASSWORD_REQUEST","USER_RESET_PASSWORD_FAIL","USER_STORED_PASSWORD_SUCCESS","USER_STORED_PASSWORD_REQUEST","USER_STORED_PASSWORD_FAIL","ADD_CATEGORY_SUCCESS","ADD_CATEGORY_REQUEST","ADD_CATEGORY_FAIL","GET_CATEGORY_SUCCESS","GET_CATEGORY_REQUEST","GET_CATEGORY_FAIL","instance","axios","create","baseURL","interceptors","request","use","config","headers","common","response","error","a","originalRequest","status","_retry","refreshAccessToken","Promise","reject","loginInstance","setAllPlants","data","desc","plants","dat","plant","set","resetPassword","email","dispatch","payload","post","success","useStyle","makeStyles","theme","loginContainer","width","height","overflow","padding","margin","background","position","color","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","display","justifyContent","alignItems","bgLayer","inset","backgroundColor","opacity","form","maxWidth","Paper","borderRadius","zIndex","backdropFilter","border","Heading","fontSize","fontFamily","fontWeight","inputField","Button","palette","red","ButtonLight","Demo","minWidth","secondary","light","developedBy","bottom","left","right","Alert","props","elevation","variant","Login","classes","navigate","useNavigate","useState","password","formData","setformData","showPassword","setShowPassword","emailHelper","passwordHelper","validationHelper","setValidationHelper","open","severity","openSanckbar","setOpenSnackbar","onChange","e","target","value","useDispatch","userSignin","useSelector","state","userInfo","loading","errorSuccess","useEffect","message","className","onSubmit","preventDefault","isError","length","Validation","Username","Password","console","log","Description","Token","path","Secret","UserID","Title","userLogin","Grid","item","container","component","justify","alignContent","ButtonBase","sx","alt","src","style","marginTop","Typography","direction","FormControl","fullWidth","OutlinedInput","placeholder","inputProps","FormHelperText","endAdornment","InputAdornment","IconButton","aria-label","onClick","onMouseDown","event","edge","Link","href","Snackbar","autoHideDuration","TransitionComponent","Fade","onClose","top","transform","pink","textDecoration","text","lineHeight","marginBottom","Register","options","username","countryCode","phone","userType","userNameHelper","phoneHelper","userTypeHelper","valid","test","userRegister","fields","key","fiedlName","React","inputCode","setInputCode","Error","map","TextField","helperText","md","sm","Autocomplete","size","inputValue","onInputChange","newInputValue","newValue","renderInput","params","register","to","useStyles","root","nested","paddingLeft","linkStyle","subListBackground","textStyle","typography","sideBar","menuIcon","marginRight","ListItem","withStyles","borderLeft","selected","MuiListItem","MainListItems","drawerOpen","setOpenProducts","users","setUsers","setOpenCategories","setOpenOrders","setDrawer","selectedIndex","setSelectedIndex","handleListItemClick","index","route","menu","header","icon","handle","child","Devices","hasChild","x","button","ListItemIcon","ListItemText","primary","ListItemSecondaryAction","Collapse","in","timeout","unmountOnExit","List","disablePadding","disableGutters","Copyright","textAlign","textTransform","toolbar","paddingRight","minHeight","toolbarIcon","mixins","appBar","drawer","transition","transitions","easing","sharp","duration","leavingScreen","boxShadow","borderBottom","appBarShift","marginLeft","enteringScreen","menuButton","menuButtonHidden","title","flexGrow","drawerPaper","Black","darkGrey","whiteSpace","drawerPaperClose","overflowX","spacing","breakpoints","up","appBarSpacer","content","paddingTop","paddingBottom","paper","flexDirection","fixedHeight","small","option","Dashboard","setOpen","userName","userAvatar","setPlantsOption","setDefaultOption","fetchApi","dvalue","pid","CssBaseline","AppBar","clsx","Toolbar","noWrap","Fragment","Avatar","Drawer","dense","remove","window","location","startIcon","Container","userResetPassword","RestoredPassword","userPasswordStore","PrivateRoute","children","auth","setAuth","isTokenValidated","setIsTokenValidated","err","replace","cardcontent","tagline","PerYear","colors","chart","xaxis","categories","yaxis","tickPlacement","labels","rotate","rotateAlways","formatter","val","toFixed","decimalsInFloat","series","setDate","showYearPicker","dateFormat","PerDays","showMonthYearPicker","showFullMonthYearPicker","dataLabels","enabled","stroke","curve","tooltip","format","showMonthDropdown","indicator","default","TabPanel","other","role","hidden","aria-labelledby","Box","p","TabBar","active","setActive","setSeries","setCategories","fetchTotalPerYear","seriesYear","peryear","forEach","obj","push","fetchTotalPerMonth","startDate","allMonths","permonth","fetchTotalPerDays","perday","fetchTotalPerOneDay","category","outputPower","ts","moment","add","Tabs","TabIndicatorProps","indicatorColor","textColor","Tab","label","ChartBox","plantCookie","kiloWatt","heading","fontPoppins","Deposits","plantName","setPlantName","updated","power","subtitle","capacity","paperSummary","paperGraph","paperPower","fixedHeightGraph","fixedHeightSummary","fixedHeightPower","fixedWidth","card","count","unit","plantCard","deviceStats","plantDeviceStats","toLocaleTimeString","activePowerCurrnet","setActivePowerCurrnet","cardSummary","setCardSummary","powerStats","setPowerStats","summary","setSummary","fetchCurrentPower","url1","ouputPowerCurrent","substring","fetchCardSummary","count1","count2","count3","url2","url3","all","queryDeviceCount","queryPlantCount","queryAlarmsCount","fetchPowerStats","queryPowerCurrent","queryPlantsNominalPower","energy","profit","currency","coal","co2","so2","nominalPower","fetchPowerStatsPlant","count4","plantid","par","queryPlantCurrentData","queryPlantRunningNormalTimeAvg","queryPlantRunningNormalTime","find","composed","minutes","xs","Chart","CustomMap","google","locations","frameBorder","allowFullScreen","Card","borderTop","blue","iconColor","typoFont","Card1","setFormData","manufacturerName","description","foreignDescription","barcode","hscode","netWeight","grossWeight","stockMaxLevel","stockMinLevel","reorderLevel","rate","elementName","startsWith","split","slice","makeAnimated","inputRoot","inputInput","AddProduct","useParams","isEdit","setIsEdit","energyYearEstimate","designCompany","install","address","country","province","city","county","town","village","lon","lat","timezone","unitProfit","currencyCountry","nameHelper","nominalPowerHelper","energyYearEstimateHelper","designCompanyHelper","installHelper","addressHelper","countryHelper","provinceHelper","cityHelper","countyHelper","townHelper","villageHelper","lonHelper","latHelper","timezoneHelper","profitHelper","unitProfitHelper","currencyHelper","currencyCountryHelper","coalHelper","co2Helper","so2Helper","oldPasswordHelper","validation","nestedKey","containsNull","required","oldPassword","field","saveNewPlant","editPlant","editForm","encodeURIComponent","handleCloseSnackbar","reason","hasOwnProperty","tabelCellFont","PName","LightGrey","CustomTable","tableHead","tableData","ActionFunction","Limit","Page","handleLive","handleDelisted","handlePaymentDialog","page","setPage","rowsPerPage","setRowsPerPage","TableContainer","Table","table","undefined","TableHead","TableRow","prop","TableCell","align","TableBody","row","hover","tabIndex","column","Tooltip","arrow","objectFit","toLocaleString","variance","price","stock","Chip","TablePagination","rowsPerPageOptions","onChangePage","newPage","onChangeRowsPerPage","memo","search","shape","fade","white","searchIcon","pointerEvents","Select","LotteryWinners","orderBy","filter","setFilter","setTable","plantsOption","orderByOptions","handleFilterChange","onNavigate","select","MenuItem","tableHeaderColor","i18n","pagesize","warning","fetchFilterData","direciton","info","Details","accountInfo","_Username","shift","join","user","roles","AccountInfo","Email","Mobile","Role","UID","setaccountInfo","fetchAccountInfo","bomb","gts","mobile","mobileAccr","uid","usr","Timezone","Change_Password","newPassword","confirmPassword","newPasswordHelper","confirmPasswordHelper","disabled","parseInt","changePassword","ChangePassword","Fields","animamtion","NotFound","ContactInfo","AboutUs","_","logo","avatar","plantsCookie","styles","useGraphicBtnStyles","device","deviceData","setDeviceData","isCollector","setIsCollector","dataloggerName","setDataloggerName","pnNumber","setPnNumber","deviceOption","isUndefined","collector","addCollectorApi","handleClose","idx","collalias","pn","sn","load","head","onViewDetail","Dialog","DialogTitle","DialogContent","DialogContentText","autoFocus","DialogActions","DevicePowerStats","realtimeBg","down","gridSec","grid","gridInfo","loadSec","loadInfo","powerSec","powerInfo","batterySec","battery","batteryInfo","RealtimeStatusFlow","loadStatus","setLoadStatus","gridStatus","setGridStatus","batteryStatus","setBatterystatus","powerStatus","setPowerstatus","loadValue","setLoadValue","loadUnit","setLoadUnit","setGridValue","setGridUnit","powerValue","setPowerValue","batteryValue","setBatteryValue","batteryUnit","setBatteryUnit","fetchDeviceEnergyFlow","source","devcode","devaddr","bc_status","gd_status","bt_status","pv_status","parseFloat","interval","setInterval","clearInterval","DeviceDetail","useLocation","energyYear","energymonth","energyTotal","tabValue","setTabValue","outpower","energyToday","TabContext","borderColor","TabList","CollectorDetail","openRestart","setOpenRestart","openDelete","setOpenDelete","restartLogger","deleteLogger","handleRestartConfirm","handleDeleteConfirm","RealTimeStatus","fetchDeviceApi","CustomRouter","element","App","GET_ORDERS_SUCCESS","GET_ORDERS_REQUEST","GET_ORDERS_FAIL","GET_ORDERS_BY_ID_SUCCESS","GET_ORDERS_BY_ID_REQUEST","GET_ORDERS_BY_ID_FAIL","VERIFY_ORDER_SUCCESS","VERIFY_ORDER_REQUEST","VERIFY_ORDER_FAIL","CANCEL_ORDER_SUCCESS","CANCEL_ORDER_REQUEST","CANCEL_ORDER_FAIL","RETURN_ORDER_SUCCESS","RETURN_ORDER_REQUEST","RETURN_ORDER_FAIL","DISPATCH_ORDER_SUCCESS","DISPATCH_ORDER_REQUEST","DISPATCH_ORDER_FAIL","COMPLETE_ORDER_SUCCESS","COMPLETE_ORDER_REQUEST","COMPLETE_ORDER_FAIL","VERIFY_ORDER_PRODUCTS_SUCCESS","VERIFY_ORDER_PRODUCTS_REQUEST","VERIFY_ORDER_PRODUCTS_FAIL","RETURN_ORDER_PRODUCTS_SUCCESS","RETURN_ORDER_PRODUCTS_REQUEST","RETURN_ORDER_PRODUCTS_FAIL","CLASH_ORDER_PRODUCTS_SUCCESS","CLASH_ORDER_PRODUCTS_REQUEST","CLASH_ORDER_PRODUCTS_FAIL","ADD_PRODUCTS_SUCCESS","ADD_PRODUCTS_REQUEST","ADD_PRODUCTS_FAIL","GET_PRODUCTS_SUCCESS","GET_PRODUCTS_REQUEST","GET_PRODUCTS_FAIL","GET_USERS_REQUEST","GET_USERS_SUCCESS","GET_USERS_FAIL","GET_USERS_BY_ID_REQUEST","GET_USERS_BY_ID_SUCCESS","GET_USERS_BY_ID_FAIL","initialState","reducer","combineReducers","getUser","getUserbyId","addProduct","products","getProduct","addCategory","getCategory","getOrder","orders","getOrderById","order","verifyOrder","verifyOrders","cancelOrder","cancelOrders","returnOrder","returnOrders","dispatchOrder","dispatchOrders","completeOrder","completeOrders","verifyProduct","returnProduct","returnProducts","clashProductsReducer","clashProducts","composeEnhancer","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","store","createStore","applyMiddleware","thunk","DarkGrey","Grey","createMuiTheme","Orange","main","contrastText","tab","estimate","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","overrides","MuiInputLabel","MuiInput","underline","ReactDOM","render","ThemeProvider","document","getElementById"],"mappings":"oTAIMA,GAFIC,EAAQ,IAEF,IAAIC,KAkBdC,EAAa,WAClB,IAAIC,EAASJ,EAAQK,IAAI,SACrBC,EAAU,KAId,OAHIF,GAA2B,gBAAX,OAANA,QAAM,IAANA,OAAA,EAAAA,EAAQG,QACrBD,EAAUF,EAAOI,IAEXF,GAKFG,EAAe,SAAC,GAAmD,IAAjDC,EAAgD,EAAhDA,OAAQC,EAAwC,EAAxCA,YAAaC,EAA2B,EAA3BA,KAAMC,EAAqB,EAArBA,MAAUC,EAAW,uDAInEC,EAAOH,EAtBKZ,EAAQK,IAAI,WAsBAQ,EAFjB,kBAAcH,GAEqBC,EAE9C,GAAIG,EACH,IAAK,IAAME,KAAYF,EACtB,GAA8B,kBAAnBA,EAAKE,GAAwB,CACvC,IAAIC,EAAeH,EAAKE,GACxB,IAAK,IAAIE,KAAkBD,EAC1BF,GAAW,WAAOC,EAAP,YAAmBE,EAAnB,YAAqCJ,EAAKE,GAAUE,SAGhEH,GAAW,WAAOC,EAAP,YAAmBF,EAAKE,IAItC,IAAIG,EArBO,SAACJ,GACZ,OAAOK,EAAOC,KAAKN,EAAM,SAASO,WAoBrBC,CAAIR,GACjB,OAAOS,IAAOC,WAAW,QAAQC,OAAOP,EAAQ,UAAUQ,OAAO,QAE5DC,EAAc,SAAC,GAAyB,IAAvBlB,EAAsB,EAAtBA,OAAWI,EAAW,0BACxCH,EA5CM,oFA6CNC,EAhDG,WAiDHC,EAtCUb,EAAQK,IAAI,SAwCtBwB,EAAOpB,EAAa,aAAEC,SAAQC,cAAaC,OAAMC,SAAUC,IACjD,aAAVJ,IACHmB,EAAO,4CAGR,IAAIC,EAAG,iBAAaD,EAAb,iBAA0BjB,EAA1B,kBAA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AD,OAXM,WAYZnjB,SAAS,GAAD,OAAKgjB,IACbC,KAAK,GAAD,OAAKA,IACT9R,UAAU,GAAD,OAVM,WAWfpR,MAAM,GAAD,OAVM,UAYZnC,QAAS,CACRwlB,KAAK,GAAD,OAAK1wB,IACT2wB,aAAc,QAEfvwB,UAAW,CACVswB,KAAK,GAAD,OAAKJ,IACTK,aAAc,SAGhB1nB,WAAY,CACXC,QAAS,CACRvJ,WAAY,sBACZkM,cAAe,aAEfnM,SAAU,OAEXkxB,IAAK,CACJjxB,WAAY,sBACZkM,cAAe,OACfjM,WAAY,IACZF,SAAU,QAEXmxB,SAAU,CACTlxB,WAAY,WACZD,SAAU,OACVmM,cAAe,OACfvN,MAAO,SAERwyB,GAAI,CACHnxB,WAAY,qCACZD,SAAU,OACVE,WAAY,OAEbmxB,GAAI,CACHpxB,WAAY,qCACZD,SAAU,OAEV4G,WAAY,GAEb0qB,GAAI,CACHrxB,WAAY,sBACZD,SAAU,UACVE,WAAY,KAEbqxB,GAAI,CACHtxB,WAAY,qCACZD,SAAU,QAIXwxB,GAAI,CACHvxB,WAAY,qCACZD,SAAU,QAGXyxB,UAAW,CAEVzxB,SAAU,OACVE,WAAY,KAEbwxB,UAAW,CACV1xB,SAAU,QACVE,WAAY,KAGbyxB,MAAO,CACN3xB,SAAU,UACVpB,MAAOiyB,GACP3wB,WAAY,MAGd0xB,UAAW,CACVC,cAAe,CACd5oB,KAAM,CAELjJ,SAAU,SAGZ8xB,SAAU,CACT7oB,KAAM,CAEL/I,WAAY,IACZF,SAAU,QAEX+xB,UAAW,CACV,WAAY,GAGZ,0DAA2D,Q,UClG/DC,IAASC,OACR,cAAC,IAAD,CAAUzB,MAAOA,GAAjB,SACC,cAAC0B,GAAA,EAAD,CAAe/zB,MAAOA,GAAtB,SACC,cAAC,KAAD,UACC,cAAC,GAAD,UAIHg0B,SAASC,eAAe,W","file":"static/js/main.4380d8d3.chunk.js","sourcesContent":["import crypto from 'crypto';\r\nimport Cookies from 'universal-cookie';\r\nconst _ = require('lodash');\r\n\r\nconst cookies = new Cookies();\r\n\r\nconst generateSalt = () => {\r\n\t// return new Date().getTime();\r\n\treturn '12345678';\r\n};\r\nconst postAction = () => {\r\n\tlet action = `&source=1&app_id=com.crownmicro.crownmonitor&app_version=1.0.2&app_client=android`;\r\n\treturn action;\r\n};\r\nconst getSecret = () => {\r\n\tconst secrete = cookies.get('secrete');\r\n\treturn secrete;\r\n};\r\nconst getToken = () => {\r\n\tconst token = cookies.get('token');\r\n\treturn token;\r\n};\r\nconst getPlantId = () => {\r\n\tlet cookie = cookies.get('plant');\r\n\tlet plantId = null;\r\n\tif (cookie && cookie?.name !== 'All Plants') {\r\n\t\tplantId = cookie.id;\r\n\t}\r\n\treturn plantId;\r\n};\r\nconst utf = (hash) => {\r\n\treturn Buffer.from(hash, 'utf-8').toString();\r\n};\r\nconst generateHash = ({ action, postActions, salt, token, ...rest }) => {\r\n\tlet secrete = getSecret();\r\n\tlet actions = `&action=${action}`;\r\n\r\n\tlet hash = salt + secrete + token + actions + postActions;\r\n\r\n\tif (rest) {\r\n\t\tfor (const property in rest) {\r\n\t\t\tif (typeof rest[property] === 'object') {\r\n\t\t\t\tlet nestedObject = rest[property];\r\n\t\t\t\tfor (let nestedProperty in nestedObject) {\r\n\t\t\t\t\thash = hash + `&${property}.${nestedProperty}=${rest[property][nestedProperty]}`;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\thash = hash + `&${property}=${rest[property]}`;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tlet encode = utf(hash);\r\n\treturn crypto.createHash('sha1').update(encode, 'binary').digest('hex');\r\n};\r\nconst generateUrl = ({ action, ...rest }) => {\r\n\tlet postActions = postAction();\r\n\tlet salt = generateSalt();\r\n\tlet token = getToken();\r\n\r\n\tlet sign = generateHash({ action, postActions, salt, token, ...rest });\r\n\tif (action == 'editPlant') {\r\n\t\tsign = '495471645c71cb8c31922ef3a5287731f911a50a';\r\n\t}\r\n\r\n\tlet url = `/?sign=${sign}&salt=${salt}&token=${token}&action=${action}${postActions}`;\r\n\r\n\r\n\tif (rest) {\r\n\t\tfor (const property in rest) {\r\n\t\t\tif (typeof rest[property] === 'object') {\r\n\t\t\t\tlet nestedObject = rest[property];\r\n\t\t\t\tfor (let nestedProperty in nestedObject) {\r\n\t\t\t\t\turl = url + `&${property}.${nestedProperty}=${rest[property][nestedProperty]}`;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\turl = url + `&${property}=${rest[property]}`;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn url;\r\n};\r\n\r\nconst monthNames = () => {\r\n\treturn ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\r\n};\r\n\r\nconst extractDate = ({ date, type }) => {\r\n\tlet dateobj = new Date(date);\r\n\tvar day = (dateobj.getDate() < 10 ? '0' : '') + dateobj.getDate();\r\n\tvar month = (dateobj.getMonth() + 1 < 10 ? '0' : '') + (dateobj.getMonth() + 1);\r\n\tvar year = dateobj.getFullYear();\r\n\r\n\tlet alterDate = null;\r\n\r\n\tif (type == 'year') {\r\n\t\talterDate = year;\r\n\t} else if (type == 'month') {\r\n\t\talterDate = `${year}-${month}`;\r\n\t} else if (type == 'day') {\r\n\t\talterDate = `${year}-${month}-${day}`;\r\n\t} else {\r\n\t\talterDate = new Date(dateobj);\r\n\t}\r\n\treturn alterDate;\r\n};\r\n\r\n// '1234567873abb332b8b06480c33bd0bfaa375dbe562566804345b5a24d4312f6f215ff36cbc9607fb553ec0f67d7d57f2eea2de62ee19d44&action=queryPlantCount&source=1&app_id=com.crownmicro.crownmonitor&app_version=1.0.2&app_client=android'\r\n\r\n// 68caa92eab7f6fbb9678a0360e369737176a917d&salt=12345678&token=d4d40a6a3dc85ad0f2f93dc0f3c2c0032c53085ebb35c40b5b2a7d6adcb73581&action=queryPlantActiveOuputPowerCurrent&source=1&app_id=com.crownmicro.crownmonitor&app_version=1.0.2&app_client=android\r\n\r\nexport { generateHash, postAction, generateSalt, getToken, generateUrl, monthNames, extractDate, getPlantId };\r\n","//**********user Auth***********\\\r\nexport const USER_LOGIN_SUCCESS = 'USER_LOGIN_SUCCESS';\r\nexport const USER_LOGIN_REQUEST = 'USER_LOGIN_REQUEST';\r\nexport const USER_LOGIN_FAIL = 'USER_LOGIN_FAIL';\r\n\r\n// ***********************User logout********************\r\nexport const USER_LOGOUT = 'USER_LOGOUT';\r\n\r\n// ***********************User Register********************\r\nexport const USER_REGISTER_SUCCESS = 'USER_REGISTER_SUCCESS';\r\nexport const USER_REGISTER_REQUEST = 'USER_REGISTER_REQUEST';\r\nexport const USER_REGISTER_FAIL = 'USER_REGISTER_FAIL';\r\n\r\n// ***********************User Reset Password********************\r\nexport const USER_RESET_PASSWORD_SUCCESS = 'USER_RESET_PASSWORD_SUCCESS';\r\nexport const USER_RESET_PASSWORD_REQUEST = 'USER_RESET_PASSWORD_REQUEST';\r\nexport const USER_RESET_PASSWORD_FAIL = 'USER_RESET_PASSWORD_FAIL';\r\n\r\n// ***********************User Reset Password********************\r\nexport const USER_STORED_PASSWORD_SUCCESS = 'USER_STORED_PASSWORD_SUCCESS';\r\nexport const USER_STORED_PASSWORD_REQUEST = 'USER_STORED_PASSWORD_REQUEST';\r\nexport const USER_STORED_PASSWORD_FAIL = 'USER_STORED_PASSWORD_FAIL';\r\n","// ***********************Add PRODUCTS********************\r\nexport const ADD_CATEGORY_SUCCESS = \"ADD_CATEGORY_SUCCESS\";\r\nexport const ADD_CATEGORY_REQUEST = \"ADD_CATEGORY_REQUEST\";\r\nexport const ADD_CATEGORY_FAIL = \"ADD_CATEGORY_FAIL\";\r\n\r\n// ***********************Add CATEGORY********************\r\nexport const GET_CATEGORY_SUCCESS = \"GET_CATEGORY_SUCCESS\";\r\nexport const GET_CATEGORY_REQUEST = \"GET_CATEGORY_REQUEST\";\r\nexport const GET_CATEGORY_FAIL = \"GET_CATEGORY_FAIL\";\r\n","import axios from 'axios';\r\nimport Cookies from 'universal-cookie';\r\n\r\nconst cookies = new Cookies();\r\n\r\nconst instance = axios.create({\r\n\t// your url\r\n\t// baseURL: 'http://api.shinemonitor.com/public',\r\n\tbaseURL: 'https://apis.crown-micro.net/api/monitoringapp/shineapis',\r\n});\r\n\r\ninstance.interceptors.request.use(function (config) {\r\n\tconfig.headers.common['Content-Type'] = 'application/json';\r\n\tconfig.headers.common['x-api-key'] = 'C5BFF7F0-B4DF-475E-A331-F737424F013C';\r\n\t// config.headers.Authorization = token.token ? `Bearer ${token.token}` : ''\r\n\r\n\treturn config;\r\n});\r\n\r\n// Response interceptor for API calls\r\ninstance.interceptors.response.use(\r\n\t(response) => {\r\n\t\treturn response;\r\n\t},\r\n\tasync function (error) {\r\n\t\tconst originalRequest = error.config;\r\n\t\tif (error?.response?.status === 403 && !originalRequest?._retry) {\r\n\t\t\toriginalRequest._retry = true;\r\n\t\t\tconst access_token = await refreshAccessToken();\r\n\t\t\treturn instance(originalRequest);\r\n\t\t}\r\n\t\treturn Promise.reject(error);\r\n\t}\r\n);\r\n\r\nconst loginInstance = axios.create({\r\n\t// your url\r\n\tbaseURL: 'https://apis.crown-micro.net/api',\r\n});\r\n\r\nloginInstance.interceptors.request.use(function (config) {\r\n\tconfig.headers.common['Content-Type'] = 'application/json';\r\n\tconfig.headers.common['x-api-key'] = 'C5BFF7F0-B4DF-475E-A331-F737424F013C';\r\n\t// config.headers.Authorization = token.token ? `Bearer ${token.token}` : ''\r\n\r\n\treturn config;\r\n});\r\n\r\nconst refreshAccessToken = () => {};\r\nexport { instance, loginInstance };\r\n","import Cookies from 'universal-cookie';\r\nimport { instance, loginInstance } from '../../Config/axios';\r\nimport { generateUrl } from '../../helper';\r\nimport Title from './../../component/DashboardStats/Title/Title';\r\n\r\nconst cookies = new Cookies();\r\n\r\nconst {\r\n\tUSER_LOGIN_SUCCESS,\r\n\tUSER_LOGIN_REQUEST,\r\n\tUSER_LOGIN_FAIL,\r\n\tUSER_LOGOUT,\r\n\r\n\tUSER_REGISTER_REQUEST,\r\n\tUSER_REGISTER_SUCCESS,\r\n\tUSER_REGISTER_FAIL,\r\n\tUSER_RESET_PASSWORD_REQUEST,\r\n\tUSER_RESET_PASSWORD_FAIL,\r\n\tUSER_RESET_PASSWORD_SUCCESS,\r\n\tUSER_STORED_PASSWORD_REQUEST,\r\n\tUSER_STORED_PASSWORD_SUCCESS,\r\n\tUSER_STORED_PASSWORD_FAIL,\r\n} = require('../constants/authConstant');\r\n\r\n// *********************************User Login*************************************\r\nconst userLogin = ({ email, password }) => async (dispatch) => {\r\n\ttry {\r\n\t\tlet formData = { Username: email, Password: password };\r\n\t\tdispatch({ type: USER_LOGIN_REQUEST, payload: formData });\r\n\t\tconst { data } = await loginInstance.post('/MonitoringApp/Login', formData);\r\n\t\tconsole.log(data);\r\n\t\tif (data.Description == 'Success') {\r\n\t\t\tdispatch({ type: USER_LOGIN_SUCCESS, payload: data && data });\r\n\t\t\tcookies.set('token', data.Token, { path: '/' });\r\n\t\t\tcookies.set('secrete', data.Secret, { path: '/' });\r\n\t\t\tcookies.set('UserID', data.UserID, { path: '/' });\r\n\t\t\tsetAllPlants();\r\n\t\t} else {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: USER_LOGIN_FAIL,\r\n\t\t\t\tpayload: data?.Description || data?.Title,\r\n\t\t\t});\r\n\t\t}\r\n\t} catch (error) {\r\n\t\tdispatch({\r\n\t\t\ttype: USER_LOGIN_FAIL,\r\n\t\t\tpayload: error.response?.data?.Description || error?.response?.data?.Title,\r\n\t\t});\r\n\t}\r\n};\r\n\r\nconst setAllPlants = async () => {\r\n\tconst action = { action: 'webQueryPlants' };\r\n\r\n\tconst url = generateUrl(action);\r\n\tconst response = await instance.get(url);\r\n\r\n\tif (response.data.desc == 'ERR_NONE') {\r\n\t\tconst plants = response.data.dat.plant || [];\r\n\t\tcookies.set('plants', plants);\r\n\t}\r\n};\r\n\r\n// *********************************User Login*************************************\r\nconst changePassword = ({ newPassword }) => async (dispatch) => {\r\n\ttry {\r\n\t\tconsole.log(cookies.get('UserID'));\r\n\t\tlet formData = { UserID: parseInt(cookies.get('UserID')), Password: newPassword };\r\n\t\tconsole.log('changePassword ============');\r\n\t\tconsole.log(formData);\r\n\t\tdispatch({ type: USER_RESET_PASSWORD_REQUEST, payload: formData });\r\n\t\tconst { data } = await loginInstance.post('/MonitoringApp/UpdatePassword', formData);\r\n\r\n\t\tif (data.Description == 'Success') {\r\n\t\t\tdispatch({ type: USER_RESET_PASSWORD_SUCCESS, payload: data && data });\r\n\t\t\tcookies.remove('token');\r\n\t\t\tcookies.remove('plant');\r\n\t\t\tcookies.remove('UserID');\r\n\t\t\twindow.location.href = '/';\r\n\t\t} else {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: USER_RESET_PASSWORD_FAIL,\r\n\t\t\t\tpayload: data?.Description || data?.Title,\r\n\t\t\t});\r\n\t\t}\r\n\t} catch (error) {\r\n\t\tdispatch({\r\n\t\t\ttype: USER_RESET_PASSWORD_FAIL,\r\n\t\t\tpayload: error.response?.data?.Description || error?.response?.data?.Title,\r\n\t\t});\r\n\t}\r\n};\r\n\r\nconst logout = () => (dispatch) => {\r\n\tdispatch({ type: USER_LOGOUT });\r\n\tcookies.remove('token', { path: '/' });\r\n\tcookies.remove('plant', { path: '/' });\r\n\tcookies.remove('secrete', { path: '/' });\r\n\twindow.location.href = '/login';\r\n};\r\n\r\n/********************** Register******************/\r\n\r\nconst register = (formData) => async (dispatch) => {\r\n\tdispatch({ type: USER_REGISTER_REQUEST, payload: formData });\r\n\r\n\ttry {\r\n\t\tconst { data } = await instance.post('/api/users/signup', formData);\r\n\r\n\t\tdispatch({ type: USER_REGISTER_SUCCESS, payload: data, success: true });\r\n\t} catch (error) {\r\n\t\tdispatch({ type: USER_REGISTER_FAIL, payload: error?.response });\r\n\t}\r\n};\r\n\r\n/**********************Reset Password******************/\r\n\r\nconst resetPassword = (email) => async (dispatch) => {\r\n\tdispatch({ type: USER_RESET_PASSWORD_REQUEST, payload: email });\r\n\r\n\ttry {\r\n\t\tconst { data } = await instance.post('/auth/reset-password', email);\r\n\r\n\t\tdispatch({ type: USER_RESET_PASSWORD_SUCCESS, payload: data, success: true });\r\n\t} catch (error) {\r\n\t\tdispatch({ type: USER_RESET_PASSWORD_FAIL, payload: error?.response });\r\n\t}\r\n};\r\n\r\n/**********************Password Stored ******************/\r\nconst PasswordStored = (password) => async (dispatch) => {\r\n\tdispatch({ type: USER_STORED_PASSWORD_REQUEST, payload: password });\r\n\r\n\ttry {\r\n\t\tconst { data } = await instance.post('/store-password', password);\r\n\r\n\t\tdispatch({ type: USER_STORED_PASSWORD_SUCCESS, payload: data, success: true });\r\n\t} catch (error) {\r\n\t\tdispatch({ type: USER_STORED_PASSWORD_FAIL, payload: error?.response });\r\n\t}\r\n};\r\n\r\nexport { userLogin, changePassword, logout, register, resetPassword, PasswordStored };\r\n","import React, { useEffect, useState } from 'react';\r\nimport {\r\n\tButton,\r\n\tFade,\r\n\tFormControl,\r\n\tFormControlLabel,\r\n\tFormHelperText,\r\n\tGrid,\r\n\tIconButton,\r\n\tInputAdornment,\r\n\tOutlinedInput,\r\n\tPaper,\r\n\tRadio,\r\n\tSnackbar,\r\n\tTextField,\r\n\tTypography,\r\n\tLink,\r\n\tButtonBase\r\n} from '@material-ui/core';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\n// import { Link } from 'react-router-dom';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { userLogin } from '../../reduxState/aciton/authAction';\r\nimport { useNavigate } from 'react-router-dom';\r\nimport Visibility from '@material-ui/icons/Visibility';\r\nimport VisibilityOff from '@material-ui/icons/VisibilityOff';\r\nimport MuiAlert from '@material-ui/lab/Alert';\r\nimport DvrIcon from '@material-ui/icons/Dvr';\r\n\r\nconst useStyle = makeStyles((theme) => ({\r\n\tloginContainer : {\r\n\t\twidth: '100%',\r\n\t\theight: '100vh',\r\n\t\toverflow: 'hidden',\r\n\t\tpadding: '0px',\r\n\t\tmargin: '0px',\r\n\t},\r\n\tbackground: {\r\n\t\tposition: 'relative',\r\n\t\tcolor: '#e6e6e6',\r\n\t\tmargin: 0,\r\n\t\tbackgroundImage: 'url(/images/solar_panel.jpg)',\r\n\t\tbackgroundSize: 'cover',\r\n\t\tbackgroundPosition: 'center',\r\n\t\theight: '100%',\r\n\t\twidth: '100%',\r\n\t\tbackgroundRepeat: 'no-repeat',\r\n\t\t// padding: '50px',\r\n\t\toverflow: 'auto',\r\n\t\tdisplay: 'flex',\r\n\t\tjustifyContent: 'center',\r\n\t\talignItems: 'center',\r\n\t},\r\n\tbgLayer: {\r\n\t\tposition: 'absolute',\r\n\t\tinset: 0,\r\n\t\twidth: '100%',\r\n\t\theight: '100%',\r\n\t\tbackgroundColor: 'black',\r\n\t\topacity: '0.8'\r\n\t},\r\n\tform: {\r\n\t\twidth: '90%',\r\n\t\tmaxWidth: '400px',\r\n\t},\r\n\tPaper: {\r\n\t\twidth: '100%',\r\n\t\t// marginTop: '15em',\r\n\t\tcolor: '#f6f6f6',\r\n\t\tborderRadius: '30px',\r\n\t\tpadding: '2em',\r\n\t\tposition: 'relative',\r\n\t\tzIndex: '10',\r\n\t\tbackground: 'rgba(255, 255, 255, 0.1)',\r\n\t\tbackdropFilter: 'blur(2px)',\r\n\t\tborder: `1px solid #ffffff1a`,\r\n\t},\r\n\tHeading: {\r\n\t\tfontSize: '1.3em',\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\t\tcolor: 'white',\r\n\t\tfontWeight: '400',\r\n\t},\r\n\t// Link: { textDecoration: 'none', color: `${theme.palette.common.Grey}` },\r\n\tinputField: {\r\n\t\t// background: 'rgba(255, 255, 255, 0.7)',\r\n\t\tbackground: 'white',\r\n\t\tborderRadius: '5px'\r\n\t},\r\n\tButton: {\r\n\t\tborderRadius: '20px',\r\n\t\tpadding: '10px',\r\n\t\tbackgroundColor: `${theme.palette.common.red}`,\r\n\t\topacity: '0.9',\r\n\t\tcolor: '#fff',\r\n\t\t'&:hover': {\r\n\t\t\tbackgroundColor: theme.palette.common.red,\r\n\t\t\topacity: '1',\r\n\t\t},\r\n\t},\r\n\tButtonLight: {\r\n\t\tborderRadius: '20px',\r\n\t\tpadding: '10px',\r\n\t\tbackgroundColor: '#E5E4E2\t',\r\n\t\tcolor: '#1e1e1e',\r\n\t\tfontWeight: 600,\r\n\t\t// boxShadow: 'none',\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\t\t'&:hover': {\r\n\t\t\tbackgroundColor: `${theme.palette.common.red}`,\r\n\t\t\tcolor: '#fff',\r\n\t\t},\r\n\t},\r\n\tDemo: {\r\n\t\tborderRadius: '25px',\r\n\t\tpadding: '8px',\r\n\t\tminWidth: '125px',\r\n\t\tbackgroundColor: `${theme.palette.common.red}`,\r\n\t\tcolor: '#fff',\r\n\t\t'&:hover': {\r\n\t\t\tbackgroundColor: theme.palette.secondary.light,\r\n\t\t},\r\n\t},\r\n\tdevelopedBy: {\r\n\t\twidth: 'max-content',\r\n\t\tposition: 'absolute',\r\n\t\tbottom: '10px',\r\n\t\tleft: '0px',\r\n\t\tright: '0px',\r\n\t\tzIndex: '10',\r\n\t\tbackground: 'rgba(0, 0, 0, 0.5)',\r\n\t\tbackdropFilter: 'blur(2px)',\r\n\t\tpadding: '7px 30px',\r\n\t\tborderRadius: '20px',\r\n\t\tmargin: '0 auto',\r\n\t},\r\n}));\r\n\r\nfunction Alert(props) {\r\n\treturn (\r\n\t\t\r\n\t);\r\n}\r\n\r\nfunction Login() {\r\n\tconst classes = useStyle();\r\n\tlet navigate = useNavigate();\r\n\r\n\t// ***************************************state *********************************************\r\n\tconst [formData, setformData] = useState({\r\n\t\temail: '',\r\n\t\tpassword: '',\r\n\t});\r\n\tconst [showPassword, setShowPassword] = useState(false);\r\n\tconst [validationHelper, setValidationHelper] = useState({\r\n\t\temailHelper: '',\r\n\t\tpasswordHelper: '',\r\n\t});\r\n\r\n\tconst { email, password } = formData;\r\n\tconst { emailHelper, passwordHelper } = validationHelper;\r\n\r\n\t// Snackbar\r\n\tconst [openSanckbar, setOpenSnackbar] = useState({ open: false, severity: '' });\r\n\r\n\t// *********************************OnChange handle**********************************************\r\n\tconst onChange = (e) => {\r\n\t\tsetformData({ ...formData, [e.target.name]: e.target.value });\r\n\t\t// let valid;\r\n\r\n\t\t// switch (e.target.name) {\r\n\t\t// \tcase 'email':\r\n\t\t// \t\tvalid = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(e.target.value);\r\n\t\t// \t\tif (!valid) {\r\n\t\t// \t\t\tsetValidationHelper({\r\n\t\t// \t\t\t\t...validationHelper,\r\n\t\t// \t\t\t\tnumberHelper: 'Invalid Email',\r\n\t\t// \t\t\t});\r\n\t\t// \t\t} else {\r\n\t\t// \t\t\tsetValidationHelper({ ...validationHelper, numberHelper: '' });\r\n\t\t// \t\t}\r\n\t\t// \t\tbreak;\r\n\t\t// \tdefault:\r\n\t\t// \t\tbreak;\r\n\t\t// }\r\n\t};\r\n\r\n\r\n\t// ***************************Redux State***************************\r\n\tconst dispatch = useDispatch();\r\n\tconst userSignin = useSelector((state) => state.userSignin);\r\n\tconst { loading, userInfo, error: errorSuccess } = userSignin;\r\n\r\n\t// ***************************Validation**************************\r\n\r\n\tconst Validation = () => {\r\n\t\tlet isError = false;\r\n\r\n\t\tif (email?.length === 0) {\r\n\t\t\tisError = true;\r\n\r\n\t\t\tvalidationHelper.emailHelper = 'Username is Required';\r\n\t\t} else {\r\n\t\t\tvalidationHelper.emailHelper = '';\r\n\t\t}\r\n\r\n\t\tif (password.length === 0) {\r\n\t\t\tisError = true;\r\n\t\t\tvalidationHelper.passwordHelper = 'Password is Required';\r\n\t\t} else {\r\n\t\t\tvalidationHelper.passwordHelper = '';\r\n\t\t}\r\n\r\n\t\tsetValidationHelper({\r\n\t\t\t...validationHelper,\r\n\t\t});\r\n\r\n\t\treturn isError;\r\n\t};\r\n\r\n\t// *******************************onSubmit ******************************************************\r\n\tconst onSubmit = (e) => {\r\n\t\te.preventDefault();\r\n\t\tlet err = Validation();\r\n\r\n\t\tif (!err) {\r\n\t\t\tdispatch(userLogin(formData));\r\n\t\t}\r\n\t};\r\n\r\n\tconst handleClickShowPassword = () => {\r\n\t\tsetShowPassword(!showPassword);\r\n\t};\r\n\r\n\tconst handleMouseDownPassword = (event) => {\r\n\t\tevent.preventDefault();\r\n\t};\r\n\r\n\t// *************************************useEffect***********************************************\r\n\tuseEffect(() => {\r\n\t\tif (userInfo) {\r\n\t\t\tnavigate('/dashboard/home');\r\n\t\t}\r\n\t}, [userInfo]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (errorSuccess) {\r\n\t\t\tsetOpenSnackbar({\r\n\t\t\t\topen: true,\r\n\t\t\t\tseverity: 'error',\r\n\t\t\t\tmessage: errorSuccess ? errorSuccess : 'Check you internet connection!',\r\n\t\t\t});\r\n\t\t}\r\n\t}, [errorSuccess]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\"ups\"\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tSign In\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{emailHelper.length !== 0 && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{emailHelper}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{!showPassword ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{passwordHelper.length !== 0 && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{passwordHelper}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}{' '}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlabel={Remember Me}\r\n\t\t\t\t\t\t\t\t\tlabelPlacement='start'\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tForgot Password\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tLogin\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\tDeveloped by XeeOFF\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\r\n\r\n\t\t\t\t{/* ********************************Snackbar ********************************* */}\r\n\t\t\t\t {\r\n\t\t\t\t\t\tsetOpenSnackbar({ open: false });\r\n\t\t\t\t\t}}\r\n\t\t\t\t>\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tsetOpenSnackbar({ open: false });\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\tseverity={openSanckbar.severity}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{openSanckbar.message}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\nexport default Login;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Button, Fade, Grid, Paper, Snackbar, TextField, Typography } from '@material-ui/core';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport { Link } from 'react-router-dom';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport Autocomplete from '@material-ui/lab/Autocomplete';\r\n\r\nimport { register } from '../../reduxState/aciton/authAction';\r\n\r\nimport MuiAlert from '@material-ui/lab/Alert';\r\n\r\nconst useStyle = makeStyles((theme) => ({\r\n\tbackground: {\r\n\t\tcolor: '#e6e6e6',\r\n\t\tmargin: '0 auto',\r\n\t\tposition: 'absolute',\r\n\t\tleft: '50%',\r\n\t\ttop: '50%',\r\n\t\ttransform: 'translate(-50%, -50%)',\r\n\t},\r\n\tPaper: {\r\n\t\twidth: '580px',\r\n\t\tcolor: '#f6f6f6',\r\n\t\tborderRadius: '17px',\r\n\t\tpadding: '2em',\r\n\t},\r\n\tHeading: {\r\n\t\tmarginTop: '.5em',\r\n\t\tfontSize: '1.3em',\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\t\tcolor: `${theme.palette.common.pink}`,\r\n\t},\r\n\tLink: { textDecoration: 'none' },\r\n\ttext: {\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\t\tfontSize: '.8rem',\r\n\t\tlineHeight: '1rem',\r\n\t\tfontWeight: 'bold',\r\n\t\tcolor: '#666666',\r\n\t\tmarginBottom: '.5em',\r\n\t},\r\n\tButton: {\r\n\t\tborderRadius: '20px',\r\n\t\tpadding: '13px',\r\n\t\tbackgroundColor: `${theme.palette.common.red}`,\r\n\t\tcolor: '#fff',\r\n\t\t'&:hover': {\r\n\t\t\tbackgroundColor: theme.palette.common.red,\r\n\t\t},\r\n\t},\r\n}));\r\n\r\nfunction Alert(props) {\r\n\treturn ;\r\n}\r\n\r\nfunction Register() {\r\n\tconst users = ['doctor', 'patient'];\r\n\tconst options = ['92'];\r\n\r\n\tconst classes = useStyle();\r\n\t// let navigate = useNavigate();\r\n\r\n\t// ***************************************state *********************************************\r\n\tconst [formData, setformData] = useState({\r\n\t\tusername: '',\r\n\t\t// firstname: '',\r\n\t\t// lastname: '',\r\n\t\tcountryCode: '',\r\n\t\tphone: '',\r\n\t\temail: '',\r\n\t\tpassword: '',\r\n\t\tuserType: '',\r\n\t});\r\n\tconst [validationHelper, setValidationHelper] = useState({\r\n\t\tuserNameHelper: '',\r\n\t\t// firstNameHelper: '',\r\n\t\t// lastNameHelper: '',\r\n\t\tphoneHelper: '',\r\n\t\temailHelper: '',\r\n\t\tpasswordHelper: '',\r\n\t\tuserTypeHelper: '',\r\n\t});\r\n\r\n\tconst { username, phone, email, password } = formData;\r\n\tconst { userNameHelper, phoneHelper, emailHelper, passwordHelper } = validationHelper;\r\n\r\n\t// *********************************OnChange handle**********************************************\r\n\tconst onChange = (e) => {\r\n\t\tsetformData({ ...formData, [e.target.name]: e.target.value });\r\n\t\tlet valid;\r\n\r\n\t\tswitch (e.target.name) {\r\n\t\t\tcase 'email':\r\n\t\t\t\tvalid = /^\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(\\.\\w{2,3})+$/.test(e.target.value);\r\n\t\t\t\tif (!valid) {\r\n\t\t\t\t\tsetValidationHelper({\r\n\t\t\t\t\t\t...validationHelper,\r\n\t\t\t\t\t\temailHelper: 'Invalid Email',\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetValidationHelper({ ...validationHelper, emailHelper: '' });\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t// case 'phone':\r\n\t\t\t// \tvalid = /^0?3(?:[0-46]\\d|55)\\d{7}$/.test(e.target.value);\r\n\t\t\t// \tif (!valid) {\r\n\t\t\t// \t\tsetValidationHelper({\r\n\t\t\t// \t\t\t...validationHelper,\r\n\t\t\t// \t\t\tphoneHelper: 'Invalid Number',\r\n\t\t\t// \t\t});\r\n\t\t\t// \t} else {\r\n\t\t\t// \t\tsetValidationHelper({ ...validationHelper, emailHelper: '' });\r\n\t\t\t// \t}\r\n\t\t\t// \tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t};\r\n\r\n\tconsole.log(formData);\r\n\t// ***************************Redux State***************************\r\n\tconst dispatch = useDispatch();\r\n\tconst userRegister = useSelector((state) => state.userRegister);\r\n\tconst { success, error } = userRegister;\r\n\r\n\t// ***************************Validation**************************\r\n\r\n\tconst Validation = () => {\r\n\t\tlet isError = true;\r\n\r\n\t\tif (username.length === 0) {\r\n\t\t\tisError = false;\r\n\r\n\t\t\tvalidationHelper.userNameHelper = 'UserName is Required';\r\n\t\t}\r\n\t\t// if (firstname.length === 0) {\r\n\t\t// \tisError = false;\r\n\r\n\t\t// \tvalidationHelper.firstNameHelper = 'First Name is Required';\r\n\t\t// }\r\n\t\t// if (lastname.length === 0) {\r\n\t\t// \tisError = false;\r\n\r\n\t\t// \tvalidationHelper.lastNameHelper = 'Last Name is Required';\r\n\t\t// }\r\n\t\tif (password.length < 6) {\r\n\t\t\tisError = false;\r\n\t\t\tvalidationHelper.passwordHelper = 'Password must be greater than 6';\r\n\t\t}\r\n\t\tif (email.length === 0) {\r\n\t\t\tisError = false;\r\n\t\t\tvalidationHelper.emailHelper = 'Email is Required';\r\n\t\t}\r\n\r\n\t\tif (phone.length === 0) {\r\n\t\t\tisError = false;\r\n\t\t\tvalidationHelper.phoneHelper = 'Phone is Required';\r\n\t\t}\r\n\r\n\t\tsetValidationHelper({\r\n\t\t\t...validationHelper,\r\n\t\t});\r\n\r\n\t\treturn isError;\r\n\t};\r\n\r\n\t// *******************************onSubmit ******************************************************\r\n\tconst onSubmit = (e) => {\r\n\t\tlet err = Validation();\r\n\r\n\t\tif (err) {\r\n\t\t\te.preventDefault();\r\n\t\t\tdispatch(register(formData));\r\n\t\t}\r\n\t};\r\n\r\n\tconst fields = [\r\n\t\t{\r\n\t\t\tkey: 0,\r\n\t\t\tfiedlName: 'User Name',\r\n\t\t\tname: 'username',\r\n\t\t\tvalue: username,\r\n\t\t\terror: userNameHelper,\r\n\t\t},\r\n\t\t// {\r\n\t\t// \tkey: 1,\r\n\t\t// \tfiedlName: 'First Name',\r\n\t\t// \tname: 'firstname',\r\n\t\t// \tvalue: firstname,\r\n\t\t// \terror: firstNameHelper,\r\n\t\t// },\r\n\t\t// {\r\n\t\t// \tkey: 2,\r\n\t\t// \tfiedlName: 'Last Name',\r\n\t\t// \tname: 'lastname',\r\n\t\t// \tvalue: lastname,\r\n\t\t// \terror: lastNameHelper,\r\n\t\t// },\r\n\t\t{\r\n\t\t\tkey: 3,\r\n\t\t\tfiedlName: 'Email',\r\n\t\t\tname: 'email',\r\n\t\t\tvalue: email,\r\n\t\t\terror: emailHelper,\r\n\t\t},\r\n\t\t{\r\n\t\t\tkey: 4,\r\n\t\t\tfiedlName: 'Password',\r\n\t\t\tname: 'password',\r\n\t\t\tvalue: password,\r\n\t\t\terror: passwordHelper,\r\n\t\t\ttype: 'password',\r\n\t\t},\r\n\t];\r\n\r\n\t// Snackbar\r\n\tconst [openSanckbar, setOpenSnackbar] = useState({ open: false, severity: '' });\r\n\r\n\t// select country code\r\n\tconst [inputCode, setInputCode] = React.useState(options[0]);\r\n\t// select User Type\r\n\tconst [inputUserType, setInputUserType] = React.useState(users[1]);\r\n\r\n\t// *************************************useEffect***********************************************\r\n\tuseEffect(() => {\r\n\t\tif (error) {\r\n\t\t\tsetOpenSnackbar({ open: true, severity: 'error', message: error?.data?.Error });\r\n\t\t}\r\n\t\tif (success) {\r\n\t\t\tsetOpenSnackbar({ open: true, severity: 'success', message: 'Sucessfully Resgister!' });\r\n\t\t}\r\n\t}, [success, error]);\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tRegister To Energy\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{fields?.map((item) => (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{item.fiedlName}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t))}\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCountry Code\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetInputCode(newInputValue);\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tonChange={(event, newValue) => {\r\n\t\t\t\t\t\t\t\t\tsetformData({ countryCode: newValue });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\trenderInput={(params) => }\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tPhone No\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tAlready have an account ? Login\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t{/* ********************************Snackbar ********************************* */}\r\n\t\t\t {\r\n\t\t\t\t\tsetOpenSnackbar({ open: false });\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t {\r\n\t\t\t\t\t\tsetOpenSnackbar({ open: false });\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tseverity={openSanckbar.severity}\r\n\t\t\t\t>\r\n\t\t\t\t\t{openSanckbar.message}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\nexport default Register;\r\n","import React, { useState, useEffect } from 'react';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport { Link, useNavigate } from 'react-router-dom';\r\nimport List from '@material-ui/core/List';\r\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\r\nimport ListItemText from '@material-ui/core/ListItemText';\r\nimport DashboardIcon from '@material-ui/icons/Dashboard';\r\nimport MuiListItem from '@material-ui/core/ListItem';\r\nimport EqualizerIcon from '@material-ui/icons/Equalizer';\r\nimport HomeIcon from '@material-ui/icons/Home';\r\nimport { Typography, withStyles } from '@material-ui/core';\r\nimport MapIcon from '@material-ui/icons/Map';\r\nimport ListIcon from '@material-ui/icons/List';\r\nimport PersonIcon from '@material-ui/icons/Person';\r\n\r\nimport ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';\r\nimport Collapse from '@material-ui/core/Collapse';\r\nimport ExpandLess from '@material-ui/icons/ExpandLess';\r\nimport ExpandMore from '@material-ui/icons/ExpandMore';\r\n// import FiberManualRecordTwoToneIcon from '@material-ui/icons/FiberManualRecordTwoTone';\r\nimport KeyboardArrowRightRoundedIcon from '@material-ui/icons/KeyboardArrowRightRounded';\r\nimport AlarmOnIcon from '@material-ui/icons/AlarmOn';\r\nimport CategoryIcon from '@material-ui/icons/Category';\r\nimport ShoppingCartIcon from '@material-ui/icons/ShoppingCart';\r\nimport AccountTreeIcon from '@material-ui/icons/AccountTree';\r\nimport StorefrontOutlinedIcon from '@material-ui/icons/StorefrontOutlined';\r\nimport { Devices } from '@material-ui/icons';\r\nconst useStyles = makeStyles((theme) => ({\r\n\troot: {\r\n\t\twidth: '90%',\r\n\t\tmaxWidth: 360,\r\n\t\tpadding: '20px 0',\r\n\t},\r\n\r\n\tnested: {\r\n\t\tpaddingLeft: '45px',\r\n\t},\r\n\tlinkStyle: {\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\t\ttextDecoration: 'none',\r\n\t\tcolor: '#f6f6f6',\r\n\t\tfontWeight: 400,\r\n\t},\r\n\tsubListBackground: {\r\n\t\tbackground: '#f6f6f6',\r\n\t},\r\n\r\n\ttextStyle: {\r\n\t\t...theme.typography.sideBar,\r\n\t\tcolor: '#f6f6f6',\r\n\t},\r\n\t// iconStyle: {\r\n\t// \tcolor: '#f6f6f6',\r\n\t// },\r\n\tmenuIcon: {\r\n\t\tcolor: '#f6f6f6',\r\n\t\tminWidth: 0,\r\n\t\tmarginRight: 14,\r\n\t}\r\n}));\r\n\r\nconst ListItem = withStyles({\r\n\troot: {\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\t\tfontWeight: 400,\r\n\t\theight: 40,\r\n\t\tborderRadius: '0 50px 50px 0',\r\n\t\tmarginBottom: '5px',\r\n\t\tborderLeft: '2px transparent white',\r\n\t\t'&$selected': {\r\n\t\t\tbackgroundColor: 'rgba(220, 220, 220,0.3)',\r\n\t\t\tcolor: 'white',\r\n\t\t\tborderLeft: '2px solid white',\r\n\t\t},\r\n\t\t'&$selected:hover': {\r\n\t\t\tbackgroundColor: 'rgba(220, 220, 220,0.2)',\r\n\t\t\tcolor: 'white',\r\n\t\t},\r\n\t\t'&:hover': {\r\n\t\t\tbackgroundColor: 'rgba(220, 220, 220,0.1)',\r\n\t\t\tcolor: 'white',\r\n\t\t},\r\n\t},\r\n\tselected: {},\r\n})(MuiListItem);\r\n\r\nconst MainListItems = ({ drawerOpen }) => {\r\n\tconst classes = useStyles();\r\n\tconst navigate = useNavigate();\r\n\r\n\t// ************************************* states **************************************\r\n\tconst [openProducts, setOpenProducts] = useState(false);\r\n\tconst [users, setUsers] = useState(false);\r\n\tconst [openCategories, setOpenCategories] = useState(false);\r\n\tconst [tree, setTree] = useState(false);\r\n\r\n\tconst [openOrders, setOpenOrders] = useState(false);\r\n\r\n\tconst [drawer, setDrawer] = useState(drawerOpen);\r\n\r\n\tconst [selectedIndex, setSelectedIndex] = React.useState();\r\n\r\n\tconst handleListItemClick = (index, route) => {\r\n\t\tsetSelectedIndex(index);\r\n\t\tnavigate(route);\r\n\t};\r\n\r\n\t// ************************************* handlers *************************************\r\n\tconst handleClickProducts = () => {\r\n\t\tif (drawerOpen) {\r\n\t\t\tsetOpenProducts(!openProducts);\r\n\t\t\tsetUsers(false);\r\n\t\t\tsetOpenOrders(false);\r\n\t\t\tsetOpenCategories(false);\r\n\t\t}\r\n\t};\r\n\r\n\tconst handleClickCategories = () => {\r\n\t\tif (drawerOpen) {\r\n\t\t\tsetOpenCategories(!openCategories);\r\n\t\t\tsetUsers(false);\r\n\t\t\tsetOpenOrders(false);\r\n\t\t\tsetOpenProducts(false);\r\n\t\t}\r\n\t};\r\n\tconst handleClickUser = () => {\r\n\t\tif (drawerOpen) {\r\n\t\t\tsetUsers(!users);\r\n\t\t\tsetOpenCategories(false);\r\n\t\t\tsetOpenOrders(false);\r\n\t\t\tsetOpenProducts(false);\r\n\t\t}\r\n\t};\r\n\tconst handleClickTree = () => {\r\n\t\tif (drawerOpen) {\r\n\t\t\tsetUsers(false);\r\n\t\t\tsetOpenCategories(false);\r\n\t\t\tsetOpenOrders(false);\r\n\t\t\tsetOpenProducts(false);\r\n\t\t\tsetTree(!tree);\r\n\t\t}\r\n\t};\r\n\tconst handleClickOrder = () => {\r\n\t\tif (drawerOpen) {\r\n\t\t\tsetOpenOrders(!openOrders);\r\n\t\t\tsetUsers(false);\r\n\t\t\tsetOpenCategories(false);\r\n\t\t\tsetOpenProducts(false);\r\n\t\t}\r\n\t};\r\n\r\n\t// ************************************* hooks ***************************************\r\n\tuseEffect(() => {\r\n\t\tsetDrawer(drawerOpen);\r\n\t\t// if (!drawerOpen) {\r\n\t\t// \tsetOpenProducts(false);\r\n\t\t// \tsetUsers(false);\r\n\t\t// \tsetOpenOrders(false);\r\n\t\t// \tsetOpenCategories(false);\r\n\t\t// }\r\n\t}, [drawerOpen]);\r\n\r\n\tconst menu = [\r\n\t\t{\r\n\t\t\tid: 0,\r\n\t\t\tindex: 0,\r\n\t\t\theader: 'Real Time',\r\n\t\t\ticon: ,\r\n\t\t\thandle: handleListItemClick,\r\n\t\t\troute: '/dashboard/realtime',\r\n\t\t\tchild: [],\r\n\t\t},\r\n\t\t{\r\n\t\t\tid: 1,\r\n\t\t\tindex: 1,\r\n\t\t\theader: 'Stats',\r\n\t\t\ticon: ,\r\n\t\t\thandle: handleListItemClick,\r\n\t\t\troute: '/dashboard/home',\r\n\t\t\tchild: [],\r\n\t\t},\r\n\t\t// {\r\n\t\t// \tid: 1,\r\n\t\t// \tindex: 1,\r\n\t\t// \theader: 'Plants',\r\n\t\t// \ticon: ,\r\n\t\t// \thandle: handleListItemClick,\r\n\t\t// \troute: '/dashboard/plants',\r\n\t\t// \tchild: [],\r\n\t\t// },\r\n\t\t{\r\n\t\t\tid: 2,\r\n\t\t\tindex: 2,\r\n\t\t\theader: 'Devices',\r\n\t\t\ticon: ,\r\n\t\t\thandle: handleListItemClick,\r\n\t\t\troute: '/dashboard/devices',\r\n\t\t\tchild: [],\r\n\t\t},\r\n\t\t{\r\n\t\t\tid: 4,\r\n\t\t\tindex: 4,\r\n\t\t\theader: 'Alarms',\r\n\t\t\ticon: ,\r\n\t\t\thandle: handleListItemClick,\r\n\t\t\troute: '/dashboard/alarms',\r\n\t\t\tchild: [],\r\n\t\t},\r\n\t\t// {\r\n\t\t// \tid: 2,\r\n\t\t// \tindex: 2,\r\n\t\t// \theader: 'Map',\r\n\t\t// \ticon: ,\r\n\t\t// \thandle: handleListItemClick,\r\n\t\t// \troute: '/dashboard/map',\r\n\t\t// \tchild: [],\r\n\t\t// },\r\n\t\t{\r\n\t\t\tid: 3,\r\n\t\t\tindex: 3,\r\n\t\t\theader: 'User',\r\n\t\t\ticon: ,\r\n\t\t\thandle: handleClickUser,\r\n\t\t\t// route: '/dashboard/user',\r\n\t\t\tstate: users,\r\n\t\t\thasChild: true,\r\n\t\t\tchild: [\r\n\t\t\t\t{\r\n\t\t\t\t\tid: 11,\r\n\t\t\t\t\tto: '/dashboard/info',\r\n\t\t\t\t\tname: 'Account Info',\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tid: 12,\r\n\t\t\t\t\tto: '/dashboard/change-password',\r\n\t\t\t\t\tname: 'Change Password',\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tid: 13,\r\n\t\t\t\t\tto: '/dashboard/about-us',\r\n\t\t\t\t\tname: 'About Us',\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tid: 14,\r\n\t\t\t\t\tto: '/dashboard/contact-info',\r\n\t\t\t\t\tname: 'Contact Info',\r\n\t\t\t\t},\r\n\t\t\t],\r\n\t\t},\r\n\t];\r\n\r\n\t// const menu = [\r\n\t// \t{\r\n\t// \t\tid: 3,\r\n\t// \t\theader: 'Users',\r\n\t// \t\ticon: ,\r\n\t// \t\thandle: handleClickUser,\r\n\t// \t\tstate: users,\r\n\t// \t\tchild: [\r\n\t// \t\t\t{\r\n\t// \t\t\t\tid: 12,\r\n\t// \t\t\t\tto: '/dashboard/Users',\r\n\t// \t\t\t\tname: 'View User',\r\n\t// \t\t\t},\r\n\t// \t\t],\r\n\t// \t},\r\n\r\n\t// {\r\n\t// \tid: 3,\r\n\t// \theader: 'LiveStream',\r\n\t// \ticon: ,\r\n\t// \thandle: handleClickStream,\r\n\t// \tstate: openStream,\r\n\t// \tchild: [\r\n\t// \t\t{\r\n\t// \t\t\tid: 103,\r\n\t// \t\t\tto: '/dashboard/VideoCall',\r\n\t// \t\t\tname: 'Live Stream',\r\n\t// \t\t},\r\n\t// \t],\r\n\t// },\r\n\t// ];\r\n\r\n\t// ************************************* ui ******************************************\r\n\treturn (\r\n\t\t
\r\n\t\t\t{/* ************************************* dashboard ****************************************** */}\r\n\t\t\t{menu.map((x) => (\r\n\t\t\t\t
\r\n\t\t\t\t\t{!x.hasChild ? (\r\n\t\t\t\t\t\t x.handle(x.index, x.route)} >\r\n\t\t\t\t\t\t\t{x.icon}\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tdrawerOpen &&\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{x.header}} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tx.handle();\r\n\t\t\t\t\t\t\t\tif (x.id !== 3) handleListItemClick(x.id, x.to);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t{x.icon}\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tdrawerOpen &&\r\n\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t{x.header}} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{x.state ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdrawerOpen &&\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{x.child.length > 0 &&\r\n\t\t\t\t\t\t\t\tx.child?.map((item) => (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thandleListItemClick(item.id, item.to);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{item.name}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t}\r\n\t\t\t\t
\r\n\t\t\t))}\r\n\t\t
\r\n\t);\r\n};\r\n\r\nexport default MainListItems;\r\n","import React, { useEffect } from 'react';\r\nimport { Outlet, useNavigate } from 'react-router-dom';\r\nimport './Styles/style.css';\r\nimport clsx from 'clsx';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport CssBaseline from '@material-ui/core/CssBaseline';\r\nimport Drawer from '@material-ui/core/Drawer';\r\nimport Box from '@material-ui/core/Box';\r\nimport AppBar from '@material-ui/core/AppBar';\r\nimport Toolbar from '@material-ui/core/Toolbar';\r\nimport List from '@material-ui/core/List';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport Divider from '@material-ui/core/Divider';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport Badge from '@material-ui/core/Badge';\r\nimport Container from '@material-ui/core/Container';\r\nimport Link from '@material-ui/core/Link';\r\nimport MenuIcon from '@material-ui/icons/Menu';\r\nimport ChevronLeftIcon from '@material-ui/icons/ChevronLeft';\r\nimport NotificationsIcon from '@material-ui/icons/Notifications';\r\nimport MainListItems from './MainListItems';\r\nimport Button from '@material-ui/core/Button';\r\nimport Avatar from '@material-ui/core/Avatar';\r\nimport Cookies from 'universal-cookie';\r\nimport { Scrollbars } from 'react-custom-scrollbars';\r\nimport { Grid, TextField } from '@material-ui/core';\r\nimport Autocomplete from '@material-ui/lab/Autocomplete';\r\nimport { generateUrl, getPlantId } from '../../helper';\r\nimport { instance } from '../../Config/axios';\r\nimport { Icon } from '@iconify/react';\r\n\r\n// import {instance} from '../../../Config/Axios/instance';\r\n// import drawerBg from '../../../Assets/drawer_bg_pic.png';\r\n// import dealmateLogo from '../../../Assets/dealmate_logo.png';\r\n\r\nfunction Copyright() {\r\n\treturn (\r\n\t\t

\r\n\t\t\tDeveloped by XeeOFF{' '}\r\n\t\t\t{new Date().getFullYear()}\r\n\t\t

\r\n\t);\r\n}\r\n\r\nconst drawerWidth = 260;\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\troot: {\r\n\t\tdisplay: 'flex',\r\n\t},\r\n\ttoolbar: {\r\n\t\tpaddingRight: 24, // keep right padding when drawer closed\r\n\t\tminHeight: '57px'\r\n\t},\r\n\ttoolbarIcon: {\r\n\t\tdisplay: 'flex',\r\n\t\talignItems: 'center',\r\n\t\tjustifyContent: 'center',\r\n\t\tpadding: '0 8px',\r\n\t\t...theme.mixins.toolbar,\r\n\t},\r\n\tappBar: {\r\n\t\theight: '57px',\r\n\t\tbackground: 'white',\r\n\t\tzIndex: theme.zIndex.drawer + 1,\r\n\t\ttransition: theme.transitions.create(['width', 'margin'], {\r\n\t\t\teasing: theme.transitions.easing.sharp,\r\n\t\t\tduration: theme.transitions.duration.leavingScreen,\r\n\t\t}),\r\n\t\tboxShadow: 'none',\r\n\t\tborderBottom: '1px solid #8080802b'\r\n\t},\r\n\tappBarShift: {\r\n\t\tmarginLeft: drawerWidth,\r\n\t\twidth: `calc(100% - ${drawerWidth}px)`,\r\n\t\ttransition: theme.transitions.create(['width', 'margin'], {\r\n\t\t\teasing: theme.transitions.easing.sharp,\r\n\t\t\tduration: theme.transitions.duration.enteringScreen,\r\n\t\t}),\r\n\t},\r\n\tmenuButton: {\r\n\t\tmarginRight: 36,\r\n\t},\r\n\tmenuButtonHidden: {\r\n\t\tdisplay: 'none',\r\n\t},\r\n\ttitle: {\r\n\t\tflexGrow: 1,\r\n\t\tfontSize: '0.875em',\r\n\t},\r\n\tusername: {\r\n\t\tfontSize: '0.875em',\r\n\t\tmarginLeft: '20px',\r\n\t\tmarginRight: '10px',\r\n\t},\r\n\tdrawerPaper: {\r\n\t\tbackgroundImage: `linear-gradient(to bottom right, ${theme.palette.common.Black}, ${theme.palette.common.darkGrey})`,\r\n\t\tbackgroundRepeat: 'no-repeat',\r\n\t\tbackgroundSize: 'cover',\r\n\t\tposition: 'relative',\r\n\t\twhiteSpace: 'nowrap',\r\n\t\twidth: drawerWidth,\r\n\t\ttransition: theme.transitions.create('width', {\r\n\t\t\teasing: theme.transitions.easing.sharp,\r\n\t\t\tduration: theme.transitions.duration.enteringScreen,\r\n\t\t}),\r\n\t},\r\n\tdrawerPaperClose: {\r\n\t\toverflowX: 'hidden',\r\n\t\ttransition: theme.transitions.create('width', {\r\n\t\t\teasing: theme.transitions.easing.sharp,\r\n\t\t\tduration: theme.transitions.duration.leavingScreen,\r\n\t\t}),\r\n\t\twidth: theme.spacing(7),\r\n\t\t[theme.breakpoints.up('sm')]: {\r\n\t\t\twidth: theme.spacing(9),\r\n\t\t},\r\n\t},\r\n\tappBarSpacer: theme.mixins.toolbar,\r\n\tcontent: {\r\n\t\tflexGrow: 1,\r\n\t\theight: '100vh',\r\n\t\toverflow: 'auto',\r\n\t},\r\n\tcontainer: {\r\n\t\tpaddingTop: theme.spacing(4),\r\n\t\tpaddingBottom: theme.spacing(4),\r\n\t\tbackgroundColor: '#fafafa',\r\n\t},\r\n\tpaper: {\r\n\t\tpadding: theme.spacing(2),\r\n\t\tdisplay: 'flex',\r\n\t\toverflow: 'auto',\r\n\t\tflexDirection: 'column',\r\n\t},\r\n\tfixedHeight: {\r\n\t\theight: 240,\r\n\t},\r\n\tsmall: {\r\n\t\tpadding: '2px',\r\n\t\tbackground: 'black',\r\n\t\twidth: theme.spacing(3),\r\n\t\theight: theme.spacing(3),\r\n\t},\r\n\toption: {\r\n\t\tpadding: '0px',\r\n\t\tmargin: '1px !important',\r\n\t\tfontSize: '12px',\r\n\t},\r\n}));\r\n\r\nexport default function Dashboard() {\r\n\tconst cookies = new Cookies();\r\n\r\n\tconst classes = useStyles();\r\n\tconst [open, setOpen] = React.useState(true);\r\n\tconst [userName, setUserName] = React.useState('');\r\n\tconst [userAvatar, setUserAvatar] = React.useState();\r\n\tconst [plantsOption, setPlantsOption] = React.useState([{ name: 'All Plants', id: 0 }]);\r\n\tconst [defaultOption, setDefaultOption] = React.useState([{ name: 'All Plants', id: 0 }]);\r\n\t// const location = useLocation();\r\n\r\n\tconst navigate = useNavigate();\r\n\r\n\tconst handleDrawerOpen = () => {\r\n\t\tsetOpen(!open);\r\n\t};\r\n\tconst handleDrawerClose = () => {\r\n\t\tsetOpen(false);\r\n\t};\r\n\tconst logout = () => {\r\n\t\ttry {\r\n\t\t\tcookies.remove('token');\r\n\t\t\tcookies.remove('plant');\r\n\t\t\tcookies.remove('UserID');\r\n\t\t\tcookies.remove('plants');\r\n\t\t\tcookies.remove('secrete');\r\n\t\t} finally {\r\n\t\t\twindow.location.href = '/';\r\n\t\t}\r\n\t};\r\n\r\n\tconst handlePlant = (e, value) => {\r\n\t\tcookies.set('plant', value, '/');\r\n\t\tsetDefaultOption(value);\r\n\t\twindow.location.reload();\r\n\t};\r\n\r\n\tconst fetchApi = async () => {\r\n\t\tlet dvalue = cookies.get('plant');\r\n\t\tsetDefaultOption(dvalue);\r\n\r\n\t\tlet action = { action: 'queryPlants' };\r\n\r\n\t\tconst url = generateUrl(action);\r\n\t\tconst response = await instance.get(url);\r\n\r\n\t\tif (response.data.desc == 'ERR_NONE') {\r\n\t\t\tlet value =\r\n\t\t\t\tresponse?.data?.dat?.plant.map((x) => ({\r\n\t\t\t\t\tname: x.name,\r\n\t\t\t\t\tid: x.pid,\r\n\t\t\t\t})) || [];\r\n\r\n\t\t\tsetPlantsOption([{ name: 'All Plants', id: 0 }, ...value]);\r\n\t\t} else {\r\n\t\t\tsetPlantsOption([{ name: 'All Plants', id: 0 }]);\r\n\t\t}\r\n\t};\r\n\r\n\tuseEffect(() => {\r\n\t\tfetchApi();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{/* Energy Admin */}\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t{/* option.name}\r\n\t\t\t\t\t\tstyle={{ width: 130 }}\r\n\t\t\t\t\t\tonChange={handlePlant}\r\n\t\t\t\t\t\trenderInput={(params) => }\r\n\t\t\t\t\t/> */}\r\n\r\n\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t */}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{userName}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t navigate('/dashboard/info')}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t */}\r\n\t\t\t\t\r\n\t\t\t\t{/* */}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t{/* */}\r\n\t\t\t\t\r\n\t\t\t\t\t{open ? (\r\n\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tclassName='logoutButton'\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tLogout\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : null}\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n}\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Button, Fade, Grid, Paper, Snackbar, TextField, Typography } from '@material-ui/core';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport { Link } from 'react-router-dom';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { resetPassword } from '../../reduxState/aciton/authAction';\r\nimport { useNavigate } from 'react-router-dom';\r\nimport MuiAlert from '@material-ui/lab/Alert';\r\n\r\nconst useStyle = makeStyles((theme) => ({\r\n\tbackground: {\r\n\t\tcolor: '#e6e6e6',\r\n\t\tmargin: 0,\r\n\t},\r\n\tPaper: {\r\n\t\twidth: '580px',\r\n\t\tmarginTop: '7em',\r\n\t\tcolor: '#f6f6f6',\r\n\t\tborderRadius: '17px',\r\n\t\tpadding: '2em',\r\n\t},\r\n\tHeading: {\r\n\t\tmarginTop: '1em',\r\n\t\tfontSize: '1.3em',\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\t},\r\n\tLink: { textDecoration: 'none' },\r\n\tButton: {\r\n\t\tborderRadius: '20px',\r\n\t\tpadding: '13px',\r\n\t\tbackgroundColor: `${theme.palette.common.red}`,\r\n\t\tcolor: '#fff',\r\n\t\t'&:hover': {\r\n\t\t\tbackgroundColor: theme.palette.secondary.red,\r\n\t\t},\r\n\t},\r\n}));\r\n\r\nfunction Alert(props) {\r\n\treturn ;\r\n}\r\n\r\nfunction Login() {\r\n\tconst classes = useStyle();\r\n\tlet navigate = useNavigate();\r\n\r\n\t// ***************************************state *********************************************\r\n\tconst [formData, setformData] = useState({\r\n\t\temail: '',\r\n\t});\r\n\tconst [validationHelper, setValidationHelper] = useState({\r\n\t\temailHelper: '',\r\n\t});\r\n\tconst { email } = formData;\r\n\tconst { emailHelper } = validationHelper;\r\n\r\n\t// Snackbar\r\n\tconst [openSanckbar, setOpenSnackbar] = useState({ open: false, severity: '' });\r\n\r\n\t// *********************************OnChange handle**********************************************\r\n\tconst onChange = (e) => {\r\n\t\tsetformData({ ...formData, [e.target.name]: e.target.value });\r\n\t\tlet valid;\r\n\r\n\t\tswitch (e.target.name) {\r\n\t\t\tcase 'email':\r\n\t\t\t\tvalid = /^\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(\\.\\w{2,3})+$/.test(e.target.value);\r\n\t\t\t\tif (!valid) {\r\n\t\t\t\t\tsetValidationHelper({\r\n\t\t\t\t\t\t...validationHelper,\r\n\t\t\t\t\t\temailHelper: 'Invalid Email',\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetValidationHelper({ ...validationHelper, emailHelper: '' });\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t};\r\n\r\n\t// ***************************Redux State***************************\r\n\tconst dispatch = useDispatch();\r\n\tconst userResetPassword = useSelector((state) => state.userResetPassword);\r\n\tconst { success, error: errorSuccess } = userResetPassword;\r\n\r\n\t// ***************************Validation**************************\r\n\r\n\tconst Validation = () => {\r\n\t\tlet isError = true;\r\n\r\n\t\tif (email.length === 0) {\r\n\t\t\tisError = false;\r\n\r\n\t\t\tvalidationHelper.emailHelper = 'Email is Required';\r\n\t\t}\r\n\r\n\t\tsetValidationHelper({\r\n\t\t\t...validationHelper,\r\n\t\t});\r\n\r\n\t\treturn isError;\r\n\t};\r\n\r\n\t// *******************************onSubmit ******************************************************\r\n\tconst onSubmit = (e) => {\r\n\t\tlet err = Validation();\r\n\r\n\t\tif (err) {\r\n\t\t\te.preventDefault();\r\n\t\t\tdispatch(resetPassword(email));\r\n\t\t}\r\n\t};\r\n\r\n\t// *************************************useEffect***********************************************\r\n\tuseEffect(() => {\r\n\t\tif (success) {\r\n\t\t\tnavigate('/dashboard');\r\n\t\t}\r\n\t}, [success, navigate]);\r\n\r\n\t// *************************************useEffect***********************************************\r\n\tuseEffect(() => {\r\n\t\tif (errorSuccess) {\r\n\t\t\tsetOpenSnackbar({\r\n\t\t\t\topen: true,\r\n\t\t\t\tseverity: 'error',\r\n\t\t\t\tmessage: errorSuccess ? errorSuccess?.data?.error : 'Check you internet connection!',\r\n\t\t\t});\r\n\t\t}\r\n\t}, [errorSuccess]);\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tForget your Password ?\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tDon't worry! Just fill your email and we'll send you a link to reset your password\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tBack to Signin\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t{/* ********************************Snackbar ********************************* */}\r\n\t\t\t {\r\n\t\t\t\t\tsetOpenSnackbar({ open: false });\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t {\r\n\t\t\t\t\t\tsetOpenSnackbar({ open: false });\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tseverity={openSanckbar.severity}\r\n\t\t\t\t>\r\n\t\t\t\t\t{openSanckbar.message}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\nexport default Login;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Button, Fade, Grid, Paper, Snackbar, TextField, Typography } from '@material-ui/core';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { resetPassword } from '../../reduxState/aciton/authAction';\r\nimport { useNavigate } from 'react-router-dom';\r\nimport MuiAlert from '@material-ui/lab/Alert';\r\n\r\nconst useStyle = makeStyles((theme) => ({\r\n\tbackground: {\r\n\t\tcolor: '#e6e6e6',\r\n\t\tmargin: 0,\r\n\t},\r\n\tPaper: {\r\n\t\twidth: '580px',\r\n\t\tmarginTop: '10em',\r\n\t\tcolor: '#f6f6f6',\r\n\t\tborderRadius: '17px',\r\n\t\tpadding: '2em',\r\n\t},\r\n\tHeading: {\r\n\t\tmarginTop: '1em',\r\n\t\tfontSize: '1.3em',\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\t\tcolor: `${theme.palette.common.pink}`,\r\n\t},\r\n\tLink: { textDecoration: 'none' },\r\n\tButton: {\r\n\t\tborderRadius: '20px',\r\n\t\tpadding: '13px',\r\n\t\tbackgroundColor: `${theme.palette.common.pink}`,\r\n\t\tcolor: '#fff',\r\n\t\t'&:hover': {\r\n\t\t\tbackgroundColor: theme.palette.secondary.light,\r\n\t\t},\r\n\t},\r\n}));\r\n\r\nfunction Alert(props) {\r\n\treturn ;\r\n}\r\n\r\nfunction RestoredPassword() {\r\n\tconst classes = useStyle();\r\n\tlet navigate = useNavigate();\r\n\r\n\t// ***************************************state *********************************************\r\n\tconst [formData, setformData] = useState({\r\n\t\tpassword: '',\r\n\t});\r\n\tconst [validationHelper, setValidationHelper] = useState({\r\n\t\tpasswordHelper: '',\r\n\t});\r\n\tconst { password } = formData;\r\n\tconst { passwordHelper } = validationHelper;\r\n\r\n\t// Snackbar\r\n\tconst [openSanckbar, setOpenSnackbar] = useState({ open: false, severity: '' });\r\n\r\n\t// *********************************OnChange handle**********************************************\r\n\tconst onChange = (e) => {\r\n\t\tsetformData({ ...formData, [e.target.name]: e.target.value });\r\n\t};\r\n\r\n\t// ***************************Redux State***************************\r\n\tconst dispatch = useDispatch();\r\n\tconst userPasswordStore = useSelector((state) => state.userPasswordStore);\r\n\tconst { success, error: errorSuccess } = userPasswordStore;\r\n\r\n\t// ***************************Validation**************************\r\n\r\n\tconst Validation = () => {\r\n\t\tlet isError = true;\r\n\r\n\t\tif (password.length < 6) {\r\n\t\t\tisError = false;\r\n\r\n\t\t\tvalidationHelper.passwordHelper = 'password must be greater than 6';\r\n\t\t}\r\n\r\n\t\tsetValidationHelper({\r\n\t\t\t...validationHelper,\r\n\t\t});\r\n\r\n\t\treturn isError;\r\n\t};\r\n\r\n\t// *******************************onSubmit ******************************************************\r\n\tconst onSubmit = (e) => {\r\n\t\tlet err = Validation();\r\n\r\n\t\tif (err) {\r\n\t\t\te.preventDefault();\r\n\t\t\tdispatch(resetPassword(password));\r\n\t\t}\r\n\t};\r\n\r\n\t// *************************************useEffect***********************************************\r\n\tuseEffect(() => {\r\n\t\tif (success) {\r\n\t\t\tnavigate('/Login');\r\n\t\t}\r\n\t}, [success, navigate]);\r\n\r\n\t// *************************************useEffect***********************************************\r\n\tuseEffect(() => {\r\n\t\tif (errorSuccess) {\r\n\t\t\tsetOpenSnackbar({\r\n\t\t\t\topen: true,\r\n\t\t\t\tseverity: 'error',\r\n\t\t\t\tmessage: errorSuccess ? errorSuccess?.data?.error : 'Check you internet connection!',\r\n\t\t\t});\r\n\t\t}\r\n\t}, [errorSuccess]);\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tReset Paword\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tEnter your new Passord\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t{/* ********************************Snackbar ********************************* */}\r\n\t\t\t {\r\n\t\t\t\t\tsetOpenSnackbar({ open: false });\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t {\r\n\t\t\t\t\t\tsetOpenSnackbar({ open: false });\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tseverity={openSanckbar.severity}\r\n\t\t\t\t>\r\n\t\t\t\t\t{openSanckbar.message}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\nexport default RestoredPassword;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Navigate, Route } from 'react-router-dom';\r\nimport Cookies from 'universal-cookie';\r\nimport { instance } from '../Config/axios';\r\n// import { makeStyles } from '@material-ui/core/styles';\r\nimport { Grid } from '@material-ui/core';\r\n\r\nconst cookies = new Cookies();\r\n\r\n// const useStyles = makeStyles((theme) => ({\r\n// \tloaderContainer: {\r\n// \t\tposition: 'absolute',\r\n// \t\ttop: '40vh',\r\n// \t\tleft: '50%',\r\n// \t},\r\n// \tloader: {\r\n// \t\tbackground: 'green',\r\n// \t\tcolor: 'green',\r\n// \t},\r\n// }));\r\n\r\nasync function checkTokenValidity() {\r\n\ttry {\r\n\t\t// check if token is valid by calling api and remove token from cookies\r\n\r\n\t\tlet data = false;\r\n\t\tawait instance.get(`/api/doctors/isdoctor`).then((x) => {\r\n\t\t\tif (x.status === 200) {\r\n\t\t\t\tdata = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn data;\r\n\t} catch (error) {\r\n\t\tcookies.remove('token');\r\n\t\tconsole.log(error);\r\n\t\treturn false;\r\n\t}\r\n}\r\n\r\nexport const AuthRoute = ({ element: Component, path, ...rest }) => {\r\n\tconst [auth, setAuth] = useState(false);\r\n\tconst [isTokenValidated, setIsTokenValidated] = useState(false);\r\n\tlet token = cookies.get('token');\r\n\r\n\t// console.log('Auth called')\r\n\r\n\tif (!token) {\r\n\t\treturn ;\r\n\t} else {\r\n\t\tcheckTokenValidity().then((isTokenValid) => {\r\n\t\t\tif (isTokenValid) {\r\n\t\t\t\tsetAuth(true);\r\n\t\t\t} else {\r\n\t\t\t\tcookies.remove('token');\r\n\t\t\t}\r\n\t\t\tsetIsTokenValidated(true);\r\n\t\t});\r\n\t}\r\n\r\n\tif (!isTokenValidated) {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{/* Loader */}\r\n\t\t\t\r\n\t\t);\r\n\t} // or some kind of loading animation\r\n\r\n\tif (auth) {\r\n\t\treturn ;\r\n\t} else {\r\n\t\treturn ;\r\n\t}\r\n};\r\n\r\nexport const PrivateRoute = ({ children }) => {\r\n\t// const location = useLocation()\r\n\tconst [auth, setAuth] = useState(false);\r\n\tconst [isTokenValidated, setIsTokenValidated] = useState(false);\r\n\t// const [isAgreed, setIsAgreed] = useState(false)\r\n\r\n\tuseEffect(() => {\r\n\t\t// console.log({ ...props });\r\n\t\tlet token = cookies.get('token');\r\n\t\tif (token) {\r\n\t\t\t// send jwt to API to see if it's valid\r\n\t\t\ttry {\r\n\t\t\t\t// instance\r\n\t\t\t\t// .get(`/api/authorized`)\r\n\t\t\t\t// .then((res) => {\r\n\t\t\t\tsetAuth(true);\r\n\t\t\t\tsetIsTokenValidated(true);\r\n\t\t\t\t// })\r\n\t\t\t\t// .catch((err) => {\r\n\t\t\t\tsetAuth(true);\r\n\t\t\t\t// cookies.remove('token');\r\n\t\t\t\tsetIsTokenValidated(true);\r\n\t\t\t\t// });\r\n\t\t\t} catch (err) {\r\n\t\t\t\tsetAuth(true);\r\n\t\t\t\t// cookies.remove('token');\r\n\t\t\t\tsetIsTokenValidated(true);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tsetIsTokenValidated(true); // in case there is no token\r\n\t\t}\r\n\t}, []);\r\n\r\n\tif (!isTokenValidated) {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\tLoading.......\r\n\t\t\t\t{/* your Loader\r\n\t\t\t\t */}\r\n\t\t\t\r\n\t\t);\r\n\t} // or some kind of loading animation\r\n\tif (auth) {\r\n\t\t// return } />;\r\n\t\treturn children;\r\n\r\n\t\t// return \r\n\t} else {\r\n\t\treturn ;\r\n\t}\r\n};\r\n","import React from 'react';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport Card from '@material-ui/core/Card';\r\nimport CardActions from '@material-ui/core/CardActions';\r\nimport CardContent from '@material-ui/core/CardContent';\r\nimport Typography from '@material-ui/core/Typography';\r\n\r\nimport { Grid, IconButton } from '@material-ui/core';\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\troot: {\r\n\t\tminWidth: 200,\r\n\t\tborderRadius: '5px',\r\n\t\toverflow: 'hidden',\r\n\t\theight: '60px',\r\n\t},\r\n\tcardcontent: {\r\n\t\tpadding: 0,\r\n\t\t'&:last-child': {\r\n\t\t\tpaddingBottom: 0,\r\n\t\t},\r\n\t},\r\n\r\n\ttitle: {\r\n\t\tfontSize: 15,\r\n\t\tfontWeight: 600,\r\n\t\tcolor: '#34314c',\r\n\t\ttextAlign: 'center',\r\n\t},\r\n\ttagline: {\r\n\t\tfontSize: 12,\r\n\t\tfontWeight: 600,\r\n\r\n\t\tlineHeight: '.5rem',\r\n\t\ttextTransform: 'capitalize',\r\n\t\tcolor: 'rgba(52, 49, 76, 0.54) !important',\r\n\t\ttextAlign: 'center',\r\n\t\tmarginTop: '5px',\r\n\t},\r\n\ticon: {\r\n\t\tbackgroundColor: `${theme.palette.common.red}`,\r\n\t\ttextAlign: 'center',\r\n\t},\r\n}));\r\n\r\nexport default function SimpleCard({ icon, title, count, unit }) {\r\n\tconst classes = useStyles();\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{icon}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{title}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{count} {unit}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React from 'react';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport Card from '@material-ui/core/Card';\r\nimport CardActions from '@material-ui/core/CardActions';\r\nimport CardContent from '@material-ui/core/CardContent';\r\nimport Typography from '@material-ui/core/Typography';\r\n\r\nimport { Grid, IconButton } from '@material-ui/core';\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\troot: {\r\n\t\tminWidth: 200,\r\n\t\tborderRadius: '5px',\r\n\t\toverflow: 'hidden',\r\n\t\theight: '80px',\r\n\t\tbackgroundColor: '#E2E2E266',\r\n\t\tboxShadow: 'none',\r\n\t},\r\n\tcardcontent: {\r\n\t\tpadding: 0,\r\n\t\t'&:last-child': {\r\n\t\t\tpaddingBottom: 0,\r\n\t\t},\r\n\t},\r\n\r\n\ttitle: {\r\n\t\tfontSize: '18px',\r\n\t\tfontWeight: 500,\r\n\t\tcolor: '#34314c',\r\n\t\ttextAlign: 'center',\r\n\t\t// fontFamily: 'Inter',\r\n\t\tlineHeight: '22px',\r\n\t},\r\n\ttagline: {\r\n\t\tfontSize: '18px',\r\n\t\tfontWeight: 660,\r\n\t\tlineHeight: '.5rem',\r\n\t\ttextTransform: 'capitalize',\r\n\t\t// color: 'rgba(52, 49, 76, 0.54) !important',\r\n\t\ttextAlign: 'center',\r\n\t\tmarginTop: '7px',\r\n\t},\r\n\ticon: {\r\n\t\t// backgroundColor: `${theme.palette.common.red}`,\r\n\r\n\t\ttextAlign: 'center',\r\n\t},\r\n}));\r\n\r\nexport default function SimpleCard({ icon, title, count }) {\r\n\tconst classes = useStyles();\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{icon}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{title}\r\n\t\t\t\t\t\t{count}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React from 'react';\r\nimport Chart from 'react-apexcharts';\r\n\r\nexport default function PerYear({ data }) {\r\n\tconst datas = [\r\n\t\t{\r\n\t\t\tname: 'Power',\r\n\t\t\tdata: [2830.7],\r\n\t\t},\r\n\t];\r\n\tlet options = {\r\n\t\tcolors: ['#E53935'],\r\n\t\tchart: {\r\n\t\t\tid: 'crown-charts',\r\n\t\t},\r\n\t\txaxis: {\r\n\t\t\tcategories: [new Date().getFullYear()],\r\n\t\t\ttitle: {\r\n\t\t\t\ttext: 'Year',\r\n\t\t\t},\r\n\t\t},\r\n\t\tyaxis: {\r\n\t\t\ttitle: {\r\n\t\t\t\ttext: 'Power (kWh)',\r\n\t\t\t},\r\n\t\t\ttype: 'category',\r\n\t\t\ttickPlacement: 'on',\r\n\t\t\tlabels: {\r\n\t\t\t\trotate: 0,\r\n\t\t\t\trotateAlways: false,\r\n\t\t\t\tformatter: function (val) {\r\n\t\t\t\t\treturn val.toFixed(0);\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tdecimalsInFloat: 0,\r\n\t\t},\r\n\t};\r\n\treturn (\r\n\t\t<>\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React, { useState } from 'react';\r\nimport Chart from 'react-apexcharts';\r\nimport DatePicker from 'react-datepicker';\r\nimport { Grid } from '@material-ui/core';\r\n\r\nexport default function PerYear({ data, date, setDate }) {\r\n\tlet dataz = [\r\n\t\t{\r\n\t\t\tname: 'Jan',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Feb',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Mar',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Apr',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'May',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Jun',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Jul',\r\n\t\t\tdata: ['115.6320'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Aug',\r\n\t\t\tdata: ['508.6740'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Sep',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Oct',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Nov',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'Dec',\r\n\t\t\tdata: ['0.0000'],\r\n\t\t},\r\n\t];\r\n\tlet options = {\r\n\t\tcolors: ['#E53935'],\r\n\t\tchart: {\r\n\t\t\tid: 'crown-charts',\r\n\t\t},\r\n\t\txaxis: {\r\n\t\t\tcategories: ['Month'],\r\n\t\t},\r\n\t\tyaxis: {\r\n\t\t\ttitle: {\r\n\t\t\t\ttext: 'Power (kWh)',\r\n\t\t\t},\r\n\t\t\ttype: 'category',\r\n\t\t\ttickPlacement: 'on',\r\n\t\t\tlabels: {\r\n\t\t\t\trotate: 0,\r\n\t\t\t\trotateAlways: false,\r\n\t\t\t\tformatter: function (val) {\r\n\t\t\t\t\treturn val?.toFixed(0) || 0;\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tdecimalsInFloat: 0,\r\n\t\t},\r\n\t};\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t setDate(date)} showYearPicker dateFormat='yyyy' className='text-base fontPoppins' />\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React, { useState } from 'react';\r\nimport Chart from 'react-apexcharts';\r\nimport DatePicker from 'react-datepicker';\r\nimport { Grid } from '@material-ui/core';\r\n\r\nexport default function PerDays({ data, date, setDate }) {\r\n\tconst [startDate, setStartDate] = useState(new Date());\r\n\r\n\tlet datas = [\r\n\t\t{\r\n\t\t\tname: 1,\r\n\t\t\tdata: ['2.56'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 2,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 3,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 4,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 5,\r\n\t\t\tdata: ['9.94'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 6,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 7,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 8,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 9,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 10,\r\n\t\t\tdata: ['4.23'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 11,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 12,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 13,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 14,\r\n\t\t\tdata: ['21.63'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 15,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 16,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 17,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 18,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 19,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 20,\r\n\t\t\tdata: ['25.45'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 21,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 22,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 23,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 24,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 25,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 26,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 27,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 28,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 29,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 30,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 31,\r\n\t\t\tdata: ['0.00'],\r\n\t\t},\r\n\t];\r\n\tlet options = {\r\n\t\tcolors: ['#E53935'],\r\n\t\tchart: {\r\n\t\t\tid: 'crown-charts',\r\n\t\t},\r\n\t\txaxis: {\r\n\t\t\tcategories: [new Date().getFullYear()],\r\n\t\t\ttitle: {\r\n\t\t\t\ttext: 'Days',\r\n\t\t\t},\r\n\t\t},\r\n\t\tyaxis: {\r\n\t\t\ttitle: {\r\n\t\t\t\ttext: 'Power (kWh)',\r\n\t\t\t},\r\n\t\t\ttype: 'category',\r\n\t\t\ttickPlacement: 'on',\r\n\t\t\tlabels: {\r\n\t\t\t\trotate: 0,\r\n\t\t\t\trotateAlways: false,\r\n\t\t\t\tformatter: function (val) {\r\n\t\t\t\t\treturn val?.toFixed(0);\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tdecimalsInFloat: 0,\r\n\t\t},\r\n\t};\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t setDate(date)}\r\n\t\t\t\t\tdateFormat='MM/yyyy'\r\n\t\t\t\t\tshowMonthYearPicker\r\n\t\t\t\t\tshowFullMonthYearPicker\r\n\t\t\t\t\tclassName='text-base fontPoppins'\r\n\t\t\t\t/>\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React, { useState } from 'react';\r\nimport Chart from 'react-apexcharts';\r\nimport { Grid } from '@material-ui/core';\r\nimport DatePicker from 'react-datepicker';\r\n\r\nexport default function PerDays({ data, categories, date, setDate }) {\r\n\tconst [startDate, setStartDate] = useState(new Date());\r\n\r\n\tlet options = {\r\n\t\tchart: {\r\n\t\t\theight: 350,\r\n\t\t\ttype: 'area',\r\n\t\t},\r\n\t\tdataLabels: {\r\n\t\t\tenabled: false,\r\n\t\t},\r\n\t\tstroke: {\r\n\t\t\tcurve: 'smooth',\r\n\t\t},\r\n\t\txaxis: {\r\n\t\t\ttype: 'datetime',\r\n\t\t\tcategories,\r\n\t\t},\r\n\t\ttooltip: {\r\n\t\t\tx: {\r\n\t\t\t\tformat: 'HH:mm',\r\n\t\t\t},\r\n\t\t},\r\n\t};\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t setDate(date)} showMonthDropdown className='text-base fontPoppins' />\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React, { useEffect } from 'react';\r\nimport Paper from '@material-ui/core/Paper';\r\nimport Tabs from '@material-ui/core/Tabs';\r\nimport Tab from '@material-ui/core/Tab';\r\nimport { makeStyles, Typography, Box, Grid } from '@material-ui/core';\r\nimport { generateUrl, monthNames, extractDate, getPlantId } from '../../../helper';\r\nimport { instance } from '../../../Config/axios';\r\n\r\n//charts-lib\r\nimport PerYear from './react-charts/PerYear';\r\nimport PerMonth from './react-charts/PerMonth';\r\nimport PerDays from './react-charts/PerDays';\r\nimport PerOneDay from './react-charts/PerOneDays';\r\nimport moment from 'moment';\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\tpaper: {\r\n\t\tborder: 'none',\r\n\t},\r\n\tindicator: {\r\n\t\tminWidth: '100px',\r\n\t},\r\n\r\n\tdefault: {\r\n\t\tminWidth: '100px',\r\n\t},\r\n}));\r\n\r\nfunction TabPanel(props) {\r\n\tconst { children, value, index, ...other } = props;\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t{value === index && (\r\n\t\t\t\t\r\n\t\t\t\t\t{children}\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t\r\n\t);\r\n}\r\n\r\nexport default function TabBar() {\r\n\tconst classes = useStyles();\r\n\tconst [active, setActive] = React.useState(0);\r\n\tconst [series, setSeries] = React.useState([]);\r\n\tconst [categories, setCategories] = React.useState([]);\r\n\tconst [date, setDate] = React.useState(new Date());\r\n\r\n\tconst handleChange = (event, newValue) => {\r\n\t\tsetActive(newValue);\r\n\t};\r\n\r\n\tconst fetchTotalPerYear = async () => {\r\n\t\tlet plantId = getPlantId();\r\n\t\t// //year\r\n\t\tlet url = generateUrl({ action: 'queryPlantsEnergyTotalPerYear', date, plantId });\r\n\t\tconst { data } = await instance.get(url);\r\n\r\n\t\tlet seriesYear = [];\r\n\r\n\t\tif (data.desc == 'ERR_NONE') {\r\n\t\t\tif (data?.dat?.peryear?.length > 0) {\r\n\t\t\t\tdata?.dat?.peryear.forEach((x, index) => {\r\n\t\t\t\t\tlet obj = { name: 'Power', data: [x.val] };\r\n\t\t\t\t\tseriesYear.push(obj);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsetSeries([...seriesYear]);\r\n\r\n\t\t// let data = {\r\n\t\t// \tperyear: [\r\n\t\t// \t\t{\r\n\t\t// \t\t\tval: '2830.6531',\r\n\t\t// \t\t\tts: '2022-01-01 00:00:00',\r\n\t\t// \t\t},\r\n\t\t// \t],\r\n\t\t// };\r\n\t};\r\n\r\n\tconst fetchTotalPerMonth = async () => {\r\n\t\tlet plantId = getPlantId();\r\n\t\tlet startDate = extractDate({ date, type: 'month' });\r\n\t\t//month\r\n\t\tlet url = generateUrl({ action: 'queryPlantsEnergyYearPerMonth', date: startDate, plantId });\r\n\t\tconst { data } = await instance.get(url);\r\n\r\n\t\tlet seriesYear = [];\r\n\t\tlet allMonths = monthNames();\r\n\r\n\t\tif (data.desc == 'ERR_NONE') {\r\n\t\t\tif (data?.dat?.permonth?.length > 0) {\r\n\t\t\t\tdata?.dat?.permonth.forEach((x, index) => {\r\n\r\n\t\t\t\t\tif (x.val === \"0.0000\") return;\r\n\r\n\t\t\t\t\tlet obj = { name: allMonths[index], data: [x.val] };\r\n\t\t\t\t\tseriesYear.push(obj);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t\tsetSeries([...seriesYear]);\r\n\t};\r\n\r\n\tconst fetchTotalPerDays = async () => {\r\n\t\tlet plantId = getPlantId();\r\n\r\n\t\tlet startDate = extractDate({ date, type: 'month' });\r\n\r\n\t\t//PER DAYS\r\n\t\tlet url = generateUrl({ action: 'queryPlantsEnergyMonthPerDay', date: startDate, plantId });\r\n\t\tconst { data } = await instance.get(url);\r\n\t\tlet seriesYear = [];\r\n\r\n\t\tif (data.desc == 'ERR_NONE') {\r\n\t\t\tif (data?.dat?.perday?.length > 0) {\r\n\t\t\t\tdata?.dat?.perday.forEach((x, index) => {\r\n\r\n\t\t\t\t\tif (x.val === \"0.00\") return;\r\n\r\n\t\t\t\t\tlet obj = { name: index + 1, data: [x.val] };\r\n\t\t\t\t\tseriesYear.push(obj);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t\tsetSeries([...seriesYear]);\r\n\t};\r\n\tconst fetchTotalPerOneDay = async () => {\r\n\t\tlet plantId = getPlantId();\r\n\t\tlet startDate = extractDate({ date, type: 'day', plantId });\r\n\r\n\t\t//PER DAYS\r\n\t\tlet url = generateUrl({ action: 'queryPlantsActiveOuputPowerOneDay', date: startDate });\r\n\t\tconst { data } = await instance.get(url);\r\n\r\n\t\tlet seriesYear = [{ name: 'Day', data: [] }];\r\n\t\tlet category = [];\r\n\r\n\t\tif (data.desc == 'ERR_NONE') {\r\n\t\t\tif (data?.dat?.outputPower?.length > 0) {\r\n\r\n\t\t\t\tfor (const x of data.dat.outputPower) {\r\n\t\t\t\t\tif (x.val == \"0.0000\") continue;\r\n\r\n\t\t\t\t\tseriesYear[0].data.push(x.val);\r\n\r\n\t\t\t\t\tconst ts = moment(x.ts).add(5, 'hours').format('YYYY-MM-DD HH:mm:ss');\r\n\t\t\t\t\tcategory.push(ts);\r\n\t\t\t\t}\r\n\t\t\t\t// data?.dat?.outputPower.forEach((x, index) => {\r\n\r\n\t\t\t\t// \tif (x.val == \"0.0000\") return;\r\n\r\n\t\t\t\t// \tseriesYear[0].data.push(x.val);\r\n\t\t\t\t// \tcategory.push(x.ts);\r\n\t\t\t\t// });\r\n\t\t\t}\r\n\t\t}\r\n\t\tsetSeries([...seriesYear]);\r\n\t\tsetCategories([...category]);\r\n\t};\r\n\r\n\tconst fetchData = () => {\r\n\t\tsetSeries([]);\r\n\t\tif (active == 0) {\r\n\t\t\tfetchTotalPerOneDay();\r\n\t\t} else if (active == 1) {\r\n\t\t\tfetchTotalPerDays();\r\n\t\t} else if (active == 2) {\r\n\t\t\tfetchTotalPerMonth();\r\n\t\t} else {\r\n\t\t\tfetchTotalPerYear();\r\n\t\t}\r\n\t};\r\n\r\n\tuseEffect(() => {\r\n\t\tfetchData();\r\n\t}, [date, active]);\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tDay}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\tMonth}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\tYear}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\tTotal}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n}\r\n","import React from 'react';\r\nimport Tabs from './Tabs';\r\n\r\nfunction ChartBox() {\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n}\r\n\r\nexport default ChartBox;\r\n","import React, { useEffect, useState } from 'react';\r\nimport Link from '@material-ui/core/Link';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport Title from '../Title/Title';\r\nimport { Grid } from '@material-ui/core';\r\nimport Cookies from 'universal-cookie';\r\nconst cookies = new Cookies();\r\nlet plantCookie = cookies.get('plant');\r\n\r\nfunction preventDefault(event) {\r\n\tevent.preventDefault();\r\n}\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\tkiloWatt: {\r\n\t\tfontSize: '4rem',\r\n\t\tfontWeight: 700,\r\n\t\tcolor: `${theme.palette.common.red}`,\r\n\t},\r\n\theading: {\r\n\t\tfontSize: '1.6rem',\r\n\t\tfontWeight: 600,\r\n\t},\r\n\tfontPoppins: {\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\t}\r\n}));\r\n\r\nexport default function Deposits({ data }) {\r\n\tconst classes = useStyles();\r\n\tconst [plantName, setPlantName] = useState('');\r\n\r\n\tuseEffect(() => {\r\n\t\tif (plantCookie) {\r\n\t\t\tif (plantCookie?.name != 'All Plants') {\r\n\t\t\t\tsetPlantName(plantCookie.name);\r\n\t\t\t}\r\n\t\t}\r\n\t}, []);\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Last Updated : {data?.updated}

\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Current Power Generation

\r\n\t\t\t\t\t

{plantName ? plantName : 'ALL POWERSTATION'}

\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{data?.power}

\r\n\t\t\t\t\t

KW

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n","import React from 'react';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\n\r\nfunction preventDefault(event) {\r\n\tevent.preventDefault();\r\n}\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\tkiloWatt: {\r\n\t\tmarginTop: '10px',\r\n\t\tfontSize: '1.2rem',\r\n\t\tfontWeight: 600,\r\n\t\tcolor: '#ffff',\r\n\t},\r\n\theading: {\r\n\t\tfontSize: '1.1rem',\r\n\t\tcolor: '#ffff',\r\n\t\tfontWeight: 600,\r\n\t},\r\n\tsubtitle: {\r\n\t\tfontSize: '1rem',\r\n\t\tcolor: 'rgba(255, 255, 255, 0.75);',\r\n\t},\r\n}));\r\n\r\nexport default function Deposits({ data }) {\r\n\tconst classes = useStyles();\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t

Total Output Power

\r\n\t\t\t\t

All POWERSTATION

\r\n\t\t\t\t

\r\n\t\t\t\t\t{data?.outputPower}\r\n\t\t\t\t\tKW\r\n\t\t\t\t

\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\tcrown_icon\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t

Installed Capacity

\r\n\t\t\t\t

All POWERSTATION

\r\n\t\t\t\t

\r\n\t\t\t\t\t{data?.capacity}\r\n\t\t\t\t\tKW\r\n\t\t\t\t

\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n","import React, { useEffect } from 'react';\r\nimport clsx from 'clsx';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport Grid from '@material-ui/core/Grid';\r\nimport Paper from '@material-ui/core/Paper';\r\nimport TitleCard from './TitleCard/index';\r\nimport CardSummary from './CardSummary/index';\r\nimport BreadCrum from '../BreadCrum/';\r\n\r\nimport Chart from './Chart';\r\nimport Stats from './Stats';\r\nimport PowerStats from './PowerStats';\r\n\r\nimport AssessmentTwoTone from '@material-ui/icons/AssessmentTwoTone';\r\nimport AccountBalanceTwoToneIcon from '@material-ui/icons/AccountBalanceTwoTone';\r\n\r\nimport PieChartIcon from '@material-ui/icons/PieChart';\r\nimport MonetizationOnTwoToneIcon from '@material-ui/icons/MonetizationOnTwoTone';\r\nimport WbCloudyTwoToneIcon from '@material-ui/icons/WbCloudyTwoTone';\r\nimport { useState } from 'react';\r\nimport { instance } from '../../Config/axios';\r\nimport { generateUrl, getPlantId } from '../../helper/index';\r\nimport Cookies from 'universal-cookie';\r\nimport { Icon } from '@iconify/react';\r\n\r\nconst _ = require('lodash');\r\n\r\nconst cookies = new Cookies();\r\nlet plantCookie = cookies.get('plant');\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\tpaper: {\r\n\t\tpadding: theme.spacing(4),\r\n\t\tdisplay: 'flex',\r\n\t\toverflow: 'auto',\r\n\t\tflexDirection: 'column',\r\n\t\t// backgroundColor: `${theme.palette.common.Grey}`,\r\n\t},\r\n\tpaperSummary: {\r\n\t\tpadding: '15px',\r\n\t\tdisplay: 'flex',\r\n\t\toverflow: 'auto',\r\n\t\tflexDirection: 'column',\r\n\t\t// backgroundColor: `${theme.palette.common.Grey}`,\r\n\t},\r\n\tfixedHeight: {\r\n\t\theight: 260,\r\n\t\t// boxShadow: 'none',\r\n\t\tboxShadow: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',\r\n\t},\r\n\tpaperGraph: {\r\n\t\tpadding: theme.spacing(4),\r\n\t\tdisplay: 'flex',\r\n\t\toverflow: 'auto',\r\n\t\tflexDirection: 'column',\r\n\t\t// backgroundColor: `${theme.palette.common.Grey}`,\r\n\t},\r\n\tpaperPower: {\r\n\t\tpadding: theme.spacing(4),\r\n\t\t// display: 'flex',\r\n\t\t// overflow: 'auto',\r\n\t\t// flexDirection: 'column',\r\n\t\tbackgroundColor: '#404E55',\r\n\t\tborderRadius: '18px',\r\n\t},\r\n\tfixedHeightGraph: {\r\n\t\t// height: 550,\r\n\t},\r\n\tfixedHeightSummary: {\r\n\t\theight: 220,\r\n\t},\r\n\tfixedHeightPower: {\r\n\t\theight: 180,\r\n\t},\r\n\r\n\tfixedWidth: {\r\n\t\tpaddingLeft: '30px',\r\n\t\tpaddingRight: '30px',\r\n\t},\r\n}));\r\n\r\nconst card = [\r\n\t{\r\n\t\tid: 1,\r\n\t\ticon: 'nimbus:stats', //iconify\r\n\t\ttitle: 'Total Power',\r\n\t\tcount: '0.0',\r\n\t\tunit: 'kWh',\r\n\t},\r\n\t{\r\n\t\tid: 2,\r\n\t\ticon: 'solar:dollar-broken', //iconify\r\n\t\ttitle: 'Today profit',\r\n\t\tcount: '0.0',\r\n\t\tunit: '',\r\n\t},\r\n\t{\r\n\t\tid: 3,\r\n\t\ticon: 'fluent:data-pie-24-regular', //iconify\r\n\t\ttitle: 'Total Coal Saved',\r\n\t\tcount: '0.0',\r\n\t\tunit: 'kg',\r\n\t},\r\n\t// {\r\n\t// \tid: 4,\r\n\t// \ticon: ,\r\n\t// \ttitle: 'Total Income',\r\n\t// \tcount: '0.0',\r\n\t// },\r\n\t{\r\n\t\tid: 4,\r\n\t\ticon: 'mdi:molecule-co2', //iconify\r\n\t\ttitle: 'Total Reduce Co2(kg)',\r\n\t\tcount: '0.0',\r\n\t\tunit: 'kg',\r\n\t},\r\n\t{\r\n\t\tid: 5,\r\n\t\ticon: 'solar:cloud-linear', //iconify\r\n\t\ttitle: 'Total ReduceSo2',\r\n\t\tcount: '0.0',\r\n\t\tunit: 'kg',\r\n\t},\r\n];\r\n\r\nconst plantCard = [\r\n\t{\r\n\t\tkey: 'ENERGY_TODAY',\r\n\t\tcount: '0.0',\r\n\t\ticon: ,\r\n\t\ttitle: 'Energy today',\r\n\t\tid: 1,\r\n\t},\r\n\t{\r\n\t\tkey: 'ENERGY_MONTH',\r\n\t\tcount: '361.3000',\r\n\t\ticon: ,\r\n\t\ttitle: 'Energy Month',\r\n\t\tid: 2,\r\n\t},\r\n\t{\r\n\t\tkey: 'ENERGY_YEAR',\r\n\t\tcount: '6002.6003',\r\n\t\ticon: ,\r\n\t\ttitle: 'Energy Year',\r\n\t\tid: 3,\r\n\t},\r\n\t{\r\n\t\tkey: 'ENERGY_TOTAL',\r\n\t\tcount: '6002.6003',\r\n\t\ticon: ,\r\n\t\ttitle: 'Energy Total',\r\n\t\tid: 4,\r\n\t},\r\n\t{\r\n\t\tkey: 'ENERGY_PROCEEDS',\r\n\t\tcount: 'Â¥120052.01',\r\n\t\ticon: ,\r\n\t\ttitle: 'Energy Proceeds',\r\n\t\tid: 5,\r\n\t},\r\n\t{\r\n\t\tkey: 'ENERGY_COAL',\r\n\t\tcount: '2401.04',\r\n\t\ticon: ,\r\n\t\ttitle: 'Energy Coal',\r\n\t\tid: 6,\r\n\t},\r\n\t{\r\n\t\tkey: 'ENERGY_SO2',\r\n\t\tcount: '180.08',\r\n\t\ticon: co2,\r\n\t\ttitle: 'Energy S02',\r\n\t\tid: 8,\r\n\t},\r\n\t{\r\n\t\tkey: 'CURRENT_TEMP',\r\n\t\tcount: '0.0',\r\n\t\ticon: ,\r\n\t\ttitle: 'Current Temperature',\r\n\t\tid: 9,\r\n\t},\r\n\t{\r\n\t\tkey: 'CURRENT_RADIANT',\r\n\t\tcount: '0.0',\r\n\t\ticon: ,\r\n\t\ttitle: 'Current Radiant',\r\n\t\tid: 10,\r\n\t},\r\n\t{\r\n\t\tkey: 'BATTERY_SOC',\r\n\t\tcount: -1,\r\n\t\ticon: ,\r\n\t\ttitle: 'Battery Soc',\r\n\t\tid: 11,\r\n\t},\r\n];\r\nlet deviceStats = [\r\n\t{\r\n\t\tid: 1,\r\n\t\ticon: 'nimbus:stats', //iconify\r\n\t\ttitle: 'Total Plants',\r\n\t\tcount: '10',\r\n\t},\r\n\t{\r\n\t\tid: 2,\r\n\t\ticon: 'fluent:data-pie-24-regular', //iconify\r\n\t\ttitle: 'Total Devices',\r\n\t\tcount: '20',\r\n\t},\r\n\t{\r\n\t\tid: 3,\r\n\t\ticon: 'solar:dollar-broken', //iconify\r\n\t\ttitle: 'Total Alarms',\r\n\t\tcount: '30',\r\n\t},\r\n];\r\n\r\nlet plantDeviceStats = [\r\n\t{\r\n\t\tid: 1,\r\n\t\ticon: ,\r\n\t\ttitle: 'Mean Trouble-Free Uptime',\r\n\t\tcount: '0',\r\n\t},\r\n\t{\r\n\t\tid: 2,\r\n\t\ticon: ,\r\n\t\ttitle: 'Cotinuous Trouble-Free Uptime',\r\n\t\tcount: '0',\r\n\t},\r\n];\r\n\r\nexport default function Dashboard() {\r\n\tconst classes = useStyles();\r\n\tconst fixedHeightPaper = clsx(classes.paper, classes.fixedHeight);\r\n\tconst fixedHeightPower = clsx(classes.paperPower, classes.fixedHeightPower);\r\n\tconst fixedHeightGraph = clsx(classes.paperGraph, classes.fixedHeightGraph);\r\n\r\n\tconst [activePowerCurrnet, setActivePowerCurrnet] = useState({\r\n\t\tpower: '0.0',\r\n\t\tupdated: new Date().toLocaleTimeString(),\r\n\t});\r\n\tconst [cardSummary, setCardSummary] = useState([...deviceStats]);\r\n\tconst [powerStats, setPowerStats] = useState({\r\n\t\toutputPower: '0.0',\r\n\t\tcapacity: '0.0',\r\n\t});\r\n\tconst [summary, setSummary] = useState(card);\r\n\tconst [deviceData, setDeviceData] = useState({});\r\n\r\n\tconst fetchCurrentPower = async (plantId) => {\r\n\t\t//active power current\r\n\t\tlet action = {};\r\n\r\n\t\tif (plantId) {\r\n\t\t\taction = {\r\n\t\t\t\taction: 'queryPlantsActiveOuputPowerCurrent',\r\n\t\t\t\tplantId,\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\taction = {\r\n\t\t\t\taction: 'queryPlantsActiveOuputPowerCurrent',\r\n\t\t\t\tplantId,\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tlet url1 = generateUrl(action);\r\n\t\tconst ouputPowerCurrent = await instance.get(url1);\r\n\r\n\r\n\r\n\t\tif (ouputPowerCurrent?.data?.desc == 'ERR_NONE') {\r\n\r\n\t\t\tconst data = ouputPowerCurrent?.data?.dat?.outputPower?.substring(0, 4) || '0.0';\r\n\t\t\tsetActivePowerCurrnet({\r\n\t\t\t\tpower: data,\r\n\t\t\t\tupdated: new Date().toLocaleTimeString(),\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n\tconst fetchCardSummary = async () => {\r\n\t\tlet count1 = 0,\r\n\t\t\tcount2 = 0,\r\n\t\t\tcount3 = 0;\r\n\t\t// card Summary\r\n\t\tlet url1 = generateUrl({ action: 'queryDeviceCount' });\r\n\t\tlet url2 = generateUrl({ action: 'queryPlantCount' });\r\n\t\tlet url3 = generateUrl({ action: 'queryPlantsWarningCount' });\r\n\r\n\t\tconst [queryDeviceCount, queryPlantCount, queryAlarmsCount] = await Promise.all([\r\n\t\t\tinstance.get(url1),\r\n\t\t\tinstance.get(url2),\r\n\t\t\tinstance.get(url3),\r\n\t\t]);\r\n\r\n\t\tif (queryPlantCount?.data?.desc == 'ERR_NONE') {\r\n\t\t\tcount1 = queryPlantCount?.data?.dat?.count || 0;\r\n\t\t\tdeviceStats[0].count = count1;\r\n\t\t}\r\n\t\tif (queryDeviceCount?.data?.desc == 'ERR_NONE') {\r\n\t\t\tcount2 = queryDeviceCount?.data?.dat?.count || 0;\r\n\t\t\tdeviceStats[1].count = count2;\r\n\t\t}\r\n\t\tif (queryAlarmsCount?.data?.desc == 'ERR_NONE') {\r\n\t\t\tcount3 = queryAlarmsCount?.data?.dat?.count || 0;\r\n\t\t\tdeviceStats[2].count = count3;\r\n\t\t}\r\n\r\n\t\tsetCardSummary(deviceStats);\r\n\t};\r\n\tconst fetchPowerStats = async () => {\r\n\t\tlet count1 = 0,\r\n\t\t\tcount2 = 0;\r\n\r\n\t\t// card Summary\r\n\t\tlet url1 = generateUrl({ action: 'queryPlantsProfitStatistic' });\r\n\t\tlet url2 = generateUrl({ action: 'queryPlantsNominalPower' });\r\n\r\n\t\tconst [queryPowerCurrent, queryPlantsNominalPower] = await Promise.all([\r\n\t\t\tinstance.get(url1),\r\n\t\t\tinstance.get(url2),\r\n\t\t]);\r\n\r\n\t\tif (queryPowerCurrent?.data?.desc == 'ERR_NONE') {\r\n\t\t\tcount1 = queryPowerCurrent?.data?.dat?.energy || '0.0';\r\n\t\t\tlet data = queryPowerCurrent?.data?.dat || {};\r\n\r\n\t\t\tif (data.energy) {\r\n\t\t\t\tcard[0].count = data.energy;\r\n\t\t\t}\r\n\t\t\tif (data.profit) {\r\n\t\t\t\tcard[1].count = data.profit;\r\n\t\t\t\tcard[1].unit = data.currency;\r\n\t\t\t}\r\n\t\t\tif (data.coal) {\r\n\t\t\t\tcard[2].count = data.coal;\r\n\t\t\t}\r\n\t\t\tif (data.co2) {\r\n\t\t\t\tcard[3].count = data.co2;\r\n\t\t\t}\r\n\t\t\tif (data.so2) {\r\n\t\t\t\tcard[4].count = data.so2;\r\n\t\t\t}\r\n\r\n\t\t\tsetSummary(card);\r\n\t\t}\r\n\t\tif (queryPlantsNominalPower?.data?.desc == 'ERR_NONE') {\r\n\t\t\tcount2 = queryPlantsNominalPower?.data?.dat?.nominalPower || '0.0';\r\n\t\t}\r\n\r\n\t\tsetPowerStats({ outputPower: count1, capacity: count2 });\r\n\t};\r\n\r\n\tconst fetchPowerStatsPlant = async (plantId) => {\r\n\t\tlet count1 = 0,\r\n\t\t\tcount2 = 0,\r\n\t\t\tcount3 = 0,\r\n\t\t\tcount4 = 0;\r\n\r\n\t\t// queryPlantsNominalPower\r\n\t\t// queryPlantRunningNormalTimeAvg\r\n\r\n\t\t// card Summary\r\n\t\tlet url1 = generateUrl({\r\n\t\t\taction: 'queryPlantCurrentData',\r\n\t\t\tplantid: plantId,\r\n\t\t\tpar: 'ENERGY_TODAY,ENERGY_MONTH,ENERGY_YEAR,ENERGY_TOTAL,ENERGY_PROCEEDS,ENERGY_CO2,CURRENT_TEMP,CURRENT_RADIANT,BATTERY_SOC,ENERGY_COAL,ENERGY_SO2',\r\n\t\t});\r\n\t\tlet url2 = generateUrl({\r\n\t\t\taction: 'queryPlantRunningNormalTimeAvg',\r\n\t\t\tplantid: plantId,\r\n\t\t});\r\n\t\tlet url3 = generateUrl({\r\n\t\t\taction: 'queryPlantRunningNormalTime',\r\n\t\t\tplantid: plantId,\r\n\t\t});\r\n\r\n\t\tconst [queryPlantCurrentData, queryPlantRunningNormalTimeAvg, queryPlantRunningNormalTime] = await Promise.all([\r\n\t\t\tinstance.get(url1),\r\n\t\t\tinstance.get(url2),\r\n\t\t\tinstance.get(url3),\r\n\t\t]);\r\n\r\n\t\tif (queryPlantCurrentData?.data?.desc == 'ERR_NONE') {\r\n\t\t\tlet data = queryPlantCurrentData?.data?.dat || [];\r\n\t\t\tcount1 = data.find(({ key }) => key == 'ENERGY_TOTAL')?.val || '0.0';\r\n\t\t\tcount2 = data.find(({ key }) => key == 'CURRENT_TEMP')?.val || '0.0';\r\n\r\n\t\t\tconst composed = plantCard.map((x) => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...x,\r\n\t\t\t\t\tcount: data.find(({ key }) => x.key === key)?.val || '0.0',\r\n\t\t\t\t};\r\n\t\t\t});\r\n\r\n\t\t\tsetSummary(composed);\r\n\t\t\tsetPowerStats({ outputPower: count1, capacity: count2 });\r\n\t\t}\r\n\t\tif (queryPlantRunningNormalTimeAvg?.data?.desc == 'ERR_NONE') {\r\n\t\t\tcount3 = queryPlantRunningNormalTimeAvg?.data?.dat?.minutes || '0.0';\r\n\t\t\tplantDeviceStats[0].count = count3;\r\n\t\t}\r\n\t\tif (queryPlantRunningNormalTime?.data?.desc == 'ERR_NONE') {\r\n\t\t\tcount4 = queryPlantRunningNormalTime?.data?.dat?.minutes || '0.0';\r\n\t\t\tplantDeviceStats[1].count = count4;\r\n\t\t}\r\n\t\tsetCardSummary(plantDeviceStats);\r\n\t};\r\n\r\n\tuseEffect(() => {\r\n\t\tif (plantCookie && plantCookie?.name !== 'All Plants') {\r\n\t\t\tfetchCurrentPower(plantCookie?.id);\r\n\t\t\tfetchPowerStatsPlant(plantCookie?.id);\r\n\t\t} else {\r\n\t\t\tfetchCurrentPower();\r\n\t\t\tfetchCardSummary();\r\n\t\t\tfetchPowerStats();\r\n\r\n\t\t}\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t{/* */}\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcardSummary.map((x) => (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t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\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import GoogleMapReact from 'google-map-react';\r\n\r\nexport default function CustomMap({ google, locations = [] }) {\r\n\tlet center = {\r\n\t\tlat: 59.95,\r\n\t\tlng: 30.33,\r\n\t};\r\n\treturn (\r\n\t\t// \r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n}\r\n","import { Grid, Typography } from '@material-ui/core';\r\nimport React from 'react';\r\nimport CustomMap from './map';\r\n\r\nfunction index() {\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\tNearest Plant\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n\r\nexport default index;\r\n","import React, { useState } from 'react';\r\n// import { useDispatch } from 'react-redux'\r\n\r\nimport { Grid, makeStyles, Paper, TextField, Typography, Button } from '@material-ui/core';\r\nimport { useNavigate } from 'react-router-dom';\r\n\r\n// import Select from 'react-select';\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\tCard: {\r\n\t\tmarginTop: '1em',\r\n\t\tborderTop: `6px solid ${theme.palette.common.blue}`,\r\n\t},\r\n\ticonColor: {\r\n\t\tcolor: theme.palette.common.blue,\r\n\t},\r\n\ttypoFont: {\r\n\t\tfontFamily: 'Poppins, sans-serif',\r\n\r\n\t}\r\n}));\r\n\r\nexport default function Card1({ validationHelper, formData, setFormData, fields }) {\r\n\t// ******************** props State*****************************\r\n\tconst navigate = useNavigate();\r\n\r\n\tconst {\r\n\t\tmanufacturerName,\r\n\t\ttitle,\r\n\t\tdescription,\r\n\t\tforeignDescription,\r\n\t\tbarcode,\r\n\t\thscode,\r\n\t\tnetWeight,\r\n\t\tgrossWeight,\r\n\t\tstockMaxLevel,\r\n\t\tstockMinLevel,\r\n\t\treorderLevel,\r\n\t\trate,\r\n\t} = formData;\r\n\r\n\tconst classes = useStyles();\r\n\t// ***************************onChange**********************************\r\n\r\n\tconst onChange = (e) => {\r\n\t\tlet elementName = e.target.name || '';\r\n\t\tif (elementName.startsWith('address')) {\r\n\t\t\tlet key = elementName.split('.')[1];\r\n\t\t\tformData['address'][key] = e.target.value;\r\n\t\t\tsetFormData({ ...formData });\r\n\t\t} else if (elementName.startsWith('profit')) {\r\n\t\t\tlet key = elementName.split('.')[1];\r\n\t\t\tformData['profit'][key] = e.target.value;\r\n\t\t\tsetFormData({ ...formData });\r\n\t\t} else {\r\n\t\t\tsetFormData({ ...formData, [e.target.name]: e.target.value });\r\n\t\t}\r\n\t};\r\n\r\n\t// *********************************Save***********************************\r\n\r\n\t// const save = () => {\r\n\t// const err = validation()\r\n\r\n\t// if (!err) {\r\n\t// dispatch(createProduct(formData))\r\n\t// }\r\n\t// }\r\n\r\n\t// const handleEditorChange = (e) => {\r\n\t// \tconsole.log(e.target.getContent());\r\n\t// };\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tPlant Information\r\n\t\t\t\t\t\r\n\t\t\t\t\t{fields.slice(0, 5)?.map((item) => {\r\n\t\t\t\t\t\tlet error = validationHelper[item.name + 'Helper'];\r\n\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{item.fiedlName}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t})}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tLocation\r\n\t\t\t\t\t\r\n\t\t\t\t\t{fields.slice(5, 15)?.map((item) => {\r\n\t\t\t\t\t\tlet key = item.name.split('.');\r\n\t\t\t\t\t\tlet error = validationHelper[key[0] + 'Helper'][key[1] + 'Helper'];\r\n\r\n\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{item.fiedlName}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t})}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tIncome formula\r\n\t\t\t\t\t\r\n\t\t\t\t\t{fields.slice(15)?.map((item) => {\r\n\t\t\t\t\t\tlet key = item.name.split('.');\r\n\t\t\t\t\t\tlet error = validationHelper[key[0] + 'Helper'][key[1] + 'Helper'];\r\n\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{item.fiedlName}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t})}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React, { useState, useEffect } from 'react';\r\n\r\nimport {\r\n\tButton,\r\n\tCheckbox,\r\n\tFormControlLabel,\r\n\tGrid,\r\n\tmakeStyles,\r\n\tPaper,\r\n\tTextField,\r\n\tTypography,\r\n\tInputBase,\r\n} from '@material-ui/core';\r\nimport AddPhotoAlternateIcon from '@material-ui/icons/AddPhotoAlternate';\r\nimport { instance } from '../../../Config/axios';\r\nimport Select from 'react-select';\r\nimport Cookies from 'universal-cookie';\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\tCard: {\r\n\t\tmarginTop: '1em',\r\n\t\tborderTop: `6px solid ${theme.palette.common.blue}`,\r\n\t},\r\n\ticonColor: {\r\n\t\tcolor: theme.palette.common.blue,\r\n\t},\r\n}));\r\n\r\nexport default function Card2({ validationHelper, formData, setFormData }) {\r\n\t// ************************************************************\r\n\tconst [renderImage, setRenderImage] = useState({\r\n\t\tmainState: 'initial', // initial, search, gallery, uploaded\r\n\t\timageUploaded: 0,\r\n\t\tselectedFile: null,\r\n\t});\r\n\r\n\t// ************************************************************\r\n\r\n\t// Get Category\r\n\tconst [category, setCategory] = useState([]);\r\n\r\n\t// Gross Weight Unit\r\n\tconst [grossWeight, setGrossWeightUnit] = useState([]);\r\n\tconst [netWeight, setNetWeightUnit] = useState([]);\r\n\r\n\t// Expiry Alert\r\n\tconst [ExpiryOption, setExpiryOption] = useState([]);\r\n\r\n\t// InventoryUnit\r\n\tconst [inventory, setInventory] = useState([]);\r\n\tconst [selling, setSelling] = useState([]);\r\n\r\n\t// ********************Cookies ******************************************\r\n\tconst cookies = new Cookies();\r\n\tconst companyName = cookies.get('cn');\r\n\tconst { value } = companyName;\r\n\r\n\t// ******************** props State*****************************\r\n\r\n\tconst {\r\n\t\tsaleItem,\r\n\t\tunitTypeId,\r\n\t\tproductImage,\r\n\t\tcompanyId,\r\n\t\tsellingUnit,\r\n\t\tnetWeightUnit,\r\n\t\tgrossWeightUnit,\r\n\t\tinventoryUnit,\r\n\t\tcategoryId,\r\n\t\texpiryAlertDaysId,\r\n\t\tsku,\r\n\t} = formData;\r\n\r\n\tconst {\r\n\t\tproductImageHelper,\r\n\t\tunitIdHelper,\r\n\t\tcategoryIdHelper,\r\n\t\tsellingUnitHelper,\r\n\t\tnetWeightUnitHelper,\r\n\t\tgrossWeightUnitHelper,\r\n\t\tinventoryUnitHelper,\r\n\t\texpiryAlertDaysIdHelper,\r\n\t\tskuHelper,\r\n\t} = validationHelper;\r\n\r\n\tconst classes = useStyles();\r\n\t// ***************************onChange**********************************\r\n\r\n\tconst onChange = (e) => {\r\n\t\tswitch (e.target.name) {\r\n\t\t\tcase 'purchasedItem':\r\n\t\t\tcase 'productionItem':\r\n\t\t\t\tsetFormData({ ...formData, [e.target.name]: e.target.checked });\r\n\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'productImage':\r\n\t\t\t\tif (e.target.files[0]) {\r\n\t\t\t\t\thandleRenderImage(e);\r\n\t\t\t\t}\r\n\t\t\t\tsetFormData({\r\n\t\t\t\t\t...formData,\r\n\t\t\t\t\t[e.target.name]: e.target.files[0],\r\n\t\t\t\t});\r\n\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tsetFormData({ ...formData, [e.target.name]: e.target.value });\r\n\t\t\t\tconsole.log('default');\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t};\r\n\t// *******************************Photo**********************\r\n\tconst handleRenderImage = (event) => {\r\n\t\tvar file = event.target.files[0];\r\n\t\tconst reader = new FileReader();\r\n\t\tvar url = reader.readAsDataURL(file);\r\n\r\n\t\treader.onloadend = function (e) {\r\n\t\t\tsetRenderImage({\r\n\t\t\t\tselectedFile: [reader.result],\r\n\t\t\t});\r\n\t\t};\r\n\t};\r\n\r\n\t// ***************************DropDpown OnChange*********************************************************\r\n\tconst handleCategory = (e) => {\r\n\t\tconsole.log(e);\r\n\t\tsetFormData({ ...formData, categoryId: e.id });\r\n\t};\r\n\t// ***********************\r\n\tconst handleInventoryUnit = (e) => {\r\n\t\tconsole.log(e);\r\n\t\tsetFormData({ ...formData, inventoryUnit: e.id });\r\n\t};\r\n\t// ***********************\r\n\tconst handleSellingUnit = (e) => {\r\n\t\tconsole.log(e);\r\n\t\tsetFormData({ ...formData, sellingUnit: e.id });\r\n\t};\r\n\t//************************\r\n\tconst handleNetWeightUnit = (e) => {\r\n\t\tsetFormData({ ...formData, netWeightUnit: e.id });\r\n\t};\r\n\t//************************\r\n\tconst handleGrossWeightUnitSelect = (e) => {\r\n\t\tsetFormData({ ...formData, grossWeightUnit: e.id });\r\n\t};\r\n\t//************************* */\r\n\tconst handleExpiry = (e) => {\r\n\t\tsetFormData({ ...formData, expiryAlertDaysId: e.id });\r\n\t};\r\n\r\n\t// // ********************UseEffect*************************\r\n\t// useEffect(() => {\r\n\t// \t// **********************Expiry Alert Days *******************\r\n\t// \tinstance.get(`/api/Product/GetExpiryDays/${value}`).then((res) => {\r\n\t// \t\tconst get_Expiry = res.data.map(({ id, days }) => ({\r\n\t// \t\t\tvalue: days,\r\n\t// \t\t\tlabel: days,\r\n\t// \t\t\tid: id,\r\n\t// \t\t}));\r\n\t// \t\tsetExpiryOption(get_Expiry);\r\n\t// \t});\r\n\r\n\t// \t// **************************Get Catagory dropdown*****************************\r\n\t// \tinstance.get(`/api/Product/GetProductCategory/${value}`).then((res) => {\r\n\t// \t\tconst get_Catogory = res.data.map(({ id, tittle }) => ({\r\n\t// \t\t\tvalue: tittle,\r\n\t// \t\t\tlabel: tittle,\r\n\t// \t\t\tid: id,\r\n\t// \t\t}));\r\n\t// \t\tsetCategory(get_Catogory);\r\n\t// \t});\r\n\t// \t// *******************Get Inventoy || Get Selling ************************************\r\n\r\n\t// \tinstance.get(`/api/Product/GetUnits/${value}`).then((res) => {\r\n\t// \t\tconst get_Unit = res.data.map(({ id, name }) => ({\r\n\t// \t\t\tvalue: name,\r\n\t// \t\t\tlabel: name,\r\n\t// \t\t\tid: id,\r\n\t// \t\t}));\r\n\t// \t\tsetInventory(get_Unit);\r\n\t// \t\tsetSelling(get_Unit);\r\n\t// \t});\r\n\t// \t// **************************Get Gross Weight Unit || get Net Weight Unit****************\r\n\t// \tinstance.get(`/api/Product/GetWeights/${value}`).then((res) => {\r\n\t// \t\tconst get_GrossWeight = res.data.map(({ id, name }) => ({\r\n\t// \t\t\tvalue: name,\r\n\t// \t\t\tlabel: name,\r\n\t// \t\t\tid: id,\r\n\t// \t\t}));\r\n\t// \t\tsetGrossWeightUnit(get_GrossWeight);\r\n\t// \t\tsetNetWeightUnit(get_GrossWeight);\r\n\t// \t});\r\n\t// }, []);\r\n\r\n\tconst customStyles = {\r\n\t\tcontrol: (base, state) => ({\r\n\t\t\t...base,\r\n\t\t\tborder: '1px solid #ff0000',\r\n\t\t\tboxShadow: 'none',\r\n\t\t\t'&:hover': {\r\n\t\t\t\tborder: '1px solid black',\r\n\t\t\t},\r\n\t\t}),\r\n\t};\r\n\t// **********************************UI******************************\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{/* Row 1 */}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlabel='Sale Item'\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlabel='Fixed Assets Item'\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlabel='Purchased Item'\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t{/* Row 2*/}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlabel='Production Item'\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tProduct Image{' '}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t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