{"version":3,"file":"veilederBarnestipend-BjrJRf5D.js","sources":["../../../Features/VeilederBarneStipend/Utilities/StottePerMndKalkulator.ts","../../../Features/VeilederBarneStipend/Components/NumberInputStepStegComponent.tsx","../../../Features/VeilederBarneStipend/Utilities/B-Familiesituasjon.ts","../../../Features/VeilederBarneStipend/Models/Ids.ts","../../../Features/VeilederBarneStipend/Store/Valg/Types.ts","../../../Features/VeilederBarneStipend/Store/Resultat/Types.ts","../../../Features/VeilederBarneStipend/Store/Resultat/Actions.ts","../../../Features/VeilederBarneStipend/Store/Valg/Actions.ts","../../../Features/VeilederBarneStipend/Components/ResultatComponent.tsx","../../../Features/VeilederBarneStipend/Components/ResultatSectionComponent.tsx","../../../Features/VeilederBarneStipend/Components/C1ResultatComponent.tsx","../../../Features/VeilederBarneStipend/Utilities/ResultatVariabler.ts","../../../Features/VeilederBarneStipend/Components/C2ResultatComponent.tsx","../../../Features/VeilederBarneStipend/App.tsx","../../../Features/VeilederBarneStipend/Store/Resultat/Reducers.ts","../../../Features/VeilederBarneStipend/Store/Valg/Reducers.ts","../../../Features/VeilederBarneStipend/Store/index.ts","../../../Features/VeilederBarneStipend/Utilities/BarnestipendApi.ts","../../../Features/VeilederBarneStipend/index.tsx"],"sourcesContent":["import { BarnestipendSatser } from './BarnestipendApi';\r\n\r\nexport const beregnStotte = (antallBarn: number, satser: BarnestipendSatser): number => {\r\n const antallBarnSats1 = Math.min(2, antallBarn);\r\n const antallBarnSats2 = antallBarn - antallBarnSats1;\r\n\r\n return (\r\n antallBarnSats1 * satser.SATS_ST01_SFS31_BELOPSSATS_PER_BARN_TRINN1_PER_MND +\r\n antallBarnSats2 * satser.SATS_ST01_SFS31_BELOPSSATS_PER_BARN_TRINN2_PER_MND\r\n );\r\n};\r\n","import React from 'react';\r\nimport { NumberInputDisplay } from '../../Shared/Scripts/Components/ValgDisplayFunctions';\r\nimport VeilederStegComponent, { VeilederStegBaseProps } from '../../Shared/Scripts/Components/VeilederStegComponent';\r\nimport { connect } from 'react-redux';\r\nimport { setCollapsed } from '../../Shared/Scripts/Store/StegVisning/Actions';\r\nimport contentResolver from '../../Shared/Scripts/Utilities/EpiContentResolver';\r\nimport { tilPengerFormat } from '../../Shared/Scripts/Utilities/Formatters';\r\nimport { EpiContext } from '../../Shared/Scripts/Store/EpiContext/Types';\r\nimport VeilederBarnestipendDto from '../Models/VeilederBarnestipendDto';\r\nimport { beregnStotte } from '../Utilities/StottePerMndKalkulator';\r\nimport { BarnestipendSatser } from '../Utilities/BarnestipendApi';\r\nimport { VeilederBarnestipendAppState } from '../Store';\r\n\r\ntype NumberInputOwnProps = VeilederStegBaseProps & {\r\n inputId: string;\r\n value: number;\r\n onInputChange: (valg: number) => void;\r\n};\r\n\r\ntype NumberInputProps = NumberInputOwnProps & MapStateToProps & MapDispatchToProps;\r\n\r\ninterface NumberInputState {\r\n inputValue: string;\r\n}\r\n\r\nclass NumberInputStepStegComponent extends React.PureComponent\r\n {contentResolver(epiContext, 'antallBarnLedetekstSporsmal')}\r\n
\r\n \r\n {contentResolver(epiContext, tittelInntekt)}\r\n
\r\n \r\n {contentResolver(epiContext, tittelFormueTrygd)}\r\n
\r\n \r\n {contentResolver(epiContext, tittelKontroll)}\r\n
\r\n