{"version":3,"sources":["shared/constants/ActionTypes.js","@crema/utility/AppHooks.js","shared/constants/AppEnums.js","@crema/services/auth/jwt-auth/jwt-api.js","@crema/core/Scrollbar/index.js","@crema/utility/IntlMessages.js","serviceWorker.js","redux/reducers/Setting.js","redux/reducers/Common.js","redux/reducers/Dashboard.js","redux/reducers/userManagement.js","redux/reducers/Auth.js","redux/reducers/Patient.js","redux/reducers/myProfile.js","redux/reducers/Mrduser.js","redux/reducers/index.js","redux/store/index.js","App.js","@crema/services/ApiConfig.js","@crema/services/MockConfig.js","@crema/services/auth/index.js","@crema/services/auth/aws-cognito/aws-exports.js","@crema/services/db/dashboard/healthCare.js","@crema/services/apis/dashboard/index.js","@crema/services/db/userManagementList.js","@crema/services/apis/userManagement/index.js","@crema/services/index.js","index.js","@crema/services/auth/firebase/firebase.js","@crema/utility/AppContext.js","shared/constants/AppConst.js","@crema/services/auth/auth0/auth0Config.js","redux/actions/JWTAuth.js","redux/actions/Auth0.js","redux/actions/Dashboard.js","redux/actions/userManagement.js","redux/actions/FirebaseAuth.js","redux/actions/AWSCognito.js","redux/actions/Setting.js","redux/actions/Patient.js","redux/actions/myProfile.js","redux/actions/Appointment.js","redux/actions/MrdActions.js","@crema/utility/CremaThemeProvider/index.js","@crema/utility/CremaStyleProvider/index.js","@crema/utility/LocaleProvider.js","@crema/utility/AuthRoutes.js","@crema/core/Navigation/HorizontalNav/HorizontalItem.style.js","@crema/core/Navigation/HorizontalNav/HorizontalItem.js","@crema/core/Navigation/HorizontalNav/HorizontalCollapse.js","@crema/core/Navigation/HorizontalNav/HorizontalGroup.style.js","@crema/core/Navigation/HorizontalNav/HorizontalGroup.js","@crema/core/Navigation/HorizontalNav/HorizontalSingle.style.js","@crema/core/Navigation/HorizontalNav/HorizontalSingle.js","modules/routesConfig.js","@crema/core/Navigation/HorizontalNav/index.js","@crema/core/AppLayout/HorDefault/AppHeader.style.js","@crema/core/AppLayout/ChangepasswordPopup.js","@crema/core/AppLayout/confirmationDialog.js","@crema/core/AppLayout/HorUserInfo.js","shared/components/AppLogo/index.js","@crema/core/AppLayout/HorDefault/AppHeader.js","@crema/core/AppLayout/HorDefault/index.style.js","@crema/core/AppLayout/HorDefault/AppFooter.js","@crema/core/AppLayout/HorDefault/AppFixedFooter.js","shared/components/UserInfo/index.js","@crema/core/Navigation/VerticleNav/VerticalItem.style.js","@crema/core/Navigation/VerticleNav/VerticalItem.js","@crema/core/Navigation/VerticleNav/VerticalCollapase.style.js","@crema/core/Navigation/VerticleNav/VerticalCollapse.js","@crema/core/Navigation/VerticleNav/VerticalNavGroup.style.js","@crema/core/Navigation/VerticleNav/VerticalNavGroup.js","@crema/core/Navigation/VerticleNav/index.js","@crema/core/AppLayout/HorDefault/AppSidebar.style.js","@crema/core/AppLayout/HorDefault/AppSidebar.js","modules/common/Notification/Notification.js","@crema/core/AppLayout/HorDefault/index.js","@crema/core/AppLayout/Layouts.js","shared/jss/common/common.style.js","@crema/core/AppLayout/index.js","@crema/utility/ContextProvider/defaultConfig.js","@crema/utility/ContextProvider/ContextReducer.js","@crema/utility/ContextProvider/index.js","@crema/core/AppAnimate/index.js","shared/localization/entries/en-US.js","shared/localization/entries/zh-Hans-CN.js","shared/localization/entries/ar_SA.js","shared/localization/entries/it_IT.js","shared/localization/entries/es_ES.js","shared/localization/index.js","shared/localization/entries/fr_FR.js","modules/dashboard/index.js","modules/appointment/index.js","modules/auth/index.js","modules/eRxDetails/index.js","modules/mrdRequestPage/index.js","modules/index.js","redux/actions/Common.js","@crema/core/AppLayout/ToasterMsg.js","@crema/core/InfoView/index.js","@crema/core/ComponentCard/highlightTheme.js","@crema/core/ComponentCard/index.js","@crema/utility/Utils.js","@crema/core/Loader/index.js","@crema/core/AppSuspense/index.js","@crema/core/Badge/index.js","@crema/core/AppNavLink/index.js","@crema/core/ComponentHeader/index.js","@crema/core/ThemeSetting/PrimaryColorPicker.js","@crema/services/db/navigationStyle.js","@crema/core/ThemeSetting/index.style.js","@crema/core/ThemeSetting/CustomColorCell.style.js","@crema/core/MessageView/index.js","@crema/core/AppLayout/AppFooter.js","@crema/core/AppErrorBoundary/index.js","@crema/core/ContentView/index.js"],"names":["FETCH_START","FETCH_SUCCESS","FETCH_ERROR","SHOW_MESSAGE","HIDE_MESSAGE","TOGGLE_APP_DRAWER","UPDATING_CONTENT","TOGGLE_NAV_COLLAPSED","SET_INITIAL_PATH","UPDATE_AUTH_USER","SET_AUTH_TOKEN","SET_MOBILENO","SET_PASWD","SIGNOUT_AUTH_SUCCESS","GET_HC_DATA","GET_USERMANAGE_DATA","GET_GUDMEDSUCCESS_DATA","GET_GUDMED_USER","RESET_USER_PASWD","DELETE_USER_DATA","DASHBOARD_PENDING_DATA","DASHBOARD_PENDING_COUNT","DASHBOARD_PENDING_PATIENT_DATA","PATIENT_SUCCESS_MSG","ERX_SUCCESS_MSG","REJECT_ERX_SUCCESS_MSG","MEDICINE_SUCCESS_MSG","REJECT_ERX_MSG","DASHBOARD_ERX_DATA","ERX_IMG_ARR","AGE_VACCINATION_LIST","ERX_IMG_VACC_ARR","ERX_IMG_OCR_ARR","ERX_IMG_VACC_OCR_ARR","ERXLIST_IMG_ARR","ERXLIST_IMG_OCR_ARR","DASHBOARD_RX_DETAILS","DASHBOARD_ERX_DOC_OBSV","DASHBOARD_ERX_LAB_OBSV","DASHBOARD_ERX_PATIENT_VITAL","DASHBOARD_ERX_DOCPROCEDURE","DASHBOARD_ERX_MEDICINE_DETAIL","DASHBOARD_GRX_MEDICINE_DETAIL","DASHBOARD_INSERT_PRESCRIPTION","DASHBOARD_INPROGRESSS_DATA","DASHBOARD_REJECT_DATA","DASHBOARD_REJECT_COUNT","DASHBOARD_COMPLETED_DATA","DASHBOARD_COMPLETED_COUNT","DASHBOARD_INPROGRESSS_COUNT","DELETE_MEDCINE_SUCCESS_MSG","UNIT_DATA","GET_DOCTOR_EDITDATA","DOCTOR_SUCCESS_MSG","DOCTOR_UPDATE_MSG","SET_DOCTOR_ID_NAME","BUCKET_CAPTCHA","DOCTOR_SPECIALIZATION","DOCTOR_SUBSPECIALIZATION","DOCTOR_QUALIFICATION","UPDATE_SETTINGS","APPOINTMENT_COMPLETED_DATA","APPOINTMENT_INSERTED_SUCCESS","APPOINTMENT_UPCOMING_DATA","DEPARTMENT_MASTER","STATE_MASTER","OPT_NOTES","DOCTOR_SEARCH_ARRAY","DOCTOR_SEARCH_DATA","PATIENT_COMPLETED_DATA","PATIENTLIST_COMPLETED_VACC_DATA","PATIENT_OLDCOMPLETED_DATA","PATIENT_COMPLETED_VACC_DATA","EXCEL_COMPLETE_DATA","EXCELVACCINE_COMPLETE_DATA","PATIENT_COMPLETED_COUNT","PATIENT_COMPLETED_OLDCOUNT","PATIENT_COMPLETED_VACC_COUNT","PATIENT_FILTER_COUNT","PATIENT_FILTER_VACC_COUNT","PATIENT_VACC_FILTER_COUNT","PATIENTOLD_FILTER_COUNT","PATIENTLIST_COMPLETED_DATA","PATIENTOLDLIST_COMPLETED_DATA","PATIENTLIST_COMPLETED_COUNT","PATIENTOLDLIST_COMPLETED_COUNT","PATIENT_SEARCH","PATIENT_OLDERX_SEARCH","PATIENT_VACC_SEARCH","DISEASE_SEARCH","FORGOT_PASWD_SUCCESS","OTP_TIME","FORGOT_PASWD_ERROR","PATIENT_SIGNUP","OTP_SUCCESS","MOBILE_OTP_SUCCESS","OTP_ERROR","OTP_SIGNUP_ERROR","SIGNIN_ERROR","OTP_UPDTE_ERROR","OTP_UPDTE_SUCCESS","DOCTOR_APPROVE_STATUS","DOCTOR_PROFILE","SAVE_PROFILES","HOSPITAL_SEARCH_DATA","SAVE_PREFERENCES","ERX_OPERATOR_NOTES","resulttitle","bloodsugarList","CHANGE_MOBILENO_RES","PATIENT_COMPLETED_PATIENT_NAME","ERX_DATA_HTML","WORD_PREVIEW_CLIENT","ERX_DATA_HTML_NO_DATA","INVESTIGATION_CATEGORY_DATA","REPORT_DETAILS","SEARCH_REPORTS_DATA","TAG_CATEGORY_DATA","PATIENT_LISTS","SEARCH_PATIENT_DATA","SEARCH_PATIENT_OLDDATA","SEARCH_DISEASE_DATA","TODAY_APPOINTMENT_DATA","SEARCH_SYMPTOMS_DATA","SEARCH_PROCEDURE_DATA","PASSWORD_REQUEST_TAG","SETPASS_DOCID","SETPASS_MOB","APPOINTMENT_BOOKED_TIMING","SEARCH_MRD_RES","MRD_API_RES","GET_REQ_LIST","BACKUP_BLOB_LIST","GET_REQ_COUNT","GET_PEND_COUNT","VALIDATION_MRD_RES","ONLINE_OFFLINE_STATUS","RESET_STATE","resetState","type","crypto","require","useAuthToken","dispatch","useDispatch","useState","loading","setLoading","user","useSelector","auth","useEffect","decryptpassword","data","decipher","createDecipher","dec","update","final","urlParams","URLSearchParams","window","location","search","href","size","encryptedParam","get","console","log","decryptedData","JSON","parse","Object","values","length","localStorage","clear","doctorParam","setItem","stringify","onJwtSignIn","mobileNbr","mobileNo","paswd","validateAuth","a","fetchStart","getItem","token","fetchSuccess","setJWTToken","body1","jwtToken","jwtAxios","post","then","res","response","body","clientList","generateWordClient","locArr","map","item","clientID","id","Number","push","payload","mappedDoctor","mappedDoctors","split","doctorCode","toString","authType","AuthType","JWT_AUTH","displayName","docname","email","role","doctorCategory","doctorstatus","settings","doctorcategory","logo","doctorProfile","roleId","uniqueDocID","qrCode","transDate","mrdDrCheck","mrdDrcat","catch","error","Promise","all","resolve","firebaseAuth","onAuthStateChanged","authUser","FIREBASE","uid","defaultUser","photoURL","refreshToken","awsAuth","currentAuthenticatedUser","AWS_COGNITO","username","attributes","name","signInUserSession","accessToken","Hub","listen","event","onGetLoggedInCognitoUser","useAuthUser","ThemeStyle","MODERN","STANDARD","ThemeStyleRadius","ThemeMode","LIGHT","SEMI_DARK","DARK","LayoutType","FULL_WIDTH","BOXED","NavStyle","HOR_LIGHT_NAV","FooterType","FIXED","FLUID","HeaderType","RouteTransition","NONE","FADE","SLIDE_LEFT","SLIDE_RIGHT","SLIDE_UP","SLIDE_DOWN","Fonts","REGULAR","MEDIUM","BOLD","EXTRA_BOLD","FONT_BOLD","AUTH0","axios","create","baseURL","headers","validateStatus","status","interceptors","use","err","msg","reject","setAuthToken","defaults","common","removeItem","Scrollbar","React","forwardRef","props","ref","children","scrollToTop","history","match","className","staticContext","others","_scrollBarRef","pathname","useLocation","_container","scrollTop","withRouter","defaultProps","injectIntl","Boolean","hostname","initialSettings","navCollapsed","initialPath","settingsReducer","state","action","INIT_STATE","isAppDrawerOpen","updatingContent","message","commonReducer","initialState","healthCare","dashboardPendingList","pendingCount","dashboardPendingPatientData","patientsuccessmsg","erxsuccessmsg","rejecterxsuccessmsg","erxmedicinesuccessmsg","dashboarderxData","erximgdatas","appointmentcompleteddata","appointmentInsertSuccess","appointmentupcomingdata","erximgocrdataoriginal","erximgocrvaccoriginal","erxlistimgocrdataoriginal","dashboarderxDetails","dashboarderxDocobsv","dashboarderxLabobsv","today_appointment_data","dashboarderxPatientVital","dashboarderxDocProcedure","dashboarderxmedicinedetail","dashboardgrxmedicinedetail","doctorDetails","bucketcaptcha","dashboardinsertprescriptions","inprogresCount","dashboardInprogressList","dashboardRejectList","dashboardRejectcountList","doctorsuccessmsg","doctorupdatemsg","rejectsuccessmsg","dashboardCompletedList","dashboardCompletedcountList","unitdata","deletemedicinesuccessmsg","doctoridname","specializations","subspecializations","qualifications","departmentMaster","stateMaster","optNotes","doctorSearchDatas","searchableDoctor","erxOperatorNotes","changemobilenores","investigationCategoryData","investigationDiseaseData","reportDetails","searchReportsData","tagCategoryData","tagDiseaseData","patientListdata","dashboardReducer","erxlistimgocrvaccoriginal","search_patient_data","search_patient_olddata","search_disease_data","search_symptom_data","procedureData","appointment_Booked","users","deleteuserdata","editloaddata","resetpaswd","userManagementReducer","mobileno","signupstatus","otpsuccess","otperror","otpsignuperror","signinerror","otpupdateerror","otpupdatesuccess","mobileotpsuccess","passwordReqTag","setpassDocId","setpassMobile","authReducer","patientlist","exceldata","vaccineExceldata","patientcount","patientvacccount","patientoldcount","patientfiltercount","patientvaccfiltercount","patientfiltervacccount","patientsearch","patientolderxsearch","patientvaccsearch","diseasesearch","forgotpaswdsuccess","forgotpaswderror","doctorApprovedStatus","patientnames","erxhtmldata","erxhtmlnodata","otp_time","patientVacclist","word_Preview_Client","list_patient_data","list_patient_olddata","list_patient_vaccdata","list_patient_count","list_patient_oldcount","age_vaccine_list","patientReducer","patientoldfiltercount","specializationMaster","subSpecializationMaster","qualificationMaster","profileDatas","saveProfile","savepreferences","updatesettings","searchableHospital","profileReducer","searchMrdRes","MrdReqValidation","mrdApiRes","getReqList","backupBlobList","getReqCount","getPendCount","mrdUserReducer","reducers","undefined","combineReducers","router","connectRouter","Settings","Auth","dashboard","Dashboard","userManage","UserManageData","Common","patient","Patient","profile","mrdDr","createBrowserHistory","routeMiddleware","routerMiddleware","middlewares","thunk","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","store","createStore","applyMiddleware","currentState","getState","subscribe","previousState","configureStore","App","ContextProvider","CremaThemeProvider","CremaStyleProvider","LocaleProvider","AuthRoutes","CssBaseline","AppLayout","delayResponse","Amplify","configure","aws_project_region","aws_cognito_identity_pool_id","aws_cognito_region","aws_user_pools_id","aws_user_pools_web_client_id","oauth","domain","scope","redirectSignIn","redirectSignOut","responseType","federationTarget","healthCareData","salesState","category","bgColor","time","icon","heathStatics","dataOne","month","number","dataTwo","dataThree","newPatients","cancelVisits","topDoctors","speciality","profile_pic","rating","scheduled","upcomingAppointment","appointmentTime","appointmentDate","notifications","title","color","hospitalStatics","value","recentPatients","gender","weight","assignedDr","date","hospitalActivity","Consultations","Patients","bloodCard","measurement","appointmentCards","chartValue","chartTime","chartData","heartCard","unit","graphData","rate","temperatureCard","doses","yourActivity","day","visits","mock","onGet","reply","userManagementList","image","skills","information","phone","website","charge","readTime","shares","retweets","topic","onAny","passThrough","ReactDOM","render","document","getElementById","navigator","serviceWorker","ready","registration","unregister","firebase","initializeApp","apiKey","authDomain","databaseURL","projectId","storageBucket","messagingSenderId","appId","measurementId","GoogleAuthProvider","GithubAuthProvider","FacebookAuthProvider","TwitterAuthProvider","createContext","authRole","admin","adminRoles","dashboardRoles","premiumRole","appointmentRoles","mrdRole","mrdName","initialUrl","initUrlProfile","MobileRegExp","digitRegExp","allowDouble","AvoidSpecialCharacterRegExp","AvoidSpecialCharacterMailRegExp","AvoidSpecialCharacterDrname","AvoidSpecialCharacterAddressRegExp","AvoidSearchpatientRegExp","MailRegExp","AvoidSpecialCharacterhospitalRegExp","nameRegExpdot","passwordRegExp","version","all_prescription_Type","Id","dispId","default_prescription_Type","appointmentTimeSlots","disabled","clientPortalURL","Auth0Config","createAuth0Client","client_id","redirect_uri","audience","streamname","filename","onGetOtpfunction","includes","onWriteCloudWatchLog","fetchError","GetmobilenoeditOtp","GetemaileditOtp","onGetUpdateOtpfunction","onGetForgotpaswdOtpfunction","err_text","hasOwnProperty","call","setMobileNbr","setPaswd","loadJWTUser","trim","onJWTAuthSignout","setTimeout","reload","IntlMessages","passwordSetLogout","tag","doctorId","sessionStorage","onSignOutAuth0User","logout","onGetSpecialization","specialization","subspecialization","deptList","quaList","stateList","onGetSearchHospital","ongetEncryptbucketcaptcha","data1","accessKey","secretAccessKey","bucketName","region","filePath","captchaKey","onGetPendingPatInfn","userId","patId","userCode","erxid","bodytoken","getdata","onGeteRxInfn","erxReqId","erxImageOCR","imgurl","imgocr","i","url","erxUrl","ocrdata","ocrData","extension","urlExtension","rownumber","rxdtls","DocID","DocName","docName","RegisterNo","registerno","EmailId","docobsv","labobsv","patientvital","docprocedure","medicinedtls","arraydata","e","saltName","medName","mn","af","an","en","nt","uomId","unitcode","quantity","dosage","refferal","referral","route","advice","duration","frequency","seqno","txnNo","genericmedicinedtls","arraydatageneric","refferalHindi","referralHindi","patientId","onGetDoctorInfo","erxId","onGeteRxNotes","onChangeMobileNo","onChangeemailid","onDeleteMedicineDetails","onGetUnits","onUpdatePatientDetails","onGetInvestigationCategory","onGettodayAppointment","todayAppointment","onGeSearchDiseaseData","onGeSearchSymptomsData","onGeSearchProcedureData","onGeSearchPatientData","onGeSearchPatientOldData","onGeteRxReports","reports","reportdata","reportTagId","reportCategory","reportTag","storeOnlineOfflineStatus","onresetPassword","oldpaswd","newpaswd","getuserdata","onSignOutFirebaseUser","signOut","getUserObject","onCognitoUserSignOut","toggleNavCollapsed","setInitialPath","onGetPatientCompletedList","symptoms","procedure","fromDate","toDate","pName","limit","offset","disease","process","prescriptionType","careTakerName","totalcount","filterCount","getdata1","patientNames","onGetOldPatientCompletedList","onGetPatientCompletedVaccList","onForgetPassword","otp","isNumber","setpassword","GenerateERXHTML","onGetTime","description","onGetVaccinationDetails","onGetDoctorMaster","updateDoctorProfile","updateDoctorPreferences","onGetDoctorData","onGetStatemaster","updateDoctorSettings","onGetAppointments","completedData","upcomingData","onSaveAppointments","getAvailableTimeForAppointment","bookingTime","getMrdRequestValidation","pdata","getSearchMrdlist","list","submitMrdRequest","passData","getRequestList","count","pendcount","insertDrAction","memo","useContext","AppContext","theme","isRTL","updateThemeMode","changeNavStyle","updateThemeStyle","setRTL","updateTheme","locale","muiLocale","AppLocale","useUrlSearchParams","params","theme_mode","is_rtl","setAttribute","nav_style","theme_style","isBreakPointDown","overrides","MuiCard","root","borderRadius","MuiToggleButton","MuiButton","MuiCardLg","responsiveFontSizes","createMuiTheme","utils","MomentUtils","jss","plugins","jssPreset","rtl","currentAppLocale","messages","useHistory","routes","currentRoute","matchRoutes","setfromclient","isPermitted","checkPermission","addEventListener","opener","postMessage","handleMessage","origin","pushdata","onlineStatus","loginType","removeEventListener","indexOf","setInitPath","query","qs","layout","mode","style","handleQueryParams","useStyles","makeStyles","minHeight","backgroundColor","palette","primary","main","pointerEvents","padding","textDecoration","HorizontalItem","classes","dense","active","isUrlInChildren","parent","ListItem","component","NavLink","to","activeClassName","clsx","exact","Box","fontSize","xs","xl","mr","clone","Icon","ListItemText","messageId","ml","button","text","secondary","contrastText","popper","zIndex","popperClose","fontsSize","marginRight","pl0","paddingLeft","HorizontalCollapse","opened","setOpened","nestedLevel","handleToggle","open","Manager","Reference","onMouseEnter","onMouseLeave","aria-owns","aria-haspopup","p","IconButton","disableRipple","direction","Popper","placement","eventsEnabled","positionFixed","arrowProps","boxShadow","data-placement","Grow","in","transformOrigin","Paper","Fragment","key","querySelector","height","background","fontBold","fontWeight","ml2","marginLeft","textLg","HorizontalGroup","HorizontalSingle","routesConfig","HorizontalNav","LoginUser","List","my","Divider","headerMain","position","paddingRight","paper","breakpoints","up","borderLeft","grey","headerMainFlex","display","alignItems","headerContainer","width","maxWidth","menuButton","spacing","grow","flexGrow","sectionDesktop","sectionMobile","headerNav","down","flexDirection","cursor","marginBottom","menuItemRoot","pointer","menuIconRoot","logoRoot","ChangePasswordPopup","onDeny","formControl","margin","minWidth","dialogStyle","fontStyle","FONTSTYLE","dialogHeader","borderBottom","dialogheadStyle","dialogTitle","TableHeader","textField","marginTop","container","flexWrap","btnStyles","textAlign","closeBtn","closeBtnColor","btn","savebtn","contentText","userRoot","float","useStyle","resetpaswdsuccess","getsnackbaropen","setsnackbarOpen","erroroldpaswdtxt","setErroroldpaswdtxt","errorconfirmpaswdtxt","setErrorconfirmpaswdtxt","errornewpaswdtxt","setErrornewpaswdtxt","password","newpassword","confirmpassword","errorValues","setErrorValues","showPassword","showPassword1","showPassword2","setValues","resetUserPassword","test","handleMouseDownPassword","preventDefault","Dialog","disableBackdropClick","ToasterMsg","snackbaropen","variantdata","msgdata","Grid","sm","md","onClick","TextField","required","pwd","onChange","target","label","onBlur","inputProps","minLength","maxLength","InputProps","endAdornment","InputAdornment","edge","aria-label","onMouseDown","helperText","pt","Button","variant","rootdialog","closeButton","right","top","dialogwidth","btnblue","btnred","dialogactionsclass","ConfirmationDialog","opendialog","userid","DialogContent","withStyles","MuiDialogContent","DialogActions","MuiDialogActions","DialogTitle","disableTypography","Typography","onClose","aria-labelledby","gutterBottom","justifyContent","avatar","orange","autowidht","border","userInfo","userName","overflow","textOverflow","whiteSpace","bgType","outerBox","left","offlineStatus","HorUserInfo","changePassword","setChangePasswordPopup","themeMode","openpopup","setopenpopup","anchorEl","setAnchorEl","getStatus","setgetStatus","onlineshow","onlinehide","offlineshow","offlinehide","statusChange","handleClose","statusChanges","val","py","pl","currentTarget","Avatar","src","Hidden","mdDown","Menu","keepMounted","MenuItem","AppLogo","goToDashboard","smUp","alt","xsDown","AppHeader","mobileMoreAnchorEl","AppBar","Toolbar","appMain","default","paddingBottom","borderTop","borderTopColor","mainContent","flex","mainContainer","boxedLayout","AppFooter","footer","footerType","btnRoot","AppFixedFooter","bottom","crUserInfo","paddingTop","profilePic","designation","UserInfo","px","charAt","toUpperCase","mb","navItem","level","textTransform","transition","white","sidebar","textColor","listIcon","listItemText","VerticalItem","useMemo","needsToBeOpened","VerticalCollapse","setOpen","Collapse","VerticalNavGroup","NavVerticalGroup","Navigation","drawerContainer","maxHeight","sidebarBg","drawerScrollAppSidebar","AppSidebar","lgUp","Drawer","anchor","ev","Notification","setShowNotification","isVisible","setIsVisible","HorDefault","layoutType","showNotification","setMsg","formatDate","moment","isValid","d","Date","getMonth","getDate","year","getFullYear","join","updateScroll","getFromDate","getToDate","Alert","pendCount","setInterval","appMainFooter","appMainFixedFooter","Layouts","H_DEFAULT","transform","fade","black","appAuth","backgroundSize","backgroundImage","navStyle","createBreakpoints","cardRadius","defaultConfig","gray","50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700","hint","danger","divider","typography","fontFamily","MuiTypography","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body2","themeStyle","headerType","rtAnim","languageId","rtlLocale","ThemeSetting","contextReducer","headerMode","sidebarColor","ContextState","useReducer","useCallback","Provider","updateLayoutStyle","updateSidebarColor","setFooter","setFooterType","updateHeaderMode","updatePrimaryColor","updateSecondaryColor","changeLocale","changeRTAnim","AppAnimate","cloneElement","visibility","animation","runOnMount","targetQuerySelector","interruptBehavior","delay","easing","setRef","EnLang","enMessages","enUS","ZhLan","zhMessages","zhCN","saLang","saMessages","itIT","esES","enLang","zh","zhLang","ar","arLang","it","itLang","es","esLang","fr","frFR","dashBoardConfigs","path","lazy","appointmentConfig","authRouteConfig","eRxDetailsConfigs","mrdTabConfigs","routeConfigs","createRoutes","winston","WinstonCloudWatch","AWS","ACCESSKEY","streamName","functionname","usercode","getdate","config","accessKeyId","add","logGroupName","logStreamName","awsRegion","awsAccessKeyId","awsSecretKeyId","SnackbarMsg","MySnackbarContentWrapper","useStyles1","other","variantIcon","aria-describedby","iconVariant","success","CheckCircleIcon","warning","WarningIcon","ErrorIcon","info","InfoIcon","green","dark","amber","opacity","reason","anchorOrigin","vertical","horizontal","autoHideDuration","InfoView","highlightTheme","plain","styles","types","cardHeader","cardContent","preTag","ComponentCard","Component","source","viewSource","Card","CardContent","code","language","tokens","getLineProps","getTokenProps","line","innerWidth","allRoutes","forEach","setRoutes","IntlGlobalProvider","useIntl","routeAuth","userRole","userCat","Array","isArray","some","r","Loader","CircularProgress","AppSuspense","Suspense","fallback","loadingProps","Badge","bgcolor","AppNavLink","innerRef","ComponentHeader","refUrl","containerHeader","linkIcon","textbase","pr","cpSwatch","cpColor","cpPopover","customizerOption","customizerButton","rightSidebar","rightSidebarHeader","rightSidebarMain","customizerItem","colorRow","navOption","navOptionItem","navOptionContent","navOptionRightIcon","selectBox","toggleBtn","borderColor","colorOptionList","listStyle","wFull","textWhite","mb5","colorOption","colorOptionTriangle","colorOptionBorder","colorOptionRightIcon","textBase","red","AppSnackbar","Snackbar","SnackbarContent","AppErrorBoundary","hasError","errorInfo","this","mt","TransitionWrapper","currentKey","TransitionGroup","appear","enter","exit","CSSTransition","timeout","classNames","ContentView","idleTimer","useRef","showModal","userLoggedIn","isTimedOut","idletime","setIdleTime","element","onActive","onIdle","current","reset","onAction","debounce","renderRoutes"],"mappings":"8FAAA,qyJACO,IAAMA,EAAc,cACdC,EAAgB,gBAChBC,EAAc,cACdC,EAAe,eACfC,EAAe,eACfC,EAAoB,oBACpBC,EAAmB,mBAGnBC,EAAuB,uBACvBC,EAAmB,mBAGnBC,EAAmB,mBACnBC,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AYhM,GACZ,kBAAC,KAAD,CAAQjmC,SAAUA,GAAWqJ,MA2EtB6oC,GAlEK,WAClB,IAAMrzC,EAAWC,eACXI,EAAO+G,eACPksC,EAAYC,mBAHM,EAIQnpC,IAAMlK,SAAS,CAC7CizC,QAAS,MACTK,WAAW,EACXC,cAAc,EACdC,YAAY,IARU,mBAIjBC,EAJiB,KAIPC,EAJO,KAuCxB,OACE,kBAACzpC,EAAA,EAAD,KACE,kBAACimB,EAAA,EAAD,CACE2E,QAAQ,OACRkL,KAAM,EACNrK,cAAc,SACdhrB,UAAU,qBACV,kBAAC,EAAD,KACE,kBAAC,GAAD,KACE,kBAAC,KAAD,CACEL,IAAK+oC,EACLO,QAAS53B,SACT63B,SApCK,SAACzvB,GAEhBuvB,EAAY,2BAAID,GAAL,IAAeD,YAAY,MAmC5BK,OAhCG,SAAC1vB,GAEd,GAAIsvB,EAASD,YAGX,GAAIrzC,GAAQA,EAAKmE,WAAaC,IAASC,SAAU,CAC/C,IAAIupB,EAAW,CACb5L,OAAQhiB,EAAK0D,GACbwe,SAAUliB,EAAKiE,WACf4pB,aAAc,SACdC,UAAW,UAEbnuB,EAAS2gB,aAAiBsN,UAG5BqlB,EAAUU,QAAQC,QAClBL,EAAY,2BAAID,GAAL,IAAeD,YAAY,MAiB9BQ,SA1CK,SAAC7vB,GAChBuvB,EAAY,2BAAID,GAAL,IAAeD,YAAY,MA0C5BS,SAAU,IACVhB,QAASQ,EAASR,UAEpB,kBAAC,GAAD,KAAoBiB,YAAa9mB,UAIvC,kBAAC,GAAD,Q","file":"static/js/main.5d57f941.chunk.js","sourcesContent":["//API\nexport const FETCH_START = 'fetch_start';\nexport const FETCH_SUCCESS = 'fetch_success';\nexport const FETCH_ERROR = 'fetch_error';\nexport const SHOW_MESSAGE = 'show_message';\nexport const HIDE_MESSAGE = 'hide_message';\nexport const TOGGLE_APP_DRAWER = 'toggle_app_drawer';\nexport const UPDATING_CONTENT = 'updating_content';\n\n//APP SETTING\nexport const TOGGLE_NAV_COLLAPSED = 'toggle_nav_collapsed';\nexport const SET_INITIAL_PATH = 'set_initial_path';\n\n//AUTH0\nexport const UPDATE_AUTH_USER = 'update_auth_user';\nexport const SET_AUTH_TOKEN = 'set_auth_token';\nexport const SET_MOBILENO = 'set_mobileno';\nexport const SET_PASWD = 'set_paswd';\nexport const SIGNOUT_AUTH_SUCCESS = 'signout_auth_success';\n\n//ANALYTICS-DASHBOARD\nexport const GET_ANALYTICS_DATA = 'get_analytics_data';\n\n//ECOMMERCE-DASHBOARD\nexport const GET_ECOMMERCE_DATA = 'get_ecommerce_data';\n\n//ACADEMY-DASHBOARD\nexport const GET_ACADEMY_DATA = 'get_academy_data';\n\n//CRM-DASHBOARD\nexport const GET_CRM_DATA = 'get_crm_data';\n\n//CRYPTO-DASHBOARD\nexport const GET_CRYPTO_DATA = 'get_crypto_data';\n\n//CRYPTO-DASHBOARD\nexport const GET_HC_DATA = 'get_hc_data';\n\n//USER MANAGEMENT\nexport const GET_USERMANAGE_DATA = 'get_usermanage_data';\nexport const GET_GUDMEDSUCCESS_DATA = 'get_gudmedsuccess_data';\nexport const GET_GUDMED_USER = 'get_gudmed_user';\nexport const RESET_USER_PASWD = 'reset_user_paswd';\n\n//METRICS-DASHBOARD\nexport const GET_METRICS_DATA = 'get_metrics_data';\n\n//WIDGETS_DASHBOARD\nexport const GET_WIDGETS_DATA = 'get_widgets_data';\n\n//MAIL-APP\nexport const GET_MAIL_LIST = 'get_mail_list';\nexport const GET_FOLDER_LIST = 'get_folder_list';\nexport const GET_LABEL_LIST = 'get_label_list';\nexport const TOGGLE_MAIL_DRAWER = 'toggle_mail_drawer';\nexport const COMPOSE_MAIL = 'compose_mail';\nexport const GET_MAIL_DETAIL = 'get_mail_detail';\nexport const UPDATE_MAIL_FOLDER = 'update_mail_folders';\nexport const UPDATE_MAIL_LABEL = 'update_mail_label';\nexport const UPDATE_STARRED_STATUS = 'update_starred_status';\nexport const UPDATED_MAIL_DETAIL = 'updated_mail_detail';\nexport const CHANGE_READ_STATUS = 'change_read_status';\nexport const GET_CONNECTION_LIST = 'get_connection_list';\nexport const NULLIFY_MAIL = 'nullify_mail';\n\n//TODO-APP\nexport const GET_TASK_LIST = 'get_task_list';\nexport const CREATE_NEW_TASK = 'create_new_task';\nexport const TOGGLE_TODO_DRAWER = 'toggle_todo_drawer';\nexport const GET_TODO_FOLDER_LIST = 'GET_TODO_FOLDER_LIST';\nexport const GET_TODO_LABEL_LIST = 'GET_TODO_LABEL_LIST';\nexport const GET_TODO_STATUS_LIST = 'GET_TODO_STATUS_LIST';\nexport const GET_TODO_PRIORITY_LIST = 'GET_TODO_PRIORITY_LIST';\nexport const UPDATE_TASK_FOLDER = 'UPDATE_TASK_FOLDER';\nexport const UPDATE_TASK_LABEL = 'UPDATE_TASK_LABEL';\nexport const UPDATE_TASK_STARRED_STATUS = 'UPDATE_TASK_STARRED_STATUS';\nexport const GET_TASK_DETAIL = 'GET_TASK_DETAIL';\nexport const UPDATE_TASK_DETAIL = 'UPDATE_TASK_DETAIL';\nexport const GET_TODO_STAFF_LIST = 'GET_TODO_STAFF_LIST';\n\n//CONTACT_APP\nexport const GET_CONTACT_LIST = 'GET_CONTACT_LIST';\nexport const GET_CONTACT_FOLDER_LIST = 'GET_CONTACT_FOLDER_LIST';\nexport const GET_CONTACT_LABEL_LIST = 'GET_CONTACT_LABEL_LIST';\nexport const DELETE_CONTACT = 'DELETE_CONTACT';\nexport const UPDATE_CONTACT_LABEL = 'UPDATE_CONTACT_LABEL';\nexport const UPDATE_CONTACT_STARRED_STATUS = 'UPDATE_CONTACT_STARRED_STATUS';\nexport const GET_CONTACT_DETAIL = 'GET_CONTACT_DETAIL';\nexport const TOGGLE_CONTACT_DRAWER = 'TOGGLE_CONTACT_DRAWER';\nexport const UPDATE_CONTACT_DETAIL = 'UPDATE_CONTACT_DETAIL';\nexport const CREATE_NEW_CONTACT = 'CREATE_NEW_CONTACT';\n\n//SCRUMBOARD_APP\nexport const GET_MEMBER_LIST = 'GET_MEMBER_LIST';\nexport const GET_SCRUM_LABEL_LIST = 'GET_SCRUM_LABEL_LIST';\nexport const GET_BOARDS = 'GET_BOARDS';\nexport const GET_BOARD_DETAIL = 'GET_BOARD_DETAIL';\nexport const ADD_BOARD_LIST = 'ADD_BOARD_LIST';\nexport const ADD_LIST_CARD = 'ADD_LIST_CARD';\nexport const EDIT_LIST_CARD = 'EDIT_LIST_CARD';\nexport const DELETE_LIST_CARD = 'DELETE_LIST_CARD';\nexport const DELETE_BOARD = 'DELETE_BOARD';\nexport const ADD_NEW_BOARD = 'ADD_NEW_BOARD';\nexport const DELETE_LIST = 'DELETE_LIST';\nexport const EDIT_BOARD_DETAIL = 'EDIT_BOARD_DETAIL';\nexport const EDIT_BOARD_LIST = 'EDIT_BOARD_LIST';\n\n//CHAT_APP\nexport const GET_CONNECTIONS_LIST = 'get_connections_list';\nexport const GET_USER_MESSAGES = 'get_user_messages';\nexport const ADD_NEW_MESSAGE = 'add_new_message';\nexport const EDIT_MESSAGE = 'edit_message';\nexport const DELETE_MESSAGE = 'delete_message';\nexport const DELETE_USER_MESSAGES = 'delete_user_messages';\nexport const TOGGLE_CHAT_DRAWER = 'toggle_chat_drawer';\nexport const SELECT_USER = 'select_user';\n\n//WALL_APP\nexport const GET_WALL_DATA = 'get_wall_data';\nexport const GET_FEED_POSTS = 'get_feed_posts';\nexport const CREATE_NEW_POST = 'create_new_post';\nexport const UPDATE_POST = 'update_post';\n\n//USER_LIST\nexport const GET_USER_LIST = 'GET_USER_LIST';\n\n//ECOMMERCE_LIST\nexport const GET_ECOMMERCE_LIST = 'get_ecommerce_list';\nexport const SET_PRODUCT_VIEW_TYPE = 'set_product_view_type';\nexport const SET_FILTER_DATA = 'set_filter_data';\nexport const SET_PRODUCT_DATA = 'set_product_data';\nexport const GET_RECENT_ORDER = 'get_recent_order';\nexport const GET_CUSTOMERS = 'get_customers';\nexport const ADD_CART_ITEM = 'add_cart_item';\nexport const REMOVE_CART_ITEM = 'remove_cart_item';\nexport const UPDATE_CART_ITEM = 'update_cart_item';\nexport const SET_CART_ITEMS = 'set_cart_items';\n\n//CK-EDITOR\nexport const GET_BALLOON_BLOCK_DATA = 'get_balloon_block_data';\nexport const UPDATE_BALLOON_BLOCK_DATA = 'update_balloon_block_data';\nexport const GET_BALLOON_DATA = 'get_balloon_data';\nexport const UPDATE_BALLOON_DATA = 'update_balloon_data';\nexport const GET_CLASSIC_DATA = 'get_classic_data';\nexport const UPDATE_CLASSIC_DATA = 'update_classic_data';\nexport const GET_INLINE_DATA = 'get_inline_data';\nexport const UPDATE_INLINE_DATA = 'update_inline_data';\nexport const GET_DOCUMENT_DATA = 'get_document_data';\nexport const UPDATE_DOCUMENT_DATA = 'update_document_data';\nexport const GET_CUSTOM_DATA = 'get_custom_data';\nexport const UPDATE_CUSTOM_DATA = 'update_custom_data';\n\n//GALLERY\nexport const GET_GALLERY_PHOTO = 'get_gallery_photo';\n\n//Delete USER\nexport const DELETE_USER_DATA = 'delete_user_data';\n\n//Dashboard Data\nexport const DASHBOARD_PENDING_DATA = 'dashboard_pending_data';\nexport const DASHBOARD_PENDING_COUNT = 'dashboard_pending_count';\nexport const DASHBOARD_PENDING_PATIENT_DATA = 'dashboard_pending_patient_data';\nexport const PATIENT_SUCCESS_MSG = 'patient_success_msg';\nexport const ERX_SUCCESS_MSG = 'erx_success_msg';\nexport const REJECT_ERX_SUCCESS_MSG = 'reject_erx_success_msg';\nexport const MEDICINE_SUCCESS_MSG = 'medicine_success_msg';\nexport const REJECT_ERX_MSG = 'rehject_erx_msg';\nexport const DASHBOARD_ERX_DATA = 'dashboard_erx_data';\nexport const ERX_IMG_ARR = 'erx_img_arr';\nexport const AGE_VACCINATION_LIST = 'age_vaccine_list';\nexport const ERX_IMG_VACC_ARR = 'erx_img_vacc_arr';\nexport const ERX_IMG_OCR_ARR = 'erx_img_ocr_arr';\nexport const ERX_IMG_VACC_OCR_ARR = 'erx_img_vacc_ocr_arr';\nexport const ERXLIST_IMG_ARR = 'erxlist_img_arr';\nexport const ERXLIST_IMG_OCR_ARR = 'erxlist_img_ocr_arr';\n\nexport const DASHBOARD_RX_DETAILS = 'dashboard_rx_details';\nexport const DASHBOARD_ERX_DOC_OBSV = 'dashboard_erx_doc_obsv';\nexport const DASHBOARD_ERX_LAB_OBSV = 'dashboard_erx_lab_obsv';\nexport const DASHBOARD_ERX_PATIENT_VITAL = 'dashboard_erx_patient_vital';\nexport const DASHBOARD_ERX_DOCPROCEDURE = 'dashboard_erx_docprocedure';\nexport const DASHBOARD_ERX_MEDICINE_DETAIL = 'dashboard_erx_medicine_detail';\nexport const DASHBOARD_GRX_MEDICINE_DETAIL = 'DASHBOARD_GRX_MEDICINE_DETAIL';\n\nexport const DASHBOARD_INSERT_PRESCRIPTION = 'dashboard_insert_prescription';\nexport const DASHBOARD_INPROGRESSS_DATA = 'dashboard_inprogress_data';\nexport const DASHBOARD_REJECT_DATA = 'dashboard_reject_data';\nexport const DASHBOARD_REJECT_COUNT = 'dashboard_reject_count';\nexport const DASHBOARD_COMPLETED_DATA = 'dashboard_completed_data';\nexport const DASHBOARD_COMPLETED_COUNT = 'dashboard_completed_count';\nexport const DASHBOARD_INPROGRESSS_COUNT = 'dashboard_inprogresss_count';\nexport const DELETE_MEDCINE_SUCCESS_MSG = 'delete_medicine_success_msg';\nexport const UNIT_DATA = 'unit_data';\n//doctor data\nexport const GET_DOCTOR_EDITDATA = 'get_doctor_editdata';\nexport const DOCTOR_SUCCESS_MSG = 'doctor_success_msg';\nexport const DOCTOR_UPDATE_MSG = 'doctor_update_msg';\nexport const SET_DOCTOR_ID_NAME = 'set_doctor_id_name';\nexport const BUCKET_CAPTCHA = 'BUCKET_CAPTCHA';\nexport const DOCTOR_SPECIALIZATION = 'doctor_specialization';\nexport const DOCTOR_SUBSPECIALIZATION = 'doctor_subspecialization';\nexport const DOCTOR_QUALIFICATION = 'doctor_qualification';\nexport const UPDATE_SETTINGS = 'update_settings';\nexport const APPOINTMENT_COMPLETED_DATA = 'APPOINTMENT_COMPLETED_DATA';\nexport const APPOINTMENT_INSERTED_SUCCESS = 'APPOINTMENT_INSERTED_SUCCESS';\nexport const APPOINTMENT_UPCOMING_DATA = 'APPOINTMENT_UPCOMING_DATA';\nexport const DEPARTMENT_MASTER = 'department_master';\nexport const STATE_MASTER = 'state_master';\nexport const OPT_NOTES = 'opt_notes';\nexport const EXIST_COUNT = 'exist_count';\nexport const DOCTOR_SEARCH_ARRAY = 'doctor_search_array';\nexport const DOCTOR_SEARCH_DATA = 'doctor_search_data';\n\nexport const PATIENT_COMPLETED_DATA = 'patient_completed_data';\nexport const PATIENTLIST_COMPLETED_VACC_DATA =\n 'patientlist_completed_vacc_data';\nexport const PATIENT_OLDCOMPLETED_DATA = 'patient_oldcompleted_data';\nexport const PATIENT_COMPLETED_VACC_DATA = 'patient_completed_vacc_data';\nexport const EXCEL_COMPLETE_DATA = 'EXCEL_COMPLETE_DATA';\nexport const EXCELVACCINE_COMPLETE_DATA = 'EXCELVACCINE_COMPLETE_DATA';\nexport const PATIENT_COMPLETED_COUNT = 'patient_completed_count';\nexport const PATIENT_COMPLETED_OLDCOUNT = 'patient_completed_oldcount';\nexport const PATIENT_COMPLETED_VACC_COUNT = 'patient_completed_vacc_count';\nexport const PATIENT_FILTER_COUNT = 'patient_filter_count';\nexport const PATIENT_FILTER_VACC_COUNT = 'patient_filter_vacc_count';\nexport const PATIENT_VACC_FILTER_COUNT = 'patient_vacc_filter_count';\nexport const PATIENTOLD_FILTER_COUNT = 'patientold_filter_count';\nexport const PATIENTLIST_COMPLETED_DATA = 'patientlist_completed_data';\nexport const PATIENTOLDLIST_COMPLETED_DATA = 'patientoldlist_completed_data';\nexport const PATIENTLIST_COMPLETED_COUNT = 'patientlist_completed_count';\nexport const PATIENTOLDLIST_COMPLETED_COUNT = 'patientoldlist_completed_count';\nexport const PATIENT_SEARCH = 'PATIENT_SEARCH';\nexport const PATIENT_OLDERX_SEARCH = 'PATIENT_OLDERX_SEARCH';\nexport const PATIENT_VACC_SEARCH = 'PATIENT_VACC_SEARCH';\nexport const DISEASE_SEARCH = 'DISEASE_SEARCH';\nexport const FORGOT_PASWD_SUCCESS = 'forgot_paswd_success';\nexport const OTP_TIME = 'otp_time';\nexport const FORGOT_PASWD_ERROR = 'forgot_paswd_error';\n\nexport const PATIENT_SIGNUP = 'patient_signup';\nexport const OTP_SUCCESS = 'otp_success';\nexport const MOBILE_OTP_SUCCESS = 'mobile_otp_success';\nexport const OTP_ERROR = 'otp_error';\nexport const OTP_SIGNUP_ERROR = 'otp_signup_error';\nexport const SIGNIN_ERROR = 'signin_error';\nexport const OTP_UPDTE_ERROR = 'otp_update_error';\nexport const OTP_UPDTE_SUCCESS = 'OTP_UPDTE_SUCCESS';\nexport const DOCTOR_APPROVE_STATUS = 'doctor_approve_status';\n\n//my profile\n// export const STATE_MASTER='state_master';\nexport const DOCTOR_PROFILE = 'doctor_profile';\nexport const SAVE_PROFILES = 'save_profiles';\nexport const HOSPITAL_SEARCH_DATA = 'hospital_search_data';\nexport const SAVE_PREFERENCES = 'SAVE_PREFERENCES';\nexport const ERX_OPERATOR_NOTES = 'erx_operator_notes';\nexport const resulttitle = 'resulttitle';\nexport const bloodsugarList = 'bloodsugarList';\nexport const CHANGE_MOBILENO_RES = 'change_mobileno_res';\nexport const PATIENT_COMPLETED_PATIENT_NAME = 'patient_completed_patient_name';\nexport const ERX_DATA_HTML = 'ERX_DATA_HTML';\nexport const WORD_PREVIEW_CLIENT = 'WORD_PREVIEW_CLIENT';\nexport const ERX_DATA_HTML_NO_DATA = 'ERX_DATA_HTML_NO_DATA';\n\n//Report data\nexport const INVESTIGATION_CATEGORY_DATA = 'INVESTIGATION_CATEGORY_DATA';\nexport const INVESTIGATION_DISEASE_DATA = 'INVESTIGATION_DISEASE_DATA';\nexport const REPORT_DETAILS = 'REPORT_DETAILS';\nexport const SEARCH_REPORTS_DATA = 'SEARCH_REPORTS_DATA';\nexport const TAG_CATEGORY_DATA = 'TAG_CATEGORY_DATA';\nexport const TAG_DISEASE_DATA = 'TAG_DISEASE_DATA';\nexport const PATIENT_LISTS = 'PATIENT_LISTS';\n\n//Get search patient data\nexport const SEARCH_PATIENT_DATA = 'search_patient_data';\nexport const SEARCH_PATIENT_OLDDATA = 'search_patient_olddata';\nexport const SEARCH_DISEASE_DATA = 'search_disease_data';\nexport const TODAY_APPOINTMENT_DATA = 'TODAY_APPOINTMENT_DATA';\nexport const SEARCH_SYMPTOMS_DATA = 'search_symptoms_data';\nexport const SEARCH_PROCEDURE_DATA = 'SEARCH_PROCEDURE_DATA';\nexport const PASSWORD_REQUEST_TAG = 'PASSWORD_REQUEST_TAG';\nexport const SETPASS_DOCID = 'SETPASS_DOCID';\nexport const SETPASS_MOB = 'SETPASS_MOB';\n\n//appointment already booktime\nexport const APPOINTMENT_BOOKED_TIMING = 'APPOINTMENT_BOOKED_TIMING';\n\n//mrd user action types\nexport const SEARCH_MRD_RES = 'SEARCH_MRD_RES';\nexport const MRD_API_RES = 'MRD_API_RES';\nexport const GET_REQ_LIST = 'GET_REQ_LIST';\nexport const BACKUP_BLOB_LIST = 'BACKUP_BLOB_LIST';\nexport const GET_REQ_COUNT = 'GET_REQ_COUNT';\nexport const GET_PEND_COUNT = 'GET_PEND_COUNT';\nexport const VALIDATION_MRD_RES = 'VALIDATION_MRD_RES';\n\nexport const ONLINE_OFFLINE_STATUS = 'ONLINE_OFFLINE_STATUS';\nexport const RESET_STATE = 'RESET_STATE';\nexport const resetState = () => ({\n type: RESET_STATE,\n});\n","import {useDispatch, useSelector} from 'react-redux';\nimport {useEffect, useState} from 'react';\nimport {Auth as awsAuth, Hub} from 'aws-amplify';\nimport {\n UPDATE_AUTH_USER,\n SET_AUTH_TOKEN,\n WORD_PREVIEW_CLIENT,\n resetState,\n} from '../../shared/constants/ActionTypes';\nimport {auth as firebaseAuth} from '../services/auth/firebase/firebase';\nimport {\n fetchStart,\n fetchSuccess,\n onGetLoggedInCognitoUser,\n onJwtSignIn,\n} from '../../redux/actions';\nimport {AuthType} from '../../shared/constants/AppEnums';\nimport {defaultUser, clientPortalURL} from '../../shared/constants/AppConst';\nimport jwtAxios from '../services/auth/jwt-auth/jwt-api';\nconst crypto = require('crypto');\nvar algorithm = 'aes-256-ctr';\nvar password = 'd6F3Efeq';\n\nexport const useAuthToken = () => {\n const dispatch = useDispatch();\n const [loading, setLoading] = useState(true);\n\n const {user} = useSelector(({auth}) => auth);\n // const mobileNbr = useSelector(\n // ({auth}) => auth.mobileno,\n // );\n // const {paswd} = useSelector(({auth}) => paswd);\n // const {token} = useSelector(({auth}) => token);\n useEffect(() => {\n //Decrypt password\n const decryptpassword = function ({data}) {\n var decipher = crypto.createDecipher(algorithm, password);\n var dec = decipher.update(data, 'hex', 'utf8');\n dec += decipher.final('utf8');\n return dec;\n };\n // Get URL parameter from query string\n const urlParams = new URLSearchParams(window.location.search);\n const currentUrl = window.location.href;\n\n if (urlParams.size > 0) {\n const encryptedParam = urlParams.get('param'); // Get the encrypted 'param' from URL\n\n if (encryptedParam) {\n console.log('Encrypted data from URL:', encryptedParam);\n\n // Decrypt the URL parameter if it exists\n const decryptedData = decryptpassword({data: encryptedParam});\n\n if (decryptedData) {\n let data = JSON.parse(decryptedData);\n if (Object.values(data).length > 0) {\n localStorage.clear();\n\n dispatch(resetState());\n\n let paramValue = null;\n let doctorParam = null;\n\n // if (urlParams.size > 0) {\n if (Object.values(data).length > 0) {\n paramValue = data;\n\n doctorParam = paramValue;\n // sessionStorage.setItem('browserparam', JSON.stringify(doctorParam))\n localStorage.setItem('browserparam', JSON.stringify(doctorParam));\n }\n dispatch(\n onJwtSignIn({\n mobileNbr: doctorParam.mobileNo,\n paswd: decryptpassword({data: doctorParam.paswd}),\n }),\n );\n }\n }\n\n console.log('Decrypted data from URL:', decryptedData);\n\n // Optionally process the decrypted data here (e.g., update state or send to backend)\n localStorage.setItem('browserparam', JSON.stringify(decryptedData));\n }\n }\n }, []);\n\n useEffect(() => {\n const awsAuthUser = () =>\n new Promise((resolve) => {\n awsAuth\n .currentAuthenticatedUser()\n .then((user) => {\n resolve();\n if (user) {\n dispatch({\n type: UPDATE_AUTH_USER,\n payload: {\n authType: AuthType.AWS_COGNITO,\n uniqueDocID: user.uniqueDocID,\n uid: user.username,\n displayName: user.attributes.name,\n email: user.attributes.email,\n role: defaultUser.role,\n photoURL: user.photoURL,\n token: user.signInUserSession.accessToken.jwtToken,\n doctorcategory: user.doctorCategory,\n logo: user.doctorProfile,\n roleId: user.doctorCategory,\n qrCode: user.qrCode,\n mrdDrCheck: user.mrdDrCheck,\n mrdDrcat: user.mrdDrcat,\n },\n });\n }\n })\n .catch(function (error) {\n resolve();\n });\n return Promise.resolve();\n });\n\n const firebaseCheck = () =>\n new Promise((resolve) => {\n firebaseAuth.onAuthStateChanged((authUser) => {\n if (authUser) {\n dispatch({\n type: UPDATE_AUTH_USER,\n payload: {\n authType: AuthType.FIREBASE,\n uid: authUser.uid,\n displayName: authUser.displayName,\n email: authUser.email,\n role: defaultUser.role,\n photoURL: authUser.photoURL,\n token: authUser.refreshToken,\n doctorcategory: authUser.doctorCategory,\n logo: authUser.doctorProfile,\n roleId: authUser.doctorCategory,\n uniqueDocID: authUser.uniqueDocID,\n qrCode: authUser.qrCode,\n mrdDrCheck: authUser.mrdDrCheck,\n mrdDrcat: authUser.mrdDrcat,\n },\n });\n }\n resolve();\n });\n return Promise.resolve();\n });\n\n const validateAuth = async () => {\n dispatch(fetchStart());\n const chkbrowser = localStorage.getItem('browserparam');\n\n const token = localStorage.getItem('token');\n if (!token) {\n dispatch(fetchSuccess());\n return;\n }\n dispatch(setJWTToken(token));\n // const mobileNbr = localStorage.getItem('mobileNbr');\n // const paswd = localStorage.getItem('paswd');\n // const token='';\n // const body = {\"mobileNbr\":mobileNbr, \"paswd\":paswd};\n // if(mobileNbr){\n // try {\n // await jwtAxios\n // .post('v1/patMgmt/loginjwt', body)\n // .then((res) => {\n // if (res.data.hasOwnProperty.call(res.data, 'message')) {\n // } else {\n // // localStorage.setItem('token', res.data.body.token);\n // // localStorage.setItem('mobileNbr', mobileNbr);\n // // localStorage.setItem('paswd', paswd);\n // // token = localStorage.getItem('token');\n // dispatch(setJWTToken(res.data.body.token));\n // var body ={\"mobileNbr\":mobileNbr, \"paswd\":paswd,\"jwtToken\":res.data.body.token}\n // try {\n // jwtAxios\n // .post('v1/patMgmt/login', body)\n // .then((res) => {\n // dispatch(fetchSuccess());\n // var response = res.data.body[0];\n // localStorage.setItem('roleId', '1');\n // dispatch({\n // type: UPDATE_AUTH_USER,\n // payload: {\n // authType: AuthType.JWT_AUTH,\n // displayName: response.patname,\n // email: response.email,\n // mobileNo: response.mobileNo,\n // doctorCode: response.doctorCode,\n // roleId:'1',\n // role: 'Patient',\n // token: token,\n // },\n // });\n // })\n // .catch((error) => {\n // // alert(error.response.data.message.split(':')[1].trim());\n // dispatch({type: FETCH_ERROR, payload: (error.response.data.message.split(':')[1].trim())});\n // });\n // }\n // catch (err) {\n // dispatch(fetchSuccess());\n // return;\n // }\n // }\n // })\n // .catch((error) => {\n // dispatch({\n // type: FETCH_ERROR,\n // payload: error.response.data.message.split(':')[1].trim(),\n // });\n // });\n // return;\n // } catch (err) {\n // return;\n // }\n // }\n var body1 = {mobileNbr: '989 ', paswd: '44', jwtToken: token};\n try {\n await jwtAxios\n .post('v1/docMgmt/login', body1)\n .then((res) => {\n dispatch(fetchSuccess());\n var response = res.data.body[0];\n var clientList = response?.generateWordClient;\n let locArr = [];\n if (clientList?.length > 0) {\n clientList.map((item) => {\n if (item?.clientID) {\n let id = Number(item?.clientID);\n locArr.push(id);\n }\n });\n }\n dispatch({\n type: WORD_PREVIEW_CLIENT,\n payload: locArr,\n });\n localStorage.setItem('roleId', '1');\n let mappedDoctor =\n response.mappedDoctors && response.mappedDoctors != '0'\n ? response.mappedDoctors.split(',')\n : [];\n mappedDoctor.push(response.doctorCode.toString());\n dispatch({\n type: UPDATE_AUTH_USER,\n payload: {\n authType: AuthType.JWT_AUTH,\n displayName: response.docname,\n email: response.email,\n mobileNo: response.mobileNo,\n doctorCode: response.doctorCode,\n role:\n response.doctorCategory == 2 ? 'Doctor' : 'Premium Doctor',\n doctorstatus: response.doctorstatus,\n token: token,\n settings: response.settings,\n mappedDoctor: mappedDoctor,\n doctorcategory: response.doctorCategory,\n logo: response.doctorProfile,\n roleId: response.doctorCategory,\n uniqueDocID: response.uniqueDocID,\n qrCode: response.qrCode,\n transDate: response.transDate,\n mrdDrCheck: response.mrdDrCheck == true ? 3 : '',\n mrdDrcat: response.mrdDrCheck == true ? 'MRD Doctor' : '',\n },\n });\n })\n .catch((error) => {\n // alert(error.response.data.message.split(':')[1].trim());\n // dispatch({type: FETCH_ERROR, payload: (error.response.data.message.split(':')[1].trim())});\n });\n\n return;\n } catch (err) {\n dispatch(fetchSuccess());\n return;\n }\n };\n\n const setJWTToken = (token) => {\n return async (dispatch) => {\n dispatch({\n type: SET_AUTH_TOKEN,\n payload: token,\n });\n };\n };\n\n const checkAuth = () => {\n Promise.all([firebaseCheck(), awsAuthUser(), validateAuth()]).then(() => {\n setLoading(false);\n });\n Hub.listen('auth', ({payload: {event, data}}) => {\n switch (event) {\n case 'signIn':\n dispatch(onGetLoggedInCognitoUser());\n break;\n case 'signOut':\n dispatch({type: UPDATE_AUTH_USER, payload: null});\n break;\n default:\n return false;\n }\n });\n };\n\n checkAuth();\n }, [dispatch]);\n\n return [loading, user];\n};\n\nexport const useAuthUser = () => {\n const {user} = useSelector(({auth}) => auth);\n\n if (user) {\n return {id: 1, ...user};\n }\n return [null];\n};\n","export const ThemeStyle = {\n MODERN: 'modern',\n STANDARD: 'standard',\n};\nexport const ThemeStyleRadius = {\n MODERN: 30,\n STANDARD: 4,\n};\nexport const ThemeMode = {\n LIGHT: 'light',\n SEMI_DARK: 'semi-dark',\n DARK: 'dark',\n};\nexport const LayoutType = {\n FULL_WIDTH: 'full-width',\n BOXED: 'boxed',\n};\nexport const NavStyle = {\n // DEFAULT: 'default',\n // MINI: 'mini',\n // MINI_SIDEBAR_TOGGLE: 'mini-sidebar-toggle',\n // STANDARD: 'standard',\n // HEADER_USER: 'user-header',\n // HEADER_USER_MINI: 'user-mini-header',\n // DRAWER: 'drawer',\n // BIT_BUCKET: 'bit-bucket',\n // H_DEFAULT: 'h-default',\n HOR_LIGHT_NAV: 'hor-light-nav',\n // HOR_DARK_LAYOUT: 'hor-dark-layout',\n};\nexport const FooterType = {\n FIXED: 'fixed',\n FLUID: 'fluid',\n};\nexport const HeaderType = {\n DARK: 'dark',\n LIGHT: 'light',\n};\nexport const RouteTransition = {\n NONE: 'none',\n FADE: 'fade',\n SLIDE_LEFT: 'slideLeft',\n SLIDE_RIGHT: 'slideRight',\n SLIDE_UP: 'slideUp',\n SLIDE_DOWN: 'slideDown',\n};\nexport const Fonts = {\n LIGHT: '300',\n REGULAR: '400',\n MEDIUM: '500',\n BOLD: '600',\n EXTRA_BOLD: '600',\n FONT_BOLD: 'bold',\n};\n\nexport const AuthType = {\n FIREBASE: 'firebase',\n AWS_COGNITO: 'aws_cognito',\n AUTH0: 'auth0',\n JWT_AUTH: 'jwt_auth',\n};\n\nexport const FontStyle = {\n FONTSTYLE: 'Roboto',\n TableHeader: 16,\n TableBody: 14,\n};\n","import axios from 'axios';\n\nconst jwtAxios = axios.create({\n // baseURL: 'http://localhost:8080/api/',\n // baseURL:'http://apidev-env.eba-gfasd2ew.ap-south-1.elasticbeanstalk.com/api/',\n //uat link\n // baseURL: 'https://apiuat.gudmed.in/api/',\n //live links\n baseURL: 'https://api.gudmed.in/api/',\n //test links\n // baseURL: 'https://apidev.gudmed.in/api/',\n headers: {\n 'Content-Type': 'application/json',\n },\n validateStatus: function (status) {\n return status >= 200 && status < 400;\n },\n});\njwtAxios.interceptors.response.use(\n (res) => res,\n (err) => {\n if (err.response && err.response.data.msg === 'Token is not valid') {\n console.log('Need to logout user');\n // store.dispatch({type: LOGOUT});\n }\n return Promise.reject(err);\n },\n);\nexport const setAuthToken = (token) => {\n if (token) {\n jwtAxios.defaults.headers.common['x-auth-token'] = token;\n localStorage.setItem('token', token);\n } else {\n delete jwtAxios.defaults.headers.common['x-auth-token'];\n localStorage.removeItem('token');\n }\n};\n\nexport default jwtAxios;\n","import React, {useEffect} from 'react';\nimport PerfectScrollbar from 'react-perfect-scrollbar';\nimport PropTypes from 'prop-types';\nimport {useLocation, withRouter} from 'react-router-dom';\n\nconst Scrollbar = React.forwardRef((props, ref) => {\n const {\n children,\n history,\n match,\n location,\n scrollToTop,\n staticContext,\n className,\n ...others\n } = props;\n let _scrollBarRef = null;\n const {pathname} = useLocation();\n\n useEffect(() => {\n if (scrollToTop && _scrollBarRef) {\n _scrollBarRef._container.scrollTop = 0;\n }\n }, [_scrollBarRef, scrollToTop, pathname]);\n\n return (\n {\n _scrollBarRef = ref;\n }}\n {...others}\n className={className}>\n {children}\n \n );\n});\n\nexport default withRouter(Scrollbar);\n\nScrollbar.defaultProps = {\n className: '',\n scrollToTop: true,\n};\n\nScrollbar.propTypes = {\n children: PropTypes.node.isRequired,\n};\n","import React from 'react';\nimport {FormattedMessage, injectIntl} from 'react-intl';\n\nconst InjectMassage = (props) => ;\nexport default injectIntl(InjectMassage, {\n forwardRef: false,\n});\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,\n ),\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA',\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.',\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch((error) => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: {'Service-Worker': 'script'},\n })\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.',\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister();\n });\n }\n}\n","import {\n SET_INITIAL_PATH,\n TOGGLE_NAV_COLLAPSED,\n RESET_STATE,\n} from '../../shared/constants/ActionTypes';\n\nconst initialSettings = {\n navCollapsed: false,\n initialPath: '/',\n};\n\nconst settingsReducer = (state = initialSettings, action) => {\n switch (action.type) {\n case RESET_STATE:\n return {...initialSettings}; // Reset the state to the initial state\n case '@@router/LOCATION_CHANGE':\n return {\n ...state,\n navCollapsed: false,\n };\n\n case TOGGLE_NAV_COLLAPSED:\n return {\n ...state,\n navCollapsed: !state.navCollapsed,\n };\n\n case SET_INITIAL_PATH:\n return {\n ...state,\n initialPath: action.payload,\n };\n\n default:\n return state;\n }\n};\n\nexport default settingsReducer;\n","import {\n FETCH_ERROR,\n FETCH_START,\n FETCH_SUCCESS,\n HIDE_MESSAGE,\n SHOW_MESSAGE,\n TOGGLE_APP_DRAWER,\n UPDATING_CONTENT,\n RESET_STATE,\n} from '../../shared/constants/ActionTypes';\n\nconst INIT_STATE = {\n error: '',\n loading: false,\n isAppDrawerOpen: false,\n updatingContent: false,\n message: '',\n};\n\nconst commonReducer = (state = INIT_STATE, action) => {\n switch (action.type) {\n case RESET_STATE:\n return {...INIT_STATE}; // Reset the state to the initial state\n case FETCH_START: {\n return {...state, error: '', message: '', loading: true};\n }\n case UPDATING_CONTENT: {\n return {...state, error: '', message: '', updatingContent: true};\n }\n case FETCH_SUCCESS: {\n return {\n ...state,\n error: '',\n message: '',\n loading: false,\n updatingContent: false,\n };\n }\n case SHOW_MESSAGE: {\n return {\n ...state,\n error: '',\n message: action.payload,\n loading: false,\n updatingContent: false,\n };\n }\n case FETCH_ERROR: {\n return {\n ...state,\n loading: false,\n error: action.payload,\n message: '',\n updatingContent: false,\n };\n }\n case HIDE_MESSAGE: {\n return {\n ...state,\n loading: false,\n error: '',\n message: '',\n updatingContent: false,\n };\n }\n case TOGGLE_APP_DRAWER: {\n return {\n ...state,\n isAppDrawerOpen: !state.isAppDrawerOpen,\n };\n }\n default:\n return state;\n }\n};\nexport default commonReducer;\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 23-06-2021\n * Descriptions : Call api response using reducers\n ************/\nimport {\n GET_HC_DATA,\n DASHBOARD_PENDING_DATA,\n DASHBOARD_PENDING_COUNT,\n DASHBOARD_PENDING_PATIENT_DATA,\n PATIENT_SUCCESS_MSG,\n ERX_SUCCESS_MSG,\n DASHBOARD_ERX_DATA,\n ERX_IMG_ARR,\n ERX_IMG_OCR_ARR,\n ERX_IMG_VACC_ARR,\n GET_DOCTOR_EDITDATA,\n DASHBOARD_INSERT_PRESCRIPTION,\n DASHBOARD_INPROGRESSS_DATA,\n DASHBOARD_INPROGRESSS_COUNT,\n DOCTOR_SUCCESS_MSG,\n REJECT_ERX_MSG,\n DOCTOR_UPDATE_MSG,\n MEDICINE_SUCCESS_MSG,\n DASHBOARD_RX_DETAILS,\n DASHBOARD_ERX_DOC_OBSV,\n DASHBOARD_ERX_LAB_OBSV,\n DASHBOARD_ERX_PATIENT_VITAL,\n DASHBOARD_ERX_DOCPROCEDURE,\n DASHBOARD_ERX_MEDICINE_DETAIL,\n DASHBOARD_GRX_MEDICINE_DETAIL,\n DASHBOARD_REJECT_DATA,\n DASHBOARD_REJECT_COUNT,\n REJECT_ERX_SUCCESS_MSG,\n DASHBOARD_COMPLETED_COUNT,\n UNIT_DATA,\n DASHBOARD_COMPLETED_DATA,\n DELETE_MEDCINE_SUCCESS_MSG,\n SET_DOCTOR_ID_NAME,\n BUCKET_CAPTCHA,\n DOCTOR_SPECIALIZATION,\n DOCTOR_SUBSPECIALIZATION,\n DOCTOR_QUALIFICATION,\n DEPARTMENT_MASTER,\n APPOINTMENT_COMPLETED_DATA,\n APPOINTMENT_UPCOMING_DATA,\n STATE_MASTER,\n OPT_NOTES,\n DOCTOR_SEARCH_ARRAY,\n DOCTOR_SEARCH_DATA,\n ERX_OPERATOR_NOTES,\n resulttitle,\n CHANGE_MOBILENO_RES,\n bloodsugarList,\n INVESTIGATION_CATEGORY_DATA,\n REPORT_DETAILS,\n SEARCH_REPORTS_DATA,\n TAG_CATEGORY_DATA,\n PATIENT_LISTS,\n SEARCH_PATIENT_DATA,\n SEARCH_PATIENT_OLDDATA,\n SEARCH_DISEASE_DATA,\n SEARCH_SYMPTOMS_DATA,\n SEARCH_PROCEDURE_DATA,\n ERXLIST_IMG_OCR_ARR,\n ERX_IMG_VACC_OCR_ARR,\n TODAY_APPOINTMENT_DATA,\n APPOINTMENT_INSERTED_SUCCESS,\n APPOINTMENT_BOOKED_TIMING,\n ONLINE_OFFLINE_STATUS,\n RESET_STATE,\n} from '../../shared/constants/ActionTypes';\n\nconst initialState = {\n healthCare: null,\n dashboardPendingList: {},\n pendingCount: 0,\n dashboardPendingPatientData: {},\n patientsuccessmsg: null,\n erxsuccessmsg: null,\n rejecterxsuccessmsg: null,\n erxmedicinesuccessmsg: null,\n dashboarderxData: {},\n erximgdatas: [],\n appointmentcompleteddata: {},\n appointmentInsertSuccess: '',\n appointmentupcomingdata: {},\n erximgocrdataoriginal: [],\n erximgocrvaccoriginal: [],\n erxlistimgocrdataoriginal: [],\n dashboarderxDetails: {},\n dashboarderxDocobsv: {},\n dashboarderxLabobsv: {},\n today_appointment_data: {},\n dashboarderxPatientVital: {},\n dashboarderxDocProcedure: [],\n dashboarderxmedicinedetail: {},\n dashboardgrxmedicinedetail: {},\n doctorDetails: {},\n bucketcaptcha: {},\n dashboardinsertprescriptions: {},\n inprogresCount: 0,\n dashboardInprogressList: {},\n dashboardRejectList: {},\n dashboardRejectcountList: null,\n doctorsuccessmsg: null,\n doctorupdatemsg: null,\n rejectsuccessmsg: null,\n dashboardCompletedList: {},\n dashboardCompletedcountList: null,\n unitdata: [],\n deletemedicinesuccessmsg: null,\n doctoridname: {},\n specializations: [],\n subspecializations: [],\n qualifications: [],\n departmentMaster: [],\n stateMaster: [],\n optNotes: '',\n doctorSearchDatas: [],\n searchableDoctor: {},\n erxOperatorNotes: [],\n resulttitle: {},\n changemobilenores: '',\n bloodsugarList: {},\n investigationCategoryData: [],\n investigationDiseaseData: [],\n reportDetails: [],\n searchReportsData: [],\n tagCategoryData: [],\n tagDiseaseData: [],\n patientListdata: [],\n searchReportsData: [],\n search_patient_data: [],\n search_patient_olddata: [],\n search_disease_data: [],\n search_symptom_data: [],\n procedureData: [],\n appointment_Booked: [],\n};\n\nconst dashboardReducer = (state = initialState, action) => {\n switch (action.type) {\n case RESET_STATE:\n return {...initialState}; // Reset the state to the initial state\n case GET_HC_DATA:\n return {\n ...state,\n healthCare: action.payload,\n };\n case OPT_NOTES:\n return {\n ...state,\n optNotes: action.payload,\n };\n\n //Assign dashboard pending data\n case DASHBOARD_PENDING_DATA:\n return {\n ...state,\n dashboardPendingList: action.payload,\n };\n //Assign dashboard pending count\n case DASHBOARD_PENDING_COUNT:\n return {\n ...state,\n pendingCount: action.payload,\n };\n //Assign dashboard pending data\n case DASHBOARD_REJECT_DATA:\n return {\n ...state,\n dashboardRejectList: action.payload,\n };\n //Assign dashboard pending count\n case DASHBOARD_REJECT_COUNT:\n return {\n ...state,\n dashboardRejectcountList: action.payload,\n };\n //Assign dashboard pending Patient data\n case DASHBOARD_PENDING_PATIENT_DATA:\n return {\n ...state,\n dashboardPendingPatientData: action.payload,\n };\n //Assign dashboard pending Patient success msg\n case PATIENT_SUCCESS_MSG:\n return {\n ...state,\n patientsuccessmsg: action.payload,\n };\n //Assign successmsg\n case ERX_SUCCESS_MSG:\n return {\n ...state,\n erxsuccessmsg: action.payload,\n };\n //Assign successmsg\n case REJECT_ERX_MSG:\n return {\n ...state,\n rejecterxsuccessmsg: action.payload,\n };\n\n //Assign successmsg\n case MEDICINE_SUCCESS_MSG:\n return {\n ...state,\n erxmedicinesuccessmsg: action.payload,\n };\n //Assign dashboard pending erx data\n case DASHBOARD_ERX_DATA:\n return {\n ...state,\n dashboarderxData: action.payload,\n };\n //get image data\n case ERX_IMG_ARR:\n return {\n ...state,\n erximgdatas: action.payload,\n };\n //get erx with img data\n case ERX_IMG_OCR_ARR:\n return {\n ...state,\n erximgocrdataoriginal: action.payload,\n };\n case ERX_IMG_VACC_ARR:\n return {\n ...state,\n erximgocrvaccoriginal: action.payload,\n };\n case ERXLIST_IMG_OCR_ARR:\n return {\n ...state,\n erxlistimgocrdataoriginal: action.payload,\n };\n case ERX_IMG_VACC_OCR_ARR:\n return {\n ...state,\n erxlistimgocrvaccoriginal: action.payload,\n };\n case DASHBOARD_RX_DETAILS:\n return {\n ...state,\n dashboarderxDetails: action.payload,\n };\n case DASHBOARD_ERX_DOC_OBSV:\n return {\n ...state,\n dashboarderxDocobsv: action.payload,\n };\n case DASHBOARD_ERX_LAB_OBSV:\n return {\n ...state,\n dashboarderxLabobsv: action.payload,\n };\n case DASHBOARD_ERX_PATIENT_VITAL:\n return {\n ...state,\n dashboarderxPatientVital: action.payload,\n };\n case DASHBOARD_ERX_DOCPROCEDURE:\n return {\n ...state,\n dashboarderxDocProcedure: action.payload,\n };\n\n case DASHBOARD_ERX_MEDICINE_DETAIL:\n return {\n ...state,\n dashboarderxmedicinedetail: action.payload,\n };\n //Get grx medicine details\n case DASHBOARD_GRX_MEDICINE_DETAIL:\n return {\n ...state,\n dashboardgrxmedicinedetail: action.payload,\n };\n //bind doctor edit load data\n case GET_DOCTOR_EDITDATA:\n return {\n ...state,\n doctorDetails: action.payload,\n };\n //Insert prescription\n case DASHBOARD_INSERT_PRESCRIPTION:\n return {\n ...state,\n dashboardinsertprescriptions: action.payload,\n };\n //Assign dashboard inprogress data\n case DASHBOARD_INPROGRESSS_DATA:\n return {\n ...state,\n dashboardInprogressList: action.payload,\n };\n //Assign inprogress count\n case DASHBOARD_INPROGRESSS_COUNT:\n return {\n ...state,\n inprogresCount: action.payload,\n };\n //doctor success msg\n case DOCTOR_SUCCESS_MSG:\n return {\n ...state,\n doctorsuccessmsg: action.payload,\n };\n\n //doctor update msg\n case DOCTOR_UPDATE_MSG:\n return {\n ...state,\n doctorupdatemsg: action.payload,\n };\n\n //REJECT_ERX_SUCCESS_MSG\n case REJECT_ERX_SUCCESS_MSG:\n return {\n ...state,\n rejectsuccessmsg: action.payload,\n };\n\n case DASHBOARD_COMPLETED_DATA:\n return {\n ...state,\n dashboardCompletedList: action.payload,\n };\n case DASHBOARD_COMPLETED_COUNT:\n return {\n ...state,\n dashboardCompletedcountList: action.payload,\n };\n case UNIT_DATA:\n return {\n ...state,\n unitdata: action.payload,\n };\n\n //Assign delete medicine details\n case DELETE_MEDCINE_SUCCESS_MSG:\n return {\n ...state,\n deletemedicinesuccessmsg: action.payload,\n };\n case SET_DOCTOR_ID_NAME:\n return {\n ...state,\n doctoridname: action.payload,\n };\n\n case BUCKET_CAPTCHA:\n return {\n ...state,\n bucketcaptcha: action.payload,\n };\n\n //for specialization master array\n case DOCTOR_SPECIALIZATION:\n return {\n ...state,\n specializations: action.payload,\n };\n case DOCTOR_SUBSPECIALIZATION:\n return {\n ...state,\n subspecializations: action.payload,\n };\n case DOCTOR_QUALIFICATION:\n return {\n ...state,\n qualifications: action.payload,\n };\n\n // master list\n case DEPARTMENT_MASTER:\n return {\n ...state,\n departmentMaster: action.payload,\n };\n case APPOINTMENT_COMPLETED_DATA:\n return {\n ...state,\n appointmentcompleteddata: action.payload,\n };\n case APPOINTMENT_INSERTED_SUCCESS:\n return {\n ...state,\n appointmentInsertSuccess: action.payload,\n };\n case APPOINTMENT_UPCOMING_DATA:\n return {\n ...state,\n appointmentupcomingdata: action.payload,\n };\n case STATE_MASTER:\n return {\n ...state,\n stateMaster: action.payload,\n };\n case DOCTOR_SEARCH_ARRAY:\n return {\n ...state,\n doctorSearchDatas: action.payload,\n };\n\n case DOCTOR_SEARCH_DATA:\n return {\n ...state,\n searchableDoctor: action.payload,\n };\n //Get operator notes data\n case ERX_OPERATOR_NOTES:\n return {\n ...state,\n erxOperatorNotes: action.payload,\n };\n //Get title list\n case resulttitle:\n return {\n ...state,\n resulttitle: action.payload,\n };\n //Get blood sugar list\n case bloodsugarList:\n return {\n ...state,\n bloodsugarList: action.payload,\n };\n case CHANGE_MOBILENO_RES:\n return {\n ...state,\n changemobilenores: action.payload,\n };\n //Get Investigation category data\n case INVESTIGATION_CATEGORY_DATA:\n return {\n ...state,\n investigationCategoryData: action.payload,\n };\n case TAG_CATEGORY_DATA:\n return {\n ...state,\n tagCategoryData: action.payload,\n };\n case REPORT_DETAILS:\n return {\n ...state,\n reportDetails: action.payload,\n };\n case SEARCH_REPORTS_DATA:\n return {\n ...state,\n searchReportsData: action.payload,\n };\n case PATIENT_LISTS:\n return {\n ...state,\n patientListdata: action.payload,\n };\n case SEARCH_REPORTS_DATA:\n return {\n ...state,\n searchReportsData: action.payload,\n };\n case SEARCH_PATIENT_DATA:\n return {\n ...state,\n search_patient_data: action.payload,\n };\n case SEARCH_PATIENT_OLDDATA:\n return {\n ...state,\n search_patient_olddata: action.payload,\n };\n case SEARCH_DISEASE_DATA:\n return {\n ...state,\n search_disease_data: action.payload,\n };\n case TODAY_APPOINTMENT_DATA:\n return {\n ...state,\n today_appointment_data: action.payload,\n };\n case SEARCH_SYMPTOMS_DATA:\n return {\n ...state,\n search_symptom_data: action.payload,\n };\n case SEARCH_PROCEDURE_DATA:\n return {\n ...state,\n procedureData: action.payload,\n };\n case APPOINTMENT_BOOKED_TIMING:\n return {\n ...state,\n appointment_Booked: action.payload,\n };\n default:\n return state;\n }\n};\nexport default dashboardReducer;\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 23-06-2021\n * Descriptions : Call api response using reducers\n ************/\nimport {\n GET_USERMANAGE_DATA,\n DELETE_USER_DATA,\n GET_GUDMEDSUCCESS_DATA,\n GET_GUDMED_USER,\n RESET_USER_PASWD,\n RESET_STATE,\n} from '../../shared/constants/ActionTypes';\n\nconst initialState = {\n users: [],\n deleteuserdata: null,\n message: '',\n editloaddata: {},\n resetpaswd: 'false',\n};\n\nconst userManagementReducer = (state = initialState, action) => {\n switch (action.type) {\n case RESET_STATE:\n return {...initialState}; // Reset the state to the initial state\n //Assign user data\n case GET_USERMANAGE_DATA:\n return {\n ...state,\n users: action.payload,\n };\n //Assign Get user success data\n case GET_GUDMEDSUCCESS_DATA:\n return {\n ...state,\n message: action.payload,\n };\n //Assign Get user data\n case GET_GUDMED_USER:\n return {\n ...state,\n editloaddata: action.payload,\n };\n //Assign user delete response\n case DELETE_USER_DATA:\n return {\n ...state,\n deleteuserdata: action.payload,\n };\n //Assign success reset paswd\n case RESET_USER_PASWD:\n return {\n ...state,\n resetpaswd: action.payload,\n };\n\n default:\n return state;\n }\n};\nexport default userManagementReducer;\n","import {\n SET_AUTH_TOKEN,\n SIGNOUT_AUTH_SUCCESS,\n PATIENT_SIGNUP,\n OTP_SUCCESS,\n OTP_ERROR,\n MOBILE_OTP_SUCCESS,\n UPDATE_AUTH_USER,\n SET_MOBILENO,\n SET_PASWD,\n OTP_SIGNUP_ERROR,\n SIGNIN_ERROR,\n OTP_UPDTE_SUCCESS,\n OTP_UPDTE_ERROR,\n PASSWORD_REQUEST_TAG,\n SETPASS_DOCID,\n SETPASS_MOB,\n RESET_STATE,\n} from '../../shared/constants/ActionTypes';\n\nconst INIT_STATE = {\n user: null,\n token: null,\n mobileno: null,\n paswd: null,\n signupstatus: '',\n otpsuccess: false,\n otperror: '',\n otpsignuperror: '',\n signinerror: '',\n otpupdateerror: '',\n otpupdatesuccess: false,\n mobileotpsuccess: false,\n passwordReqTag: '',\n setpassDocId: '',\n setpassMobile: '',\n};\n\nconst authReducer = (state = INIT_STATE, action) => {\n switch (action.type) {\n case RESET_STATE:\n return {...INIT_STATE}; // Reset the state to the initial state\n case UPDATE_AUTH_USER: {\n return {\n ...state,\n user: action.payload,\n };\n }\n case PASSWORD_REQUEST_TAG: {\n return {\n ...state,\n passwordReqTag: action.payload,\n };\n }\n case SETPASS_DOCID: {\n return {\n ...state,\n setpassDocId: action.payload,\n };\n }\n case SETPASS_MOB: {\n return {\n ...state,\n setpassMobile: action.payload,\n };\n }\n case SIGNOUT_AUTH_SUCCESS: {\n return {\n ...state,\n user: null,\n };\n }\n case SET_AUTH_TOKEN: {\n return {\n ...state,\n token: action.payload,\n };\n }\n case SET_MOBILENO: {\n return {\n ...state,\n mobileno: action.payload,\n };\n }\n case SET_PASWD: {\n return {\n ...state,\n paswd: action.payload,\n };\n }\n case PATIENT_SIGNUP: {\n return {\n ...state,\n signupstatus: action.payload,\n };\n }\n case OTP_SUCCESS: {\n return {\n ...state,\n otpsuccess: action.payload,\n };\n }\n case MOBILE_OTP_SUCCESS: {\n return {\n ...state,\n mobileotpsuccess: action.payload,\n };\n }\n case OTP_ERROR: {\n return {\n ...state,\n otperror: action.payload,\n };\n }\n case OTP_SIGNUP_ERROR: {\n return {\n ...state,\n otpsignuperror: action.payload,\n };\n }\n case OTP_UPDTE_ERROR: {\n return {\n ...state,\n otpupdateerror: action.payload,\n };\n }\n case OTP_UPDTE_SUCCESS: {\n return {\n ...state,\n otpupdatesuccess: action.payload,\n };\n }\n case SIGNIN_ERROR: {\n return {\n ...state,\n signinerror: action.payload,\n };\n }\n default:\n return state;\n }\n};\nexport default authReducer;\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 23-06-2021\n * Descriptions : Call api response using reducers\n ************/\nimport {\n PATIENT_COMPLETED_DATA,\n EXCEL_COMPLETE_DATA,\n EXCELVACCINE_COMPLETE_DATA,\n PATIENT_COMPLETED_COUNT,\n PATIENT_COMPLETED_OLDCOUNT,\n PATIENT_FILTER_COUNT,\n PATIENTOLD_FILTER_COUNT,\n PATIENTLIST_COMPLETED_COUNT,\n PATIENTOLDLIST_COMPLETED_COUNT,\n PATIENTOLDLIST_COMPLETED_DATA,\n PATIENT_COMPLETED_VACC_DATA,\n PATIENTLIST_COMPLETED_VACC_DATA,\n PATIENTLIST_COMPLETED_DATA,\n PATIENT_COMPLETED_PATIENT_NAME,\n PATIENT_SEARCH,\n PATIENT_OLDERX_SEARCH,\n PATIENT_VACC_SEARCH,\n DISEASE_SEARCH,\n FORGOT_PASWD_SUCCESS,\n OTP_TIME,\n FORGOT_PASWD_ERROR,\n DOCTOR_APPROVE_STATUS,\n ERX_DATA_HTML,\n WORD_PREVIEW_CLIENT,\n ERX_DATA_HTML_NO_DATA,\n PATIENT_VACC_FILTER_COUNT,\n PATIENT_COMPLETED_VACC_COUNT,\n PATIENT_FILTER_VACC_COUNT,\n AGE_VACCINATION_LIST,\n RESET_STATE,\n} from '../../shared/constants/ActionTypes';\n\nconst initialState = {\n patientlist: null,\n exceldata: [],\n vaccineExceldata: [],\n patientcount: null,\n patientvacccount: null,\n patientoldcount: null,\n patientfiltercount: null,\n patientvaccfiltercount: null,\n patientfiltervacccount: null,\n patientsearch: '',\n patientolderxsearch: '',\n patientvaccsearch: '',\n diseasesearch: '',\n forgotpaswdsuccess: '',\n forgotpaswderror: '',\n doctorApprovedStatus: 0,\n patientnames: [],\n erxhtmldata: [],\n erxhtmlnodata: '',\n otp_time: '',\n patientVacclist: null,\n word_Preview_Client: [],\n list_patient_data: null,\n list_patient_olddata: null,\n list_patient_vaccdata: null,\n list_patient_count: null,\n list_patient_oldcount: null,\n age_vaccine_list: [],\n};\n\nconst patientReducer = (state = initialState, action) => {\n switch (action.type) {\n case RESET_STATE:\n return {...initialState}; // Reset the state to the initial state\n //Assign user data\n case WORD_PREVIEW_CLIENT:\n return {\n ...state,\n word_Preview_Client: action.payload,\n };\n case PATIENT_COMPLETED_DATA:\n return {\n ...state,\n patientlist: action.payload,\n };\n case PATIENT_COMPLETED_VACC_DATA:\n return {\n ...state,\n patientVacclist: action.payload,\n };\n case PATIENT_COMPLETED_VACC_COUNT:\n return {\n ...state,\n patientvacccount: action.payload,\n };\n case EXCEL_COMPLETE_DATA:\n return {\n ...state,\n exceldata: action.payload,\n };\n case EXCELVACCINE_COMPLETE_DATA:\n return {\n ...state,\n vaccineExceldata: action.payload,\n };\n case PATIENT_COMPLETED_COUNT:\n return {\n ...state,\n patientcount: action.payload,\n };\n case PATIENT_COMPLETED_OLDCOUNT:\n return {\n ...state,\n patientoldcount: action.payload,\n };\n case PATIENT_FILTER_COUNT:\n return {\n ...state,\n patientfiltercount: action.payload,\n };\n case PATIENT_VACC_FILTER_COUNT:\n return {\n ...state,\n patientvaccfiltercount: action.payload,\n };\n case PATIENTOLD_FILTER_COUNT:\n return {\n ...state,\n patientoldfiltercount: action.payload,\n };\n case PATIENT_FILTER_VACC_COUNT:\n return {\n ...state,\n patientfiltervacccount: action.payload,\n };\n case PATIENTLIST_COMPLETED_DATA:\n return {\n ...state,\n list_patient_data: action.payload,\n };\n case PATIENTOLDLIST_COMPLETED_DATA:\n return {\n ...state,\n list_patient_olddata: action.payload,\n };\n case PATIENTLIST_COMPLETED_VACC_DATA:\n return {\n ...state,\n list_patient_vaccdata: action.payload,\n };\n case PATIENTLIST_COMPLETED_COUNT:\n return {\n ...state,\n list_patient_count: action.payload,\n };\n case PATIENTOLDLIST_COMPLETED_COUNT:\n return {\n ...state,\n list_patient_oldcount: action.payload,\n };\n case PATIENT_COMPLETED_PATIENT_NAME:\n return {\n ...state,\n patientnames: action.payload,\n };\n case PATIENT_SEARCH:\n return {\n ...state,\n patientsearch: action.payload,\n };\n case PATIENT_OLDERX_SEARCH:\n return {\n ...state,\n patientolderxsearch: action.payload,\n };\n case PATIENT_VACC_SEARCH:\n return {\n ...state,\n patientvaccsearch: action.payload,\n };\n case DISEASE_SEARCH:\n return {\n ...state,\n diseasesearch: action.payload,\n };\n case FORGOT_PASWD_SUCCESS:\n return {\n ...state,\n forgotpaswdsuccess: action.payload,\n };\n case OTP_TIME:\n return {\n ...state,\n otp_time: action.payload,\n };\n case FORGOT_PASWD_ERROR:\n return {\n ...state,\n forgotpaswderror: action.payload,\n };\n case DOCTOR_APPROVE_STATUS:\n return {\n ...state,\n doctorApprovedStatus: action.payload,\n };\n case ERX_DATA_HTML:\n return {\n ...state,\n erxhtmldata: action.payload,\n };\n case ERX_DATA_HTML_NO_DATA:\n return {\n ...state,\n erxhtmlnodata: action.payload,\n };\n case AGE_VACCINATION_LIST:\n return {\n ...state,\n age_vaccine_list: action.payload,\n };\n default:\n return state;\n }\n};\nexport default patientReducer;\n","/************\n\n * Developed by : Shiva Software Solutions\n * Date : 23-06-2021\n * Descriptions : Call api response using reducers\n\n ************/\nimport {\n STATE_MASTER,\n DOCTOR_QUALIFICATION,\n DOCTOR_SPECIALIZATION,\n DOCTOR_SUBSPECIALIZATION,\n DOCTOR_PROFILE,\n SAVE_PROFILES,\n SAVE_PREFERENCES,\n UPDATE_SETTINGS,\n HOSPITAL_SEARCH_DATA,\n RESET_STATE,\n} from '../../shared/constants/ActionTypes';\n\nconst initialState = {\n stateMaster: [],\n specializationMaster: [],\n subSpecializationMaster: [],\n qualificationMaster: [],\n profileDatas: {},\n saveProfile: false,\n savepreferences: false,\n updatesettings: false,\n searchableHospital: {},\n};\n\nconst profileReducer = (state = initialState, action) => {\n switch (action.type) {\n case RESET_STATE:\n return {...initialState}; // Reset the state to the initial state\n case HOSPITAL_SEARCH_DATA:\n return {\n ...state,\n searchableHospital: action.payload,\n };\n case STATE_MASTER:\n return {\n ...state,\n stateMaster: action.payload,\n };\n case DOCTOR_QUALIFICATION:\n return {\n ...state,\n qualificationMaster: action.payload,\n };\n case DOCTOR_SPECIALIZATION:\n return {\n ...state,\n specializationMaster: action.payload,\n };\n case DOCTOR_SUBSPECIALIZATION:\n return {\n ...state,\n subSpecializationMaster: action.payload,\n };\n case DOCTOR_PROFILE:\n return {\n ...state,\n profileDatas: action.payload,\n };\n case SAVE_PROFILES:\n return {\n ...state,\n saveProfile: action.payload,\n };\n case SAVE_PREFERENCES:\n return {\n ...state,\n savepreferences: action.payload,\n };\n case UPDATE_SETTINGS:\n return {\n ...state,\n updatesettings: action.payload,\n };\n default:\n return state;\n }\n};\nexport default profileReducer;\n","import {\n SEARCH_MRD_RES,\n MRD_API_RES,\n GET_REQ_LIST,\n BACKUP_BLOB_LIST,\n GET_REQ_COUNT,\n GET_PEND_COUNT,\n VALIDATION_MRD_RES,\n RESET_STATE,\n} from '../../shared/constants/ActionTypes';\n\nconst initialState = {\n searchMrdRes: [],\n MrdReqValidation: '',\n mrdApiRes: '',\n getReqList: [],\n backupBlobList:[],\n getReqCount: 0,\n getPendCount: 0,\n};\n\nconst mrdUserReducer = (state = initialState, action) => {\n switch (action.type) {\n case RESET_STATE:\n return {...initialState}; // Reset the state to the initial state\n case SEARCH_MRD_RES:\n return {\n ...state,\n searchMrdRes: action.payload,\n };\n case VALIDATION_MRD_RES:\n return {\n ...state,\n MrdReqValidation: action.payload,\n };\n case BACKUP_BLOB_LIST:\n return {\n ...state,\n backupBlobList: action.payload,\n };\n case GET_REQ_LIST:\n return {\n ...state,\n getReqList: action.payload,\n };\n case GET_REQ_COUNT:\n return {\n ...state,\n getReqCount: action.payload,\n };\n case MRD_API_RES:\n return {\n ...state,\n mrdApiRes: action.payload,\n };\n case GET_PEND_COUNT:\n return {\n ...state,\n getPendCount: action.payload,\n };\n default:\n return state;\n }\n};\n\nexport default mrdUserReducer;\n","/************\n\n * Developed by : Shiva Software Solutions\n * Date : 23-06-2021\n * Descriptions : Define reducers\n\n ************/\nimport {combineReducers} from 'redux';\nimport {connectRouter} from 'connected-react-router';\nimport Settings from './Setting';\nimport Common from './Common';\nimport Dashboard from './Dashboard';\nimport UserManageData from './userManagement';\nimport Auth from './Auth';\nimport Patient from './Patient';\nimport profileReducer from './myProfile';\nimport mrdUserReducer from './Mrduser';\n\nconst reducers = (history) => {\n return (state, action) => {\n // If the RESET_STATE action is dispatched, reset all reducers to their initial state\n if (action.type === 'RESET_STATE') {\n state = undefined; // This will reset the entire Redux state\n }\n\n return combineReducers({\n router: connectRouter(history),\n settings: Settings,\n auth: Auth,\n dashboard: Dashboard,\n userManage: UserManageData,\n common: Common,\n patient: Patient,\n profile: profileReducer,\n mrdDr: mrdUserReducer,\n })(state, action);\n };\n};\nexport default reducers;\n","import {applyMiddleware, compose, createStore} from 'redux';\nimport reducers from '../reducers';\nimport {routerMiddleware} from 'connected-react-router';\nimport thunk from 'redux-thunk';\nimport {setAuthToken} from '../../@crema/services/auth/jwt-auth/jwt-api';\n\nconst createBrowserHistory = require('history').createBrowserHistory;\nconst history = createBrowserHistory();\nconst routeMiddleware = routerMiddleware(history);\n\nconst middlewares = [thunk, routeMiddleware];\nconst composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n\nexport default function configureStore(initialState) {\n const store = createStore(\n reducers(history),\n initialState,\n composeEnhancers(applyMiddleware(...middlewares)),\n );\n\n if (module.hot) {\n // Enable Webpack hot module replacement for reducers\n module.hot.accept('../reducers/index', () => {\n const nextRootReducer = require('../reducers');\n store.replaceReducer(nextRootReducer);\n });\n }\n\n let currentState = store.getState();\n store.subscribe(() => {\n // keep track of the previous and current state to compare changesAppLayout/index.j\n let previousState = currentState;\n currentState = store.getState();\n // if the token changes set the value in localStorage and axios headers\n if (previousState.auth.token !== currentState.auth.token) {\n const token = currentState.auth.token;\n setAuthToken(token);\n }\n });\n return store;\n}\nexport {history};\n","/************ \n * Developed by : Shiva Software Solutions\n * Date : 21-06-2021\n * Descriptions : Main page of application\n * Dependicies : To use JWT Authendication token \n ************/\nimport React from 'react';\nimport {Provider} from 'react-redux';\nimport {ConnectedRouter} from 'connected-react-router';\nimport AppLayout from '@crema/core/AppLayout';\nimport AuthRoutes from '@crema/utility/AuthRoutes';\nimport LocaleProvider from '@crema/utility/LocaleProvider';\nimport CremaThemeProvider from '@crema/utility/CremaThemeProvider';\nimport CremaStyleProvider from '@crema/utility/CremaStyleProvider';\nimport ContextProvider from '@crema/utility/ContextProvider';\n\nimport configureStore, {history} from './redux/store';\nimport CssBaseline from '@material-ui/core/CssBaseline';\n\nconst store = configureStore();\n\n// //Prevent Right Click\n// const preventRightClick = () => {\n// document.addEventListener('contextmenu', (event) => event.preventDefault());\n// };\n\nconst App = () => (\n // \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport default App;\n","import axios from 'axios';\n\nexport default axios.create({\n headers: {\n 'Content-Type': 'application/json',\n 'Access-Control-Allow-Origin': '*',\n },\n});\n","import axios from './ApiConfig';\n\nconst MockAdapter = require('axios-mock-adapter');\n\nexport default new MockAdapter(axios, {delayResponse: 200});\n","//initialize firebase\nimport './firebase/firebase';\nimport './jwt-auth/jwt-api';\n\nimport Amplify from 'aws-amplify';\nimport {awsConfig} from './aws-cognito/aws-exports';\n//initialize aws\nAmplify.configure(awsConfig);\n","// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.\n\nexport const awsConfig = {\n aws_project_region: 'us-east-1',\n aws_cognito_identity_pool_id:\n 'us-east-1:e7ff8039-eaba-4b54-acde-d2d17edb2dce',\n aws_cognito_region: 'us-east-1',\n aws_user_pools_id: 'us-east-1_p7i7U9Clu',\n aws_user_pools_web_client_id: '1v0vqjidrbik5r3104buph0s7g',\n oauth: {\n domain: 'crema-react.auth.us-east-1.amazoncognito.com',\n scope: [\n 'phone',\n 'email',\n 'openid',\n 'profile',\n 'aws.cognito.signin.user.admin',\n ],\n redirectSignIn: 'https://crema-react.firebaseapp.com/',\n redirectSignOut: 'https://crema-react.firebaseapp.com/',\n responseType: 'code',\n },\n federationTarget: 'COGNITO_USER_POOLS',\n};\n","const healthCareData = {\n salesState: [\n {\n id: 1,\n category: 'Dentist',\n name: 'Dr. Matthew K. Gentry',\n bgColor: '#0A8FDC',\n time: '9 AM',\n icon: '/assets/images/dashboard/dentist.png',\n },\n {\n id: 2,\n category: 'Heart Specialist',\n name: 'Dr. Edna J. Weeks',\n bgColor: '#00B59C',\n time: '10 AM',\n icon: '/assets/images/dashboard/heart.png',\n },\n {\n id: 3,\n category: 'Neurologist',\n name: 'Dr. Audrey Thompson',\n bgColor: '#B745FF',\n time: '9 AM',\n icon: '/assets/images/dashboard/neuro.png',\n },\n {\n id: 4,\n category: 'Pulmonologist',\n name: 'Dr. Laurie Hopson',\n bgColor: '#3A3849',\n time: '10 AM',\n icon: '/assets/images/dashboard/pulmo.png',\n },\n ],\n heathStatics: {\n dataOne: [\n {month: 'Jan', number: 150},\n {month: 'Feb', number: 280},\n {month: 'Mar', number: 180},\n {month: 'Apr', number: 290},\n {month: 'May', number: 190},\n {month: 'Jun', number: 320},\n {month: 'Jul', number: 240},\n {month: 'Aug', number: 300},\n {month: 'Sep', number: 270},\n {month: 'Oct', number: 350},\n {month: 'Nov', number: 280},\n {month: 'Dec', number: 380},\n ],\n dataTwo: [\n {month: 'Jan', number: 20},\n {month: 'Feb', number: 170},\n {month: 'Mar', number: 40},\n {month: 'Apr', number: 200},\n {month: 'May', number: 70},\n {month: 'Jun', number: 270},\n {month: 'Jul', number: 100},\n {month: 'Aug', number: 310},\n {month: 'Sep', number: 130},\n {month: 'Oct', number: 350},\n {month: 'Nov', number: 170},\n {month: 'Dec', number: 200},\n ],\n dataThree: [\n {month: 'Jan', number: 110},\n {month: 'Feb', number: 230},\n {month: 'Mar', number: 100},\n {month: 'Apr', number: 290},\n {month: 'May', number: 160},\n {month: 'Jun', number: 320},\n {month: 'Jul', number: 220},\n {month: 'Aug', number: 450},\n {month: 'Sep', number: 260},\n {month: 'Oct', number: 490},\n {month: 'Nov', number: 240},\n {month: 'Dec', number: 200},\n ],\n },\n newPatients: [\n {month: 'Aug', number: 350},\n {month: 'Sep', number: 260},\n {month: 'Oct', number: 350},\n {month: 'Nov', number: 240},\n {month: 'Dec', number: 340},\n {month: 'Jul', number: 220},\n ],\n\n cancelVisits: [\n {month: 'Jan', number: 110},\n {month: 'Feb', number: 230},\n {month: 'Mar', number: 180},\n {month: 'Apr', number: 250},\n {month: 'May', number: 160},\n {month: 'Jun', number: 260},\n ],\n\n topDoctors: [\n {\n id: 1,\n name: 'Dr Nail Wagner',\n speciality: 'Heart Specialist',\n profile_pic: 'https://via.placeholder.com/150',\n rating: '5',\n scheduled: false,\n },\n {\n id: 2,\n name: 'Dr. Kane Williamson',\n speciality: 'Psychiatrist',\n profile_pic: 'https://via.placeholder.com/150',\n rating: '5',\n scheduled: false,\n },\n {\n id: 3,\n name: 'Dr Tom Bundle',\n speciality: 'Neurologist',\n profile_pic: 'https://via.placeholder.com/150',\n rating: '5',\n scheduled: true,\n },\n {\n id: 4,\n name: 'Dr Tom Bundle',\n speciality: 'Neurologist',\n profile_pic: 'https://via.placeholder.com/150',\n rating: '5',\n scheduled: false,\n },\n {\n id: 5,\n name: 'Jone B. Rilea',\n speciality: 'Heart Specialist',\n profile_pic: 'https://via.placeholder.com/150',\n rating: '5',\n scheduled: false,\n },\n ],\n upcomingAppointment: [\n {\n id: 1,\n name: 'Dr Nail Wagner',\n speciality: 'Heart Specialist',\n profile_pic: 'https://via.placeholder.com/150',\n appointmentTime: '9:30',\n appointmentDate: ' 15 Aug',\n },\n {\n id: 2,\n name: 'Dr. Kane Williamson',\n speciality: 'Psychiatrist',\n profile_pic: 'https://via.placeholder.com/150',\n appointmentTime: '9:30',\n appointmentDate: ' 15 Aug',\n },\n {\n id: 3,\n name: 'Dr. Tom Bundle',\n speciality: 'Neurologist',\n profile_pic: 'https://via.placeholder.com/150',\n appointmentTime: '9:30',\n appointmentDate: ' 15 Aug',\n },\n {\n id: 4,\n name: 'Jone B. Rilea',\n speciality: 'Rheumatologist',\n profile_pic: 'https://via.placeholder.com/150',\n appointmentTime: '9:30',\n appointmentDate: ' 15 Aug',\n },\n {\n id: 5,\n name: 'Jone B. Rilea',\n speciality: 'Heart Specialist',\n profile_pic: 'https://via.placeholder.com/150',\n appointmentTime: '9:30',\n appointmentDate: ' 15 Aug',\n },\n ],\n notifications: [\n {\n id: 1,\n title: 'You confirmed to dermatologist',\n time: '1 days ago',\n color: '#0A8FDC',\n },\n {\n id: 2,\n title: 'Your results are available to download',\n time: '2 days ago',\n color: '#0A8FDC',\n },\n {\n id: 3,\n title: 'Dr. John Smith cancelled your visit',\n time: '2 days ago',\n color: '#F44D50',\n },\n {\n id: 4,\n title: 'Dr. Ann Doe changed date of your visit',\n time: '3 days ago',\n color: '#F44D50',\n },\n {\n id: 5,\n title: 'You confirmed to dermatologist',\n time: '3 days ago',\n color: '#F44D50',\n },\n {\n id: 6,\n title: 'Dr. Ann Doe changed date of your visit',\n time: '4 days ago',\n color: '#0A8FDC',\n },\n ],\n hospitalStatics: [\n {\n id: 1,\n value: '3,256',\n name: 'Total Patient',\n icon: '/assets/images/dashboard/icon-patient.png',\n },\n {\n id: 2,\n value: '694',\n name: 'Available Staff',\n icon: '/assets/images/dashboard/icon-available-staff.png',\n },\n {\n id: 3,\n value: '$4,435',\n name: 'Avg Treat Cost',\n icon: '/assets/images/dashboard/icon-avg-cost.png',\n },\n {\n id: 4,\n value: '1,150',\n name: 'Available Cars',\n icon: '/assets/images/dashboard/icon-available-car.png',\n },\n ],\n recentPatients: [\n {\n id: '#SK231',\n name: 'Ina Hughes',\n profile_pic: 'https://via.placeholder.com/150',\n gender: 'Male',\n weight: '76',\n assignedDr: 'Dr. Michael Clark',\n date: '08-12-2020',\n status: 'Typhoid',\n color: '#0A8FDC',\n },\n {\n id: '#SK232',\n name: 'Myrtie Ferguson',\n profile_pic: 'https://via.placeholder.com/150',\n gender: 'Female',\n assignedDr: 'Dr. Pauline',\n date: '07-30-2020',\n weight: '65',\n status: 'Dengue',\n color: '#49BD65',\n },\n {\n id: '#SK233',\n name: 'Johnny Herrera',\n profile_pic: 'https://via.placeholder.com/150',\n weight: '67',\n gender: 'Male',\n assignedDr: 'Dr. David',\n date: '07-30-2020',\n status: 'Cancer',\n color: '#F44D50',\n },\n {\n id: '#SK234',\n name: 'Jone B. Rilea',\n profile_pic: 'https://via.placeholder.com/150',\n weight: '80',\n gender: 'Male',\n assignedDr: 'Dr. Tom Bundle',\n date: '07-30-2020',\n status: 'Covid 19',\n color: '#F44D50',\n },\n ],\n hospitalActivity: [\n {name: 'Jan', Consultations: 150, Patients: 270},\n {name: 'Feb', Consultations: 250, Patients: 200},\n {name: 'Mar', Consultations: 180, Patients: 280},\n {name: 'Apr', Consultations: 278, Patients: 250},\n {name: 'May', Consultations: 250, Patients: 300},\n {name: 'Jun', Consultations: 350, Patients: 250},\n {name: 'Jul', Consultations: 280, Patients: 300},\n {name: 'Aug', Consultations: 340, Patients: 240},\n {name: 'Sep', Consultations: 280, Patients: 300},\n {name: 'Oct', Consultations: 400, Patients: 270},\n {name: 'Nov', Consultations: 250, Patients: 240},\n {name: 'Dec', Consultations: 400, Patients: 270},\n ],\n bloodCard: [\n {\n id: 1,\n name: 'Blood Pressure',\n icon: '/assets/images/dashboard/icon-blood.png',\n measurement: '1141/90 mmhg',\n color: '#F25766',\n },\n {\n id: 2,\n name: 'Blood Glucose',\n icon: '/assets/images/dashboard/icon-bloodgroup.png',\n measurement: '140 mg/dl',\n color: '#2A8853',\n },\n {\n id: 3,\n name: 'Respiration Rate',\n icon: '/assets/images/dashboard/icon-beat.png',\n measurement: '60 beats min',\n color: '#DA8E16',\n },\n {\n id: 4,\n name: 'Immunity Rate',\n icon: '/assets/images/dashboard/icon-immune.png',\n measurement: '4800 μL',\n color: '#2717A4',\n },\n ],\n appointmentCards: [\n {\n id: 1,\n name: 'All Appointment',\n value: '1878',\n icon: '/assets/images/dashboard/icon-appointment.png',\n chartValue: '2.68',\n chartTime: 'Since last month',\n chartData: [\n {month: 'Jan', users: 1000},\n {month: 'Feb', users: 600},\n {month: 'Mar', users: 1100},\n {month: 'Apr', users: 900},\n {month: 'May', users: 1000},\n {month: 'Jun', users: 500},\n ],\n color: '#F77568',\n },\n {\n id: 2,\n name: 'Surgery',\n value: '1878',\n icon: '/assets/images/dashboard/icon-surgery.png',\n chartValue: '2.68',\n chartTime: 'Since last month',\n chartData: [\n {month: 'Jan', users: 1000},\n {month: 'Feb', users: 600},\n {month: 'Mar', users: 1100},\n {month: 'Apr', users: 900},\n {month: 'May', users: 1000},\n {month: 'Jun', users: 500},\n ],\n color: '#265ED7',\n },\n ],\n heartCard: {\n id: 1,\n title: 'Heart Rate',\n measurement: '122',\n unit: 'bpm',\n graphData: [\n {name: '1', rate: 50},\n {name: '2', rate: 52},\n {name: '3', rate: 67},\n {name: '4', rate: 0},\n {name: '5', rate: 90},\n {name: '6', rate: 67},\n {name: '7', rate: 70},\n {name: '8', rate: 45},\n {name: '9', rate: 50},\n {name: '10', rate: 63},\n {name: '11', rate: 50},\n {name: '12', rate: 48},\n ],\n color: '#FD3A84',\n },\n temperatureCard: {\n id: 1,\n title: 'Heart Rate',\n measurement: '122',\n unit: 'bpm',\n graphData: [\n {name: '1', rate: 50},\n {name: '2', rate: 52},\n {name: '3', rate: 67},\n {name: '4', rate: 0},\n {name: '5', rate: 90},\n {name: '6', rate: 67},\n {name: '7', rate: 70},\n {name: '8', rate: 45},\n {name: '9', rate: 50},\n {name: '10', rate: 63},\n {name: '11', rate: 50},\n {name: '12', rate: 48},\n ],\n color: '#0A8FDC',\n },\n doses: [\n {\n id: 1,\n value: 'Vitamin D',\n name: '2 Times everyday',\n icon: '/assets/images/dashboard/icon-vitamin.png',\n },\n {\n id: 2,\n value: 'Immune Renew',\n name: '3 Times everyday',\n icon: '/assets/images/dashboard/icon-immune.png',\n },\n ],\n yourActivity: [\n {day: 'Sun', visits: 50},\n {day: 'Mon', visits: 52},\n {day: 'Tue', visits: 67},\n {day: 'Wed', visits: 30},\n {day: 'Thu', visits: 90},\n {day: 'Fri', visits: 67},\n {day: 'Sat', visits: 57},\n ],\n};\n\nexport default healthCareData;\n","import mock from '../../MockConfig';\nimport healthCare from '../../db/dashboard/healthCare';\n\n\n\nmock.onGet('/dashboard/health_care').reply(200, healthCare);\n","const userManagementList = [\n {\n id: 13223,\n name: 'Asantha Powel',\n image: 'https://via.placeholder.com/150',\n skills: ['React', 'Javascript', 'Native', 'Drupal'],\n information:\n \"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text.\",\n email: 'asantha@example.com',\n phone: '+91324534563',\n website: 'www.asantha.com',\n charge: 20,\n readTime: '2 minutes',\n shares: '5k',\n retweets: '25k',\n topic: 'Job Interviews',\n },\n {\n id: 32433,\n name: 'Alastair Jordan',\n image: 'https://via.placeholder.com/150',\n skills: ['Java', 'Javascript', 'Flutter', 'Drupal'],\n information:\n \"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text.\",\n email: 'alastair@example.com',\n phone: '+9145424363',\n website: 'www.alastair.com',\n charge: 18,\n readTime: '6 minutes',\n shares: '15k',\n retweets: '235k',\n topic: 'Health and Medicine',\n },\n {\n id: 54534,\n name: 'Johnson Bravo',\n image: 'https://via.placeholder.com/150',\n skills: ['PHP', 'HTML', 'Native', 'Drupal'],\n information:\n \"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text.\",\n email: 'johnson@example.com',\n phone: '+9135432445',\n website: 'www.johnson.com',\n charge: 25,\n readTime: '8 minutes',\n shares: '59k',\n retweets: '225k',\n topic: 'World Economy',\n },\n {\n id: 43432,\n name: 'Johana Peterson',\n image: 'https://via.placeholder.com/150',\n skills: ['Wordpress', 'Laravel', 'Native', 'CMS'],\n information:\n \"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text.\",\n email: 'johana@example.com',\n phone: '+9134352343',\n website: 'www.johana.com',\n charge: 20,\n readTime: '5 minutes',\n shares: '52k',\n retweets: '125k',\n topic: 'Study & Stress',\n },\n {\n id: 35623,\n name: 'Heath Streak',\n image: 'https://via.placeholder.com/150',\n skills: ['Angular', 'Javascript', 'Flutter', 'Android'],\n information:\n \"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text.\",\n email: 'heath@example.com',\n phone: '+91345542435',\n website: 'www.heath.com',\n charge: 22,\n readTime: '4 minutes',\n shares: '59k',\n retweets: '525k',\n topic: 'Technology Advancement',\n },\n {\n id: 76312,\n name: 'Sunita Gough',\n image: 'https://via.placeholder.com/150',\n skills: ['Vue', 'Java', 'Native', 'Swift'],\n information:\n \"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text.\",\n email: 'sunita@example.com',\n phone: '+1334534563',\n website: 'www.sunita.com',\n charge: 30,\n readTime: '11 minutes',\n shares: '125k',\n retweets: '255k',\n topic: 'Aeronautical Science',\n },\n ];\n export default userManagementList;\n ","import mock from '../../MockConfig';\nimport userManagementList from '../../db/userManagementList';\n\nmock.onGet('/api/userManagement/users').reply(200, userManagementList);\n","import mock from './MockConfig';\nimport './auth'; //include auth initial config\nimport './apis';\n\nmock.onAny().passThrough();\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport 'react-big-calendar/lib/css/react-big-calendar.css';\nimport 'react-notifications-component/dist/theme.css';\nimport 'react-perfect-scrollbar/dist/css/styles.css';\nimport 'slick-carousel/slick/slick.css';\nimport 'slick-carousel/slick/slick-theme.css';\nimport 'react-table/react-table.css';\n\nimport './shared/styles/index.css';\nimport * as serviceWorker from './serviceWorker';\nimport App from './App';\nimport '@crema/services';\n\nReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n","import firebase from 'firebase/app';\nimport 'firebase/auth';\nimport 'firebase/firestore';\n// Initialize Firebase\nconst firebaseConfig = {\n apiKey: 'AIzaSyAzL_2jiVBhmiIUFGs2z6-cDR-Hgoedh3k',\n authDomain: 'crema-react.firebaseapp.com',\n databaseURL: 'https://crema-react.firebaseio.com',\n projectId: 'crema-react',\n storageBucket: 'crema-react.appspot.com',\n messagingSenderId: '369173776768',\n appId: '1:369173776768:web:895ded916749deebd31965',\n measurementId: 'G-976YVMRB4R',\n};\n\nfirebase.initializeApp(firebaseConfig);\n\nconst auth = firebase.auth();\n\nconst googleAuthProvider = new firebase.auth.GoogleAuthProvider();\nconst githubAuthProvider = new firebase.auth.GithubAuthProvider();\nconst facebookAuthProvider = new firebase.auth.FacebookAuthProvider();\nconst twitterAuthProvider = new firebase.auth.TwitterAuthProvider();\n\nexport {\n auth,\n googleAuthProvider,\n githubAuthProvider,\n facebookAuthProvider,\n twitterAuthProvider,\n};\n","import React from 'react';\n\nexport default React.createContext({});\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 28-06-2021\n * Descriptions : To call Sigin for gudmed operators and admin design page\n * Dependicies : To use react-router-dom,@material-ui/core,formik\n ************/\nexport const authRole = {\n admin: ['admin'],\n user: ['Doctor', 'Premium Doctor'],\n adminRoles: [1],\n dashboardRoles: [1, 2],\n premiumRole: ['Premium Doctor'],\n appointmentRoles: [1],\n mrdRole: [3],\n mrdName: ['MRD Doctor'],\n};\n\nexport const userRole = {\n user: [\n {\n roleId: 1,\n roleName: 'Doctor',\n },\n {\n roleId: 2,\n roleName: 'Premium Doctor',\n },\n ],\n};\n\nexport const defaultUser = {\n displayName: 'John Alex',\n email: 'demo@example.com',\n token: 'access-token',\n role: 'user',\n photoURL: 'https://via.placeholder.com/150',\n};\nexport const initialUrl = '/dashboard'; // this url will open after login\nexport const initUrlProfile = '/my-profile'; // this url will open after login\nexport const MobileRegExp = /^[0-9\\b]+$/;\nexport const digitRegExp = /^[0-9]*\\.?[0-9]*$/;\nexport const allowDouble = /^[0-9\\b.]+$/;\nexport const nameRegExp = /[^A-Za-z\\s]/;\nexport const addressRegExp = /^[A-Za-z\\s][0-9]*\\.?[0-9]*$/;\nexport const AvoidSpecialCharacterRegExp = /[`!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?~¬£]/;\nexport const AvoidSpecialCharacterMailRegExp = /[`!#$%^&*()+\\=\\[\\]{};':\"\\\\|,<>\\/?~¬£]/;\nexport const AvoidSpecialCharacterDrname = /[`!@#$%^&*_+\\-=\\[\\]{};':\"\\\\|,<>\\/?~¬£]/;\nexport const AvoidSpecialCharacterAddressRegExp = /[`!@#$%^*+\\=\\[\\]{};:\"\\\\|<>\\?~¬£]/;\nexport const AvoidSearchpatientRegExp = /[`!@#$%^&*()+\\=\\[\\]{};':\"\\\\|,.<>\\?~¬£]/;\nexport const MailRegExp = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\nexport const AvoidSpecialCharacterhospitalRegExp = /[`!@#$%^*_+\\=\\[\\]{};:\"\\\\|<>\\?~¬£]/;\n// export const nameRegExpdot = /[^A-Za-z\\s.]/;\nexport const nameRegExpdot = /^\\p{Lu}\\p{Ll}+( \\p{Lu}\\p{Ll}+)*$/;\n// /^(([^<>()[\\]\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@(([^<>()[\\]\\.,;:\\s@\\\"]+\\.)+[^<>()[\\]\\.,;:\\s@\\\"]{2,})$/i;\nexport const passwordRegExp = /^(?=.*[A-Z])(?=.*[a-z])(?=.*\\d)(?=.*[@$!%*#?&])[A-Za-z\\d@$!%*#?&]{8,20}$/;\n\nexport const genderMaster = [\n {\n genderCode: 1,\n gender: 'Male',\n },\n {genderCode: 2, gender: 'Female'},\n {genderCode: 3, gender: 'Transgender'},\n];\n\nexport const tempceltofaren = [\n {cell: 35.1, faren: 95.2},\n {cell: 35.2, faren: 95.4},\n {cell: 35.3, faren: 95.6},\n {cell: 35.4, faren: 95.8},\n {cell: 35.6, faren: 96.0},\n {cell: 35.7, faren: 96.2},\n {cell: 35.8, faren: 96.4},\n {cell: 35.9, faren: 96.6},\n {cell: 36.0, faren: 96.8},\n {cell: 36.1, faren: 97.0},\n {cell: 36.2, faren: 97.2},\n {cell: 36.3, faren: 97.4},\n {cell: 36.4, faren: 97.6},\n {cell: 36.5, faren: 97.7},\n {cell: 36.6, faren: 97.8},\n {cell: 36.7, faren: 98.0},\n {cell: 36.8, faren: 98.2},\n {cell: 36.9, faren: 98.4},\n {cell: 37.0, faren: 98.6},\n {cell: 37.1, faren: 98.8},\n {cell: 37.3, faren: 99.2},\n {cell: 37.4, faren: 99.4},\n {cell: 37.6, faren: 99.6},\n {cell: 37.7, faren: 99.8},\n {cell: 37.8, faren: 100.0},\n {cell: 37.9, faren: 100.2},\n {cell: 38.0, faren: 100.4},\n {cell: 38.1, faren: 100.6},\n {cell: 38.2, faren: 100.8},\n {cell: 38.3, faren: 101.0},\n {cell: 38.4, faren: 101.2},\n {cell: 38.6, faren: 101.4},\n {cell: 38.7, faren: 101.6},\n {cell: 38.8, faren: 101.8},\n {cell: 38.9, faren: 102.0},\n {cell: 39.0, faren: 102.2},\n {cell: 39.1, faren: 102.4},\n {cell: 39.2, faren: 102.6},\n {cell: 39.3, faren: 102.8},\n {cell: 39.4, faren: 103.0},\n {cell: 39.7, faren: 103.4},\n {cell: 39.8, faren: 103.6},\n {cell: 39.9, faren: 103.8},\n {cell: 40.0, faren: 104.0},\n {cell: 40.1, faren: 104.2},\n {cell: 40.2, faren: 104.4},\n {cell: 40.3, faren: 104.6},\n {cell: 40.4, faren: 104.8},\n {cell: 40.6, faren: 105.0},\n {cell: 40.7, faren: 105.2},\n {cell: 40.8, faren: 105.4},\n {cell: 40.9, faren: 105.6},\n {cell: 41.0, faren: 105.8},\n {cell: 41.1, faren: 106.0},\n {cell: 41.2, faren: 106.2},\n {cell: 41.3, faren: 106.4},\n {cell: 41.4, faren: 106.6},\n {cell: 41.6, faren: 106.8},\n];\n\nexport const status = {\n pending: 0,\n inprogress: 1,\n rejected: 2,\n completed: 3,\n sendreview: 4,\n returnBack: 5,\n};\nexport const version = '1.0.4';\n\nexport const all_prescription_Type = [\n {\n Id: -1,\n type: 'All',\n dispId: -1,\n },\n {\n Id: 1,\n type: 'IPD',\n dispId: 1,\n },\n {\n Id: 2,\n type: 'OPD',\n dispId: 2,\n },\n];\n\nexport const default_prescription_Type = {\n Id: -1,\n type: 'All',\n dispId: -1,\n};\n\nexport const appointmentTimeSlots = [\n {value: '00:00', id: 1, disabled: false},\n {value: '00:15', id: 2, disabled: false},\n {value: '00:30', id: 3, disabled: false},\n {value: '00:45', id: 4, disabled: false},\n {value: '01:00', id: 5, disabled: false},\n {value: '01:15', id: 6, disabled: false},\n {value: '01:30', id: 7, disabled: false},\n {value: '01:45', id: 8, disabled: false},\n {value: '02:00', id: 9, disabled: false},\n {value: '02:15', id: 10, disabled: false},\n {value: '02:30', id: 11, disabled: false},\n {value: '02:45', id: 12, disabled: false},\n {value: '03:00', id: 13, disabled: false},\n {value: '03:15', id: 14, disabled: false},\n {value: '03:30', id: 15, disabled: false},\n {value: '03:45', id: 16, disabled: false},\n {value: '04:00', id: 17, disabled: false},\n {value: '04:15', id: 18, disabled: false},\n {value: '04:30', id: 19, disabled: false},\n {value: '04:45', id: 20, disabled: false},\n {value: '05:00', id: 21, disabled: false},\n {value: '05:15', id: 22, disabled: false},\n {value: '05:30', id: 23, disabled: false},\n {value: '05:45', id: 24, disabled: false},\n {value: '06:00', id: 25, disabled: false},\n {value: '06:15', id: 26, disabled: false},\n {value: '06:30', id: 27, disabled: false},\n {value: '06:45', id: 28, disabled: false},\n {value: '07:00', id: 29, disabled: false},\n {value: '07:15', id: 30, disabled: false},\n {value: '07:30', id: 31, disabled: false},\n {value: '07:45', id: 32, disabled: false},\n {value: '08:00', id: 33, disabled: false},\n {value: '08:15', id: 34, disabled: false},\n {value: '08:30', id: 35, disabled: false},\n {value: '08:45', id: 36, disabled: false},\n {value: '09:00', id: 37, disabled: false},\n {value: '09:15', id: 38, disabled: false},\n {value: '09:30', id: 39, disabled: false},\n {value: '09:45', id: 40, disabled: false},\n {value: '10:00', id: 41, disabled: false},\n {value: '10:15', id: 42, disabled: false},\n {value: '10:30', id: 43, disabled: false},\n {value: '10:45', id: 44, disabled: false},\n {value: '11:00', id: 45, disabled: false},\n {value: '11:15', id: 46, disabled: false},\n {value: '11:30', id: 47, disabled: false},\n {value: '11:45', id: 48, disabled: false},\n {value: '12:00', id: 49, disabled: false},\n {value: '12:15', id: 50, disabled: false},\n {value: '12:30', id: 51, disabled: false},\n {value: '12:45', id: 52, disabled: false},\n {value: '13:00', id: 53, disabled: false},\n {value: '13:15', id: 54, disabled: false},\n {value: '13:30', id: 55, disabled: false},\n {value: '13:45', id: 56, disabled: false},\n {value: '14:00', id: 57, disabled: false},\n {value: '14:15', id: 58, disabled: false},\n {value: '14:30', id: 59, disabled: false},\n {value: '14:45', id: 60, disabled: false},\n {value: '15:00', id: 61, disabled: false},\n {value: '15:15', id: 62, disabled: false},\n {value: '15:30', id: 63, disabled: false},\n {value: '15:45', id: 64, disabled: false},\n {value: '16:00', id: 65, disabled: false},\n {value: '16:15', id: 66, disabled: false},\n {value: '16:30', id: 67, disabled: false},\n {value: '16:45', id: 68, disabled: false},\n {value: '17:00', id: 69, disabled: false},\n {value: '17:15', id: 70, disabled: false},\n {value: '17:30', id: 71, disabled: false},\n {value: '17:45', id: 72, disabled: false},\n {value: '18:00', id: 73, disabled: false},\n {value: '18:15', id: 74, disabled: false},\n {value: '18:30', id: 75, disabled: false},\n {value: '18:45', id: 76, disabled: false},\n {value: '19:00', id: 77, disabled: false},\n {value: '19:15', id: 78, disabled: false},\n {value: '19:30', id: 79, disabled: false},\n {value: '19:45', id: 80, disabled: false},\n {value: '20:00', id: 81, disabled: false},\n {value: '20:15', id: 82, disabled: false},\n {value: '20:30', id: 83, disabled: false},\n {value: '20:45', id: 84, disabled: false},\n {value: '21:00', id: 85, disabled: false},\n {value: '21:15', id: 86, disabled: false},\n {value: '21:30', id: 87, disabled: false},\n {value: '21:45', id: 88, disabled: false},\n {value: '22:00', id: 89, disabled: false},\n {value: '22:15', id: 90, disabled: false},\n {value: '22:30', id: 91, disabled: false},\n {value: '22:45', id: 92, disabled: false},\n {value: '23:00', id: 93, disabled: false},\n {value: '23:15', id: 94, disabled: false},\n {value: '23:30', id: 95, disabled: false},\n {value: '23:45', id: 96, disabled: false},\n];\n\n// export const clientPortalURL = `http://localhost:3001`; //local\n// export const clientPortalURL = `https://vendordev.gudmed.in`; //ner\n// export const clientPortalURL = `https://clitest.gudmed.in`; //amplify test\n// export const clientPortalURL = `https://vendoruat.gudmed.in`; //uat\nexport const clientPortalURL = `https://client.gudmed.in`; //prod\n","import createAuth0Client from '@auth0/auth0-spa-js';\n\nconst Auth0Config = async () => {\n return await createAuth0Client({\n client_id: '617CCZ9ZFiNYIw9KLRy6qbkh1HK3KgOJ',\n domain: 'dev-obk84v4k.auth0.com',\n redirect_uri: 'https://crema-react.firebaseapp.com/dashboards/crm',\n audience: 'https://dev-obk84v4k.auth0.com/userinfo',\n });\n};\n\nexport default Auth0Config;\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 21-06-2021\n * Descriptions : Login AND Signup Functionality\n * Dependicies : To use JWT Authendication token\n ************/\nimport React from 'react';\nimport {\n FETCH_START,\n FETCH_SUCCESS,\n FETCH_ERROR,\n SET_AUTH_TOKEN,\n WORD_PREVIEW_CLIENT,\n SET_MOBILENO,\n SET_PASWD,\n SIGNOUT_AUTH_SUCCESS,\n UPDATE_AUTH_USER,\n OTP_SUCCESS,\n OTP_ERROR,\n OTP_SIGNUP_ERROR,\n SIGNIN_ERROR,\n PATIENT_COMPLETED_COUNT,\n PATIENT_COMPLETED_DATA,\n OTP_UPDTE_ERROR,\n OTP_UPDTE_SUCCESS,\n MOBILE_OTP_SUCCESS,\n SETPASS_DOCID,\n SETPASS_MOB,\n} from '../../shared/constants/ActionTypes';\n\nimport jwtAxios from '../../@crema/services/auth/jwt-auth/jwt-api';\nimport {\n fetchError,\n fetchStart,\n fetchSuccess,\n onWriteCloudWatchLog,\n} from './Common';\nimport {AuthType} from '../../shared/constants/AppEnums';\nimport IntlMessages from '../../@crema/utility/IntlMessages';\n\n//AWS cloud watch name\nvar streamname = 'Redux_Actions';\nvar filename = 'JWTAuth.js';\n\nexport const onJwtUserSignUp = ({email, password, name}) => {\n return async (dispatch) => {\n dispatch(fetchStart());\n const body = {email, name, password};\n try {\n const res = await jwtAxios.post('users', body);\n localStorage.setItem('token', res.data.token);\n dispatch(setJWTToken(res.data.token));\n dispatch(loadJWTUser());\n } catch (err) {\n dispatch(fetchError(err.response.data.error));\n }\n };\n};\nexport const onGetOtpfunction = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/getOtpDoctor', value)\n .then((res) => {\n if (res.data.message.includes('Error')) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: OTP_SIGNUP_ERROR,\n payload: res.data.message.split(':')[1],\n });\n }\n if (res.data.body === 'OTP SENT') {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: OTP_SUCCESS,\n payload: true,\n });\n dispatch({\n type: OTP_SIGNUP_ERROR,\n payload: '',\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: FETCH_ERROR,\n payload: 'Error',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOtpfunction',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch({type: FETCH_SUCCESS});\n dispatch(fetchError('Error'));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOtpfunction',\n '0',\n err,\n ),\n );\n }\n };\n};\nexport const GetmobilenoeditOtp = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/GetmobilenoeditOtp', value)\n .then((res) => {\n if (res.data.message.includes('Error')) {\n dispatch({\n type: OTP_SIGNUP_ERROR,\n payload: res.data.message.split(':')[1],\n });\n }\n if (res.data.body === 'OTP SENT') {\n dispatch({\n type: MOBILE_OTP_SUCCESS,\n payload: true,\n });\n dispatch({\n type: OTP_SIGNUP_ERROR,\n payload: '',\n });\n }\n })\n .catch((error) => {\n dispatch({\n type: FETCH_ERROR,\n payload: 'Error',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOtpfunction',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError('Error'));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOtpfunction',\n '0',\n err,\n ),\n );\n }\n };\n};\nexport const GetemaileditOtp = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/GetemaileditOtp', value)\n .then((res) => {\n if (res.data.message.includes('Error')) {\n dispatch({\n type: OTP_SIGNUP_ERROR,\n payload: res.data.message.split(':')[1],\n });\n }\n if (res.data.body === 'OTP SENT') {\n dispatch({\n type: OTP_SUCCESS,\n payload: true,\n });\n dispatch({\n type: OTP_SIGNUP_ERROR,\n payload: '',\n });\n }\n })\n .catch((error) => {\n dispatch({\n type: FETCH_ERROR,\n payload: 'Error',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOtpfunction',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError('Error'));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOtpfunction',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const onGetUpdateOtpfunction = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/getOtpUpdateDoctor', value)\n .then((res) => {\n if (res.data.message.includes('Error')) {\n dispatch({\n type: OTP_UPDTE_ERROR,\n payload: res.data.message.split(':')[1],\n });\n }\n if (res.data.body === 'OTP SENT') {\n dispatch({\n type: OTP_UPDTE_ERROR,\n payload: '',\n });\n dispatch({\n type: OTP_UPDTE_SUCCESS,\n payload: true,\n });\n }\n })\n .catch((error) => {\n dispatch({\n type: FETCH_ERROR,\n payload: 'Error',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetUpdateOtpfunction',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError('Error'));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetUpdateOtpfunction',\n '0',\n err,\n ),\n );\n }\n };\n};\n//Forgot password OTP function\nexport const onGetForgotpaswdOtpfunction = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/getForgotPasswordOtpDoctor', value)\n .then((res) => {\n let err_text = 'This Mobile No. does not exists in our records';\n if (value && value['isNumber']) {\n err_text = 'This Mobile No. does not exists in our records';\n } else {\n err_text = `This Email ID doesn't exists in our records`;\n }\n if (res.hasOwnProperty.call(res.data, 'body')) {\n if (res.data.body === 'OTP SENT') {\n dispatch({\n type: OTP_ERROR,\n payload: '',\n });\n dispatch({\n type: OTP_SUCCESS,\n payload: true,\n });\n } else {\n dispatch({\n type: OTP_ERROR,\n payload: err_text,\n });\n }\n } else {\n dispatch({\n type: OTP_ERROR,\n payload: err_text,\n });\n }\n })\n .catch((error) => {\n dispatch({\n type: FETCH_ERROR,\n payload: error,\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetForgotpaswdOtpfunction',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetForgotpaswdOtpfunction',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const onJwtSignIn = ({mobileNbr, paswd}) => {\n return async (dispatch) => {\n dispatch({type: FETCH_START});\n const body = {mobileNbr, paswd};\n try {\n await jwtAxios\n .post('v1/docMgmt/loginjwt', body)\n .then((res) => {\n if (res.data.hasOwnProperty.call(res.data, 'message')) {\n if (res.data.message.includes('Error')) {\n let message = res.data.message.split(':');\n console.log(message[1], 'message');\n dispatch({\n type: SIGNIN_ERROR,\n payload: message[1],\n });\n }\n } else {\n localStorage.setItem('token', res.data.body.token);\n dispatch(setJWTToken(res.data.body.token));\n dispatch(setMobileNbr(mobileNbr));\n dispatch(setPaswd(paswd));\n var body = {mobileNbr, paswd, jwtToken: res.data.body.token};\n dispatch(loadJWTUser(body));\n }\n })\n .catch((error) => {\n dispatch({\n type: FETCH_ERROR,\n payload: error.response.data.message.split(':')[1].trim(),\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onJwtSignIn',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'onJwtSignIn', '0', err),\n );\n }\n };\n};\n\nexport const loadJWTUser = (body) => {\n return async (dispatch) => {\n dispatch(fetchStart());\n try {\n dispatch(fetchSuccess());\n await jwtAxios\n .post('v1/docMgmt/login', body)\n .then((res) => {\n if (res.status === 200) {\n var response = res.data.body[0];\n var clientList = response?.generateWordClient;\n let locArr = [];\n if (clientList?.length > 0) {\n clientList.map((item) => {\n if (item?.clientID) {\n let id = Number(item?.clientID);\n locArr.push(id);\n }\n });\n }\n dispatch({\n type: WORD_PREVIEW_CLIENT,\n payload: locArr,\n });\n localStorage.setItem('roleId', '1');\n let mappedDoctor =\n response.mappedDoctors && response.mappedDoctors != '0'\n ? response.mappedDoctors.split(',')\n : [];\n mappedDoctor.push(response.doctorCode.toString());\n dispatch({\n type: UPDATE_AUTH_USER,\n payload: {\n authType: AuthType.JWT_AUTH,\n displayName: response.docname,\n email: response.email,\n mobileNo: response.mobileNo,\n doctorCode: response.doctorCode,\n roleId: response.doctorCategory,\n role:\n response.doctorCategory == 2 ? 'Doctor' : 'Premium Doctor',\n doctorstatus: response.doctorstatus,\n token: '',\n settings: response.settings,\n mappedDoctor: mappedDoctor,\n doctorcategory: response.doctorCategory,\n logo: response.doctorProfile,\n uniqueDocID: response.uniqueDocID,\n qrCode: response.qrCode,\n transDate: response.transDate,\n mrdDrCheck: response.mrdDrCheck == true ? 3 : '',\n mrdDrcat: response.mrdDrCheck == true ? 'MRD Doctor' : '',\n },\n });\n } else {\n if (res.data.message.includes('Error')) {\n if (res.data.message.includes('1')) {\n dispatch({\n type: SIGNIN_ERROR,\n payload: 'Mobile No. or password is incorrect',\n });\n }\n if (res.data.message.includes('2')) {\n dispatch({\n type: SIGNIN_ERROR,\n payload: 'This Mobile No./Email ID is not registered with us',\n });\n }\n }\n }\n })\n .catch((error) => {\n dispatch({type: UPDATE_AUTH_USER, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'loadJWTUser',\n '0',\n error,\n ),\n );\n return;\n });\n } catch (err) {\n dispatch(fetchError(err.response.error));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'loadJWTUser', '0', err),\n );\n return;\n }\n };\n};\n\nexport const setJWTToken = (token) => {\n return async (dispatch) => {\n dispatch({\n type: SET_AUTH_TOKEN,\n payload: token,\n });\n };\n};\n\nexport const setMobileNbr = (number) => {\n return async (dispatch) => {\n dispatch({\n type: SET_MOBILENO,\n payload: number,\n });\n };\n};\n\nexport const setPaswd = (paswd) => {\n return async (dispatch) => {\n dispatch({\n type: SET_PASWD,\n payload: paswd,\n });\n };\n};\n\nexport const onJWTAuthSignout = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/userMgmt/storeOnlineOfflineJwt', value)\n .then((data) => {\n if (data.status === 200) {\n //Call inprogress list data - Get pending list data using token\n try {\n value['jwtToken'] = data.data.body.token;\n jwtAxios\n .post('v1/userMgmt/storeOnlineOffline', value)\n .then((data) => {\n if (data.status === 200) {\n setTimeout(() => {\n dispatch({type: SIGNOUT_AUTH_SUCCESS});\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: PATIENT_COMPLETED_DATA,\n payload: null,\n });\n dispatch({\n type: PATIENT_COMPLETED_COUNT,\n payload: null,\n });\n localStorage.removeItem('token');\n localStorage.clear();\n window.localStorage.clear();\n window.location.reload();\n }, 500);\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onJWTAuthSignout',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onJWTAuthSignout',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onJWTAuthSignout',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n }\n };\n};\n\nexport const passwordSetLogout = (value, history, tag) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n if (tag) {\n dispatch({type: SIGNOUT_AUTH_SUCCESS});\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: PATIENT_COMPLETED_DATA,\n payload: [],\n });\n dispatch({\n type: PATIENT_COMPLETED_COUNT,\n payload: [],\n });\n localStorage.removeItem('token');\n localStorage.clear();\n window.localStorage.clear();\n }\n let body = {\n value: value,\n };\n jwtAxios.post('v1/doctorDtls/checkPassAuth', body).then((data) => {\n if (data.data.status === 200) {\n if (data.data.message.includes('Error')) {\n history.push('/expiredLink');\n } else {\n let response = data.data.body;\n dispatch({\n type: SETPASS_DOCID,\n payload: response?.doctorId,\n });\n sessionStorage.setItem('setpassMobileNo', response?.mobileNo);\n dispatch({\n type: SETPASS_MOB,\n payload: response?.mobileNo,\n });\n history.push('/set-password');\n }\n } else {\n history.push('/expiredLink');\n }\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n }\n };\n};\n","import {\n FETCH_ERROR,\n FETCH_START,\n FETCH_SUCCESS,\n UPDATE_AUTH_USER,\n} from '../../shared/constants/ActionTypes';\nimport Auth0Config from '../../@crema/services/auth/auth0/auth0Config';\nimport {AuthType} from '../../shared/constants/AppEnums';\nimport {setJWTToken} from './JWTAuth';\nimport {defaultUser} from '../../shared/constants/AppConst';\n\nexport const onSignInAuth0User = () => {\n return async (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n const auth0 = await Auth0Config();\n await auth0.loginWithPopup({});\n auth0\n .getUser()\n .then((user) => {\n dispatch({type: FETCH_SUCCESS});\n dispatch(setJWTToken(user.sub));\n dispatch({\n type: UPDATE_AUTH_USER,\n payload: getUserObject(user),\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n });\n } catch (error) {\n dispatch({type: FETCH_ERROR, payload: error.message});\n }\n };\n};\n\nconst getUserObject = (user) => {\n return {\n authType: AuthType.AUTH0,\n role: defaultUser.role,\n uid: user.sub,\n displayName: user.name,\n email: user.email,\n photoURL: user.picture,\n token: user.sub,\n };\n};\n\nexport const onSignOutAuth0User = () => {\n return async (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n const auth0 = await Auth0Config();\n auth0.logout();\n dispatch({type: UPDATE_AUTH_USER, payload: null});\n } catch (error) {\n dispatch({type: FETCH_ERROR, payload: error.message});\n }\n };\n};\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 23-06-2021\n * Descriptions : Dashboard api calling\n ************/\n\nimport React from 'react';\nimport {\n FETCH_ERROR,\n FETCH_START,\n HOSPITAL_SEARCH_DATA,\n FETCH_SUCCESS,\n GET_DOCTOR_EDITDATA,\n DOCTOR_SPECIALIZATION,\n DOCTOR_SUBSPECIALIZATION,\n DOCTOR_QUALIFICATION,\n DEPARTMENT_MASTER,\n STATE_MASTER,\n DOCTOR_SEARCH_ARRAY,\n DOCTOR_SEARCH_DATA,\n ERX_OPERATOR_NOTES,\n resulttitle,\n CHANGE_MOBILENO_RES,\n bloodsugarList,\n SET_DOCTOR_ID_NAME,\n DOCTOR_SUCCESS_MSG,\n SHOW_MESSAGE,\n DASHBOARD_PENDING_PATIENT_DATA,\n DASHBOARD_ERX_DATA,\n DASHBOARD_RX_DETAILS,\n DASHBOARD_ERX_DOC_OBSV,\n DASHBOARD_ERX_LAB_OBSV,\n DASHBOARD_ERX_PATIENT_VITAL,\n DASHBOARD_ERX_DOCPROCEDURE,\n DASHBOARD_ERX_MEDICINE_DETAIL,\n DASHBOARD_GRX_MEDICINE_DETAIL,\n UNIT_DATA,\n PATIENT_SUCCESS_MSG,\n DELETE_MEDCINE_SUCCESS_MSG,\n ERX_IMG_ARR,\n ERX_IMG_OCR_ARR,\n INVESTIGATION_CATEGORY_DATA,\n REPORT_DETAILS,\n TAG_CATEGORY_DATA,\n BUCKET_CAPTCHA,\n INVESTIGATION_DISEASE_DATA,\n TAG_DISEASE_DATA,\n PATIENT_LISTS,\n TODAY_APPOINTMENT_DATA,\n SEARCH_REPORTS_DATA,\n SEARCH_PATIENT_DATA,\n SEARCH_PATIENT_OLDDATA,\n SEARCH_DISEASE_DATA,\n SEARCH_SYMPTOMS_DATA,\n ONLINE_OFFLINE_STATUS,\n SEARCH_PROCEDURE_DATA,\n} from '../../shared/constants/ActionTypes';\nimport IntlMessages from '../../@crema/utility/IntlMessages';\nimport jwtAxios from '../../@crema/services/auth/jwt-auth/jwt-api';\nimport {fetchError, onWriteCloudWatchLog} from './Common';\nimport {error} from 'winston';\n//AWS cloud watch name\nvar streamname = 'Redux_Actions';\nvar filename = 'Dashboard.js';\nconst crypto = require('crypto');\nvar algorithm = 'aes-256-ctr';\nvar password = 'd6F3Efeq';\n//specialization and doctor specialization event\nexport const onGetSpecialization = (body) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n var value = body;\n jwtAxios\n .post('v1/doctorDtls/specializationjwt', body)\n .then((data) => {\n try {\n body['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/doctorDtls/specialization', body)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n\n dispatch({\n type: DOCTOR_SPECIALIZATION,\n payload: data.data.body.specialization,\n });\n dispatch({\n type: DOCTOR_SUBSPECIALIZATION,\n payload: data.data.body.subspecialization,\n });\n jwtAxios\n .post('v1/pateRxMgmt/mastersjwt', value)\n .then((data) => {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/pateRxMgmt/masters', value)\n .then((data) => {\n dispatch({\n type: DEPARTMENT_MASTER,\n payload: data.data.body.deptList,\n });\n dispatch({\n type: DOCTOR_QUALIFICATION,\n payload: data.data.body.quaList,\n });\n dispatch({\n type: STATE_MASTER,\n payload: data.data.body.stateList,\n });\n dispatch({\n type: resulttitle,\n payload: data.data.body.resulttitle,\n });\n dispatch({\n type: bloodsugarList,\n payload: data.data.body.bloodsugarList,\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSpecialization',\n '0',\n error,\n ),\n );\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSpecialization',\n '0',\n error,\n ),\n );\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSpecialization',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSpecialization',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSpecialization',\n '0',\n error,\n ),\n );\n });\n };\n};\n\n// Get ongetbucketandcaptcha data\nexport const ongetbucketandcaptcha = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/pateRxMgmt/ongetbucketandcaptcha')\n .then((data) => {\n if (data.data.status === 200) {\n // dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: BUCKET_CAPTCHA,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'ongetbucketandcaptcha',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'ongetbucketandcaptcha',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n//Decrypt password\nconst decryptpassword = function ({data}) {\n var decipher = crypto.createDecipher(algorithm, password);\n var dec = decipher.update(data, 'hex', 'utf8');\n dec += decipher.final('utf8');\n return dec;\n};\n\nexport const onGetSearchHospital = (value, doctorId) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n\n //Call User list Token - Get Token\n try {\n // get jwt token based on input\n jwtAxios\n .post('v1/doctorDtls/searchHospitalJwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n // get the data\n jwtAxios\n .post('v1/doctorDtls/searchHospital', value)\n .then((data) => {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: HOSPITAL_SEARCH_DATA,\n payload: data.data.body,\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchHospital',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchHospital',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchHospital',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchHospital',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n// Get ongetbucketandcaptcha data\nexport const ongetEncryptbucketcaptcha = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/pateRxMgmt/getUploadPresCredentialsJwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/pateRxMgmt/getUploadPresCredentials', value)\n .then((data) => {\n if (data.data.status === 200) {\n let data1 = data.data.body;\n let res = {\n type: decryptpassword({data: data1?.type}),\n accessKey: decryptpassword({data: data1?.accessKey}),\n secretAccessKey: decryptpassword({\n data: data1?.secretAccessKey,\n }),\n bucketName: decryptpassword({data: data1?.bucketName}),\n region: decryptpassword({data: data1?.region}),\n filePath: decryptpassword({data: data1?.filePath}),\n captchaKey: decryptpassword({data: data1?.captchaKey}),\n };\n dispatch({\n type: BUCKET_CAPTCHA,\n payload: res,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n });\n } catch (error) {\n dispatch({type: FETCH_ERROR, payload: error.message});\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'ongetEncryptbucketcaptcha',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'ongetEncryptbucketcaptcha',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n// save doctor api\nexport const saveDoctorDetails = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n\n //Call User list Token - Get Token\n try {\n jwtAxios\n .post('v1/doctorDtls/createjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n\n jwtAxios\n .post('v1/doctorDtls/create', value)\n .then((data) => {\n dispatch({\n type: SET_DOCTOR_ID_NAME,\n payload: {\n DocID: data.data.body.doctorId,\n DocName: data.data.body.doctorName,\n RegisterNo: data.data.body.registerNo,\n EmailId: data.data.body.email,\n },\n });\n localStorage.setItem('DocID', data.data.body.ddoctorId);\n localStorage.setItem('DocName', data.data.body.doctorName);\n dispatch({\n type: GET_DOCTOR_EDITDATA,\n payload: {},\n });\n dispatch({\n type: DOCTOR_SUCCESS_MSG,\n payload: data.data.message,\n });\n dispatch({\n type: SHOW_MESSAGE,\n payload: 'Doctor saved successfully',\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'saveDoctorDetails',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'saveDoctorDetails',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'saveDoctorDetails',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'saveDoctorDetails',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n//Get dashboard Pending patient information\nexport const onGetPendingPatInfn = ({userId, patId, userCode, erxid}) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n const body = {userId, patId, userCode, erxid};\n //Call Patient data Token - Get Token\n try {\n jwtAxios\n .post('v1/patientDtls/getpatientjwt', body)\n .then((data) => {\n if (data.status === 200) {\n //Call Patient data - Get patient data using token\n try {\n const jwtToken = data.data.body['token'];\n const bodytoken = {userId, patId, userCode, erxid, jwtToken};\n jwtAxios\n .post('v1/patientDtls/getpatient', bodytoken)\n .then((data) => {\n if (data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getdata = data.data.body[0];\n dispatch({\n type: DASHBOARD_PENDING_PATIENT_DATA,\n payload: getdata,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n//Get dashboard Pending erx information\nexport const onGeteRxInfn = ({userId, erxReqId, userCode}) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n let body = {userId, erxReqId, userCode};\n\n //Call Patient data Token - Get Token\n try {\n jwtAxios\n .post('v1/pateRxMgmt/geteRxDtlsJwt', body)\n .then((data) => {\n if (data.status === 200) {\n //Call Patient data - Get patient data using token\n try {\n const jwtToken = data.data.body['token'];\n let bodytoken = {userId, erxReqId, jwtToken, userCode};\n // alert(erxReqId)\n jwtAxios\n .post('v1/pateRxMgmt/geteRxDtls', bodytoken)\n .then((data) => {\n if (data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getdata = data.data.body;\n dispatch({\n type: DASHBOARD_ERX_DATA,\n payload: getdata,\n });\n\n //Get Erx image and OCr data\n if (getdata) {\n if (getdata.erxImageOCR.length > 0) {\n var imgurl = [];\n var imgocr = [];\n for (var i = 0; i < getdata.erxImageOCR.length; i++) {\n //Push only images\n imgurl.push({url: getdata.erxImageOCR[i].erxUrl});\n //Push Image with ocr data and extension\n imgocr.push({\n url: getdata.erxImageOCR[i].erxUrl,\n ocrdata: getdata.erxImageOCR[i].ocrData,\n extension: getdata.erxImageOCR[i].urlExtension,\n rownumber: getdata.erxImageOCR[i].rownumber,\n });\n }\n\n dispatch({\n type: ERX_IMG_ARR,\n payload: imgurl,\n });\n dispatch({\n type: ERX_IMG_OCR_ARR,\n payload: imgocr,\n });\n }\n }\n dispatch({\n type: GET_DOCTOR_EDITDATA,\n payload: {},\n });\n if (getdata.rxdtls.length > 0) {\n dispatch({\n type: DASHBOARD_RX_DETAILS,\n payload: getdata.rxdtls[0],\n });\n dispatch({\n type: SET_DOCTOR_ID_NAME,\n payload: {\n DocID: getdata.rxdtls[0].doctorId,\n DocName: getdata.rxdtls[0].docName,\n RegisterNo: getdata.rxdtls[0].registerno,\n EmailId: getdata.rxdtls[0].email,\n },\n });\n }\n\n if (getdata.docobsv.length > 0) {\n dispatch({\n type: DASHBOARD_ERX_DOC_OBSV,\n payload: getdata.docobsv[0],\n });\n }\n if (getdata.labobsv.length > 0) {\n dispatch({\n type: DASHBOARD_ERX_LAB_OBSV,\n payload: getdata.labobsv[0],\n });\n }\n\n if (getdata.patientvital.length > 0) {\n dispatch({\n type: DASHBOARD_ERX_PATIENT_VITAL,\n payload: getdata.patientvital[0],\n });\n }\n\n if (getdata.docprocedure.length > 0) {\n dispatch({\n type: DASHBOARD_ERX_DOCPROCEDURE,\n payload: getdata.docprocedure,\n });\n }\n\n if (getdata.medicinedtls.length > 0) {\n var arraydata = getdata.medicinedtls.map((e, i) => {\n return {\n saltName: e.saltName,\n medName: e.medName,\n mn: e.mn,\n af: e.an,\n en: e.en,\n nt: e.nt,\n unit: e.uomId,\n unitcode: e.uomId,\n quantity: e.dosage,\n refferal: e.referral,\n route: e.route,\n advice: e.advice,\n duration: e.duration,\n frequency: e.frequency,\n seqno: e.txnNo,\n };\n });\n dispatch({\n type: DASHBOARD_ERX_MEDICINE_DETAIL,\n payload: arraydata,\n });\n }\n if (getdata.genericmedicinedtls.length > 0) {\n var arraydatageneric = getdata.genericmedicinedtls.map(\n (e, i) => {\n return {\n saltName: e.saltName,\n medName: e.medName,\n mn: e.mn,\n af: e.an,\n en: e.en,\n nt: e.nt,\n unit: e.uomId,\n unitcode: e.uomId,\n quantity: e.dosage,\n refferal: e.referral,\n refferalHindi: e.referralHindi,\n route: e.route,\n advice: e.advice,\n\n duration: e.duration,\n\n frequency: e.frequency,\n seqno: e.txnNo,\n };\n },\n );\n dispatch({\n type: DASHBOARD_GRX_MEDICINE_DETAIL,\n payload: arraydatageneric,\n });\n }\n\n if (getdata.rxdtls.length > 0) {\n var patientId = getdata.rxdtls[0].patientId;\n\n if (\n getdata.rxdtls[0].doctorId !== '' &&\n getdata.rxdtls[0].doctorId !== '0' &&\n getdata.rxdtls[0].doctorId !== null &&\n getdata.rxdtls[0].doctorId !== undefined\n ) {\n dispatch(\n onGetDoctorInfo({\n userId: body.userId,\n erxId: body.erxReqId,\n userCode: body.userCode,\n }),\n );\n }\n dispatch(\n onGetPendingPatInfn({\n userId: body.userId,\n patId: patientId,\n userCode: body.userCode,\n erxid: body.erxReqId,\n }),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeteRxInfn',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeteRxInfn',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeteRxInfn',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'onGeteRxInfn', '0', err),\n );\n }\n };\n};\n// doctor tab seacrh doctor using mobile No/register\nexport const onGetSearchArray = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // get jwt token based on input\n jwtAxios\n .post('v1/doctorDtls/searchDoctorRegisterJwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n // get the data\n jwtAxios\n .post('v1/doctorDtls/searchDoctorRegister', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n\n dispatch({\n type: DOCTOR_SEARCH_ARRAY,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchArray',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchArray',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchArray',\n '0',\n error,\n ),\n );\n });\n };\n};\n\n//search match doctor detail,s\n\n// doctor tab seacrh doctor using mobile No/register\nexport const onGetSearchDoctor = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // get jwt token based on input\n jwtAxios\n .post('v1/doctorDtls/searchDoctorJwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n // get the data\n jwtAxios\n .post('v1/doctorDtls/searchDoctor', value)\n .then((data) => {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: DOCTOR_SEARCH_DATA,\n payload: data.data.body,\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchDoctor',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchDoctor',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchDoctor',\n '0',\n error,\n ),\n );\n });\n };\n};\n// doctor tab edit load event\nexport const onGetDoctorInfo = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // get jwt token based on input\n jwtAxios\n .post('v1/doctorDtls/getDoctorJwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n // get the data\n jwtAxios\n .post('v1/doctorDtls/getDoctor', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n\n dispatch({\n type: GET_DOCTOR_EDITDATA,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetDoctorInfo',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetDoctorInfo',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetDoctorInfo',\n '0',\n error,\n ),\n );\n });\n };\n};\n\n//get erxNotes\nexport const onGeteRxNotes = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/pateRxMgmt/getOperatorNotesjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/pateRxMgmt/getOperatorNotes', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getdata = data.data.body;\n dispatch({\n type: ERX_OPERATOR_NOTES,\n payload: getdata,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeteRxNotes',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeteRxNotes',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeteRxNotes',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'onGeteRxNotes', '0', err),\n );\n }\n };\n};\n\n//Get dashboard Pending patient information\nexport const onChangeMobileNo = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n //Call Patient data Token - Get Token\n try {\n jwtAxios\n .post('v1/docMgmt/changeDocMobileNojwt', value)\n .then((data) => {\n if (data.status === 200) {\n //Call Patient data - Get patient data using token\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/changeDocMobileNo', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getdata = data.data.message;\n dispatch({\n type: CHANGE_MOBILENO_RES,\n payload: getdata,\n });\n } else {\n dispatch({\n type: CHANGE_MOBILENO_RES,\n payload: data.data.message,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n//Get dashboard Pending patient information\nexport const onChangeemailid = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n //Call Patient data Token - Get Token\n try {\n jwtAxios\n .post('v1/docMgmt/changeDocEmailjwt', value)\n .then((data) => {\n if (data.status === 200) {\n //Call Patient data - Get patient data using token\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/changeDocEmail', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getdata = data.data.message;\n dispatch({\n type: CHANGE_MOBILENO_RES,\n payload: getdata,\n });\n } else {\n dispatch({\n type: CHANGE_MOBILENO_RES,\n payload: data.data.message,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPendingPatInfn',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n// Delete eRx Medicine details\nexport const onDeleteMedicineDetails = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n //Call Update Token - Get Token\n try {\n jwtAxios\n .post('v1/pateRxMgmt/deleteMedicineData', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n\n dispatch({\n type: DELETE_MEDCINE_SUCCESS_MSG,\n payload: data.data.message,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onDeleteMedicineDetails',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onDeleteMedicineDetails',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n// Get Unit data\nexport const onGetUnits = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/pateRxMgmt/getMargUomjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/pateRxMgmt/getMargUom', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n var arraydata = data.data.body.map((e, i) => {\n return {\n title: e.unit,\n };\n });\n dispatch({\n type: UNIT_DATA,\n payload: arraydata,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetUnits',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetUnits',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetUnits',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'onGetUnits', '0', err),\n );\n }\n };\n};\n\n// Update Patient details\nexport const onUpdatePatientDetails = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n //Call Update Token - Get Token\n try {\n jwtAxios\n .post('v1/patientDtls/updatejwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/patientDtls/update', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n\n dispatch({\n type: PATIENT_SUCCESS_MSG,\n payload: data.data.message,\n });\n dispatch({\n type: SHOW_MESSAGE,\n payload: data.data.message,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onUpdatePatientDetails',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onUpdatePatientDetails',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onUpdatePatientDetails',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onUpdatePatientDetails',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n// Get InvestigationCategory data\nexport const onGetInvestigationCategory = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/reportDtls/searchInvestigationCaetgoryjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/reportDtls/searchInvestigationCaetgory', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n var arraydata = [...data.data.body];\n dispatch({\n type: INVESTIGATION_CATEGORY_DATA,\n payload: data.data.body,\n });\n dispatch({\n type: TAG_CATEGORY_DATA,\n payload: arraydata,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetInvestigationCategory',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetInvestigationCategory',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetInvestigationCategory',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetInvestigationCategory',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const onGettodayAppointment = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/getTodayAppointmentDetailsJwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/getTodayAppointmentDetails', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: TODAY_APPOINTMENT_DATA,\n payload: data.data.body.todayAppointment,\n });\n console.log(data.data.body.todayAppointment, 'body');\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchDiseaseData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGettodayAppointment',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGettodayAppointment',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGettodayAppointment',\n '0',\n err,\n ),\n );\n }\n };\n};\nexport const onGeSearchDiseaseData = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/reportDtls/searchDiseaseCaetgoryjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/reportDtls/searchDiseaseCaetgory', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: SEARCH_DISEASE_DATA,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: SEARCH_DISEASE_DATA,\n payload: [],\n });\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchDiseaseData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchDiseaseData',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchDiseaseData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchDiseaseData',\n '0',\n err,\n ),\n );\n }\n };\n};\n//Search symptoms\nexport const onGeSearchSymptomsData = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/reportDtls/searchSymptomsCaetgoryjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/reportDtls/searchSymptomsCaetgory', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: SEARCH_SYMPTOMS_DATA,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: SEARCH_SYMPTOMS_DATA,\n payload: [],\n });\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchSymptomsData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchSymptomsData',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchSymptomsData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchSymptomsData',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const onGeSearchProcedureData = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/reportDtls/searchProcedureCaetgoryjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/reportDtls/searchProcedureCaetgory', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: SEARCH_PROCEDURE_DATA,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: SEARCH_PROCEDURE_DATA,\n payload: [],\n });\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchProcedureData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchProcedureData',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchProcedureData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchSymptomsData',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n// Get search patiet data data\nexport const onGeSearchPatientData = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/searchPatientDataJwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/searchPatientData', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: SEARCH_PATIENT_DATA,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: SEARCH_PATIENT_DATA,\n payload: [],\n });\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchPatientData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchPatientData',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchPatientData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchPatientData',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n// Get search patiet data data\nexport const onGeSearchPatientOldData = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/searchPatientOldDataJwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/searchPatientOldData', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: SEARCH_PATIENT_OLDDATA,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: SEARCH_PATIENT_OLDDATA,\n payload: [],\n });\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchPatientData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchPatientData',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchPatientData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeSearchPatientData',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const onGeteRxReports = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/reportDtls/getReportDetailsjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/reportDtls/getReportDetails', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n var reports = data.data.body.map(function (e) {\n var reportdata =\n e.reportTagId !== null &&\n e.reportTagId !== undefined &&\n e.reportTagId !== 0\n ? {uid: e.reportTagId, category: e.reportCategory}\n : {};\n e.reportTagId =\n e.reportTagId !== null && e.reportTagId !== undefined\n ? e.reportTagId\n : 0;\n return {...e, reportTag: reportdata};\n });\n dispatch({\n type: REPORT_DETAILS,\n payload: reports,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeteRxReports',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeteRxReports',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGeteRxReports',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'onGeteRxReports', '0', err),\n );\n }\n };\n};\n\n//get patient list for search dropdown\n\n// Get InvestigationCategory data\nexport const onGetPatientList = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/onGetPatientListjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/onGetPatientList', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n\n dispatch({\n type: PATIENT_LISTS,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientList',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientList',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientList',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientList',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const onGetSearchPatientReports = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/docMgmt/getSearchPatientReportsjwt', value)\n .then((data) => {\n try {\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/getSearchPatientReports', value)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n\n dispatch({\n type: SEARCH_REPORTS_DATA,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchPatientReports',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchPatientReports',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchPatientReports',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetSearchPatientReports',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const storeOnlineOfflineStatus = (value) => {\n return (dispatch) => {\n try {\n jwtAxios\n .post('v1/userMgmt/storeOnlineOfflineJwt', value)\n .then((data) => {\n if (data.status === 200) {\n //Call inprogresetUserPaswds list data - Get pending list data using token\n try {\n value['jwtToken'] = data.data.body.token;\n jwtAxios\n .post('v1/userMgmt/storeOnlineOffline', value)\n .then((data) => {\n if (data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n\n dispatch({\n type: ONLINE_OFFLINE_STATUS,\n payload: data.data.body,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'storeOnlineOfflineStatus',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'storeOnlineOfflineStatus',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'storeOnlineOfflineStatus',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'storeOnlineOfflineStatus',\n '0',\n err,\n ),\n );\n }\n };\n};\n","/************ \n * Developed by : Shiva Software Solutions\n * Date : 22-06-2021\n * Descriptions : User Mangament api calling \n ************/\nimport {\n FETCH_ERROR,\n SHOW_MESSAGE,\n FETCH_START,\n FETCH_SUCCESS, \n RESET_USER_PASWD,\n} from '../../shared/constants/ActionTypes'; \nimport jwtAxios from '../../@crema/services/auth/jwt-auth/jwt-api';\nimport {fetchError,onWriteCloudWatchLog} from './Common';\n//AWS cloud watch name\nvar streamname = 'Redux_Actions';\nvar filename = 'userManagement.js';\n// Reset User Password\nexport const onresetPassword = ({\n oldpaswd,\n newpaswd,\n mobileNbr,\n doctorCode \n}) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n const body = {oldpaswd, newpaswd, mobileNbr, doctorCode};\n //Call Reset User Password - get Token\n try {\n jwtAxios\n .post('v1/docMgmt/changepaswdjwt', body)\n .then((data) => {\n if (data.status === 200) {\n //Call Reset User Password - Reset User Password using token\n try {\n if (data.data.hasOwnProperty.call(data.data, 'message')) { \n dispatch({\n type: RESET_USER_PASWD,\n payload: 'incorrect',\n });\n return;\n }else{\n const jwtToken = data.data.body['token'];\n const bodytoken = {\n oldpaswd, newpaswd, mobileNbr, doctorCode,\n jwtToken,\n };\n jwtAxios\n .post('v1/docMgmt/changepaswd', bodytoken)\n .then((data) => {\n if (data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getuserdata = data.data.message;\n dispatch({\n type: RESET_USER_PASWD,\n payload: 'true',\n });\n dispatch({\n type: SHOW_MESSAGE,\n payload: getuserdata,\n });\n \n } else {\n dispatch({\n type: RESET_USER_PASWD,\n payload: 'incorrect',\n }); \n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(onWriteCloudWatchLog(streamname,filename,'onresetPassword','0',error));\n });\n }\n } catch (err) {\n dispatch(fetchError(err.message));\n dispatch(onWriteCloudWatchLog(streamname,filename,'onresetPassword','0',err));\n }\n } else {\n dispatch({\n type: RESET_USER_PASWD,\n payload: 'incorrect',\n }); \n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(onWriteCloudWatchLog(streamname,filename,'onresetPassword','0',error));\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(onWriteCloudWatchLog(streamname,filename,'onresetPassword','0',err));\n }\n };\n};\n \n ","import {\n auth, \n} from '../../@crema/services/auth/firebase/firebase';\nimport {\n FETCH_ERROR,\n FETCH_START,\n FETCH_SUCCESS,\n UPDATE_AUTH_USER,\n} from '../../shared/constants/ActionTypes'; \n\nexport const onSignOutFirebaseUser = () => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n auth\n .signOut()\n .then((data) => {\n dispatch({type: FETCH_SUCCESS});\n dispatch({type: UPDATE_AUTH_USER, payload: null});\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n });\n } catch (error) {\n dispatch({type: FETCH_ERROR, payload: error.message});\n }\n };\n}; \n","import {\n FETCH_ERROR,\n FETCH_START,\n FETCH_SUCCESS, \n UPDATE_AUTH_USER,\n} from '../../shared/constants/ActionTypes';\nimport {Auth} from 'aws-amplify';\nimport {AuthType} from '../../shared/constants/AppEnums';\nimport {defaultUser} from '../../shared/constants/AppConst';\n \n\nconst getUserObject = (user) => {\n return {\n authType: AuthType.AWS_COGNITO,\n role: defaultUser.role,\n uid: user.username,\n displayName: user.attributes.name,\n email: user.attributes.email,\n photoURL: user.photoURL,\n token: user.signInUserSession.accessToken.jwtToken,\n };\n};\n \nexport const onCognitoUserSignOut = () => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n Auth.signOut().then(() => {\n dispatch({type: FETCH_SUCCESS});\n dispatch({type: UPDATE_AUTH_USER, payload: null});\n });\n };\n};\n\nexport const onGetLoggedInCognitoUser = () => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n Auth.currentAuthenticatedUser()\n .then((user) => {\n if (user) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: UPDATE_AUTH_USER,\n payload: getUserObject(user),\n });\n } else {\n dispatch({type: FETCH_ERROR, payload: user.error});\n }\n })\n .catch(function (error) {\n dispatch({type: FETCH_ERROR, payload: error.message});\n });\n };\n};\n","import {\n SET_INITIAL_PATH,\n TOGGLE_NAV_COLLAPSED,\n} from '../../shared/constants/ActionTypes';\n\nexport const toggleNavCollapsed = () => {\n return (dispatch) => dispatch({type: TOGGLE_NAV_COLLAPSED});\n};\n\nexport const setInitialPath = (initialPath) => {\n return (dispatch) => dispatch({type: SET_INITIAL_PATH, payload: initialPath});\n};\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 23-06-2021\n * Descriptions : Dashboard api calling\n ************/\n\nimport React from 'react';\nimport {\n FETCH_ERROR,\n FETCH_START,\n PATIENT_COMPLETED_DATA,\n EXCEL_COMPLETE_DATA,\n EXCELVACCINE_COMPLETE_DATA,\n PATIENT_COMPLETED_PATIENT_NAME,\n PATIENT_COMPLETED_COUNT,\n PATIENT_COMPLETED_VACC_COUNT,\n PATIENT_COMPLETED_OLDCOUNT,\n PATIENT_FILTER_COUNT,\n PATIENTOLD_FILTER_COUNT,\n PATIENTOLDLIST_COMPLETED_DATA,\n FORGOT_PASWD_SUCCESS,\n FORGOT_PASWD_ERROR,\n FETCH_SUCCESS,\n ERX_IMG_OCR_ARR,\n ERX_IMG_VACC_ARR,\n ERX_IMG_VACC_OCR_ARR,\n WORD_PREVIEW_CLIENT,\n ERX_IMG_ARR,\n ERX_DATA_HTML,\n ERX_DATA_HTML_NO_DATA,\n OTP_TIME,\n PASSWORD_REQUEST_TAG,\n SETPASS_DOCID,\n SETPASS_MOB,\n PATIENT_COMPLETED_VACC_DATA,\n PATIENT_VACC_FILTER_COUNT,\n AGE_VACCINATION_LIST,\n} from '../../shared/constants/ActionTypes';\nimport IntlMessages from '../../@crema/utility/IntlMessages';\nimport jwtAxios from '../../@crema/services/auth/jwt-auth/jwt-api';\nimport {fetchError, onWriteCloudWatchLog} from './Common';\n//AWS cloud watch name\nvar streamname = 'Redux_Actions';\nvar filename = 'Patient.js';\n//Get Patient completed List data\nexport const onGetPatientCompletedList = ({\n symptoms,\n procedure,\n mobileNbr,\n fromDate,\n toDate,\n mappedDoctor,\n doctorId,\n pName,\n limit,\n offset,\n reportTag,\n disease,\n process,\n prescriptionType = -1,\n careTakerName,\n}) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n\n const body = {\n symptoms,\n procedure,\n mobileNbr,\n fromDate,\n toDate,\n mappedDoctor,\n doctorId,\n pName,\n limit,\n offset,\n reportTag,\n disease,\n process,\n prescriptionType,\n careTakerName,\n };\n try {\n jwtAxios\n .post('v1/docMgmt/patientCompletedListjwt', body)\n .then((data) => {\n if (data.status === 200) {\n //Call pending list data - Get pending list data using token\n try {\n const jwtToken = data.data.body['token'];\n const bodytoken = {\n mobileNbr,\n pName,\n fromDate,\n toDate,\n mappedDoctor,\n doctorId,\n limit,\n offset,\n jwtToken,\n reportTag,\n disease,\n symptoms,\n procedure,\n process,\n prescriptionType,\n careTakerName,\n };\n jwtAxios\n .post('v1/docMgmt/patientCompletedList', bodytoken)\n .then((data) => {\n if (data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getdata = data.data.body.data;\n dispatch({\n type: PATIENT_COMPLETED_COUNT,\n payload: data.data.body.totalcount,\n });\n dispatch({\n type: PATIENT_FILTER_COUNT,\n payload: data.data.body.filterCount,\n });\n dispatch({\n type: PATIENT_COMPLETED_DATA,\n payload: getdata,\n });\n if (\n data.data.body.process &&\n data.data.body.process === 'excel'\n ) {\n dispatch({\n type: EXCEL_COMPLETE_DATA,\n payload: getdata,\n });\n }\n const getdata1 = data.data.body;\n if (getdata1) {\n dispatch({\n type: PATIENT_COMPLETED_PATIENT_NAME,\n payload: getdata1.patientNames,\n });\n if (getdata1.erxImageOCR.length > 0) {\n var imgurl = [];\n var imgocr = [];\n for (var i = 0; i < getdata1.erxImageOCR.length; i++) {\n //Push only images\n imgurl.push({url: getdata1.erxImageOCR[i].erxUrl});\n //Push Image with ocr data and extension\n imgocr.push({\n url: getdata1.erxImageOCR[i].erxUrl,\n erxid: getdata1.erxImageOCR[i].erxId,\n extension: getdata1.erxImageOCR[i].urlExtension,\n rownumber: getdata1.erxImageOCR[i].rownumber,\n });\n }\n\n dispatch({\n type: ERX_IMG_ARR,\n payload: imgurl,\n });\n dispatch({\n type: ERX_IMG_OCR_ARR,\n payload: imgocr,\n });\n }\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientCompletedList',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientCompletedList',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientCompletedList',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientCompletedList',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n//Get Patient completed List data\nexport const onGetOldPatientCompletedList = ({\n symptoms,\n procedure,\n mobileNbr,\n fromDate,\n toDate,\n mappedDoctor,\n doctorId,\n pName,\n limit,\n offset,\n reportTag,\n disease,\n process,\n prescriptionType = -1,\n}) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n\n const body = {\n symptoms,\n procedure,\n mobileNbr,\n fromDate,\n toDate,\n mappedDoctor,\n doctorId,\n pName,\n limit,\n offset,\n reportTag,\n disease,\n process,\n prescriptionType,\n };\n try {\n console.log('Ererere', body);\n jwtAxios\n .post('v1/docMgmt/patientOldCompletedListjwt', body)\n .then((data) => {\n if (data.status === 200) {\n //Call pending list data - Get pending list data using token\n try {\n const jwtToken = data.data.body['token'];\n const bodytoken = {\n mobileNbr,\n pName,\n fromDate,\n toDate,\n mappedDoctor,\n doctorId,\n procedure,\n limit,\n offset,\n jwtToken,\n reportTag,\n disease,\n symptoms,\n process,\n prescriptionType,\n };\n jwtAxios\n .post('v1/docMgmt/patientOldCompletedList', bodytoken)\n .then((data) => {\n if (data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getdata = data?.data?.body?.data\n ? data?.data?.body?.data\n : [];\n dispatch({\n type: PATIENT_COMPLETED_OLDCOUNT,\n payload: data?.data?.body?.totalcount\n ? data?.data?.body?.totalcount\n : 0,\n });\n dispatch({\n type: PATIENTOLD_FILTER_COUNT,\n payload: data?.data?.body?.filterCount\n ? data?.data?.body?.filterCount\n : 0,\n });\n\n // dispatch({\n // type: PATIENT_COMPLETED_DATA,\n // payload: getdata,\n // });\n if (\n data.data.body.process &&\n data.data.body.process === 'excel'\n ) {\n dispatch({\n type: EXCEL_COMPLETE_DATA,\n payload: getdata,\n });\n } else {\n dispatch({\n type: PATIENTOLDLIST_COMPLETED_DATA,\n payload: getdata,\n });\n }\n const getdata1 = data.data.body;\n if (getdata1) {\n dispatch({\n type: PATIENT_COMPLETED_PATIENT_NAME,\n payload: getdata1.patientNames,\n });\n if (getdata1.erxImageOCR.length > 0) {\n var imgurl = [];\n var imgocr = [];\n for (var i = 0; i < getdata1.erxImageOCR.length; i++) {\n //Push only images\n imgurl.push({url: getdata1.erxImageOCR[i].erxUrl});\n //Push Image with ocr data and extension\n imgocr.push({\n url: getdata1.erxImageOCR[i].erxUrl,\n erxid: getdata1.erxImageOCR[i].erxId,\n extension: getdata1.erxImageOCR[i].urlExtension,\n rownumber: getdata1.erxImageOCR[i].rownumber,\n });\n }\n\n dispatch({\n type: ERX_IMG_ARR,\n payload: imgurl,\n });\n dispatch({\n type: ERX_IMG_OCR_ARR,\n payload: imgocr,\n });\n }\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOldPatientCompletedList',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOldPatientCompletedList',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n console.log('Ererere232', body);\n\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOldPatientCompletedList',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetOldPatientCompletedList',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const onGetPatientCompletedVaccList = (body) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios\n .post('v1/vaccination/getPatientCompletedVaccjwt', body)\n .then((data) => {\n if (data.status === 200) {\n //Call pending list data - Get pending list data using token\n try {\n const bodytoken = body;\n bodytoken['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/vaccination/getPatientCompletedVacc', bodytoken)\n .then((data) => {\n if (data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getdata = data.data.body.data;\n dispatch({\n type: PATIENT_COMPLETED_VACC_COUNT,\n payload: data.data.body.totalcount,\n });\n dispatch({\n type: PATIENT_VACC_FILTER_COUNT,\n payload: data.data.body.filterCount,\n });\n dispatch({\n type: PATIENT_COMPLETED_VACC_DATA,\n payload: getdata,\n });\n if (\n data.data.body.process &&\n data.data.body.process === 'excel'\n ) {\n dispatch({\n type: EXCELVACCINE_COMPLETE_DATA,\n payload: getdata,\n });\n }\n const getdata1 = data.data.body;\n if (getdata1) {\n dispatch({\n type: PATIENT_COMPLETED_PATIENT_NAME,\n payload: getdata1.patientNames,\n });\n if (getdata1.erxImageOCR.length > 0) {\n var imgurl = [];\n var imgocr = [];\n for (var i = 0; i < getdata1.erxImageOCR.length; i++) {\n //Push only images\n imgurl.push({url: getdata1.erxImageOCR[i].erxUrl});\n //Push Image with ocr data and extension\n imgocr.push({\n url: getdata1.erxImageOCR[i].erxUrl,\n erxid: getdata1.erxImageOCR[i].erxId,\n extension: getdata1.erxImageOCR[i].urlExtension,\n rownumber: getdata1.erxImageOCR[i].rownumber,\n });\n }\n\n dispatch({\n type: ERX_IMG_VACC_ARR,\n payload: imgurl,\n });\n dispatch({\n type: ERX_IMG_VACC_OCR_ARR,\n payload: imgocr,\n });\n }\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientCompletedVaccList',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientCompletedVaccList',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientCompletedList',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetPatientCompletedVaccList',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n//Sign up Patient\nexport const onSignupPatient = ({mobileNbr, pName, limit, offset}) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n const body = {\n mobileNbr,\n pName,\n limit,\n offset,\n };\n try {\n jwtAxios\n .post('v1/patMgmt/patientCompletedListjwt', body)\n .then((data) => {\n if (data.status === 200) {\n //Call pending list data - Get pending list data using token\n try {\n const jwtToken = data.data.body['token'];\n const bodytoken = {\n mobileNbr,\n pName,\n limit,\n offset,\n jwtToken,\n };\n jwtAxios\n .post('v1/patMgmt/patientCompletedList', bodytoken)\n .then((data) => {\n if (data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n const getdata = data.data.body.data;\n dispatch({\n type: PATIENT_COMPLETED_COUNT,\n payload: data.data.body.totalcount,\n });\n dispatch({\n type: PATIENT_COMPLETED_DATA,\n payload: getdata,\n });\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onSignupPatient',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onSignupPatient',\n '0',\n err,\n ),\n );\n }\n } else {\n dispatch({\n type: FETCH_ERROR,\n payload: ,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onSignupPatient',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'onSignupPatient', '0', err),\n );\n }\n };\n};\n\n//Sign up Patient\nexport const onForgetPassword = ({\n mobileNbr,\n newpaswd,\n otp,\n isNumber,\n setpassword,\n}) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n const body = {\n mobileNbr,\n newpaswd,\n otp,\n isNumber,\n setpassword,\n };\n try {\n jwtAxios\n .post('v1/docMgmt/forgetpaswdjwt', body)\n .then((data) => {\n if (data.status === 200) {\n //Call pending list data - Get pending list data using token\n try {\n if (data.hasOwnProperty.call(data.data, 'body')) {\n const jwtToken = data.data.body['token'];\n const bodytoken = {\n mobileNbr,\n newpaswd,\n otp,\n jwtToken,\n setpassword,\n };\n jwtAxios\n .post('v1/docMgmt/forgetpaswd', bodytoken)\n .then((data) => {\n if (data.status === 200) {\n // dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: FORGOT_PASWD_SUCCESS,\n payload: 'Your password has been changed successfully',\n });\n dispatch({\n type: PASSWORD_REQUEST_TAG,\n payload: '',\n });\n\n dispatch({\n type: SETPASS_DOCID,\n payload: '',\n });\n sessionStorage.setItem('setpassMobileNo', '');\n dispatch({\n type: SETPASS_MOB,\n payload: '',\n });\n } else {\n dispatch({\n type: FORGOT_PASWD_ERROR,\n payload: 'Invalid OTP',\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onSignupPatient',\n '0',\n error,\n ),\n );\n });\n } else {\n if (data.data.hasOwnProperty.call(data.data, 'message')) {\n if (data.data.message.includes('Error')) {\n if (data.data.message.includes('2')) {\n dispatch({\n type: FORGOT_PASWD_ERROR,\n payload: data.data.message.split('2')[1],\n });\n } else if (data.data.message.includes('1')) {\n dispatch({\n type: FORGOT_PASWD_ERROR,\n payload: data.data.message.split('1')[1],\n });\n } else if (data.data.message.includes('3')) {\n dispatch({\n type: FORGOT_PASWD_ERROR,\n payload: data.data.message.split('3')[1],\n });\n } else {\n dispatch({\n type: FORGOT_PASWD_ERROR,\n payload: 'Invalid OTP',\n });\n }\n }\n }\n }\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onSignupPatient',\n '0',\n err,\n ),\n );\n }\n } else {\n if (data.hasOwnProperty.call(data, 'message')) {\n if (data.message.includes('Error')) {\n if (data.message.includes('2')) {\n dispatch({\n type: FORGOT_PASWD_ERROR,\n payload: data.message.split('2')[1],\n });\n } else if (data.message.includes('1')) {\n dispatch({\n type: FORGOT_PASWD_ERROR,\n payload: data.message.split('1')[1],\n });\n } else if (data.data.message.includes('3')) {\n dispatch({\n type: FORGOT_PASWD_ERROR,\n payload: data.data.message.split('3')[1],\n });\n } else {\n dispatch({\n type: FORGOT_PASWD_ERROR,\n payload: 'Invalid OTP',\n });\n }\n }\n }\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onSignupPatient',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'onSignupPatient', '0', err),\n );\n }\n };\n};\n\n//Generate Html\nexport const GenerateERXHTML = (body) => {\n return (dispatch) => {\n dispatch({\n type: ERX_DATA_HTML,\n payload: [],\n });\n dispatch({type: FETCH_START});\n //Call symptom list Token - Get Token\n try {\n //Call symptom User list data - Get symptom list data using token\n try {\n jwtAxios\n .post('v1/pateRxMgmt/generateHTML', body)\n .then((data) => {\n if (data && data.status && data.status === 200) {\n if (data.data.body) {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: '',\n });\n dispatch({\n type: ERX_DATA_HTML,\n payload: data.data.body,\n });\n var clientList = data?.data?.body?.generateWordClient;\n let locArr = [];\n if (clientList?.length > 0) {\n clientList.map((item) => {\n if (item?.clientID) {\n let id = Number(item?.clientID);\n locArr.push(id);\n }\n });\n }\n dispatch({\n type: WORD_PREVIEW_CLIENT,\n payload: locArr,\n });\n } else {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: 'No record found',\n });\n }\n }\n })\n .catch((error) => {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: 'No record found',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'GetCovidVitalsListData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: 'No record found',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'GetCovidVitalsListData',\n '0',\n err,\n ),\n );\n }\n } catch (err) {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: 'No record found',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'GetCovidVitalsListData',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n//Generate Html\nexport const GenerateOldERXHTML = (body) => {\n return (dispatch) => {\n dispatch({\n type: ERX_DATA_HTML,\n payload: [],\n });\n dispatch({type: FETCH_START});\n //Call symptom list Token - Get Token\n try {\n //Call symptom User list data - Get symptom list data using token\n try {\n jwtAxios\n .post('v1/pateRxMgmt/generateOldHTML', body)\n .then((data) => {\n if (data && data.status && data.status === 200) {\n if (data.data.body) {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: '',\n });\n dispatch({\n type: ERX_DATA_HTML,\n payload: data.data.body,\n });\n var clientList = data?.data?.body?.generateWordClient;\n let locArr = [];\n if (clientList?.length > 0) {\n clientList.map((item) => {\n if (item?.clientID) {\n let id = Number(item?.clientID);\n locArr.push(id);\n }\n });\n }\n dispatch({\n type: WORD_PREVIEW_CLIENT,\n payload: locArr,\n });\n } else {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: 'No record found',\n });\n }\n }\n })\n .catch((error) => {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: 'No record found',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'GetCovidVitalsListData',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: 'No record found',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'GetCovidVitalsListData',\n '0',\n err,\n ),\n );\n }\n } catch (err) {\n dispatch({\n type: ERX_DATA_HTML_NO_DATA,\n payload: 'No record found',\n });\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'GetCovidVitalsListData',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const onGetTime = () => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n try {\n jwtAxios.get('v1/pateRxMgmt/getotpvalidy').then((data) => {\n if (data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: OTP_TIME,\n payload: data.data.body.description,\n });\n }\n dispatch({type: FETCH_SUCCESS});\n });\n } catch (err) {\n dispatch({type: FETCH_SUCCESS});\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'onGetTime', '0', err),\n );\n }\n };\n};\n\n// get age vaccinatiom details\nexport const onGetVaccinationDetails = (value) => {\n return (dispatch) => {\n //Call Update Token - Get Token\n try {\n jwtAxios\n .post('v1/vaccination/getVaccinationMaster', value)\n .then((data) => {\n if (data.status === 200) {\n dispatch({\n type: AGE_VACCINATION_LIST,\n payload: data?.data?.body?.data || '',\n });\n }\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetVaccinationDetails',\n '0',\n err,\n ),\n );\n }\n };\n};\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 23-06-2021\n * Descriptions : My profile api calling\n ************/\nimport {\n FETCH_ERROR,\n FETCH_START,\n DOCTOR_QUALIFICATION,\n STATE_MASTER,\n DOCTOR_SPECIALIZATION,\n DOCTOR_SUBSPECIALIZATION,\n DOCTOR_PROFILE,\n SAVE_PROFILES,\n SAVE_PREFERENCES,\n OTP_SIGNUP_ERROR,\n OTP_UPDTE_SUCCESS,\n OTP_UPDTE_ERROR,\n OTP_ERROR,\n UPDATE_SETTINGS,\n} from '../../shared/constants/ActionTypes';\nimport jwtAxios from '../../@crema/services/auth/jwt-auth/jwt-api';\nimport {fetchError, onWriteCloudWatchLog} from './Common';\n//AWS cloud watch name\nvar streamname = 'Redux_Actions';\nvar filename = 'myProfile.js';\nexport const onGetDoctorMaster = () => {\n return (dispatch) => {\n jwtAxios\n .post('v1/doctorMasters/mastersjwt')\n .then((data) => {\n try {\n var body = {jwtToken: data.data.body['token']};\n jwtAxios\n .post('v1/doctorMasters/masters', body)\n .then((data) => {\n dispatch({\n type: DOCTOR_QUALIFICATION,\n payload: data.data.body.quaList,\n });\n dispatch({\n type: STATE_MASTER,\n payload: data.data.body.stateList,\n });\n dispatch({\n type: DOCTOR_SPECIALIZATION,\n payload: data.data.body.specialization,\n });\n dispatch({\n type: DOCTOR_SUBSPECIALIZATION,\n payload: data.data.body.subspecialization,\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetDoctorMaster',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetDoctorMaster',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetDoctorMaster',\n '0',\n error,\n ),\n );\n });\n };\n};\n\n// update doctor api\nexport const updateDoctorProfile = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // Call doctor list Token - Get Token\n try {\n jwtAxios\n .post('v1/doctorMasters/createjwt', value)\n .then((data) => {\n try {\n if (\n data.data &&\n data.data.message &&\n data.data.message.includes('Error')\n ) {\n dispatch({\n type: OTP_UPDTE_ERROR,\n payload: data.data.message.split(':')[1],\n });\n return;\n }\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/doctorMasters/create', value)\n .then((data) => {\n dispatch({\n type: SAVE_PROFILES,\n payload: true,\n });\n dispatch({\n type: OTP_UPDTE_SUCCESS,\n payload: false,\n });\n dispatch({\n type: OTP_ERROR,\n payload: false,\n });\n window.location.reload();\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'updateDoctorProfile',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'updateDoctorProfile',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'updateDoctorProfile',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'updateDoctorProfile',\n '0',\n err,\n ),\n );\n }\n };\n};\n\n// update doctor api\nexport const updateDoctorPreferences = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // Call doctor list Token - Get Token\n try {\n jwtAxios\n .post('v1/doctorMasters/updatePreferencesjwt', value)\n .then((data) => {\n try {\n if (\n data.data &&\n data.data.message &&\n data.data.message.includes('Error')\n ) {\n dispatch({\n type: OTP_UPDTE_ERROR,\n payload: data.data.message.split(':')[1],\n });\n return;\n }\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/doctorMasters/updatePreferences', value)\n .then((data) => {\n dispatch({\n type: SAVE_PREFERENCES,\n payload: true,\n });\n dispatch({\n type: OTP_UPDTE_SUCCESS,\n payload: false,\n });\n dispatch({\n type: OTP_ERROR,\n payload: false,\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'updateDoctorProfile',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'updateDoctorProfile',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'updateDoctorProfile',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'updateDoctorProfile',\n '0',\n err,\n ),\n );\n }\n };\n};\n//get profile data\nexport const onGetDoctorData = (body) => {\n return (dispatch) => {\n jwtAxios\n .post('v1/doctorMasters/getDoctorDataJwt', body)\n .then((data) => {\n body['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/doctorMasters/getDoctorData', body)\n .then((data) => {\n dispatch({\n type: DOCTOR_PROFILE,\n payload: data.data.body,\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetDoctorData',\n '0',\n error,\n ),\n );\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetDoctorData',\n '0',\n error,\n ),\n );\n });\n };\n};\n\nexport const onGetStatemaster = (body) => {\n return (dispatch) => {\n jwtAxios\n .post('v1/patMgmt/mastersjwt', body)\n .then((data) => {\n body['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/patMgmt/masters', body)\n .then((data) => {\n dispatch({\n type: STATE_MASTER,\n payload: data.data.body.stateList,\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetStatemaster',\n '0',\n error,\n ),\n );\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetStatemaster',\n '0',\n error,\n ),\n );\n });\n };\n};\n\n// update doctor settings api\nexport const updateDoctorSettings = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // Call doctor list Token - Get Token\n try {\n jwtAxios\n .post('v1/docMgmt/updateSettingsJwt', value)\n .then((data) => {\n try {\n if (\n data.data &&\n data.data.message &&\n data.data.message.includes('Error')\n ) {\n dispatch({\n type: OTP_SIGNUP_ERROR,\n payload: data.data.message.split(':')[1],\n });\n return;\n }\n value['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/updateSettings', value)\n .then((data) => {\n if (data.status == 200) {\n dispatch({\n type: UPDATE_SETTINGS,\n payload: true,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'UPDATE_SETTINGS',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'UPDATE_SETTINGS',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'UPDATE_SETTINGS',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'UPDATE_SETTINGS', '0', err),\n );\n }\n };\n};\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 28-04-2023\n * Descriptions : Appointment api calling\n ************/\nimport {\n APPOINTMENT_COMPLETED_DATA,\n APPOINTMENT_UPCOMING_DATA,\n FETCH_START,\n FETCH_SUCCESS,\n APPOINTMENT_INSERTED_SUCCESS,\n APPOINTMENT_BOOKED_TIMING,\n} from 'shared/constants/ActionTypes';\nimport jwtAxios from '../../@crema/services/auth/jwt-auth/jwt-api';\nimport {fetchError, onWriteCloudWatchLog} from './Common';\n//AWS cloud watch name\nvar streamname = 'Redux_Actions';\nvar filename = 'Appointment.js';\n\nexport const onGetAppointments = ({mappedDoctor, doctorId, process}) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n const body = {mappedDoctor, doctorId, process};\n jwtAxios\n .post('v1/docMgmt/getPatientAppointmentDetailsJwt', body)\n .then((data) => {\n try {\n body['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/getPatientAppointmentDetails', body)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: APPOINTMENT_COMPLETED_DATA,\n payload: data.data.body.completedData,\n });\n\n dispatch({\n type: APPOINTMENT_UPCOMING_DATA,\n payload: data.data.body.upcomingData,\n });\n }\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetAppointments',\n '0',\n err,\n ),\n );\n }\n });\n };\n};\n\nexport const onSaveAppointments = (body) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n jwtAxios.post('v1/docMgmt/saveNewAppointmentsjwt', body).then((data) => {\n try {\n body['jwtToken'] = data.data.body['token'];\n jwtAxios.post('v1/docMgmt/saveNewAppointments', body).then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: APPOINTMENT_INSERTED_SUCCESS,\n payload: data.data.body,\n });\n }\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetAppointments',\n '0',\n err,\n ),\n );\n }\n });\n };\n};\n\nexport const getAvailableTimeForAppointment = (body) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n jwtAxios\n .post('v1/docMgmt/getAvailableAppointmentTimeJWT', body)\n .then((data) => {\n try {\n body['jwtToken'] = data.data.body['token'];\n jwtAxios\n .post('v1/docMgmt/getAvailableAppointmentTime', body)\n .then((data) => {\n if (data.data.status === 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: APPOINTMENT_BOOKED_TIMING,\n payload: data.data.body.bookingTime,\n });\n }\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'onGetAppointments',\n '0',\n err,\n ),\n );\n }\n });\n };\n};\n","import React from 'react';\n\nimport {\n FETCH_ERROR,\n FETCH_START,\n FETCH_SUCCESS,\n SEARCH_MRD_RES,\n MRD_API_RES,\n GET_REQ_LIST,\n GET_REQ_COUNT,\n EXCEL_COMPLETE_DATA,\n GET_PEND_COUNT,\n VALIDATION_MRD_RES,\n} from '../../shared/constants/ActionTypes';\n\nimport IntlMessages from '../../@crema/utility/IntlMessages';\nimport jwtAxios from '../../@crema/services/auth/jwt-auth/jwt-api';\nimport {fetchError, onWriteCloudWatchLog} from './Common';\n//AWS cloud watch name\nvar streamname = 'Redux_Actions';\nvar filename = 'Mrdactions.js';\n\nexport const getMrdRequestValidation = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // Call doctor list Token - Get Token\n try {\n jwtAxios\n .post('v1/mrdUser/getMrdReqValidationJwt', value)\n .then((data) => {\n try {\n let pdata = {jwtToken: data.data.body['token']};\n jwtAxios\n .post('v1/mrdUser/getMrdReqValidation', pdata)\n .then((data) => {\n if (data.status == 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: VALIDATION_MRD_RES,\n payload: data?.data?.body?.tag ? data?.data?.body?.tag : [],\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getMrdReqValidation',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getMrdReqValidation',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getMrdReqValidation',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getMrdReqValidation',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const getSearchMrdlist = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // Call doctor list Token - Get Token\n try {\n jwtAxios\n .post('v1/mrdUser/getSearchMRDRecJwt', value)\n .then((data) => {\n try {\n let pdata = {jwtToken: data.data.body['token']};\n jwtAxios\n .post('v1/mrdUser/getSearchMRDRec', pdata)\n .then((data) => {\n if (data.status == 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: SEARCH_MRD_RES,\n payload: data?.data?.body?.list\n ? data?.data?.body?.list\n : [],\n });\n if (data?.data?.body?.list?.length == 0) {\n if (data?.data?.body?.tag == 'Pending Status') {\n dispatch({\n type: MRD_API_RES,\n payload: 'The Episode number is already in your queue.',\n });\n }\n if (data?.data?.body?.tag == 'Completed Status') {\n dispatch({\n type: MRD_API_RES,\n payload:\n 'This Episode number is already approved and you can view this in your queue.',\n });\n } else {\n dispatch({\n type: MRD_API_RES,\n payload: 'No records found',\n });\n }\n }\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getSearchMrdlist',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getSearchMrdlist',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getSearchMrdlist',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getSearchMrdlist',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const submitMrdRequest = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n jwtAxios\n .post('v1/mrdUser/submitDrRequestJwt', value)\n .then((data) => {\n try {\n var passData = {jwtToken: data.data.body['token']};\n jwtAxios\n .post('v1/mrdUser/submitDrRequest', passData)\n .then((data) => {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: SEARCH_MRD_RES,\n payload: [],\n });\n dispatch({\n type: MRD_API_RES,\n payload: 'Submit Success',\n });\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'submitMrdRequest',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'submitMrdRequest',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'submitMrdRequest',\n '0',\n error,\n ),\n );\n });\n };\n};\n\nexport const getRequestList = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // Call doctor list Token - Get Token\n try {\n jwtAxios\n .post('v1/mrdUser/getDrPendingReqJwt', value)\n .then((data) => {\n try {\n let pdata = {jwtToken: data.data.body['token']};\n jwtAxios\n .post('v1/mrdUser/getDrPendingReq', pdata)\n .then((data) => {\n if (data.status == 200) {\n dispatch({type: FETCH_SUCCESS});\n dispatch({\n type: GET_REQ_LIST,\n payload: data?.data?.body?.list\n ? data?.data?.body?.list\n : [],\n });\n dispatch({\n type: GET_REQ_COUNT,\n payload: data?.data?.body?.count\n ? data?.data?.body?.count\n : 0,\n });\n\n localStorage.setItem(\n 'alertPendCount',\n data?.data?.body?.pendcount,\n );\n dispatch({\n type: GET_PEND_COUNT,\n payload: data?.data?.body?.pendcount\n ? data?.data?.body?.pendcount\n : 0,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getSearchMrdlist',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getSearchMrdlist',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getSearchMrdlist',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'getSearchMrdlist',\n '0',\n err,\n ),\n );\n }\n };\n};\n\nexport const insertDrAction = (value) => {\n return (dispatch) => {\n dispatch({type: FETCH_START});\n // Call doctor list Token - Get Token\n try {\n jwtAxios\n .post('v1/mrdUser/insertDrActionLogJwt', value)\n .then((data) => {\n try {\n let pdata = {jwtToken: data.data.body['token']};\n jwtAxios\n .post('v1/mrdUser/insertDrActionLog', pdata)\n .then((data) => {\n if (data.status == 200) {\n dispatch({type: FETCH_SUCCESS});\n localStorage.setItem(\n 'alertPendCount',\n data?.data?.body?.pendcount,\n );\n dispatch({\n type: GET_PEND_COUNT,\n payload: data?.data?.body?.pendcount\n ? data?.data?.body?.pendcount\n : 0,\n });\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'insertDrAction',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'insertDrAction',\n '0',\n err,\n ),\n );\n }\n })\n .catch((error) => {\n dispatch({type: FETCH_ERROR, payload: error.message});\n dispatch(\n onWriteCloudWatchLog(\n streamname,\n filename,\n 'insertDrAction',\n '0',\n error,\n ),\n );\n });\n } catch (err) {\n dispatch(fetchError(err.response.message));\n dispatch(\n onWriteCloudWatchLog(streamname, filename, 'insertDrAction', '0', err),\n );\n }\n };\n};\n","import React, {useContext, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport MomentUtils from '@date-io/moment';\n// import moment from 'moment';\nimport {createMuiTheme, ThemeProvider} from '@material-ui/core/styles';\nimport {MuiPickersUtilsProvider} from '@material-ui/pickers';\n\nimport AppContext from '../AppContext';\nimport AppLocale from '../../../shared/localization';\nimport {responsiveFontSizes} from '@material-ui/core';\nimport {isBreakPointDown} from '../Utils';\nimport {ThemeStyle} from '../../../shared/constants/AppEnums';\nimport {useUrlSearchParams} from 'use-url-search-params';\n\nconst CremaThemeProvider = (props) => {\n const {\n theme,\n isRTL,\n updateThemeMode,\n changeNavStyle,\n updateThemeStyle,\n setRTL,\n updateTheme,\n locale,\n } = useContext(AppContext);\n const {muiLocale} = AppLocale[locale.locale];\n\n const [params] = useUrlSearchParams({});\n\n useEffect(() => {\n const updateQuerySetting = () => {\n if (params.theme_mode) {\n updateThemeMode(params.theme_mode);\n }\n };\n updateQuerySetting();\n }, [params.theme_mode, updateThemeMode]);\n\n useEffect(() => {\n const updateQuerySetting = () => {\n if (params.is_rtl) {\n setRTL(params.is_rtl);\n }\n if (params.is_rtl || isRTL) {\n document.body.setAttribute('dir', 'rtl');\n } else {\n document.body.setAttribute('dir', 'ltr');\n }\n };\n updateQuerySetting();\n }, [isRTL, params.is_rtl, setRTL]);\n\n useEffect(() => {\n const updateQuerySetting = () => {\n if (params.nav_style) {\n changeNavStyle(params.nav_style);\n }\n };\n updateQuerySetting();\n }, [changeNavStyle, params.nav_style]);\n\n useEffect(() => {\n const updateQuerySetting = () => {\n if (params.theme_style) {\n if (params.theme_style === ThemeStyle.MODERN) {\n if (isBreakPointDown('md')) {\n theme.overrides.MuiCard.root.borderRadius = 20;\n theme.overrides.MuiToggleButton.root.borderRadius = 20;\n } else {\n theme.overrides.MuiCard.root.borderRadius = 30;\n theme.overrides.MuiToggleButton.root.borderRadius = 30;\n }\n theme.overrides.MuiButton.root.borderRadius = 30;\n theme.overrides.MuiCardLg.root.borderRadius = 50;\n } else {\n theme.overrides.MuiCard.root.borderRadius = 4;\n theme.overrides.MuiToggleButton.root.borderRadius = 4;\n theme.overrides.MuiButton.root.borderRadius = 4;\n theme.overrides.MuiCardLg.root.borderRadius = 4;\n }\n updateTheme(theme);\n updateThemeStyle(params.theme_style);\n }\n };\n updateQuerySetting();\n }, [params.theme_style, theme, updateTheme, updateThemeStyle]);\n\n return (\n \n \n {props.children}\n \n \n );\n};\n\nexport default React.memo(CremaThemeProvider);\n\nCremaThemeProvider.propTypes = {\n children: PropTypes.node.isRequired,\n};\n","import React from 'react';\nimport {create} from 'jss';\nimport rtl from 'jss-rtl';\nimport {jssPreset, StylesProvider} from '@material-ui/core/styles';\nimport PropTypes from 'prop-types';\n\n// Configure JSS\nconst jss = create({plugins: [...jssPreset().plugins, rtl()]});\n\nconst CremaStyleProvider = (props) => {\n return {props.children};\n};\nexport default CremaStyleProvider;\n\nCremaStyleProvider.propTypes = {\n children: PropTypes.node.isRequired,\n};\n","import React, {useContext} from 'react';\nimport {IntlProvider} from 'react-intl';\n\nimport AppLocale from '../../shared/localization';\nimport AppContext from './AppContext';\nimport PropTypes from 'prop-types';\nimport {IntlGlobalProvider} from './Utils';\n\nconst LocaleProvider = (props) => {\n const {locale} = useContext(AppContext);\n const currentAppLocale = AppLocale[locale.locale];\n\n return (\n \n {props.children}\n \n );\n};\n\nexport default LocaleProvider;\n\nLocaleProvider.propTypes = {\n children: PropTypes.node.isRequired,\n};\n","import React, {useContext, useEffect, useState} from 'react';\nimport {useHistory, useLocation} from 'react-router-dom';\nimport {useDispatch, useSelector} from 'react-redux';\nimport {matchRoutes} from 'react-router-config';\nimport qs from 'qs';\nimport AppContext from './AppContext';\nimport {useAuthToken} from './AppHooks';\nimport {Loader} from '../index';\nimport PropTypes from 'prop-types';\nimport {checkPermission} from './Utils';\nimport {\n initialUrl,\n initUrlProfile,\n clientPortalURL,\n} from '../../shared/constants/AppConst';\nimport {resetState} from '../../shared/constants/ActionTypes';\nimport {AuthType} from '../../shared/constants/AppEnums';\n\nimport {\n setInitialPath,\n onCognitoUserSignOut,\n onJWTAuthSignout,\n onSignOutAuth0User,\n onSignOutFirebaseUser,\n onJwtSignIn,\n} from '../../redux/actions';\nimport {PASSWORD_REQUEST_TAG} from '../../shared/constants/ActionTypes';\nconst crypto = require('crypto');\nvar algorithm = 'aes-256-ctr';\nvar password = 'd6F3Efeq';\nconst AuthRoutes = ({children}) => {\n const {pathname, search} = useLocation();\n const dispatch = useDispatch();\n const history = useHistory();\n const {\n routes,\n changeNavStyle,\n updateThemeStyle,\n updateThemeMode,\n setRTL,\n } = useContext(AppContext);\n\n const [loading, user] = useAuthToken();\n const initialPath = useSelector(({settings}) => settings.initialPath);\n const currentRoute = matchRoutes(routes, pathname)[0].route;\n const [fromclient, setfromclient] = useState(null);\n let isPermitted = checkPermission(\n currentRoute.auth,\n user ? user.role : null,\n user ? user.mrdDrcat : null,\n );\n\n //Decrypt password\n const decryptpassword = function ({data}) {\n var decipher = crypto.createDecipher(algorithm, password);\n var dec = decipher.update(data, 'hex', 'utf8');\n dec += decipher.final('utf8');\n return dec;\n };\n // In the second portal, listen for messages from the first portal\n useEffect(() => {\n // Wait until the second portal is fully loaded and ready\n window.addEventListener('load', () => {\n console.log('Second portal is fully loaded');\n if (window.opener && window.opener.postMessage) {\n try {\n // Notify the first portal that this window is ready to receive messages\n window.opener.postMessage({type: 'ready'}, clientPortalURL);\n } catch (error) {\n console.error('Error sending message to parent window:', error);\n }\n } else {\n localStorage.setItem('browserparam', '');\n console.log('No opener window found or postMessage is not available.');\n }\n });\n\n const handleMessage = (event) => {\n console.log('receive d');\n\n if (!event.origin.includes(clientPortalURL)) return;\n localStorage.clear();\n dispatch(resetState());\n if (event.origin.includes(clientPortalURL)) {\n // Check the message type and handle accordingly\n if (event.data.type === 'clearData') {\n setfromclient('clearData');\n\n window.location.search = '';\n\n localStorage.setItem('browserparam', '');\n\n // onDeny(false);\n localStorage.clear();\n dispatch(resetState());\n\n if (user && user.authType === AuthType.AWS_COGNITO) {\n dispatch(onCognitoUserSignOut());\n } else if (user && user.authType === AuthType.FIREBASE) {\n dispatch(onSignOutFirebaseUser());\n } else if (user && user.authType === AuthType.AUTH0) {\n dispatch(onSignOutAuth0User());\n } else if (user && user.authType === AuthType.JWT_AUTH) {\n let pushdata = {\n userId: user.userId,\n userCode: user.doctorCode,\n onlineStatus: 'Logout',\n loginType: 'doctor',\n };\n\n dispatch(onJWTAuthSignout(pushdata));\n }\n // logoutUser();\n // You can store the data in localStorage or use it directly\n } else if (event.data.type == 'setData') {\n localStorage.clear();\n\n dispatch(resetState());\n setfromclient('setData');\n console.log(event.data.data, 'setDatasd');\n\n let paramValue = null;\n let doctorParam = null;\n\n // if (urlParams.size > 0) {\n if (Object.values(event.data.data).length > 0) {\n paramValue = event.data.data;\n\n doctorParam = paramValue;\n // sessionStorage.setItem('browserparam', JSON.stringify(doctorParam))\n localStorage.setItem('browserparam', JSON.stringify(doctorParam));\n }\n dispatch(\n onJwtSignIn({\n mobileNbr: doctorParam.mobileNo,\n paswd: decryptpassword({data: doctorParam.paswd}),\n }),\n history,\n );\n }\n }\n };\n\n window.addEventListener('message', handleMessage);\n\n // Cleanup the event listener when the component unmounts\n return () => {\n window.removeEventListener('message', handleMessage);\n };\n }, []);\n useEffect(() => {\n function setInitPath() {\n if (\n initialPath &&\n initialPath.includes('requestPassword') &&\n initialPath.includes('/')\n ) {\n let data = initialPath.split('/')[2];\n dispatch({\n type: PASSWORD_REQUEST_TAG,\n payload: data,\n });\n }\n if (\n initialPath === '/' &&\n [\n '/signin',\n '/signup',\n '/confirm-signup',\n '/reset-password',\n '/error-pages/error-404',\n '/error-pages/error-401',\n '/forget-password',\n '/set-password',\n '/requestPassword',\n ].indexOf(pathname) === -1\n ) {\n if (isPermitted) {\n console.log(1);\n dispatch(setInitialPath(pathname));\n } else {\n console.log(2);\n dispatch(setInitialPath(undefined));\n }\n }\n }\n\n setInitPath();\n }, [dispatch, isPermitted, initialPath, pathname, user]);\n\n useEffect(() => {\n function handleQueryParams() {\n const query = qs.parse(search.split('?')[1]);\n if (query.layout) {\n changeNavStyle(query.layout);\n }\n if (query.mode) {\n updateThemeMode(query.mode);\n }\n if (query.rtl) {\n setRTL(true);\n }\n if (query.style) {\n updateThemeStyle(query.style);\n }\n }\n\n if (search) {\n handleQueryParams();\n }\n }, [changeNavStyle, updateThemeStyle, updateThemeMode, setRTL, search]);\n\n useEffect(() => {\n if (!loading) {\n let paramValue = localStorage.getItem('browserparam');\n let paramcond = '';\n // if (paramValue) {\n // paramcond = `?param=${paramValue}`;\n // }\n // else\n // {\n // paramcond =''\n // }\n\n if (!user && !isPermitted) {\n history.push('/signin'); // allowed route\n } else if (user && !isPermitted) {\n history.push('/error-pages/error-401'); // Not found\n } else if (user && isPermitted) {\n if (\n pathname === '/' ||\n pathname === '/signin' ||\n pathname === '/signup'\n ) {\n if (user !== null && user.doctorstatus === 7) {\n history.push(`${initialUrl}${paramcond}`);\n } else {\n history.push(`${initUrlProfile}${paramcond}`);\n }\n } else if (\n initialPath &&\n initialUrl !== initialPath &&\n (initialPath !== '/' ||\n initialPath !== '/signin' ||\n initialPath !== '/signup')\n ) {\n if (pathname.includes('/requestPassword')) {\n history.push(`${pathname}${paramcond}`);\n } else if (user !== null && user.doctorstatus === 7) {\n history.push(`${initialUrl}${paramcond}`);\n } else {\n history.push(`${initUrlProfile}${paramcond}`);\n }\n }\n }\n }\n }, [user, loading, initialPath, isPermitted, pathname, history]);\n\n return loading ? : <>{children};\n};\n\nexport default AuthRoutes;\n\nAuthRoutes.propTypes = {\n children: PropTypes.node.isRequired,\n};\n","import {makeStyles} from '@material-ui/core/styles';\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n minHeight: 48,\n // minWidth:\"15%\",\n // maxWidth: \"15%\",\n '&.active': {\n backgroundColor: theme.palette.primary.main,\n // backgroundColor: '#2e4167',\n // minWidth:\"15%\",\n // maxWidth: \"15%\",\n color: '#ffffff !important',\n // color: '#ffffff !important',\n pointerEvents: 'none',\n '& .list-item-text-primary': {\n color: 'inherit',\n },\n '& .list-item-icon': {\n color: 'inherit',\n },\n },\n \n '& .list-item-icon': {},\n '& .list-item-text': {\n padding: '0 0 0 16px',\n },\n color: '#9e9e9e !important',\n textDecoration: 'none!important',\n '&.dense': {\n // minWidth:\"15%\",\n // maxWidth: \"15%\",\n padding: '8px 12px 8px 12px',\n minHeight: 40,\n '& .list-item-text': {\n padding: '0 0 0 8px',\n },\n },\n },\n}));\nexport default useStyles;\n","import React from 'react';\nimport {Icon, ListItem, ListItemText} from '@material-ui/core';\nimport {Badge, NavLink} from '../../../../@crema';\nimport {withRouter} from 'react-router-dom';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport IntlMessages from '../../../utility/IntlMessages';\nimport useStyles from './HorizontalItem.style';\nimport Box from '@material-ui/core/Box';\n\nfunction HorizontalItem(props) {\n const classes = useStyles(props);\n const {item, dense} = props;\n const active = isUrlInChildren(item, props.location.pathname);\n\n function isUrlInChildren(parent, url) {\n if (!parent.children) {\n return false;\n }\n\n for (let i = 0; i < parent.children.length; i++) {\n if (parent.children[i].children) {\n if (isUrlInChildren(parent.children[i], url)) {\n return true;\n }\n }\n\n if (\n parent.children[i].url === url ||\n url.includes(parent.children[i].url)\n ) {\n return true;\n }\n }\n\n return false;\n }\n\n return (\n \n {item.icon && (\n \n {item.icon}\n \n )}\n }\n />\n {item.count && (\n \n \n \n )}\n \n );\n}\n\nHorizontalItem.propTypes = {\n item: PropTypes.shape({\n id: PropTypes.string.isRequired,\n title: PropTypes.string,\n icon: PropTypes.string,\n url: PropTypes.string,\n }),\n};\n\nHorizontalItem.defaultProps = {};\n\nexport default withRouter(React.memo(HorizontalItem));\n","import React, {useContext, useState} from 'react';\nimport {\n Grow,\n Icon,\n IconButton,\n ListItem,\n ListItemText,\n Paper,\n} from '@material-ui/core';\nimport {makeStyles} from '@material-ui/core/styles';\nimport {withRouter} from 'react-router-dom';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport {Manager, Popper, Reference} from 'react-popper';\nimport * as ReactDOM from 'react-dom';\nimport HorizontalItem from './HorizontalItem';\nimport HorizontalGroup from './HorizontalGroup';\nimport Box from '@material-ui/core/Box';\nimport IntlMessages from '../../../utility/IntlMessages';\nimport AppContext from '../../../utility/AppContext';\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n '& .list-item-text': {\n padding: '0 0 0 16px',\n },\n },\n button: {\n color: theme.palette.text.primary,\n minHeight: 48,\n '&.active, &.active:hover, &.active:focus': {\n backgroundColor: theme.palette.primary.main + '!important',\n color: theme.palette.secondary.contrastText + '!important',\n },\n '&.open': {\n backgroundColor: 'rgba(0,0,0,.08)',\n },\n '&.dense': {\n padding: '8px 12px 8px 12px',\n minHeight: 40,\n '& .list-item-text': {\n padding: '0 0 0 8px',\n },\n },\n },\n popper: {\n zIndex: 999,\n },\n popperClose: {\n pointerEvents: 'none',\n },\n icon: {\n fontsSize: 18,\n marginRight: 14,\n },\n pl0: {\n paddingLeft: 0,\n },\n}));\n\nfunction HorizontalCollapse(props) {\n const classes = useStyles(props);\n const [opened, setOpened] = useState(false);\n const {theme} = useContext(AppContext);\n const {item, nestedLevel, dense} = props;\n const active = isUrlInChildren(item, props.location.pathname);\n\n const handleToggle = (open) => {\n setOpened(open);\n };\n\n function isUrlInChildren(parent, url) {\n if (!parent.children) {\n return false;\n }\n\n for (let i = 0; i < parent.children.length; i++) {\n if (parent.children[i].children) {\n if (isUrlInChildren(parent.children[i], url)) {\n return true;\n }\n }\n\n if (\n parent.children[i].url === url ||\n url.includes(parent.children[i].url)\n ) {\n return true;\n }\n }\n\n return false;\n }\n\n return (\n
    \n \n \n {({ref}) => (\n handleToggle(true)}\n onMouseLeave={() => handleToggle(false)}\n aria-owns={opened ? 'menu-list-grow' : null}\n aria-haspopup='true'>\n {item.icon && (\n \n {item.icon}\n \n )}\n }\n />\n \n \n \n {theme.direction === 'ltr'\n ? 'chevron_right'\n : 'chevron_left'}\n \n \n \n \n )}\n \n {ReactDOM.createPortal(\n \n {({ref, style, placement, arrowProps}) =>\n opened && (\n \n \n handleToggle(true)}\n onMouseLeave={() => handleToggle(false)}>\n {item.children && (\n
      \n {item.children.map((item) => (\n \n {item.type === 'group' && (\n \n )}\n\n {item.type === 'collapse' && (\n \n )}\n\n {item.type === 'item' && (\n \n )}\n \n ))}\n
    \n )}\n \n \n \n )\n }\n
    ,\n document.querySelector('#root'),\n )}\n
    \n
\n );\n}\n\nHorizontalCollapse.propTypes = {\n item: PropTypes.shape({\n id: PropTypes.string.isRequired,\n title: PropTypes.string,\n icon: PropTypes.string,\n children: PropTypes.array,\n }),\n};\n\nHorizontalCollapse.defaultProps = {};\n\nexport default withRouter(React.memo(HorizontalCollapse));\n","import {makeStyles} from '@material-ui/core/styles';\nimport {Fonts} from '../../../../shared/constants/AppEnums';\n\nconst useStyles = makeStyles((theme) => {\n return {\n root: {\n // color: theme.palette.secondary.contrastText + '!important',\n color: '#9e9e9e',\n\n '&.active, &.active:hover, &.active:focus': {\n backgroundColor: theme.palette.primary.main + '!important',\n // backgroundColor: '#000',\n\n color: theme.palette.secondary.contrastText + '!important',\n // color: '#ffffff !important',\n },\n '& .list-item-text': {\n padding: '0 0 0 16px',\n },\n '&.level-0': {\n height: 48,\n borderRadius: 4,\n '&:hover': {\n background: 'transparent',\n },\n },\n '&.dense': {\n padding: '8px 12px 8px 12px',\n minHeight: 40,\n '&.level-0': {\n height: 44,\n },\n '& .list-item-text': {\n padding: '0 0 0 8px',\n },\n },\n },\n children: {},\n popper: {\n zIndex: 999,\n },\n popperClose: {\n pointerEvents: 'none',\n },\n pl0: {\n paddingLeft: 0,\n },\n fontBold: {\n fontWeight: Fonts.MEDIUM,\n },\n ml2: {\n marginLeft: 8,\n },\n textLg: {\n fontSize: 18,\n },\n };\n});\nexport default useStyles;\n","import React, {useState} from 'react';\nimport {\n Grow,\n Icon,\n IconButton,\n ListItem,\n ListItemText,\n Paper,\n} from '@material-ui/core';\nimport {withRouter} from 'react-router-dom';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport {Manager, Popper, Reference} from 'react-popper';\nimport * as ReactDOM from 'react-dom';\nimport HorizontalCollapse from './HorizontalCollapse';\nimport HorizontalItem from './HorizontalItem';\nimport Box from '@material-ui/core/Box';\nimport IntlMessages from '../../../utility/IntlMessages';\nimport useStyles from './HorizontalGroup.style';\n\nfunction HorizontalGroup(props) {\n const classes = useStyles(props);\n const [opened, setOpened] = useState(false);\n const {item, nestedLevel} = props;\n\n const handleToggle = (open) => {\n setOpened(open);\n };\n\n function isUrlInChildren(parent, url) {\n if (!parent.children) {\n return false;\n }\n\n for (let i = 0; i < parent.children.length; i++) {\n if (parent.children[i].children) {\n if (isUrlInChildren(parent.children[i], url)) {\n return true;\n }\n }\n\n if (\n parent.children[i].url === url ||\n url.includes(parent.children[i].url)\n ) {\n return true;\n }\n }\n\n return false;\n }\n\n return (\n \n \n {({ref}) => (\n handleToggle(true)}\n onMouseLeave={() => handleToggle(false)}\n aria-owns={opened ? 'menu-list-grow' : null}\n aria-haspopup='true'>\n {item.icon && (\n \n {item.icon}\n \n )}\n }\n classes={{primary: clsx(classes.fontBold, 'uppercase')}}\n />\n {nestedLevel > 0 && (\n \n \n keyboard_arrow_right\n \n \n )}\n \n )}\n \n {ReactDOM.createPortal(\n \n {({ref, style, placement}) =>\n opened && (\n \n \n handleToggle(true)}\n onMouseLeave={() => handleToggle(false)}>\n {item.children && (\n
    \n {item.children.map((item) => (\n \n {item.type === 'group' && (\n \n )}\n\n {item.type === 'collapse' && (\n \n )}\n\n {item.type === 'item' && (\n \n )}\n \n ))}\n
\n )}\n \n \n \n )\n }\n ,\n document.querySelector('#root'),\n )}\n
\n );\n}\n\nHorizontalGroup.propTypes = {\n item: PropTypes.shape({\n id: PropTypes.string.isRequired,\n title: PropTypes.string,\n children: PropTypes.array,\n url: PropTypes.string,\n }),\n};\n\nHorizontalGroup.defaultProps = {};\n\nexport default withRouter(React.memo(HorizontalGroup));\n","import {makeStyles} from '@material-ui/core/styles';\nimport {Fonts} from '../../../../shared/constants/AppEnums';\n\nconst useStyles = makeStyles((theme) => {\n return {\n root: {\n color: theme.palette.secondary.contrastText + '!important',\n\n '&.active, &.active:hover, &.active:focus': {\n //backgroundColor: theme.palette.primary.main + '!important',\n //color: theme.palette.secondary.contrastText + '!important',\n color: '#ffffff',\n backgroundColor: theme.palette.primary.main + '!important',\n },\n '& .list-item-text': {\n padding: '0 0 0 16px',\n },\n '&.level-0': {\n height: 48,\n borderRadius: 4,\n '&:hover': {\n background: 'transparent',\n },\n },\n '&.dense': {\n padding: '8px 12px 8px 12px',\n minHeight: 40,\n '&.level-0': {\n height: 44,\n },\n '& .list-item-text': {\n padding: '0 0 0 8px',\n },\n },\n },\n children: {},\n popper: {\n zIndex: 999,\n },\n popperClose: {\n pointerEvents: 'none',\n },\n pl0: {\n paddingLeft: 0,\n },\n fontBold: {\n fontWeight: Fonts.MEDIUM,\n },\n ml2: {\n marginLeft: 8,\n },\n textLg: {\n fontSize: 18,\n },\n };\n});\nexport default useStyles;\n","import React, {useState} from 'react';\nimport {\n Grow,\n Icon,\n IconButton,\n ListItem,\n ListItemText,\n Paper,\n} from '@material-ui/core';\nimport {withRouter} from 'react-router-dom';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport {Manager, Popper, Reference} from 'react-popper';\nimport * as ReactDOM from 'react-dom';\nimport HorizontalCollapse from './HorizontalCollapse';\nimport HorizontalItem from './HorizontalItem';\nimport HorizontalGroup from './HorizontalGroup';\nimport Box from '@material-ui/core/Box';\nimport IntlMessages from '../../../utility/IntlMessages';\nimport useStyles from './HorizontalSingle.style';\nimport {NavLink} from '../../../../@crema';\n\nfunction HorizontalSingle(props) {\n const classes = useStyles(props);\n const [opened, setOpened] = useState(false);\n const {item, nestedLevel} = props;\n\n const handleToggle = (open) => {\n setOpened(open);\n };\n\n function isUrlInChildren(parent, url) {\n if (!parent.children) {\n return false;\n }\n\n for (let i = 0; i < parent.children.length; i++) {\n if (parent.children[i].children) {\n if (isUrlInChildren(parent.children[i], url)) {\n return true;\n }\n }\n\n if (\n parent.children[i].url === url ||\n url.includes(parent.children[i].url)\n ) {\n return true;\n }\n }\n\n return false;\n }\n\n return (\n \n \n {({ref}) => (\n handleToggle(true)}\n onMouseLeave={() => handleToggle(false)}\n aria-owns={opened ? 'menu-list-grow' : null}\n aria-haspopup='true'>\n {item.icon && (\n \n {item.icon}\n \n )}\n }\n classes={{primary: clsx(classes.fontBold, 'uppercase')}}\n />\n {nestedLevel > 0 && (\n \n \n keyboard_arrow_right\n \n \n )}\n \n )}\n \n {ReactDOM.createPortal(\n \n {({ref, style, placement}) =>\n opened && (\n \n \n handleToggle(true)}\n onMouseLeave={() => handleToggle(false)}>\n {item.children && (\n
    \n {item.children.map((item) => (\n \n {(item.type === 'group' ||\n item.type === 'single') && (\n \n )}\n {item.type === 'single' && (\n \n )}\n\n {item.type === 'collapse' && (\n \n )}\n\n {item.type === 'item' && (\n \n )}\n \n ))}\n
\n )}\n \n \n \n )\n }\n ,\n document.querySelector('#root'),\n )}\n
\n );\n}\n\nHorizontalSingle.propTypes = {\n item: PropTypes.shape({\n id: PropTypes.string.isRequired,\n title: PropTypes.string,\n children: PropTypes.array,\n url: PropTypes.string,\n }),\n};\n\nHorizontalSingle.defaultProps = {};\n\nexport default withRouter(React.memo(HorizontalSingle));\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 15-06-2021\n * Descriptions : Route navigation for inner modules\n * Dependicies : To use @material-ui/core\n ************/\n\nimport {authRole} from '../shared/constants/AppConst';\n// const localRoleId = localStorage.getItem('roleId');\n\nconst routesConfig = [\n {\n id: 'dashbaord',\n title: 'Dashboard',\n messageId: 'sidebar.dashboard',\n type: 'single',\n icon: 'dashboard',\n auth: authRole.dashboardRoles,\n url: '/dashboard',\n },\n {\n id: 'dashbaord',\n title: 'Old eRx',\n messageId: 'sidebar.Olddashboard',\n type: 'single',\n icon: 'dashboard',\n auth: authRole.dashboardRoles,\n url: '/oldeRx',\n },\n {\n id: 'vaccine',\n title: 'Vaccine',\n messageId: 'sidebar.vaccine',\n type: 'single',\n icon: 'dashboard',\n auth: authRole.dashboardRoles,\n url: '/vaccine',\n },\n {\n id: 'appointment',\n title: 'Appointment',\n messageId: 'sidebar.appointment',\n type: 'single',\n icon: 'receipt_long',\n auth: authRole.appointmentRoles,\n url: '/appointment',\n },\n {\n id: 'mrdRequest',\n title: 'MRD Request',\n messageId: 'sidebar.mrd',\n type: 'single',\n icon: 'document_scanner',\n auth: authRole.mrdRole,\n url: '/mrdRequest',\n },\n];\nexport default routesConfig;\n","import React from 'react';\nimport HorizontalGroup from './HorizontalGroup';\nimport HorizontalCollapse from './HorizontalCollapse';\nimport HorizontalItem from './HorizontalItem';\nimport HorizontalSingle from './HorizontalSingle';\nimport Divider from '@material-ui/core/Divider';\nimport List from '@material-ui/core/List';\nimport {useSelector} from 'react-redux';\n\nimport routesConfig from '../../../../modules/routesConfig';\nimport Box from '@material-ui/core/Box';\n\nconst HorizontalNav = () => {\n const LoginUser = useSelector(({auth}) => auth.user);\n return (\n \n {routesConfig.map((item) => (\n \n {item.type === 'single' &&\n ( item.auth.includes(Number(LoginUser.roleId)) || item.auth.includes(Number(LoginUser.mrdDrCheck))) && (\n \n )}\n\n {item.type === 'group' && item.auth.includes(LoginUser.roleId) && (\n \n )}\n\n {item.type === 'collapse' && (\n \n )}\n\n {item.type === 'item' && (\n \n )}\n\n {item.type === 'divider' && (\n \n \n \n )}\n \n ))}\n \n );\n};\n\nexport default HorizontalNav;\n","import {makeStyles} from '@material-ui/core/styles';\n\nconst useStyles = makeStyles((theme) => ({\n headerMain: {\n position: 'relative',\n minHeight: 56,\n paddingRight: 0,\n paddingLeft: 0,\n backgroundColor: theme.palette.background.paper,\n [theme.breakpoints.up('sm')]: {\n minHeight: 70,\n },\n '& .langBtn': {\n borderLeft: '0 none',\n '&:hover, &:focus': {\n backgroundColor: 'transparent',\n },\n },\n '& .notiBtn': {\n color: theme.palette.grey[800],\n borderLeft: '0 none',\n '&:hover, &:focus': {\n color: theme.palette.text.primary,\n backgroundColor: 'transparent',\n },\n [theme.breakpoints.up('md')]: {\n color: theme.palette.grey[400],\n '&:hover, &:focus': {\n color: theme.palette.text.primary,\n },\n },\n },\n },\n headerMainFlex: {\n display: 'flex',\n alignItems: 'center',\n },\n headerContainer: {\n width: '100%',\n marginLeft: 'auto',\n marginRight: 'auto',\n paddingLeft: 20,\n paddingRight: 20,\n [theme.breakpoints.up('lg')]: {\n // maxWidth: 1140,\n maxWidth: '100%',\n },\n [theme.breakpoints.up('xl')]: {\n maxWidth: '100%',\n },\n },\n menuButton: {\n marginRight: theme.spacing(2),\n },\n grow: {\n flexGrow: 1,\n },\n sectionDesktop: {\n display: 'none',\n [theme.breakpoints.up('md')]: {\n display: 'flex',\n },\n },\n sectionMobile: {\n display: 'flex',\n [theme.breakpoints.up('sm')]: {\n marginLeft: 'auto',\n },\n [theme.breakpoints.up('md')]: {\n display: 'none',\n },\n },\n headerNav: {\n // backgroundColor: theme.palette.primary.main,\n backgroundColor: '#2e4167',\n color: theme.palette.primary.contrastText,\n '& .navbarNav': {\n display: 'flex',\n padding: 0,\n marginLeft: -16,\n marginRight: -16,\n [theme.breakpoints.up('lg')]: {\n marginLeft: -20,\n marginRight: -20,\n },\n // Mobile styling for vertical navigation\n [theme.breakpoints.down('sm')]: {\n flexDirection: 'column', // Switch to vertical layout\n // Spacing for vertical layout\n },\n },\n '& .navItem': {\n width: 'auto',\n cursor: 'pointer',\n [theme.breakpoints.up('lg')]: {\n paddingLeft: 20,\n paddingRight: 20,\n },\n [theme.breakpoints.down('sm')]: {\n marginBottom: 0, // Switch to vertical layout\n // Spacing for vertical layout\n },\n\n //inactive headers\n color: '#c5c0c0',\n '& .navLinkIcon': {\n color: '#c5c0c0',\n // color: theme.palette.secondary.main,\n },\n // active headers\n '&.active': {\n color: '#fff',\n '& .navLinkIcon': {\n color: '#fff',\n fontSize: 20,\n // color: theme.palette.secondary.main,\n },\n },\n },\n '& .navLinkIcon': {\n marginRight: 10,\n color: theme.palette.primary.contrastText,\n fontSize: 20,\n },\n },\n menuItemRoot: {\n padding: 0,\n },\n pointer: {\n cursor: 'pointer',\n },\n menuIconRoot: {\n width: '2.5rem',\n height: '2.5rem',\n },\n logoRoot: {\n height: 30,\n },\n}));\nexport default useStyles;\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 15-06-2021\n * Descriptions : GudMed change password screen\n * Dependicies : To use @material-ui/core\n ************/\n\nimport React from 'react';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport Button from '@material-ui/core/Button';\nimport IntlMessages from '../../utility/IntlMessages';\nimport Box from '@material-ui/core/Box';\nimport PropTypes from 'prop-types';\nimport {makeStyles} from '@material-ui/core/styles';\nimport {grey} from '@material-ui/core/colors';\nimport {Fonts} from '../../../shared/constants/AppEnums';\nimport TextField from '@material-ui/core/TextField';\n// for password textfield\nimport InputAdornment from '@material-ui/core/InputAdornment';\nimport Visibility from '@material-ui/icons/Visibility';\nimport VisibilityOff from '@material-ui/icons/VisibilityOff';\n\nimport {Icon} from '@material-ui/core';\nimport HighlightOffIcon from '@material-ui/icons/HighlightOff';\nimport Grid from '@material-ui/core/Grid';\nimport {useDispatch, useSelector} from 'react-redux';\nimport {onresetPassword} from '../../../redux/actions';\n// import constant value\nimport {passwordRegExp} from '../../../shared/constants/AppConst';\nimport {RESET_USER_PASWD} from '../../../shared/constants/ActionTypes';\nimport {\n onCognitoUserSignOut,\n onJWTAuthSignout,\n onSignOutAuth0User,\n onSignOutFirebaseUser,\n} from '../../../redux/actions';\nimport {useAuthUser} from '../../utility/AppHooks';\nimport {AuthType} from '../../../shared/constants/AppEnums';\nimport IconButton from '@material-ui/core/IconButton';\nimport ToasterMsg from './ToasterMsg';\nconst ChangePasswordPopup = ({open, onDeny, title}) => {\n const useStyle = makeStyles({\n formControl: {\n margin: 1,\n minWidth: 120,\n },\n dialogStyle: {\n fontStyle: Fonts.FONTSTYLE,\n position: 'relative',\n padding: 4,\n '& .MuiDialog-paperWidthSm': {\n maxWidth: 400,\n width: '100%',\n },\n '& .MuiDialog-paperWidthSm .MuiBox-root:first-child': {\n padding: 0,\n },\n },\n dialogHeader: {\n backgroundColor: '#2e4167',\n padding: 0,\n alignItems: 'center',\n borderBottom: ['1px solid #afa2a2a6'],\n },\n dialogheadStyle: {\n padding: 5,\n color: '#fff',\n },\n dialogTitle: {\n fontWeight: 'bold',\n marginBottom: 0,\n fontSize: Fonts.TableHeader,\n fontStyle: Fonts.FONTSTYLE,\n },\n\n textField: {\n fontStyle: Fonts.FONTSTYLE,\n fontSize: 10,\n width: '99%',\n '& .MuiFormLabel-root': {\n fontSize: 14,\n },\n '& .MuiInputLabel-asterisk': {\n color: 'red!important',\n },\n marginTop: 0,\n marginBottom: 0,\n padding: 2,\n marginLeft: 1,\n marginRight: 1,\n },\n container: {\n display: 'flex',\n flexWrap: 'wrap',\n },\n btnStyles: {\n textAlign: 'right',\n padding: 10,\n },\n closeBtn: {\n padding: 5,\n textAlign: 'right',\n },\n closeBtnColor: {\n color: '#fff',\n },\n btn: {\n marginLeft: 8,\n color: '#000',\n fontWeight: Fonts.MEDIUM,\n },\n savebtn: {\n backgroundColor: '#2e4167',\n color: '#fff',\n marginLeft: 8,\n fontWeight: Fonts.MEDIUM,\n '&:hover': {\n backgroundColor: '#2e4167',\n color: '#ffffff',\n },\n },\n contentText: {\n color: grey[600],\n padding: 15,\n '& .MuiGrid-item': {\n marginTop: 2,\n },\n },\n\n userRoot: {\n float: 'right',\n },\n });\n\n const classes = useStyle();\n const dispatch = useDispatch();\n const user = useAuthUser();\n // get user detail from redux\n const LoginUser = useSelector(({auth}) => auth);\n const resetpaswdsuccess = useSelector(\n ({userManage}) => userManage.resetpaswd,\n );\n const [getsnackbaropen, setsnackbarOpen] = React.useState(false);\n const [erroroldpaswdtxt, setErroroldpaswdtxt] = React.useState(\n 'Please enter old password',\n );\n const [errorconfirmpaswdtxt, setErrorconfirmpaswdtxt] = React.useState(\n 'Please enter confirm password',\n );\n const [errornewpaswdtxt, setErrornewpaswdtxt] = React.useState(\n 'Please enter new password',\n );\n const [errorValues, setErrorValues] = React.useState({\n password: false,\n newpassword: false,\n confirmpassword: false,\n });\n const [values, setValues] = React.useState({\n password: '',\n newpassword: '',\n confirmpassword: '',\n showPassword: false,\n showPassword1: false,\n showPassword2: false,\n });\n\n //Reset password function\n const resetUserPassword = async () => {\n //Validate Input fields\n if (values.password === '' || values.password === undefined) {\n setErroroldpaswdtxt('Please enter old password');\n setErrorValues({\n ...errorValues,\n password: true,\n newpassword: false,\n confirmpassword: false,\n });\n return;\n }\n if (!passwordRegExp.test(values.password)) {\n setErroroldpaswdtxt(\n 'Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and one special case Character',\n );\n setErrorValues({\n ...errorValues,\n password: true,\n newpassword: false,\n confirmpassword: false,\n });\n return;\n }\n if (values.newpassword === '' || values.newpassword === undefined) {\n setErrornewpaswdtxt('Please enter new password');\n setErrorValues({\n ...errorValues,\n password: false,\n newpassword: true,\n confirmpassword: false,\n });\n return;\n }\n if (!passwordRegExp.test(values.newpassword)) {\n setErrornewpaswdtxt(\n 'Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and one special case Character',\n );\n setErrorValues({\n ...errorValues,\n password: false,\n newpassword: true,\n confirmpassword: false,\n });\n return;\n }\n if (values.confirmpassword === '' || values.confirmpassword === undefined) {\n setErrorconfirmpaswdtxt('Please enter confirm password');\n setErrorValues({\n ...errorValues,\n password: false,\n newpassword: false,\n confirmpassword: true,\n });\n return;\n }\n if (!passwordRegExp.test(values.confirmpassword)) {\n setErrorconfirmpaswdtxt(\n 'Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and one special case Character',\n );\n setErrorValues({\n ...errorValues,\n password: false,\n newpassword: false,\n confirmpassword: true,\n });\n return;\n }\n if (\n errorValues.password !== true &&\n errorValues.newpassword !== true &&\n errorValues.confirmpassword !== true\n ) {\n if (values.newpassword === values.confirmpassword) {\n //Call reset user paswd api\n if (LoginUser.user.userId !== null) {\n await dispatch(\n onresetPassword({\n mobileNbr: LoginUser.user.mobileNo,\n doctorCode: LoginUser.user.doctorCode,\n oldpaswd: values.password,\n newpaswd: values.confirmpassword,\n }),\n );\n }\n } else {\n setErrorconfirmpaswdtxt('New password & Confirm Password Mismatch');\n setErrorValues({\n ...errorValues,\n password: false,\n newpassword: false,\n confirmpassword: true,\n });\n return;\n }\n }\n };\n\n if (resetpaswdsuccess === 'true') {\n // close popup\n onDeny(false);\n dispatch({\n type: RESET_USER_PASWD,\n payload: 'false',\n });\n setValues({\n ...values,\n password: '',\n newpassword: '',\n confirmpassword: '',\n showPassword: false,\n showPassword1: false,\n showPassword2: false,\n });\n setErrorValues({\n ...errorValues,\n password: false,\n newpassword: false,\n confirmpassword: false,\n });\n if (user && user.authType === AuthType.AWS_COGNITO) {\n dispatch(onCognitoUserSignOut());\n } else if (user && user.authType === AuthType.FIREBASE) {\n dispatch(onSignOutFirebaseUser());\n } else if (user && user.authType === AuthType.AUTH0) {\n dispatch(onSignOutAuth0User());\n } else if (user && user.authType === AuthType.JWT_AUTH) {\n let pushdata = {\n userId: user.id,\n userCode: user.doctorCode,\n onlineStatus: 'Logout',\n loginType: 'doctor',\n };\n\n dispatch(onJWTAuthSignout(pushdata));\n }\n } else if (resetpaswdsuccess === 'incorrect') {\n dispatch({\n type: RESET_USER_PASWD,\n payload: 'false',\n });\n setsnackbarOpen(true);\n }\n // password show and hide functionality\n const handleClickShowPassword = () => {\n setValues({...values, showPassword: !values.showPassword});\n };\n\n // password show and hide functionality\n const handleClickShowPassword1 = () => {\n setValues({...values, showPassword1: !values.showPassword1});\n };\n // password show and hide functionality\n const handleClickShowPassword2 = () => {\n setValues({...values, showPassword2: !values.showPassword2});\n };\n\n const handleMouseDownPassword = (event) => {\n event.preventDefault();\n };\n const closePopup = () => {\n onDeny(false);\n setValues({\n ...values,\n password: '',\n newpassword: '',\n confirmpassword: '',\n showPassword: false,\n showPassword1: false,\n showPassword2: false,\n });\n setErrorValues({\n ...errorValues,\n password: false,\n newpassword: false,\n confirmpassword: false,\n });\n };\n return (\n \n \n \n \n \n {title}\n \n \n \n closePopup()}>\n \n \n \n \n\n \n \n account_circle\n \n {LoginUser.user.displayName}\n \n \n \n {\n setValues({...values, password: event.target.value});\n }}\n name='password'\n label='Old Password'\n onBlur={(event) => {\n // password validation\n if (event.target.value === '') {\n setErroroldpaswdtxt('Please enter old password');\n setErrorValues({...errorValues, password: true});\n } else if (!passwordRegExp.test(event.target.value)) {\n setErroroldpaswdtxt(\n 'Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and one special case Character',\n );\n setErrorValues({...errorValues, password: true});\n } else {\n setErrorValues({...errorValues, password: false});\n }\n }}\n type={values.showPassword ? 'text' : 'password'}\n inputProps={{minLength: 8, maxLength: 20}}\n InputProps={{\n minLength: 8,\n maxLength: 20,\n endAdornment: (\n \n \n {values.showPassword ? : }\n \n \n ),\n }}\n helperText={errorValues.password === true ? erroroldpaswdtxt : ' '}\n error={errorValues.password === true}\n />\n \n \n {\n setValues({...values, newpassword: event.target.value});\n }}\n name='newpassword'\n label='New Password'\n onBlur={(event) => {\n // password validation\n if (event.target.value === '') {\n setErrornewpaswdtxt('Please enter new password');\n setErrorValues({...errorValues, newpassword: true});\n } else if (!passwordRegExp.test(event.target.value)) {\n setErrornewpaswdtxt(\n 'Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and one special case Character',\n );\n setErrorValues({...errorValues, newpassword: true});\n } else {\n setErrorValues({...errorValues, newpassword: false});\n }\n }}\n type={values.showPassword1 ? 'text' : 'password'}\n inputProps={{minLength: 8, maxLength: 20}}\n InputProps={{\n minLength: 8,\n maxLength: 20,\n endAdornment: (\n \n \n {values.showPassword1 ? : }\n \n \n ),\n }}\n helperText={\n errorValues.newpassword === true ? errornewpaswdtxt : ' '\n }\n error={errorValues.newpassword === true}\n />\n \n\n \n {\n setValues({...values, confirmpassword: event.target.value});\n }}\n name='confirmpassword'\n label='Confirm Password'\n onBlur={(event) => {\n // password validation\n if (event.target.value === '') {\n setErrorconfirmpaswdtxt('Please enter confirm password');\n setErrorValues({...errorValues, confirmpassword: true});\n } else if (!passwordRegExp.test(event.target.value)) {\n setErrorconfirmpaswdtxt(\n 'Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and one special case Character',\n );\n setErrorValues({...errorValues, confirmpassword: true});\n } else {\n setErrorValues({...errorValues, confirmpassword: false});\n }\n }}\n type={values.showPassword2 ? 'text' : 'password'}\n inputProps={{minLength: 8, maxLength: 20}}\n InputProps={{\n minLength: 8,\n maxLength: 20,\n endAdornment: (\n \n \n {values.showPassword2 ? : }\n \n \n ),\n }}\n helperText={\n errorValues.confirmpassword === true ? errorconfirmpaswdtxt : ' '\n }\n error={errorValues.confirmpassword === true}\n />\n \n \n \n {/* closePopup()}>\n \n */}\n \n \n \n \n \n );\n};\n\nexport default ChangePasswordPopup;\n\nChangePasswordPopup.propTypes = {\n // dialogTitle: PropTypes.bool.isRequired,\n open: PropTypes.bool.isRequired,\n onDeny: PropTypes.func.isRequired,\n title: PropTypes.node.isRequired,\n};\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 28-06-2021\n * Descriptions : Logout Confirmation\n * Dependicies : To use @material-ui/core\n ************/\nimport React from 'react';\nimport {withStyles} from '@material-ui/core/styles';\nimport Button from '@material-ui/core/Button';\nimport Dialog from '@material-ui/core/Dialog';\nimport MuiDialogTitle from '@material-ui/core/DialogTitle';\nimport MuiDialogContent from '@material-ui/core/DialogContent';\nimport MuiDialogActions from '@material-ui/core/DialogActions';\nimport Typography from '@material-ui/core/Typography';\nimport {useDispatch} from 'react-redux';\nimport {makeStyles} from '@material-ui/core/styles';\nimport {useAuthUser} from '../../utility/AppHooks';\nimport {AuthType} from '../../../shared/constants/AppEnums';\nimport {\n onCognitoUserSignOut,\n onJWTAuthSignout,\n onSignOutAuth0User,\n onSignOutFirebaseUser,\n} from '../../../redux/actions';\nimport PropTypes from 'prop-types';\nimport {\n PATIENT_COMPLETED_COUNT,\n PATIENT_COMPLETED_DATA,\n} from '../../../shared/constants/ActionTypes';\n// style applied to this page\nconst useStyles = makeStyles((theme) => ({\n rootdialog: {\n margin: 0,\n padding: theme.spacing(2),\n },\n closeButton: {\n position: 'absolute',\n right: theme.spacing(1),\n top: theme.spacing(1),\n color: theme.palette.grey[500],\n },\n dialogwidth: {\n '& .MuiDialog-paperWidthSm': {\n width: '40%',\n },\n },\n btnblue: {\n background: '#2e4167',\n color: '#ffffff',\n '&:hover': {\n background: '#2e4167',\n color: '#ffffff',\n },\n },\n btnred: {\n background: '#ff7252',\n color: '#ffffff',\n '&:hover': {\n background: '#ff7252',\n color: '#ffffff',\n },\n },\n\n dialogactionsclass: {\n marginBottom: '10px !important',\n marginTop: '10px !important',\n },\n}));\n\nconst ConfirmationDialog = ({opendialog, onDeny, email, userid}) => {\n const classes = useStyles();\n const user = useAuthUser();\n const dispatch = useDispatch();\n\n // logout yes click event\n const logoutUser = () => {\n onDeny(false);\n window.localStorage.clear();\n localStorage.clear();\n dispatch({\n type: PATIENT_COMPLETED_DATA,\n payload: null,\n });\n dispatch({\n type: PATIENT_COMPLETED_COUNT,\n payload: null,\n });\n if (user && user.authType === AuthType.AWS_COGNITO) {\n dispatch(onCognitoUserSignOut());\n } else if (user && user.authType === AuthType.FIREBASE) {\n dispatch(onSignOutFirebaseUser());\n } else if (user && user.authType === AuthType.AUTH0) {\n dispatch(onSignOutAuth0User());\n } else if (user && user.authType === AuthType.JWT_AUTH) {\n let pushdata = {\n userId: user.userId,\n userCode: user.doctorCode,\n onlineStatus: 'Logout',\n loginType: 'doctor',\n };\n\n dispatch(onJWTAuthSignout(pushdata));\n }\n };\n\n const DialogContent = withStyles((theme) => ({\n root: {\n padding: theme.spacing(2),\n },\n }))(MuiDialogContent);\n\n const DialogActions = withStyles((theme) => ({\n root: {\n margin: 0,\n padding: theme.spacing(1),\n },\n }))(MuiDialogActions);\n\n //Delete dialog\n const DialogTitle = withStyles(useStyles)((props) => {\n const {children, classes} = props;\n return (\n \n {children}\n \n );\n });\n\n return (\n <>\n onDeny(false)}\n aria-labelledby='customized-dialog-title'>\n Confirmation\n \n \n Are you sure you want to Logout ?\n \n \n \n \n \n \n \n \n );\n};\nexport default ConfirmationDialog;\nConfirmationDialog.propTypes = {\n opendialog: PropTypes.bool.isRequired,\n onDeny: PropTypes.func.isRequired,\n};\n","import React, {useContext, useState} from 'react';\nimport Avatar from '@material-ui/core/Avatar';\nimport {useAuthUser} from '../../utility/AppHooks';\nimport AppContext from '../../utility/AppContext';\nimport {Divider, makeStyles} from '@material-ui/core';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Menu from '@material-ui/core/Menu';\nimport Box from '@material-ui/core/Box';\nimport {orange} from '@material-ui/core/colors';\nimport {Fonts} from '../../../shared/constants/AppEnums';\nimport Hidden from '@material-ui/core/Hidden';\nimport ChangePasswordPopup from './ChangepasswordPopup';\n// import confirmation dialog\nimport ConfirmationDialog from './confirmationDialog';\nimport {useHistory} from 'react-router-dom';\nimport {useDispatch, useSelector} from 'react-redux';\n\nimport FiberManualRecordIcon from '@material-ui/icons/FiberManualRecord';\nimport {storeOnlineOfflineStatus} from '../../../redux/actions';\n\n// for style\nconst useStyles = makeStyles((theme) => {\n return {\n userRoot: {\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n justifyContent: 'center',\n position: 'relative',\n },\n avatar: {\n fontSize: 24,\n backgroundColor: orange[500],\n },\n autowidht: {\n width: '40px',\n height: '40px',\n marginLeft: 6,\n borderRadius: '60px',\n border: '1px solid #2e4167',\n },\n userInfo: {\n width: 'calc(100% - 75px)',\n },\n pointer: {\n cursor: 'pointer',\n },\n userName: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n cursor: 'pointer',\n whiteSpace: 'nowrap',\n fontSize: 15,\n fontWeight: Fonts.MEDIUM,\n color: (props) =>\n props.bgType === 'colored' ? 'white' : theme.palette.text.primary,\n },\n\n outerBox: {\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n justifyContent: 'center',\n },\n onlineStatus: {\n position: 'absolute',\n zIndex: 99,\n\n color: '#21d221',\n width: 18,\n height: 18,\n top: '-7%',\n left: '2%',\n },\n offlineStatus: {\n position: 'absolute',\n zIndex: 99,\n\n color: '#ff0000',\n width: 18,\n height: 18,\n top: '-7%',\n left: '2%',\n },\n };\n});\n\nconst HorUserInfo = ({bgType = 'colored'}) => {\n const [changePassword, setChangePasswordPopup] = useState(false);\n const {themeMode} = useContext(AppContext);\n const [openpopup, setopenpopup] = useState(false);\n const user = useAuthUser();\n const dispatch = useDispatch();\n\n const history = useHistory();\n const [anchorEl, setAnchorEl] = React.useState(null);\n const [getStatus, setgetStatus] = React.useState('Online');\n const [statusChange, setStatusChange] = React.useState({\n onlineshow: {display: 'block'},\n onlinehide: {display: 'none'},\n offlineshow: {display: 'block'},\n offlinehide: {display: 'none'},\n });\n const handleClick = (event) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n // changepassword open popup event\n const openChangepasswordPopup = () => {\n setAnchorEl(null);\n setChangePasswordPopup(true);\n };\n\n // logout open popup event\n const logoutClick = () => {\n setAnchorEl(null);\n setopenpopup(true);\n };\n const onGoToMyAccount = () => {\n setAnchorEl(null);\n history.push('/my-profile');\n };\n const onGoToMyPreferences = () => {\n setAnchorEl(null);\n history.push('/my-preferences');\n };\n // online/offline change event\n const statusChanges = (val) => {\n console.log(user, 'userdata');\n let pushdata = {\n userId: user.id,\n userCode: user.doctorCode,\n onlineStatus: val,\n loginType: 'doctor',\n };\n dispatch(storeOnlineOfflineStatus(pushdata));\n setgetStatus(val);\n setAnchorEl(null);\n };\n const classes = useStyles({themeMode, bgType});\n return (\n \n \n \n {/* {user.photoURL ? (\n \n ) : ( \n {getUserAvatar()}\n )} */}\n\n {/* */}\n \n {getStatus === 'Online' ? (\n \n ) : (\n \n )}\n\n \n \n {/* display name check */}\n {user.displayName ? user.displayName : user.email}\n {/* \n {user.role}\n */}\n \n \n \n \n \n \n statusChanges('Online')}\n style={\n getStatus === 'Online'\n ? statusChange.onlinehide\n : statusChange.onlineshow\n }>\n {' '}\n \n Online\n \n statusChanges('Offline')}\n style={\n getStatus === 'Offline'\n ? statusChange.offlinehide\n : statusChange.offlineshow\n }>\n {' '}\n \n Offline\n \n \n onGoToMyAccount()}>\n My Profile\n \n onGoToMyPreferences()}>\n My Preferences\n \n openChangepasswordPopup()}>\n Change Password\n \n\n {\n logoutClick();\n }}>\n Logout\n \n \n }\n />\n \n \n \n );\n};\n\nexport default HorUserInfo;\n","import React, {useContext} from 'react';\nimport {Box} from '@material-ui/core';\nimport {makeStyles} from '@material-ui/core/styles';\nimport AppContext from '../../../@crema/utility/AppContext';\nimport {ThemeMode} from '../../constants/AppEnums';\nimport Hidden from '@material-ui/core/Hidden';\nimport {useHistory} from 'react-router-dom';\nconst AppLogo = () => {\n const {themeMode} = useContext(AppContext);\n const useStyles = makeStyles(() => ({\n logoRoot: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n cursor: 'pointer',\n },\n logo: {\n //height: 36,\n height: 'auto',\n marginRight: 10,\n },\n }));\n const classes = useStyles();\n const history = useHistory();\n //Go to dahboard\n const goToDashboard = async () => {\n history.push('/');\n };\n return (\n goToDashboard()}>\n \n \n \n \n \n \n \n );\n};\n\nexport default AppLogo;\n","import React from 'react';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport MenuIcon from '@material-ui/icons/Menu';\n// import MenuItem from '@material-ui/core/MenuItem';\n// import Menu from '@material-ui/core/Menu';\n// import LanguageSwitcher from '../../LanguageSwitcher';\nimport {toggleNavCollapsed} from '../../../../redux/actions';\nimport {useDispatch} from 'react-redux';\nimport Hidden from '@material-ui/core/Hidden';\nimport HorizontalNav from '../../Navigation/HorizontalNav';\nimport Box from '@material-ui/core/Box';\nimport useStyles from './AppHeader.style';\n// import HeaderMessages from '../../HeaderMessages';\n// import Notifications from '../../Notifications';\nimport MoreIcon from '@material-ui/icons/MoreVert';\nimport HorUserInfo from '../HorUserInfo';\nimport AppLogo from '../../../../shared/components/AppLogo';\n\nconst AppHeader = () => {\n const classes = useStyles();\n const dispatch = useDispatch();\n const [mobileMoreAnchorEl, setMobileMoreAnchorEl] = React.useState(null);\n\n const isMobileMenuOpen = Boolean(mobileMoreAnchorEl);\n\n // function handleMobileMenuClose() {\n // setMobileMoreAnchorEl(null);\n // }\n\n function handleMobileMenuOpen(event) {\n setMobileMoreAnchorEl(event.currentTarget);\n }\n\n const mobileMenuId = 'primary-search-account-menu-mobile';\n // const renderMobileMenu = (\n // \n // \n // \n // \n // \n // \n // \n // \n // \n // );\n\n return (\n <>\n \n {/* */}\n \n \n \n {/* \n dispatch(toggleNavCollapsed())}>\n \n \n */}\n\n \n \n {/* */}\n {/* \n \n \n \n */}\n\n \n \n \n \n {/* */}\n \n \n \n \n \n {/* */}\n \n {/* {renderMobileMenu} */}\n \n );\n};\nexport default AppHeader;\n","import {makeStyles} from '@material-ui/core';\n\nconst useStyles = makeStyles((theme) => {\n return {\n appMain: {\n minHeight: '100vh',\n display: 'flex',\n flexDirection: 'column',\n position: 'relative',\n backgroundColor: theme.palette.background.default,\n '&.appMainHor': {\n '& .customizerOption': {\n position: 'fixed',\n top: 205,\n [theme.breakpoints.up('md')]: {\n display: 'none',\n },\n right: '22px',\n },\n '&.appMainFixedFooter': {\n paddingBottom: 48,\n [theme.breakpoints.up('xl')]: {\n paddingBottom: 58,\n },\n '& .footer': {\n borderTop: 'solid 1px',\n borderTopColor: theme.palette.grey[200],\n },\n },\n },\n '& .footer': {\n marginLeft: 0,\n marginRight: 0,\n marginTop: 0,\n [theme.breakpoints.up('md')]: {\n marginLeft: 0,\n marginRight: 0,\n },\n },\n '& .footerContainer': {\n width: '100%',\n marginLeft: 'auto',\n marginRight: 'auto',\n paddingLeft: 16,\n paddingRight: 16,\n [theme.breakpoints.up('lg')]: {\n // maxWidth: 1140,\n maxWidth: 1260,\n },\n [theme.breakpoints.up('xl')]: {\n maxWidth: 1720,\n },\n },\n },\n mainContent: {\n flex: 1,\n display: 'flex',\n },\n mainContainer: {\n width: '100%',\n marginLeft: 'auto',\n marginRight: 'auto',\n [theme.breakpoints.up('lg')]: {\n // maxWidth: 1140,\n maxWidth: '100%',\n },\n [theme.breakpoints.up('xl')]: {\n maxWidth: '100%',\n },\n '& > .scrollbar-container': {\n padding: '20px',\n display: 'flex',\n flexDirection: 'column',\n [theme.breakpoints.up('md')]: {\n padding: '16px 16px',\n },\n '& > div': {\n marginBottom: 0,\n },\n },\n },\n boxedLayout: {\n [theme.breakpoints.up('lg')]: {\n maxWidth: 1260,\n marginLeft: 'auto',\n marginRight: 'auto',\n boxShadow: '0px 0px 4px 2px rgba(0,0,0,0.12)',\n '& .app-sidebar': {\n position: 'absolute',\n },\n '& .fixed-footer': {\n maxWidth: 1260,\n marginLeft: 'auto',\n marginRight: 'auto',\n right: 0,\n },\n '& $mainContent': {\n width: '100%',\n flex: 'auto',\n },\n '& $mainContainer': {\n width: '100%',\n },\n '& .grid-btn': {\n fontSize: 11,\n },\n },\n [theme.breakpoints.up('xl')]: {\n maxWidth: 1680,\n '& $mainContent': {\n width: '100%',\n },\n '& .fixed-footer': {\n maxWidth: 1680,\n },\n },\n },\n };\n});\nexport default useStyles;\n","import React, {useContext} from 'react';\nimport AppContext from '../../../utility/AppContext';\nimport Box from '@material-ui/core/Box';\nimport {Button, makeStyles} from '@material-ui/core';\nimport clsx from 'clsx';\n\nconst AppFooter = (props) => {\n const {footer, footerType} = useContext(AppContext);\n\n const useStyles = makeStyles((theme) => ({\n footer: {\n margin: 'auto -20px 0',\n backgroundColor: theme.palette.background.paper,\n color: theme.palette.text.primary,\n [theme.breakpoints.up('md')]: {\n marginLeft: '-32px',\n marginRight: '-32px',\n },\n '& .footerContainer': {\n padding: '5px 20px',\n [theme.breakpoints.up('md')]: {\n paddingLeft: 32,\n paddingRight: 32,\n },\n [theme.breakpoints.up('xl')]: {\n padding: '10px 32px',\n },\n },\n },\n btnRoot: {\n paddingLeft: 20,\n paddingRight: 20,\n },\n }));\n\n const classes = useStyles(props);\n\n return (\n <>\n {footer && footerType === 'fluid' ? (\n \n \n Copy right @crema 2020\n \n \n \n \n \n ) : null}\n \n );\n};\n\nexport default AppFooter;\n","import React, {useContext} from 'react';\nimport AppContext from '../../../utility/AppContext';\nimport Box from '@material-ui/core/Box';\nimport {Button, makeStyles} from '@material-ui/core';\nimport clsx from 'clsx';\n\nconst AppFixedFooter = (props) => {\n const {footer, footerType} = useContext(AppContext);\n\n const useStyles = makeStyles((theme) => ({\n footer: {\n position: 'fixed',\n left: 0,\n bottom: 0,\n width: '100%',\n zIndex: 99,\n backgroundColor: theme.palette.background.paper,\n color: theme.palette.text.primary,\n margin: '0',\n '& .footerContainer': {\n padding: '5px 20px',\n [theme.breakpoints.up('xl')]: {\n padding: '10px 20px',\n },\n },\n },\n btnRoot: {\n paddingLeft: 20,\n paddingRight: 20,\n },\n }));\n\n const classes = useStyles(props);\n\n return (\n <>\n {footer && footerType === 'fixed' ? (\n \n \n Copy right @crema 2020\n \n \n \n \n \n ) : null}\n \n );\n};\n\nexport default AppFixedFooter;\n","import React, {useContext} from 'react';\nimport Avatar from '@material-ui/core/Avatar';\nimport {useDispatch} from 'react-redux';\nimport {\n onCognitoUserSignOut,\n onJWTAuthSignout,\n onSignOutAuth0User,\n onSignOutFirebaseUser,\n} from '../../../redux/actions';\nimport {useAuthUser} from '../../../@crema/utility/AppHooks';\nimport AppContext from '../../../@crema/utility/AppContext';\nimport clsx from 'clsx';\nimport {makeStyles} from '@material-ui/core';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Menu from '@material-ui/core/Menu';\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\nimport Box from '@material-ui/core/Box';\nimport {orange} from '@material-ui/core/colors';\nimport {AuthType, Fonts} from '../../constants/AppEnums';\n\nconst useStyles = makeStyles((theme) => {\n return {\n crUserInfo: {\n backgroundColor: 'rgba(0,0,0,.08)',\n paddingTop: 9,\n paddingBottom: 9,\n minHeight: 56,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n [theme.breakpoints.up('sm')]: {\n paddingTop: 10,\n paddingBottom: 10,\n minHeight: 70,\n },\n },\n profilePic: {\n fontSize: 24,\n backgroundColor: orange[500],\n },\n userInfo: {\n width: 'calc(100% - 75px)',\n },\n userName: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n fontSize: 16,\n fontWeight: Fonts.MEDIUM,\n color: (props) => (props.themeMode === 'light' ? '#313541' : 'white'),\n },\n designation: {\n marginTop: -2,\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n color: theme.palette.text.secondary,\n },\n pointer: {\n cursor: 'pointer',\n },\n };\n});\n\nconst UserInfo = (props) => {\n const {themeMode} = useContext(AppContext);\n const dispatch = useDispatch();\n const user = useAuthUser();\n\n const [anchorEl, setAnchorEl] = React.useState(null);\n\n const handleClick = (event) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const getUserAvatar = () => {\n if (user.displayName) {\n return user.displayName.charAt(0).toUpperCase();\n }\n if (user.email) {\n return user.email.charAt(0).toUpperCase();\n }\n };\n\n const classes = useStyles({themeMode});\n\n return (\n \n \n {user.photoURL ? (\n \n ) : (\n {getUserAvatar()}\n )}\n \n \n \n {user.displayName ? user.displayName : 'Admin User '}\n \n \n \n \n My account\n {\n if (user && user.authType === AuthType.AWS_COGNITO) {\n dispatch(onCognitoUserSignOut());\n } else if (user && user.authType === AuthType.FIREBASE) {\n dispatch(onSignOutFirebaseUser());\n } else if (user && user.authType === AuthType.AUTH0) {\n dispatch(onSignOutAuth0User());\n } else if (user && user.authType === AuthType.JWT_AUTH) {\n let pushdata = {\n userId: user.id,\n userCode: user.doctorCode,\n onlineStatus: 'Logout',\n loginType: 'doctor',\n };\n dispatch(onJWTAuthSignout(pushdata));\n }\n }}>\n Logout\n \n \n \n \n System Manager\n \n \n \n );\n};\n\nexport default UserInfo;\n","import {makeStyles} from '@material-ui/core/styles';\nimport {Fonts, ThemeMode} from '../../../../shared/constants/AppEnums';\n\nconst useStyles = makeStyles((theme) => {\n return {\n navItem: {\n height: 40,\n marginTop: 2,\n marginBottom: 2,\n cursor: 'pointer',\n textDecoration: 'none !important',\n width: 'calc(100% - 16px)',\n borderRadius: '0 30px 30px 0',\n paddingLeft:\n theme.direction === 'ltr' ? (props) => 24 + 40 * props.level : 12,\n paddingRight:\n theme.direction === 'rtl' ? (props) => 24 + 40 * props.level : 12,\n '&.nav-item-header': {\n textTransform: 'uppercase',\n },\n '&.active': {\n backgroundColor: theme.palette.primary.main,\n pointerEvents: 'none',\n transition: 'border-radius .15s cubic-bezier(0.4,0.0,0.2,1)',\n '& .nav-item-text': {\n color: theme.palette.common.white + '!important',\n fontWeight: Fonts.MEDIUM,\n },\n '& .nav-item-icon': {\n color: theme.palette.common.white + '!important',\n },\n },\n\n '&:hover, &:focus': {\n '& .nav-item-text': {\n color: (props) =>\n props.themeMode === ThemeMode.LIGHT\n ? theme.palette.primary.main\n : '#fff',\n },\n\n '& .nav-item-icon': {\n color: (props) =>\n props.themeMode === ThemeMode.LIGHT\n ? theme.palette.primary.main\n : '#fff',\n },\n\n '& .nav-item-icon-arrow': {\n color: (props) =>\n props.themeMode === ThemeMode.LIGHT\n ? theme.palette.primary.main\n : '#fff',\n },\n },\n '& .nav-item-icon': {\n color: theme.palette.sidebar.textColor,\n },\n '& .nav-item-text': {\n color: theme.palette.sidebar.textColor,\n fontWeight: Fonts.MEDIUM,\n },\n },\n listIcon: {\n fontSize: 18,\n [theme.breakpoints.up('xl')]: {\n // fontSize: 20,\n },\n },\n listItemText: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n fontWeight: Fonts.REGULAR,\n },\n };\n});\nexport default useStyles;\n","import React, {useContext, useMemo} from 'react';\nimport {Icon, ListItem, ListItemText} from '@material-ui/core';\nimport {withRouter} from 'react-router-dom';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport {Badge, NavLink} from '../../../index';\nimport Box from '@material-ui/core/Box';\nimport IntlMessages from '../../../utility/IntlMessages';\nimport useStyles from './VerticalItem.style';\nimport AppContext from '../../../utility/AppContext';\nimport {checkPermission} from '../../../utility/Utils';\nimport {useSelector} from 'react-redux';\n\nconst VerticalItem = ({level, item}) => {\n const {themeMode} = useContext(AppContext);\n const classes = useStyles({level, themeMode});\n const {user} = useSelector(({auth}) => auth);\n const hasPermission = useMemo(() => checkPermission(item.auth, user.role), [\n item.auth,\n user.role,\n ]);\n if (!hasPermission) {\n return null;\n }\n return (\n \n {item.icon && (\n \n \n {item.icon}\n \n \n )}\n }\n classes={{primary: 'nav-item-text'}}\n />\n {item.count && (\n \n \n \n )}\n \n );\n};\n\nVerticalItem.propTypes = {\n item: PropTypes.shape({\n id: PropTypes.string.isRequired,\n title: PropTypes.string,\n icon: PropTypes.string,\n url: PropTypes.string,\n }),\n};\n\nVerticalItem.defaultProps = {};\n\nexport default withRouter(React.memo(VerticalItem));\n","import {makeStyles} from '@material-ui/core/styles';\nimport {Fonts, ThemeMode} from '../../../../shared/constants/AppEnums';\n\nconst useStyles = makeStyles((theme) => {\n return {\n navItem: {\n height: 40,\n marginTop: 2,\n marginBottom: 2,\n width: 'calc(100% - 16px)',\n borderRadius: '0 30px 30px 0',\n paddingLeft:\n theme.direction === 'ltr' ? (props) => 24 + 40 * props.level : 24,\n paddingRight:\n theme.direction === 'rtl' ? (props) => 24 + 40 * props.level : 24,\n\n [theme.breakpoints.up('xl')]: {\n paddingLeft:\n theme.direction === 'ltr' ? (props) => 24 + 40 * props.level : 24,\n paddingRight:\n theme.direction === 'rtl' ? (props) => 24 + 40 * props.level : 24,\n },\n\n '& .nav-item-text': {\n fontWeight: Fonts.REGULAR,\n // fontSize: 16,\n color: theme.palette.sidebar.textColor,\n\n [theme.breakpoints.up('xl')]: {\n marginTop: 4,\n marginBottom: 4,\n // fontSize: 18,\n },\n },\n\n '& .nav-item-icon': {\n color: theme.palette.sidebar.textColor,\n },\n\n '& .nav-item-icon-arrow': {\n color: theme.palette.sidebar.textColor,\n },\n\n '& .MuiIconButton-root': {\n marginRight: -16,\n },\n\n '&.open, &:hover, &:focus': {\n '& .nav-item-text': {\n fontWeight: Fonts.MEDIUM,\n color: (props) =>\n props.themeMode === ThemeMode.LIGHT ? '#313541' : '#fff',\n },\n\n '& .nav-item-icon': {\n color: (props) =>\n props.themeMode === ThemeMode.LIGHT ? '#313541' : '#fff',\n },\n\n '& .nav-item-icon-arrow': {\n color: (props) =>\n props.themeMode === ThemeMode.LIGHT ? '#313541' : '#fff',\n },\n },\n },\n listItemText: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n listIcon: {\n fontSize: 18,\n [theme.breakpoints.up('xl')]: {\n // fontSize: 20,\n },\n },\n };\n});\nexport default useStyles;\n","import React, {useContext, useEffect, useMemo, useState} from 'react';\nimport {\n Collapse,\n Icon,\n IconButton,\n ListItem,\n ListItemText,\n} from '@material-ui/core';\nimport {useLocation} from 'react-router-dom';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport VerticalItem from './VerticalItem';\nimport AppContext from '../../../utility/AppContext';\nimport Box from '@material-ui/core/Box';\nimport IntlMessages from '../../../utility/IntlMessages';\nimport useStyles from './VerticalCollapase.style';\nimport {useSelector} from 'react-redux';\nimport {checkPermission} from '../../../utility/Utils';\n\nconst needsToBeOpened = (pathname, item) => {\n return pathname && isUrlInChildren(item, pathname);\n};\n\nconst isUrlInChildren = (parent, url) => {\n if (!parent.children) {\n return false;\n }\n\n for (let i = 0; i < parent.children.length; i++) {\n if (parent.children[i].children) {\n if (isUrlInChildren(parent.children[i], url)) {\n return true;\n }\n }\n\n if (\n parent.children[i].url === url ||\n url.includes(parent.children[i].url)\n ) {\n return true;\n }\n }\n\n return false;\n};\n\nconst VerticalCollapse = ({item, level}) => {\n const {themeMode} = useContext(AppContext);\n const classes = useStyles({level, themeMode});\n const {theme} = useContext(AppContext);\n const {pathname} = useLocation();\n const [open, setOpen] = useState(() => needsToBeOpened(pathname, item));\n\n useEffect(() => {\n if (needsToBeOpened(pathname, item)) {\n setOpen(true);\n }\n }, [pathname, item]);\n\n const handleClick = () => {\n setOpen(!open);\n };\n\n const {user} = useSelector(({auth}) => auth);\n const hasPermission = useMemo(() => checkPermission(item.auth, user.role), [\n item.auth,\n user.role,\n ]);\n\n if (!hasPermission) {\n return null;\n }\n\n return (\n <>\n \n {item.icon && (\n \n \n {item.icon}\n \n \n )}\n }\n />\n \n \n \n {open\n ? 'expand_more'\n : theme.direction === 'ltr'\n ? 'chevron_right'\n : 'chevron_left'}\n \n \n \n \n\n {item.children && (\n \n {item.children.map((item) => (\n \n {item.type === 'collapse' && (\n \n )}\n\n {item.type === 'item' && (\n \n )}\n \n ))}\n \n )}\n \n );\n};\n\nVerticalCollapse.propTypes = {\n item: PropTypes.shape({\n id: PropTypes.string.isRequired,\n title: PropTypes.string,\n icon: PropTypes.string,\n children: PropTypes.array,\n }),\n};\nVerticalCollapse.defaultProps = {};\n\nexport default React.memo(VerticalCollapse);\n","import {makeStyles} from '@material-ui/core/styles';\nimport {ThemeMode} from '../../../../shared/constants/AppEnums';\n\nconst useStyles = makeStyles((theme) => {\n return {\n navItem: {\n height: 40,\n marginTop: 2,\n marginBottom: 2,\n paddingLeft:\n theme.direction === 'ltr' ? (props) => 24 + 40 * props.level : 12,\n paddingRight:\n theme.direction === 'rtl' ? (props) => 24 + 40 * props.level : 12,\n color: (props) =>\n props.themeMode === ThemeMode.LIGHT\n ? theme.palette.text.secondary\n : 'rgba(255,255,255,0.38)',\n fontWeight: 700,\n fontSize: 14,\n cursor: 'pointer',\n textDecoration: 'none!important',\n\n [theme.breakpoints.up('xl')]: {\n // fontSize: 16,\n marginTop: 4,\n marginBottom: 4,\n paddingLeft:\n theme.direction === 'ltr' ? (props) => 24 + 40 * props.level : 12,\n paddingRight:\n theme.direction === 'rtl' ? (props) => 24 + 40 * props.level : 12,\n },\n '&.nav-item-header': {\n textTransform: 'uppercase',\n },\n },\n };\n});\n\nexport default useStyles;\n","import React, {useContext, useMemo} from 'react';\nimport {ListItem} from '@material-ui/core';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport VerticalCollapse from './VerticalCollapse';\nimport VerticalItem from './VerticalItem';\nimport IntlMessages from '../../../utility/IntlMessages';\nimport useStyles from './VerticalNavGroup.style';\nimport AppContext from '../../../utility/AppContext';\nimport {useSelector} from 'react-redux';\nimport {checkPermission} from '../../../utility/Utils';\n\nconst VerticalNavGroup = ({item, level}) => {\n const {themeMode} = useContext(AppContext);\n const classes = useStyles({level, themeMode});\n const {user} = useSelector(({auth}) => auth);\n const hasPermission = useMemo(() => checkPermission(item.auth, user.role), [\n item.auth,\n user.role,\n ]);\n if (!hasPermission) {\n return null;\n }\n return (\n <>\n \n {}\n \n\n {item.children && (\n <>\n {item.children.map((item) => (\n \n {item.type === 'group' && (\n \n )}\n\n {item.type === 'collapse' && (\n \n )}\n\n {item.type === 'item' && (\n \n )}\n \n ))}\n \n )}\n \n );\n};\n\nVerticalNavGroup.propTypes = {\n item: PropTypes.shape({\n id: PropTypes.string.isRequired,\n title: PropTypes.string,\n children: PropTypes.array,\n }),\n};\n\nVerticalNavGroup.defaultProps = {};\n\nconst NavVerticalGroup = VerticalNavGroup;\n\nexport default NavVerticalGroup;\n","import React from 'react';\nimport List from '@material-ui/core/List';\n\nimport routesConfig from '../../../../modules/routesConfig';\nimport VerticalCollapse from './VerticalCollapse';\nimport VerticalItem from './VerticalItem';\nimport VerticalNavGroup from './VerticalNavGroup';\n\nconst Navigation = () => {\n return (\n \n {routesConfig.map((item) => (\n \n {item.type === 'group' && }\n\n {item.type === 'collapse' && (\n \n )}\n\n {item.type === 'item' && }\n \n ))}\n \n );\n};\n\nexport default Navigation;\n","import {makeStyles} from '@material-ui/core';\nimport {ThemeMode} from '../../../../shared/constants/AppEnums';\n\nconst useStyles = makeStyles((theme) => {\n return {\n drawerContainer: {\n paddingLeft: 0,\n paddingTop: 0,\n paddingBottom: 0,\n maxHeight: '100vh',\n width: '19rem',\n [theme.breakpoints.up('xl')]: {\n width: '21.6rem',\n },\n },\n sidebarBg: {\n overflow: 'hidden',\n backgroundColor: (props) =>\n props.themeMode === ThemeMode.SEMI_DARK\n ? theme.palette.sidebar.bgColor\n : props.themeMode === ThemeMode.LIGHT\n ? 'white'\n : '#313541',\n },\n drawerScrollAppSidebar: {\n paddingTop: 8,\n paddingBottom: 32,\n height: 'calc(100vh - 58px) !important',\n },\n };\n});\nexport default useStyles;\n","import React, {useContext} from 'react';\nimport Drawer from '@material-ui/core/Drawer';\nimport Hidden from '@material-ui/core/Hidden';\nimport clsx from 'clsx';\nimport UserInfo from '../../../../shared/components/UserInfo';\nimport Navigation from '../../Navigation/VerticleNav';\nimport {toggleNavCollapsed} from '../../../../redux/actions';\nimport {useDispatch, useSelector} from 'react-redux';\nimport Box from '@material-ui/core/Box';\nimport PropTypes from 'prop-types';\nimport useStyles from './AppSidebar.style';\nimport Scrollbar from '../../Scrollbar';\nimport AppContext from '../../../utility/AppContext';\n\nconst AppSidebar = (props) => {\n const dispatch = useDispatch();\n const navCollapsed = useSelector(({settings}) => settings.navCollapsed);\n const {themeMode} = useContext(AppContext);\n\n const handleToggleDrawer = () => {\n dispatch(toggleNavCollapsed());\n };\n\n const classes = useStyles({themeMode});\n return (\n \n handleToggleDrawer()}\n classes={{\n root: clsx(props.variant),\n paper: clsx(props.variant),\n }}\n style={{position: 'absolute'}}>\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default AppSidebar;\n\nAppSidebar.defaultProps = {\n variant: '',\n position: 'left',\n};\n\nAppSidebar.propTypes = {\n position: PropTypes.string,\n variant: PropTypes.string,\n};\n","import React, {useState, useEffect} from 'react';\nimport './Notification.css'; // Define your animation styles here\nimport NotificationsActiveIcon from '@material-ui/icons/NotificationsActive';\n\nconst Notification = ({message, setShowNotification}) => {\n const [isVisible, setIsVisible] = useState(false);\n\n useEffect(() => {\n // Show notification when message is set\n if (message) {\n setIsVisible(true);\n // Automatically hide notification after some time (e.g., 5 seconds)\n setTimeout(() => {\n setShowNotification(false);\n setIsVisible(false);\n }, 5000); // Adjust the timeout as needed\n }\n }, [message]);\n\n const handleClose = () => {\n setIsVisible(false);\n };\n\n return (\n \n
\n MRD Response Alert!\n
\n
\n {message}\n {/* */}\n
\n \n );\n};\n\nexport default Notification;\n","import React, {useContext, useEffect, useState} from 'react';\nimport AppHeader from './AppHeader';\nimport {ContentView} from '../../../index';\nimport {useAuthUser} from '../../../utility/AppHooks';\n\nimport Box from '@material-ui/core/Box';\nimport useStyles from './index.style';\nimport clsx from 'clsx';\nimport AppFooter from './AppFooter';\nimport AppFixedFooter from './AppFixedFooter';\nimport AppContext from '../../../utility/AppContext';\nimport AppSidebar from './AppSidebar';\nimport {LayoutType, AuthType} from '../../../../shared/constants/AppEnums';\nimport {useDispatch, useSelector} from 'react-redux';\nimport {getRequestList} from '../../../../../src/redux/actions/index';\nimport moment from 'moment';\nimport Notification from 'modules/common/Notification/Notification';\n\nconst HorDefault = (props) => {\n const {footer, layoutType, footerType} = useContext(AppContext);\n const classes = useStyles(props);\n const user = useAuthUser();\n\n const dispatch = useDispatch();\n const [showNotification, setShowNotification] = useState(false);\n const LoginUser = useSelector(({auth}) => auth);\n const drPendCount = useSelector(({mrdDr}) => mrdDr.getPendCount);\n const [msg, setMsg] = useState('');\n function formatDate(date) {\n if (moment(date)?.isValid() == true) {\n var d = new Date(date),\n month = '' + (d.getMonth() + 1),\n day = '' + d.getDate(),\n year = d.getFullYear();\n if (month.length < 2) month = '0' + month;\n if (day.length < 2) day = '0' + day;\n return [year, month, day].join('-');\n } else {\n return '';\n }\n }\n\n function updateScroll() {\n if (Number(LoginUser?.user?.mrdDrCheck) == 3) {\n let getFromDate = localStorage.getItem('drFromDate');\n let getToDate = localStorage.getItem('drToDate');\n let passData = {\n userCode: LoginUser && LoginUser.user ? LoginUser.user.doctorCode : 0,\n fromDate: getFromDate ? formatDate(getFromDate) : '',\n toDate: getToDate ? formatDate(getToDate) : '',\n limit: 10,\n offset: 0,\n };\n dispatch(getRequestList(passData));\n }\n }\n function Alert() {\n let pendCount = localStorage.getItem('alertPendCount');\n if (pendCount > 0) {\n setShowNotification(true);\n let msg = `Your ${pendCount} ${pendCount == 1 ? 'Request' : 'Requests'} ${\n pendCount == 1 ? 'has' : 'have'\n } been processed and ready to access.`;\n setMsg(msg);\n }\n }\n useEffect(() => {\n if (Number(LoginUser?.user?.mrdDrCheck) == 3) {\n setInterval(updateScroll, 120000);\n }\n }, []);\n\n useEffect(() => {\n setInterval(Alert, 120000);\n }, []);\n\n return (\n \n \n \n \n \n \n {showNotification && (\n \n )}\n \n \n\n \n \n \n );\n};\n\nexport default HorDefault;\n","import HorDefault from './HorDefault';\n// import MiniSidebar from './MiniSidebar';\n// import DrawerLayout from './DrawerLayout';\n// import Standard from './Standard';\n// import BitBucket from './BitBucket';\n//import HorLightNav from './HorLightNav';\n// import HorDarkLayout from './HorDarkLayout';\n//import DefaultLayout from './DefaultLayout';\n// import HeaderUserLayout from './UserHeader';\n// import HeaderUserMiniLayout from './UserHeaderMini';\n// import MiniSidebarToggle from './MiniSidebarToggle';\nimport {NavStyle} from '../../../shared/constants/AppEnums';\n\nconst Layouts = {\n // [NavStyle.STANDARD]: Standard,\n // [NavStyle.DEFAULT]: DefaultLayout,\n // [NavStyle.HEADER_USER]: HeaderUserLayout,\n // [NavStyle.HEADER_USER_MINI]: HeaderUserMiniLayout,\n // [NavStyle.MINI_SIDEBAR_TOGGLE]: MiniSidebarToggle,\n // [NavStyle.MINI]: MiniSidebar,\n // [NavStyle.DRAWER]: DrawerLayout,\n // [NavStyle.BIT_BUCKET]: BitBucket,\n [NavStyle.H_DEFAULT]: HorDefault,\n // [NavStyle.HOR_LIGHT_NAV]: HorLightNav,\n // [NavStyle.HOR_DARK_LAYOUT]: HorDarkLayout,\n};\nexport default Layouts;\n","import makeStyles from '@material-ui/core/styles/makeStyles';\nimport {Fonts} from '../../constants/AppEnums';\nimport {fade} from '@material-ui/core';\n\nconst useStyles = makeStyles((theme) => ({\n '@global': {\n // for global styles\n '.MuiLink-root': {\n fontWeight: Fonts.REGULAR,\n },\n '.pointer': {\n cursor: 'pointer',\n },\n '.MuiTableCell-stickyHeader': {\n backgroundColor: theme.palette.background.paper,\n },\n '.item-hover': {\n transition: 'all .2s ease',\n transform: 'scale(1)',\n '&:hover': {\n backgroundColor: fade(theme.palette.primary.main, 0.1),\n transform: 'translateY(-2px)',\n boxShadow: `0 3px 10px 0 ${fade(theme.palette.common.black, 0.2)}`,\n },\n },\n '.card-hover': {\n transition: 'all 0.3s ease',\n transform: 'scale(1)',\n '&:hover': {\n boxShadow: '0 4px 8px rgba(0,0,0,.45)',\n transform: 'scale(1.05)',\n },\n },\n },\n}));\n\nexport default useStyles;\n","import React, {useContext} from 'react';\nimport {useSelector} from 'react-redux';\nimport Box from '@material-ui/core/Box';\nimport {makeStyles} from '@material-ui/core/styles';\n\nimport AppContext from '../../utility/AppContext';\nimport Layouts from './Layouts';\nimport {ContentView} from '../../index';\nimport useStyles from '../../../shared/jss/common/common.style';\n\nconst useStyle = makeStyles(() => ({\n appAuth: {\n flex: 1,\n display: 'flex',\n position: 'relative',\n height: '100vh',\n backgroundSize: 'cover',\n // backgroundImage: 'linear-gradient(#380036,#0CBABA)',\n backgroundImage: 'linear-gradient(#0a60b7,#0a6cb794)',\n // background: `url(/assets/images/doctor-signin.jpg) no-repeat center center`,\n '& .scrollbar-container': {\n flex: 1,\n display: 'flex',\n flexDirection: 'column',\n },\n '& .main-content-view': {\n //padding: 20,\n },\n '& .footer': {\n marginRight: 0,\n marginLeft: 0,\n },\n },\n}));\n\nconst CremaLayout = () => {\n useStyles();\n const {navStyle} = useContext(AppContext);\n const {user} = useSelector(({auth}) => auth);\n const AppLayout = Layouts[navStyle];\n\n const classes = useStyle();\n\n return (\n <>\n {user ? (\n \n ) : (\n \n \n \n )}\n \n );\n};\n\nexport default React.memo(CremaLayout);\n","import createBreakpoints from '@material-ui/core/styles/createBreakpoints';\nimport {\n FooterType,\n HeaderType,\n LayoutType,\n NavStyle,\n RouteTransition,\n ThemeMode,\n ThemeStyle,\n ThemeStyleRadius,\n} from '../../../shared/constants/AppEnums';\n\nconst breakpoints = createBreakpoints({});\nconst cardRadius = ThemeStyleRadius.STANDARD;\nconst defaultConfig = {\n theme: {\n spacing: 4,\n direction: 'ltr', //ltr, rtl\n palette: {\n type: ThemeMode.LIGHT,\n background: {\n paper: '#FFFFFF',\n default: '#f4f7fe',\n },\n primary: {\n main: '#0A8FDC',\n contrastText: '#fff',\n },\n secondary: {\n main: '#F04F47',\n },\n sidebar: {\n bgColor: '#313541',\n textColor: '#808183',\n },\n gray: {\n 50: '#fafafa',\n 100: '#f7fafc',\n 200: '#edf2f7',\n 300: '#E0E0E0',\n 400: '#c5c6cb',\n 500: '#A8A8A8',\n 600: '#666666',\n 700: '#4a5568',\n 800: '#201e21',\n 900: '#1a202c',\n A100: '#d5d5d5',\n A200: '#aaaaaa',\n A400: '#303030',\n A700: '#616161',\n },\n text: {\n primary: '#2e4167',\n secondary: '#74788d',\n disabled: '#909098',\n hint: '#aeafb8',\n white: '#fff',\n },\n },\n status: {\n danger: 'orange',\n },\n divider: 'rgba(0, 0, 0, 0.12)',\n typography: {\n fontFamily: ['Poppins', 'sans-serif'].join(','),\n },\n overrides: {\n MuiTypography: {\n h1: {\n fontSize: 22,\n },\n h2: {\n fontSize: 20,\n },\n h3: {\n fontSize: 18,\n },\n h4: {\n fontSize: 16,\n },\n h5: {\n fontSize: 14,\n },\n h6: {\n fontSize: 14,\n },\n subtitle1: {\n fontSize: 14,\n },\n subtitle2: {\n fontSize: 16,\n },\n body1: {\n fontSize: 14,\n },\n body2: {\n fontSize: 12,\n },\n },\n MuiToggleButton: {\n root: {\n borderRadius: cardRadius,\n },\n },\n MuiCardLg: {\n root: {\n borderRadius:\n cardRadius === ThemeStyleRadius.STANDARD\n ? ThemeStyleRadius.STANDARD\n : ThemeStyleRadius.MODERN + 20,\n },\n },\n MuiCard: {\n root: {\n borderRadius: cardRadius,\n boxShadow: '0px 5px 6px rgba(0, 0, 0, 0.04)',\n '& .MuiCardContent-root:last-child': {\n paddingBottom: 16,\n },\n },\n },\n MuiButton: {\n root: {\n borderRadius: cardRadius,\n boxShadow: '0px 5px 6px rgba(0, 0, 0, 0.04)',\n [breakpoints.down('md')]: {\n paddingTop: '8px !important',\n paddingBottom: '8px !important',\n },\n },\n },\n },\n },\n themeStyle: ThemeStyle.STANDARD,\n themeMode: ThemeMode.SEMI_DARK,\n navStyle: NavStyle.STANDARD,\n layoutType: LayoutType.FULL_WIDTH,\n footerType: FooterType.FLUID,\n headerType: HeaderType.DARK,\n rtAnim: RouteTransition.NONE,\n footer: false,\n locale: {\n languageId: 'english',\n locale: 'en',\n name: 'English',\n icon: 'us',\n },\n rtlLocale: ['ar'],\n};\nexport default defaultConfig;\n","import {\n ThemeMode,\n ThemeStyle,\n ThemeStyleRadius,\n} from '../../../shared/constants/AppEnums';\nimport {isBreakPointDown} from '../Utils';\n\nexport const ThemeSetting = {\n UPDATE_THEME: 'UPDATE_THEME',\n SET_FOOTER: 'SET_FOOTER',\n SET_FOOTER_TYPE: 'SET_FOOTER_TYPE',\n UPDATE_THEME_MODE: 'UPDATE_THEME_MODE',\n UPDATE_HEADER_MODE: 'UPDATE_HEADER_MODE',\n UPDATE_THEME_STYLE: 'UPDATE_THEME_STYLE',\n UPDATE_LAYOUT_STYLE: 'UPDATE_LAYOUT_STYLE',\n SET_RTL: 'SET_RTL',\n CHANGE_LOCALE: 'CHANGE_LOCALE',\n CHANGE_NAV_STYLE: 'CHANGE_NAV_STYLE',\n CHANGE_RT_ANIM: 'CHANGE_RT_ANIM',\n UPDATE_PRIMARY_COLOR: 'UPDATE_PRIMARY_COLOR',\n UPDATE_SIDEBAR_COLOR: 'UPDATE_SIDEBAR_COLOR',\n UPDATE_SECONDARY_COLOR: 'UPDATE_SECONDARY_COLOR',\n};\n\nexport function contextReducer(state, action) {\n switch (action.type) {\n case ThemeSetting.UPDATE_THEME: {\n return {\n ...state,\n theme: action.payload,\n primary: action.payload.palette.primary.main,\n secondary: action.payload.palette.secondary.main,\n };\n }\n case ThemeSetting.SET_FOOTER: {\n return {\n ...state,\n footer: action.payload,\n };\n }\n case ThemeSetting.SET_FOOTER_TYPE: {\n return {\n ...state,\n footerType: action.payload,\n };\n }\n case ThemeSetting.UPDATE_THEME_MODE: {\n let theme = state.theme;\n if (action.payload === ThemeMode.DARK) {\n theme.palette.type = ThemeMode.DARK;\n theme.palette.background = {\n paper: '#313541',\n default: '#393D4B',\n };\n theme.palette.text = {\n primary: 'rgba(255, 255, 255, 0.87)',\n secondary: 'rgba(255, 255, 255, 0.67)',\n disabled: 'rgba(255, 255, 255, 0.38)',\n hint: 'rgba(255, 255, 255, 0.38)',\n };\n } else {\n theme.palette.type = ThemeMode.LIGHT;\n theme.palette.background = {\n paper: '#FFFFFF',\n default: '#f3f4f6',\n };\n theme.palette.text = {\n primary: 'rgba(0, 0, 0, 0.87)',\n secondary: 'rgba(0, 0, 0, 0.67)',\n disabled: 'rgba(0, 0, 0, 0.38)',\n hint: 'rgba(0, 0, 0, 0.38)',\n };\n }\n return {\n ...state,\n theme,\n themeMode: action.payload,\n };\n }\n case ThemeSetting.UPDATE_HEADER_MODE: {\n return {\n ...state,\n headerMode: action.payload,\n };\n }\n case ThemeSetting.UPDATE_THEME_STYLE: {\n const theme = state.theme;\n\n if (action.payload === ThemeStyle.MODERN) {\n if (isBreakPointDown('md')) {\n theme.overrides.MuiCard.root.borderRadius = 20;\n theme.overrides.MuiToggleButton.root.borderRadius = 20;\n } else {\n theme.overrides.MuiCard.root.borderRadius = ThemeStyleRadius.MODERN;\n theme.overrides.MuiToggleButton.root.borderRadius =\n ThemeStyleRadius.MODERN;\n }\n theme.overrides.MuiButton.root.borderRadius = ThemeStyleRadius.MODERN;\n theme.overrides.MuiCardLg.root.borderRadius =\n ThemeStyleRadius.MODERN + 20;\n } else {\n theme.overrides.MuiCard.root.borderRadius = ThemeStyleRadius.STANDARD;\n theme.overrides.MuiToggleButton.root.borderRadius =\n ThemeStyleRadius.STANDARD;\n theme.overrides.MuiButton.root.borderRadius = ThemeStyleRadius.STANDARD;\n theme.overrides.MuiCardLg.root.borderRadius = ThemeStyleRadius.STANDARD;\n }\n\n return {\n ...state,\n theme,\n themeStyle: action.payload,\n };\n }\n case ThemeSetting.UPDATE_LAYOUT_STYLE: {\n return {\n ...state,\n layoutType: action.payload,\n };\n }\n case ThemeSetting.SET_RTL: {\n const theme = state.theme;\n if (action.payload) {\n theme.direction = 'rtl';\n } else {\n theme.direction = 'ltr';\n }\n return {\n ...state,\n theme,\n isRTL: action.payload,\n };\n }\n case ThemeSetting.CHANGE_LOCALE: {\n return {\n ...state,\n locale: action.payload,\n };\n }\n case ThemeSetting.CHANGE_NAV_STYLE: {\n return {\n ...state,\n navStyle: action.payload,\n };\n }\n case ThemeSetting.CHANGE_RT_ANIM: {\n return {\n ...state,\n rtAnim: action.payload,\n };\n }\n case ThemeSetting.UPDATE_PRIMARY_COLOR: {\n return {\n ...state,\n primary: action.payload,\n };\n }\n case ThemeSetting.UPDATE_SIDEBAR_COLOR: {\n return {\n ...state,\n sidebarColor: action.payload,\n };\n }\n case ThemeSetting.UPDATE_SECONDARY_COLOR: {\n return {\n ...state,\n secondary: action.payload,\n };\n }\n default:\n return state;\n }\n}\n","import React, {useCallback, useReducer} from 'react';\nimport defaultConfig from './defaultConfig';\nimport AppContext from '../AppContext';\nimport routes from '../../../modules';\nimport PropTypes from 'prop-types';\nimport {contextReducer, ThemeSetting} from './ContextReducer';\n\nexport const ContextState = {\n theme: defaultConfig.theme,\n footer: defaultConfig.footer,\n footerType: defaultConfig.footerType,\n themeMode: defaultConfig.themeMode,\n headerMode: defaultConfig.headerMode,\n themeStyle: defaultConfig.themeStyle,\n layoutType: defaultConfig.layoutType,\n isRTL: defaultConfig.theme.direction === 'rtl',\n locale: defaultConfig.locale,\n navStyle: defaultConfig.navStyle,\n rtAnim: defaultConfig.rtAnim,\n primary: defaultConfig.theme.palette.primary.main,\n sidebarColor: defaultConfig.theme.palette.sidebar.bgColor,\n secondary: defaultConfig.theme.palette.secondary.main,\n};\nconst ContextProvider = ({children}) => {\n const [state, dispatch] = useReducer(\n contextReducer,\n ContextState,\n () => ContextState,\n );\n\n const setFooter = (footer) => {\n dispatch({type: ThemeSetting.SET_FOOTER, payload: footer});\n };\n\n const setFooterType = (footerType) => {\n dispatch({type: ThemeSetting.SET_FOOTER_TYPE, payload: footerType});\n };\n\n const updateHeaderMode = (headerMode) => {\n dispatch({type: ThemeSetting.UPDATE_HEADER_MODE, payload: headerMode});\n };\n\n const updateThemeStyle = useCallback((themeStyle) => {\n dispatch({type: ThemeSetting.UPDATE_THEME_STYLE, payload: themeStyle});\n }, []);\n\n const updateLayoutStyle = (layoutType) => {\n dispatch({type: ThemeSetting.UPDATE_LAYOUT_STYLE, payload: layoutType});\n };\n\n const changeLocale = (locale) => {\n dispatch({type: ThemeSetting.CHANGE_LOCALE, payload: locale});\n };\n\n const changeNavStyle = useCallback((navStyle) => {\n dispatch({type: ThemeSetting.CHANGE_NAV_STYLE, payload: navStyle});\n }, []);\n\n const changeRTAnim = (rtAnim) => {\n dispatch({type: ThemeSetting.CHANGE_RT_ANIM, payload: rtAnim});\n };\n const updatePrimaryColor = (primary) => {\n dispatch({type: ThemeSetting.UPDATE_PRIMARY_COLOR, payload: primary});\n };\n\n const updateSidebarColor = (sidebarColor) => {\n dispatch({type: ThemeSetting.UPDATE_SIDEBAR_COLOR, payload: sidebarColor});\n };\n\n const updateSecondaryColor = (secondary) => {\n dispatch({type: ThemeSetting.UPDATE_SECONDARY_COLOR, payload: secondary});\n };\n\n const updateThemeMode = useCallback((themeMode) => {\n dispatch({type: ThemeSetting.UPDATE_THEME_MODE, payload: themeMode});\n }, []);\n const updateTheme = (theme) => {\n dispatch({type: ThemeSetting.UPDATE_THEME, payload: theme});\n };\n\n const setRTL = useCallback((rtl) => {\n dispatch({type: ThemeSetting.SET_RTL, payload: rtl});\n }, []);\n\n return (\n \n {children}\n \n );\n};\n\nexport default ContextProvider;\n\nContextProvider.propTypes = {\n children: PropTypes.node.isRequired,\n};\n","import PropTypes from 'prop-types';\nimport React, {memo} from 'react';\nimport {VelocityComponent} from 'velocity-react';\nimport 'velocity-animate/velocity.ui';\n\nconst AppAnimate = (props) => {\n const children = React.cloneElement(props.children, {\n style: {\n ...props.children.style,\n visibility: 'hidden',\n },\n });\n return {children};\n};\n\nAppAnimate.propTypes = {\n children: PropTypes.element.isRequired,\n};\n\nAppAnimate.defaultProps = {\n animation: 'transition.fadeIn',\n runOnMount: true,\n targetQuerySelector: null,\n interruptBehavior: 'stop',\n visibility: 'visible',\n duration: 400,\n delay: 100,\n easing: [0.4, 0.0, 0.2, 1],\n display: null,\n setRef: undefined,\n};\n\nexport default memo(AppAnimate);\n","import enMessages from '../locales/en_US.json';\nimport {enUS} from '@material-ui/core/locale';\n\nconst EnLang = {\n messages: {\n ...enMessages,\n },\n muiLocale: enUS,\n locale: 'en-US',\n};\nexport default EnLang;\n","import zhMessages from '../locales/zh-Hans.json';\nimport {zhCN} from '@material-ui/core/locale';\n\nconst ZhLan = {\n messages: {\n ...zhMessages,\n },\n muiLocale: zhCN,\n locale: 'zh-Hans-CN',\n};\nexport default ZhLan;\n","import saMessages from '../locales/ar_SA.json';\n\nconst saLang = {\n messages: {\n ...saMessages,\n },\n locale: 'ar-SA',\n};\nexport default saLang;\n","import saMessages from '../locales/it_IT.json';\nimport {itIT} from '@material-ui/core/locale';\n\nconst saLang = {\n messages: {\n ...saMessages,\n },\n muiLocale: itIT,\n locale: 'it-IT',\n};\nexport default saLang;\n","import saMessages from '../locales/es_ES.json';\nimport {esES} from '@material-ui/core/locale';\n\nconst saLang = {\n messages: {\n ...saMessages,\n },\n muiLocale: esES,\n locale: 'es',\n};\nexport default saLang;\n","import enLang from './entries/en-US';\nimport zhLang from './entries/zh-Hans-CN';\nimport arLang from './entries/ar_SA';\nimport itLang from './entries/it_IT';\nimport esLang from './entries/es_ES';\nimport frLang from './entries/fr_FR';\n\nconst AppLocale = {\n en: enLang,\n zh: zhLang,\n ar: arLang,\n it: itLang,\n es: esLang,\n fr: frLang,\n};\n\nexport default AppLocale;\n","import saMessages from '../locales/fr_FR.json';\nimport {frFR} from '@material-ui/core/locale';\n\nconst saLang = {\n messages: {\n ...saMessages,\n },\n muiLocale: frFR,\n locale: 'fr-FR',\n};\nexport default saLang;\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 14-06-2021\n * Descriptions : Route for dahboard page\n ************/\nimport React from 'react';\nimport {authRole} from '../../shared/constants/AppConst';\n\nexport const dashBoardConfigs = [\n {\n auth: authRole.user,\n routes: [\n {\n path: '/dashboard',\n component: React.lazy(() => import('./DashboardPage/Tabs/index')),\n },\n {\n path: '/oldeRx',\n component: React.lazy(() => import('./oldeRxDashboardPage/Tabs/index')),\n },\n ],\n },\n {\n auth: authRole.user,\n routes: [\n {\n path: '/my-profile',\n component: React.lazy(() => import('../dashboard/MyAccount/index')),\n },\n ],\n },\n {\n auth: authRole.user,\n routes: [\n {\n path: '/my-preferences',\n component: React.lazy(() => import('../dashboard/MyPreferences/index')),\n },\n ],\n },\n {\n auth: authRole.user,\n routes: [\n {\n path: '/vaccine',\n component: React.lazy(() => import('../dashboard/vaccine')),\n },\n ],\n },\n];\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 17-04-2023\n * Descriptions : Route for appointment page\n ************/\nimport React from 'react';\nimport {authRole} from '../../shared/constants/AppConst';\n\nexport const appointmentConfig = [\n //Redirect to dashboard page\n {\n auth: authRole.premiumRole,\n routes: [\n {\n path: '/appointment',\n component: React.lazy(() => import('./appointmentPage/index')),\n },\n ],\n },\n];\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 14-06-2021\n * Descriptions : Route page for signup\n * Dependicies : To use @material-ui/core,react-router-dom,formik\n ************/\nimport React from 'react';\n\nexport const authRouteConfig = [\n {\n routes: [\n {\n path: '/signin',\n component: React.lazy(() => import('./Signin/index')),\n },\n ],\n },\n\n {\n routes: [\n {\n path: '/signup',\n component: React.lazy(() => import('./Signup/index')),\n },\n ],\n },\n {\n routes: [\n {\n path: '/forget-password',\n component: React.lazy(() => import('./ForgetPassword')),\n },\n ],\n },\n {\n routes: [\n {\n path: '/set-password',\n component: React.lazy(() => import('./SetPassword')),\n },\n ],\n },\n {\n routes: [\n {\n path: '/requestPassword',\n component: React.lazy(() => import('./RequestSetPassword')),\n },\n ],\n },\n {\n routes: [\n {\n path: '/error-pages/error-404',\n component: React.lazy(() => import('../errorPages/Error404/index')),\n },\n ],\n },\n {\n routes: [\n {\n path: '/error-pages/error-401',\n component: React.lazy(() => import('../errorPages/Error401/index')),\n },\n ],\n },\n {\n routes: [\n {\n path: '/ExpiredLink',\n component: React.lazy(() => import('../errorPages/ExpiredLink')),\n },\n ],\n },\n //Terms and conditions page\n {\n routes: [\n {\n path: '/terms-conditions',\n component: React.lazy(() => import('./Signup/Termsandconditions')),\n },\n ],\n },\n];\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 18-06-2021\n * Descriptions : Route for eRx Details\n ************/\nimport React from 'react';\nimport {authRole} from '../../shared/constants/AppConst';\n//Route config for eRx details\nexport const eRxDetailsConfigs = [\n {\n auth: authRole.user,\n routes: [\n {\n path: '/eRxDetails',\n component: React.lazy(() => import('./eRxDetailsPage')),\n },\n ],\n },\n];\n","import React from 'react';\nimport {authRole} from '../../shared/constants/AppConst';\n//Route config for eRx details\nexport const mrdTabConfigs = [\n {\n auth: authRole.mrdName,\n routes: [\n {\n path: '/mrdRequest',\n component: React.lazy(() => import('./Requestpage')),\n },\n ],\n },\n];","/************\n * Developed by : Shiva Software Solutions\n * Date : 15-06-2021\n * Descriptions : Route configuration files\n * Dependicies : To use @material-ui/core\n ************/\n\nimport React from 'react';\nimport {Redirect} from 'react-router-dom';\n\nimport {createRoutes} from '../@crema/utility/Utils';\nimport {dashBoardConfigs} from './dashboard';\nimport {appointmentConfig} from './appointment';\nimport {authRouteConfig} from './auth';\nimport {initialUrl} from '../shared/constants/AppConst';\nimport {eRxDetailsConfigs} from './eRxDetails';\nimport {mrdTabConfigs} from './mrdRequestPage';\nconst routeConfigs = [\n ...authRouteConfig,\n ...dashBoardConfigs,\n ...eRxDetailsConfigs,\n ...appointmentConfig,\n ...mrdTabConfigs\n];\nconst routes = [\n ...createRoutes(routeConfigs),\n {\n path: '/',\n exact: true,\n component: () => ,\n },\n {\n component: () => ,\n },\n];\n\nexport default routes;\n","import {\n FETCH_ERROR,\n FETCH_START,\n FETCH_SUCCESS,\n HIDE_MESSAGE,\n SHOW_MESSAGE,\n TOGGLE_APP_DRAWER,\n UPDATING_CONTENT,\n} from '../../shared/constants/ActionTypes';\n\n//Cloud watch logs require functionality\nvar winston = require('winston'),\nWinstonCloudWatch = require('winston-cloudwatch');\nvar AWS = require('aws-sdk');\n//Variable declaration\nconst SECRETKEY = 'AKIAZH552SF5X5JDFU6J';\nconst ACCESSKEY = 'sxmQcF8Ba7q8mbBfPxhQS4vqX3x7OGy+nmt3bZPB';\nconst REGION = 'ap-south-1';\nconst GROUPNAME = 'gudmedweblog';\n\nexport const fetchStart = () => {\n return (dispatch) => dispatch({type: FETCH_START});\n};\n\nexport const fetchSuccess = () => {\n return (dispatch) => dispatch({type: FETCH_SUCCESS});\n};\nexport const updatingContent = () => {\n return (dispatch) => dispatch({type: UPDATING_CONTENT});\n};\n\nexport const fetchError = (error) => {\n return (dispatch) => dispatch({type: FETCH_ERROR, payload: error});\n};\n\nexport const showMessage = (message) => {\n return (dispatch) => dispatch({type: SHOW_MESSAGE, payload: message});\n};\nexport const onToggleAppDrawer = () => {\n return (dispatch) => dispatch({type: TOGGLE_APP_DRAWER});\n};\n\nexport const hideMessage = () => {\n return (dispatch) => dispatch({type: HIDE_MESSAGE});\n};\n\n\n//write cloud watch\n\nexport const onWriteCloudWatchLog = (\n streamName,\n filename,\n functionname,\n usercode,\n error,\n) => {\n return async (dispatch) => {\n var getdate = new Date();\n //AWS config file declaration\n AWS.config.update({\n region: REGION,\n accessKeyId: SECRETKEY,\n secretAccessKey: ACCESSKEY,\n });\n //Winston configuration file\n winston.add(\n new WinstonCloudWatch({\n logGroupName: GROUPNAME,\n logStreamName: streamName + '_Web',\n awsRegion: REGION,\n awsAccessKeyId: SECRETKEY,\n awsSecretKeyId: ACCESSKEY,\n }),\n );\n //Write error in cloud watch\n winston.error(\n 'WEB - File Name : ' +\n filename +\n ' , Function : ' +\n functionname +\n ' , UserCode : ' +\n usercode +\n ' , Error :' +\n error +\n ' , DateTime : ' +\n getdate,\n );\n };\n};\n","/************ \n * Developed by : Shiva Software Solutions\n * Date : 29-07-2021\n * Descriptions : Toaster Message\n * Dependicies : To use @material-ui/core \n ************/\n\nimport React from 'react'; \nimport {makeStyles} from '@material-ui/core/styles'; \nimport IconButton from '@material-ui/core/IconButton';\nimport Snackbar from '@material-ui/core/Snackbar';\nimport SnackbarContent from '@material-ui/core/SnackbarContent';\nimport WarningIcon from '@material-ui/icons/Warning'; \nimport ErrorIcon from '@material-ui/icons/Error';\nimport InfoIcon from '@material-ui/icons/Info';\nimport CloseIcon from '@material-ui/icons/Close'; \nimport CheckCircleIcon from '@material-ui/icons/CheckCircle'; \nimport {amber, green} from '@material-ui/core/colors';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nconst SnackbarMsg = ({snackbaropen, variantdata, msgdata,onDeny}) => { \n \n function MySnackbarContentWrapper(props) {\n const classes = useStyles1();\n const {className, message, onClose, variant, ...other} = props;\n const Icon = variantIcon[variant];\n return (\n \n \n {message}\n \n }\n action={[\n \n \n ,\n ]}\n {...other}\n />\n );\n }\n const variantIcon = {\n success: CheckCircleIcon,\n warning: WarningIcon,\n error: ErrorIcon,\n info: InfoIcon,\n };\n const useStyles1 = makeStyles((theme) => ({\n success: {\n backgroundColor: green[600],\n },\n error: {\n backgroundColor: theme.palette.error.dark,\n },\n info: {\n backgroundColor: theme.palette.primary.main,\n },\n warning: {\n backgroundColor: amber[700],\n },\n icon: {\n fontSize: 20,\n },\n iconVariant: {\n opacity: 0.9,\n marginRight: theme.spacing(1),\n },\n message: {\n display: 'flex',\n alignItems: 'center',\n },\n })); \n function handleClose(event, reason) {\n if (reason === 'clickaway') {\n return;\n }\n onDeny(false); \n }\n return (\n <>\n \n \n \n \n \n );\n};\n\nexport default SnackbarMsg;\nSnackbarMsg.propTypes = { \n snackbaropen: PropTypes.bool.isRequired, \n variantdata: PropTypes.node.isRequired,\n msgdata: PropTypes.node.isRequired,\n onDeny: PropTypes.func.isRequired,\n };\n","import React from 'react';\nimport {Loader, MessageView} from '../../../@crema';\nimport {useSelector} from 'react-redux';\n\nconst InfoView = () => {\n const {error, loading, message} = useSelector(({common}) => common);\n\n const showMessage = () => {\n return ;\n };\n\n const showError = () => {\n return ;\n };\n\n return (\n <>\n {loading && }\n\n {message && showMessage()}\n {error && showError()}\n \n );\n};\n\nexport default InfoView;\n","import {Fonts} from '../../../shared/constants/AppEnums';\n\nexport const highlightTheme = {\n plain: {\n color: '#F8F8F2',\n fontFamily: 'Poppins',\n fontWeight: Fonts.REGULAR,\n backgroundColor: '#333333',\n },\n styles: [\n {\n types: ['prolog', 'constant', 'builtin'],\n style: {\n color: '#FFFFFF',\n },\n },\n {\n types: ['inserted', 'tag', 'function'],\n style: {\n color: '#E6DB74',\n },\n },\n {\n types: ['deleted'],\n style: {\n color: 'rgb(255, 85, 85)',\n },\n },\n {\n types: ['changed'],\n style: {\n color: 'rgb(255, 184, 108)',\n },\n },\n {\n types: ['punctuation', 'symbol'],\n style: {\n color: 'rgb(248, 248, 242)',\n },\n },\n {\n types: ['string', 'char', 'selector'],\n style: {\n color: '#98CD2F',\n },\n },\n {\n types: ['keyword', 'variable'],\n style: {\n color: '#65D4EA',\n // fontStyle: \"italic\"\n },\n },\n {\n types: ['comment'],\n style: {\n color: 'rgb(98, 114, 164)',\n },\n },\n {\n types: ['attr-name'],\n style: {\n color: '#98CD2F',\n },\n },\n ],\n};\n","import React, {useState} from 'react';\nimport {Card, makeStyles} from '@material-ui/core';\n//import CardHeader from '@material-ui/core/CardHeader';\nimport CardContent from '@material-ui/core/CardContent'; \nimport Highlight, {defaultProps} from 'prism-react-renderer';\nimport PropTypes from 'prop-types'; \nimport Collapse from '@material-ui/core/Collapse';\nimport Scrollbar from '../Scrollbar';\nimport clsx from 'clsx';\nimport {highlightTheme} from './highlightTheme';\nimport Box from '@material-ui/core/Box';\nimport {Fonts} from '../../../shared/constants/AppEnums';\nimport AppAnimate from '../AppAnimate';\n\nconst useStyles = makeStyles((theme) => {\n return {\n root: {\n borderRadius: 8,\n //padding: 16,\n backgroundColor: theme.palette.background.default,\n },\n cardHeader: {\n // paddingLeft: 32,\n // paddingRight: 32,\n '& .MuiTypography-h5': {\n fontSize: 16,\n fontWeight: Fonts.BOLD,\n marginBottom: 1,\n },\n },\n cardContent: {\n //paddingLeft: 32,\n //paddingRight: 32,\n // paddingTop: 0,\n padding:'unset',\n },\n preTag: {\n borderRadius: 8,\n // padding: 12,\n },\n };\n});\nconst ComponentCard = ({\n title,\n maxHeight,\n description,\n component: Component,\n source,\n}) => {\n const [viewSource] = useState(false);\n const [animation] = useState(false);\n\n const classes = useStyles();\n\n return (\n \n \n {/* \n {\n if (animation) {\n setAnimation(!animation);\n setTimeout(() => setToggleViewSource(!viewSource), 400);\n } else {\n setAnimation(!animation);\n setToggleViewSource(!viewSource);\n }\n }}>\n \n \n \n ) : null\n }\n /> */}\n\n \n \n {viewSource ? (\n \n \n {({\n className,\n style,\n tokens,\n getLineProps,\n getTokenProps,\n }) => (\n \n {tokens.map((line, i) => (\n \n {line.map((token, key) => (\n \n ))}\n \n ))}\n \n )}\n \n \n ) : null}\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default ComponentCard;\n\nComponentCard.defaultProps = {\n description: '',\n maxHeight: 1000,\n};\n\nComponentCard.propTypes = {\n component: PropTypes.any.isRequired,\n source: PropTypes.node,\n title: PropTypes.node.isRequired,\n description: PropTypes.node,\n};\n","import {createMuiTheme} from '@material-ui/core/styles';\nimport moment from 'moment';\nimport {useIntl} from 'react-intl';\nimport {useMediaQuery, useTheme} from '@material-ui/core';\n\nexport const isBreakPointDown = (key) => {\n const defaultTheme = createMuiTheme();\n return defaultTheme.breakpoints.width(key) > window.innerWidth;\n};\nexport const useDownBreakPointChecker = (key) => {\n return useMediaQuery((theme) => theme.breakpoints.down(key));\n};\n\nexport const useWidth = () => {\n const theme = useTheme();\n const keys = [...theme.breakpoints.keys].reverse();\n return (\n keys.reduce((output, key) => {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const matches = useMediaQuery(theme.breakpoints.up(key));\n return !output && matches ? key : output;\n }, null) || 'xs'\n );\n};\nexport const createRoutes = (routeConfigs) => {\n let allRoutes = [];\n routeConfigs.forEach((config) => {\n allRoutes = [...allRoutes, ...setRoutes(config)];\n });\n return allRoutes;\n};\n\nexport const setRoutes = (config) => {\n let routes = [...config.routes];\n if (config.auth) {\n routes = routes.map((route) => {\n let auth = route.auth\n ? [...config.auth, ...route.auth]\n : [...config.auth];\n return {...route, auth};\n });\n }\n\n return [...routes];\n};\n\nexport const getBreakPointsValue = (valueSet, breakpoint) => {\n if (typeof valueSet === 'number') return valueSet;\n switch (breakpoint) {\n case 'xs':\n return valueSet.xs;\n case 'sm':\n return valueSet.sm || valueSet.xs;\n case 'md':\n return valueSet.md || valueSet.sm || valueSet.xs;\n case 'lg':\n return valueSet.lg || valueSet.md || valueSet.sm || valueSet.xs;\n default:\n return (\n valueSet.xl || valueSet.lg || valueSet.md || valueSet.sm || valueSet.xs\n );\n }\n};\n\nexport const getFileSize = (bytes) => {\n if (bytes === 0) return '0 Bytes';\n let k = 1024,\n dm = 2,\n sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],\n i = Math.floor(Math.log(bytes) / Math.log(k));\n return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];\n};\n\nexport const multiPropsFilter = (products, filters, stringKey = 'title') => {\n const filterKeys = Object.keys(filters);\n return products.filter((product) => {\n return filterKeys.every((key) => {\n if (!filters[key].length) return true;\n // Loops again if product[key] is an array (for material attribute).\n if (Array.isArray(product[key])) {\n return product[key].some((keyEle) => filters[key].includes(keyEle));\n }\n if (key === stringKey) {\n return product[key].toLowerCase().includes(filters[key].toLowerCase());\n }\n return filters[key].includes(product[key]);\n });\n });\n};\n\nexport const getCustomDateTime = (\n value = 0,\n unit = 'days',\n format = 'YYYY-MM-DD',\n) => {\n if (value === 0) {\n return moment().format(format);\n } else {\n return moment().add(value, unit).format(format);\n }\n};\n\nexport const timeFromNow = (date) => {\n const timestamp = moment(date).format('X');\n const newDate = moment.unix(timestamp);\n return moment(newDate).fromNow();\n};\n\n// 'intl' service singleton reference\nlet intl;\n\nexport function IntlGlobalProvider({children}) {\n intl = useIntl();\n // Keep the 'intl' service reference\n return children;\n}\n\nexport const appIntl = () => {\n return intl;\n};\n\nexport const checkPermission = (routeAuth, userRole,userCat) => {\n if (routeAuth === null || routeAuth === undefined) {\n return true;\n }\n\n if (userRole && Array.isArray(userRole)) {\n return routeAuth.some((r) => userRole.indexOf(r) >= 0);\n }\n\n if (routeAuth.length === 0) {\n return !userRole || userRole.length === 0;\n }\n if (userRole && Array.isArray(userRole) && Array.isArray(routeAuth)) {\n return routeAuth.some((r) => userRole.indexOf(r) >= 0);\n }\n return (routeAuth.indexOf(userRole) >= 0 || routeAuth.indexOf(userCat) >= 0);\n};\n","import React from 'react';\nimport CircularProgress from '@material-ui/core/CircularProgress';\nimport Box from '@material-ui/core/Box';\n\nconst Loader = () => {\n return (\n \n \n \n );\n};\n\nexport default Loader;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {Loader} from '../../index';\n\nconst AppSuspense = (props) => {\n return (\n }>\n {props.children}\n \n );\n};\n\nAppSuspense.propTypes = {\n loadingProps: PropTypes.object,\n};\n\nAppSuspense.defaultProps = {\n loadingProps: {\n delay: 300,\n },\n};\n\nexport default AppSuspense;\n\nAppSuspense.propTypes = {\n children: PropTypes.node.isRequired,\n};\n","import React from 'react';\nimport {makeStyles} from '@material-ui/core/styles';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport Box from '@material-ui/core/Box';\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n padding: '0 7px',\n fontSize: 11,\n fontWeight: 600,\n height: 20,\n minWidth: 20,\n borderRadius: 20,\n display: 'flex',\n alignItems: 'center',\n color: theme.palette.secondary.contrastText,\n },\n}));\n\nfunction Badge({className, count, color}) {\n const classes = useStyles();\n if (color === 'primary') {\n color = 'primary.main';\n } else if (color === 'v') {\n color = 'secondary.main';\n }\n return (\n \n {count}\n \n );\n}\n\nBadge.propTypes = {\n count: PropTypes.any,\n color: PropTypes.string,\n};\nBadge.defaultProps = {\n color: 'secondary.main',\n};\n\nexport default React.memo(Badge);\n","import React from 'react';\nimport {NavLink} from 'react-router-dom';\n\nconst AppNavLink = React.forwardRef((props, ref) => (\n \n));\n\nexport default AppNavLink;\n","import React from 'react';\nimport Typography from '@material-ui/core/Typography';\nimport PropTypes from 'prop-types';\nimport Button from '@material-ui/core/Button';\nimport LinkIcon from '@material-ui/icons/Link';\nimport Box from '@material-ui/core/Box';\nimport {makeStyles} from '@material-ui/core/styles';\nimport {Fonts} from '../../../shared/constants/AppEnums';\nimport AppAnimate from '../AppAnimate';\n\nconst ComponentHeader = ({title, description, refUrl}) => {\n const useStyles = makeStyles((theme) => ({\n containerHeader: {\n display: 'flex',\n flexDirection: 'column',\n [theme.breakpoints.up('sm')]: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n paddingBottom: 16,\n [theme.breakpoints.up('xl')]: {\n paddingTop: 16,\n },\n },\n linkIcon: {\n paddingLeft: 4,\n },\n textbase: {\n fontSize: 15,\n fontWeight: Fonts.REGULAR,\n },\n }));\n\n const classes = useStyles();\n return (\n \n \n \n \n {title}\n \n {description ? (\n \n {description}\n \n ) : null}\n \n {refUrl ? (\n \n \n Reference \n \n \n ) : null}\n \n \n );\n};\n\nexport default ComponentHeader;\n\nComponentHeader.propTypes = {\n title: PropTypes.string.isRequired,\n description: PropTypes.string,\n refUrl: PropTypes.string,\n};\nComponentHeader.defaultProps = {};\n","import React, {useContext, useState} from 'react';\nimport AppContext from '../../utility/AppContext';\nimport {SketchPicker} from 'react-color';\nimport {makeStyles} from '@material-ui/core/index';\nimport Box from '@material-ui/core/Box';\n\nconst useStyles = makeStyles((theme) => {\n return {\n cpSwatch: {\n display: 'flex',\n alignItems: 'center',\n position: 'relative',\n cursor: 'pointer',\n marginBottom: 10,\n marginRight: 10,\n },\n cpColor: {\n width: 30,\n height: 16,\n backgroundColor: theme.palette.primary.main,\n border: `solid 1px ${theme.palette.gray[100]}`,\n marginRight: 10,\n [theme.breakpoints.up('xl')]: {\n width: 40,\n height: 26,\n },\n },\n cpPopover: {\n position: 'absolute',\n left: 0,\n top: 0,\n zIndex: 1,\n },\n };\n});\nconst PrimaryColorPicker = (props) => {\n const [visible, setVisibility] = useState(false);\n const {primary, theme, updateTheme} = useContext(AppContext);\n\n const classes = useStyles(props);\n\n return (\n <>\n setVisibility(!visible)}>\n \n \n Primary\n \n \n {visible ? (\n setVisibility(!visible)}>\n \n {\n theme.palette.primary.main = color.hex;\n updateTheme(theme);\n }}\n />\n \n ) : null}\n \n );\n};\n\nexport default PrimaryColorPicker;\n","import {LayoutType, NavStyle} from '../../../shared/constants/AppEnums';\n\nexport const navStyles = [\n // {\n // id: 1,\n // alias: NavStyle.STANDARD,\n // image: '/assets/images/navigationStyle/nav4.png',\n // },\n // {\n // id: 2,\n // alias: NavStyle.DEFAULT,\n // image: '/assets/images/navigationStyle/nav2.png',\n // },\n // {\n // id: 3,\n // alias: NavStyle.MINI_SIDEBAR_TOGGLE,\n // image: '/assets/images/navigationStyle/nav3.png',\n // },\n // {\n // id: 4,\n // alias: NavStyle.HEADER_USER,\n // image: '/assets/images/navigationStyle/nav9.png',\n // },\n // {\n // id: 5,\n // alias: NavStyle.HEADER_USER_MINI,\n // image: '/assets/images/navigationStyle/nav10.png',\n // },\n // {\n // id: 6,\n // alias: NavStyle.MINI,\n // image: '/assets/images/navigationStyle/nav3.png',\n // },\n // {\n // id: 7,\n // alias: NavStyle.DRAWER,\n // image: '/assets/images/navigationStyle/nav5.png',\n // },\n // {\n // id: 8,\n // alias: NavStyle.BIT_BUCKET,\n // image: '/assets/images/navigationStyle/nav1.png',\n // },\n {\n id: 9,\n alias: NavStyle.H_DEFAULT,\n image: '/assets/images/navigationStyle/nav8.png',\n },\n // {\n // id: 10,\n // alias: NavStyle.HOR_LIGHT_NAV,\n // image: '/assets/images/navigationStyle/nav6.png',\n // },\n // {\n // id: 11,\n // alias: NavStyle.HOR_DARK_LAYOUT,\n // image: '/assets/images/navigationStyle/nav7.png',\n // },\n];\n\nexport const layoutTypes = [\n {\n id: 1,\n alias: LayoutType.FULL_WIDTH,\n image: '/assets/images/layouts/full width.png',\n },\n {\n id: 2,\n alias: LayoutType.BOXED,\n image: '/assets/images/layouts/boxed.png',\n },\n];\n","import {makeStyles} from '@material-ui/core';\nimport {orange} from '@material-ui/core/colors';\n\nconst useStyles = makeStyles((theme) => ({\n customizerOption: {\n position: 'absolute',\n right: 0,\n top: 85,\n zIndex: 1110,\n [theme.breakpoints.up('xl')]: {\n top: 125,\n },\n },\n customizerButton: {\n borderRadius: '30px 0 0 30px',\n backgroundColor: orange[500],\n '&:hover': {\n backgroundColor: orange[700],\n },\n '& button': {\n borderRadius: '30px 0 0 30px',\n\n '&:focus': {\n borderRadius: '30px 0 0 30px',\n },\n },\n },\n rightSidebar: {\n width: 300,\n [theme.breakpoints.up('xl')]: {\n width: 400,\n },\n },\n rightSidebarHeader: {\n padding: '20px',\n borderBottom: '1px solid #e0e0e0',\n [theme.breakpoints.up('xl')]: {\n padding: '28px 22px',\n },\n },\n rightSidebarMain: {\n padding: '20px',\n [theme.breakpoints.up('xl')]: {\n padding: '28px 22px',\n },\n },\n customizerItem: {\n '&:not(:last-child)': {\n borderBottom: ['1px solid #e0e0e0'],\n paddingBottom: 20,\n marginBottom: 20,\n [theme.breakpoints.up('xl')]: {\n paddingBottom: 30,\n marginBottom: 30,\n },\n },\n },\n colorRow: {\n display: 'flex',\n alignItems: 'center',\n flexWrap: 'wrap',\n position: 'relative',\n },\n navOption: {\n display: 'flex',\n alignItems: 'center',\n flexWrap: 'wrap',\n marginLeft: '-10px',\n marginRight: '-10px',\n },\n navOptionItem: {\n paddingLeft: 10,\n paddingRight: 10,\n marginBottom: 20,\n },\n navOptionContent: {\n position: 'relative',\n cursor: 'pointer',\n },\n navOptionRightIcon: {\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)',\n width: 20,\n height: 20,\n borderRadius: '50%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n overflow: 'hidden',\n backgroundColor: theme.palette.primary.main,\n color: '',\n },\n selectBox: {\n '& .MuiOutlinedInput-input': {\n padding: '12px 32px 12px 14px',\n },\n },\n toggleBtn: {\n height: 36,\n backgroundColor: theme.palette.background.paper,\n color: theme.palette.primary.main,\n borderColor: theme.palette.primary.main,\n '&:not(:first-child)': {\n borderColor: theme.palette.primary.main,\n },\n [theme.breakpoints.up('xl')]: {\n height: 48,\n minWidth: 96,\n },\n '&:hover,&:focus': {\n backgroundColor: theme.palette.background.paper,\n color: theme.palette.primary.main,\n },\n '&.active': {\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText,\n '&:hover,&:focus': {\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText,\n },\n },\n },\n colorOptionList: {\n display: 'flex',\n flexWrap: 'wrap',\n margin: '0 -5px',\n padding: 0,\n listStyle: 'none',\n '& > li': {\n padding: '0 5px',\n marginBottom: 10,\n },\n },\n wFull: {\n width: '100%',\n },\n textWhite: {\n color: 'white',\n },\n mb5: {\n marginBottom: 20,\n },\n}));\nexport default useStyles;\n","import {makeStyles} from '@material-ui/core';\n\nconst useStyles = makeStyles((theme) => ({\n colorOption: {\n position: 'relative',\n overflow: 'hidden',\n cursor: 'pointer',\n border: `1px solid ${theme.palette.text.primary}`,\n },\n colorOptionTriangle: {\n transform: 'rotate(45deg)',\n marginTop: 10,\n marginLeft: 22,\n },\n colorOptionBorder: {\n width: 10,\n height: '100%',\n position: 'absolute',\n left: 0,\n top: 0,\n zIndex: 2,\n },\n colorOptionRightIcon: {\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)',\n width: 20,\n height: 20,\n borderRadius: '50%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n overflow: 'hidden',\n backgroundColor: '#fff',\n color: theme.palette.primary.main,\n },\n textBase: {\n fontSize: 16,\n },\n}));\nexport default useStyles;\n","/************ \n * Developed by : Shiva Software Solutions\n * Date : 28-06-2021\n * Descriptions : Route Navigation\n * Dependicies : To use @material-ui/core \n ************/\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport CheckCircleIcon from '@material-ui/icons/CheckCircle';\nimport ErrorIcon from '@material-ui/icons/Error';\nimport InfoIcon from '@material-ui/icons/Info';\nimport CloseIcon from '@material-ui/icons/Close';\nimport {amber, green, red} from '@material-ui/core/colors';\nimport IconButton from '@material-ui/core/IconButton';\nimport SnackbarContent from '@material-ui/core/SnackbarContent';\nimport WarningIcon from '@material-ui/icons/Warning';\nimport {makeStyles} from '@material-ui/core/styles';\nimport Snackbar from '@material-ui/core/Snackbar';\n\nconst variantIcon = {\n success: CheckCircleIcon,\n warning: WarningIcon,\n error: ErrorIcon,\n info: InfoIcon,\n};\nconst useStyles1 = makeStyles((theme) => ({\n success: {\n backgroundColor: green[600],\n },\n error: {\n // backgroundColor: theme.palette.error.dark,\n backgroundColor: red[600],\n },\n info: {\n backgroundColor: theme.palette.primary.main,\n },\n warning: {\n backgroundColor: amber[700],\n },\n icon: {\n fontSize: 20,\n },\n iconVariant: {\n opacity: 0.9,\n marginRight: theme.spacing(1),\n },\n message: {\n display: 'flex',\n alignItems: 'center',\n },\n}));\nconst AppSnackbar = (props) => {\n const classes = useStyles1();\n\n const [open, setOpen] = React.useState(true);\n const {className, message, variant, ...other} = props;\n const Icon = variantIcon[variant];\n\n const onClose = () => {\n setOpen(false);\n };\n\n return (\n \n \n \n {message}\n \n }\n action={[\n \n \n ,\n ]}\n {...other}\n />\n \n );\n};\nAppSnackbar.propTypes = {\n className: PropTypes.string,\n message: PropTypes.string,\n variant: PropTypes.oneOf(['error', 'info', 'success', 'warning']).isRequired,\n};\n\nexport default AppSnackbar;\n","import React, {useContext} from 'react';\nimport AppContext from '../../utility/AppContext';\nimport Box from '@material-ui/core/Box';\nimport {Button, makeStyles} from '@material-ui/core';\nimport clsx from 'clsx';\n\nconst AppFooter = (props) => {\n const {footer, footerType, navStyle} = useContext(AppContext);\n\n const useStyles = makeStyles((theme) => ({\n footer: {\n margin: '20px -20px 0',\n backgroundColor: theme.palette.background.paper,\n color: theme.palette.text.primary,\n [theme.breakpoints.up('md')]: {\n marginLeft: '-32px',\n marginRight: '-32px',\n marginTop: 30,\n },\n '& .footerContainer': {\n padding: '5px 20px',\n [theme.breakpoints.up('md')]: {\n paddingLeft: 32,\n paddingRight: 32,\n },\n [theme.breakpoints.up('xl')]: {\n padding: '10px 32px',\n },\n },\n },\n btnRoot: {\n paddingLeft: 20,\n paddingRight: 20,\n },\n }));\n\n const classes = useStyles(props);\n\n return (\n <>\n {footer &&\n footerType === 'fluid' &&\n navStyle !== 'h-default' &&\n navStyle !== 'hor-light-nav' &&\n navStyle !== 'hor-dark-layout' ? (\n \n \n Copy right @crema 2020\n \n \n \n \n \n ) : null}\n \n );\n};\n\nexport default AppFooter;\n","import React from 'react';\nimport Box from '@material-ui/core/Box';\n\nclass AppErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {hasError: false};\n }\n\n static getDerivedStateFromError(error) {\n // Update state so the next render will show the fallback UI.\n return {hasError: true};\n }\n\n componentDidCatch(error, errorInfo) {\n // You can also log the error to an error reporting service\n // logErrorToMyService(error, errorInfo);\n }\n\n render() {\n if (this.state.hasError) {\n return (\n \n Error Info\n \n Ah! Something went wrong.\n \n \n Brace yourself till we get the error fixed.\n \n \n You may also refresh the page or try again latter\n \n \n );\n } else {\n return this.props.children;\n }\n }\n}\n\nexport default AppErrorBoundary;\n","/************\n * Developed by : Shiva Software Solutions\n * Date : 28-06-2021\n * Descriptions : Route Navigation\n * Dependicies : To use @material-ui/core\n ************/\nimport React, {useContext, useRef} from 'react';\nimport {renderRoutes} from 'react-router-config';\nimport {CSSTransition, TransitionGroup} from 'react-transition-group';\nimport {Switch, useLocation} from 'react-router-dom';\nimport {AppSuspense} from '../../index';\nimport routes from '../../../modules';\nimport Scrollbar from '../Scrollbar';\nimport AppContext from '../../utility/AppContext';\nimport PropTypes from 'prop-types';\nimport AppFooter from '../AppLayout/AppFooter';\nimport Box from '@material-ui/core/Box';\nimport {RouteTransition} from '../../../shared/constants/AppEnums';\nimport AppErrorBoundary from '../AppErrorBoundary';\nimport IdleTimer from 'react-idle-timer';\nimport {useDispatch} from 'react-redux';\nimport {useAuthUser} from '../../utility/AppHooks';\nimport {AuthType} from '../../../shared/constants/AppEnums';\nimport {onJWTAuthSignout} from '../../../redux/actions';\nconst TransitionWrapper = ({children}) => {\n const {rtAnim} = useContext(AppContext);\n const location = useLocation();\n if (rtAnim === RouteTransition.NONE) {\n return <>{children};\n }\n const currentKey = location.pathname.split('/')[1] || '/';\n return (\n \n \n {children}\n \n \n );\n};\n\nTransitionWrapper.propTypes = {\n children: PropTypes.node.isRequired,\n};\nconst ContentView = () => {\n const dispatch = useDispatch();\n const user = useAuthUser();\n const idleTimer = useRef();\n const [idletime, setIdleTime] = React.useState({\n timeout: 1000 * 60 * 180, //180 minutes timeout\n showModal: false,\n userLoggedIn: false,\n isTimedOut: false,\n });\n\n const onAction = (e) => {\n setIdleTime({...idletime, isTimedOut: false});\n };\n\n const onActive = (e) => {\n // this.setState({isTimedOut: false})\n setIdleTime({...idletime, isTimedOut: false});\n };\n\n const onIdle = (e) => {\n // const isTimedOut = idletime.isTimedOut\n if (idletime.isTimedOut) {\n // alert(\"timedd pout \")\n\n if (user && user.authType === AuthType.JWT_AUTH) {\n let pushdata = {\n userId: user.id,\n userCode: user.doctorCode,\n onlineStatus: 'Logout',\n loginType: 'doctor',\n };\n dispatch(onJWTAuthSignout(pushdata));\n }\n } else {\n idleTimer.current.reset();\n setIdleTime({...idletime, isTimedOut: true});\n }\n };\n return (\n \n \n \n \n \n {renderRoutes(routes)}\n \n \n \n \n \n );\n};\n\nexport default ContentView;\n"],"sourceRoot":""}