{"version":3,"sources":["slices/gatewaySlice.js","components/ErrorBoundary/index.jsx","Utils/enums.js","slices/connectionStatusSlice.js","components/Header/NavDropdown.jsx","slices/userSlice.js","components/Header/CommonNav.jsx","components/Header/index.jsx","components/Login/index.jsx","components/AuthByJWT/index.jsx","components/Notification/index.js","App.jsx","store.js","serviceWorker.js","index.js","components/Notification/notificationSlice.js","slices/themeSlice.js","Utils/endpoints.js"],"names":["gatewaySlice","createSlice","name","initialState","isLoading","accessName","undefined","bay","gatewayName","guid","ip","plantName","sn","substationName","updateInterval","extProps","modbusList","singlelineConfig","variableGroupsConfig","reducers","updateGatewayPending","state","action","updateGatewayFulfill","payload","baseInfo","updateSinglelineConfig","updateVariableGroupsConfig","actions","ErrorBoundary","props","hasError","error","errorInfo","this","children","React","Component","StatusColor","Yellow","Orange","Red","Magenta","Green","Gray","Blue","Purple40","Purple50","Purple60","PrimaryBlue10","PrimaryBlue20","PrimaryBlue30","PrimaryBlue40","PrimaryBlue50","PrimaryBlue60","PrimaryBlue70","PrimaryBlue80","PrimaryBlue90","PrimaryBlue100","Theme","Light","Dark","connectionStatusSlice","serverConnectRetry","deviceConnectionRetry","updateConnectionStatus","_serverRetry","parseInt","find","d","errorCount","isNaN","filter","NavDropdown","navButton","useState","open","setOpen","className","onClick","onOutsideClick","userSlice","profile","updateUserProfile","CommonNav","active","userProfile","useSelector","user","feature","dashboard","path","label","device","role","indexOf","server","network","system","Object","keys","map","key","to","Header","isShowChangePassword","setIsShowChangePassword","dispatch","useDispatch","env","process","location","useLocation","_feature","pathname","split","isMenuOpen","setIsMenuOpen","useEffect","handleResize","window","addEventListener","removeEventListener","productName","userName","style","border","data-cy","title","showCloseButton","closeOnEscape","closeOnLostFocus","dimBackground","display","marginRight","REACT_APP_VERSION","discreet","href","buttons","icon","message","onYes","axios","post","resetUserPassword","then","e","data","code","showNotification","NotificationType","Success","Warn","localStorage","removeItem","isShow","onClose","ChangePassword","inputOldPassword","setInputOldPassword","inputNewPassword","setInputNewPassword","inputRepeatPassword","setInputRepeatPassword","errorOldPassword","setErrorOldPassword","errorNewPassword","setErrorNewPassword","errorRepeatPassword","setErrorRepeatPassword","isOpen","dataType","value","onValueChange","validationResult","clearOnEscape","showValidationBarWhenInvalid","showValidationIconWhenInvalid","sizeClass","text","type","changePassword","pswold","pswnew","msg","index","loading","setLoading","document","body","backgroundColor","disableDefaultStyle","productSubName","footerText","customContent","onSignInStart","onSignInEnd","showDefaultFields","showLoginButton","LoginForm","defaultValidation","valid","username","setUsername","password","setPassword","errUsername","setErrUsername","errPassword","setErrPassword","remember","setRemember","loginResult","setLoginResult","console","log","getItem","cachedUsername","signInJwt","isValid","response","result","token","setItem","catch","marginBottom","onKeyUp","onChange","setIsLoading","_user","jwtDecode","Date","getTime","exp","defaults","headers","common","remainMS","setTimeout","color","notifications","list","position","bottom","right","App","theme","getTheme","mounted","useRef","version","current","LoadingModule","determinate","CommonComponent","lazy","AdvancedComponent","component","Test","fallback","exact","Notification","configureStore","reducer","notificationSlice","connectionStatus","gateway","themeSlice","Boolean","hostname","match","ReactDOM","render","store","getElementById","navigator","serviceWorker","ready","registration","unregister","push","prepare","severity","id","nanoid","timeout","Info","Alarm","toggleTheme","baseUrl","getServerSettings","updateServerSettings","getAllModbusTemplate","downloadModbus","getConnectionStatus","getLicenseStatus","uploadModbus","uploadCPMLicense","uploadADLicense","getBlobServerSettings","updateBlobServerSettings","restartApp","getDeviceModels","getDevices","updateDevices","getDeviceMonitoringVariables","getDeviceLatestValueByVariable","getDeviceHistoricalValueByVariable","variable","from","getDeviceSamplingVariables","getDeviceSamplingVariableRecords","variableName","getDeviceSample","componentId","sampleId","getDeviceEvents","deviceId","pageIndex","pageSize","downloadHostXML","downloadDeviceXML","restoreHostXML","restoreDeviceXML","getLTEDevices","getLTEStatus","restartLTEDevice","getWanSettings","getLanSettings","updateWanSettings","updateLanSettings","resetWanSettings","resetLanSettings","getGatewayInfo","getDeviceResourceUseage","getNtpSetting","updateNtpSetting","syncTime","getRemoteSetting","updateRemoteSetting","getRemoteServerStatus","toggleRemote","rebootDevice","getServerTime","getSelfDiagnosis","testPing","testPort","port","getAllLogs","getTop100Logs","deleteAllLogs","importModelFile","importPatch","generateLicenseForCurrent","generateLicenseForOthers","generateAdLicenseForCurrent","generateAdLicenseForOthers","getStartupScript","updateStartupScript","getTaskScript","updateTaskScript","testMqtt","getSinglelineConfig","resetSinglelineConfig","getVariableGroupsConfig","uploadVariableGroupsConfig"],"mappings":"wHAAA,oJAGMA,EAAeC,YAAY,CAC/BC,KAAM,UACNC,aAAc,CACZC,WAAW,EAEXC,gBAAYC,EACZC,SAAKD,EACLE,iBAAaF,EACbG,UAAMH,EACNI,QAAIJ,EACJK,eAAWL,EACXM,QAAIN,EACJO,oBAAgBP,EAChBQ,eAAgB,GAEhBC,SAAU,GACVC,WAAY,GACZC,sBAAiBX,EACjBY,0BAAqBZ,GAEvBa,SAAU,CACRC,qBADQ,SACaC,EAAOC,GAC1BD,EAAMjB,WAAY,GAEpBmB,qBAJQ,SAIaF,EAAOC,GAC1BD,EAAMjB,WAAY,EAClBiB,EAAMhB,WAAaiB,EAAOE,QAAQC,SAASpB,WAC3CgB,EAAMd,IAAMe,EAAOE,QAAQC,SAASlB,IACpCc,EAAMb,YAAcc,EAAOE,QAAQC,SAASjB,YAC5Ca,EAAMZ,KAAOa,EAAOE,QAAQC,SAAShB,KACrCY,EAAMX,GAAKY,EAAOE,QAAQC,SAASf,GACnCW,EAAMV,UAAYW,EAAOE,QAAQC,SAASd,UAC1CU,EAAMT,GAAKU,EAAOE,QAAQC,SAASb,GACnCS,EAAMR,eAAiBS,EAAOE,QAAQC,SAASZ,eAC/CQ,EAAMP,eAAiBQ,EAAOE,QAAQC,SAASX,eAC/CO,EAAMN,SAAWO,EAAOE,QAAQT,SAChCM,EAAML,WAAaM,EAAOE,QAAQR,YAGpCU,uBAnBQ,SAmBeL,EAAOC,GAC5BD,EAAMJ,iBAAmBK,EAAOE,SAElCG,2BAtBQ,SAsBm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BAASjD,EAAT,mBACnBkD,EAAsB,2BAASlD,EAAT,mBACtBmD,EAAwB,2BAASnD,EAAT,2BACxBoD,EAAe,2BAASpD,EAAT,oCACfqD,EAAe,2BAASrD,EAAT,qBAEfsD,EAAgB,2BAAStD,EAAT,2BAChBuD,EAAmB,2BAASvD,EAAT,uBACnBwD,EAAW,SAAC/U,GAAD,gBAAWuR,EAAX,oCAA8CvR,IACzDgV,GAAW,SAAChV,EAAIiV,GAAL,gBAAiB1D,EAAjB,oCAAoDvR,EAApD,iBAA+DiV,IAC1EC,GAAa,2BAAS3D,EAAT,mBACb4D,GAAgB,2BAAS5D,EAAT,iCAChB6D,GAAgB,2BAAS7D,EAAT,qBAEhB8D,GAAkB,2BAAS9D,EAAT,6BAClB+D,GAAc,2BAAS/D,EAAT,wBAGdgE,GAA4B,2BAAShE,EAAT,8BAC5BiE,GAA2B,2BAASjE,EAAT,sCAC3BkE,GAA8B,2BAASlE,EAAT,6BAC9BmE,GAA6B,2BAASnE,EAAT,qCAE7BoE,GAAmB,2BAASpE,EAAT,yBACnBqE,GAAsB,2BAASrE,EAAT,4BAEtBsE,GAAgB,2BAAStE,EAAT,yBAChBuE,GAAmB,2BAASvE,EAAT,4BAEnBwE,GAAW,2BAASxE,EAAT,sBAEXyE,GAAsB,2BAASzE,EAAT,kCACtB0E,GAAwB,2BAAS1E,EAAT,oCAExB2E,GAA0B,2BAAS3E,EAAT,mCAE1B4E,GAA6B,2BAAS5E,EAAT,2C","file":"static/js/main.4a2089d0.chunk.js","sourcesContent":["import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\n\r\nconst gatewaySlice = createSlice({\r\n name: \"gateway\",\r\n initialState: {\r\n isLoading: false,\r\n\r\n accessName: undefined,\r\n bay: undefined,\r\n gatewayName: undefined,\r\n guid: undefined,\r\n ip: undefined,\r\n plantName: undefined,\r\n sn: undefined,\r\n substationName: undefined,\r\n updateInterval: 15,\r\n\r\n extProps: [],\r\n modbusList: [],\r\n singlelineConfig:undefined,\r\n variableGroupsConfig:undefined,\r\n },\r\n reducers: {\r\n updateGatewayPending(state, action) {\r\n state.isLoading = true;\r\n },\r\n updateGatewayFulfill(state, action) {\r\n state.isLoading = false;\r\n state.accessName = action.payload.baseInfo.accessName;\r\n state.bay = action.payload.baseInfo.bay;\r\n state.gatewayName = action.payload.baseInfo.gatewayName;\r\n state.guid = action.payload.baseInfo.guid;\r\n state.ip = action.payload.baseInfo.ip;\r\n state.plantName = action.payload.baseInfo.plantName;\r\n state.sn = action.payload.baseInfo.sn;\r\n state.substationName = action.payload.baseInfo.substationName;\r\n state.updateInterval = action.payload.baseInfo.updateInterval;\r\n state.extProps = action.payload.extProps;\r\n state.modbusList = action.payload.modbusList;\r\n\r\n },\r\n updateSinglelineConfig(state, action) {\r\n state.singlelineConfig = action.payload;\r\n },\r\n updateVariableGroupsConfig(state, action) {\r\n state.variableGroupsConfig = action.payload;\r\n },\r\n }\r\n});\r\n\r\nexport const { updateGatewayPending, updateGatewayFulfill,updateSinglelineConfig ,updateVariableGroupsConfig} = gatewaySlice.actions;\r\n\r\nexport default gatewaySlice.reducer;\r\n","import React from \"react\";\r\nexport class ErrorBoundary extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { hasError: false };\r\n }\r\n\r\n static getDerivedStateFromError(error) {\r\n // 更新 state 使下一次渲染能够显示降级后的 UI\r\n return { hasError: true };\r\n }\r\n\r\n componentDidCatch(error, errorInfo) {\r\n // 你同样可以将错误日志上报给服务器\r\n // console.log(error, errorInfo);\r\n }\r\n\r\n render() {\r\n if (this.state.hasError) {\r\n // 你可以自定义降级后的 UI 并渲染\r\n return
登录失败,请输入正确的用户名和密码
}\r\n \r\n