{"version":3,"file":"helseregistre.BCbjC_eg.js","sources":["../../../src/helseregistre/registre/innloggingsknapp.tsx","../../../src/helseregistre/registre/registre-utils.tsx","../../../src/helseregistre/registre/registre.ts","../../../src/helseregistre/registre/registre-component/filter-utils.tsx","../../../src/helseregistre/store/hooks.ts","../../../src/helseregistre/registre/dialogknapp.tsx","../../../src/helseregistre/registre/register-melding/utils.ts","../../../src/helseregistre/registre/register-melding/bestill-innsyn/bestillinger-status.tsx","../../../src/helseregistre/registre/register-melding/bestill-innsyn/bestillinger-status-i-lightbox.tsx","../../../src/helseregistre/registre/register-dialog-types.ts","../../../src/helseregistre/registre/register-melding/register-melding.ts","../../../src/helseregistre/registre/register-melding/bestill-innsyn/innsyn-foresporsel-modal.tsx","../../../src/helseregistre/registre/register-melding/bestill-innsyn/index.tsx","../../../src/helseregistre/registre/register-melding/melde-feil-button.tsx","../../../src/helseregistre/registre/register-melding/index.tsx","../../../src/felles-components/innsynslink-button.tsx","../../../src/helseregistre/registre/register-detaljer.tsx","../../../src/helseregistre/registre/registrelist/registerliste-component.tsx","../../../src/helseregistre/registre/registre-component/registre-component.tsx","../../../src/helseregistre/registre/index.tsx","../../../src/helseregistre/registre/register-melding/message-submit/melde-feil-form.tsx","../../../src/helseregistre/registre/register-melding/message-submit/index.tsx","../../../src/helseregistre/routes.tsx","../../../src/helseregistre/store/reducer.ts","../../../src/helseregistre/store/index.ts","../../../src/helseregistre/index.tsx"],"sourcesContent":["import { FC } from 'react';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\ninterface Props {\n buttonText: string;\n}\n\nexport const Innloggingsknapp: FC = ({ buttonText }) => {\n return (\n <>\n \n \n \n );\n};\n","import { HNHelseregistreJS } from 'HNResources';\n\nimport { Register, TextMessage } from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nexport const getErrorMessage = (error: TextMessage | undefined, resources: HNHelseregistreJS | undefined): TextMessage | undefined => {\n if (error) {\n return error.Title === 'error' && error.Body === 'error' && resources\n ? { Title: resources.default_ErrorMessage_Title, Body: resources.default_ErrorMessage_Body }\n : error;\n } else {\n return undefined;\n }\n};\n\nexport const sortRegistre = (registre: Array): Register[] => {\n return registre.slice().sort((a, b) => (a.Navn ? a.Navn.localeCompare(b.Navn ?? '') : 0));\n};\n","import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';\n\nimport {\n GetRegisteroppforingPortalResponse,\n Register,\n RegisterOppforingRequest,\n RegisterOppforingResponse,\n TextMessage,\n} from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\nimport { get } from '@helsenorge/framework-utils/hn-proxy-service';\n\nimport { sortRegistre } from './registre-utils';\nimport { GlobalState } from '../store/reducer';\n\nexport interface RegistreState {\n loading: boolean;\n loaded: boolean;\n error: boolean;\n registerliste: Array;\n warningMessage: TextMessage | null;\n informationMessage: TextMessage | null;\n retryInnsynOrkestrator: boolean;\n}\n\nexport const initialState: RegistreState = {\n registerliste: [],\n loading: false,\n loaded: false,\n error: false,\n warningMessage: null,\n informationMessage: null,\n retryInnsynOrkestrator: false,\n};\n\nexport const fetchRegisterliste = createAsyncThunk(\n 'helseregistre/GET',\n ({ RetryInnsynOrkestrator }: Partial) =>\n get('helseregistre', 'api/v1/Registeroppforing', {\n RetryInnsynOrkestrator: RetryInnsynOrkestrator ?? false,\n }),\n {\n condition: (args, { getState }) => {\n const state = (getState() as GlobalState).registre;\n return !state.loading && (!state.loaded || (args.RetryInnsynOrkestrator && state.retryInnsynOrkestrator));\n },\n }\n);\n\nexport const fetchRegisterlistePortal = createAsyncThunk(\n 'helseregistre/GET/Portal',\n () => get('helseregistre', 'api/v1/GetRegisteroppforingPortal'),\n {\n condition: (_args, { getState }) => {\n const state = (getState() as GlobalState).registre;\n return !state.loading && !isAuthorized() && !state.loaded;\n },\n }\n);\n\nconst registerSlice = createSlice({\n name: 'registre',\n initialState,\n reducers: {},\n extraReducers: builder => {\n builder\n .addCase(fetchRegisterliste.pending, state => {\n state.loading = true;\n })\n .addCase(fetchRegisterliste.fulfilled, (state, action) => {\n state.loading = false;\n state.loaded = true;\n if (action.payload && Object.keys(action.payload).length > 0) {\n const { Registre, WarningMessage, InformationMessage } = action.payload;\n state.registerliste = Registre ?? [];\n state.warningMessage = WarningMessage;\n state.informationMessage = InformationMessage;\n state.retryInnsynOrkestrator = InformationMessage ? true : false;\n }\n })\n .addCase(fetchRegisterliste.rejected, state => {\n state.error = true;\n state.loading = false;\n })\n .addCase(fetchRegisterlistePortal.pending, state => {\n state.loading = true;\n })\n .addCase(fetchRegisterlistePortal.fulfilled, (state, action) => {\n state.loading = false;\n if (action.payload && Object.keys(action.payload).length > 0) {\n const payload = action.payload as GetRegisteroppforingPortalResponse;\n state.registerliste = payload.Registre ? sortRegistre(payload.Registre) : [];\n }\n })\n .addCase(fetchRegisterlistePortal.rejected, state => {\n state.error = true;\n state.loading = false;\n });\n },\n});\n\nexport default registerSlice.reducer;\n","import { Register } from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\n\nexport const getFilterRegisterliste = (shouldFilter: boolean, registerliste: Register[] | undefined): Register[] | undefined => {\n return shouldFilter && isAuthorized() && registerliste\n ? registerliste.filter((register: Register) => {\n return register.HasDialog || !!register.Innsynslenke;\n })\n : registerliste;\n};\n","import { useDispatch, useSelector } from 'react-redux';\n\nimport type { RootState, AppDispatch } from '.';\n\nexport const useAppDispatch = useDispatch.withTypes();\n\nexport const useAppSelector = useSelector.withTypes();\n","import { FC } from 'react';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\ninterface DialogknappProps {\n buttonText: string;\n}\n\nexport const Dialogknapp: FC = ({ buttonText }) => {\n return (\n <>\n \n \n \n );\n};\n","import { HNHelseregistreJS } from 'HNResources';\n\nimport { RegisterDialog, RegisterDialogData } from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport { RegisterDialogType } from '../../../types/Helsenorge.Helseregistre.InternalAPI.EntitiesEnums';\n\nexport const getInnsynDialogTyper = (registerDialog: RegisterDialog | null): RegisterDialog | null => {\n if (registerDialog && registerDialog.DialogTypes) {\n const filteredDialogTypes = registerDialog.DialogTypes.filter(d => d.ErInnsyn);\n return {\n ...registerDialog,\n DialogTypes: filteredDialogTypes,\n };\n }\n\n return registerDialog;\n};\nexport const getHashForInnsynDialogType = (dialogTyper?: Array | null): string | undefined | null => {\n if (dialogTyper) {\n return dialogTyper\n .map((rd: RegisterDialogData) => {\n return rd.ControlHash;\n })\n .find(d => !!d);\n }\n\n return undefined;\n};\n\nexport const getRegisterDialogTypeForMeldeFeil = (\n registerDialogtyper: RegisterDialog | null | undefined\n): RegisterDialogData | undefined | null => {\n return (\n registerDialogtyper &&\n registerDialogtyper.DialogTypes &&\n registerDialogtyper.DialogTypes.find((dialogType: RegisterDialogData) => {\n return dialogType.DialogType === RegisterDialogType.RegisterMeldeFeil && dialogType.ControlHash;\n })\n );\n};\n\nexport const getDialogTypeBeskrivelse = (registerDialogType: RegisterDialogType, resources: HNHelseregistreJS): string | undefined => {\n switch (registerDialogType) {\n case RegisterDialogType.RegisterInnsynOpplysninger:\n return resources.bestillInnsynLightBoxDialog1;\n case RegisterDialogType.RegisterInnsynUtlevering:\n return resources.bestillInnsynLightBoxDialog2;\n case RegisterDialogType.RegisterLoggOverBruk:\n return resources.bestillInnsynLightBoxDialog3;\n case RegisterDialogType.RegisterMeldeFeil:\n return resources.bestillInnsynLightBoxDialog4;\n }\n};\n\nexport const harApenDialog = (dialogTyper: RegisterDialog): boolean => {\n return !!dialogTyper && !!dialogTyper.DialogTypes && dialogTyper.DialogTypes.filter(e => !e.Blokkert).length > 0;\n};\n","import React, { FC } from 'react';\n\nimport { RegisterDialogData } from '../../../../types/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\nimport { HNHelseregistreJS } from '../../../../types/Resources';\n\nimport NotificationPanel from '@helsenorge/designsystem-react/components/NotificationPanel';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\nimport { shortDateNumbers } from '@helsenorge/core-utils/date-fns-utils';\nimport SafeHTML from '@helsenorge/framework-utils/components/safe-html';\n\nimport { getDialogTypeBeskrivelse } from '../utils';\n\ninterface Props {\n dialogTypes: RegisterDialogData[] | null;\n resources: HNHelseregistreJS;\n}\n\nexport const BestillingerStatus: FC = ({ dialogTypes, resources }): React.JSX.Element => {\n let bestillingHarFeilet = false;\n\n const blokkerteDialoger =\n dialogTypes &&\n dialogTypes.reduce((blokkerte: React.JSX.Element[], dialog: RegisterDialogData) => {\n if (dialog.Blokkert) {\n blokkerte.push(\n
  • \n {getDialogTypeBeskrivelse(dialog.DialogType, resources)}\n {dialog.ForespurtTid ? ` (${shortDateNumbers(new Date(dialog.ForespurtTid))})` : ''}\n
  • \n );\n }\n\n if (dialog.Feilet) {\n bestillingHarFeilet = true;\n }\n return blokkerte;\n }, []);\n\n return (\n <>\n {blokkerteDialoger && blokkerteDialoger.length > 0 && (\n <>\n \n \n {[
      {blokkerteDialoger}
    ]}\n \n
    \n \n \n )}\n {bestillingHarFeilet && (\n <>\n \n {resources.bestillInnsyn_Error_Body}\n \n \n )}\n \n );\n};\n","import React, { FC } from 'react';\n\nimport { RegisterDialogData } from '../../../../types/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\nimport { HNHelseregistreJS } from '../../../../types/Resources';\n\nimport NotificationPanel from '@helsenorge/designsystem-react/components/NotificationPanel';\n\nimport { shortDateNumbers } from '@helsenorge/core-utils/date-fns-utils';\n\nimport { getDialogTypeBeskrivelse } from '../utils';\n\ninterface Props {\n dialogTypes: RegisterDialogData[] | null;\n resources: HNHelseregistreJS;\n}\n\nexport const BestillingerStatusILightBox: FC = ({ dialogTypes, resources }): React.JSX.Element | null => {\n const blokkerteDialoger =\n dialogTypes &&\n dialogTypes.reduce((blokkerte: React.JSX.Element[], dialog: RegisterDialogData) => {\n if (dialog.Blokkert) {\n blokkerte.push(\n
  • \n {getDialogTypeBeskrivelse(dialog.DialogType, resources)}{' '}\n {dialog.ForespurtTid ? ` (${shortDateNumbers(new Date(dialog.ForespurtTid))})` : ''}\n
  • \n );\n }\n return blokkerte;\n }, []);\n\n return blokkerteDialoger && blokkerteDialoger.length > 0 ? (\n {[
      {blokkerteDialoger}
    ]}
    \n ) : null;\n};\n","import { PayloadAction, createAsyncThunk, createSlice } from '@reduxjs/toolkit';\n\nimport {\n RegisterDialog,\n RegisterDialogRequest,\n RegisterDialogResponse,\n} from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport { get } from '@helsenorge/framework-utils/hn-proxy-service';\n\nimport { GlobalState } from '../store/reducer';\n\nexport const initialRegisterDialogState: RegisterDialogTypesState = {\n RegisterDialoger: {},\n};\nexport interface RegisterDialogTypesState {\n RegisterDialoger: {\n [key: string]: {\n loading: boolean;\n loaded: boolean;\n error: boolean;\n registerDialog?: RegisterDialog | null;\n };\n };\n}\n\nexport const generateUniqueKey = (args: RegisterDialogRequest): string =>\n JSON.stringify({ RegisterId: args.RegisterId, HerId: args.HerId });\n\nexport const keyCanExist = (args: RegisterDialogRequest, state: Partial): boolean => {\n const hasRegisterId = Array.isArray(args.RegisterId) && args.RegisterId.length > 0;\n const uniqueKeyFromRegisterIdAndHerId = generateUniqueKey(args);\n return (hasRegisterId || !!args.HerId) && !!state.RegisterDialoger && !(uniqueKeyFromRegisterIdAndHerId in state.RegisterDialoger);\n};\n\nexport const fetchRegisterDialogTyper = createAsyncThunk(\n 'registerdialog/GET',\n async ({ RegisterId, HerId }: RegisterDialogRequest) => {\n return await get('helseregistre', 'api/v1/RegisterDialog', {\n RegisterId: RegisterId ?? '',\n HerId: HerId,\n });\n },\n {\n condition: (args: RegisterDialogRequest, { getState }) => {\n const state = (getState() as GlobalState).registerdialogtypes;\n const key = generateUniqueKey(args);\n\n return (\n !!key &&\n keyCanExist(args, state) &&\n state.RegisterDialoger[key] &&\n !state.RegisterDialoger[key].loaded &&\n !state.RegisterDialoger[key].error\n );\n },\n }\n);\nconst registerDialogSlice = createSlice({\n name: 'registerdialog',\n initialState: initialRegisterDialogState,\n reducers: {\n REMOVE_KEY(state: RegisterDialogTypesState, action: PayloadAction) {\n const key = generateUniqueKey(action.payload);\n if (key) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [key]: _, ...newRegisterDialoger } = state.RegisterDialoger;\n state.RegisterDialoger = newRegisterDialoger;\n }\n },\n },\n extraReducers: builder => {\n builder.addCase(fetchRegisterDialogTyper.pending, (state: RegisterDialogTypesState, action) => {\n const uniqueKeyFromRegisterIdAndHerId = generateUniqueKey(action.meta.arg);\n if (keyCanExist(action.meta.arg, state)) {\n state.RegisterDialoger[uniqueKeyFromRegisterIdAndHerId] = {\n loading: true,\n loaded: false,\n error: false,\n registerDialog: null,\n };\n }\n });\n builder.addCase(fetchRegisterDialogTyper.rejected, (state: RegisterDialogTypesState, action) => {\n const uniqueKeyFromRegisterIdAndHerId = generateUniqueKey(action.meta.arg);\n\n if (uniqueKeyFromRegisterIdAndHerId) {\n state.RegisterDialoger[uniqueKeyFromRegisterIdAndHerId] = {\n loading: false,\n loaded: false,\n error: true,\n registerDialog: null,\n };\n }\n });\n builder.addCase(fetchRegisterDialogTyper.fulfilled, (state: RegisterDialogTypesState, action) => {\n if (action.payload) {\n const uniqueKeyFromRegisterIdAndHerId = generateUniqueKey(action.meta.arg);\n if (uniqueKeyFromRegisterIdAndHerId) {\n state.RegisterDialoger[uniqueKeyFromRegisterIdAndHerId] = {\n loading: false,\n loaded: true,\n error: false,\n registerDialog: action.payload.RegisterDialog,\n };\n }\n }\n });\n },\n});\n\nexport const { REMOVE_KEY } = registerDialogSlice.actions;\n\nexport default registerDialogSlice.reducer;\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nimport {\n Register,\n RegisterMeldeFeilRequest,\n SendRegisterInnsynForesporselRequest,\n RegisterDialog,\n RegisterDialogData,\n RegisterDialogRequest,\n} from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\nimport HNThunkDispatch from 'HNEntities/temp-thunk-dispatch';\n\nimport { RegisterDialogType } from '../../../types/Helsenorge.Helseregistre.InternalAPI.EntitiesEnums';\n\nimport { post } from '@helsenorge/framework-utils/hn-proxy-service';\n\nimport { fetchRegisterDialogTyper, REMOVE_KEY } from '../register-dialog-types';\n\nexport enum loadingstate {\n started = 0,\n inProgess = 1,\n done = 2,\n error = 3,\n}\n\nexport interface RegisterMeldingState {\n sendingMeldeFeil: boolean;\n sentMeldeFeil: boolean;\n meldeFeilError: boolean;\n meldeFeilRegister: Register | null;\n meldeFeilControlHash: string | null;\n processingRegisterId: string | null;\n loading: boolean;\n innsendingStatus?: loadingstate;\n innsynForesporselError: boolean;\n}\n\nexport const initialState: RegisterMeldingState = {\n sendingMeldeFeil: false,\n sentMeldeFeil: false,\n meldeFeilError: false,\n meldeFeilRegister: null,\n meldeFeilControlHash: null,\n loading: false,\n innsendingStatus: loadingstate.started,\n processingRegisterId: null,\n innsynForesporselError: false,\n};\n\nconst meldingSlice = createSlice({\n name: 'registerMelding',\n initialState,\n reducers: {\n REGISTER_INNSYN_RESET(state: RegisterMeldingState) {\n state.innsynForesporselError = false;\n state.innsendingStatus = loadingstate.started;\n state.processingRegisterId = null;\n },\n REGISTER_INNSYN_ERROR(state: RegisterMeldingState) {\n state.loading = false;\n state.innsynForesporselError = true;\n state.innsendingStatus = loadingstate.error;\n },\n REGISTER_INNSYN_LOADING(state: RegisterMeldingState, action: PayloadAction) {\n state.loading = true;\n state.innsendingStatus = loadingstate.inProgess;\n state.processingRegisterId = action.payload;\n },\n REGISTER_INNSYN_SUCCESS(state: RegisterMeldingState) {\n state.loading = false;\n state.innsendingStatus = loadingstate.done;\n },\n SUBMIT_MESSAGE_SET_REGISTER(state: RegisterMeldingState, action: PayloadAction) {\n state.meldeFeilRegister = action.payload;\n },\n SUBMIT_MESSAGE_SET_CONTROLHASH(state: RegisterMeldingState, action: PayloadAction) {\n state.meldeFeilControlHash = action.payload;\n },\n SUBMIT_MESSAGE(state: RegisterMeldingState) {\n state.sendingMeldeFeil = true;\n },\n SUBMIT_MESSAGE_SUCCESS(state: RegisterMeldingState) {\n state.sendingMeldeFeil = false;\n state.sentMeldeFeil = true;\n },\n SUBMIT_MESSAGE_FAIL(state: RegisterMeldingState) {\n state.sendingMeldeFeil = false;\n state.meldeFeilError = true;\n },\n SUBMIT_MESSAGE_DISMISS(state: RegisterMeldingState) {\n state.meldeFeilError = false;\n state.sentMeldeFeil = false;\n },\n },\n});\n\nexport const {\n REGISTER_INNSYN_RESET,\n REGISTER_INNSYN_ERROR,\n REGISTER_INNSYN_LOADING,\n REGISTER_INNSYN_SUCCESS,\n SUBMIT_MESSAGE,\n SUBMIT_MESSAGE_SUCCESS,\n SUBMIT_MESSAGE_FAIL,\n SUBMIT_MESSAGE_DISMISS,\n SUBMIT_MESSAGE_SET_REGISTER,\n SUBMIT_MESSAGE_SET_CONTROLHASH,\n} = meldingSlice.actions;\n\nexport function getRegisterDialogData(\n registerDialog: RegisterDialog | undefined,\n dialogType: RegisterDialogType\n): RegisterDialogData | undefined {\n if (registerDialog && registerDialog.DialogTypes) {\n return registerDialog.DialogTypes.find(o => o.DialogType === dialogType);\n }\n\n return undefined;\n}\n\nexport const SendInnsynBestilling = (dialogTyper: RegisterDialogType[], register: Register, controlHash?: string | null) => {\n return (dispatch: HNThunkDispatch): null => {\n if (register.HerId) {\n const payload: SendRegisterInnsynForesporselRequest = {\n RegisterId: register.RegisterId,\n RegisterNavn: register.Navn,\n HerId: register.HerId,\n DialogType: dialogTyper,\n ControlHash: controlHash ?? '',\n };\n dispatch(REGISTER_INNSYN_LOADING(register.RegisterId));\n post('helseregistre', 'api/v1/SendRegisterInnsynForesporsel', payload)\n .then(() => {\n dispatch(REGISTER_INNSYN_SUCCESS());\n if (register.HerId && register.RegisterId) {\n const arg: RegisterDialogRequest = {\n HerId: register.HerId,\n RegisterId: register.RegisterId,\n };\n dispatch(REMOVE_KEY(arg));\n dispatch(fetchRegisterDialogTyper(arg));\n }\n })\n .catch(() => {\n dispatch(REGISTER_INNSYN_ERROR());\n if (register.HerId && register.RegisterId) {\n const arg: RegisterDialogRequest = {\n HerId: register.HerId,\n RegisterId: register.RegisterId,\n };\n dispatch(REMOVE_KEY(arg));\n dispatch(fetchRegisterDialogTyper(arg));\n }\n });\n }\n\n return null;\n };\n};\n\nexport const submitMessage = (message: string, register: Register, controlHash: string) => {\n return (dispatch: HNThunkDispatch): null => {\n dispatch(SUBMIT_MESSAGE());\n\n if (register.HerId && register.Databehandlingsansvarlig && register.Navn && register?.RegisterId) {\n const payload: RegisterMeldeFeilRequest = {\n MeldingTekst: message,\n HerId: register.HerId,\n RegisterId: register.RegisterId,\n RegisterNavn: register.Navn,\n ControlHash: controlHash,\n };\n\n post('helseregistre', 'api/v1/RegisterMeldeFeil', payload)\n .then(() => {\n dispatch(SUBMIT_MESSAGE_SUCCESS());\n })\n .catch(() => {\n dispatch(SUBMIT_MESSAGE_FAIL());\n });\n }\n return null;\n };\n};\n\nexport default meldingSlice.reducer;\n","import { useState, FC } from 'react';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { HRServiceAction, HRServiceName } from '../../../../types/AdobeEnums';\nimport { Register, RegisterDialogData } from '../../../../types/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\nimport { RegisterDialogType } from '../../../../types/Helsenorge.Helseregistre.InternalAPI.EntitiesEnums';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport Checkbox from '@helsenorge/designsystem-react/components/Checkbox';\nimport Loader from '@helsenorge/designsystem-react/components/Loader';\nimport Modal from '@helsenorge/designsystem-react/components/Modal';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\nimport { trackSelfService } from '@helsenorge/framework-utils/adobe-analytics';\n\nimport { BestillingerStatusILightBox } from './bestillinger-status-i-lightbox';\nimport { useAppDispatch } from '../../../store/hooks';\nimport { SendInnsynBestilling } from '../register-melding';\nimport { getHashForInnsynDialogType, getDialogTypeBeskrivelse } from '../utils';\n\nexport interface Props {\n resources: HNHelseregistreJS;\n dialogTypes: RegisterDialogData[] | null;\n register: Register;\n loading: boolean;\n\n closeDialogModal: () => void;\n}\n\nconst InnsynForesporselModal: FC = ({ resources, register, loading, closeDialogModal, dialogTypes }) => {\n const dispatch = useAppDispatch();\n\n const [selectedDialogTyper, setSelectedDialogTyper] = useState([]);\n\n const onChangeSelectedInnsyn = (e: RegisterDialogData): void => {\n const dialogerUtenomDenValgte = selectedDialogTyper.filter(dialogType => dialogType !== e.DialogType);\n\n if (dialogerUtenomDenValgte.length === selectedDialogTyper.length) {\n setSelectedDialogTyper([...selectedDialogTyper, e.DialogType]);\n } else {\n setSelectedDialogTyper(dialogerUtenomDenValgte);\n }\n };\n\n const sendInnsynBestilling = (): void => {\n trackSelfService('complete', HRServiceName.helseregistre, HRServiceAction.bestillInnsyn, 'prosess');\n dispatch(SendInnsynBestilling(selectedDialogTyper, register, getHashForInnsynDialogType(dialogTypes)));\n setSelectedDialogTyper([]);\n };\n\n return (\n {\n closeDialogModal();\n setSelectedDialogTyper([]);\n }}\n title={resources.bestillInnsynLightBoxHeader}\n disableCloseEvents\n >\n <>\n {loading && }\n \n \n {dialogTypes &&\n dialogTypes.map((e: RegisterDialogData, i: number) => {\n const checked = selectedDialogTyper.some(function (n: number) {\n return n === e.DialogType;\n });\n return (\n <>\n onChangeSelectedInnsyn(e)}\n />\n \n \n );\n })}\n \n \n \n \n \n );\n};\n\nexport default InnsynForesporselModal;\n","import { useState, useEffect, FC } from 'react';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { HRServiceAction, HRServiceName } from '../../../../types/AdobeEnums';\nimport { Register, RegisterDialog } from '../../../../types/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport Modal from '@helsenorge/designsystem-react/components/Modal';\n\nimport { trackSelfService } from '@helsenorge/framework-utils/adobe-analytics';\n\nimport { BestillingerStatus } from './bestillinger-status';\nimport InnsynForesporselModal from './innsyn-foresporsel-modal';\nimport { trackHealthRegisterName } from '../../../../utils/adobe-analytics';\nimport { useAppDispatch } from '../../../store/hooks';\nimport { loadingstate, REGISTER_INNSYN_RESET } from '../register-melding';\nimport { harApenDialog } from '../utils';\n\nexport interface Props {\n resources: HNHelseregistreJS;\n dialogTyper: RegisterDialog;\n register: Register;\n loading: boolean;\n innsendingStatus?: loadingstate;\n innsynForesporselError: boolean;\n processingRegisterId: string | null;\n}\n\nconst BestillInnsynComponent: FC = ({\n resources,\n dialogTyper,\n register,\n loading,\n innsendingStatus,\n innsynForesporselError,\n processingRegisterId,\n}) => {\n const dispatch = useAppDispatch();\n\n const [visDialogModal, setVisDialogModal] = useState(false);\n const [visDialogConfirm, setVisDialogConfirm] = useState(false);\n\n useEffect(() => {\n if (innsendingStatus === loadingstate.done && processingRegisterId === register.RegisterId) {\n setVisDialogConfirm(true);\n setVisDialogModal(false);\n }\n }, [innsendingStatus]);\n\n const closeDialogModal = (): void => {\n if (innsendingStatus === loadingstate.done || innsendingStatus === loadingstate.error) {\n dispatch(REGISTER_INNSYN_RESET());\n }\n setVisDialogModal(false);\n };\n\n const closeDialogConfirm = (): void => {\n dispatch(REGISTER_INNSYN_RESET());\n setVisDialogConfirm(false);\n };\n\n const closeDialogError = (): void => {\n dispatch(REGISTER_INNSYN_RESET());\n setVisDialogModal(false);\n };\n\n const dialogTypes = dialogTyper ? dialogTyper.DialogTypes : null;\n\n return (\n <>\n \n {\n if (register.Navn) {\n trackHealthRegisterName(register.Navn);\n }\n\n trackSelfService('start', HRServiceName.helseregistre, HRServiceAction.bestillInnsyn, 'prosess');\n setVisDialogModal(true);\n }}\n >\n {resources.bestillInnsynsRapport}\n \n {visDialogModal && (\n \n )}\n {visDialogConfirm && (\n \n {resources.bestillInnsynKvitteringsTekst}\n \n )}\n {innsynForesporselError && (\n \n {resources.default_ErrorMessage_Body}\n \n )}\n \n );\n};\n\nexport default BestillInnsynComponent;\n","import { FC } from 'react';\n\nimport { useNavigate } from 'react-router-dom';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { HRServiceAction, HRServiceName } from '../../../types/AdobeEnums';\nimport { Register, RegisterDialog, RegisterDialogData } from '../../../types/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\nimport { RegisterDialogType } from '../../../types/Helsenorge.Helseregistre.InternalAPI.EntitiesEnums';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport Icon from '@helsenorge/designsystem-react/components/Icon';\nimport Envelope from '@helsenorge/designsystem-react/components/Icons/Envelope';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\nimport { trackSelfService } from '@helsenorge/framework-utils/adobe-analytics';\n\nimport { getRegisterDialogData, SUBMIT_MESSAGE_SET_CONTROLHASH, SUBMIT_MESSAGE_SET_REGISTER } from './register-melding';\nimport { getRegisterDialogTypeForMeldeFeil } from './utils';\nimport { useAppDispatch } from '../../store/hooks';\n\nexport interface Props {\n register: Register;\n resources: HNHelseregistreJS;\n dialogTyper: RegisterDialog | null;\n}\n\nconst RegisterMeldingerComponent: FC = ({ register, resources, dialogTyper }) => {\n const navigate = useNavigate();\n\n const dispatch = useAppDispatch();\n\n const showMeldeFeilMessageSubmitClick = (): void => {\n dispatch(SUBMIT_MESSAGE_SET_REGISTER(register));\n const meldeFeilDialogType: RegisterDialogData | undefined | null = getRegisterDialogTypeForMeldeFeil(dialogTyper);\n dispatch(SUBMIT_MESSAGE_SET_CONTROLHASH(meldeFeilDialogType ? meldeFeilDialogType.ControlHash : null));\n trackSelfService('start', HRServiceName.helseregistre, HRServiceAction.sporsmalEllerFeil, 'prosess');\n navigate('/melde-feil');\n };\n\n const hasMeldeFeil = !!dialogTyper && !!getRegisterDialogData(dialogTyper, RegisterDialogType.RegisterMeldeFeil);\n\n return hasMeldeFeil ? (\n <>\n \n \n \n ) : null;\n};\n\nexport default RegisterMeldingerComponent;\n","import React from 'react';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { Register } from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\nimport PageLoader from '@helsenorge/core-framework/page-loader/page-loader';\nimport SafeHTML from '@helsenorge/framework-utils/components/safe-html';\n\nimport BestillInnsynComponent from './bestill-innsyn';\nimport MeldeFeilButton from './melde-feil-button';\nimport { getInnsynDialogTyper } from './utils';\nimport { useAppSelector } from '../../store/hooks';\nimport { GlobalState } from '../../store/reducer';\nimport { generateUniqueKey } from '../register-dialog-types';\n\ninterface Props {\n register: Register;\n resources: HNHelseregistreJS;\n}\n\nconst RegisterMeldingerContainer: React.FC = ({ register, resources }) => {\n const { RegisterDialoger: registerDialoger } = useAppSelector((state: GlobalState) => state.registerdialogtypes);\n const {\n loading: registermeldingLoading,\n innsendingStatus,\n innsynForesporselError,\n processingRegisterId,\n } = useAppSelector((state: GlobalState) => state.registermelding);\n if (!register.RegisterId || !register.HerId) {\n return null;\n }\n const key = generateUniqueKey({\n RegisterId: register.RegisterId,\n HerId: register.HerId,\n });\n const selectedRegisterDialog = registerDialoger[key] ?? false;\n if (!selectedRegisterDialog) {\n return null;\n }\n\n const { loading, error, registerDialog } = selectedRegisterDialog;\n\n const dialogTyper = getInnsynDialogTyper(registerDialog ?? null);\n\n return (\n <>\n \n \n {dialogTyper ? (\n <>\n \n \n \n \n ) : null}\n \n \n );\n};\n\nexport default RegisterMeldingerContainer;\n","import { FC } from 'react';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\n\ninterface Props {\n innsynslenke: string;\n innsynslenkeLabel: string;\n innsynslenkeLoggInnLabel: string;\n}\n\nexport const InnsynsLinkButton: FC = ({ innsynslenke, innsynslenkeLabel, innsynslenkeLoggInnLabel }) => {\n return (\n <>\n \n \n \n );\n};\n","import React, { useEffect } from 'react';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { Register } from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\nimport { shortDateNumbers } from '@helsenorge/core-utils/date-fns-utils';\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\n\nimport { Dialogknapp } from './dialogknapp';\nimport RegisterMeldingerContainer from './register-melding';\nimport { InnsynsLinkButton } from '../../felles-components/innsynslink-button';\nimport { RegisterLink } from '../../felles-components/registerlink';\n\nexport interface RegisterComponentProps {\n parentRef: React.RefObject;\n register: Register;\n resources: HNHelseregistreJS;\n isOpenFromStart: boolean;\n onExpand: () => void;\n}\n\nexport const RegisterDetaljer: React.FC = ({\n parentRef,\n register,\n resources,\n isOpenFromStart,\n onExpand,\n}: RegisterComponentProps) => {\n useEffect(() => {\n if (isOpenFromStart && parentRef.current) {\n parentRef.current.scrollIntoView({ block: 'center' });\n onExpand();\n }\n }, []);\n\n const sistOppdatert = register?.SistOppdatert && (\n <>\n \n \n {resources.registerSistOppdatert} {shortDateNumbers(new Date(register.SistOppdatert))}\n \n \n );\n\n return (\n <>\n

    \n {register?.BeskrivelseOppfoering} {register?.Databehandlingsansvarlig} {resources.databehandlingsansvarlig}\n

    \n {register.InformasjonLenke && register.Navn && register.Forkortelse && (\n \n )}\n\n {register.InnsynsrettLenke && register.Navn && register.Forkortelse && (\n \n )}\n\n {register.Innsynslenke && register.Navn && register.Innsynslenke !== '' && (\n \n )}\n\n {!isAuthorized() && register.HasDialog && }\n\n {register.HasDialog && }\n {sistOppdatert}\n \n \n );\n};\n","import React, { FC } from 'react';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { Register, RegisterDialogRequest } from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport Panel from '@helsenorge/designsystem-react/components/Panel';\nimport PanelList from '@helsenorge/designsystem-react/components/PanelList';\n\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\n\nimport { isQueryStringRegisterId } from '../../../utils/query-strings-utils';\nimport { getRegisterNavn } from '../../../utils/string-utils';\nimport { useAppDispatch, useAppSelector } from '../../store/hooks';\nimport { GlobalState } from '../../store/reducer';\nimport { RegisterDetaljer } from '../register-detaljer';\nimport { fetchRegisterDialogTyper } from '../register-dialog-types';\nimport './styles.scss';\n\nexport interface RegisterListeComponentProps {\n registerliste: Array;\n resources: HNHelseregistreJS;\n}\n\nconst RegisterListeComponent: FC = ({ registerliste, resources }) => {\n const dispatch = useAppDispatch();\n const { meldeFeilRegister } = useAppSelector((state: GlobalState) => state.registermelding);\n\n return (\n \n {registerliste.map(register => {\n const isRegisterEqualMeldeFeilRegister: boolean = !!meldeFeilRegister && meldeFeilRegister.RegisterId === register.RegisterId;\n const openFromStart: boolean = isQueryStringRegisterId(register?.RegisterId ?? '') || isRegisterEqualMeldeFeilRegister;\n const ref: React.RefObject = React.createRef();\n const handleExpand = (): void => {\n if (register?.HasDialog && isAuthorized() && register?.HerId && register?.RegisterId) {\n const arg: RegisterDialogRequest = {\n HerId: register.HerId,\n RegisterId: register.RegisterId,\n };\n dispatch(fetchRegisterDialogTyper(arg));\n }\n };\n return (\n \n \n \n );\n })}\n \n );\n};\n\nexport default RegisterListeComponent;\n","import { useState, FC } from 'react';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { Register } from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport Checkbox from '@helsenorge/designsystem-react/components/Checkbox';\n\nimport Filter from '@helsenorge/filter/components/filter';\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\n\nimport { getFilterRegisterliste } from './filter-utils';\nimport RegisterListeComponent from '../registrelist/registerliste-component';\n\nimport './styles.scss';\n\ninterface Props {\n registerliste?: Array;\n resources: HNHelseregistreJS;\n}\n\nconst RegistreComponent: FC = ({ resources, registerliste }) => {\n const [isFiltered, setIsFiltered] = useState(true);\n\n const filteredRegisterliste = getFilterRegisterliste(isFiltered, registerliste);\n const total = registerliste ? registerliste.length : 0;\n const numRegistre = filteredRegisterliste ? filteredRegisterliste.length : 0;\n const numResultsText = numRegistre < total ? `${numRegistre} ${resources.filterRegistreAv} ` : '';\n return (\n <>\n {isAuthorized() && (\n {\n setIsFiltered(!isFiltered);\n }}\n />\n ),\n },\n ]}\n numResults={filteredRegisterliste ? filteredRegisterliste.length : 0}\n isAlwaysOpen\n />\n )}\n {filteredRegisterliste && filteredRegisterliste.length === 0 ? (\n {resources.filterIngenRegistre}\n ) : (\n \n )}\n \n );\n};\n\nexport default RegistreComponent;\n","import { useEffect, useState, FC } from 'react';\n\nimport { useLocation, useNavigate } from 'react-router-dom';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { HelseregistreJSProject } from '../../types/project-name-constant';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport NotificationPanel from '@helsenorge/designsystem-react/components/NotificationPanel';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\nimport PageLoader from '@helsenorge/core-framework/page-loader/page-loader';\nimport PageRoot from '@helsenorge/core-framework/pageroot';\nimport { LanguageLocales } from '@helsenorge/core-utils/constants/languages';\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\nimport { getPath } from '@helsenorge/framework-utils/hn-page';\nimport { fetchResources, getResourcesFromState } from '@helsenorge/framework-utils/resources';\n\nimport { Innloggingsknapp } from './innloggingsknapp';\nimport { fetchRegisterliste, fetchRegisterlistePortal } from './registre';\nimport RegistreComponent from './registre-component/registre-component';\nimport { getResources } from '../../resources';\nimport { useAppDispatch, useAppSelector } from '../store/hooks';\nimport { GlobalState } from '../store/reducer';\n\nconst RegistreContainer: FC = () => {\n const navigate = useNavigate();\n const locationHook = useLocation();\n const [redirectToBaseUrl, setRedirectToBaseUrl] = useState(locationHook.pathname === '/melde-feil');\n\n const dispatch = useAppDispatch();\n\n useEffect(() => {\n dispatch(fetchResources(HelseregistreJSProject, LanguageLocales.NORWEGIAN, getResources));\n if (isAuthorized()) {\n dispatch(fetchRegisterliste({ RetryInnsynOrkestrator: false }));\n } else {\n dispatch(fetchRegisterlistePortal());\n }\n }, []);\n\n useEffect(() => {\n if (redirectToBaseUrl) {\n navigate('/');\n setRedirectToBaseUrl(false);\n }\n }, [redirectToBaseUrl]);\n\n const resources = useAppSelector(\n (state: GlobalState) => getResourcesFromState(state, HelseregistreJSProject, LanguageLocales.NORWEGIAN) as HNHelseregistreJS\n );\n const { error, loading, registerliste, warningMessage, informationMessage, retryInnsynOrkestrator } = useAppSelector(\n (state: GlobalState) => state.registre\n );\n\n const location = `/${getPath()}${locationHook.pathname}`;\n\n if (!resources) {\n return null;\n }\n\n const warningMessageComponetnt = warningMessage ? (\n <>\n \n

    {warningMessage.Body}

    \n
    \n \n \n ) : undefined;\n\n const InformationMessageComponent = informationMessage ? (\n <>\n \n

    {informationMessage.Body}

    \n {retryInnsynOrkestrator && (\n {\n dispatch(fetchRegisterliste({ RetryInnsynOrkestrator: true }));\n }}\n >\n {resources.retry_knapp}\n \n )}\n
    \n {!warningMessage && }\n \n ) : undefined;\n\n return (\n \n {!isAuthorized() && }\n \n {InformationMessageComponent}\n {warningMessageComponetnt}\n \n \n \n );\n};\n\nexport default RegistreContainer;\n","import { useEffect, FC } from 'react';\n\nimport { useForm } from 'react-hook-form';\nimport { useNavigate } from 'react-router';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { Register } from 'HNEntities/Helsenorge.Helseregistre.InternalAPI.EntitiesEntities';\n\nimport { HRServiceAction, HRServiceName } from '../../../../types/AdobeEnums';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport FormGroup from '@helsenorge/designsystem-react/components/FormGroup';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\nimport Textarea from '@helsenorge/designsystem-react/components/Textarea';\nimport Validation from '@helsenorge/designsystem-react/components/Validation';\n\nimport PendingChanges from '@helsenorge/core-framework/pending-changes';\nimport { add, remove } from '@helsenorge/core-framework/pending-changes/pending-changes-state';\nimport { trackSelfService } from '@helsenorge/framework-utils/adobe-analytics';\n\nimport { useAppDispatch } from '../../../store/hooks';\nimport { submitMessage } from '../register-melding';\n\nimport './styles.scss';\n\ninterface Props {\n meldeFeilRegister: Register;\n resources: HNHelseregistreJS;\n controlHash: string;\n onReset: () => void;\n}\n\ntype InputForm = {\n meldeFeilTextId: string;\n};\n\nconst MeldeFeilForm: FC = ({ meldeFeilRegister, resources, controlHash, onReset }) => {\n const dispatch = useAppDispatch();\n const meldeFeilTextId = 'meldeFeilTextId';\n\n const navigate = useNavigate();\n const {\n register,\n handleSubmit,\n setFocus,\n formState: { errors, isDirty },\n } = useForm({ defaultValues: { meldeFeilTextId: '' } });\n\n const onSubmit = (data: InputForm): void => {\n dispatch(submitMessage(data.meldeFeilTextId, meldeFeilRegister, controlHash));\n };\n\n useEffect(() => {\n setFocus(meldeFeilTextId);\n }, []);\n\n useEffect(() => {\n if (isDirty) {\n dispatch(add());\n } else {\n dispatch(remove());\n }\n }, [isDirty]);\n\n return (\n <>\n \n {\n dispatch(remove());\n onSubmit(data);\n trackSelfService('complete', HRServiceName.helseregistre, HRServiceAction.sporsmalEllerFeil, 'prosess');\n })}\n >\n \n \n {resources.message_label_info}\n \n \n \n

    {resources.message_henvendelse_info}

    \n \n
    \n \n {\n navigate('/');\n }}\n >\n {resources.conversationSubmitCancelButtonText}\n \n
    \n \n \n );\n};\n\nexport default MeldeFeilForm;\n","import { FC, useEffect } from 'react';\n\nimport { useNavigate, useLocation } from 'react-router';\n\nimport { HNHelseregistreJS } from 'HNResources';\n\nimport { HelseregistreJSProject } from '../../../../types/project-name-constant';\n\nimport Loader from '@helsenorge/designsystem-react/components/Loader';\nimport Modal from '@helsenorge/designsystem-react/components/Modal';\n\nimport { BreadcrumbLink } from '@helsenorge/core-framework/breadcrumb';\nimport PageRoot from '@helsenorge/core-framework/pageroot';\nimport Languages from '@helsenorge/core-utils/constants/languages';\nimport SafeHTML from '@helsenorge/framework-utils/components/safe-html';\nimport { getPath } from '@helsenorge/framework-utils/hn-page';\nimport { getResourcesFromState } from '@helsenorge/framework-utils/resources';\n\nimport MeldeFeilForm from './melde-feil-form';\nimport { useAppDispatch, useAppSelector } from '../../../store/hooks';\nimport { GlobalState } from '../../../store/reducer';\nimport { SUBMIT_MESSAGE_DISMISS } from '../register-melding';\n\nconst MeldeFeilContainer: FC = () => {\n const navigate = useNavigate();\n const locationHook = useLocation();\n\n const resources = useAppSelector(\n (state: GlobalState) => getResourcesFromState(state, HelseregistreJSProject, Languages.NORWEGIAN) as HNHelseregistreJS\n );\n const dispatch = useAppDispatch();\n\n const {\n meldeFeilRegister: register,\n meldeFeilControlHash: controlHash,\n meldeFeilError,\n sentMeldeFeil,\n sendingMeldeFeil,\n } = useAppSelector((state: GlobalState) => state.registermelding);\n\n useEffect(() => {\n if (!register || !controlHash) {\n navigate('/');\n }\n }, [register, controlHash]);\n\n if (!resources || !register || !controlHash) {\n return null;\n }\n\n const onReset = (): void => {\n dispatch(SUBMIT_MESSAGE_DISMISS());\n navigate('/');\n };\n\n const location = `/${getPath()}${locationHook.pathname}`;\n const breadcrumLink: BreadcrumbLink = { renderAsRouterLink: true, url: '/', name: resources.helseregistre_navigatebacklink_title };\n return (\n \n {resources.meldeFeilInfo}\n

    {resources.messageSubmitDescription}

    \n \n {meldeFeilError && (\n \n {resources.default_ErrorMessage_Body}\n \n )}\n {sentMeldeFeil && (\n \n

    {resources.conversationSubmitConfirmationDescriptionTitle}

    \n \n
    \n )}\n {sendingMeldeFeil && }\n \n );\n};\n\nexport default MeldeFeilContainer;\n","import { createBrowserRouter } from 'react-router-dom';\n\nimport type { Router } from '@remix-run/router';\n\nimport PageNotFound from '@helsenorge/core-framework/page-not-found';\nimport { getPath } from '@helsenorge/framework-utils/hn-page';\n\nimport RegistreContainer from './registre';\nimport MeldeFeilContainer from './registre/register-melding/message-submit';\n\nexport const getRouter = (): Router => {\n return createBrowserRouter(\n [\n {\n path: '/melde-feil',\n element: ,\n },\n {\n path: '/',\n element: ,\n },\n {\n path: '*',\n element: ,\n },\n ],\n\n { basename: `/${getPath()}` }\n );\n};\n","import { combineReducers, Reducer } from 'redux';\n\nimport pendingChanges, { PendingChangesState } from '@helsenorge/core-framework/pending-changes/pending-changes-state';\nimport hjelpeskuff, { HjelpeskuffState } from '@helsenorge/core-framework/prosesshjelp/hjelpeskuff/hjelpeskuff-state';\nimport { cmsTjenesteTekster, GlobalStateWithCmsTjenesteTekster } from '@helsenorge/framework-utils/cms-tjeneste-tekster';\nimport { GlobalStateWithResources, resources } from '@helsenorge/framework-utils/resources';\n\nimport registerdialogtypes, { RegisterDialogTypesState } from '../registre/register-dialog-types';\nimport registermelding, { RegisterMeldingState } from '../registre/register-melding/register-melding';\nimport registre, { RegistreState } from '../registre/registre';\n\nconst rootReducer: Reducer = combineReducers({\n resources,\n hjelpeskuff,\n registre,\n registerdialogtypes,\n registermelding,\n cmsTjenesteTekster,\n pendingChanges,\n});\n\nexport interface GlobalState extends GlobalStateWithResources, GlobalStateWithCmsTjenesteTekster {\n hjelpeskuff: HjelpeskuffState;\n registre: RegistreState;\n registermelding: RegisterMeldingState;\n registerdialogtypes: RegisterDialogTypesState;\n pendingChanges: PendingChangesState;\n}\n\nexport default rootReducer;\n","import { configureStore } from '@reduxjs/toolkit';\n\nimport rootReducer from './reducer';\n\nexport const store = configureStore({ reducer: rootReducer });\n\nexport type RootState = ReturnType;\n\nexport type AppDispatch = typeof store.dispatch;\n","import React from 'react';\n\nimport ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\nimport { RouterProvider } from 'react-router-dom';\n\nimport { initialize } from '@helsenorge/core-utils/date-fns-utils';\nimport { captureErrors } from '@helsenorge/framework-utils/logger';\n\nimport { getRouter } from './routes';\nimport { store } from './store';\n\nconst router = getRouter();\n\ncaptureErrors();\ninitialize();\n\nasync function enableMocking(): Promise {\n if (import.meta.env.MODE !== 'mocks') {\n return;\n }\n\n const { worker } = await import('../mocks/browser');\n\n return worker.start({\n onUnhandledRequest: 'bypass',\n });\n}\n\nenableMocking().then(() => {\n ReactDOM.createRoot(document.getElementById('main-content-wrapper')!).render(\n \n \n \n \n \n );\n});\n"],"names":["Innloggingsknapp","buttonText","jsxs","Fragment","jsx","Button","Spacer","sortRegistre","registre","a","b","_a","initialState","fetchRegisterliste","createAsyncThunk","RetryInnsynOrkestrator","get","args","getState","state","fetchRegisterlistePortal","_args","isAuthorized","registerSlice","createSlice","builder","action","Registre","WarningMessage","InformationMessage","payload","getFilterRegisterliste","shouldFilter","registerliste","register","useAppDispatch","useDispatch","useAppSelector","useSelector","Dialogknapp","getInnsynDialogTyper","registerDialog","filteredDialogTypes","d","getHashForInnsynDialogType","dialogTyper","rd","getRegisterDialogTypeForMeldeFeil","registerDialogtyper","dialogType","RegisterDialogType","getDialogTypeBeskrivelse","registerDialogType","resources","harApenDialog","BestillingerStatus","dialogTypes","bestillingHarFeilet","blokkerteDialoger","blokkerte","dialog","shortDateNumbers","NotificationPanel","SafeHTML","BestillingerStatusILightBox","initialRegisterDialogState","generateUniqueKey","keyCanExist","hasRegisterId","uniqueKeyFromRegisterIdAndHerId","fetchRegisterDialogTyper","RegisterId","HerId","key","registerDialogSlice","_","newRegisterDialoger","REMOVE_KEY","registerdialogtypes","loadingstate","meldingSlice","REGISTER_INNSYN_RESET","REGISTER_INNSYN_ERROR","REGISTER_INNSYN_LOADING","REGISTER_INNSYN_SUCCESS","SUBMIT_MESSAGE","SUBMIT_MESSAGE_SUCCESS","SUBMIT_MESSAGE_FAIL","SUBMIT_MESSAGE_DISMISS","SUBMIT_MESSAGE_SET_REGISTER","SUBMIT_MESSAGE_SET_CONTROLHASH","getRegisterDialogData","o","SendInnsynBestilling","controlHash","dispatch","post","arg","submitMessage","message","registermelding","useState","InnsynForesporselModal","loading","closeDialogModal","selectedDialogTyper","setSelectedDialogTyper","onChangeSelectedInnsyn","e","dialogerUtenomDenValgte","sendInnsynBestilling","trackSelfService","HRServiceName","HRServiceAction","Modal","Loader","i","checked","n","Checkbox","BestillInnsynComponent","innsendingStatus","innsynForesporselError","processingRegisterId","visDialogModal","setVisDialogModal","visDialogConfirm","setVisDialogConfirm","useEffect","closeDialogConfirm","closeDialogError","trackHealthRegisterName","RegisterMeldingerComponent","navigate","useNavigate","showMeldeFeilMessageSubmitClick","meldeFeilDialogType","Icon","Envelope","RegisterMeldingerContainer","registerDialoger","registermeldingLoading","selectedRegisterDialog","error","PageLoader","MeldeFeilButton","InnsynsLinkButton","innsynslenke","innsynslenkeLabel","innsynslenkeLoggInnLabel","RegisterDetaljer","parentRef","isOpenFromStart","onExpand","sistOppdatert","RegisterLink","React","RegisterListeComponent","meldeFeilRegister","PanelList","isRegisterEqualMeldeFeilRegister","openFromStart","isQueryStringRegisterId","ref","handleExpand","Panel","getRegisterNavn","_b","RegistreComponent","isFiltered","setIsFiltered","filteredRegisterliste","total","numRegistre","numResultsText","Filter","RegistreContainer","locationHook","useLocation","redirectToBaseUrl","setRedirectToBaseUrl","fetchResources","HelseregistreJSProject","LanguageLocales","getResources","getResourcesFromState","warningMessage","informationMessage","retryInnsynOrkestrator","location","getPath","warningMessageComponetnt","InformationMessageComponent","PageRoot","MeldeFeilForm","onReset","meldeFeilTextId","handleSubmit","setFocus","errors","isDirty","useForm","onSubmit","data","add","remove","PendingChanges","Validation","FormGroup","Textarea","MeldeFeilContainer","Languages","meldeFeilError","sentMeldeFeil","sendingMeldeFeil","breadcrumLink","getRouter","createBrowserRouter","PageNotFound","rootReducer","combineReducers","hjelpeskuff","cmsTjenesteTekster","pendingChanges","store","configureStore","router","captureErrors","initialize","enableMocking","ReactDOM","Provider","RouterProvider"],"mappings":"q3BASO,MAAMA,GAA8B,CAAC,CAAE,WAAAC,KAGxCC,EAAA,KAAAC,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