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EAAWzB,EAAK,GAChB8C,EAAc9C,EAAK,GACnB+C,EAAU/C,EAAK,GAGI8B,EAAI,EAC3B,GAAGL,EAASuB,MAAMtF,GAAgC,IAAxBgF,EAAgBhF,KAAa,CACtD,IAAIuD,KAAY6B,EACZ9B,EAAoBsB,EAAEQ,EAAa7B,KACrCD,EAAoBM,EAAEL,GAAY6B,EAAY7B,IAGhD,GAAG8B,EAAS,IAAIvB,EAASuB,EAAQ/B,EAClC,CAEA,IADG6B,GAA4BA,EAA2B7C,GACrD8B,EAAIL,EAASjG,OAAQsG,IACzBa,EAAUlB,EAASK,GAChBd,EAAoBsB,EAAEI,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAO3B,EAAoBO,EAAEC,EAAO,EAGjCyB,EAAqBC,KAA6B,uBAAIA,KAA6B,wBAAK,GAC5FD,EAAmB9I,QAAQyI,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBrG,KAAOgG,EAAqBO,KAAK,KAAMF,EAAmBrG,KAAKuG,KAAKF,G,KChDvF,IAAIG,EAAsBpC,EAAoBO,OAAEvG,EAAW,CAAC,OAAO,IAAOgG,EAAoB,QAC9FoC,EAAsBpC,EAAoBO,EAAE6B,E","sources":["webpack://frontendv2/webpack/runtime/chunk loaded","webpack://frontendv2/./src/js/scripts/vergoedingen.js","webpack://frontendv2/./src/js/library/legacy/vergoedingen/vergoedingentool.js","webpack://frontendv2/./src/js/library/legacy/a11y.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};","// Dependencies\nrequire('jquery');\nrequire('../library/legacy/a11y.js');\n\n// Sequence indifferent\nrequire('alias_stub');\nrequire('../library/legacy/vergoedingen/vergoedingentool.js');\n","// Needs jquery request for mockajax\n// Rest is jquery-free\njQuery(function($) {\n 'use strict';\n var srcArr = [],\n lblArr = [],\n index,\n srcitem,\n firstResult,\n ctrl = document.getElementsByClassName('vt__input')[0],\n subButton = document.querySelector('.vt__submit');\n\n function addClass(elmnt, clss, base = document) {\n base.querySelectorAll(elmnt).forEach(function(elmnt){\n elmnt.classList.add(clss);\n });\n }\n \n function addResults(rArr, sq) {\n let results = document.querySelector('.vt__suggestions');\n rArr.forEach(function(item){\n let litem = document.createElement('li'),\n llink = document.createElement('a'),\n normalizedText = item.value.toLowerCase(),\n lid = normalizedText.replaceAll('-', '_'),\n current = window.location.href,\n resultText;\n llink.alt = item.value;\n llink.id = 'ipoclick-lnk-pa-zorgvergoedingen-' + lid;\n if (current.at(-1) === '/') {\n llink.href = window.location.href + normalizedText;\n } else {\n llink.href = window.location.href + '/' + normalizedText;\n }\n\n llink.href = llink.href?.toLowerCase().replace('niet-vergoed', 'niet-vergoed?zoekterm=' + item.label);\n\n llink.classList.add('vt__searchitem');\n\n resultText = `` + item.label + ``;\n resultText = resultText.replace(sq.toLowerCase(),`` + sq.toLowerCase() + ``);\n resultText = resultText + `; ` + item.desc + ``;\n\n llink.innerHTML = resultText;\n\n litem.appendChild(llink);\n results.appendChild(litem);\n })\n }\n\n function clearResults() {\n let results = document.querySelector('.vt__suggestions');\n results.innerHTML = '';\n }\n\n function getPrioritizedResults(q) {\n let count = 5,\n countFinal = count,\n resArr=[],\n subArr = lblArr.filter(str => str.includes(q.toLowerCase()));\n \n subArr.sort(function (a, b) {\n return a.indexOf(q) - b.indexOf(q);\n });\n if (subArr.length < count) {\n count = subArr.length;\n }\n subArr = subArr.slice(0, count)\n subArr.forEach(function(lbl){\n let si = srcArr.filter(function(item) {\n return item.label.toLowerCase() === lbl;\n });\n /* maybe si has multiple items */\n si.forEach(function(sitem){\n if (!resArr.includes(sitem)) {\n resArr.push(sitem)\n }\n });\n })\n /* cap results again */\n if (resArr.length < countFinal) {\n countFinal = resArr.length;\n }\n resArr = resArr.slice(0, countFinal)\n return resArr;\n }\n \n // needs jquery request for mockajax\n function getSleutelwoorden(lbl, jaar, success) {\n $.support.cors = true;\n $.getJSON('/ApiProxy/Vergoedingentool/sleutelwoorden/' + lbl + '/' + jaar).done(success);\n }\n\n function hideAllProducts() {\n removeClass('.vt__product', 'is-selected');\n addClass('.vt__detail', 'display--hidden');\n setTabs('.vt__product a','-1');\n document.querySelectorAll('.vt__product').forEach(function(product) {\n product.querySelector('.vt__top').setAttribute('aria-expanded', 'false');\n })\n }\n\n function hideAllSubs() {\n removeClass('.vt__sub', 'is-selected');\n addClass('.vt__subtext + .vt__endpoints', 'visually-hidden');\n setTabs('.vt__endpoints a','-1');\n document.querySelectorAll('.vt__sub').forEach(function(sub) {\n sub.setAttribute('aria-expanded', 'false');\n })\n }\n\n function hideAllSubthemes() {\n hideAllSubs();\n removeClass('.vt__theme', 'is-selected');\n addClass('.vt__subtheme', 'visually-hidden');\n setTabs('.vt__sub','-1');\n setTabs('.vt__endpoints a','-1');\n document.querySelectorAll('.vt__theme').forEach(function(theme) {\n theme.setAttribute('aria-expanded', 'false');\n })\n }\n\n function goToFirstSuggest() {\n if(firstResult != undefined || firstResult != null) {\n window.location.href = firstResult.href;\n }\n }\n \n function hideAutoSuggest() {\n addClass('.vt__autosuggest', 'visually-hidden');\n ctrl.classList.remove('has-suggest');\n }\n\n function initOrderAttribute(items) {\n let counter = 1,\n rowCounter = 1;\n\n Array.prototype.forEach.call(items, function(item){\n if (item.classList.contains('vt__subtheme')) {\n item.style.setProperty('--attr-o', (rowCounter * 10) - 5);\n if (counter%2===1) {\n counter = 1+(rowCounter * 10);\n rowCounter = rowCounter+1;\n }\n } else {\n item.style.setProperty('--attr-o', counter);\n counter = counter + 1;\n }\n });\n }\n\n function mapData(data) {\n if (data && data.Model) {\n for (index = 0; index < data.Model.length; index++) {\n srcitem = {\n label: data.Model[index].Zoeksleutel,\n value: data.Model[index].RefTitel,\n desc: data.Model[index].Titel\n };\n srcArr.push(srcitem);\n if(!lblArr.includes(data.Model[index].Zoeksleutel.toLowerCase())) {\n lblArr.push(data.Model[index].Zoeksleutel.toLowerCase());\n }\n }\n }\n }\n\n function refillResults(sq) {\n if (sq.length>2) {\n document.querySelector('.vt__autosuggest').classList.remove('visually-hidden');\n ctrl.classList.add('has-suggest');\n let results = getPrioritizedResults(sq);\n clearResults();\n addResults(results, sq);\n } else {\n hideAutoSuggest()\n }\n }\n\n function removeClass(elmnt, clss, base = document) {\n base.querySelectorAll(elmnt).forEach(function(elmnt){\n elmnt.classList.remove(clss);\n });\n }\n \n function setTabs(elmnts, value, base = document) {\n base.querySelectorAll(elmnts).forEach(function(elmnt){\n elmnt.setAttribute('tabindex',value);\n })\n }\n\n function showThisProduct(product) {\n hideAllProducts();\n product.querySelector('.vt__detail').classList.remove('display--hidden');\n product.classList.add('is-selected');\n setTabs('a','0',product);\n product.querySelector('.vt__top').setAttribute('aria-expanded', 'true');\n\n }\n\n function showThisSub(sub) {\n hideAllSubs();\n removeClass('.vt__endpoints','visually-hidden',sub)\n setTabs('a','0', sub);\n sub.classList.add('is-selected');\n sub.setAttribute('aria-expanded', 'true');\n }\n\n function showThisSubtheme(item) {\n hideAllSubthemes();\n let subtheme = item.nextElementSibling;\n subtheme.classList.remove('visually-hidden');\n item.classList.add('is-selected');\n item.setAttribute('aria-expanded', 'true');\n setTabs('.vt__sub','0',subtheme);\n item.nextElementSibling.querySelectorAll('.vt__sub').forEach(function(sub) {\n if (sub.childElementCount === 1) {\n sub.removeAttribute('tabindex');\n sub.removeAttribute('aria-expanded');\n setTabs('.vt__endpoints a','0',sub)\n }\n })\n }\n\n let themes = document.querySelectorAll('.vt__themes > button, .vt__themes > div')\n initOrderAttribute(themes);\n\n // niet vergoed automatisch geopend\n document.querySelectorAll('.vt__product').forEach(function(product){\n if (product.getAttribute('product') == 'nietvergoed') {\n showThisProduct(product);\n }\n\n window.a11y.addAccesibleEventListeners(product, function(product) {\n if (product.classList.contains('is-selected')) {\n hideAllProducts();\n } else {\n showThisProduct(product);\n };\n });\n })\n\n // prevent double fireing of meetid\n document.querySelectorAll('.vt__detail a').forEach(function(detail){\n detail.addEventListener('click', function(e) {\n e.stopPropagation();\n });\n });\n\n document.querySelectorAll('.vt__theme').forEach(function(theme){\n window.a11y.addAccesibleEventListeners(theme, function(theme) {\n if (theme.classList.contains('is-selected')) {\n hideAllSubthemes();\n } else {\n showThisSubtheme(theme);\n };\n });\n });\n\n document.querySelectorAll('.vt__sub').forEach(function(sub){\n window.a11y.addAccesibleEventListeners(sub, function(sub){\n if (sub.classList.contains('is-selected')) {\n hideAllSubs();\n } else {\n showThisSub(sub);\n }\n });\n });\n\n if (document.getElementsByClassName('vt__input').length > 0) {\n let jaar = document.querySelector('.vt__period .pill.is-selected').textContent,\n label = document.querySelector('.vt__choice .pill.is-selected').textContent;\n if (label === 'ZorgActief') {\n label = 'Interpolis';\n }\n\n getSleutelwoorden(label, jaar, function(d) {\n mapData(d);\n\n ctrl.addEventListener('search', function() {\n hideAutoSuggest();\n });\n\n ctrl.addEventListener('keyup', function(e) {\n let sq = ctrl.value;\n if(e.key === 'Backspace' ||\n e.key === 'Delete') {\n refillResults(sq);\n }\n if(e.key === 'Enter') {\n goToFirstSuggest();\n }\n });\n\n ctrl.addEventListener('keydown', function(e) {\n let sq;\n firstResult = document.querySelector('.vt__searchitem');\n\n if (/[a-zA-Z0-9-_ ]/.test(e.key)) {\n sq = ctrl.value + String.fromCharCode(e.which);\n }\n refillResults(sq);\n });\n });\n }\n\n subButton.addEventListener('click', function(){\n firstResult = document.querySelector('.vt__searchitem');\n goToFirstSuggest();\n });\n});\n","\n/* Use this for non standard action items. \n**\n** No need to use it for buttons or links as they already have default a11y handlers\n** from the browser\n**\n*/\nwindow.a11y = (function() {\n \n return {\n addAccesibleEventListeners: function(elmnt, cb) {\n elmnt.addEventListener('click', function() {\n cb(this)\n });\n elmnt.addEventListener('keydown', function(e) {\n if (e.key === 'Enter') {\n e.preventDefault();\n cb(this);\n }\n });\n }\n }\n})();\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\t63: 0,\n\t7989: 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__(3948)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","jQuery","$","index","srcitem","firstResult","srcArr","lblArr","ctrl","document","getElementsByClassName","subButton","querySelector","addClass","elmnt","clss","base","querySelectorAll","forEach","classList","add","hideAllProducts","removeClass","setTabs","product","setAttribute","hideAllSubs","sub","hideAllSubthemes","theme","goToFirstSuggest","undefined","window","location","href","hideAutoSuggest","remove","refillResults","sq","length","results","q","count","countFinal","resArr","subArr","filter","str","includes","toLowerCase","sort","a","b","indexOf","slice","lbl","item","label","sitem","push","getPrioritizedResults","innerHTML","rArr","resultText","litem","createElement","llink","normalizedText","value","lid","replaceAll","current","alt","id","at","replace","desc","appendChild","addResults","elmnts","showThisProduct","items","counter","rowCounter","Array","prototype","call","contains","style","setProperty","initOrderAttribute","getAttribute","a11y","addAccesibleEventListeners","detail","addEventListener","e","stopPropagation","subtheme","nextElementSibling","childElementCount","removeAttribute","showThisSubtheme","showThisSub","jaar","textContent","support","cors","getJSON","done","d","data","Model","Zoeksleutel","RefTitel","Titel","mapData","key","test","String","fromCharCode","which","getSleutelwoorden","cb","this","preventDefault","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","splice","r","o","obj","prop","hasOwnProperty","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""}