{"version":3,"sources":["assets/images/logo.svg","common/components/button/button.component.tsx","common/components/alert/alert.component.tsx","common/components/loading/loading.component.tsx","common/components/footer/footer.component.tsx","common/components/scrollToNav/scrollToNav.component.tsx","common/api/api.service.tsx","common/components/routeGuards/authRoute.component.tsx","common/components/routeGuards/loginRoute.component.tsx","common/components/appHeader/appHeader.component.tsx","common/services/navigation.service.tsx","common/components/routeGuards/guestRoute.component.tsx","features/main/pages/notFound.component.tsx","common/services/modals.service.tsx","common/redux/systems/systems.reducer.tsx","common/redux/auth/auth.constant.tsx","common/redux/auth/auth.actions.tsx","common/redux/auth/auth.reducer.tsx","common/redux/subSystems/subSystems.constant.tsx","common/redux/subSystems/subSystems.actions.tsx","common/redux/subSystems/subSystems.reducer.tsx","common/redux/e-business/e-business.reducer.tsx","common/redux/index.reducer.tsx","assets/images/logo-en.svg","assets/images/logo-hr-dark.svg","keycloak.tsx","assets/images/logo-en-dark.svg","assets/images/mp-logo.svg","assets/images/mp-logo-en.svg","assets/images/mp-logo-dark.svg","assets/images/mp-logo-en-dark.svg","common/services/translate.service.tsx","common/constants/navigation/appRoutes.constant.tsx","common/constants/navigation/queryParams.constant.tsx","common/constants/links.constant.tsx","common/index.tsx","common/api/abstract.api.service.tsx","common/api/api.routes.tsx","common/interfaces/index.tsx","common/redux/index.tsx","assets/images/european-union-logo.svg","assets/images/european-union-logo-en.svg","assets/images/european-union-logo-dark.png","assets/images/european-union-logo-en-dark.png","assets/images/login.jpg","assets/images/e_gradani_logo.png","assets/images/e_gradani_logo-en.png","assets/images/e_gradani_logo-dark.png","assets/images/e_gradani_logo-en-dark.png","assets/images/image1.png","assets/images/image2.png","assets/images/image3.png","features/landing/pages/landing/landing.component.tsx","features/landing/pages/howToApply/howToApply.component.tsx","features/landing/pages/loginRedirect/loginRedirect.component.tsx","features/dashboard/pages/applications/applications.component.tsx","features/landing/navigation/landing.routing.component.tsx","features/landing/navigation/landing.routing.tsx","features/dashboard/pages/applications/submit-email.component.tsx","features/dashboard/pages/applications/submit-verification-code.component.tsx","features/dashboard/pages/applications/confirm-verification.component.tsx","features/dashboard/pages/applications/email-subscription.component.tsx","features/dashboard/pages/profile/email-input.component.tsx","features/dashboard/pages/profile/profile.component.tsx","features/dashboard/pages/subsystem/subsystem.component.tsx","features/dashboard/pages/eObrasci/eObrasci.component.tsx","features/dashboard/navigation/dashboard.component.tsx","features/dashboard/navigation/dashboard.routing.tsx","features/e-business/pages/apply-roles/apply-roles.component.tsx","common/redux/e-business/e-business.actions.tsx","features/e-business/navigation/e-business.component.tsx","features/e-business/navigation/e-business.routing.tsx","features/main/pages/logout.component.tsx","features/dashboard/pages/logoutRedirect/logoutRedirect.component.tsx","features/main/navigation/main.routing.component.tsx","features/main/navigation/main.routing.tsx","serviceWorker.tsx","bootstrap/index.tsx","index.tsx","common/redux/base/error/error.constant.tsx","common/redux/base/error/error.actions.tsx","common/redux/base/error/error.reducer.tsx","common/redux/base/blockUI/blockUI.constant.tsx","common/redux/base/blockUI/blockUI.actions.tsx","common/redux/base/base.reducer.tsx","common/redux/base/blockUI/blockUI.reducer.tsx","common/api/index.tsx","common/redux/e-business/e-business.constant.tsx","common/redux/store.tsx"],"names":["module","exports","Button","class","this","props","type","className","onClick","style","aria-label","ariaLabel","children","icon","Component","Alert","elevation","variant","Loading","isLoading","CircularProgress","error","Dialog","open","onClose","localStorage","clear","window","location","reload","aria-labelledby","aria-describedby","DialogTitle","id","i18n","t","DialogContent","DialogContentText","DialogActions","undefined","Footer","state","aboutSystem","contact","maxWidth","setState","ModalsService","aboutSystemModalContent","contactModalContent","href","LinksConstant","ministarstvo","target","rel","egradani","aboutSystemModal","contactModal","ScrollToNav","offset","smallOffset","navLinks","map","navLink","index","key","smooth","duration","spy","activeClass","to","title","SubsystemService","categoryId","HttpFactory","GET","ApiRoutes","GetApplicationsByCategoryId","lang","GetApplications","SubjectService","oib","token","GetUserByOIB","ForLegalIps","ForLegalIzvor_reg","ToLegalIps","ToLegalIzvor_reg","GeteAuthorizationUserByOIB","user","PATCH","POST","email","SendEmailVerification","code","VerifyEmail","DeleteEmail","DisableEmailPopUp","KeycloackService","username","POST_URLENCODED","SessionInspector","AuthorizationService","requestId","GetAuthorizationFormData","encodeURIComponent","GetPermissions","data","activeRoles","roles","forEach","role","push","dozvole","doz","description","value","valueDescription","GrantAccess","AuthRouteComponent","auth","isAuthentificated","exact","path","component","AppRoutes","Landing","Index","search","connect","LoginRouteComponentClass","callbackUrl","redirectUrl","redirectStarted","paramName","qp","qs","parse","replace","toString","decodeURI","itoken","url","QueryParamsConstant","Token","setItem","getQueryParam","CallbackUrl","RedirectUrl","length","redirectBack","LoginRouteComponent","lngs","nativeName","getQueryData","entityDataJSON","getItem","JSON","ForPersonOib","AppHeader","unlisten","ref","interval","getLogoSrc","isDarkMode","LogoDark","LogoEnDark","LogoEn","Logo","GetMpsLogoSrc","MpsImageDark","MpsEnImageDark","MpsEnImage","MpsImage","GetEULogoSrc","EUImageDark","EUEnImageDark","EUEnImage","EUImage","parseInt","getCategory","Number","isNaN","React","createRef","currentCategoryId","hamburger","isActive","bind","setInterval","getCookie","document","addEventListener","refreshLang","history","listen","action","pathname","Dashboard","Profile","removeEventListener","currentId","EObrasci","body","overflow","NavigationService","navigate","event","button","primary","removeItem","item","process","setTimeout","SsoLogoutUrl","keycloak","logout","actionLogout","cname","name","ca","decodeURIComponent","cookie","split","i","c","charAt","substring","indexOf","routeToDashboard","tabIndex","src","alt","Object","keys","lng","setLang","openHamburger","color","cursor","closeHamburger","renderMobileMenu","display","alignItems","marginRight","width","eu","aria-controls","aria-haspopup","onKeyDown","onKeyDownHandler","routeToProfilePage","actions","actionGetSubsystems","actionChangeOib","withRouter","RouteProtectionLevel","_navigator","GuestRouteComponent","NotFoundComponent","route","setTopLevelNavigator","navigatorRef","generateRoutes","routes","guard","GUEST_ONLY","AUTH_ONLY","LOGIN","NotFound","goBack","initialState","logo","subsystems","systemsReducer","AuthConstant","LOGOUT","CHANGE_INTRO","GET_SUBJECT","ENABLE_POPUP","CHANGE_OIB","REFRESH_TOKEN","dispatch","actionRevoke","BlockUIConstant","START","privola","patchSubjectByOIB","subscribe","response","END","actionGetSubject","getState","result","queryString","identifier","geteAuthorizationSubject","payload","console","getSubjectByOIB","actionEnablePopUp","actionUpdateToken","accessToken","refreshToken","login","MessageId","NavToken","getSubject","enablePopUpState","isEmailPopUpDisabled","changeOib","authReducer","PURGE","SubsystemsConstant","getSubsystems","agronetUrl","find","system","naziv","includes","message","getSubsystemsInfoSuccess","getSubsystemsInfoError","subsystemsReducer","grantUrl","REACT_APP_EOVLASTENJA","cancelUrl","authorizer","legalEntity","subjectIdentificationNumber","physicalEntity","firstName","lastName","personalIdentificationNumber","assignee","powerOfAttorneyFor","serviceResponse","submitUrl","permissions","getAuthFormData","getPermissions","grantAccess","AppReducers","combineReducers","base","BaseReducers","systems","eBusiness","EBusinessConstant","AUTH_FORM","PERMISSIONS","GRANT_ACCESS","KeyCloakRoute","Keycloak","i18nInit","I18n","en","hr","defaultLocale","locale","enableFallback","translations","l","dispatchEvent","Event","Subsystem","Login","Logout","LogoutRedirect","HowToApply","LoginRedirect","EBusiness","ApplyRoles","SsoLoginUrl","osustavu","kontakt","DBConstants","PlaviDizelId","getUrlWithParams","params","p","join","httpHeader","header","APP_TOKEN","currentState","store","parseResponse","text","then","e","ok","status","ErrorConstant","ERROR","persistor","purge","ClientError","ServerError","handleNetworkError","ErrorType","clientError","serverError","NetworkError","networkError","Error","requestOptions","method","headers","from","fetch","catch","stringify","PUT","DELETE","formBody","PatchUserByOIB","CreateUserByOIB","Document","subsystemId","LandingComponent","GetNIASLogoSrc","EGradaniLogoDark","EGradaniLogoEnDark","EGradaniLogoEn","EGradaniLogo","actionUnblockUI","IconButton","background","LoginImage","idpHint","actionBlockUI","redux","withKeycloak","HowToApplyComponent","step","createRightSide","rows","Fragment","Image1","Image2","Image3","size","Stepper","orientation","nonLinear","activeStep","Step","StepButton","LoginRedirectComponent","AppViewEnum","LandingNavigationRoutingComponent","removeCookies","trakica","getElementById","trakicaSrc","egradjani","scriptElement","querySelector","remove","script","createElement","async","appendChild","appendLandingEcitizensHeader","Snackbar","autoHideDuration","actionRefreshError","severity","Backdrop","blockUI","zIndex","textFieldStyle","emailValidator","z","object","string","SubmitEmail","onEmailSubmit","onPopUpClose","useState","isOpen","setIsOpen","useForm","resolver","zodResolver","register","handleSubmit","errors","formState","handleClose","disableAutoFocus","onSubmit","TextField","autoFocus","hiddenLabel","onBlur","focus","InputProps","disableUnderline","verificationCodeInputStyle","verificationCodeValidator","verificationCode","min","SubmitVerificationCode","onEmailReset","onVerificationCodeSubmit","onVerificationCodeResend","ConfirmVerification","emailActions","EmailSubscription","isEmailVerified","deleteEmail","verifyEmail","res","err","sendEmailVerification","disableEmailPopUp","ApplicationsComponent","localStorageValue","myApplicationsDisplay","localStorageValue2","myApplicationsDisplay2","allApplicationsDisplay","isAboutOpen","aboutSystemText","registrationInfoText","contactInfoText","htmlString","stringToHTML","Grid","container","spacing","filter","aktivan","pravaPristupa","pravo","podsustavId","subsystem","xs","sm","md","lg","xl","position","slikaAlt","slika","handleLinkClick","opis","registracijaInfo","kontaktInfo","registracijaUrl","regex","RegExp","results","exec","card","renderCardsAvailable","getParameterByName","renderCardsRest","ReactGA","category","subsystemUrl","EmailInput","onGetSubject","onPopUpEnable","isDeleteDialogOpen","setIsDeleteDialogOpen","setValue","getValues","useEffect","onDeleteSubmit","log","placeholder","marginTop","fontSize","disabled","EmailDeleteDialog","GridItem","label","ProfileComponent","showText","hasAnyRegisteredSystems","array","oibRegistar","obrtniRegistar","sudskiRegistar","rkpfiRegistar","opgRegistar","registarUdruga","djelatnost","predmet","djelatnostTekst","stanje","registeredSubsystems","oibRegOstaliPodaci","ostaliPodaci","dodatakAdresi","AdresaPrebivalista","KucniBrojDodatak","ime","prezime","renderOib","oiBstatus","spol","moment","datumRodjenja","format","mjestoRodjenja","drzavaRodjenja","ulica","kucniBroj","naselje","drzava","vlasnik","mbo","brojObrtnice","renderStanjeObrta","stanjeObrta","datumPocetkaObrta","datumPrestankaObrta","sjediste","nazivPogona","kratkiNazivPogona","zupanija","nazivNaselja","djelatnostiPogona","mbs","handleNull","sjedisteUlica","sjedisteBroj","sjedisteNaselje","sjedisteOpcina","sjedisteDrzava","temeljniKapital","pravniOblik","predmetiPoslovanja","textDecoration","budgetUserName","budgetUserOib","budgetUserMB","rkpCode","renderBudgetUserStatus","budgetUserStatus","representativeFunction","representativeNameAndSurname","representativeOib","nazivPG","shortName","statusOPGa","mibpg","tipPG","datumPocetkaPG","datumKrajaPG","isAfter","farmOIB","maticniBroj","grad","postBroj","telefon","mobitel","skraceniNaziv","registarskiBroj","datumUpisa","datumOsnivackeSkupine","oblikUdruzivanja","datumStatusa","ciljevi","ciljaneSkupine","opisDjelatnosti","gospodarskeDjelatnosti","nazivNaDrugimJezicima","skrNazivNaDrugimJezicima","mail","webStranica","osobe","svojstvo","vrstaOsobe","funkcija","generateNavLinks","SubsystemComponent","currentSubsystem","openPDFModal","setCurrentSubsystem","allowedSystems","dangerouslySetInnerHTML","__html","kratakOpis","checkIfAllowed","renderLoginUrl","alignSelf","pdfBlob","showAllPage","cleanText","blob","fileURL","URL","createObjectURL","renderBanner","renderAgronetInfo","renderPDFModal","EObrasciComponent","DashboardRoutingComponent","checkInterval","onAuthRefreshSuccess","tokenParsed","inspectSession","preferred_username","a","changeEntityUrl","entitySearch","trakicaCreate","appendDashboardEcitizensHeader","clearInterval","prevProps","onRouteChanged","actionGetAuthFormData","getAuthorizationFormData","actionGetPermissions","actionGrantAccess","form","setForm","isInitialMount","useRef","setActiveRoles","permissionsCopy","permission","current","$","submit","padding","backgroundColor","height","paddingBottom","flexDirection","borderBottom","marginBottom","justifyContent","fontWeight","roleIndex","podsustav","r","checked","transform","onChange","dozIndex","checkedRole","handleCheckboxClick","gap","filteredRoles","d","EBusinessNavigationRoutingComponent","LogoutComponent","LogoutRedirectComponent","MainNavigationRoutingComponent","headerInterval","showOdjava","refreshLoop","el","styleProp","defaultView","ownerDocument","getComputedStyle","toLowerCase","getPropertyValue","currentStyle","str","letter","toUpperCase","test","oldLeft","left","oldRsLeft","runtimeStyle","pixelLeft","parseFloat","getElementsByTagName","classList","contains","add","theme","createMuiTheme","palette","main","appBar","filterHolder","getStyle","authClient","initOptions","onLoad","silentCheckSsoRedirectUri","origin","onEvent","eventType","OznakaDrzaveEid","authenticated","refresh_token","createSubjectByOIB","loading","ThemeProvider","Routes","EbusinessRoutingComponent","Boolean","hostname","match","ReactDOM","render","navigator","serviceWorker","ready","registration","unregister","initialize","REFRESH","persistConfig","storage","whitelist","persistedReducer","persistReducer","middleware","thunk","createStore","compose","applyMiddleware","persistStore"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,kC,2QCe9BC,G,OAAb,4MACYC,MAAgB,SAD5B,uDAKQ,OADAC,KAAKD,MAAQ,SACLC,KAAKC,MAAMC,MACf,IAAK,YAAaF,KAAKD,OAAS,qBAAuB,MACvD,IAAK,WAAYC,KAAKD,OAAS,oBAAsB,MACrD,IAAK,QAASC,KAAKD,OAAS,iBAAkB,MAC9C,IAAK,OAAQC,KAAKD,OAAS,gBAAiB,MAC5C,IAAK,QAASC,KAAKD,OAAS,iBAAkB,MAC9C,IAAK,QAASC,KAAKD,OAAS,iBAEhC,OACI,4BAAQI,UAAWH,KAAKD,MAAOK,QAASJ,KAAKC,MAAMG,QAASC,MAAOL,KAAKC,MAAMI,MAAOC,aAAYN,KAAKC,MAAMM,WACxG,0BAAMJ,UAAU,gBACXH,KAAKC,MAAMO,UAEdR,KAAKC,MAAMQ,MACTT,KAAKC,MAAMQ,UAnB/B,GAA4BC,c,kBCXfC,EAAb,uKAEM,OACE,kBAAC,IAAD,eAAUC,UAAW,EAAGC,QAAQ,UAAab,KAAKC,YAH1D,GAA2BS,a,sECedI,EAAb,uKAGQ,OACI,oCACKd,KAAKC,MAAMc,WACR,yBAAKZ,UAAU,WACX,kBAACa,EAAA,EAAD,OAGPhB,KAAKC,MAAMgB,OACR,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CACzBC,MAAO,QACPma,QAAS,iBCCN,SAAS1V,IACZ,OAAO,SAACzL,GACNA,EAAS,CAACnR,KAAMkY,EAAcoa,WCKpC,IAAM9hB,EAAoC,CACtCzP,OAAO,GAGEA,EAAQ,SAACmR,GAClB,MAAO,CACHnR,OAAO,EACP0S,QAASvB,EAAQuB,QACjB5H,OAAQqG,EAAQrG,S,YClBXwF,EAAkB,CAC3BC,MAAO,cACPK,IAAK,aCCF,SAAS6I,IACd,OAAO,SAACrJ,GACNA,EAAS,CAAEnR,KAAMqR,EAAgBC,SAI9B,SAAS6I,IACd,OAAO,SAAChJ,GACNA,EAAS,CAAEnR,KAAMqR,EAAgBM,OCP9B,IAAMuD,EAAeF,YAAgB,CACxCjU,MHyBG,WAA0G,IAApFoB,EAAmF,uDAAtDqO,EAAc3E,EAAwC,uCAC5G,OAAOA,EAAO7L,MACV,KAAKkY,EAAcC,MAAO,OAAOpX,EAAM8K,EAAOqG,SAC9C,KAAKgG,EAAcoa,QAAS,MAVzB,CACHvxB,OAAO,GAWX,OAAOoB,GG7BP4a,QCKG,WAAoF,IAA5D5a,EAA2D,wDAA5B0J,EAA4B,uCACtF,OAAOA,EAAO7L,MACV,KAAKqR,EAAgBC,MAAO,OANA,EAO5B,KAAKD,EAAgBM,IAAK,OALI,EAOlC,OAAOxP,M,gCChBX,0N,gCCAA,kCAAO,IAAMkT,EAAoB,CAC7BC,UAAW,YACXC,YAAa,cACbC,aAAc,iB,gCCHlB,oHAOM+c,EAAgB,CACpB7uB,IAAK,iBACL8uB,QATF,OASEA,EACEC,UAAW,CAAC,OAAQ,SAGlBC,EAAmBC,YAAeJ,EAAexd,KAIjD6d,EAAa,CAACC,KAEPlb,EAAQmb,YACnBJ,EALmB,GAQnBK,YAAQC,IAAe,WAAf,EAAmBJ,KAGhBxa,EAAY6a,YAAatb,K","file":"static/js/main.a7e8cd42.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/logo.0fb9daf3.svg\";","import React, { Component } from \"react\";\nimport './button.styles.scss';\n\n\ninterface Props {\n type: \"contained\" | \"outlined\" | \"plain\" | \"link\" | \"link2\" | \"link3\";\n onClick: any;\n icon?: React.ReactNode;\n style?: any;\n ariaLabel?: any;\n}\n\ninterface State {\n}\n\nexport class Button extends Component {\n private class: string = \"button\";\n\n render() {\n this.class = \"button\";\n switch (this.props.type) {\n case \"contained\": this.class += \" button--contained\"; break;\n case \"outlined\": this.class += \" button--outlined\"; break;\n case \"plain\": this.class += \" button--plain\"; break;\n case \"link\": this.class += \" button--link\"; break;\n case \"link2\": this.class += \" button--link2\"; break;\n case \"link3\": this.class += \" button--link3\"; break;\n }\n return (\n \n )\n }\n}","import React, { Component } from \"react\";\nimport MuiAlert, { AlertProps } from '@material-ui/lab/Alert';\n\n\nexport class Alert extends Component {\n render() {\n return (\n \n )\n }\n}","import React, { Component } from \"react\";\nimport CircularProgress from '@material-ui/core/CircularProgress';\nimport './loading.styles.scss';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport { Button } from '../button/button.component';\nimport i18n from '../../services/translate.service';\n\ninterface Props {\n isLoading: boolean;\n error?: string;\n}\n\ninterface State {\n}\n\nexport class Loading extends Component {\n\n render() {\n return (\n <>\n {this.props.isLoading &&\n
\n \n
\n }\n {this.props.error &&\n { localStorage.clear(); window.location.reload(); }}\n aria-labelledby=\"alert-dialog-title\"\n aria-describedby=\"alert-dialog-description\"\n >\n {i18n.t('common.error')}\n \n \n {this.props.error}\n \n \n \n \n \n \n }\n {!this.props.isLoading && this.props.error === undefined &&\n <>{this.props.children}\n }\n \n )\n }\n}","import React, { Component } from \"react\";\nimport './footer.styles.scss';\nimport { LinksConstant } from \"../../constants\";\nimport { Dialog } from \"@material-ui/core\";\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport { ModalsService } from \"../..\";\nimport CloseIcon from '@material-ui/icons/Close';\nimport i18n from \"../../services/translate.service\";\n\ntype Props = {}\n\ninterface State {\n aboutSystem: boolean;\n contact: boolean;\n}\n\nexport class Footer extends Component {\n constructor(props: Props) {\n super(props);\n this.state = {\n aboutSystem: false,\n contact: false\n }\n }\n\n private aboutSystemModal(): React.ReactNode {\n return (\n this.setState({ aboutSystem: false })} aria-labelledby=\"customized-dialog-title\" open={this.state.aboutSystem}>\n
this.setState({ aboutSystem: false })}>\n \n
\n \n {i18n.t('footer.about')}\n \n {ModalsService.aboutSystemModalContent()}\n
\n )\n }\n\n private contactModal(): React.ReactNode {\n return (\n this.setState({ contact: false })} aria-labelledby=\"customized-dialog-title\" open={this.state.contact}>\n
this.setState({ contact: false })}>\n \n
\n \n {i18n.t('footer.contact')}\n \n {ModalsService.contactModalContent()}\n
\n )\n }\n\n\n render() {\n return (\n \n )\n }\n}","import React, { Component } from \"react\";\nimport './scrollToNav.styles.scss';\nimport { Link } from 'react-scroll';\n\ninterface Props {\n className: string;\n navLinks: Array;\n offset?: boolean;\n smallOffset?: boolean;\n}\n\nexport interface ScrollToNavLinkInterface {\n to: string;\n title: string;\n}\n\n\nexport class ScrollToNav extends Component {\n render() {\n let offset = this.props.offset ? -700 : 0;\n offset = this.props.smallOffset ? -400 : offset;\n return (\n \n )\n }\n}","import { Observable } from \"rxjs\";\nimport { SubsystemInfoInterface } from \"../interfaces/subsystemInfo/subsystemInfo.interface\";\nimport HttpFactory from \"./abstract.api.service\";\nimport { ApiRoutes } from './api.routes';\nimport { UserInterface } from \"..\";\nimport { AuthFormData } from \"../redux/e-business/e-business.reducer\";\n\nexport class SubsystemService {\n static getSubsystemById(categoryId: number): Observable> {\n return HttpFactory.GET(ApiRoutes.GetApplicationsByCategoryId(categoryId));\n }\n static getSubsystems(lang: string): Observable> {\n return HttpFactory.GET(`${ApiRoutes.GetApplications}?lang=${lang}`);\n }\n}\n\nexport class SubjectService {\n static getSubjectByOIB(oib: string, token?: string): Observable {\n return HttpFactory.GET(ApiRoutes.GetUserByOIB(oib), undefined, token);\n }\n\n static geteAuthorizationSubject(ForLegalIps: string, ForLegalIzvor_reg: string, ToLegalIps: string, ToLegalIzvor_reg: string, token?: string): Observable {\n return HttpFactory.GET(ApiRoutes.GeteAuthorizationUserByOIB(ForLegalIps, ForLegalIzvor_reg, ToLegalIps, ToLegalIzvor_reg), undefined, token);\n }\n\n static patchSubjectByOIB(oib: string, user: UserInterface, token?: string): Observable {\n return HttpFactory.PATCH(ApiRoutes.GetUserByOIB(oib), user, undefined, token);\n }\n\n static createSubjectByOIB(oib: string, token?: string): Observable {\n return HttpFactory.POST(ApiRoutes.GetUserByOIB(oib), {}, undefined, token);\n }\n\n static sendEmailVerification(oib: string, email: string, token: string, ForLegalIzvor_reg?: string): Observable {\n return HttpFactory.POST(ApiRoutes.SendEmailVerification, { email, oib, ForLegalIzvor_reg }, undefined, token);\n }\n\n static verifyEmail(oib: string, email: string, code: string, token: string, ForLegalIzvor_reg?: string): Observable {\n return HttpFactory.POST(ApiRoutes.VerifyEmail, { email, oib, code, ForLegalIzvor_reg }, undefined, token);\n }\n\n static deleteEmail(oib: string, token: string, ForLegalIzvor_reg?: string): Observable {\n return HttpFactory.POST(ApiRoutes.DeleteEmail(oib, ForLegalIzvor_reg), {}, undefined, token);\n }\n\n static disableEmailPopUp(oib: string, token: string, ForLegalIzvor_reg?: string): Observable {\n return HttpFactory.POST(ApiRoutes.DisableEmailPopUp(oib, ForLegalIzvor_reg), {}, undefined, token);\n }\n}\n\nexport class KeycloackService {\n static inspectSession(username: string): Observable {\n return HttpFactory.POST_URLENCODED(ApiRoutes.SessionInspector, { username: username });\n }\n}\n\nexport class AuthorizationService {\n static getAuthorizationFormData(requestId: string): Observable {\n return HttpFactory.GET(ApiRoutes.GetAuthorizationFormData(encodeURIComponent(requestId)), undefined);\n }\n\n static getPermissions(oib: string): Observable {\n return HttpFactory.GET(ApiRoutes.GetPermissions(oib), undefined);\n }\n\n static grantAccess(data: AuthFormData, activeRoles: any): Observable {\n const roles = [] as any;\n activeRoles.forEach((role: any) => {\n roles.push(...role.dozvole.map((doz: any) => ({ key: doz.key, description: doz.description, value: doz.value ?? false, valueDescription: '' })));\n });\n\n return HttpFactory.POST(ApiRoutes.GrantAccess, { ...data, roles }, undefined, undefined);\n }\n}","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { AuthStateInterface } from \"../../redux/auth\";\nimport { Route, Redirect } from \"react-router\";\nimport { StoreStateInterface } from \"../../redux\";\nimport { AppRoutes } from \"../../constants\";\n\n\n\ninterface Props {\n auth: AuthStateInterface;\n component: any;\n path: string;\n exact: boolean;\n}\n\ninterface State {\n}\n\nclass AuthRouteComponent extends Component {\n\n\n render() {\n if (this.props.auth.isAuthentificated) {\n return \n } else {\n return \n }\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n auth: state.auth\n };\n};\n\nconst actions = {\n};\n\nexport default connect(mapStateToProps, actions)(AuthRouteComponent);\n","import qs from \"qs\";\nimport React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { Route } from \"react-router-dom\";\nimport { AuthStateInterface, QueryParamsConstant, StoreStateInterface } from \"../..\";\n\n\ninterface Props {\n auth: AuthStateInterface;\n component: any;\n path: string;\n exact: boolean;\n}\n\ninterface State {\n}\n\nclass LoginRouteComponentClass extends Component {\n private callbackUrl: string = \"\";\n private redirectUrl: string = \"\";\n private redirectStarted: boolean = false;\n\n private getQueryParam(paramName: string): string {\n let qp = qs.parse(window.location.search.replace('?', ''));\n let search: string | undefined = \"\";\n if (qp[paramName]) {\n search = qp[paramName]?.toString();\n }\n return search ? decodeURI(search) : \"\";\n }\n\n private redirectBack(token: string, itoken?: string): void {\n this.redirectStarted = true;\n let url = this.callbackUrl;\n url += \"?\" + QueryParamsConstant.Token + \"=\" + token;\n localStorage.setItem(\"agronetLogin\", \"1\")\n\n window.location.href = url\n }\n\n render() {\n this.callbackUrl = this.getQueryParam(QueryParamsConstant.CallbackUrl);\n this.redirectUrl = this.getQueryParam(QueryParamsConstant.RedirectUrl);\n if (this.callbackUrl.length > 0) {\n if (!this.redirectStarted) {\n if (this.props.auth.token)\n this.redirectBack(this.props.auth.token!);\n }\n }\n return \n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n auth: state.auth\n };\n};\n\nconst actions = {\n};\n\nexport const LoginRouteComponent = connect(mapStateToProps, actions)(LoginRouteComponentClass);\n","import React, { Component } from \"react\";\nimport './appHeader.styles.scss';\nimport { RouteComponentProps } from \"react-router-dom\";\nimport { withRouter } from 'react-router';\nimport qs from 'qs';\nimport { AppRoutes, LinksConstant, QueryParamsConstant } from \"../../constants\";\nimport { NavigationService } from \"../../index\";\nimport { SystemsStateInterface } from \"../../redux/systems\";\nimport Logo from '../../../assets/images/logo.svg';\nimport LogoEn from '../../../assets/images/logo-en.svg';\nimport LogoDark from '../../../assets/images/logo-hr-dark.svg';\nimport LogoEnDark from '../../../assets/images/logo-en-dark.svg';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport CloseIcon from '@material-ui/icons/Close';\nimport { actionGetSubsystems, AuthStateInterface, actionChangeOib } from \"../../redux\";\nimport keycloak from \"../../../keycloak\";\nimport { List, ListItem, ListItemText } from '@material-ui/core';\nimport MpsImage from '../../../assets/images/mp-logo.svg';\nimport MpsEnImage from '../../../assets/images/mp-logo-en.svg';\nimport MpsImageDark from '../../../assets/images/mp-logo-dark.svg';\nimport MpsEnImageDark from '../../../assets/images/mp-logo-en-dark.svg';\nimport EUImage from '../../../assets/images/european-union-logo.svg';\nimport EUEnImage from '../../../assets/images/european-union-logo-en.svg';\nimport EUImageDark from '../../../assets/images/european-union-logo-dark.png';\nimport EUEnImageDark from '../../../assets/images/european-union-logo-en-dark.png';\nimport { connect } from \"react-redux\";\nimport { appendDashboardEcitizensHeader } from \"../../../features/dashboard/navigation/dashboard.component\";\nimport i18n, { setLang } from \"../../services/translate.service\";\n\ninterface Props {\n systems: SystemsStateInterface;\n auth: AuthStateInterface;\n actionLogout: () => void;\n actionGetSubsystems: (lang: string) => void;\n actionChangeOib: any;\n}\n\ninterface State {\n currentCategoryId: number;\n hamburger: boolean;\n lang: string;\n isDarkMode: boolean;\n}\n\ntype PathParamsType = {\n}\n\nconst lngs = {\n 'en': { nativeName: 'EN' },\n 'hr': { nativeName: 'HR' }\n} as LngsType;\n\ntype LngsType = {\n [key: string]: { [key: string]: string }\n}\n\ntype PropsType = RouteComponentProps & Props;\n\nconst getQueryData = () => {\n const entityDataJSON = localStorage.getItem('ENTITY_DATA');\n\n let entityData;\n if (entityDataJSON) {\n entityData = JSON.parse(entityDataJSON);\n const { ForLegalIps = undefined, ForLegalIzvor_reg = undefined, ToLegalIps = undefined, ToLegalIzvor_reg = undefined, ForPersonOib = undefined } = entityData;\n if (ForLegalIps || ForLegalIzvor_reg || ToLegalIps || ToLegalIzvor_reg || ForPersonOib) {\n return `?ForLegalIps=${ForLegalIps}&ForPersonOib=${ForPersonOib}&ForLegalIzvor_reg=${ForLegalIzvor_reg}&ToLegalIps=${ToLegalIps}&ToLegalIzvor_reg=${ToLegalIzvor_reg}`;\n } else {\n return '';\n }\n }\n return '';\n}\n\nclass AppHeader extends Component {\n unlisten: any;\n private ref: React.RefObject;\n private interval: any;\n\n constructor(props: PropsType) {\n super(props);\n let categoryId: number = parseInt(this.getCategory(this.props.location));\n if (Number.isNaN(categoryId) || categoryId > 4) {\n categoryId = 0\n }\n this.ref = React.createRef();\n\n this.state = {\n currentCategoryId: categoryId,\n hamburger: false,\n lang: window.localStorage.getItem(\"lang\") ? window.localStorage.getItem(\"lang\")! : \"hr\",\n isDarkMode: false\n }\n\n this.isActive = this.isActive.bind(this);\n }\n\n getCategory(location: any): string {\n let qp = qs.parse(location.search.replace('?', ''));\n let categoryId: string = \"1\";\n if (qp.categoryId) {\n categoryId = qp.categoryId.toString();\n }\n return decodeURI(categoryId);\n }\n\n refreshLang() {\n this.setState({ lang: window.localStorage.getItem(\"lang\") ? window.localStorage.getItem(\"lang\")! : \"hr\"})\n }\n\n\n componentDidMount() {\n this.interval = setInterval(() => {\n //@ts-ignore\n if (this.getCookie(\"cookieImpaired\") === \"da\") {\n this.setState({ isDarkMode: true });\n }\n else {\n this.setState({ isDarkMode: false });\n }\n }\n , 1000)\n document.addEventListener(\"refreshLang\", this.refreshLang.bind(this))\n this.unlisten = this.props.history.listen((location, action) => {\n let categoryId: number = parseInt(this.getCategory(location));\n if (Number.isNaN(categoryId) || categoryId > 4) {\n categoryId = 0\n }\n if (location.pathname === AppRoutes.Dashboard.Profile) categoryId = 0;\n this.setState({ currentCategoryId: categoryId })\n });\n }\n\n componentWillUnmount() {\n this.unlisten();\n document.removeEventListener(\"refreshLang\", this.refreshLang.bind(this))\n }\n\n\n isActive(data: any): boolean {\n let currentId = this.state.currentCategoryId;\n if (!!this.props.location.state) return false;\n if (this.props.location.pathname === AppRoutes.Dashboard.Profile || this.props.location.pathname === AppRoutes.Dashboard.EObrasci) currentId = 0;\n if (data.categoryId !== undefined) {\n return (currentId === 0 && data.categoryId === 1 && this.props.location.pathname !== AppRoutes.Dashboard.Profile && this.props.location.pathname !== AppRoutes.Dashboard.EObrasci) || currentId === data.categoryId;\n } else if (data.url !== undefined && data.url === this.props.location.pathname) {\n return true;\n }\n return false;\n }\n\n private openHamburger(): void {\n this.setState({ hamburger: true });\n document.body.style.overflow = \"hidden\";\n }\n\n private closeHamburger(): void {\n this.setState({ hamburger: false });\n document.body.style.overflow = \"auto\";\n }\n\n private routeToProfilePage(): void {\n NavigationService.navigate(`${AppRoutes.Dashboard.Profile}${getQueryData()}`); \n }\n\n private onKeyDownHandler(event: React.KeyboardEvent): void {\n if (event.key === 'Enter') {\n NavigationService.navigate(`${AppRoutes.Dashboard.Profile}${getQueryData()}`);\n }\n }\n\n routeToDashboard(): void {\n NavigationService.navigate(`${AppRoutes.Dashboard.Index}${getQueryData()}`);\n }\n\n private renderMobileMenu(): React.ReactNode {\n return (\n \n {\n this.setState({ hamburger: false });\n document.body.style.overflow = \"auto\";\n NavigationService.navigate(AppRoutes.Dashboard.Index)\n }\n }\n >\n \n \n {\n this.setState({ hamburger: false });\n document.body.style.overflow = \"auto\";\n NavigationService.navigate(AppRoutes.Dashboard.Profile)\n }\n }\n >\n \n \n {\n if (localStorage.getItem(\"agronetLogin\") === \"1\") {\n localStorage.removeItem(\"agronetLogin\");\n localStorage.setItem(\"logout\", \"1\");\n this.setState({ hamburger: false });\n let item: string = localStorage.getItem(\"agronetUrl\") !== null ? localStorage.getItem(\"agronetUrl\")! : process.env.REACT_APP_AGRONET!;\n setTimeout(() => {\n window.location.href = `${item}Logout2.aspx?${QueryParamsConstant.SsoLogoutUrl}=${process.env.REACT_APP_ROOT!}`;\n }, 1000)\n } else {\n this.setState({ hamburger: false });\n document.body.style.overflow = \"auto\";\n keycloak.logout();\n this.props.actionLogout();\n }\n }\n }\n >\n \n \n \n )\n }\n\n private getCookie(cname: string): string {\n var name = cname + \"=\";\n var decodedCookie = decodeURIComponent(document.cookie);\n var ca = decodedCookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) === ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) === 0) {\n return c.substring(name.length, c.length);\n }\n }\n return \"\";\n }\n\n getLogoSrc = () => {\n const lang = window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\";\n const isDarkMode = this.state.isDarkMode;\n\n if (lang === \"hr\" && isDarkMode) {\n return LogoDark;\n } else if (lang === \"hr\" && !isDarkMode) {\n return Logo;\n } else if (lang !== \"hr\" && isDarkMode) {\n return LogoEnDark;\n } else {\n return LogoEn;\n }\n };\n\n GetMpsLogoSrc = () => {\n const lang = window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\";\n const isDarkMode = this.state.isDarkMode;\n\n if (lang === \"hr\" && isDarkMode) {\n return MpsImageDark;\n } else if (lang === \"hr\" && !isDarkMode) {\n return MpsImage;\n } else if (lang !== \"hr\" && isDarkMode) {\n return MpsEnImageDark;\n } else {\n return MpsEnImage;\n }\n };\n\n GetEULogoSrc = () => {\n const lang = window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\";\n const isDarkMode = this.state.isDarkMode;\n\n if (lang === \"hr\" && isDarkMode) {\n return EUImageDark;\n } else if (lang === \"hr\" && !isDarkMode) {\n return EUImage;\n } else if (lang !== \"hr\" && isDarkMode) {\n return EUEnImageDark;\n } else {\n return EUEnImage;\n }\n };\n\n render() {\n return (\n \n )\n }\n}\n\nconst mapStateToProps = () => { };\n\nconst actions = {\n actionGetSubsystems,\n actionChangeOib\n};\n\nexport default withRouter(connect(\n mapStateToProps,\n actions\n)(AppHeader))","import React from 'react';\nimport { RouteInterface } from \"../interfaces/framework/routing.interface\";\nimport { Switch, Route } from 'react-router-dom';\nimport GuestRouteComponent from '../components/routeGuards/guestRoute.component';\nimport AuthRouteComponent from '../components/routeGuards/authRoute.component';\nimport { NotFoundComponent } from '../../features/main/pages/notFound.component';\nimport { AppRoutes } from '../constants';\nimport { LoginRouteComponent } from '../components/routeGuards/loginRoute.component';\n\n\n\nexport enum RouteProtectionLevel {\n GUEST_ONLY = \"guest\",\n AUTH_ONLY = \"authenticated\",\n LOGIN = \"login\"\n}\n\nlet _navigator: any;\n\nfunction setTopLevelNavigator(navigatorRef: any) {\n _navigator = navigatorRef;\n}\n\nfunction navigate(route: string, state?: any) {\n _navigator.history.push(route, state);\n}\n\nfunction goBack() {\n _navigator.history.goBack();\n}\n\nfunction generateRoutes(routes: Array): React.ReactNode {\n return (\n \n {routes.map((route: RouteInterface, index: number) => {\n switch (route.guard) {\n case RouteProtectionLevel.GUEST_ONLY:\n return (\n \n );\n case RouteProtectionLevel.AUTH_ONLY:\n return (\n \n );\n case RouteProtectionLevel.LOGIN:\n return (\n \n );\n default:\n return (\n \n )\n }\n })}\n \n \n \n )\n}\n\n\nexport const NavigationService = {\n navigate,\n setTopLevelNavigator,\n generateRoutes,\n goBack\n};\n","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { AuthStateInterface } from \"../../redux/auth\";\nimport { Route, Redirect } from \"react-router\";\nimport { StoreStateInterface } from \"../../redux\";\nimport { AppRoutes } from \"../../constants\";\n\n\n\ninterface Props {\n auth: AuthStateInterface;\n component: any;\n path: string;\n exact: boolean;\n}\n\ninterface State {\n}\n\nclass GuestRouteComponent extends Component {\n\n\n render() {\n if (!this.props.auth.isAuthentificated) {\n return \n } else {\n return \n }\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n auth: state.auth\n };\n};\n\nconst actions = {\n};\n\nexport default connect(mapStateToProps, actions)(GuestRouteComponent);\n","import React from \"react\";\n\ninterface Props {\n}\n\nexport class NotFoundComponent extends React.Component {\n render() {\n return (\n
\n 404: Page not found\n
\n );\n }\n}\n\n\n","import React from 'react';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport LocationIcon from '@material-ui/icons/LocationOn';\nimport WebIcon from '@material-ui/icons/DesktopWindows';\nimport MailIcon from '@material-ui/icons/Mail';\nimport CallIcon from '@material-ui/icons/Call';\nimport i18n from './translate.service';\r\n\nfunction aboutSystemModalContent(): React.ReactNode {\n return (\n <>\n

{i18n.t('frontPage.modal.paragraph1')}

\n

{i18n.t('frontPage.modal.paragraph2')}

\n

{i18n.t('frontPage.modal.paragraph3')}

\n

{i18n.t('frontPage.modal.paragraph4')}

\n

{i18n.t('frontPage.modal.paragraph5')}

\n \n )\n}\n\nfunction contactModalContent(): React.ReactNode {\n return (\n \n \n \n \n \n \n )\n}\n\nexport const ModalsService = {\n aboutSystemModalContent,\n contactModalContent\n};","import { SystemInfoInterface } from '../../interfaces/index';\nimport { AnyAction } from 'redux';\n\nexport interface SystemsStateInterface {\n data: Array;\n}\n\nconst initialState: SystemsStateInterface = {\n data: [\n { categoryId: 1, title: \"Poljoprivreda\", logo: \"icon icon-Poljoprivreda\", subsystems: [] },\n { categoryId: 2, title: \"Ribarstvo\", logo: \"icon icon-Ribarstvo\", subsystems: [] },\n { categoryId: 3, title: \"\\u0160umarstvo\", logo: \"icon icon-Sumarstvo\", subsystems: [] },\n { categoryId: 4, title: \"Veterina\", logo: \"icon icon-Veterina\", subsystems: [] }\n ]\n}\n\n\n\nexport function systemsReducer(state: SystemsStateInterface = initialState, action: AnyAction): SystemsStateInterface {\n switch(action.type) {\n }\n return state;\n}\n","export const AuthConstant = {\n LOGIN: 'login',\n LOGOUT: 'logout',\n CHANGE_INTRO: 'change_intro',\n GET_SUBJECT: 'get_subject',\n ENABLE_POPUP: 'enable_popup',\n CHANGE_OIB: 'change_oib',\n REFRESH_TOKEN: 'refresh_token'\n}","import { Dispatch } from \"redux\";\nimport { AuthConstant } from \"./auth.constant\";\nimport { BlockUIConstant } from \"../base\";\nimport { SubjectService } from \"../../api\";\nimport { UserInterface } from \"../../interfaces\";\nimport keycloak from \"../../../keycloak\";\nimport queryString from \"query-string\";\n\nexport function actionLogout() {\n return (dispatch: Dispatch) => {\n dispatch({ type: AuthConstant.LOGOUT });\n };\n}\n\nexport function actionRevoke(user: UserInterface) {\n return (dispatch: Dispatch) => {\n dispatch({ type: BlockUIConstant.START });\n user.privola = false;\n SubjectService.patchSubjectByOIB(user.oib!, user).subscribe((response: any) => {\n keycloak.logout();\n dispatch({ type: AuthConstant.LOGOUT });\n dispatch({ type: BlockUIConstant.END });\n }, (error: any) => {\n dispatch({ type: BlockUIConstant.END });\n })\n };\n}\n\nexport function actionGetSubject(user: UserInterface) {\n return (dispatch: Dispatch, getState: any) => {\n setTimeout(() => {\n const { auth } = getState();\n const result = queryString.parse(window.location.search);\n const { ForLegalIzvor_reg = undefined, ForLegalIps = undefined, ToLegalIzvor_reg = undefined, ToLegalIps = undefined } = result;\n \n let identifier = '';\n if (ForLegalIps !== undefined && ForLegalIps !== '') {\n SubjectService.geteAuthorizationSubject(ForLegalIps as string, ForLegalIzvor_reg as string, ToLegalIps as string, ToLegalIzvor_reg as string, undefined).subscribe((response: any) => {\n dispatch({ type: AuthConstant.GET_SUBJECT, payload: response })\n }, (error: any) => {\n console.error(error);\n })\n }\n else {\n identifier = encodeURIComponent(auth?.user.oib);\n SubjectService.getSubjectByOIB(identifier, undefined).subscribe((response: any) => {\n dispatch({ type: AuthConstant.GET_SUBJECT, payload: response })\n }, (error: any) => {\n console.error(error);\n })\n }\n \n\n\n }, 100);\n };\n}\n\nexport function actionEnablePopUp() {\n return (dispatch: Dispatch) => {\n dispatch({ type: AuthConstant.ENABLE_POPUP });\n };\n}\n\nexport function actionChangeOib(oib: string) {\n return (dispatch: Dispatch) => {\n dispatch({ type: AuthConstant.CHANGE_OIB, payload: oib });\n };\n}\n\nexport function actionUpdateToken(accessToken: string, refreshToken: string) {\n return (dispatch: Dispatch, getState: any) => {\n dispatch({ type: AuthConstant.REFRESH_TOKEN, payload: {accessToken, refreshToken} });\n };\n}\n\n\n","import { AuthConstant } from \"./auth.constant\";\nimport { AnyAction } from \"redux\";\nimport { UserInterface } from \"../../interfaces\";\nimport { PURGE } from \"redux-persist\";\n\nexport interface AuthStateInterface {\n isAuthentificated: boolean;\n user?: UserInterface;\n token?: string;\n MessageId?: string;\n NavToken?: string;\n errorMessage?: string;\n refreshToken?: string;\n}\n\nconst initialState: AuthStateInterface = {\n isAuthentificated: false\n}\n\nexport const login = (state: AuthStateInterface, payload: any): AuthStateInterface => {\n return {\n ...state,\n isAuthentificated: true,\n user: payload.user,\n token: payload.token,\n refreshToken: payload.refreshToken,\n MessageId: payload.MessageId,\n NavToken: payload.NavToken\n }\n}\n\nexport const logout = (state: AuthStateInterface): AuthStateInterface => {\n return {\n ...state,\n isAuthentificated: false,\n user: undefined,\n token: undefined,\n refreshToken: undefined,\n MessageId: undefined,\n NavToken: undefined\n }\n}\n\n// TODO: Figure out getSubject for eidas users\nexport const getSubject = (state: AuthStateInterface, payload: any): AuthStateInterface => {\n return {\n ...state,\n user: payload,\n }\n}\n\nexport const enablePopUpState = (state: AuthStateInterface): AuthStateInterface => {\n return {\n ...state,\n user: {\n ...state.user!,\n isEmailPopUpDisabled: false\n },\n }\n}\n\nexport const changeOib = (state: AuthStateInterface, payload: any): AuthStateInterface => {\n return {\n ...state,\n user: {\n ...state.user!,\n oib: payload\n },\n };\n}\n\nexport const refreshToken = (state: AuthStateInterface, payload: { accessToken: string, refreshToken: string }): AuthStateInterface => {\n return {\n ...state,\n token: payload.accessToken,\n refreshToken: payload.refreshToken\n };\n}\n\nexport function authReducer(state: AuthStateInterface = initialState, action: AnyAction): AuthStateInterface {\n switch(action.type) {\n case AuthConstant.LOGIN: return login(state, action.payload);\n case AuthConstant.LOGOUT: return logout(state);\n case PURGE: return initialState;\n case AuthConstant.GET_SUBJECT: return getSubject(state, action.payload);\n case AuthConstant.ENABLE_POPUP: return enablePopUpState(state);\n case AuthConstant.CHANGE_OIB: return changeOib(state, action.payload);\n case AuthConstant.REFRESH_TOKEN: return refreshToken(state, action.payload);\n }\n return state;\n}\n","export const SubsystemsConstant = {\n GET_SUBSYSTEMS_START: \"get_subsystems_start\",\n GET_SUBSYSTEMS_SUCCESS: \"get_subsystems_success\",\n GET_SUBSYSTEMS_ERROR: \"get_subsystems_error\"\n}","import { Dispatch } from \"redux\";\nimport { SubsystemsConstant } from './subSystems.constant';\nimport { SubsystemService } from '../../api/api.service';\nimport { SubsystemInfoInterface } from \"../../interfaces\";\n\nexport function actionGetSubsystems(lang: string) {\n return (dispatch: Dispatch) => {\n dispatch({ type: SubsystemsConstant.GET_SUBSYSTEMS_START });\n SubsystemService.getSubsystems(lang).subscribe((response: Array) => {\n if (!!response) {\n let agronetUrl = response.find((system: SubsystemInfoInterface) => system?.naziv?.includes(\"Agronet\"))?.url;\n if (!!agronetUrl) {\n localStorage.setItem(\"agronetUrl\", agronetUrl);\n }\n }\n dispatch({ type: SubsystemsConstant.GET_SUBSYSTEMS_SUCCESS, payload: response })\n }, (error: any) => {\n if (!error.message.includes(\"Failed to\")) {\n dispatch({ type: SubsystemsConstant.GET_SUBSYSTEMS_ERROR, payload: error.message })\n }\n })\n };\n}\n","import { AnyAction } from 'redux';\nimport { SubsystemInfoInterface } from '../../interfaces';\nimport { SubsystemsConstant } from './subSystems.constant';\n\nexport interface SubystemsStateInterface {\n data?: Array;\n isLoading: boolean;\n error?: string;\n}\n\nconst initialState: SubystemsStateInterface = {\n isLoading: false\n}\n\n\nexport const getSubsystemsInfoStart = (state: SubystemsStateInterface): SubystemsStateInterface => {\n return {\n isLoading: true\n }\n}\n\nexport const getSubsystemsInfoSuccess = (state: SubystemsStateInterface, payload: Array): SubystemsStateInterface => {\n return {\n isLoading: false,\n data: payload\n }\n}\n\nexport const getSubsystemsInfoError = (state: SubystemsStateInterface, payload: string): SubystemsStateInterface => {\n return {\n isLoading: false,\n data: undefined,\n error: payload\n }\n}\n\nexport function subsystemsReducer(state: SubystemsStateInterface = initialState, action: AnyAction): SubystemsStateInterface {\n switch (action.type) {\n case SubsystemsConstant.GET_SUBSYSTEMS_START: return getSubsystemsInfoStart(state);\n case SubsystemsConstant.GET_SUBSYSTEMS_SUCCESS: return getSubsystemsInfoSuccess(state, action.payload);\n case SubsystemsConstant.GET_SUBSYSTEMS_ERROR: return getSubsystemsInfoError(state, action.payload);\n }\n return state;\n}\n","import { AnyAction } from \"redux\";\nimport { EBusinessConstant } from \"./e-business.constant\";\n\nexport interface AuthFormData {\n id?: string;\n grantUrl?: string;\n cancelUrl?: string;\n authorizer?: {\n legalEntity: {\n name: string;\n subjectIdentificationNumber: string;\n },\n physicalEntity: {\n firstName: string;\n lastName: string;\n personalIdentificationNumber: string;\n },\n },\n assignee?: {\n legalEntity: {\n name: string;\n subjectIdentificationNumber: string;\n },\n physicalEntity: {\n firstName: string;\n lastName: string;\n personalIdentificationNumber: string;\n },\n },\n powerOfAttorneyFor?: {\n legalEntity: {\n name: string;\n subjectIdentificationNumber: string;\n },\n },\n isLoading: boolean;\n permissions: Array<{\n podsustav: string;\n dozvole: Array<{\n title: string;\n description: string;\n key: string;\n value?: boolean;\n }>;\n }>;\n roles: Array<{\n key: string;\n value: string;\n description: string;\n valueDescription: string;\n roleType: string;\n\n }>;\n serviceResponse: string;\n submitUrl: string;\n}\n\nconst initialState: AuthFormData = {\n isLoading: false,\n id: \"_ff8cf8dabfb04faa9c61f1162eb96330\",\n grantUrl: `${process.env.REACT_APP_EOVLASTENJA}/webapi/api/AuthorizationsApi/ReceiveAuthorizeResponse/3`,\n cancelUrl: `${process.env.REACT_APP_EOVLASTENJA}/webapi/api/HomeApi/CancelAuthorizeResponse`,\n authorizer: {\n legalEntity: {\n name: \"ADRIATIQUE GROUP D.O.O. ZA POSLOVANJE NEKRETNINAMA\",\n subjectIdentificationNumber: \"39986540678\",\n },\n physicalEntity: {\n firstName: \"PERO\",\n lastName: \"PERIĆ\",\n personalIdentificationNumber: \"12312312316\"\n },\n },\n assignee: {\n legalEntity: {\n name: \"ADRIATIQUE GROUP D.O.O. ZA POSLOVANJE NEKRETNINAMA\",\n subjectIdentificationNumber: \"39986540678\"\n },\n physicalEntity: {\n firstName: \"PERO\",\n lastName: \"PERIC\",\n personalIdentificationNumber: \"12312312316\",\n },\n },\n powerOfAttorneyFor: {\n legalEntity: {\n name: \"ADRIATIQUE GROUP D.O.O. ZA POSLOVANJE NEKRETNINAMA\",\n subjectIdentificationNumber: \"\",\n },\n },\n roles: [],\n serviceResponse: '',\n submitUrl: '',\n permissions: [],\n}\n\nexport const getAuthFormData = (state: AuthFormData, payload: AuthFormData): AuthFormData => {\n return {\n ...state,\n ...payload,\n }\n}\n\nexport const getPermissions = (state: AuthFormData, payload: any): AuthFormData => {\n return {\n ...state,\n permissions: [...payload],\n }\n}\n\nexport const grantAccess = (state: AuthFormData, payload: any): AuthFormData => {\n return {\n ...state,\n ...payload\n }\n}\n\nexport function eBusinessReducer(state: AuthFormData = initialState, action: AnyAction): AuthFormData {\n switch (action.type) {\n case EBusinessConstant.AUTH_FORM: return getAuthFormData(state, action.payload);\n case EBusinessConstant.PERMISSIONS: return getPermissions(state, action.payload);\n case EBusinessConstant.GRANT_ACCESS: return grantAccess(state, action.payload);\n }\n return state;\n}","import { combineReducers } from \"redux\";\nimport { authReducer } from \"./auth\";\nimport { BaseReducers } from \"./base\";\nimport { systemsReducer } from \"./systems\";\nimport { subsystemsReducer } from \"./subSystems\";\nimport { eBusinessReducer } from \"./e-business/e-business.reducer\";\n\n\nexport const AppReducers = combineReducers({\n auth: authReducer,\n base: BaseReducers,\n systems: systemsReducer,\n subsystems: subsystemsReducer,\n eBusiness: eBusinessReducer\n});\n\nexport type StoreStateInterface = ReturnType;","module.exports = __webpack_public_path__ + \"static/media/logo-en.66d5d658.svg\";","module.exports = __webpack_public_path__ + \"static/media/logo-hr-dark.d5bc48bb.svg\";","import Keycloak from 'keycloak-js';\n \n// Setup Keycloak instance as needed\n// Pass initialization options as required or leave blank to load from 'keycloak.json'\n\nexport const KeyCloakRoute = process.env.REACT_APP_KC_URL;\n\n//@ts-ignore\nconst keycloak: Keycloak.KeycloakInstance = new Keycloak(\n {\n \"url\": KeyCloakRoute,\n \"realm\": process.env.REACT_APP_KC_REALM!,\n \"clientId\": process.env.REACT_APP_KC_REALM!\n }\n)\n\n\n\nexport default keycloak","module.exports = __webpack_public_path__ + \"static/media/logo-en-dark.1bb79f62.svg\";","module.exports = __webpack_public_path__ + \"static/media/mp-logo.35aaddf8.svg\";","module.exports = __webpack_public_path__ + \"static/media/mp-logo-en.f4c653ec.svg\";","module.exports = __webpack_public_path__ + \"static/media/mp-logo-dark.f89d188c.svg\";","module.exports = __webpack_public_path__ + \"static/media/mp-logo-en-dark.b98c7704.svg\";","import { I18n } from 'i18n-js';\n\nimport en from '../i18n/en.json';\nimport hr from '../i18n/hr.json';\n\nconst i18nInit = new I18n({\n ...en,\n ...hr,\n});\n\nconst lang = localStorage.getItem('lang') !== null ? localStorage.getItem('lang')! : \"hr\";\n\n\ni18nInit.defaultLocale = lang;\ni18nInit.locale = lang;\ni18nInit.enableFallback = true;\ni18nInit.translations = { en, hr };\n\n\nexport const i18n = i18nInit;\n\nexport const setLang = (l: string | null) => {\n if (l === null) return;\n i18n.locale = l;\n localStorage.setItem('lang', l);\n document.dispatchEvent(new Event(\"refreshLang\"))\n};\n\nexport default i18n;","export const AppRoutes = {\n Dashboard: {\n Index: '/aplikacije',\n Subsystem: '/aplikacije/:id',\n Profile: '/aplikacije/moj-profil',\n Login: '/login',\n Logout: '/logout',\n EObrasci: '/aplikacije/eObrasci',\n LogoutRedirect: '/logout-redirect'\n }, \n Landing: {\n Index: '',\n HowToApply: '/kako-se-prijaviti',\n LoginRedirect: '/login-redirect'\n },\n EBusiness: {\n ApplyRoles: '/apply-roles',\n },\n NotFound: \"/404\"\n}\n\nexport const generateRouteWithParams = (appRoute: string, params: any): string => {\n for (let [key, value] of Object.entries(params)) {\n //@ts-ignore\n appRoute = appRoute.replace(`:${key}`, value);\n }\n return appRoute;\n}","export const QueryParamsConstant = {\n Token: \"tkn\",\n CallbackUrl: \"cbu\",\n SsoLoginUrl: \"sliu\",\n SsoLogoutUrl: \"slou\",\n RedirectUrl: \"rdu\"\n}","export const LinksConstant = {\n ministarstvo: \"https://poljoprivreda.gov.hr/\",\n egradani: \"https://gov.hr/\",\n osustavu: \"/\",\n kontakt: \"/\",\n eu: \"https://europa.eu/next-generation-eu/index_en\",\n}\n\nexport const DBConstants = {\n PlaviDizelId: [10, 11, 20, 26]\n}","export * from './interfaces/index';\nexport * from './redux/index';\nexport * from './services/index';\nexport * from './api/index';\nexport * from './constants';\nexport * from './components';","import { Observable, from } from \"rxjs\";\nimport { store, persistor } from \"../redux/store\";\nimport { ErrorConstant } from '../redux/index';\n/**\n * GET request factory\n *\n * @param {string} path Resource path\n * @param {object} params Request query params\n */\nfunction GET(path: string, params?: HttpParamsTypes, token?: string): Observable {\n const requestOptions = {\n method: \"GET\",\n headers: httpHeader(token)\n };\n\n // let url = [process.env.REACT_APP_API_URL, path].join(\"/\");\n let url = path;\n url = getUrlWithParams(url, params);\n\n return from(\n fetch(url, requestOptions)\n .then(parseResponse)\n .catch(handleNetworkError)\n );\n}\n\n/**\n * POST request factory\n *\n * @param {string} path Resource path\n * @param {object} body Request payload\n * @param {object} params Request query params\n */\nfunction POST(\n path: string,\n body: any,\n params?: HttpParamsTypes,\n token?: string\n): Observable {\n const requestOptions = {\n method: \"POST\",\n headers: {\n ...httpHeader(token),\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(body)\n };\n\n //let url = [process.env.REACT_APP_API_URL, path].join(\"/\");\n let url = path;\n url = getUrlWithParams(url, params);\n\n return from(\n fetch(url, requestOptions)\n .then(parseResponse)\n .catch(handleNetworkError)\n );\n}\n\n/**\n * POST request factory\n *\n * @param {string} path Resource path\n * @param {object} body Request payload\n * @param {object} params Request query params\n */\nfunction POST_URLENCODED(\n path: string,\n body: any,\n params?: HttpParamsTypes,\n token?: string\n): Observable {\n const formBody = Object.keys(body).map(key => encodeURIComponent(key) + '=' + encodeURIComponent(body[key])).join('&');\n\n const requestOptions = {\n method: \"POST\",\n headers: {\n ...httpHeader(token),\n \"Content-Type\": \"application/x-www-form-urlencoded\"\n },\n body: formBody\n };\n\n //let url = [process.env.REACT_APP_API_URL, path].join(\"/\");\n let url = path;\n url = getUrlWithParams(url, params);\n\n return from(\n fetch(url, requestOptions)\n .then(parseResponse)\n .catch(handleNetworkError)\n );\n}\n\n/**\n * PUT request factory\n *\n * @param {string} path Resource path\n * @param {object} body Request payload\n * @param {object} params Request query params\n */\nfunction PUT(\n path: string,\n body: any,\n params?: HttpParamsTypes\n): Observable {\n const requestOptions = {\n method: \"PUT\",\n headers: {\n ...httpHeader(),\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(body)\n };\n\n //let url = [process.env.REACT_APP_API_URL, path].join(\"/\");\n let url = path;\n url = getUrlWithParams(url, params);\n\n return from(\n fetch(url, requestOptions)\n .then(parseResponse)\n .catch(handleNetworkError)\n );\n}\n\nfunction PATCH(\n path: string,\n body: any,\n params?: HttpParamsTypes,\n token?: string\n): Observable {\n const requestOptions = {\n method: \"PATCH\",\n headers: {\n ...httpHeader(token),\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(body)\n };\n\n //let url = [process.env.REACT_APP_API_URL, path].join(\"/\");\n let url = path;\n url = getUrlWithParams(url, params);\n\n return from(\n fetch(url, requestOptions)\n .then(parseResponse)\n .catch(handleNetworkError)\n );\n}\n\n/**\n * DELETE request factory\n *\n * @param {string} path Resource path\n * @param {object} params Request query params\n */\nfunction DELETE(path: string, params?: HttpParamsTypes): Observable {\n const requestOptions = {\n method: \"DELETE\",\n headers: {\n ...httpHeader(),\n \"Content-Type\": \"application/json\"\n }\n };\n\n //let url = [process.env.REACT_APP_API_URL, path].join(\"/\");\n let url = path;\n url = getUrlWithParams(url, params);\n\n return from(\n fetch(url, requestOptions)\n .then(parseResponse)\n .catch(handleNetworkError)\n );\n}\n\n// ====== PRIVATE UTILS ======\n\nfunction getUrlWithParams(url: string, params?: HttpParamsTypes) {\n if (params === null) return url;\n\n let p: string = \"\";\n if (params) {\n p = \"?\";\n let keys = Object.keys(params);\n for (let i in keys) {\n if (p !== \"?\") p += \"&\";\n p +=\n encodeURIComponent(keys[i]) + \"=\" + encodeURIComponent(params[keys[i]]);\n }\n }\n\n return [url, p].join(\"\");\n}\n\n/**\n * Requests header generator\n */\nexport function httpHeader(token?: string) {\n let header: any = {};\n var APP_TOKEN = token;\n\n let currentState: any = store.getState();\n if (\n currentState !== undefined &&\n currentState.auth !== undefined &&\n currentState.auth.token !== undefined\n ) {\n APP_TOKEN = currentState.auth.token;\n }\n\n if (APP_TOKEN) header[\"Authorization\"] = \"Bearer \" + APP_TOKEN;\n\n return header;\n}\n\nfunction parseResponse(response: any) {\n\n /* if (response.headers.has(\"newToken\")) {\n let newToken = response.headers.get(\"Authorization\");\n store.dispatch({ type: AuthConstants.RENEW_USER_TOKEN, payload: newToken });\n } */\n\n return response.text().then((text: any) => {\n let data;\n\n try {\n data = text && JSON.parse(text);\n } catch (e) {\n data = null;\n }\n\n if (!response.ok) {\n if (response.status === 401) {\n store.dispatch({\n type: ErrorConstant.ERROR, payload:\n {\n message: \"Trenutno niste prijavljeni u sustav\",\n action: () => { }\n }\n }\n )\n persistor.purge();\n return;\n }\n }\n\n if (!response.ok) {\n if (!response.ok) {\n if (response.status < 500 && response.status > 399) {\n throw new ClientError(response.status);\n } else {\n throw new ServerError(response.status);\n }\n }\n }\n\n return data;\n });\n}\n\n// ====== INTERFACES ======\n\nexport type HttpParamsTypes = { [index: string]: string };\n\nexport function handleNetworkError(error: any) {\n if (error.name !== ErrorType.clientError && error.name !== ErrorType.serverError) {\n persistor.purge();\n throw new NetworkError(\"\");\n }\n throw error;\n}\n\n\nexport const ErrorType = {\n clientError: \"ClientError\",\n serverError: \"ServerError\",\n networkError: \"NetworkError\"\n}\n\nclass ClientError extends Error {\n constructor(message: string) {\n super(message);\n this.name = ErrorType.clientError;\n }\n}\n\nclass ServerError extends Error {\n constructor(message: string) {\n super(message);\n this.name = ErrorType.serverError;\n }\n}\n\nclass NetworkError extends Error {\n constructor(message: string) {\n super(message);\n this.name = ErrorType.networkError;\n }\n}\n\n\n\nexport default {\n GET, POST, PUT, DELETE, PATCH, POST_URLENCODED\n};\n","import { KeyCloakRoute } from \"../../keycloak\";\n\nexport const ApiRoutes = {\n GetApplicationsByCategoryId: (categoryId: number) => `/api/Home/category/${categoryId}`,\n GetApplications: `/api/Home/category`,\n GetUserByOIB: (oib: string) => `/api/Home/subject/${oib}`,\n GeteAuthorizationUserByOIB: (ForLegalIps: string, ForLegalIzvor_reg: string, ToLegalIps: string, ToLegalIzvor_reg: string) => `/api/Home/subject/${ForLegalIps}/${ToLegalIps}/${ForLegalIzvor_reg}/${ToLegalIzvor_reg}`,\n PatchUserByOIB: (oib: string) => `/api/Home/subject/${oib}`,\n CreateUserByOIB: (oib: string) => `/api/Home/subject/${oib}`,\n SessionInspector: `${KeyCloakRoute}/realms/RPS/session-inspector`,\n Document: (subsystemId: number) => `/api/home/registrationDoc/${subsystemId}`,\n SendEmailVerification: `/api/home/sendemailverification`,\n VerifyEmail: `/api/home/verifyemail`,\n DeleteEmail: (oib: string, ForLegalIzvor_reg?: string) => ForLegalIzvor_reg ? `/api/home/deleteemail/${oib}/${ForLegalIzvor_reg}` : `/api/home/deleteemail/${oib}`,\n DisableEmailPopUp: (oib: string, ForLegalIzvor_reg?: string) => ForLegalIzvor_reg ? `/api/home/disableemailpopup/${oib}/${ForLegalIzvor_reg}` : `/api/home/disableemailpopup/${oib}`,\n GetAuthorizationFormData: (requestId: string) => `/eauthorization/api/v1/form-data?requestId=${requestId}`,\n GetPermissions: (oib: string) => `/api/home/permissions/${oib}`,\n GrantAccess: `eauthorization/api/v1/grant`\n}","export * from './base/guard.interface';\nexport * from './base/errorPayload.interface';\nexport * from './user/user.interface';\nexport * from './systemInfo/systemInfo.interface';\nexport * from './subsystemInfo/subsystemInfo.interface';","export * from './store';\nexport * from './auth/index';\nexport * from './base/index';\nexport * from './index.reducer';\nexport * from './systems';\nexport * from './subSystems';","module.exports = __webpack_public_path__ + \"static/media/european-union-logo.624e0656.svg\";","module.exports = __webpack_public_path__ + \"static/media/european-union-logo-en.e502e077.svg\";","module.exports = __webpack_public_path__ + \"static/media/european-union-logo-dark.4c992513.png\";","module.exports = __webpack_public_path__ + \"static/media/european-union-logo-en-dark.f8bd06b4.png\";","module.exports = __webpack_public_path__ + \"static/media/login.9d872ab0.jpg\";","module.exports = __webpack_public_path__ + \"static/media/e_gradani_logo.9abd9e8c.png\";","module.exports = __webpack_public_path__ + \"static/media/e_gradani_logo-en.4d90e66c.png\";","module.exports = __webpack_public_path__ + \"static/media/e_gradani_logo-dark.d0f8bdd0.png\";","module.exports = __webpack_public_path__ + \"static/media/e_gradani_logo-en-dark.6fc605e0.png\";","module.exports = __webpack_public_path__ + \"static/media/image1.f1135447.png\";","module.exports = __webpack_public_path__ + \"static/media/image2.1f9b8201.png\";","module.exports = __webpack_public_path__ + \"static/media/image3.1f76b42a.png\";","import React from \"react\";\nimport { StoreStateInterface, NavigationService, AppRoutes, AuthStateInterface, LinksConstant, actionBlockUI, ModalsService, actionUnblockUI } from \"../../../../common\";\nimport { connect } from \"react-redux\";\nimport './landing.styles.scss';\nimport LoginImage from '../../../../assets/images/login.jpg';\nimport Logo from '../../../../assets/images/logo.svg';\nimport LogoEn from '../../../../assets/images/logo-en.svg';\nimport LogoDark from '../../../../assets/images/logo-hr-dark.svg';\nimport LogoEnDark from '../../../../assets/images/logo-en-dark.svg';\nimport MpsImage from '../../../../assets/images/mp-logo.svg';\nimport MpsEnImage from '../../../../assets/images/mp-logo-en.svg';\nimport MpsImageDark from '../../../../assets/images/mp-logo-dark.svg';\nimport MpsEnImageDark from '../../../../assets/images/mp-logo-en-dark.svg';\nimport { Button } from \"../../../../common/components\";\nimport { withKeycloak } from '@react-keycloak/web'\nimport { Dialog, IconButton } from \"@material-ui/core\";\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport MuiDialogContent from '@material-ui/core/DialogContent';\nimport CloseIcon from '@material-ui/icons/Close';\nimport { KeycloakInstance } from \"keycloak-js\";\nimport keycloak from \"../../../../keycloak\";\nimport EGradaniLogo from '../../../../assets/images/e_gradani_logo.png';\nimport EGradaniLogoEn from '../../../../assets/images/e_gradani_logo-en.png';\nimport EGradaniLogoDark from '../../../../assets/images/e_gradani_logo-dark.png';\nimport EGradaniLogoEnDark from '../../../../assets/images/e_gradani_logo-en-dark.png';\nimport { appendLandingEcitizensHeader } from \"../../navigation/landing.routing.component\";\nimport i18n, { setLang } from \"../../../../common/services/translate.service\";\n\nconst lngs = {\n 'en': { nativeName: 'EN' },\n 'hr': { nativeName: 'HR' }\n} as LngsType;\n\ntype LngsType = {\n [key: string]: { [key: string]: string }\n}\n\ntype PropsType = {\n actionBlockUI: () => void;\n auth: AuthStateInterface;\n keycloakInitialized: boolean;\n keycloak: KeycloakInstance;\n};\n\ninterface State {\n aboutSystem: boolean;\n contact: boolean;\n isDarkMode: boolean;\n}\n\nclass LandingComponent extends React.Component {\n\n private interval: any;\n\n constructor(props: PropsType) {\n super(props);\n this.state = {\n aboutSystem: false,\n contact: false,\n isDarkMode: false\n }\n }\n\n componentDidMount() {\n this.interval = setInterval(() => {\n //@ts-ignore\n if (this.getCookie(\"cookieImpaired\") === \"da\") {\n this.setState({ isDarkMode: true });\n }\n else {\n this.setState({ isDarkMode: false });\n }\n }\n , 1000)\n actionUnblockUI();\n }\n\n private aboutSystemModal(): React.ReactNode {\n return (\n this.setState({ aboutSystem: false })} aria-labelledby=\"customized-dialog-title\" open={this.state.aboutSystem}>\n \n {i18n.t(\"frontPage.modal.title\")}\n this.setState({ aboutSystem: false })}>\n \n \n \n {ModalsService.aboutSystemModalContent()}\n \n )\n }\n\n private contactModal(): React.ReactNode {\n return (\n this.setState({ contact: false })} aria-labelledby=\"customized-dialog-title\" open={this.state.contact}>\n \n Ministarstvo poljoprivrede, šumarstva i ribarstva\n this.setState({ contact: false })}>\n \n \n \n \n {ModalsService.contactModalContent()}\n \n \n )\n }\n\n private getCookie(cname: string): string {\n var name = cname + \"=\";\n var decodedCookie = decodeURIComponent(document.cookie);\n var ca = decodedCookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) === ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) === 0) {\n return c.substring(name.length, c.length);\n }\n }\n return \"\";\n }\n\n getLogoSrc = () => {\n const lang = window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\";\n const isDarkMode = this.state.isDarkMode;\n\n if (lang === \"hr\" && isDarkMode) {\n return LogoDark;\n } else if (lang === \"hr\" && !isDarkMode) {\n return Logo;\n } else if (lang !== \"hr\" && isDarkMode) {\n return LogoEnDark;\n } else {\n return LogoEn;\n }\n\n };\n\n\n GetMpsLogoSrc = () => {\n const lang = window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\";\n const isDarkMode = this.state.isDarkMode;\n\n if (lang === \"hr\" && isDarkMode) {\n return MpsImageDark;\n } else if (lang === \"hr\" && !isDarkMode) {\n return MpsImage;\n } else if (lang !== \"hr\" && isDarkMode) {\n return MpsEnImageDark;\n } else {\n return MpsEnImage;\n }\n };\n\n GetNIASLogoSrc = () => {\n const lang = window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\";\n const isDarkMode = this.state.isDarkMode;\n\n if (lang === \"hr\" && isDarkMode) {\n return EGradaniLogoDark;\n } else if (lang === \"hr\" && !isDarkMode) {\n return EGradaniLogo;\n } else if (lang !== \"hr\" && isDarkMode) {\n return EGradaniLogoEnDark;\n } else {\n return EGradaniLogoEn;\n }\n }; \n\n render() {\n return (\n
\n
\n
\n
\n
\n
\n
\n {/* eslint-disable-next-line*/}\n \n
\n \n \n
\n
\n {Object.keys(lngs).map((lng, index) => {\n const isActive = (window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\") : \"hr\") === lng;\n return (\n {\n setLang(lng);\n /*appendLandingEcitizensHeader(lng);*/\n window.location.reload();\n }}\n className={`appHeader__translation-button ${isActive ? 'active' : ''}`}\n aria-label={lng === 'hr' ? \"Promjeni jezik na hrvatski\" : \"Switch language to english\"}\n >\n {lngs[lng].nativeName}\n \n );\n })}\n
\n
\n
\n
{i18n.t(\"frontPage.title\")}
\n
{i18n.t(\"frontPage.subtitle\")}
\n
\n \n \n
\n
\n
\n \n \"MPS\n \n \n \"E-Gradani\n \n
\n
\n {this.aboutSystemModal()}\n {this.contactModal()}\n
\n );\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n auth: state.auth\n }\n}\n\nconst actions = {\n actionBlockUI,\n actionUnblockUI\n};\n\nconst redux = connect(\n mapStateToProps,\n actions\n)(LandingComponent);\n\nexport default withKeycloak(redux)","import React from \"react\";\nimport { connect } from \"react-redux\";\nimport './howToApply.styles.scss';\nimport { StoreStateInterface, NavigationService, AppRoutes } from \"../../../../common\";\nimport { AiOutlineClose } from 'react-icons/ai';\nimport Stepper from '@material-ui/core/Stepper';\nimport Step from '@material-ui/core/Step';\nimport StepButton from '@material-ui/core/StepButton';\nimport Image1 from '../../../../assets/images/image1.png';\nimport Image2 from '../../../../assets/images/image2.png';\nimport Image3 from '../../../../assets/images/image3.png';\nimport { withKeycloak } from '@react-keycloak/web'\nimport { KeycloakInstance } from \"keycloak-js\";\nimport i18n from \"../../../../common/services/translate.service\";\r\n\ntype PropsType = {\n keycloakInitialized: boolean;\n keycloak: KeycloakInstance;\n};\n\ninterface State {\n step: number;\n}\n\nclass HowToApplyComponent extends React.Component {\n constructor(props: PropsType) {\n super(props);\n\n this.state = {\n step: 0\n }\n\n this.createRightSide = this.createRightSide.bind(this);\n }\n\n private createRightSide(): React.ReactNode {\n var rows = [];\n for (var i = 0; i < 2; i++) {\n rows.push(\n \n {i === this.state.step &&\n
\n
\n {i === 0 && i18n.t('howToLoginPage.eCitizenDigitalPortal.title')}\n {i === 1 && i18n.t('howToLoginPage.loginToNIAS.title')}\n
\n
\n
\n

{i18n.t('howToLoginPage.eCitizenDigitalPortal.paragraph1')}

\n

{i18n.t('howToLoginPage.eCitizenDigitalPortal.paragraph2')}

\n

{i18n.t('howToLoginPage.eCitizenDigitalPortal.paragraph3')}

\n \"image1\"\n
\n
\n

{i18n.t('howToLoginPage.loginToNIAS.paragraph1')}

\n \"image2\"\n

{i18n.t('howToLoginPage.loginToNIAS.paragraph2')}

\n \"image3\"\n
\n
\n
\n }\n
);\n }\n return
{rows}
;\n }\n\n render() {\n return (\n
\n
NavigationService.navigate(AppRoutes.Landing.Index)}>\n \n
\n
\n
\n
{i18n.t(\"howToLoginPage.title\")}
\n
\n
\n
\n \n \n this.setState({ step: 0 })}>\n {i18n.t('howToLoginPage.eCitizenDigitalPortal.title')}\n \n \n \n this.setState({ step: 1 })}>\n {i18n.t(\"howToLoginPage.loginToNIAS.title\")}\n \n \n \n
\n {this.createRightSide()}\n
\n
\n
\n );\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n }\n}\n\nconst actions = {\n};\n\nconst redux = connect(\n mapStateToProps,\n actions\n)(HowToApplyComponent);\n\nexport default withKeycloak(redux)","import React from \"react\";\nimport { withKeycloak } from '@react-keycloak/web';\nimport { AppRoutes, NavigationService, store } from \"../../../../common\";\nimport { KeycloakInstance } from \"keycloak-js\";\n\ntype PropsType = {\n keycloakInitialized: boolean;\n keycloak: KeycloakInstance;\n}\n\n\nexport class LoginRedirectComponent extends React.Component {\n\n componentDidMount() {\n setTimeout(() => {\n if (!store.getState().auth.isAuthentificated) {\n this.props.keycloak.login({\n idpHint: 'saml-nias'\n });\n } else {\n NavigationService.navigate(AppRoutes.Dashboard.Index);\n }\n }, 2000)\n }\n\n render() {\n return (\n
\n Preusmjeravanje...\n
\n );\n }\n}\n\nexport default withKeycloak(LoginRedirectComponent)\n\n","import { Dialog, DialogContentText, Grid } from \"@material-ui/core\";\nimport CloseIcon from '@material-ui/icons/Close';\nimport { withKeycloak } from '@react-keycloak/web';\nimport parse from 'html-react-parser';\nimport { KeycloakInstance } from \"keycloak-js\";\nimport React from \"react\";\nimport ReactGA from 'react-ga4';\nimport { connect } from \"react-redux\";\nimport { withRouter } from 'react-router';\nimport { RouteComponentProps } from \"react-router-dom\";\nimport { AuthStateInterface, Button, DBConstants, Loading, StoreStateInterface, SubsystemInfoInterface, SubystemsStateInterface, UserInterface, actionGetSubject, actionGetSubsystems } from \"../../../../common\";\nimport i18n from \"../../../../common/services/translate.service\";\nimport './applications.styles.scss';\nimport { EmailSubscription } from \"./email-subscription.component\";\n\ntype PropsType = RouteComponentProps & {\n actionGetSubsystems: (lang: string) => void;\n actionGetSubject: (user: UserInterface) => void;\n subsystems: SubystemsStateInterface;\n auth: AuthStateInterface;\n keycloakInitialized: boolean;\n keycloak: KeycloakInstance;\n};\n\nexport enum AppViewEnum {\n card,\n list\n}\n\ninterface State {\n myApplicationsDisplay: AppViewEnum;\n allApplicationsDisplay: AppViewEnum;\n isAboutOpen: boolean;\n aboutSystemText: string;\n registrationInfoText: string;\n contactInfoText: string;\n isDarkMode: boolean;\n}\n\nclass ApplicationsComponent extends React.Component {\n unlisten: any;\n private interval: any;\n\n constructor(props: PropsType) {\n super(props);\n let localStorageValue = localStorage.getItem(\"myApplicationsDisplay\");\n if (localStorageValue === null) localStorageValue = \"0\";\n let myApplicationsDisplay = parseInt(localStorageValue);\n if (Number.isNaN(myApplicationsDisplay) || myApplicationsDisplay > 1) {\n myApplicationsDisplay = 0\n }\n\n let localStorageValue2 = localStorage.getItem(\"allApplicationsDisplay\");\n if (localStorageValue2 === null) localStorageValue2 = \"0\";\n let myApplicationsDisplay2 = parseInt(localStorageValue2);\n if (Number.isNaN(myApplicationsDisplay2) || myApplicationsDisplay2 > 1) {\n myApplicationsDisplay2 = 0\n }\n\n this.state = {\n myApplicationsDisplay: myApplicationsDisplay,\n allApplicationsDisplay: myApplicationsDisplay2,\n isAboutOpen: false,\n aboutSystemText: '',\n registrationInfoText: '',\n contactInfoText: '',\n isDarkMode: false\n }\n }\n\n private getCookie(cname: string): string {\n var name = cname + \"=\";\n var decodedCookie = decodeURIComponent(document.cookie);\n var ca = decodedCookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) === ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) === 0) {\n return c.substring(name.length, c.length);\n }\n }\n return \"\";\n }\n\n componentDidMount() {\n this.props.actionGetSubsystems(window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\");\n this.interval = setInterval(() => {\n //@ts-ignore\n if (this.getCookie(\"cookieImpaired\") === \"da\") {\r\n this.setState({ isDarkMode: true });\n }\n else {\n this.setState({ isDarkMode: false });\r\n }\n }\n , 1000)\n\n \n this.props.actionGetSubject(this.props.auth.user!);\n }\n\n stringToHTML(htmlString: string) {\n return parse(htmlString);\n }\n\n private aboutSystemModal(): React.ReactNode {\n return (\n this.setState({ isAboutOpen: false })} aria-labelledby=\"customized-dialog-title\" open={this.state.isAboutOpen}>\n
this.setState({ isAboutOpen: false })}>\n \n
\n \n

{i18n.t('applicationsPage.modal.aboutTheSubsystem')}

\n {this.stringToHTML(this.state.aboutSystemText)}\n

{i18n.t('applicationsPage.modal.howToRegister')}

\n {this.stringToHTML(this.state.registrationInfoText)}\n

{i18n.t('applicationsPage.modal.contact')}

\n {this.stringToHTML(this.state.contactInfoText)}\n
\n
\n )\n }\n\n private renderCardsAvailable(): React.ReactNode {\n\n return (\n \n {this.props.subsystems.data?.filter((data: SubsystemInfoInterface) => data.aktivan).filter((data: SubsystemInfoInterface) => {\n let find = this.props.auth.user?.pravaPristupa?.find((pravo: any) => pravo.podsustavId === data.id && pravo.aktivan === true);\n return find !== undefined && !DBConstants.PlaviDizelId.includes(data.id);\n }\n ).map((subsystem: SubsystemInfoInterface, index: number) => {\n return (\n \n
\n
\n
\n {subsystem.naziv}\n
\n
\n {subsystem.naziv}\n
\n
\n
\n \n \n
\n
\n
\n )\n }\n )}\n
\n )\n }\n\n private renderCardsRest(): React.ReactNode {\n return (\n \n {this.props.subsystems.data?.filter((data: SubsystemInfoInterface) => data.aktivan).filter((data: SubsystemInfoInterface) => {\n let find = this.props.auth.user?.pravaPristupa?.find((pravo: any) => pravo.podsustavId === data.id && pravo.aktivan === true);\n return find === undefined && !DBConstants.PlaviDizelId.includes(data.id);\n }).map((subsystem: SubsystemInfoInterface, index: number) => {\n return (\n \n
\n
\n
\n {subsystem.naziv}\n
\n
\n {subsystem.naziv}\n
\n
\n
\n {subsystem.registracijaUrl ? (\n ) :
\n }\n \n
\n
\n
\n )\n }\n )}\n
\n )\n }\n\n getParameterByName(name: string, url = window.location.href) {\n /* eslint-disable-next-line*/\n name = name.replace(/[\\[\\]]/g, '\\\\$&');\n var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),\n results = regex.exec(url);\n if (!results) return null;\n if (!results[2]) return '';\n return decodeURIComponent(results[2].replace(/\\+/g, ' '));\n }\n\n render() {\n return (\n
\n \n {this.aboutSystemModal()}\n {(this.props.subsystems.data !== undefined && this.props.subsystems.data?.filter((data: SubsystemInfoInterface) => data.aktivan).filter((data: SubsystemInfoInterface) => {\n let find = this.props.auth.user?.pravaPristupa?.find((pravo: any) => pravo.podsustavId === data.id && pravo.aktivan === true);\n return find !== undefined && !DBConstants.PlaviDizelId.includes(data.id);\n }\n ).length > 0) &&\n < section className=\"applications\">\n
\n
{i18n.t('applicationsPage.registeredInformationSystems')}
\n
\n \n {this.state.myApplicationsDisplay === AppViewEnum.card && this.renderCardsAvailable()}\n \n \n }\n {(this.getParameterByName(\"categoryId\") === \"1\" || this.getParameterByName(\"categoryId\") === null || this.getParameterByName(\"categoryId\") === \"2\") &&\n
\n
\n
{i18n.t('applicationsPage.otherInformationSystems')}
\n \n \n {this.props.subsystems.data?.filter((data: SubsystemInfoInterface) => data.aktivan).filter((data: SubsystemInfoInterface) => {\n return DBConstants.PlaviDizelId.includes(data.id);\n }).map((subsystem: SubsystemInfoInterface, index: number) => {\n return (\n \n
\n
\n
\n {subsystem.naziv}\n
\n
\n {subsystem.naziv}\n
\n
\n \n
\n \n \n
\n
\n
\n )\n }\n )}\n
\n
\n
\n
\n }\n
\n
\n \n
\n {(this.props.subsystems.data && this.props.subsystems.data.length > 0) &&\n <>\n {this.props.subsystems.data?.filter((data: SubsystemInfoInterface) => data.aktivan).filter((data: SubsystemInfoInterface) => {\n let find = this.props.auth.user?.pravaPristupa?.find((pravo: any) => pravo.podsustavId === data.id && pravo.aktivan === true);\n return find === undefined && !DBConstants.PlaviDizelId.includes(data.id);\n }).length === 0 &&\n
Trenutno ste registrirani u sve informacijske sustave
\n }\n {this.props.subsystems.data?.filter((data: SubsystemInfoInterface) => data.aktivan).filter((data: SubsystemInfoInterface) => {\n let find = this.props.auth.user?.pravaPristupa?.find((pravo: any) => pravo.podsustavId === data.id && pravo.aktivan === true);\n return find === undefined && !DBConstants.PlaviDizelId.includes(data.id);\n }).length > 0 &&\n <>\n {(this.props.subsystems.data && this.props.subsystems.data.length > 0) &&\n <>\n
{i18n.t('applicationsPage.notRegisteredInformationSystems')}
\n \n }\n
\n \n }\n \n }\n {(this.props.subsystems.data && this.props.subsystems.data.length === 0) &&\n <>\n {this.getParameterByName(\"categoryId\") === \"2\" &&\n
\n
Informacijski sustavi Ribarstva bit će vidljivi nakon integracije sustava s ePoljoprivredom
\n
\n }\n {this.getParameterByName(\"categoryId\") === \"3\" &&\n
\n
Informacijski sustavi Šumarstva bit će vidljivi nakon integracije sustava s ePoljoprivredom
\n
\n }\n {this.getParameterByName(\"categoryId\") === \"4\" &&\n
\n
Informacijski sustavi Veterine bit će vidljivi nakon integracije sustava s ePoljoprivredom
\n
\n }\n \n }\n
\n {this.state.allApplicationsDisplay === AppViewEnum.card && this.renderCardsRest()}\n
\n
\n
\n
\n );\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n subsystems: state.subsystems,\n auth: state.auth\n }\n}\n\nconst actions = {\n actionGetSubsystems,\n actionGetSubject\n};\n\nconst handleLinkClick = (event: any, subsystem: SubsystemInfoInterface, token: string | undefined) => {\n ReactGA.event({\n category: subsystem.naziv,\n action: 'PodsustavKlik'\n });\n let subsystemUrl: string = subsystem.url;\n \n if (subsystem.naziv === 'Agronet') {\n subsystemUrl =\n subsystemUrl +\n (!window.location.search ? `` : `&returnUrl=${encodeURIComponent('/change_entity' + window.location.search)}`);\n }\n //dodano za GISR jer ne žele da se šalju ePoslovanje parametri\n else if (subsystem.id === 14) {\n subsystemUrl =\n subsystemUrl +\n (!subsystem.url.includes('?') ? `?` : `&`) +\n `token=${token}`;\n }\n else {\n subsystemUrl =\n subsystemUrl +\n (!subsystem.url.includes('?') ? `?` : `&`) +\n `token=${token}` +\n (!window.location.search ? `` : `&returnUrl=${encodeURIComponent(window.location.search.substring(1))}`);\n }\n\n window.location.href = subsystemUrl;\n\n};\nconst redux = withRouter(connect(\n mapStateToProps,\n actions\n)(ApplicationsComponent));\n\nexport default withKeycloak(redux)","import React from \"react\";\nimport { LandingNavigationRouting } from \"./landing.routing\";\nimport { NavigationService, StoreStateInterface, ErrorStateInterface, Alert, actionRefreshError, actionLogout, AuthStateInterface, AppRoutes } from \"../../../common\";\nimport { connect } from \"react-redux\";\nimport Backdrop from '@material-ui/core/Backdrop';\nimport CircularProgress from '@material-ui/core/CircularProgress';\nimport Snackbar from '@material-ui/core/Snackbar';\n\ntype Props = {\n error: ErrorStateInterface;\n auth: AuthStateInterface;\n actionRefreshError: () => void;\n blockUI: boolean;\n actionLogout: () => void;\n};\n\nexport function appendLandingEcitizensHeader(lang: string, removeCookies?: boolean) {\n let trakica = document.getElementById(\"trakicaScript\");\n let trakicaSrc = `${process.env.REACT_APP_NIAS_HEADER_URL}?login_url=${AppRoutes.Landing.LoginRedirect}&language=${lang}`\n let egradjani = document.getElementById(\"egradjani\");\n let scriptElement = document.querySelector('script[src=\"https://eusluge-nav-test.gov.hr/js/zaglavlje.js\"]');\n\n if (trakica !== null) {\n trakica.remove();\n\n }\n if (scriptElement !== null) {\n scriptElement.remove();\n }\n if (egradjani !== null) {\n egradjani.remove();\n }\n\n let script = document.createElement(\"script\");\n\n script.src = trakicaSrc;\n script.async = true;\n script.id = \"trakicaScript\"\n document.body.appendChild(script);\n}\n\nclass LandingNavigationRoutingComponent extends React.Component {\n componentDidMount() {\n if (!this.props.auth.isAuthentificated && !window.location.pathname.includes(AppRoutes.Landing.LoginRedirect)) {\n appendLandingEcitizensHeader(window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\", !this.props.auth.isAuthentificated);\n }\n }\n\n\n componentWillUnmount() {\n }\n\n render() {\n if (localStorage.getItem(\"logout\") === \"1\") {\n setTimeout(() => { localStorage.removeItem(\"logout\") }, 10000)\n return (\n
Preusmjeravanje...
\n )\n }\n return (\n
\n {NavigationService.generateRoutes(LandingNavigationRouting())}\n 0} autoHideDuration={6000} onClose={() => {\n this.props.actionRefreshError()\n }}>\n { if (this.props.error.action !== undefined) this.props.error.action(); else this.props.actionRefreshError() }} severity=\"error\">\n {this.props.error.message}\n \n \n \n \n \n
\n )\n }\n}\n\n\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n error: state.base.error,\n blockUI: state.base.blockUI,\n auth: state.auth\n }\n}\n\nconst actions = {\n actionRefreshError,\n actionLogout\n};\n\nexport default connect(\n mapStateToProps,\n actions\n)(LandingNavigationRoutingComponent);\n\n\n","import { RouteInterface } from \"../../../common/interfaces/framework/routing.interface\";\nimport { AppRoutes } from \"../../../common\";\nimport LandingComponent from \"../pages/landing/landing.component\";\nimport HowToApplyComponent from \"../pages/howToApply/howToApply.component\";\nimport LoginRedirectComponent from \"../pages/loginRedirect/loginRedirect.component\";\n\nexport const LandingNavigationRouting = (): Array => {\n return [\n { path: AppRoutes.Landing.LoginRedirect, component: LoginRedirectComponent, exact: true },\n {path: AppRoutes.Landing.HowToApply, component: HowToApplyComponent, exact: true},\n { path: AppRoutes.Landing.Index, component: LandingComponent, exact: true }\n ]\n}","import { Dialog, TextField, Button } from '@material-ui/core';\nimport React, { useState } from 'react';\nimport CloseIcon from '@material-ui/icons/Close';\nimport { useForm } from 'react-hook-form';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { z } from 'zod';\nimport './email-subscription.styles.scss';\nimport { i18n } from '../../../../common';\n\nconst textFieldStyle = { width: '78%', marginRight: 10 };\n\nconst emailValidator = z.object({\n email: z.string().email({ message: 'Please enter a valid email' }),\n});\n\ntype EmailType = z.infer;\n\ntype SubmitEmailProps = {\n onEmailSubmit: (data: EmailType) => void;\n onPopUpClose: () => void;\n}\n\nexport const SubmitEmail = ({ onEmailSubmit, onPopUpClose }: SubmitEmailProps) => {\n const [isOpen, setIsOpen] = useState(true);\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm({ resolver: zodResolver(emailValidator) });\n\n const handleClose = () => {\n setIsOpen(false);\n onPopUpClose();\n }\n\n return (\n \n
\n
\n {i18n.t('email.enterEmailTitle')}\n
\n
\n \n
\n
\n
\n \n
onEmailSubmit(data as EmailType))} style={{ display: 'flex' }}>\n e.target.focus()}\n InputProps={{ disableUnderline: true }}\n style={textFieldStyle}\n />\n \n {errors.email?.message &&

{errors.email?.message}

}\n \n
\n \n )\n}","import { Dialog, TextField, Button } from '@material-ui/core';\nimport React, { useState } from 'react';\nimport CloseIcon from '@material-ui/icons/Close';\nimport { useForm } from 'react-hook-form';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { z } from 'zod';\nimport './email-subscription.styles.scss';\nimport { i18n } from '../../../../common';\r\n\nconst verificationCodeInputStyle = { width: '63%', marginRight: 10 };\n\nconst verificationCodeValidator = z.object({\n verificationCode: z.string().min(1, { message: 'Verification code cannot be empty' }),\n});\n\ntype VerificationCodeType = z.infer;\n\ntype SubmitVerificationCodeProps = {\n onEmailReset: () => void;\n email: string;\n onVerificationCodeSubmit: (data: VerificationCodeType) => void;\n onVerificationCodeResend: () => void;\n onPopUpClose: () => void;\n}\n\nexport const SubmitVerificationCode = (\n {\n email,\n onEmailReset,\n onVerificationCodeSubmit,\n onVerificationCodeResend,\n onPopUpClose\n }: SubmitVerificationCodeProps) => {\n const [isOpen, setIsOpen] = useState(true);\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm({ resolver: zodResolver(verificationCodeValidator) });\n\n const handleClose = () => {\n setIsOpen(false);\n onPopUpClose();\n }\n\n return (\n \n
\n
\n {i18n.t('email.verifyEmailTitlePart1')} {email} {i18n.t('email.verifyEmailTitlePart2')}\n
\n
\n \n
\n
\n
\n \n onVerificationCodeSubmit(data as VerificationCodeType))}\n className=\"dialog__form-container-inner\"\n >\n e.target.focus()}\n InputProps={{ disableUnderline: true }}\n style={verificationCodeInputStyle}\n />\n \n {errors.verificationCode?.message &&\n

{errors.verificationCode?.message}

\n }\n \n
\n
\n {i18n.t('email.verificationCodeDescription')}\n
\n \n {i18n.t('email.sendNewVerificationCode')}\n \n
{i18n.t('email.or')}
\n \n {i18n.t('email.enterNewEmail')}\n \n
\n
\n \n );\n}","import { Dialog, Button } from '@material-ui/core';\nimport React, { useState } from 'react';\nimport CloseIcon from '@material-ui/icons/Close';\nimport { actionGetSubject, AuthStateInterface, StoreStateInterface } from '../../../../common/redux';\nimport { connect } from 'react-redux';\nimport './email-subscription.styles.scss';\nimport { i18n, UserInterface } from '../../../../common';\n\ntype ConfirmVerificationProps = {\n actionGetSubject: (user: UserInterface) => void;\n auth: AuthStateInterface;\n}\n\nconst ConfirmVerificationComponent = (props: ConfirmVerificationProps) => {\n const [isOpen, setIsOpen] = useState(true);\n\n return (\n setIsOpen(false)} disableAutoFocus>\n
\n
\n {i18n.t('email.emailVerificationSuccessTitle')}\n
\n
setIsOpen(false)}>\n \n
\n
\n
\n
\n {i18n.t('email.emailVerificationSuccessDescription')}\n
\n {\n setIsOpen(false);\n props.actionGetSubject(props.auth.user!);\n }}\n >\n {i18n.t('email.done')}\n \n
\n
\n )\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n auth: state.auth\n }\n}\n\nconst actions = {\n actionGetSubject\n};\n\nexport const ConfirmVerification = connect(\n mapStateToProps,\n actions\n)(ConfirmVerificationComponent);","import React from 'react';\nimport { SubjectService } from '../../../../common';\nimport { StoreStateInterface, actionGetSubject, actionEnablePopUp } from '../../../../common/redux';\nimport { connect } from 'react-redux';\nimport './email-subscription.styles.scss';\nimport { SubmitEmail } from './submit-email.component';\nimport { SubmitVerificationCode } from './submit-verification-code.component';\nimport { ConfirmVerification } from './confirm-verification.component';\nimport queryString from \"query-string\";\n\nconst EmailSubscriptionComponent = (props: any) => {\n const { user } = props.auth;\n if (user?.isEmailPopUpDisabled) {\n return <>;\n }\n\n if (user?.email && user?.isEmailVerified) {\n return ;\n }\n\n if (!user?.email) {\n return (\n {\n const result = queryString.parse(window.location.search);\n const { ForLegalIzvor_reg = undefined, ForLegalIps = undefined } = result;\n let identifier = '';\n if (ForLegalIps !== undefined && ForLegalIps !== '') {\n identifier = ForLegalIps as string;\n }\n else {\n identifier = encodeURIComponent(props.auth.user.oib);\n }\n SubjectService.sendEmailVerification(identifier, data.email, props.auth.token, ForLegalIzvor_reg as string).subscribe((data) => {\n props.actionGetSubject(props.auth.user);\n })\n }}\n onPopUpClose={() => {\n const result = queryString.parse(window.location.search);\n const { ForLegalIzvor_reg = undefined, ForLegalIps = undefined } = result;\n let identifier = '';\n if (ForLegalIps !== undefined && ForLegalIps !== '') {\n identifier = ForLegalIps as string;\n }\n else {\n identifier = encodeURIComponent(props.auth.user.oib);\n }\n SubjectService.disableEmailPopUp(identifier, props.auth.token, ForLegalIzvor_reg as string).subscribe((data) => {\n props.actionGetSubject(props.auth.user);\n })\n }}\n />\n )\n }\n\n\n if (user?.email && !user?.isEmailVerified) {\n return (\n {\n const result = queryString.parse(window.location.search);\n const { ForLegalIzvor_reg = undefined, ForLegalIps = undefined } = result;\n let identifier = '';\n if (ForLegalIps !== undefined && ForLegalIps !== '') {\n identifier = ForLegalIps as string;\n }\n else {\n identifier = encodeURIComponent(props.auth.user.oib);\n }\n SubjectService.deleteEmail(identifier, props.auth.token, ForLegalIzvor_reg as string).subscribe((data) => {\n props.actionGetSubject(props.auth.user);\n });\n }}\n onVerificationCodeSubmit={(data) => {\n const result = queryString.parse(window.location.search);\n const { ForLegalIzvor_reg = undefined, ForLegalIps = undefined } = result;\n let identifier = '';\n if (ForLegalIps !== undefined && ForLegalIps !== '') {\n identifier = ForLegalIps as string;\n }\n else {\n identifier = encodeURIComponent(user?.oib);\n }\n SubjectService.verifyEmail(identifier, user?.email!, data.verificationCode, props.auth.token, ForLegalIzvor_reg as string).subscribe(\n res => {\n props.actionGetSubject(props.auth.user);\n setTimeout(() => {\n props.actionEnablePopUp();\n }, 1000);\n },\n err => console.error(err)\n );\n }}\n onVerificationCodeResend={() => {\n const result = queryString.parse(window.location.search);\n const { ForLegalIzvor_reg = undefined, ForLegalIps = undefined } = result;\n let identifier = '';\n if (ForLegalIps !== undefined && ForLegalIps !== '') {\n identifier = ForLegalIps as string;\n }\n else {\n identifier = encodeURIComponent(props.auth.user.oib);\n }\n SubjectService.sendEmailVerification(identifier, user?.email!, props.auth.token, ForLegalIzvor_reg as string).subscribe((data) => {\n })\n }}\n onPopUpClose={() => {\n props.actionGetSubject(props.auth.user);\n }}\n />\n );\n }\n return <>;\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n auth: state.auth\n }\n}\n\nconst emailActions = {\n actionGetSubject,\n actionEnablePopUp\n};\n\nexport const EmailSubscription = connect(\n mapStateToProps,\n emailActions\n)(EmailSubscriptionComponent);","import './profile.styles.scss';\nimport React, { useEffect, useState } from \"react\";\nimport { AuthStateInterface, i18n, SubjectService } from \"../../../../common\";\nimport Grid from '@material-ui/core/Grid';\nimport { z } from 'zod';\nimport { useForm } from 'react-hook-form';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { Button, Dialog, TextField } from '@material-ui/core';\nimport CloseIcon from '@material-ui/icons/Close';\nimport queryString from \"query-string\";\n\nconst emailValidator = z.object({\n email: z.string().email({ message: 'Please enter a valid email' }),\n});\n\ntype EmailInputProps = {\n auth: AuthStateInterface;\n onGetSubject: () => void;\n onPopUpEnable: () => void;\n}\n\nexport const EmailInput = ({ auth, onGetSubject, onPopUpEnable }: EmailInputProps) => {\n const [isDeleteDialogOpen, setIsDeleteDialogOpen] = useState(false);\n\n const {\n register,\n handleSubmit,\n setValue,\n getValues,\n formState: { errors },\n } = useForm({ resolver: zodResolver(emailValidator) });\n\n useEffect(() => {\n setValue('email', auth.user?.email);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [auth.user?.email]);\n\n const onDeleteSubmit = () => {\n const result = queryString.parse(window.location.search);\n const { ForLegalIzvor_reg = undefined, ForLegalIps = undefined } = result;\n let identifier = '';\n if (ForLegalIps !== undefined && ForLegalIps !== '') {\n identifier = ForLegalIps as string;\n }\n else {\n identifier = encodeURIComponent(auth.user?.oib!);\n }\n SubjectService.deleteEmail(identifier, auth.token!, ForLegalIzvor_reg as string).subscribe((data) => {\n setValue('email', '');\n onGetSubject();\n setIsDeleteDialogOpen(false);\n });\n }\n\n const handleDeleteClick = () => {\n setIsDeleteDialogOpen(true);\n }\n\n return (\n <>\n {isDeleteDialogOpen && setIsDeleteDialogOpen(false)} />}\n
console.log('data', data))} style={{ width: '100%' }}>\n \n \n \n {errors.email?.message &&\n

{errors.email?.message}

\n }\n {!errors.email?.message && auth.user?.isEmailVerified &&\n

{i18n.t('email.emailVerified')}

\n }\n {!errors.email?.message && !auth.user?.isEmailVerified && auth.user?.email &&\n

{i18n.t('email.emailNotVerified')}

\n }\n {!errors.email?.message && !auth.user?.isEmailVerified && auth.user?.email &&\n {\n const result = queryString.parse(window.location.search);\n const { ForLegalIzvor_reg = undefined, ForLegalIps = undefined } = result;\n let identifier = '';\n if (ForLegalIps !== undefined && ForLegalIps !== '') {\n identifier = ForLegalIps as string;\n }\n else {\n identifier = encodeURIComponent(auth.user?.oib!);\n }\n SubjectService.sendEmailVerification(identifier, getValues('email'), auth.token!, ForLegalIzvor_reg as string).subscribe((data) => {\n onGetSubject();\n setTimeout(() => {\n onPopUpEnable();\n }, 1000);\n });\n }}\n >\n {i18n.t('email.sendVerificationCode')}\n \n }\n
\n \n {\n const result = queryString.parse(window.location.search);\n const { ForLegalIzvor_reg = undefined, ForLegalIps = undefined } = result;\n let identifier = '';\n if (ForLegalIps !== undefined && ForLegalIps !== '') {\n identifier = ForLegalIps as string;\n }\n else {\n identifier = encodeURIComponent(auth.user?.oib!);\n }\n SubjectService.sendEmailVerification(identifier, getValues('email'), auth.token!, ForLegalIzvor_reg as string).subscribe((data) => {\n onGetSubject();\n setTimeout(() => {\n onPopUpEnable();\n }, 1000);\n });\n }}\n >\n {i18n.t('email.changeEmail')}\n \n \n {auth.user?.email && (\n \n \n {i18n.t('email.deleteEmail')}\n \n \n )}\n
\n
\n \n );\n}\n\ntype EmailDeleteDialogProps = {\n isOpen: boolean;\n onDeleteSubmit: () => void;\n onClose: () => void;\n}\n\nconst EmailDeleteDialog = ({ isOpen, onDeleteSubmit, onClose }: EmailDeleteDialogProps) => {\n\n\n return (\n \n
\n
\n {i18n.t('email.deleteTitle')}\n
\n
\n \n
\n
\n
\n \n \n
\n \n );\n}","import './profile.styles.scss';\nimport React from \"react\";\nimport { actionRevoke, StoreStateInterface, actionBlockUI, actionEnablePopUp, ScrollToNav, AuthStateInterface, ScrollToNavLinkInterface, UserInterface, DjelatnostPogona, SubsystemInfoInterface, SubystemsStateInterface, DBConstants, actionGetSubsystems, Loading, actionGetSubject } from \"../../../../common\";\nimport { connect } from \"react-redux\";\nimport { withKeycloak } from '@react-keycloak/web'\nimport { Element } from 'react-scroll';\nimport Grid, { GridSize } from '@material-ui/core/Grid';\n\nimport moment from 'moment';\nimport { KeycloakInstance } from 'keycloak-js';\nimport { EmailSubscription } from '../applications/email-subscription.component';\nimport { EmailInput } from './email-input.component';\nimport i18n from '../../../../common/services/translate.service';\n\n\ntype PropsType = {\n auth: AuthStateInterface;\n actionBlockUI: () => void;\n actionRevoke: (user: UserInterface) => void;\n keycloakInitialized: boolean;\n keycloak: KeycloakInstance;\n subsystems: SubystemsStateInterface;\n actionGetSubsystems: (lang: string) => void;\n actionGetSubject: (user: UserInterface) => void;\n actionEnablePopUp: () => void;\n};\n\ninterface State {\n showText: boolean;\n hasAnyRegisteredSystems: boolean;\n}\n\nconst GridItem = ({ value, label, xs = 6, sm = 3 }: { value: string | undefined, label: string, xs?: GridSize, sm?: GridSize }) =>\n \n \n
{value}
\n
;\n\nclass ProfileComponent extends React.Component {\n constructor(props: PropsType) {\n super(props);\n this.state = {\n showText: false,\n hasAnyRegisteredSystems: true,\n }\n }\n\n componentDidMount() {\n this.props.actionGetSubsystems(window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\");\n }\n\n private generateNavLinks(): Array {\n let array = [\n ];\n if (this.props.auth.user?.oibRegistar !== null) {\n array.push({ to: \"profile\", title: i18n.t('profilePage.myDataTitle') });\n }\n if (this.props.auth.user?.obrtniRegistar !== null) {\n array.push({ to: \"obrtniRegistar\", title: i18n.t('profilePage.craftRegisterTitle') });\n }\n if (this.props.auth.user?.sudskiRegistar !== null) {\n array.push({ to: \"sudskiRegistar\", title: i18n.t('profilePage.courtRegisterTitle') });\n }\n if (this.props.auth.user?.rkpfiRegistar?.length !== 0) {\n array.push({ to: \"rkpfiRegistar\", title: i18n.t('profilePage.rkpfiRegisterTitle') });\n }\n if (this.props.auth.user?.opgRegistar?.length !== 0) {\n array.push({ to: \"opgRegistar\", title: i18n.t('profilePage.opgRegisterTitle') });\n }\n if (this.props.auth.user?.registarUdruga !== null) {\n array.push({ to: \"registarUdruga\", title: i18n.t('profilePage.associationRegisterTitle') });\n }\n return array;\n }\n\n private renderOib(status: string | undefined): string {\n switch (status) {\n case \"01\": return \"Aktivan\";\n case \"02\": return \"Neaktivan\";\n case \"03\": return \"Poništen\";\n default: return \"\";\n }\n }\n\n private djelatnostiPogona(data: Array): string {\n let text: Array = [];\n data.map((djelatnost: DjelatnostPogona, index: number) => {\n if (djelatnost.naziv !== null) {\n text.push(djelatnost.naziv);\n }\n return djelatnost;\n })\n return text.join(', ');\n }\n\n private handleNull(value: string | null | undefined) {\n if (value !== undefined && value !== null) {\n return value;\n } else {\n return \"\";\n }\n }\n\n private predmetiPoslovanja(data: Array<{\n id: string;\n rbrDjelatnosti: string;\n sifraDjelatnosti?: string;\n djelatnostTekst: string;\n aktivan: string;\n datumKreiranja: string;\n datumIzmjene: string;\n }>): string {\n let text: Array = [];\n data.map((predmet: {\n id: string;\n rbrDjelatnosti: string;\n sifraDjelatnosti?: string;\n djelatnostTekst: string;\n aktivan: string;\n datumKreiranja: string;\n datumIzmjene: string;\n }, index: number) => {\n if (predmet.djelatnostTekst !== null) {\n text.push(predmet.djelatnostTekst)\n }\n return predmet;\n })\n return text.join(\", \");\n }\n\n renderStanjeObrta(stanje: string | undefined): string {\n switch (stanje) {\n case \"1\": return \"U radu\";\n case \"2\": return \"Odjava\";\n case \"3\": return \"Privremena obustava\";\n case \"4\": return \"Mirovanje\";\n case \"5\": return \"Preseljen\";\n case \"6\": return \"Bez početka\";\n case \"7\": return \"Odustanak\";\n default: return \"\";\n }\n }\n\n renderBudgetUserStatus(status: number | undefined): string {\n switch (status) {\n case 1: return \"Aktivan\";\n case 2: return \"Izbrisan\";\n case 3: return \"Neaktivan\";\n default: return \"\";\n }\n }\n\n render() {\n if (this.props.subsystems.isLoading && this.props.subsystems.data === undefined) {\n return \n }\n const registeredSubsystems = this.props.subsystems.data?.filter((data: SubsystemInfoInterface) => data.aktivan).filter((data: SubsystemInfoInterface) => {\n let find = this.props.auth.user?.pravaPristupa?.find((pravo: any) => pravo.podsustavId === data.id && pravo.aktivan === true);\n return find !== undefined && !DBConstants.PlaviDizelId.includes(data.id);\n });\n const hasNoRegisteredSystems = registeredSubsystems === undefined || registeredSubsystems === null || registeredSubsystems?.length === 0;\n if (hasNoRegisteredSystems) {\n return (\n
\n
{i18n.t(\"profilePage.notRegistered\")}
\n
\n );\n }\n const oibRegOstaliPodaci = JSON.parse(this.props.auth.user?.oibRegistar?.ostaliPodaci || '{}');\n const dodatakAdresi = !!oibRegOstaliPodaci?.AdresaPrebivalista?.KucniBrojDodatak ? oibRegOstaliPodaci?.AdresaPrebivalista?.KucniBrojDodatak : '';\n return (\n
\n \n
\n {(!!this.props.auth.user?.oibRegistar && this.props.auth.user?.oibRegistar !== null) &&\n \n
{i18n.t('profilePage.myDataTitle')}
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n this.props.actionGetSubject(this.props.auth.user!)} onPopUpEnable={() => this.props.actionEnablePopUp()} />\n
\n
\n }\n {(!!this.props.auth.user?.obrtniRegistar && this.props.auth.user?.obrtniRegistar !== null) &&\n \n
{i18n.t('profilePage.craftRegisterTitle')}
\n
\n \n \n \n \n \n \n \n \n {\n this.props.auth.user?.obrtniRegistar?.sjediste &&\n \n \n \n \n \n \n \n \n \n \n }\n
\n
\n }\n {(!!this.props.auth.user?.sudskiRegistar && this.props.auth.user?.sudskiRegistar !== null) &&\n \n
{i18n.t('profilePage.courtRegisterTitle')}
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n }\n {(!!this.props.auth.user?.rkpfiRegistar && this.props.auth.user?.rkpfiRegistar?.length !== 0) &&\n \n
{i18n.t('profilePage.rkpfiRegisterTitle')}
\n
\n }\n {(!!this.props.auth.user?.rkpfiRegistar && this.props.auth.user?.rkpfiRegistar?.length === 1) ?\n (\n !!this.props.auth.user?.rkpfiRegistar && this.props.auth.user?.rkpfiRegistar?.map((item, index) => (\n \n
\n
{i18n.t('profilePage.rkpfiRegister.budgetUserTitle')}
\n \n \n \n \n \n \n \n
{i18n.t('profilePage.rkpfiRegister.representativeTitle')}
\n \n \n \n \n \n
\n
))) :\n (\n !!this.props.auth.user?.rkpfiRegistar && this.props.auth.user?.rkpfiRegistar?.map((item, index) => (\n \n
\n
{i18n.t('profilePage.rkpfiRegister.budgetUserTitle')}
\n \n \n \n \n \n \n \n \n \n \n
\n
)\n ))}\n {(!!this.props.auth.user?.opgRegistar && this.props.auth.user?.opgRegistar?.length !== 0) &&\n \n
{i18n.t('profilePage.opgRegisterTitle')}
\n
\n }\n {\n !!this.props.auth.user?.opgRegistar && this.props.auth.user?.opgRegistar?.map((item, index) => (\n\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n
{i18n.t('profilePage.opgRegister.address')}
\n \n \n \n \n \n \n \n
{i18n.t('profilePage.opgRegister.contactInfo')}
\n \n \n \n \n \n
\n
))\n }\n {(!!this.props.auth.user?.registarUdruga && this.props.auth.user?.registarUdruga !== null) &&\n \n
{i18n.t('profilePage.associationRegisterTitle')}
\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 \n \n \n \n \n \n \n \n \n \n \n
{i18n.t('profilePage.associationRegister.persons')}
\n \n \n \n \n \n \n \n \n {\n this.props.auth.user?.registarUdruga?.osobe?.map((item, index) => (\n\n \n \n
{item.ime}
\n
\n \n
{item.prezime}
\n
\n \n
{item.oib == \"\" ? \"-\": item.oib}
\n
\n \n
{item.svojstvo == \"\" ? \"-\" : item.svojstvo}
\n
\n \n
{item.vrstaOsobe}
\n
\n \n
{item.funkcija}
\n
\n
))\n }\n
\n
\n }\n
\n \n
\n );\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n auth: state.auth,\n subsystems: state.subsystems\n }\n}\n\nconst actions = {\n actionBlockUI,\n actionRevoke,\n actionGetSubsystems,\n actionGetSubject,\n actionEnablePopUp\n};\n\nconst redux = connect(\n mapStateToProps,\n actions\n)(ProfileComponent);\n\nexport default withKeycloak(redux)","import { Dialog } from \"@material-ui/core\";\nimport MuiDialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport CloseIcon from '@material-ui/icons/Close';\nimport { withKeycloak } from '@react-keycloak/web';\nimport React from \"react\";\nimport { connect } from \"react-redux\";\nimport { withRouter } from 'react-router';\nimport { RouteComponentProps } from \"react-router-dom\";\nimport { Element } from 'react-scroll';\nimport { ApiRoutes, AppRoutes, AuthStateInterface, Loading, NavigationService, ScrollToNav, StoreStateInterface, SubsystemInfoInterface, SubystemsStateInterface, httpHeader } from \"../../../../common\";\nimport i18n from \"../../../../common/services/translate.service\";\nimport './subsystem.styles.scss';\n//@ts-ignore\nimport { KeycloakInstance } from \"keycloak-js\";\n//@ts-ignore\nimport { PDFReader } from 'reactjs-pdf-reader';\n\ntype PathParamsType = {\n id: string;\n}\n\ntype PropsType = RouteComponentProps & {\n subsystems: SubystemsStateInterface;\n auth: AuthStateInterface;\n keycloakInitialized: boolean;\n keycloak: KeycloakInstance;\n}\n\ninterface State {\n currentSubsystem?: any;\n openPDFModal: boolean;\n pdfBlob?: any;\n isDarkMode: boolean;\n}\n\nclass SubsystemComponent extends React.Component {\n unlisten: any;\n private interval: any;\n\n constructor(props: PropsType) {\n super(props);\n this.state = {\n currentSubsystem: undefined,\n openPDFModal: false,\n isDarkMode: false\n }\n\n this.setCurrentSubsystem = this.setCurrentSubsystem.bind(this);\n }\n\n private getCookie(cname: string): string {\n var name = cname + \"=\";\n var decodedCookie = decodeURIComponent(document.cookie);\n var ca = decodedCookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) === ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) === 0) {\n return c.substring(name.length, c.length);\n }\n }\n return \"\";\n }\n\n private setCurrentSubsystem(): void {\n if (this.props.location.state === undefined) NavigationService.navigate(AppRoutes.Dashboard.Index)\n this.setState({ currentSubsystem: this.props.location.state })\n }\n\n componentDidMount() {\n this.setCurrentSubsystem();\nthis.interval = setInterval(() => {\n //@ts-ignore\n if (this.getCookie(\"cookieImpaired\") === \"da\") {\n this.setState({ isDarkMode: true });\n }\n else {\n this.setState({ isDarkMode: false });\n }\n }\n , 1000)\n }\n\n\n componentWillUnmount() {\n }\n\n private renderLoginUrl(subsystem: SubsystemInfoInterface | undefined): string {\n if (subsystem === undefined) return \"\";\n let allowedSystems = this.props.subsystems.data?.filter((data: SubsystemInfoInterface) => data.aktivan).filter((data: SubsystemInfoInterface) => {\n let find = this.props.auth.user?.pravaPristupa?.find((pravo: any) => pravo.podsustavId === data.id && pravo.aktivan === true);\n return find !== undefined;\n })\n if (allowedSystems === undefined) return subsystem.url;\n let find = allowedSystems.find((system: SubsystemInfoInterface) => system.naziv.includes(\"Agronet\"));\n if (subsystem.naziv.includes(\"Agronet\") && find !== undefined) {\n return `${subsystem.url}rpslogin.aspx?sliu=${process.env.REACT_APP_ROOT}/aplikacije`\n }\n if (find !== undefined)\n return subsystem.url + `?token=${this.props.auth.token}`\n return subsystem.url;\n }\n\n private checkIfAllowed(subsystem: SubsystemInfoInterface | undefined): boolean {\n if (subsystem === undefined) return false;\n let find = this.props.auth.user?.pravaPristupa?.find((pravo: any) => pravo.podsustavId === subsystem.id && pravo.aktivan === true);\n return find !== undefined;\n }\n\n private renderBanner(): React.ReactNode {\n\n return (\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
{this.state.currentSubsystem?.naziv}
\n
\n
\n {(this.checkIfAllowed(this.state.currentSubsystem)) &&\n {i18n.t(\"subsystem.apply\")}\n }\n {/* eslint-disable-next-line*/\n (this.state.currentSubsystem?.registracijaUrl !== null && this.state.currentSubsystem?.registracijaUrl !== undefined && !this.checkIfAllowed(this.state.currentSubsystem)) && 0 ? this.state.currentSubsystem?.registracijaUrl : \"\"} className=\"button button--outlined\">{i18n.t(\"subsystem.register\")}\n }\n
\n
\n
\n {this.state.currentSubsystem?.naziv}\n
\n
\n
\n )\n }\n\n private renderPDFModal(): React.ReactNode {\n return (\n this.setState({ openPDFModal: false })} aria-labelledby=\"customized-dialog-title\" open={this.state.openPDFModal}>\n \n
{i18n.t(\"subsystem.howToRegister\")}
\n this.setState({ openPDFModal: false })} style={{ alignSelf: \"flex-start\" }} />\n
\n \n \n \n
\n )\n }\n\n private renderAgronetInfo(): React.ReactNode {\n let cleanText = \"Za Registraciju u Agronet zahtjev je moguće predati osobno ili elektronski. Upute za registraciju nalaze se ovdje.\".replace(\"ovdje.\", \"\");\n return (\n <>\n \n {/* eslint-disable-next-line*/}\n {\n const requestOptions = {\n method: \"GET\",\n headers: httpHeader()\n };\n\n let url = ApiRoutes.Document(this.state.currentSubsystem!.id!);\n fetch(url, requestOptions)\n .then((response: any) => {\n response.blob().then((blob: any) => {\n var fileURL = URL.createObjectURL(blob);\n this.setState({ pdfBlob: fileURL, openPDFModal: true })\n })\n })\n }}>ovdje.\n \n )\n }\n\n render() {\n return (\n
\n \n {this.renderBanner()}\n
\n
\n \n
{i18n.t(\"subsystem.aboutSubsystem\")}
\n
\n
\n \n
{i18n.t(\"subsystem.howToRegister\")}
\n {!this.state.currentSubsystem?.naziv.includes(\"Agronet\") &&\n
\n }\n {this.state.currentSubsystem?.naziv.includes(\"Agronet\") &&\n this.renderAgronetInfo()\n }\n
\n \n
{i18n.t(\"subsystem.contact\")}
\n
\n
\n
\n \n \n \n \n
\n
\n {this.renderPDFModal()}\n
\n );\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n subsystems: state.subsystems,\n auth: state.auth\n }\n}\n\nconst actions = {\n};\n\nconst redux = withRouter(connect(\n mapStateToProps,\n actions\n)(SubsystemComponent));\n\nexport default withKeycloak(redux)","import React from \"react\";\nimport './eObrasci.styles.scss';\nimport { StoreStateInterface } from \"../../../../common\";\nimport { connect } from \"react-redux\";\nimport { withKeycloak } from '@react-keycloak/web';\nimport { RouteComponentProps } from \"react-router-dom\";\nimport { withRouter } from 'react-router';\nimport { KeycloakInstance } from \"keycloak-js\";\n\ntype PathParamsType = {\n}\n\ntype PropsType = RouteComponentProps & {\n keycloakInitialized: boolean;\n keycloak: KeycloakInstance;\n}\n\ninterface State {\n}\n\nclass EObrasciComponent extends React.Component {\n render() {\n return (\n
\n
\n
eObrasci su trenutno u izradi
\n
\n
\n );\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n }\n}\n\nconst actions = {\n};\n\nconst redux = withRouter(connect(\n mapStateToProps,\n actions\n)(EObrasciComponent));\n\nexport default withKeycloak(redux)","import React from \"react\";\r\nimport { actionUpdateToken, NavigationService, ErrorStateInterface, Alert, actionRefreshError, Footer, actionLogout, AuthStateInterface, persistor, AppRoutes, actionChangeOib, KeycloackService } from \"../../../common\";\r\nimport { DashboardNavigationRouting } from \"./dashboard.routing\";\r\nimport AppHeader from \"../../../common/components/appHeader/appHeader.component\";\r\nimport { connect } from \"react-redux\";\r\nimport { withKeycloak } from '@react-keycloak/web';\r\nimport { StoreStateInterface } from '../../../common';\r\nimport Snackbar from '@material-ui/core/Snackbar';\r\nimport { SystemsStateInterface } from \"../../../common/redux/systems\";\r\nimport Backdrop from '@material-ui/core/Backdrop';\r\nimport CircularProgress from '@material-ui/core/CircularProgress';\r\nimport { RouteComponentProps, withRouter } from \"react-router-dom\";\r\nimport { KeycloakInstance } from \"keycloak-js\";\r\nimport keycloak from \"../../../keycloak\";\r\nimport queryString from 'query-string';\r\n\r\n\r\ntype PropsType = RouteComponentProps & {\r\n error: ErrorStateInterface;\r\n systems: SystemsStateInterface;\r\n actionRefreshError: () => void;\r\n actionLogout: () => void;\r\n actionUpdateToken: (accessToken: string, refreshToken: string) => void;\r\n blockUI: boolean;\r\n auth: AuthStateInterface;\r\n keycloakInitialized: boolean;\r\n keycloak: KeycloakInstance;\r\n actionChangeOib: any;\r\n};\r\n\r\nexport function appendDashboardEcitizensHeader(lang: string, auth: AuthStateInterface, actionChangeOib?: any) {\r\n let trakica = document.getElementById(\"trakicaScript\");\r\n const changeEntityUrl = process.env.REACT_APP_ROOT + '/aplikacije?ForLegalIps={ForLegalIps}%26ForPersonOib={ForPersonOib}%26ForLegalIzvor_reg={ForLegalIzvor_reg}%26ToLegalIps={ToLegalIps}%26ToLegalIzvor_reg={ToLegalIzvor_reg}';\r\n const result = queryString.parse(window.location.search);\r\n const { ForLegalIps = undefined, ForLegalIzvor_reg = undefined, ToLegalIps = undefined, ToLegalIzvor_reg = undefined, ForPersonOib = undefined } = result;\r\n\r\n if (Object.keys(result).length !== 0) {\r\n localStorage.setItem('ENTITY_DATA', JSON.stringify(result));\r\n }\r\n\r\n let entitySearch = localStorage.getItem(\"entitySearch\");\r\n\r\n\r\n\r\n let trakicaSrc = '';\r\n if (ForLegalIps || ForLegalIzvor_reg || ToLegalIps || ToLegalIzvor_reg) {\r\n trakicaSrc = `${process.env.REACT_APP_NIAS_HEADER_URL}?logout_url=${process.env.REACT_APP_ROOT}${AppRoutes.Dashboard.LogoutRedirect}&messageId=${auth.MessageId}&navtoken=${auth.NavToken}&language=${lang}&show_entities=true&show_persons=true&show_entity_search=${entitySearch === \"1\"}&change_entity_url=${changeEntityUrl}&ForLegalIps=${ForLegalIps}&ForLegalIzvor_reg=${ForLegalIzvor_reg}&ToLegalIps=${ToLegalIps}&ToLegalIzvor_reg=${ToLegalIzvor_reg}`;\r\n } else if (ForPersonOib) {\r\n trakicaSrc = `${process.env.REACT_APP_NIAS_HEADER_URL}?logout_url=${process.env.REACT_APP_ROOT}${AppRoutes.Dashboard.LogoutRedirect}&messageId=${auth.MessageId}&navtoken=${auth.NavToken}&language=${lang}&show_entities=true&show_persons=true&show_entity_search=${entitySearch === \"1\"}&change_entity_url=${changeEntityUrl}&ForPersonOib=${ForPersonOib}`;\r\n }\r\n else {\r\n trakicaSrc = `${process.env.REACT_APP_NIAS_HEADER_URL}?logout_url=${process.env.REACT_APP_ROOT}${AppRoutes.Dashboard.LogoutRedirect}&messageId=${auth.MessageId}&navtoken=${auth.NavToken}&language=${lang}&show_entities=true&show_persons=true&show_entity_search=${entitySearch === \"1\"}&change_entity_url=${changeEntityUrl}`\r\n }\r\n\r\n if (ForPersonOib) {\r\n actionChangeOib(ForPersonOib);\r\n } else if (ForLegalIps) {\r\n actionChangeOib(ForLegalIps);\r\n }\r\n\r\n let egradjani = document.getElementById(\"egradjani\");\r\n\r\n if (trakica !== null) {\r\n trakica.remove();\r\n }\r\n\r\n if (egradjani !== null) {\r\n egradjani.remove();\r\n }\r\n\r\n let trakicaCreate = () => {\r\n let script = document.createElement(\"script\");\r\n\r\n script.src = trakicaSrc;\r\n script.async = true;\r\n script.id = \"trakicaScript\"\r\n document.body.appendChild(script);\r\n localStorage.removeItem(\"entitySearch\");\r\n }\r\n\r\n if (ForLegalIps || ForLegalIzvor_reg || ToLegalIps || ToLegalIzvor_reg) {\r\n setTimeout(() => trakicaCreate(), 1000)\r\n } else {\r\n trakicaCreate()\r\n }\r\n}\r\n\r\nexport class DashboardRoutingComponent extends React.Component{\r\n private interval: any;\r\n private checkInterval: any;\r\n\r\n componentDidMount() {\r\n this.interval = setInterval(() => {\r\n if (localStorage.getItem(\"logout\") === \"1\") {\r\n localStorage.removeItem(\"logout\");\r\n persistor.purge();\r\n this.props.keycloak.logout();\r\n }\r\n }, 2000)\r\n\r\n keycloak.onAuthRefreshSuccess = () => {\r\n if (!!keycloak.token && !!keycloak.refreshToken)\r\n this.props.actionUpdateToken(keycloak.token, keycloak.refreshToken)\r\n }\r\n\r\n\r\n this.checkInterval = setInterval(() => {\r\n /* if (!!keycloak.tokenParsed && keycloak.tokenParsed.exp != undefined) {\r\n if (keycloak.tokenParsed.exp > Math.floor(Date.now() / 1000)) {\r\n //@ts-ignore\r\n let tokenParsed = keycloak!.tokenParsed! as any;\r\n let username = tokenParsed.preferred_username;\r\n KeycloackService.inspectSession(username).subscribe(async (data: any) => {\r\n if (data === false) {\r\n await persistor.purge();\r\n setTimeout(() => window.location.href = \"/\", 1000);\r\n }\r\n })\r\n }\r\n } */\r\n if (!!!keycloak.tokenParsed) {\r\n persistor.purge();\r\n setTimeout(() => window.location.href = \"/\", 1000);\r\n }\r\n\r\n if (process.env.REACT_APP_ENVIRONMENT !== \"development\") {\r\n if (!!keycloak.tokenParsed) {\r\n KeycloackService.inspectSession(keycloak.tokenParsed.preferred_username).subscribe(async (data: any) => {\r\n if (data === false) {\r\n await persistor.purge();\r\n setTimeout(() => window.location.href = \"/\", 1000);\r\n }\r\n })\r\n }\r\n }\r\n }, 4000)\r\n\r\n \r\n\r\n setTimeout(() => { localStorage.removeItem(\"registerStarted\"); }, 4000)\r\n\r\n //localStorage.removeItem(\"privolaLogin\");\r\n\r\n if (this.props.auth.isAuthentificated) {\r\n appendDashboardEcitizensHeader(window.localStorage.getItem(\"lang\") !== null ? window.localStorage.getItem(\"lang\")! : \"hr\", this.props.auth, this.props.actionChangeOib);\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n clearInterval(this.interval)\r\n clearInterval(this.checkInterval)\r\n }\r\n\r\n componentDidUpdate(prevProps: PropsType) {\r\n if (this.props.location !== prevProps.location) {\r\n this.onRouteChanged();\r\n }\r\n }\r\n\r\n onRouteChanged() {\r\n /*if (!!this.props.auth.user && !!this.props.auth.user.username) {\r\n KeycloackService.inspectSession(this.props.auth.user.username).subscribe((data: any) => {\r\n if (data === false) {\r\n persistor.purge();\r\n }\r\n })\r\n } */\r\n }\r\n\r\n\r\n render() {\r\n if (localStorage.getItem(\"logout\") === \"1\") {\r\n return (\r\n
Preusmjeravanje...
\r\n )\r\n }\r\n return (\r\n <>\r\n \r\n
\r\n {NavigationService.generateRoutes(DashboardNavigationRouting())}\r\n
\r\n
\r\n 0} autoHideDuration={6000} onClose={() => {\r\n this.props.actionRefreshError()\r\n }}>\r\n { if (this.props.error.action !== undefined) this.props.error.action(); else this.props.actionRefreshError() }} severity=\"error\">\r\n {this.props.error.message}\r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state: StoreStateInterface) => {\r\n return {\r\n error: state.base.error,\r\n systems: state.systems,\r\n blockUI: state.base.blockUI,\r\n auth: state.auth\r\n }\r\n}\r\n\r\nconst actions = {\r\n actionRefreshError,\r\n actionLogout,\r\n actionChangeOib,\r\n actionUpdateToken\r\n};\r\n\r\nconst redux = withRouter(connect(\r\n mapStateToProps,\r\n actions\r\n)(DashboardRoutingComponent));\r\n\r\nexport default withKeycloak(redux);\r\n\r\n\r\n\r\n\r\n\r\n","import { RouteInterface } from \"../../../common/interfaces/framework/routing.interface\";\nimport { AppRoutes, RouteProtectionLevel } from \"../../../common\";\nimport ApplicationsComponent from \"../pages/applications/applications.component\";\nimport ProfileComponent from \"../pages/profile/profile.component\";\nimport SubsystemComponent from '../pages/subsystem/subsystem.component';\nimport EObrasciComponent from \"../pages/eObrasci/eObrasci.component\";\nimport { LoginRedirectComponent } from \"../../landing/pages/loginRedirect/loginRedirect.component\";\n\nexport const DashboardNavigationRouting = (): Array => {\n return [\n { path: AppRoutes.Dashboard.EObrasci, component: EObrasciComponent, exact: true },\n { path: AppRoutes.Dashboard.Profile, component: ProfileComponent, exact: true },\n { path: AppRoutes.Dashboard.Subsystem, component: SubsystemComponent, exact: true },\n { path: AppRoutes.Dashboard.Index, component: ApplicationsComponent, exact: false, guard: RouteProtectionLevel.LOGIN }\n ]\n}\n\n","import React, { useEffect, useRef, useState } from 'react';\nimport { Button } from '@material-ui/core';\nimport queryString from 'query-string';\nimport $ from 'jquery';\n\nimport Logo from '../../../../assets/images/logo.svg';\nimport { connect } from 'react-redux';\nimport { actionGetAuthFormData, actionGetPermissions, actionGrantAccess } from '../../../../common/redux/e-business';\nimport { ErrorConstant, StoreStateInterface, i18n, store } from '../../../../common';\nimport { AuthFormData } from '../../../../common/redux/e-business/e-business.reducer';\n\ntype ApplyRolesProps = {\n actionGetAuthFormData: any;\n actionGetPermissions: any;\n actionGrantAccess: any;\n eBusiness: AuthFormData;\n}\n\n/*const ROLES = [\n {\n key: \"agronet_pristup_001\",\n value: \"true\",\n description: \"Pravo pristupa na Agronet\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"ups,_pristup_001\",\n value: \"true\",\n description: \"Pravo pristupa na Upisnik privatnih šumoposjednika\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"ezakup_pristup_001\",\n value: \"true\",\n description: \"Pravo pristupa na eZakup\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"uspd_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Uvid u stanje plavog dizela\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"uspd_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Uvid u stanje plavog dizela\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"wave_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Wave-ŠŠ\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"ukl_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Upisnik kućnih ljubimaca\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"fis_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Fitosanitarni informacijski sustav\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"gsr_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Geoinformacijski sustav ribarstva\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"pgr_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Portal gospodarskog ribarstva\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"sle_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Središnju lovnu evidenciju\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"fis_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Fitosanitarni informacijski sustav\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"uuklnp_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Upisnik uzgoja kućnih ljubimaca namijenjenih prodaji\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"ups,_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Upisnik privatnih šumoposjednika\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"rdp_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Registar državnih potpora\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"jrdz_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na Posjednik (JRDŽ)\",\n valueDescription: \"\",\n roleType: \"Permission\"\n },\n {\n key: \"fis_test_pristup_001\",\n value: \"false\",\n description: \"Pravo pristupa na FIS-test\",\n valueDescription: \"\",\n roleType: \"Permission\"\n }\n];*/\n\n/*const PERMISSIONS = [\n {\n podsustav: \"Portal gospodarskog ribarstva\",\n dozvole: [\n {\n title: \"Pravo pristupa\",\n description: \"Pravo pristupa na Portal gospodarskog ribarstva\",\n key: \"pgr_pristup_001\",\n value: true\n },\n {\n title: \"Pravo pristupa 2\",\n description: \"Pravo pristupa na Portal gospodarskog ribarstva 2\",\n key: \"pgr_pristup_002\",\n }\n ]\n },\n {\n podsustav: \"Agronet\",\n dozvole: [\n {\n title: \"Pravo pristupa\",\n description: \"Pravo pristupa na Agronet\",\n key: \"agronet_pristup_001\",\n }\n ]\n }\n]*/\n\n/*const test = () => {\n let permissionsCopy = [...PERMISSIONS];\n ROLES.forEach((role: any) => {\n for (let permission of permissionsCopy) {\n for (let doz of permission?.dozvole) {\n if (doz?.key === role?.key) {\n if (role?.value === 'true') {\n doz.value = true;\n }\n };\n }\n }\n });\n console.log('permissionsCopy', permissionsCopy);\n}*/\n\ntype ActiveRoles = Array<{\n podsustav: string;\n dozvole: Array<{\n title: string;\n description: string;\n key: string;\n value?: boolean;\n }>;\n}>\n\nconst ApplyRolesComponent = (props: ApplyRolesProps) => {\n const [form, setForm] = useState([]);\n const isInitialMount = useRef(true);\n const [activeRoles, setActiveRoles] = useState([]);\n\n useEffect(() => {\n const { requestId = undefined } = queryString.parse(window.location.search);\n if (requestId) {\n props.actionGetAuthFormData(requestId as string);\n }\n /* eslint-disable-next-line*/\n }, []);\n\n useEffect(() => {\n if (props.eBusiness?.powerOfAttorneyFor?.legalEntity?.subjectIdentificationNumber !== '') {\n props.actionGetPermissions(props.eBusiness?.powerOfAttorneyFor?.legalEntity?.subjectIdentificationNumber);\n }\n /* eslint-disable-next-line*/\n }, [props.eBusiness?.powerOfAttorneyFor?.legalEntity?.subjectIdentificationNumber]);\n\n useEffect(() => {\n const { permissions } = props.eBusiness;\n if (permissions && permissions?.length > 0) {\n let permissionsCopy = [...permissions];\n props.eBusiness?.roles?.forEach((role: any) => {\n for (let permission of permissionsCopy) {\n for (let doz of permission?.dozvole) {\n if (doz?.key === role?.key) {\n if (role?.value === 'true') {\n doz.value = true;\n }\n };\n }\n }\n });\n setActiveRoles(permissionsCopy);\n }\n if (permissions && permissions?.length === 0) {\n setActiveRoles([]);\n }\n /* eslint-disable-next-line*/\n }, [props.eBusiness?.permissions]);\n\n useEffect(() => {\n if (isInitialMount.current) {\n isInitialMount.current = false;\n } else {\n const a = [];\n a.push(
\n \n
);\n setForm(a);\n\n setTimeout(() => {\n $('#target').submit();\n }, 1000);\n }\n /* eslint-disable-next-line*/\n }, [props?.eBusiness?.submitUrl]);\n\n const { authorizer, assignee, powerOfAttorneyFor } = props.eBusiness;\n\n const handleSubmit = () => {\n if (activeRoles.length === 0) {\n store.dispatch({\n type: ErrorConstant.ERROR, payload:\n {\n message: i18n.t(\"error.eovlastenja\"),\n action: () => { }\n }\n }\n )\n return;\n }\n let filteredRoles = [] as ActiveRoles;\n activeRoles.forEach(role => {\n const activeRoles = role.dozvole.filter(d => d.value !== undefined && d.value !== false);\n if (activeRoles?.length > 0) {\n filteredRoles.push({ ...role, dozvole: activeRoles })\n }\n });\n props.actionGrantAccess(props.eBusiness, filteredRoles);\n }\n\n const handleCheckboxClick = (dozIndex: any, roleIndex: any) => {\n const roles = [...activeRoles];\n const checkedRole = roles[roleIndex]['dozvole'][dozIndex];\n if ('value' in checkedRole) {\n checkedRole.value = !checkedRole.value\n } else {\n checkedRole.value = true;\n }\n setActiveRoles([...roles]);\n }\n\n return (\n
\n
{form}
\n {/* eslint-disable-next-line*/}\n \n
\n
\n TKO\n {authorizer?.physicalEntity?.firstName} {authorizer?.physicalEntity?.lastName} (OIB :{authorizer?.physicalEntity?.personalIdentificationNumber})\n
\n
\n KOME\n {assignee?.physicalEntity?.firstName} {assignee?.physicalEntity?.lastName} (OIB: {assignee?.physicalEntity?.personalIdentificationNumber})\n
\n
\n ZA ŠTO\n {powerOfAttorneyFor?.legalEntity?.name} {powerOfAttorneyFor?.legalEntity?.subjectIdentificationNumber ? `(OIB: ${powerOfAttorneyFor?.legalEntity?.subjectIdentificationNumber})` : ''}\n
\n
\n {activeRoles?.map((role: any, roleIndex: any) => {\n return (\n
\n
\n {role.podsustav}\n
\n {role?.dozvole?.map((r: any, index: any) => {\n return (\n
\n
\n {r.title}\n handleCheckboxClick(index, roleIndex)} />\n
\n {r.description}\n
\n );\n })}\n
\n );\n })}\n {activeRoles?.length === 0 && (\n
Poslovni subjekt nije registriran u niti jedan podsustav
\n )}\n
\n {activeRoles?.length > 0 && (\n \n )}\n \n
\n
\n )\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n eBusiness: state.eBusiness\n }\n}\n\nconst actions = {\n actionGetAuthFormData,\n actionGetPermissions,\n actionGrantAccess,\n};\n\nexport const ApplyRoles = connect(\n mapStateToProps,\n actions\n)(ApplyRolesComponent);","import { Dispatch } from \"redux\";\nimport { AuthorizationService } from \"../../api\";\nimport { EBusinessConstant } from \"./e-business.constant\";\nimport { AuthFormData } from \"./e-business.reducer\";\nimport { store } from \"../store\";\nimport { ErrorConstant } from \"../base\";\nimport { i18n } from \"../../services\";\n\nexport function actionGetAuthFormData(requestId: string) {\n return (dispatch: Dispatch) => {\n AuthorizationService.getAuthorizationFormData(requestId).subscribe(async (response: AuthFormData) => {\n dispatch({ type: EBusinessConstant.AUTH_FORM, payload: response });\n }, (error: any) => {\n console.error(error);\n });\n };\n}\n\nexport function actionGetPermissions(oib: string) {\n return (dispatch: Dispatch) => {\n AuthorizationService.getPermissions(oib).subscribe((response: AuthFormData) => {\n dispatch({ type: EBusinessConstant.PERMISSIONS, payload: response })\n }, (error: any) => {\n console.error(error);\n });\n };\n}\n\nexport function actionGrantAccess(data: AuthFormData, roles: any) {\n return (dispatch: Dispatch) => {\n AuthorizationService.grantAccess(data, roles).subscribe((response: any) => {\n dispatch({ type: EBusinessConstant.GRANT_ACCESS, payload: { serviceResponse: response?.serviceResponse, submitUrl: response?.submitUrl } });\n }, (error: any) => {\n store.dispatch({\n type: ErrorConstant.ERROR, payload:\n {\n message: i18n.t(\"error.eovlastenja\"),\n action: () => { }\n }\n }\n )\n })\n };\n}","import React from \"react\";\nimport { NavigationService } from \"../../../common\";\nimport { EBusinessNavigationRouting } from \"./e-business.routing\";\n\nconst EBusinessNavigationRoutingComponent = () => {\n return (\n
\n {NavigationService.generateRoutes(EBusinessNavigationRouting())}\n
\n );\n}\n\nexport default EBusinessNavigationRoutingComponent;\n\n\n","import { RouteInterface } from \"../../../common/interfaces/framework/routing.interface\";\nimport { AppRoutes } from \"../../../common\";\nimport { ApplyRoles } from \"../pages/apply-roles/apply-roles.component\";\n\nexport const EBusinessNavigationRouting = (): Array => {\n return [\n { path: AppRoutes.EBusiness.ApplyRoles, component: ApplyRoles, exact: true },\n ]\n}","import React from \"react\";\nimport { AuthStateInterface, StoreStateInterface, actionLogout, NavigationService, AppRoutes } from \"../../../common\";\nimport { connect } from \"react-redux\";\nimport keycloak from \"../../../keycloak\";\n\ninterface Props {\n auth: AuthStateInterface;\n actionLogout: () => void;\n}\n\nexport class LogoutComponent extends React.Component {\n componentDidMount() {\n setTimeout(() => {\n if (this.props.auth.isAuthentificated) {\n keycloak.logout();\n this.props.actionLogout();\n } else {\n NavigationService.navigate(AppRoutes.Landing.Index)\n }\n }, 1000)\n }\n\n render() {\n return (\n
\n Preusmjeravam...\n
\n );\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n auth: state.auth\n }\n}\n\nconst actions = {\n actionLogout\n};\n\nexport default connect(\n mapStateToProps,\n actions\n)(LogoutComponent);","import { withKeycloak } from '@react-keycloak/web';\nimport { KeycloakInstance } from \"keycloak-js\";\nimport React from \"react\";\nimport { connect } from \"react-redux\";\nimport { AppRoutes, NavigationService, QueryParamsConstant, StoreStateInterface } from \"../../../../common\";\nimport { AuthStateInterface, actionLogout, persistor } from '../../../../common/redux';\nimport keycloak from '../../../../keycloak';\n\ntype PropsType = {\n actionLogout: () => void;\n auth: AuthStateInterface;\n keycloakInitialized: boolean;\n keycloak: KeycloakInstance;\n}\n\n\nexport class LogoutRedirectComponent extends React.Component {\n componentDidMount() {\n setTimeout(() => {\n localStorage.removeItem(\"initialUser\")\n if (this.props.auth.isAuthentificated) {\n persistor.purge();\n this.props.keycloak.logout();\n } else {\n window.location.href = \"/\"\n }\n }, 1000)\n }\n\n render() {\n return (\n
\n Preusmjeravanje...\n
\n );\n }\n}\n\nconst mapStateToProps = (state: StoreStateInterface) => {\n return {\n auth: state.auth\n }\n}\n\nconst actions = {\n actionLogout\n};\n\nconst redux = connect(\n mapStateToProps,\n actions\n)(LogoutRedirectComponent);\n\nexport default withKeycloak(redux)\n","import { ThemeProvider, createMuiTheme } from '@material-ui/core/styles';\nimport { ReactKeycloakProvider } from '@react-keycloak/web';\nimport { KeycloakError } from \"keycloak-js\";\nimport React from \"react\";\nimport { Provider as ReduxProvider } from 'react-redux';\nimport { BrowserRouter as Router } from \"react-router-dom\";\nimport { PersistGate } from \"redux-persist/integration/react\";\nimport { AppRoutes, AuthConstant, BlockUIConstant, ErrorConstant, NavigationService, SubjectService, UserInterface, persistor, setLang, store } from \"../../../common\";\nimport keycloak from '../../../keycloak';\nimport { MainNavigationRouting } from \"./main.routing\";\n\ntype Props = {};\n\ninterface State {\n fontSize: string;\n oib?: any;\n showOdjava: boolean;\n refreshLoop: boolean;\n}\n\nexport class MainNavigationRoutingComponent extends React.Component {\n private interval: any;\n private headerInterval: any;\n\n constructor(props: Props) {\n super(props);\n\n this.state = {\n fontSize: \"16px\",\n showOdjava: false,\n refreshLoop: false\n }\n }\n\n getStyle(el: any, styleProp: any) {\n var value, defaultView = (el.ownerDocument || document).defaultView;\n // W3C standard way:\n if (defaultView && defaultView.getComputedStyle) {\n // sanitize property name to css notation\n // (hypen separated words eg. font-Size)\n styleProp = styleProp.replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);\n } else if (el.currentStyle) { // IE\n // sanitize property name to camelCase\n /* eslint-disable-next-line*/\n styleProp = styleProp.replace(/\\-(\\w)/g, function (str: any, letter: any) {\n return letter.toUpperCase();\n });\n value = el.currentStyle[styleProp];\n // convert other units to pixels on IE\n /* eslint-disable-next-line*/\n if (/\\d+(em|pt|%|ex)?$/i.test(value)) {\n return (function (value) {\n var oldLeft = el.style.left, oldRsLeft = el.runtimeStyle.left;\n el.runtimeStyle.left = el.currentStyle.left;\n el.style.left = value || 0;\n value = el.style.pixelLeft + \"px\";\n el.style.left = oldLeft;\n el.runtimeStyle.left = oldRsLeft;\n return value;\n })(value);\n }\n return value;\n }\n }\n\n componentDidUpdate() {\n let size = parseFloat(this.state.fontSize.replace(\"px\", ''));\n document.getElementsByTagName('body')[0].style.fontSize = (size / 16 * 100).toString() + \"%\";\n }\n\n private getCookie(cname: string): string {\n var name = cname + \"=\";\n var decodedCookie = decodeURIComponent(document.cookie);\n var ca = decodedCookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) === ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) === 0) {\n return c.substring(name.length, c.length);\n }\n }\n return \"\";\n }\n\n refreshLang() {\n this.setState({ refreshLoop: !this.state.refreshLoop })\n }\n\n componentDidMount() {\n document.addEventListener(\"refreshLang\", this.refreshLang.bind(this))\n\n this.interval = setInterval(() => {\n //@ts-ignore\n if (this.getCookie(\"cookieImpaired\") === \"da\" && !document.body.classList.contains(\"dark\")) {\n //@ts-ignore\n document.body.classList.add(\"dark\");\n //@ts-ignore\n } else if (this.getCookie(\"cookieImpaired\") !== \"da\" && document.body.classList.contains(\"dark\")) {\n //@ts-ignore\n document.body.classList.remove(\"dark\");\n }\n }\n , 1000)\n\n this.headerInterval = setInterval(() => {\n if (window.location.href.includes(\"/aplikacije\") && !this.state.showOdjava) {\n this.setState({ showOdjava: true })\n } else if (!window.location.href.includes(\"/aplikacije\") && this.state.showOdjava) {\n this.setState({ showOdjava: false })\n }\n }\n , 1000)\n }\n\n componentWillUnmount() {\n clearInterval(this.interval);\n clearInterval(this.headerInterval);\n document.removeEventListener(\"refreshLang\", this.refreshLang.bind(this))\n }\n\n render() {\n const theme = createMuiTheme({\n palette: {\n primary: {\n main: \"#41927F\"\n }\n },\n zIndex: {\n appBar: 100000\n },\n });\n\n setInterval(() => {\n let filterHolder = document.getElementById(\"filter_holder\");\n if (filterHolder !== null)\n if (this.getStyle(filterHolder, \"font-size\") !== this.state.fontSize)\n this.setState({ fontSize: this.getStyle(filterHolder, \"font-size\") })\n }, 1000);\n return (\n\n {\n if (!store.getState().auth.isAuthentificated && !!keycloak && !!keycloak.tokenParsed && (keycloak!.tokenParsed! as any).OznakaDrzaveEid !== \"HR\" && eventType === \"onAuthSuccess\") {\n setLang(\"en\")\n }\n if (!store.getState().auth.isAuthentificated && !!keycloak && !!keycloak.tokenParsed && eventType === \"onAuthSuccess\") {\n localStorage.setItem(\"entitySearch\", \"1\")\n localStorage.removeItem('ENTITY_DATA');\n }\n if (window.location.href.includes(AppRoutes.Dashboard.LogoutRedirect)) return;\n if (keycloak.authenticated && !store.getState().auth.isAuthentificated && eventType === \"onAuthSuccess\") {\n let data: any = {\n token: keycloak.token,\n refresh_token: keycloak.refreshToken\n }\n //@ts-ignore\n let tokenParsed = keycloak!.tokenParsed! as any;\n let oib = tokenParsed.oib;\n if (oib === undefined) {\n oib = encodeURIComponent(tokenParsed.preferred_username);\n\n }\n let username = tokenParsed.preferred_username;\n SubjectService.getSubjectByOIB(oib, data.token).subscribe((user: UserInterface) => {\n if (user === null) return;\n user.username = username;\n data.user = user;\n data.MessageId = tokenParsed.MessageId;\n data.NavToken = tokenParsed.NavToken;\n store.dispatch({ type: AuthConstant.LOGIN, payload: data });\n store.dispatch({ type: BlockUIConstant.END });\n }, (error: any) => {\n if (localStorage.getItem(\"registerStarted\") === null && error.message.toString() === \"404\") {\n localStorage.setItem(\"registerStarted\", \"1\");\n SubjectService.createSubjectByOIB(oib, keycloak.token).subscribe((user: any) => {\n setTimeout(() => {\n let tokenParsed = keycloak!.tokenParsed! as any;\n SubjectService.getSubjectByOIB(oib, keycloak.token!).subscribe((user: UserInterface) => {\n let data: any = {\n token: keycloak.token,\n refresh_token: keycloak.refreshToken\n }\n data.user = user;\n data.user.username = tokenParsed.preferred_username;\n data.MessageId = tokenParsed.MessageId;\n data.NavToken = tokenParsed.NavToken;\n store.dispatch({ type: AuthConstant.LOGIN, payload: data });\n store.dispatch({ type: BlockUIConstant.END });\n });\n }, 1000);\n }, (error: any) => {\n store.dispatch({\n type: ErrorConstant.ERROR, payload:\n {\n message: \"Greška kod kreiranja korisnika\",\n action: () => { }\n }\n }\n )\n keycloak.logout();\n store.dispatch({ type: BlockUIConstant.END });\n })\n }\n }\n )\n } else {\n store.dispatch({ type: BlockUIConstant.END });\n }\n }}>\n \n \n
\n \n \n \n
\n
\n
\n\n );\n }\n}\n\n\nclass Routes extends React.Component<{}> {\n render() {\n return (\n <>\n \n NavigationService.setTopLevelNavigator(navigatorRef)\n }>\n {NavigationService.generateRoutes(MainNavigationRouting())}\n \n \n );\n }\n}\n\n\n\n\n\n","import { RouteInterface } from \"../../../common/interfaces/framework/routing.interface\";\nimport LandingNavigationRoutingComponent from \"../../landing/navigation/landing.routing.component\";\nimport { AppRoutes, RouteProtectionLevel } from \"../../../common\";\nimport DashboardRoutingComponent from \"../../dashboard/navigation/dashboard.component\";\nimport EbusinessRoutingComponent from \"../../e-business/navigation/e-business.component\";\nimport LogoutComponent from \"../pages/logout.component\";\nimport LogoutRedirectComponent from \"../../dashboard/pages/logoutRedirect/logoutRedirect.component\";\n\nexport const MainNavigationRouting = (): Array => {\n return [\n { path: AppRoutes.Dashboard.LogoutRedirect, component: LogoutRedirectComponent, exact: true },\n { path: AppRoutes.Dashboard.Logout, component: LogoutComponent, exact: true },\n { path: AppRoutes.EBusiness.ApplyRoles, component: EbusinessRoutingComponent, exact: true },\n { path: AppRoutes.Dashboard.Index, component: DashboardRoutingComponent, guard: RouteProtectionLevel.AUTH_ONLY, exact: false },\n { path: AppRoutes.Landing.Index, component: LandingNavigationRoutingComponent, guard: RouteProtectionLevel.GUEST_ONLY, exact: 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: any) {\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: any, config: any) {\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: any, config: any) {\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\n .then(registration => {\n registration.unregister();\n })\n .catch(error => {\n console.error(error.message);\n });\n }\n}\n","import 'react-app-polyfill/ie11';\nimport 'react-app-polyfill/stable';\nimport 'core-js/stable';\nimport 'regenerator-runtime/runtime';\nimport 'html5-history-api';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport '../index.scss';\nimport { MainNavigationRoutingComponent } from '../features/main/navigation/main.routing.component';\nimport * as serviceWorker from '../serviceWorker';\nimport './global.scss';\n\nReactDOM.render(\n ,\n document.getElementById('root')\n);\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 './bootstrap';\nimport ReactGA from 'react-ga4';\n\nReactGA.initialize(process.env.REACT_APP_TRACKING_ID || \"\");","export const ErrorConstant = {\n ERROR: 'error',\n REFRESH: 'error_refresh'\n}","import { Dispatch } from \"redux\";\nimport { ErrorConstant } from \"./error.constant\";\n\nexport function actionRefreshError() {\n return (dispatch: Dispatch) => {\n dispatch({type: ErrorConstant.REFRESH});\n };\n }\n ","import { AnyAction } from \"redux\";\nimport { ErrorConstant } from \"./error.constant\";\nimport { ErrorPayloadInterface } from \"../../../interfaces\";\n\nexport interface ErrorStateInterface {\n error: boolean;\n message?: string;\n action?: () => void;\n}\n\nconst initialState: ErrorStateInterface = {\n error: false\n}\n\nexport const error = (payload: ErrorPayloadInterface): ErrorStateInterface => {\n return {\n error: true,\n message: payload.message,\n action: payload.action\n }\n}\n\nexport const refresh = () => {\n return {\n error: false\n }\n}\n\n\n\nexport function errorReducer(state: ErrorStateInterface = initialState, action: AnyAction): ErrorStateInterface {\n switch(action.type) {\n case ErrorConstant.ERROR: return error(action.payload);\n case ErrorConstant.REFRESH: return refresh();\n }\n return state;\n}\n","export const BlockUIConstant = {\n START: 'start_block',\n END: 'end_block'\n}","import { Dispatch } from \"redux\";\nimport { BlockUIConstant } from \"./blockUI.constant\";\n\nexport function actionBlockUI() {\n return (dispatch: Dispatch) => {\n dispatch({ type: BlockUIConstant.START });\n };\n}\n\nexport function actionUnblockUI() {\n return (dispatch: Dispatch) => {\n dispatch({ type: BlockUIConstant.END });\n };\n}\n","import { combineReducers } from \"redux\";\nimport { errorReducer } from \"./error\";\nimport { blockUIReducer } from \"./blockUI\";\n\nexport const BaseReducers = combineReducers({\n error: errorReducer,\n blockUI: blockUIReducer\n});\n","import { AnyAction } from \"redux\";\nimport { BlockUIConstant } from \"./blockUI.constant\";\n\n\n\nconst initialState: boolean = false;\n\nexport const block = (): boolean => true;\n\nexport const unblock = (): boolean => false;\n\nexport function blockUIReducer(state: boolean = initialState, action: AnyAction): boolean {\n switch(action.type) {\n case BlockUIConstant.START: return block();\n case BlockUIConstant.END: return unblock();\n }\n return state;\n}\n","export * from './abstract.api.service';\nexport * from './api.routes';\nexport * from './api.service';","export const EBusinessConstant = {\n AUTH_FORM: 'auth_form',\n PERMISSIONS: 'permissions',\n GRANT_ACCESS: 'grant_access'\n}","import { createStore, applyMiddleware, compose } from \"redux\";\n//import { composeWithDevTools } from 'redux-devtools-extension';\nimport thunk from \"redux-thunk\";\nimport { AppReducers } from \"./index.reducer\";\nimport { persistStore, persistReducer } from 'redux-persist'\nimport storage from 'redux-persist/lib/storage'\n\nconst persistConfig = {\n key: 'epoljoprivreda',\n storage,\n whitelist: ['auth', 'base']\n}\n\nconst persistedReducer = persistReducer(persistConfig, AppReducers)\n\nconst initialState = {};\n\nconst middleware = [thunk];\n\nexport const store = createStore(\n persistedReducer,\n initialState,\n //composeWithDevTools(applyMiddleware(...middleware))\n compose(applyMiddleware(...middleware))\n);\n\nexport const persistor = persistStore(store)\n\n"],"sourceRoot":""}