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0C,IAA7BD,EAAgBC,GAGxD,IAAIC,EAAuB,CAACC,EAA4BC,KACvD,IAKI9B,EAAU2B,EALVlB,EAAWqB,EAAK,GAChBC,EAAcD,EAAK,GACnBE,EAAUF,EAAK,GAGIhF,EAAI,EAC3B,GAAG2D,EAASwB,MAAMC,GAAgC,IAAxBR,EAAgBQ,KAAa,CACtD,IAAIlC,KAAY+B,EACZhC,EAAoBsB,EAAEU,EAAa/B,KACrCD,EAAoBO,EAAEN,GAAY+B,EAAY/B,IAGhD,GAAGgC,EAAS,IAAIxB,EAASwB,EAAQjC,EAClC,CAEA,IADG8B,GAA4BA,EAA2BC,GACrDhF,EAAI2D,EAAStC,OAAQrB,IACzB6E,EAAUlB,EAAS3D,GAChBiD,EAAoBsB,EAAEK,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAO5B,EAAoBQ,EAAEC,EAAO,EAGjC2B,EAAqBC,KAA6B,uBAAIA,KAA6B,wBAAK,GAC5FD,EAAmBE,QAAQT,EAAqBU,KAAK,KAAM,IAC3DH,EAAmBvD,KAAOgD,EAAqBU,KAAK,KAAMH,EAAmBvD,KAAK0D,KAAKH,G,KC/CvF,IAAII,EAAsBxC,EAAoBQ,OAAE/B,EAAW,CAAC,OAAO,IAAOuB,EAAoB,QAC9FwC,EAAsBxC,EAAoBQ,EAAEgC,E","sources":["webpack://frontendv2/webpack/runtime/chunk loaded","webpack://frontendv2/./src/js/library/legacy/collectiviteiten/collectiviteiten.js","webpack://frontendv2/./src/js/scripts/collectiviteiten.js","webpack://frontendv2/webpack/bootstrap","webpack://frontendv2/webpack/runtime/hasOwnProperty shorthand","webpack://frontendv2/webpack/runtime/jsonp chunk loading","webpack://frontendv2/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","/* eslint-disable max-len */\n/* eslint-disable max-statements */\njQuery(document).ready(function($) {\n 'use strict';\n\n var benefitIntroText, foundFct, replacementIndex, i, benefits, benefitsList, resultLabelText1, resultLabelText2, highlightedName, newName, searchResult, listItem, keyInput, collectiviteitenCollection, filteredCollectiviteiten, collectiviteitenDataList;\n\n function displayOrHideSearchResults(element, hide) {\n if (hide) {\n element.css('display', 'none');\n } else {\n element.css('display', 'block');\n }\n }\n\n function updateSearchDetails(filteredCollectiviteit) {\n $('#collectiviteiten-searchresult-data').empty();\n\n if (filteredCollectiviteit.AvailableBenefits.length > 0) {\n benefitIntroText = 'Voordelen van uw collectiviteit';\n benefits = $('

' + benefitIntroText + '

');\n benefitsList = $('');\n\n $.grep(filteredCollectiviteit.AvailableBenefits, function(availableBenefit) {\n benefitsList.append('
  • ' + availableBenefit.VoordeelDescription + '
  • ');\n });\n benefits.append(benefitsList);\n } else {\n benefits = $('');\n }\n\n $('#collectiviteiten-searchresult-data').append(\n '
    ' + filteredCollectiviteit.CollectiviteitName + '
    ' +\n '
    ' + resultLabelText1 + ' ' + filteredCollectiviteit.CollectiviteitNumber + '. ' + resultLabelText2 + '.');\n\n filteredCollectiviteiten = filteredCollectiviteiten.sort(function(comparable1, comparable2) {\n if (comparable1.CollectiviteitName < comparable2.CollectiviteitName) {\n return -1;\n } else if (comparable1.CollectiviteitName > comparable2.CollectiviteitName) {\n return 1;\n }\n return 0;\n });\n\n $.grep(filteredCollectiviteiten, function(fct) {\n replacementIndex = fct.CollectiviteitName.toLowerCase().indexOf(keyInput.val().toLowerCase());\n highlightedName = '';\n for (i = replacementIndex; i < (keyInput.val().length + replacementIndex); i++) {\n highlightedName = highlightedName + fct.CollectiviteitName.charAt(i);\n }\n newName = fct.CollectiviteitName.slice(0, replacementIndex) + highlightedName.bold() + fct.CollectiviteitName.slice(i);\n\n listItem = $('
    ');\n listItem.append('

    ' + newName + '

    ');\n listItem.append('

    Collectiviteitnummer: ' + fct.CollectiviteitNumber + '

    ');\n listItem.append('
    ');\n listItem.on('click', '*', function() {\n clickEventForListItem(fct);\n });\n\n searchResult.append(listItem);\n });\n searchResult.append('
    ');\n\n if (searchResult.children().length > 0) {\n $('#collectiviteiten-searchresult-data-list').html(searchResult);\n displayOrHideSearchResults($('#collectiviteiten-searchresult-data-list'), false);\n } else {\n displayOrHideSearchResults($('#collectiviteiten-searchresult-data-list'), true);\n }\n }\n\n function checkIfArrayItemExists(collectiviteit) {\n foundFct = false;\n $.grep(filteredCollectiviteiten, function(fct) {\n if (fct.Id === collectiviteit.Id) {\n foundFct = true;\n }\n });\n return foundFct;\n }\n\n function filterCollectiviteitenBasedOnKeyStrokes() {\n if (keyInput.val() !== undefined && keyInput.val().length >= 3) { // eslint-disable-line\n $.grep(collectiviteitenCollection, function(collectiviteit) {\n if (collectiviteit.CollectiviteitName.toLowerCase().indexOf(keyInput.val().toLowerCase()) !== -1) {\n if (!checkIfArrayItemExists(collectiviteit)) {\n filteredCollectiviteiten.push(collectiviteit);\n }\n } else if (checkIfArrayItemExists(collectiviteit)) {\n filteredCollectiviteiten.splice(filteredCollectiviteiten.indexOf(collectiviteit), 1);\n }\n });\n } else {\n filteredCollectiviteiten = [];\n }\n }\n\n if ($('.js-collectiviteiten').length !== 0) {\n collectiviteitenDataList = $('#collectiviteiten-searchresult-data');\n collectiviteitenCollection = JSON.parse($('#collectiviteiten-collection').val());\n resultLabelText1 = $('#collectiviteiten-search-resultlabel1').val();\n resultLabelText2 = $('#collectiviteiten-search-resultlabel2').val();\n filteredCollectiviteiten = [];\n\n keyInput = $('#collectiviteiten-keyword');\n keyInput.on('input', function() {\n filterCollectiviteitenBasedOnKeyStrokes();\n updateSearchResultDataList();\n });\n }\n});\n","// Sequence depending\n\n// Sequence indifferent\nrequire('../library/legacy/collectiviteiten/collectiviteiten.js');\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t5441: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkfrontendv2\"] = self[\"webpackChunkfrontendv2\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4692], () => (__webpack_require__(5048)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","jQuery","document","ready","$","foundFct","replacementIndex","i","benefits","benefitsList","resultLabelText1","resultLabelText2","highlightedName","newName","searchResult","listItem","keyInput","collectiviteitenCollection","filteredCollectiviteiten","displayOrHideSearchResults","element","hide","css","checkIfArrayItemExists","collectiviteit","grep","fct","Id","length","JSON","parse","val","on","undefined","CollectiviteitName","toLowerCase","indexOf","push","splice","empty","sort","comparable1","comparable2","charAt","slice","bold","append","CollectiviteitNumber","filteredCollectiviteit","AvailableBenefits","availableBenefit","VoordeelDescription","updateSearchDetails","children","html","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","Object","keys","every","key","r","o","obj","prop","prototype","hasOwnProperty","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","__webpack_exports__"],"sourceRoot":""}