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KAAKsR,QAAQ,SAAUD,kBAA7B,qBAGmB,EAAAC,QAArB,SAA6BE,EAAcH,+GAKxB,OAJXI,EAAa,CACjBC,cAAc,EACdC,cAAc,GAEC,GAAM,IAAIC,KAAcC,iBAAsBL,EAAI,aAAaH,EAAa,KAAMI,WACnG,MAAO,CAAP,EADiB,kBAGrB,EA5BA","sources":["webpack://fed-project/./app/assets/ts/core/parsing/date/DateParser.ts","webpack://fed-project/./app/assets/ts/reactcomponents/actions/FormActions.ts","webpack://fed-project/./app/assets/ts/reactcomponents/constants/Constants.ts","webpack://fed-project/./app/assets/ts/reactcomponents/helpers/StringHelpers.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/AlertService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/AnimationService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/DatasourceLoaderStateService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/DatasourceOptionsService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/ESBOnlineService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/ErrorMessageService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/FormConfigService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/FormService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/HistoryService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/IntakeService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/LogoutPopupService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/PageTypeService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/PopoverService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/PrintViewService.ts","webpack://fed-project/./app/assets/ts/reactcomponents/services/ConsentService.ts"],"sourcesContent":["import * as Moment from 'moment';\r\nimport { IParser } from '../interfaces';\r\n\r\nconst POSSIBLE_FORMATS = [\r\n 'YYYY-MM-DDTHH:mm:ss',\r\n 'DD-MM-YYYY',\r\n 'YYYY-MM-DDTHH:mm:ssZ',\r\n 'YYYY-MM-DD'\r\n];\r\n\r\nexport class DateParser implements IParser {\r\n parse(input: unknown, utc: boolean = false): Date {\r\n if (input === '0001-01-01T00:00:00') {\r\n return null;\r\n }\r\n\r\n let validDate: Date = null;\r\n\r\n // use 'some' to break when found\r\n POSSIBLE_FORMATS.some(format => {\r\n const momentDate = Moment(input, format, true);\r\n if (momentDate.isValid()) {\r\n validDate = momentDate.toDate();\r\n return true;\r\n }\r\n\r\n return false;\r\n });\r\n\r\n if(utc) {\r\n validDate = this.convertLocalToUTC(validDate);\r\n }\r\n return validDate;\r\n }\r\n\r\n convertLocalToUTC(localDate: Date): Date {\r\n const timezoneOffset = localDate.getTimezoneOffset(); // in minutes\r\n \r\n // Create a new Date object by adjusting for the timezone difference\r\n const utc = new Date(localDate.getTime() - timezoneOffset * 60000); // Convert minutes to milliseconds\r\n \r\n return utc;\r\n }\r\n}\r\n","import { action } from 'typesafe-actions';\r\nimport { FormValues } from '../models/FormValues';\r\nimport {\r\n STORE_FORM_VALUES,\r\n CLEAR_FORM_VALUES,\r\n ERROR_FORM_GETAPI,\r\n CLEAR_ERROR_FORM_GETAPI,\r\n ERROR_FORM_MESSAGE,\r\n CLEAR_ERROR_FORM_MESSAGE\r\n} from '../constants/Constants';\r\nimport fetch from 'cross-fetch';\r\nimport { ErrorMessageService } from '../services/ErrorMessageService';\r\nimport { ESBOnlineService } from '../services/ESBOnlineService';\r\nimport { AnimationService } from '../services/AnimationService';\r\nimport { FormService } from '../services/FormService';\r\nimport { reformatUrlRelativePaths } from '@fnv-core/utils';\r\n\r\nexport const showErrorOnApiError = (error = null) => action(ERROR_FORM_GETAPI, error);\r\nexport const clearErrorOnApiError = () => action(CLEAR_ERROR_FORM_GETAPI, {});\r\n\r\nexport const storeFormValues = (formName: string, values: any) =>\r\n action(STORE_FORM_VALUES, { formName: formName, values: values } as FormValues);\r\nexport const clearFormValues = (formName: string) =>\r\n action(CLEAR_FORM_VALUES, { formName: formName } as FormValues);\r\n\r\nexport const storeFormErrorMessage = (formName: string, errorMessage: string) =>\r\n action(ERROR_FORM_MESSAGE, { formName: formName, errorMessage: errorMessage });\r\n\r\nexport const clearFormErrorMessage = (formName: string) =>\r\n action(CLEAR_ERROR_FORM_MESSAGE, { formName: formName });\r\n\r\nexport const fillFormViaApi = (formName: string, url : string, formDefinitions: any[], formSteps: string[], formConfig?: any) => \r\n dispatch => {\r\n url = reformatUrlRelativePaths(url);\r\n return fetch(url)\r\n .then(response => {\r\n\r\n AnimationService.finishPreloadForm(formName);\r\n\r\n if (response.status >= 300) {\r\n dispatch(storeFormValues(formName, {}));\r\n dispatch(showErrorOnApiError());\r\n ESBOnlineService.setESBIsOnline(false);\r\n dispatch(\r\n storeFormErrorMessage(\r\n formName,\r\n ErrorMessageService.errorMessageNotAllDataCanBeRetrieved()\r\n )\r\n );\r\n \r\n AnimationService.triggerAnimations();\r\n return { _error: true };\r\n } else {\r\n \r\n ESBOnlineService.setESBIsOnline(true); \r\n return response.json();\r\n }\r\n })\r\n .then(json => {\r\n if (!json._error) {\r\n dispatch(clearFormErrorMessage(formName));\r\n\r\n // prefilled data is put in each form step\r\n // but is removed when writing the formstep on submit of each step\r\n // AjaxCallHelper/FormikHelper and RichtTextContent are aware of that\r\n \r\n dispatch(storeFormValues(formName, json));\r\n formSteps.map((stepFormName) => {\r\n if (stepFormName != formName) {\r\n dispatch(storeFormValues(stepFormName, json));\r\n }\r\n });\r\n AnimationService.triggerAnimations();\r\n\r\n if (formConfig && !!formConfig.fillMemberNameAsSubtitle) { \r\n if (json.Naam && json.IsLid) {\r\n FormService.setIsInLidZoekenSubFunctions(true);\r\n FormService.setLidZoekenSubFunctionsForMember({\r\n memberName: json.Naam,\r\n isMember: json.IsLid\r\n });\r\n } else {\r\n FormService.setIsInLidZoekenSubFunctions(false);\r\n FormService.setLidZoekenSubFunctionsForMember({});\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n })\r\n .catch(err => { \r\n // tslint:disable-next-line\r\n console.error(err);\r\n AnimationService.finishPreloadForm(formName);\r\n ESBOnlineService.setESBIsOnline(true);\r\n dispatch(showErrorOnApiError());\r\n AnimationService.triggerAnimations();\r\n });\r\n};\r\n","export const STORE_FORM_VALUES = 'FNV/STORE_FORM_VALUES';\r\nexport const CLEAR_FORM_VALUES = 'FNV/CLEAR_FORM_VALUES';\r\nexport const FILL_FORM_VIA_API = 'FNV/FILL_FORM_VIA_API';\r\nexport const ERROR_FORM_GETAPI = 'FNV/ERROR_FORM_GETAPI';\r\nexport const CLEAR_ERROR_FORM_GETAPI = 'FNV/CLEAR_ERROR_FORM_GETAPI';\r\nexport const ERROR_FORM_MESSAGE = 'FNV/ERROR_FORM_MESSAGE';\r\nexport const CLEAR_ERROR_FORM_MESSAGE = 'FNV/CLEAR_ERROR_FORM_MESSAGE';\r\n\r\nexport const STORE_ALERT = 'FNV/STORE_ALERT';\r\nexport const CLEAR_ALERTS = 'FNV/CLEAR_ALERTS';\r\n\r\nexport const GET_ALERTS_BY_API = 'FNV/GET_ALERTS_BY_API';\r\n\r\nexport const STORE_STEP = 'FNV/STORE_STEP';\r\nexport const CLEAR_STEPS = 'FNV/CLEAR_STEPS';\r\nexport const SET_ACTIVE_STEP = 'FNV/SET_ACTIVE_STEP';\r\nexport const STORE_EXTRA_STEP = 'FNV/STORE_EXTRA_STEP';\r\nexport const CLEAR_EXTRA_STEPS = 'FNV/CLEAR_EXTRA_STEPS';\r\n\r\nexport const CLEAR_USER = 'FNV/CLEAR_USER';\r\nexport const STORE_USER = 'FNV/STORE_USER';\r\n\r\nexport const STORE_RENDER_FORM_TRIGGER = 'FNV/STORE_RENDER_FORM_TRIGGER';\r\nexport const CLEAR_RENDER_FORM_TRIGGER = 'FNV/CLEAR_RENDER_FORM_TRIGGER';\r\n\r\nexport const LOGIN_URL = '/login';\r\n\r\nexport const MIJNFNV_SITEMAP_URL = '/api/mijnfnvsitemap';\r\nexport const MIJNFNV_SETTINGS_URL = '/api/mijnfnvsettings';\r\nexport const MIJNFNV_POPUPS_URL = '/api/mijnfnvpopup';\r\n\r\nexport const IDEAL_ISSUER_LIST_URL = '/api/ideal/directoryrequest';\r\nexport const MIJNFNV_CLAIMS_URL = '/api/mijnfnv/getclaims';\r\nexport const MIJNFNV_MONTLYFEE_URL = '/api/esb/contributiesbetaalinformatie';\r\nexport const MIJNFNV_STARTTRANSACTION_URL = '/api/esb/starttransaction';\r\nexport const MIJNFNV_LIDZOEKEN_STORECONSENT_URL = '/api/lidzoeken';\r\nexport const MIJNFNV_DOSSIER_URL = '/api/esb/dossieroverzicht'; \r\n\r\nexport const IDEAL_TRANSACTIONREQUEST_URL = '/api/ideal/transactionrequest';\r\nexport const IDEAL_RETURN_URL = '/contributie';\r\nexport const IDEAL_STATUS_URL = '/api/ideal/getstatusforperson';\r\nexport const IDEAL_GETIDEALSERVICETRANSACTION_URL = '/api/ideal/getidealservicetransaction';\r\n\r\nexport const STORE_RESULT_LIDZOEKEN = 'FNV/STORE_RESULT_LIDZOEKEN';\r\nexport const CLEAR_LIDZOEKEN = 'FNV/CLEAR_LIDZOEKEN';\r\nexport const START_LIDZOEKEN = 'FNV/START_LIDZOEKEN';\r\nexport const STOP_LIDZOEKEN = 'FNV/STOP_LIDZOEKEN';\r\nexport const SET_CONSENT_LIDZOEKEN = 'FNV/SET_CONSENT_LIDZOEKEN';\r\nexport const PASSTHROUGH_FIELD_LIDZOEKEN = 'FNV/PASSTHROUGH_FIELD_LIDZOEKEN';\r\n\r\nexport const ACCOUNT_AANMAKEN_URL = '/mijn-fnv/mijn-fnv-account-aanmaken';\r\n\r\nexport const KenticoMijnFNVOverzichtPageType = 'FNV.MijnFnvOverzicht';\r\nexport const FrontendDashboardPageType = 'dashboard';\r\n\r\nexport const KenticoMijnFNVEditPageType = 'FNV.MijnFnvEditPagina';\r\nexport const KenticoMijnFNVViewPageType = 'FNV.MijnFnvViewPagina';\r\n\r\nexport const MAX_POSTDATA_SIZE = 4100000;\r\n","import * as Moment from 'moment';\r\nimport {\r\n MijnFnvFormLink\r\n} from '../presentational/pages/interfaces/PageInterfaces';\r\nimport { getResourceString } from '../kentico/resource-strings';\r\n\r\nexport class StringHelpers {\r\n\r\n /**\r\n * Replaces mustache placeholders inside the given string.\r\n * @param value The string with placeholders to replace.\r\n * @param data An object with data to use. If a property has the same name as the placeholder in the string, it is replaced with its value.\r\n * @param removeUnknownVariables An optional boolean to indicate if unknown leftover variables should be removed.\r\n * \r\n * @example\r\n * // returns 'my large string with value value1 and an empty ';\r\n * replacePropertiesInUrl('my large string with value {fieldOne} and an empty {fieldTwo}', { fieldOne: 'value1' }, true)\r\n * \r\n * @returns A new string with placeholder replaced with values.\r\n */\r\n static replacePropertiesInString = (value: string, data: { [key: string]: any }, removeUnknownVariables?: boolean): string => {\r\n let newValue = value || \"\";\r\n // parse {} from url and replace with predefined variabels \r\n let regularExpressionForMatchingCurlyBrackets = /{.+?}/g;\r\n const matches = newValue.match(regularExpressionForMatchingCurlyBrackets);\r\n if (matches) {\r\n matches.map((match) => {\r\n let field = match.slice(1, -1);\r\n let valueFieldName = field;\r\n let value = \"\";\r\n if (field[0] === \"*\") {\r\n field = field.slice(1);\r\n //urlFieldName = field;\r\n field = data[field];\r\n }\r\n if (data[field] !== undefined && data[field] !== \"\") {\r\n value = data[field];\r\n if (value && (value as any).value) {\r\n value = (value as any).value;\r\n }\r\n newValue = newValue.replace(\"{\" + valueFieldName + \"}\", value);\r\n } \r\n });\r\n } \r\n \r\n // clear up parameters that have empty values\r\n if (removeUnknownVariables) {\r\n newValue = newValue.replace(regularExpressionForMatchingCurlyBrackets, \"\");\r\n }\r\n \r\n return newValue;\r\n }\r\n\r\n /**\r\n * Replaces mustache placeholders inside the given url.\r\n * @param value The url with placeholders to replace.\r\n * @param data An object with data to use. If a property has the same name as the placeholder in the url, it is replaced with its value.\r\n * @param removeUnknownVariables An optional boolean to indicate if unknown leftover variables should be removed.\r\n * \r\n * @example\r\n * // returns 'https://example.com/value1/'\r\n * replacePropertiesInUrl('https://example.com/{fieldOne}/{fieldTwo}', { fieldOne: 'value1' }, true)\r\n * \r\n * @returns A new url with placeholder replaced with values.\r\n */\r\n static replacePropertiesInUrl(url: string, data, removeUnknownVariables?) {\r\n return StringHelpers.replacePropertiesInString(url , data, removeUnknownVariables || false);\r\n }\r\n\r\n static convertDateToNL(dateAsString) {\r\n if (dateAsString == \"0001-01-01T00:00:00\") {\r\n dateAsString = \"\";\r\n } else {\r\n let date1 = Moment(dateAsString, \"YYYY-MM-DDTHH:mm:ss\" , true);\r\n let date2 = Moment(dateAsString, \"DD-MM-YYYY\", true);\r\n let date3 = Moment(dateAsString, \"YYYY-MM-DDTHH:mm:ssZ\" , true);\r\n let date4 = Moment(dateAsString, \"YYYY-MM-DD\", true);\r\n if (date1.isValid()) {\r\n dateAsString = date1.format(\"DD-MM-YYYY\");\r\n } else \r\n if (date2.isValid()) {\r\n dateAsString = date2.format(\"DD-MM-YYYY\");\r\n }\r\n else if (date3.isValid()) {\r\n dateAsString = date3.format(\"DD-MM-YYYY\");\r\n }\r\n else if (date4.isValid()) {\r\n dateAsString = date4.format(\"DD-MM-YYYY\");\r\n }\r\n }\r\n return dateAsString;\r\n }\r\n\r\n static convertNLDateToIso(dateAsString) {\r\n let date = Moment(dateAsString, \"DD-MM-YYYY\", true);\r\n if (date.isValid()) {\r\n return date.format(\"YYYY-MM-DD\");\r\n }\r\n return dateAsString;\r\n }\r\n\r\n static replaceLinkCodeNamesByUrls(mijnFnvFormLinks : MijnFnvFormLink[], json: T): T {\r\n if (mijnFnvFormLinks && json) {\r\n let jsonAsString = JSON.stringify(json);\r\n \r\n mijnFnvFormLinks.forEach((link : MijnFnvFormLink) => {\r\n const replaceText = \"{link:\" + link.FormLinkCodeName + \"}\";\r\n const regex = new RegExp(replaceText, \"g\"); \r\n jsonAsString = jsonAsString.replace(regex, \r\n (link.IsExternalLink ? link.ExternalUrl : link.Link) + \r\n (!link.IsExternalLink && link.IncludeParameterInUrl ? \"/{0}\" : \"\") \r\n );\r\n }); \r\n return JSON.parse(jsonAsString);\r\n }\r\n }\r\n\r\n static isString = function (obj) {\r\n return Object.prototype.toString.call(obj) === '[object String]';\r\n };\r\n\r\n static isDate = function (obj) {\r\n return Object.prototype.toString.call(obj) === '[object Date]';\r\n };\r\n\r\n static formFieldRequiredFieldErrorMessage(fieldCaption: string) {\r\n let error = getResourceString(\"Form.Error.RequiredField\");\r\n return StringHelpers.replacePropertiesInString(error, {\r\n fieldName : fieldCaption\r\n }, true );\r\n }\r\n\r\n static formFieldGenericErrorMessage(fieldCaption: string) {\r\n let error = getResourceString(\"Form.Error.NotCorrect\");\r\n return StringHelpers.replacePropertiesInString(error, {\r\n fieldName : fieldCaption\r\n }, true );\r\n }\r\n\r\n static formFieldMinMaxErrorMessage(fieldCaption: string, min: string, max: string) {\r\n let error = getResourceString(\"Form.Error.MinMax\");\r\n return StringHelpers.replacePropertiesInString(error, {\r\n fieldName : fieldCaption,\r\n min: min,\r\n max: max\r\n }, true );\r\n }\r\n\r\n static formFieldMinMaxNoMaxErrorMessage(fieldCaption: string, min: string) {\r\n let error = getResourceString(\"Form.Error.MinMaxNoMax\");\r\n return StringHelpers.replacePropertiesInString(error, {\r\n fieldName : fieldCaption,\r\n min: min\r\n }, true );\r\n }\r\n \r\n\r\n static formFieldInititalsErrorMessage(fieldCaption: string) {\r\n let error = getResourceString(\"Form.Initials.Error\");\r\n return StringHelpers.replacePropertiesInString(error, {\r\n fieldName : fieldCaption\r\n }, true );\r\n }\r\n\r\n static formFieldPhoneNumberErrorMessage(fieldCaption: string) {\r\n let error = getResourceString(\"Form.Phone.InvalidError\");\r\n return StringHelpers.replacePropertiesInString(error, {\r\n fieldName : fieldCaption\r\n }, true );\r\n }\r\n\r\n static formFieldUnsupportedFormatFieldErrorMessage(fieldCaption: string) {\r\n let error = getResourceString(\"Form.Error.UnsupportedFormat\");\r\n return StringHelpers.replacePropertiesInString(error, {\r\n fieldName : fieldCaption\r\n }, true );\r\n }\r\n\r\n static parseHtmlEncodedString(input) {\r\n let parser = new DOMParser();\r\n var dom = parser.parseFromString(\r\n '' + input,\r\n 'text/html');\r\n return dom.body.textContent;\r\n }\r\n\r\n static TryJsonParse(input: string) {\r\n try {\r\n var o = JSON.parse(input);\r\n\r\n // Handle non-exception-throwing cases:\r\n // Neither JSON.parse(false) or JSON.parse(1234) throw errors, hence the type-checking,\r\n // but... JSON.parse(null) returns null, and typeof null === \"object\", \r\n // so we must check for that, too. Thankfully, null is falsey, so this suffices:\r\n if (o && typeof o === \"object\") {\r\n return o;\r\n }\r\n }\r\n catch (e) { }\r\n\r\n return false;\r\n }\r\n}","let alertApiUrl : string = \"\";\r\n\r\n\r\nexport class AlertService {\r\n public static setApiUrl(apiUrl : string) {\r\n alertApiUrl = apiUrl;\r\n }\r\n\r\n public static getApiUrl() {\r\n return alertApiUrl;\r\n }\r\n}","let animationTimer = undefined;\r\nlet animationWidgetTimer = undefined;\r\n\r\nlet activeAnimationContext = \"\";\r\nlet disableAllAnimations = false;\r\n\r\nlet preloading : any = {};\r\nexport const ANIMATION_DASHBOARD_LOADING_CONTEXT = \"dashboard\";\r\nexport const ANIMATION_EDIT_LOADING_CONTEXT = \"edit\";\r\nexport const ANIMATION_VIEW_LOADING_CONTEXT = \"view\";\r\n\r\nexport class AnimationService {\r\n\r\n public static resetPreloadForm = (formName) => {\r\n preloading[formName] = \"\";\r\n }\r\n\r\n public static startPreloadForm = (formName) => {\r\n preloading[formName] = \"start\";\r\n }\r\n\r\n public static finishPreloadForm = (formName) => {\r\n preloading[formName] = \"finish\";\r\n }\r\n\r\n public static disableAnimationsForForm = (formName) => {\r\n preloading[formName] = \"no-animations\";\r\n disableAllAnimations = true;\r\n }\r\n\r\n public static getAnimationStateForForm = (formName) => {\r\n if (!!disableAllAnimations) {\r\n return \"no-animations\";\r\n }\r\n return preloading[formName] || \"\";\r\n }\r\n\r\n public static triggerAnimationBlock = (element, loop) => {\r\n setTimeout(() => {\r\n element.classList.add(\"animation__fade-in--trigger\");\r\n }, (loop) * 125);\r\n }\r\n\r\n public static triggerAnimationWidget = (widget, loop, delay) => {\r\n widget.classList.add(\"mijn-fnv__widget--fade-in\"); \r\n }\r\n\r\n public static enableFormAnimations() {\r\n disableAllAnimations = false;\r\n }\r\n \r\n public static enableAnimations(animationContext) {\r\n activeAnimationContext = animationContext;\r\n \r\n }\r\n \r\n public static disableAnimations() {\r\n activeAnimationContext = \"\";\r\n }\r\n\r\n public static triggerAnimations() {\r\n if (activeAnimationContext === ANIMATION_DASHBOARD_LOADING_CONTEXT ||\r\n activeAnimationContext === ANIMATION_EDIT_LOADING_CONTEXT ||\r\n activeAnimationContext === ANIMATION_VIEW_LOADING_CONTEXT) {\r\n if (animationTimer) {\r\n clearTimeout(animationTimer);\r\n animationTimer = undefined;\r\n }\r\n\r\n if (animationWidgetTimer) {\r\n clearTimeout(animationWidgetTimer);\r\n animationWidgetTimer = undefined;\r\n }\r\n\r\n animationTimer = setTimeout(() => {\r\n const widgets = document.querySelectorAll(\".mijn-fnv__widget\");\r\n\r\n let isPreloading = false;\r\n for (let loop = 0; loop < widgets.length; loop++) {\r\n const widget = widgets[loop]; \r\n if (widget.classList.contains('mijn-fnv__widget--preloading')) {\r\n isPreloading = true;\r\n }\r\n }\r\n\r\n let elements = document.querySelectorAll(\".content__background.content__background--loading\");\r\n if (elements.length > 0) {\r\n isPreloading = true;\r\n }\r\n\r\n if (!isPreloading) {\r\n \r\n elements = document.querySelectorAll(\".animation__fade-in\");\r\n for (let loop = 0; loop < elements.length; loop++) {\r\n const element = elements[loop]; \r\n AnimationService.triggerAnimationBlock(element, loop);\r\n }\r\n animationWidgetTimer = setTimeout(() => {\r\n for (let loop = 0; loop < widgets.length; loop++) {\r\n const widget = widgets[loop]; \r\n AnimationService.triggerAnimationWidget(widget, loop, elements.length * 250);\r\n }\r\n }, elements.length * 175);\r\n }\r\n }, 15);\r\n }\r\n }\r\n}","let loadingCounter = 0;\r\n\r\nexport class DatasourceLoaderStateService {\r\n public static increaseLoadingCounter() {\r\n loadingCounter++;\r\n }\r\n\r\n public static decreaseLoadingCounter() {\r\n if (loadingCounter > 0) {\r\n loadingCounter--;\r\n }\r\n }\r\n\r\n public static getLoadingCounter() {\r\n return loadingCounter;\r\n }\r\n\r\n public static resetLoadingCounter() {\r\n loadingCounter = 0;\r\n }\r\n}","let dropdownFormOptionsPerFormControl = {};\r\n\r\nexport class DatasourceOptionsService {\r\n public static setOptionsForForm(formControlName : string, options: any[]) {\r\n if (Array.isArray(options)) {\r\n dropdownFormOptionsPerFormControl[formControlName] = options;\r\n } else {\r\n dropdownFormOptionsPerFormControl[formControlName] = [];\r\n }\r\n }\r\n\r\n public static getOptionsForForm(formControlName : string) {\r\n if (dropdownFormOptionsPerFormControl[formControlName]) {\r\n return dropdownFormOptionsPerFormControl[formControlName];\r\n }\r\n return [];\r\n }\r\n}","let isESBOnline : boolean = true;\r\n\r\nexport class ESBOnlineService {\r\n public static setESBIsOnline(isOnline : boolean) {\r\n isESBOnline = isOnline;\r\n }\r\n\r\n public static getESBIsOnline() {\r\n return isESBOnline;\r\n }\r\n}","let errorMessageTitle: string = '';\r\nlet errorMessageDescription: string = '';\r\nlet errorMessagePhoneNumber: string = '';\r\nlet errorMessagePhoneNumberInfo: string = '';\r\nlet errorMessageButtonText: string = '';\r\nlet errorMessageNotAllDataCanBeRetrieved: string = '';\r\n\r\nexport class ErrorMessageService {\r\n public static setErrorMessagePropertes(\r\n title: string,\r\n description: string,\r\n phoneNumber: string,\r\n phoneNumberInfo: string,\r\n buttonText: string,\r\n notAllDataCanBeRetrieved: string\r\n ) {\r\n errorMessageTitle = title;\r\n errorMessageDescription = description;\r\n errorMessagePhoneNumber = phoneNumber;\r\n errorMessagePhoneNumberInfo = phoneNumberInfo;\r\n errorMessageButtonText = buttonText;\r\n\r\n errorMessageNotAllDataCanBeRetrieved = notAllDataCanBeRetrieved;\r\n }\r\n\r\n public static errorMessageTitle() {\r\n return errorMessageTitle;\r\n }\r\n\r\n public static errorMessageDescription(errorObject?: any) {\r\n if (errorObject && errorObject.Title) {\r\n return `${errorObject.Title}\r\n

\r\n ${errorMessageDescription}\r\n `;\r\n }\r\n\r\n return errorMessageDescription;\r\n }\r\n\r\n public static errorMessagePhoneNumber() {\r\n return errorMessagePhoneNumber;\r\n }\r\n\r\n public static errorMessagePhoneNumberInfo() {\r\n return errorMessagePhoneNumberInfo;\r\n }\r\n\r\n public static errorMessageButtonText() {\r\n return errorMessageButtonText;\r\n }\r\n\r\n public static errorMessageNotAllDataCanBeRetrieved() {\r\n return errorMessageNotAllDataCanBeRetrieved;\r\n }\r\n}\r\n","import { IFormConfig } from '../interfaces/FormConfig';\r\n\r\nlet formConfig: IFormConfig = {\r\n requiredFieldTip: '',\r\n autoInsertFormFieldGroup: false,\r\n urlMappings: {\r\n\r\n },\r\n urlMappingsRelatedData : {\r\n\r\n },\r\n formOverrides : {\r\n\r\n },\r\n parameterMappings : {\r\n\r\n },\r\n outputMappings : {\r\n\r\n },\r\n datasourceConditions: {\r\n \r\n }\r\n};\r\n\r\nexport class FormConfigService {\r\n public static setFormConfig(incomingFormConfig: IFormConfig) {\r\n formConfig = incomingFormConfig;\r\n }\r\n\r\n public static getFormConfig() {\r\n return formConfig;\r\n }\r\n}","let isSummaryView: boolean = false;\r\nlet backUrl : string = \"\";\r\nlet lidZoekenSubFunctions : boolean = false;\r\nlet payload : any = {};\r\nlet lidZoekenSubFunctionsForMember : any = {};\r\nlet formCallback = undefined;\r\nlet formConfigStore : any = {};\r\nlet currentFormConfig : any = {};\r\n\r\nlet setMemberCallback : () => void;\r\n\r\nexport class FormService {\r\n public static setIsSummaryView(value : boolean) {\r\n isSummaryView = value;\r\n }\r\n\r\n public static getIsSummaryView() : boolean {\r\n return isSummaryView;\r\n }\r\n\r\n public static setBackUrl(value : string) {\r\n backUrl = value;\r\n }\r\n\r\n public static getBackUrl() {\r\n return backUrl;\r\n }\r\n\r\n public static setMemberDetailsCallback(callback : () => void) {\r\n setMemberCallback = callback;\r\n }\r\n\r\n public static setIsInLidZoekenSubFunctions(value : boolean) {\r\n lidZoekenSubFunctions = value;\r\n if (!value) {\r\n lidZoekenSubFunctionsForMember = {};\r\n }\r\n }\r\n\r\n public static getIsInLidZoekenSubFunctions() : boolean {\r\n return lidZoekenSubFunctions;\r\n }\r\n\r\n public static getLidZoekenSubFunctionsForMember() {\r\n return lidZoekenSubFunctionsForMember;\r\n }\r\n\r\n public static setLidZoekenSubFunctionsForMember(memberDetails : any) {\r\n lidZoekenSubFunctionsForMember = memberDetails;\r\n if (setMemberCallback !== undefined) {\r\n setMemberCallback();\r\n }\r\n }\r\n\r\n public static setPayload(payloadValue : any) {\r\n payload = payloadValue;\r\n }\r\n\r\n public static getPayload() : boolean {\r\n return payload;\r\n }\r\n \r\n public static registerRelatedDataCallback(callbackFunction : any) {\r\n formCallback = callbackFunction;\r\n }\r\n\r\n public static callFormRelatedDataCallback(datasource, formName, values: any) {\r\n if (formCallback) {\r\n formCallback(datasource, formName, values);\r\n }\r\n }\r\n\r\n public static setFormConfig(formName, formConfig) {\r\n formConfigStore[formName] = formConfig;\r\n currentFormConfig = formConfig;\r\n }\r\n\r\n public static getFormConfig(formName) {\r\n return formConfigStore[formName] || {};\r\n }\r\n\r\n public static getCurrentFormConfig() {\r\n return currentFormConfig || {};\r\n }\r\n}","let history : any = undefined;\r\nexport class HistoryService {\r\n public static setRouterHistory(_history : any) {\r\n history = _history;\r\n }\r\n\r\n public static getRouterHistory() : any {\r\n return history;\r\n } \r\n}","let question : string = \"\";\r\nlet answer : string = \"\";\r\n\r\nexport class IntakeService {\r\n public static setQuestion(value : string) {\r\n question = value || \"\";\r\n }\r\n\r\n public static setAnswer(value : string) {\r\n answer = value || \"\";\r\n }\r\n\r\n public static getQuestionAndAnswer() {\r\n return (question && question != \"\" ? question + \"\\r\\n\\r\\n\" : \"\") + (answer || \"\");\r\n }\r\n}","let loginDuration : number = 4;\r\n\r\nexport class LogoutPopupService {\r\n\r\n public static setLoginDuration(duration : number) {\r\n loginDuration = duration;\r\n }\r\n\r\n public static getLoginDuration() {\r\n return loginDuration;\r\n }\r\n}","let pageType : string = \"\";\r\n\r\nexport class PageTypeService {\r\n public static setPageType(value : string) {\r\n pageType = value;\r\n }\r\n\r\n public static getPageType() {\r\n return pageType;\r\n }\r\n}","let popoverCallbacks : any = {};\r\n\r\n\r\nexport class PopoverService {\r\n public static registerPopover(fieldId : string, callback) {\r\n popoverCallbacks[fieldId] = callback;\r\n }\r\n\r\n public static unRegisterPopover(fieldId : string) {\r\n popoverCallbacks[fieldId] = undefined;\r\n delete popoverCallbacks[fieldId];\r\n }\r\n\r\n public static closeAllPopovers(fieldId? : string) {\r\n Object.keys(popoverCallbacks).map((popoverField) => {\r\n if (popoverCallbacks[popoverField]) {\r\n if (fieldId !== undefined && fieldId === popoverField) {\r\n return;\r\n }\r\n popoverCallbacks[popoverField](popoverField);\r\n }\r\n });\r\n }\r\n}","let printView : boolean = false;\r\n\r\nexport class PrintViewService {\r\n public static setPrintView(value : boolean) {\r\n printView = value;\r\n }\r\n\r\n public static getPrintView() {\r\n return printView;\r\n }\r\n}","import { Api } from '@fnv-core/http';\r\n\r\nconst CONSENT_API_PREFIX = 'consentdetail';\r\n\r\n/**\r\n * Service for managing consents\r\n */\r\nexport class ConsentService {\r\n\r\n /**\r\n * Accept the given consent\r\n * @param consentId\r\n * @returns \r\n */\r\n static async accept(consentId: string) {\r\n await this.callApi('accept', consentId);\r\n }\r\n\r\n /**\r\n * Revoke the given consent\r\n * @param consentId\r\n * @returns \r\n */\r\n static async revoke(consentId: string) {\r\n await this.callApi('revoke', consentId);\r\n }\r\n\r\n private static async callApi(type: string, consentId: string) {\r\n const apiOptions = { \r\n injectUserId: true,\r\n useApiPrefix: true\r\n };\r\n const response = await Api.post(`${CONSENT_API_PREFIX}/${type}/{userId}/${consentId}`, null, apiOptions);\r\n return response;\r\n }\r\n}\r\n"],"names":["POSSIBLE_FORMATS","parse","input","utc","validDate","some","format","momentDate","isValid","toDate","this","convertLocalToUTC","localDate","timezoneOffset","getTimezoneOffset","Date","getTime","showErrorOnApiError","error","action","clearErrorOnApiError","storeFormValues","formName","values","clearFormValues","storeFormErrorMessage","errorMessage","clearFormErrorMessage","fillFormViaApi","url","formDefinitions","formSteps","formConfig","dispatch","then","response","finishPreloadForm","status","setESBIsOnline","errorMessageNotAllDataCanBeRetrieved","triggerAnimations","_error","json","map","stepFormName","fillMemberNameAsSubtitle","Naam","IsLid","setIsInLidZoekenSubFunctions","setLidZoekenSubFunctionsForMember","memberName","isMember","catch","err","console","STORE_FORM_VALUES","CLEAR_FORM_VALUES","ERROR_FORM_GETAPI","CLEAR_ERROR_FORM_GETAPI","ERROR_FORM_MESSAGE","CLEAR_ERROR_FORM_MESSAGE","STORE_ALERT","CLEAR_ALERTS","STORE_STEP","CLEAR_STEPS","SET_ACTIVE_STEP","STORE_EXTRA_STEP","CLEAR_EXTRA_STEPS","CLEAR_USER","STORE_USER","STORE_RENDER_FORM_TRIGGER","CLEAR_RENDER_FORM_TRIGGER","LOGIN_URL","MIJNFNV_SITEMAP_URL","MIJNFNV_SETTINGS_URL","MIJNFNV_POPUPS_URL","IDEAL_ISSUER_LIST_URL","MIJNFNV_CLAIMS_URL","MIJNFNV_MONTLYFEE_URL","MIJNFNV_STARTTRANSACTION_URL","MIJNFNV_LIDZOEKEN_STORECONSENT_URL","IDEAL_TRANSACTIONREQUEST_URL","IDEAL_STATUS_URL","IDEAL_GETIDEALSERVICETRANSACTION_URL","STORE_RESULT_LIDZOEKEN","CLEAR_LIDZOEKEN","START_LIDZOEKEN","STOP_LIDZOEKEN","SET_CONSENT_LIDZOEKEN","PASSTHROUGH_FIELD_LIDZOEKEN","ACCOUNT_AANMAKEN_URL","FrontendDashboardPageType","KenticoMijnFNVEditPageType","KenticoMijnFNVViewPageType","MAX_POSTDATA_SIZE","replacePropertiesInUrl","data","removeUnknownVariables","StringHelpers","replacePropertiesInString","convertDateToNL","dateAsString","date1","date2","date3","date4","convertNLDateToIso","date","replaceLinkCodeNamesByUrls","mijnFnvFormLinks","JSON","stringify","forEach","link","replaceText","FormLinkCodeName","regex","RegExp","replace","IsExternalLink","ExternalUrl","Link","IncludeParameterInUrl","formFieldRequiredFieldErrorMessage","fieldCaption","fieldName","formFieldGenericErrorMessage","formFieldMinMaxErrorMessage","min","max","formFieldMinMaxNoMaxErrorMessage","formFieldInititalsErrorMessage","formFieldPhoneNumberErrorMessage","formFieldUnsupportedFormatFieldErrorMessage","parseHtmlEncodedString","DOMParser","parseFromString","body","textContent","TryJsonParse","o","e","value","newValue","regularExpressionForMatchingCurlyBrackets","matches","match","field","slice","valueFieldName","undefined","isString","obj","Object","prototype","toString","call","isDate","alertApiUrl","setApiUrl","apiUrl","getApiUrl","animationTimer","animationWidgetTimer","activeAnimationContext","disableAllAnimations","preloading","ANIMATION_DASHBOARD_LOADING_CONTEXT","enableFormAnimations","enableAnimations","animationContext","disableAnimations","clearTimeout","setTimeout","widgets","document","querySelectorAll","isPreloading","loop","length","classList","contains","elements","element","AnimationService","triggerAnimationBlock","widget","triggerAnimationWidget","resetPreloadForm","startPreloadForm","disableAnimationsForForm","getAnimationStateForForm","add","delay","loadingCounter","increaseLoadingCounter","decreaseLoadingCounter","getLoadingCounter","resetLoadingCounter","dropdownFormOptionsPerFormControl","setOptionsForForm","formControlName","options","Array","isArray","getOptionsForForm","isESBOnline","isOnline","getESBIsOnline","errorMessageTitle","errorMessageDescription","errorMessagePhoneNumber","errorMessagePhoneNumberInfo","errorMessageButtonText","setErrorMessagePropertes","title","description","phoneNumber","phoneNumberInfo","buttonText","notAllDataCanBeRetrieved","errorObject","Title","requiredFieldTip","autoInsertFormFieldGroup","urlMappings","urlMappingsRelatedData","formOverrides","parameterMappings","outputMappings","datasourceConditions","setFormConfig","incomingFormConfig","getFormConfig","setMemberCallback","isSummaryView","backUrl","lidZoekenSubFunctions","payload","lidZoekenSubFunctionsForMember","formCallback","formConfigStore","currentFormConfig","setIsSummaryView","getIsSummaryView","setBackUrl","getBackUrl","setMemberDetailsCallback","callback","getIsInLidZoekenSubFunctions","getLidZoekenSubFunctionsForMember","memberDetails","setPayload","payloadValue","getPayload","registerRelatedDataCallback","callbackFunction","callFormRelatedDataCallback","datasource","getCurrentFormConfig","history","setRouterHistory","_history","getRouterHistory","question","answer","setQuestion","setAnswer","getQuestionAndAnswer","loginDuration","setLoginDuration","duration","getLoginDuration","pageType","setPageType","getPageType","popoverCallbacks","registerPopover","fieldId","unRegisterPopover","closeAllPopovers","keys","popoverField","printView","setPrintView","getPrintView","accept","consentId","callApi","revoke","type","apiOptions","injectUserId","useApiPrefix","post","CONSENT_API_PREFIX"],"sourceRoot":""}