{"version":3,"file":"forside.DsozBgbE.js","sources":["../../../src/autosignout/utils/appEntryHelper.ts","../../../src/autosignout/index.tsx","../../../src/autosignout/utils/isOnAutosignoutPage.ts","../../../src/autosignout/utils/isSignedOutAutomatically.ts","../../../src/notificationpanel-wrapper/index.tsx","../../../src/krisepanel-container/index.tsx","../../../src/promopanel-container/index.tsx","../../../src/search-container/index.tsx","../../../src/tjenestepanel-container/helper.ts","../../../src/savner-du-tjenester/index.tsx","../../../src/store/hooks.ts","../../../src/tjenestepanel-container/index.tsx","../../../src/useraccesswarning/expander-warning.tsx","../../../src/useraccesswarning/warning.tsx","../../../src/useraccesswarning/index.tsx","../../../src/varslingspanel-container/index.tsx","../../../src/forside/index.tsx","../../../src/articles/index.tsx","../../../src/fastlege-v2/index.tsx","../../../src/other-container/index.tsx","../../../src/savner-du-tjenester-v2/index.tsx","../../../src/search-container-v2/index.tsx","../../../src/useraccesswarning-v2/index.tsx","../../../src/tjenestepanel-container-v2/index.tsx","../../../src/forside-v2/index.tsx","../../../src/utlogget-fra-oidc/index.tsx","../../../src/index.tsx"],"sourcesContent":["/// \n\nimport { getErInnloggetViaHnApp, getErInnloggetViaHnAppUngdom } from '@helsenorge/framework-utils/hn-user';\n\n//Gjør en sjekk på satt cookie verdi og forteller om innbygger har innlogget via hnApp eller ikke.\nexport const checkIsAppEntry = (): boolean => getErInnloggetViaHnApp() || getErInnloggetViaHnAppUngdom();\n\n//Returnerer url som redirecter til mobilAppAuth med en re-redirect param til bruk av appen etter fullført innlogging\nexport const fetchAppEntryRedirect = (): string | undefined => {\n const referrer = document.referrer;\n const appUrl = window.HN?.Rest?.MobilAppOpenAuthorizedWebsession;\n if (!appUrl || appUrl.length === 0) {\n // Om MobilAppOpenAuthorizedWebsession ikke har blitt satt\n return undefined;\n }\n if (referrer.length) {\n return `${appUrl}?url=${referrer}`;\n } else {\n return appUrl;\n }\n};\n","import React from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport Icon from '@helsenorge/designsystem-react/components/Icon';\nimport LockIcon from '@helsenorge/designsystem-react/components/Icons/Lock';\nimport Title from '@helsenorge/designsystem-react/components/Title';\n\nimport { checkIsAppEntry, fetchAppEntryRedirect } from './utils/appEntryHelper';\n\nimport sessionstyles from './styles.module.scss';\n\ninterface AutoSignoutProps {\n resources: HNCoreFrontendWebForside;\n}\n\nconst AutoSignout: React.FunctionComponent = ({ resources }: AutoSignoutProps) => {\n const isAppEntry = checkIsAppEntry();\n\n return (\n
\n
\n
\n
\n \n {resources.inactivity_SignedOut_Title}\n \n\n
\n {isAppEntry ? null : (\n \n )}\n \n \n {resources.inactivity_SignedOut_Button_SignInAgain}\n \n
\n
\n
\n
\n
\n
\n );\n};\nexport default AutoSignout;\n","export const isOnAutosignoutPage = (): boolean =>\n !!window && !!window.location && !!window.location.href && window.location.href.indexOf('autosignout=1') !== -1;\n","import { hasLoggedInCookie } from '@helsenorge/framework-utils/cookie';\n\nimport { isOnAutosignoutPage } from './isOnAutosignoutPage';\n\nexport const isSignedOutAutomatically = (): boolean => !hasLoggedInCookie() && isOnAutosignoutPage();\n","import * as React from 'react';\n\nimport cn from 'classnames';\n\nimport styles from './styles.module.scss';\n\ninterface NotificationPanelWrapperProps {\n children: React.ReactNode;\n borderBottom?: boolean;\n}\n\nconst NotificationPanelWrapper: React.FC = props => (\n
\n
\n
\n
\n
{props.children}
\n
\n
\n
\n
\n);\n\nexport default NotificationPanelWrapper;\n","import React from 'react';\n\nimport NotificationPanel from '@helsenorge/designsystem-react/components/NotificationPanel';\n\nimport { get } from '@helsenorge/framework-utils/cms-content-api-service';\nimport { useSetUserLanguageEvent } from '@helsenorge/framework-utils/hn-language';\n\nimport NotificationPanelWrapper from '../notificationpanel-wrapper';\n\ninterface Krisepanel {\n title: string;\n introduction: string;\n url: string;\n urlTitle: string;\n}\n\ninterface KrisepanelResponse extends Response {\n krisepanel: Krisepanel;\n}\n\nconst KrisepanelContainer: React.FC = () => {\n const [krisepanel, setKrisepanel] = React.useState();\n const visKrisepanel = !!krisepanel;\n\n const getKrisepanel = (): void => {\n get('krisepanel')\n .then(response => {\n setKrisepanel(response?.krisepanel);\n })\n .catch(() => {\n // Dersom det skjer en feil, logges dette av cms-content-api-service\n });\n };\n\n React.useEffect(() => {\n getKrisepanel();\n }, []);\n\n useSetUserLanguageEvent(() => getKrisepanel());\n\n if (!visKrisepanel) {\n return null;\n }\n\n return (\n \n \n {krisepanel?.introduction} \n {!!krisepanel?.url && !!krisepanel?.urlTitle && {krisepanel.urlTitle}}\n \n \n );\n};\n\nexport default KrisepanelContainer;\n","import React from 'react';\n\nimport Loader from '@helsenorge/designsystem-react/components/Loader';\n\nimport Promopanel from '@helsenorge/core-cms/promopanel';\nimport { PromoBlock } from '@helsenorge/core-cms/types/entities';\nimport { get } from '@helsenorge/framework-utils/cms-content-api-service';\nimport { useSetUserLanguageEvent } from '@helsenorge/framework-utils/hn-language';\n\nimport containerstyles from './../containers.module.scss';\n\ninterface PromopanelResponse extends Response {\n blocks: Array;\n}\n\nconst PromopanelContainer: React.FunctionComponent = () => {\n const [loading, setLoading] = React.useState(true);\n const [error, setError] = React.useState(false);\n const [blocks, setBlocks] = React.useState>([]);\n\n const getPromopanel = (): void => {\n get('promopanel')\n .then(response => {\n setLoading(false);\n\n if (response?.blocks) {\n setBlocks(response.blocks);\n }\n })\n .catch(() => {\n setLoading(false);\n setError(true);\n });\n };\n\n React.useEffect(() => {\n getPromopanel();\n }, []);\n\n useSetUserLanguageEvent(() => getPromopanel());\n\n if (error) {\n return null;\n }\n\n if (loading) {\n return (\n
\n \n
\n );\n }\n\n return ;\n};\n\nexport default PromopanelContainer;\n","import React from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport SearchBlock from '@helsenorge/core-cms/search/block';\nimport { getHelsenorgeUrl } from '@helsenorge/framework-utils/hn-proxy-service';\n\ninterface Props {\n resources: HNCoreFrontendWebForside;\n}\n\nconst SearchContainer: React.FunctionComponent = ({ resources }: Props) => (\n \n);\n\nexport default SearchContainer;\n","import { Flis } from '@helsenorge/core-cms/types/entities';\nimport { Tile } from '@helsenorge/framework-utils/types/entities';\n\nexport const tileMapper = (tile: Tile): Flis => {\n return {\n title: tile.Title,\n introduction: tile.Description,\n linkUrl: tile.Link,\n iconName: tile.Image,\n highlight: !!tile.Highlight,\n delAvForeldresamtykke: tile.DelAvForeldresamtykke,\n };\n};\n","import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport HighlightPanel from '@helsenorge/designsystem-react/components/HighlightPanel';\nimport List from '@helsenorge/designsystem-react/components/List';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\nimport Title from '@helsenorge/designsystem-react/components/Title';\n\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\nimport getFeatureToggle from '@helsenorge/framework-utils/hn-feature-toggle';\nimport { getErRepresentasjonViaFullmakt, hasScope } from '@helsenorge/framework-utils/hn-user';\nimport { getSamtykke, Samtykke } from '@helsenorge/framework-utils/samtykke-utils';\n\nimport styles from './styles.module.scss';\n\nexport const getShowSavnerDuTjenester = (): boolean => {\n const samtykke = getSamtykke();\n\n // Bruker er ikke logget på\n if (!isAuthorized()) {\n return false;\n }\n\n // Ved fullt samtykke er alle tjenester tilgjengelige\n if (samtykke === Samtykke.Full) {\n return false;\n }\n\n // Skal ikke vise dersom innbygger ikke kan endre samtykkenivå\n if (!hasScope('inngripendeforpersonvernet')) {\n return false;\n }\n\n return true;\n};\n\nexport interface Props {\n resources: HNCoreFrontendWebForside;\n}\n\nconst SavnerDuTjenester: React.FunctionComponent = ({ resources }: Props) => {\n const samtykke = getSamtykke();\n\n if (!getShowSavnerDuTjenester()) {\n return null;\n }\n\n return (\n \n \n {resources.savnerDuTjenesterTitle}\n \n

{resources.savnerDuTjenesterDescription}

\n \n {samtykke === Samtykke.Basis && {resources.savnerDuTjenesterPasientjournal}}\n {resources.savnerDuTjenesterLegemidler}\n {resources.savnerDuTjenesterTimeavtaler}\n {resources.savnerDuTjenesterPasientreiser}\n {resources.savnerDuTjenesterDialog}\n \n \n \n \n );\n};\n\nexport default SavnerDuTjenester;\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 React, { useEffect } from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport Loader from '@helsenorge/designsystem-react/components/Loader';\nimport NotificationPanel from '@helsenorge/designsystem-react/components/NotificationPanel';\n\nimport Tjenestepanel from '@helsenorge/core-cms/tjenestepanel';\nimport { getResources, Projects } from '@helsenorge/core-framework/resources';\nimport { HNCoreFrameworkNPMJS } from '@helsenorge/core-framework/types/Resources';\nimport SafeHTML from '@helsenorge/framework-utils/components/safe-html';\nimport getFeatureToggle from '@helsenorge/framework-utils/hn-feature-toggle';\nimport useResources from '@helsenorge/framework-utils/resources/useResources';\nimport { hasSamtykke } from '@helsenorge/framework-utils/samtykke-utils';\n\nimport containerstyles from './../containers.module.scss';\nimport { tileMapper } from './helper';\nimport {\n fetchTiles,\n getLoading,\n getLoaded,\n getHelsetjenesterTiles,\n getInnsynstjenesterTiles,\n getEksterneTjenesterTiles,\n getError,\n} from './tiles';\nimport NotificationPanelWrapper from '../notificationpanel-wrapper';\nimport SavnerDuTjenester from '../savner-du-tjenester';\nimport { useAppDispatch, useAppSelector } from '../store/hooks';\n\ninterface Props {\n resources: HNCoreFrontendWebForside;\n userLoading: boolean;\n}\n\nconst TjenestepanelContainer: React.FunctionComponent = ({ resources, userLoading }: Props) => {\n const dispatch = useAppDispatch();\n const frameworkResources = useResources(Projects.FRAMEWORK, getResources);\n\n useEffect(() => {\n dispatch(fetchTiles());\n }, []);\n\n const loading = useAppSelector(getLoading);\n const loaded = useAppSelector(getLoaded);\n const error = useAppSelector(getError);\n const helsetjenester = useAppSelector(getHelsetjenesterTiles);\n const innsynstjenester = useAppSelector(getInnsynstjenesterTiles);\n const eksterneTjenester = useAppSelector(getEksterneTjenesterTiles);\n\n if ((loading && !loaded) || userLoading) {\n return (\n
\n \n
\n );\n }\n\n const tiles = !!helsetjenester && !!innsynstjenester ? helsetjenester.concat(innsynstjenester) : [];\n\n return (\n <>\n {error && (\n \n \n {error.Title && }\n {error.Body}\n \n \n )}\n\n {hasSamtykke() && (\n tile.Title !== 'Behandlingsplan' || getFeatureToggle('ViseBehandlingsplan')).map(tileMapper)}\n eksterneFliser={eksterneTjenester ? eksterneTjenester.map(tileMapper) : []}\n eksterneFliserHeader={resources.tjenestepanelEksterne}\n visAlleFliser\n sharingStatusText={frameworkResources?.sharing_Status_Delt_Med_Barnet ?? undefined}\n >\n
\n
\n \n
\n
\n \n )}\n \n );\n};\n\nexport default TjenestepanelContainer;\n","import * as React from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport NotificationPanel from '@helsenorge/designsystem-react/components/NotificationPanel';\n\nimport SafeHTML, { MarkdownType } from '@helsenorge/framework-utils/components/safe-html';\n\nimport NotificationPanelWrapper from '../notificationpanel-wrapper';\n\nimport styles from './styles.module.scss';\n\ninterface ExpanderWarningProps {\n label: string;\n html: string | MarkdownType;\n resources: HNCoreFrontendWebForside;\n testId?: string;\n}\n\nconst ExpanderWarning: React.FC = props => {\n return (\n \n }\n />\n \n );\n};\n\nexport default ExpanderWarning;\n","import NotificationPanel from '@helsenorge/designsystem-react/components/NotificationPanel';\n\nimport SafeHTML, { MarkdownType } from '@helsenorge/framework-utils/components/safe-html';\nimport getFeatureToggle from '@helsenorge/framework-utils/hn-feature-toggle';\n\nimport NotificationPanelWrapper from '../notificationpanel-wrapper';\n\ninterface WarningProps {\n html: string | MarkdownType;\n testId?: string;\n}\n\nconst Warning: React.FC = (props: WarningProps) => {\n return (\n \n \n \n \n \n );\n};\n\nexport default Warning;\n","import React from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport { MarkdownType } from '@helsenorge/framework-utils/components/safe-html';\nimport getFeatureToggle from '@helsenorge/framework-utils/hn-feature-toggle';\nimport {\n getHarInnsynssperre,\n getErRepresentasjon,\n getHarReservasjonAktivPaaHelsenorge,\n getErInnloggetViaHnAppUngdom,\n getRepresentertBruker,\n} from '@helsenorge/framework-utils/hn-user';\nimport { hasFulltSamtykke } from '@helsenorge/framework-utils/samtykke-utils';\n\nimport ExpanderWarning from './expander-warning';\nimport Warning from './warning';\n\ninterface UserAccessWarningProps {\n resources: HNCoreFrontendWebForside;\n}\n\nconst UserAccessWarning: React.FC = props => {\n if (getHarInnsynssperre()) {\n return ;\n }\n\n if (getHarReservasjonAktivPaaHelsenorge()) {\n const html: MarkdownType =\n getErRepresentasjon() && getRepresentertBruker()\n ? {\n type: 'markdown',\n value: props.resources.digitalt_inaktiv_representasjon_beskrivelse.value.replace(/{navn}/g, getRepresentertBruker() ?? ''),\n }\n : props.resources.digitalt_inaktiv_beskrivelse;\n\n return (\n \n );\n }\n\n if (getFeatureToggle('UngdomstilgangMedForeldresamtykke') && !hasFulltSamtykke() && !getErRepresentasjon()) {\n return ;\n }\n\n if (getErInnloggetViaHnAppUngdom()) {\n return ;\n }\n\n return null;\n};\n\nexport default UserAccessWarning;\n","import React from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport Title from '@helsenorge/designsystem-react/components/Title';\n\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\nimport { getSidetittelId } from '@helsenorge/framework-utils/hn-page';\nimport { getInnloggetFornavn, getErRepresentasjon, getRepresentertBruker } from '@helsenorge/framework-utils/hn-user';\n\nimport varslingspanelContainerStyles from './varslingspanelcontainer.module.scss';\n\ninterface VarslingspanelContainerProps {\n resources: HNCoreFrontendWebForside;\n}\n\nconst VarslingspanelContainer: React.FC = ({ resources }) => {\n const getWelcometext = (): React.JSX.Element | undefined => {\n let text = `${resources?.varslingspanelTitle},`;\n let element;\n\n if (getInnloggetFornavn()) {\n text = `${text} ${getInnloggetFornavn()}`;\n element = getErRepresentasjon() ? (\n \n {text}\n
\n {`${resources?.varslingspanelTitleDescription} `}\n {getRepresentertBruker()}\n
\n ) : (\n {text}\n );\n }\n return element;\n };\n\n return isAuthorized() ? (\n
\n
\n
\n
\n \n {getWelcometext()}\n \n
\n
\n
\n
\n ) : null;\n};\n\nexport default VarslingspanelContainer;\n","import React from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport Loader from '@helsenorge/designsystem-react/components/Loader';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\n\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\nimport { getAssetsUrl } from '@helsenorge/framework-utils/hn-page';\nimport { getErInnloggetViaHnAppUngdom } from '@helsenorge/framework-utils/hn-user';\nimport useResources from '@helsenorge/framework-utils/resources/useResources';\nimport { HeaderFooterEvents } from '@helsenorge/framework-utils/web-component/constants';\nimport { HNaddEventListener } from '@helsenorge/framework-utils/web-component/events';\nimport { fetchWebComp } from '@helsenorge/framework-utils/web-component/fetcher';\n\nimport AutoSignout from '../autosignout';\nimport { isSignedOutAutomatically } from '../autosignout/utils/isSignedOutAutomatically';\nimport Projects from '../constants/projects';\nimport KrisepanelContainer from '../krisepanel-container';\nimport PromopanelContainer from '../promopanel-container';\nimport { getResources } from '../resources';\nimport SearchContainer from '../search-container';\nimport TjenestepanelContainer from '../tjenestepanel-container';\nimport UserAccessWarning from '../useraccesswarning';\nimport VarslingspanelContainer from '../varslingspanel-container';\nimport containerstyles from './../containers.module.scss';\n\nconst Forside: React.FunctionComponent = () => {\n const resources = useResources(Projects.Forside, getResources);\n const automaticallySignedOut = isSignedOutAutomatically();\n\n const [userLoading, setUserLoading] = React.useState(false);\n const webcompheader = document.querySelector('hn-webcomp-header');\n\n React.useEffect(() => {\n if (!automaticallySignedOut) {\n fetchWebComp({\n domain: `${getAssetsUrl()}/fastlegepanel`,\n componentName: 'hn-webcomp-fastlegepanel',\n entryName: 'src/index.tsx',\n includeHelsenorgeCss: true,\n });\n }\n\n if (isAuthorized() || automaticallySignedOut) {\n document.body.classList.add(containerstyles['blueberry']);\n }\n }, []);\n\n HNaddEventListener(\n HeaderFooterEvents.setuserloading,\n webcompheader,\n (event: CustomEvent) => {\n setUserLoading(event.detail.userLoading);\n },\n false\n );\n\n if (!resources) {\n return null;\n }\n\n if (userLoading) {\n return (\n
\n \n
\n );\n }\n\n if (automaticallySignedOut) {\n return ;\n }\n\n if (getErInnloggetViaHnAppUngdom()) {\n return (\n <>\n \n \n \n \n \n \n );\n }\n\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\nexport default Forside;\n","import Articles from '@helsenorge/core-cms/articles';\nimport { selectCurrentLanguage } from '@helsenorge/framework-utils/language';\n\nimport { useGetForsideQuery } from '../store/contentApi';\nimport { useAppSelector } from '../store/hooks';\n\nimport styles from './styles.module.scss';\n\nconst ArticlesContainer: React.FC = () => {\n const language = useAppSelector(state => selectCurrentLanguage(state.language));\n const { data: forside } = useGetForsideQuery(language);\n\n if (!forside) {\n return null;\n }\n\n return (\n
\n
\n
\n
\n \n
\n
\n
\n
\n );\n};\n\nexport default ArticlesContainer;\n","import React from 'react';\n\nimport PromoPanel from '@helsenorge/designsystem-react/components/PromoPanel';\n\ninterface FastlegePanelProps {\n title: string;\n description: string;\n link: string;\n}\n\nconst FastlegePanelV2: React.FC = props => {\n return (\n \n {props.description}\n \n );\n};\n\nexport default FastlegePanelV2;\n","import React from 'react';\n\nimport styles from './styles.module.scss';\n\ninterface OtherContainerProps {\n children: React.ReactNode;\n}\n\n// @todo trenger et bedre navn\nconst OtherContainer: React.FC = props => {\n return
{props.children}
;\n};\n\nexport default OtherContainer;\n","import React from 'react';\n\nimport classNames from 'classnames';\n\nimport Button from '@helsenorge/designsystem-react/components/Button';\nimport HighlightPanel from '@helsenorge/designsystem-react/components/HighlightPanel';\nimport List from '@helsenorge/designsystem-react/components/List';\nimport Spacer from '@helsenorge/designsystem-react/components/Spacer';\nimport Title from '@helsenorge/designsystem-react/components/Title';\n\nimport styles from '../savner-du-tjenester/styles.module.scss';\n\nexport interface Props {\n title?: string | null;\n description?: string | null;\n bodyTexts?: string[] | null;\n buttonText?: string | null;\n}\n\nconst SavnerDuTjenester: React.FunctionComponent = props => {\n return (\n \n \n {props.title}\n \n

{props.description}

\n {props.bodyTexts?.map(text => {text})}\n \n \n
\n );\n};\n\nexport default SavnerDuTjenester;\n","import SearchBlock from '@helsenorge/core-cms/search/block';\nimport { selectCurrentLanguage } from '@helsenorge/framework-utils/language';\n\nimport { useGetForsideQuery } from '../store/contentApi';\nimport { useAppSelector } from '../store/hooks';\n\nconst SearchBlockContainerV2: React.FC = () => {\n const language = useAppSelector(state => selectCurrentLanguage(state.language));\n const { data: forside } = useGetForsideQuery(language);\n\n if (!forside) {\n return null;\n }\n\n return (\n \n );\n};\n\nexport default SearchBlockContainerV2;\n","import React from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport LanguageLocales from '@helsenorge/core-utils/constants/languages';\n\nimport { useGetTilesQuery } from '../store/tilesApi';\nimport ExpanderWarning from '../useraccesswarning/expander-warning';\nimport Warning from '../useraccesswarning/warning';\n\ninterface UserAccessWarningProps {\n resources: HNCoreFrontendWebForside;\n}\n\nconst UserAccessWarningV2: React.FC = props => {\n const { data } = useGetTilesQuery(LanguageLocales.NORWEGIAN);\n\n if (!data) {\n return null;\n }\n\n if (data.userAccessMessageWarning?.title && data.userAccessMessageWarning?.bodyText) {\n return (\n \n );\n }\n\n if (data.userAccessMessageWarning?.bodyText) {\n return ;\n }\n\n return null;\n};\n\nexport default UserAccessWarningV2;\n","import React from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport Tjenestepanel from '@helsenorge/core-cms/tjenestepanel-v2';\nimport { Projects } from '@helsenorge/core-framework/resources';\nimport { HNCoreFrameworkNPMJS } from '@helsenorge/core-framework/types/Resources';\nimport { getSidetittelId } from '@helsenorge/framework-utils/hn-page';\nimport { selectCurrentLanguage } from '@helsenorge/framework-utils/language';\nimport useResources from '@helsenorge/framework-utils/resources/useResources';\n\nimport { getResources } from '../resources';\nimport { useAppSelector } from '../store/hooks';\nimport { useGetTilesQuery } from '../store/tilesApi';\n\ninterface Props {\n resources: HNCoreFrontendWebForside;\n}\n\nconst TjenestepanelContainerV2: React.FunctionComponent = ({ resources }: Props) => {\n const language = useAppSelector(state => selectCurrentLanguage(state.language));\n const frameworkResources = useResources(Projects.FRAMEWORK, getResources);\n\n const { data } = useGetTilesQuery(language);\n\n if (!data) {\n return null;\n }\n\n return (\n \n );\n};\n\nexport default TjenestepanelContainerV2;\n","import React from 'react';\n\nimport { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport { isAuthorized } from '@helsenorge/framework-utils/hn-authorize';\nimport { selectCurrentLanguage } from '@helsenorge/framework-utils/language';\nimport useResources from '@helsenorge/framework-utils/resources/useResources';\nimport { hasSamtykke } from '@helsenorge/framework-utils/samtykke-utils';\nimport { HNeventSetNoMarginFooter } from '@helsenorge/framework-utils/web-component/events';\n\nimport ArticlesContainer from '../articles';\nimport AutoSignout from '../autosignout';\nimport { isSignedOutAutomatically } from '../autosignout/utils/isSignedOutAutomatically';\nimport Projects from '../constants/projects';\nimport FastlegePanelV2 from '../fastlege-v2';\nimport KrisepanelContainer from '../krisepanel-container';\nimport OtherContainer from '../other-container';\nimport { getResources } from '../resources';\nimport SavnerDuTjenesterV2 from '../savner-du-tjenester-v2';\nimport SearchBlockContainerV2 from '../search-container-v2';\nimport UserAccessWarningV2 from '../useraccesswarning-v2';\nimport containerstyles from './../containers.module.scss';\nimport { useAppSelector } from '../store/hooks';\nimport { useGetTilesQuery } from '../store/tilesApi';\nimport TjenestepanelV2Container from '../tjenestepanel-container-v2';\n\nconst Forside: React.FunctionComponent = () => {\n const language = useAppSelector(state => selectCurrentLanguage(state.language));\n const resources = useResources(Projects.Forside, getResources);\n const { data: tilesResponse } = useGetTilesQuery(language);\n\n const automaticallySignedOut = isSignedOutAutomatically();\n\n React.useEffect(() => {\n HNeventSetNoMarginFooter();\n\n if (isAuthorized() || automaticallySignedOut) {\n document.body.classList.add(containerstyles['blueberry']);\n }\n }, [automaticallySignedOut]);\n\n if (!resources) {\n return null;\n }\n\n if (automaticallySignedOut) {\n return ;\n }\n\n const showFastlegePanel = !!tilesResponse?.fastlegeTextMessage;\n const showSavnerDuTjenester = !!tilesResponse?.missingServiceWarning;\n const showOtherContainer = showFastlegePanel || showSavnerDuTjenester;\n\n return (\n <>\n \n \n {hasSamtykke() && }\n\n {showOtherContainer && (\n \n {showSavnerDuTjenester && (\n
\n
\n
\n \n
\n
\n
\n )}\n {showFastlegePanel &&\n tilesResponse.fastlegeTextMessage?.title &&\n tilesResponse.fastlegeTextMessage?.description &&\n tilesResponse.fastlegeTextMessage?.link && (\n
\n
\n
\n \n
\n
\n
\n )}\n
\n )}\n\n \n \n \n );\n};\nexport default Forside;\n","import { HNCoreFrontendWebForside } from '../types/Resources';\n\nimport Icon from '@helsenorge/designsystem-react/components/Icon';\nimport Lock from '@helsenorge/designsystem-react/components/Icons/Lock';\nimport Logo from '@helsenorge/designsystem-react/components/Logo';\nimport Title from '@helsenorge/designsystem-react/components/Title';\n\nimport useResources from '@helsenorge/framework-utils/resources/useResources';\n\nimport Projects from '../constants/projects';\nimport { getResources } from '../resources';\n\nimport './utlogget.scss';\n\nconst UtloggetFraOIDC: React.FunctionComponent = () => {\n const resources = useResources(Projects.Forside, getResources);\n\n if (!resources) {\n return null;\n }\n\n return (\n
\n
\n
\n \n
\n
\n
\n
\n
\n \n {resources.signedOut_SignedOut_Title}\n \n

{resources.signedOut_SignedOut_Explanation}

\n \n \n \n
\n
\n
\n
\n );\n};\nexport default UtloggetFraOIDC;\n","import React from 'react';\n\nimport ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\nimport { createBrowserRouter, RouterProvider } from 'react-router-dom';\n\nimport PageNotFound from '@helsenorge/core-framework/page-not-found';\nimport PageRoot from '@helsenorge/core-framework/pageroot';\nimport getFeatureToggle from '@helsenorge/framework-utils/hn-feature-toggle';\n\nimport Forside from './forside';\nimport ForsideV2 from './forside-v2';\nimport { store } from './store';\nimport UtloggetFraOIDC from './utlogget-fra-oidc/index';\n\nconst router = createBrowserRouter([\n {\n path: '/oidc/signedout',\n element: (\n \n \n \n ),\n },\n {\n path: '/velg-person',\n element: (\n \n {getFeatureToggle('NyForside2025') ? : }\n \n ),\n },\n {\n path: '/',\n element: (\n \n {getFeatureToggle('NyForside2025') ? : }\n \n ),\n },\n {\n path: '*',\n element: ,\n },\n]);\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":["checkIsAppEntry","getErInnloggetViaHnApp","getErInnloggetViaHnAppUngdom","fetchAppEntryRedirect","referrer","appUrl","_b","_a","AutoSignout","resources","isAppEntry","jsx","jsxs","sessionstyles","Title","Button","Icon","LockIcon","isOnAutosignoutPage","isSignedOutAutomatically","hasLoggedInCookie","NotificationPanelWrapper","props","cn","styles","React","KrisepanelContainer","krisepanel","setKrisepanel","visKrisepanel","getKrisepanel","get","response","useSetUserLanguageEvent","NotificationPanel","PromopanelContainer","loading","setLoading","error","setError","blocks","setBlocks","getPromopanel","containerstyles","Loader","Promopanel","SearchContainer","SearchBlock","getHelsenorgeUrl","tileMapper","tile","getShowSavnerDuTjenester","samtykke","getSamtykke","isAuthorized","Samtykke","hasScope","SavnerDuTjenester","HighlightPanel","classNames","getFeatureToggle","List","Spacer","getErRepresentasjonViaFullmakt","useAppDispatch","useDispatch","useAppSelector","useSelector","useEffect","TjenestepanelContainer","userLoading","dispatch","frameworkResources","useResources","Projects","getResources","fetchTiles","getLoading","loaded","getLoaded","getError","helsetjenester","getHelsetjenesterTiles","innsynstjenester","getInnsynstjenesterTiles","eksterneTjenester","getEksterneTjenesterTiles","tiles","Fragment","SafeHTML","hasSamtykke","Tjenestepanel","ExpanderWarning","Warning","UserAccessWarning","getHarInnsynssperre","getHarReservasjonAktivPaaHelsenorge","html","getErRepresentasjon","getRepresentertBruker","hasFulltSamtykke","_c","VarslingspanelContainer","getWelcometext","text","element","getInnloggetFornavn","varslingspanelContainerStyles","getSidetittelId","Forside","automaticallySignedOut","setUserLoading","webcompheader","fetchWebComp","getAssetsUrl","HNaddEventListener","HeaderFooterEvents","event","ArticlesContainer","language","state","selectCurrentLanguage","forside","useGetForsideQuery","Articles","FastlegePanelV2","PromoPanel","OtherContainer","SearchBlockContainerV2","UserAccessWarningV2","data","useGetTilesQuery","LanguageLocales","TjenestepanelContainerV2","tilesResponse","HNeventSetNoMarginFooter","showFastlegePanel","showSavnerDuTjenester","showOtherContainer","TjenestepanelV2Container","SavnerDuTjenesterV2","_d","_e","_f","_g","UtloggetFraOIDC","Logo","Lock","router","createBrowserRouter","PageRoot","ForsideV2","PageNotFound","enableMocking","ReactDOM","Provider","store","RouterProvider"],"mappings":"mxBAKO,MAAMA,GAAkB,IAAeC,GAAuB,GAAKC,EAA6B,EAG1FC,GAAwB,IAA0B,SAC7D,MAAMC,EAAW,SAAS,SACpBC,GAASC,GAAAC,EAAA,OAAO,KAAP,YAAAA,EAAW,OAAX,YAAAD,EAAiB,iCAChC,GAAI,GAACD,GAAUA,EAAO,SAAW,GAIjC,OAAID,EAAS,OACJ,GAAG,OAAAC,EAAM,SAAQ,OAAAD,GAEjBC,CAEX,0SCHMG,GAAyD,CAAC,CAAE,UAAAC,KAAkC,CAClG,MAAMC,EAAaV,GAAgB,EAEnC,aACG,MAAI,CAAA,UAAU,YACb,SAAAW,EAAAA,IAAC,OAAI,UAAU,MACb,SAACA,MAAA,MAAA,CAAI,UAAU,+BACb,SAAAC,EAAA,KAAC,OA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