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.ts","webpack://fed-project/./app/assets/ts/static/slider/constants.ts"],"sourcesContent":["import * as Handlebars from 'handlebars';\r\nimport { EventManager } from '@fnv-core/events';\r\nimport { isIOS, updateCurrentUrlParameter } from '@fnv-core/utils';\r\nimport { PluginManager } from '@fnv-static/plugins';\r\nimport { EVENT_PAGESLIDER_ITEMS_LOADED } from '@fnv-static/slider';\r\nimport { getAllUrlParams } from './jslibs/urlparams';\r\nimport { registerHandlebarsHelpers } from './helpers/handlebars-helpers';\r\n\r\nrequire('jquery-ellipsis');\r\n\r\ninterface EllipsisOptions{\r\n count? : number;\r\n type? : string;\r\n}\r\n\r\ndeclare global {\r\n interface JQuery {\r\n ellipsis(options?: EllipsisOptions): this;\r\n }\r\n}\r\n\r\nexport interface IFilterSearchInfo {\r\n itemTemplate : any;\r\n groupTemplate : any;\r\n loadMoreTemplate : any;\r\n noResultsTemplate : any;\r\n dateField : any;\r\n pageNo: number;\r\n currentMonth : string;\r\n groupMode : string;\r\n maxItems : number;\r\n resultsCount : number;\r\n\r\n filterElement : any;\r\n\r\n storeTimer: any;\r\n searchIndex : number;\r\n}\r\n\r\nlet developMode = false;\r\n\r\nfunction setupFilterCategoryAccordion() {\r\n $(\".filter__facet-accordion-toggle\").off(\"click\");\r\n $(\".filter__facet-accordion-toggle\").on(\"click\", function(event) {\r\n event.preventDefault();\r\n $(this).closest(\".filter__facet-accordion\").toggleClass(\"filter__facet-accordion-closed\");\r\n return false;\r\n });\r\n}\r\n\r\nfunction setupFilterMobile() {\r\n if(isIOS() && $(\".filter__filter-options-container\").length > 0) {\r\n\r\n // The below is a fix for scrolling the body behind a position-fixed overlay\r\n // Tne positive side-effect is that this also fixes the bug on ios that an overlay can hang\r\n // after triggering the \"momentum scrolling\" effect and trying to move the other way\r\n // (somehow this triggers scrolling the body instead of the overlay)\r\n (function () { \r\n var _overlay = $(\".filter__filter-options-container\")[0]; \r\n var _clientY : number = null; // remember Y position on touch start\r\n \r\n function isOverlayTotallyScrolled() { \r\n // https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight#Problems_and_solutions \r\n return _overlay.scrollHeight - _overlay.scrollTop <= _overlay.clientHeight; \r\n }\r\n \r\n _overlay.addEventListener('touchstart', function (event : TouchEvent) {\r\n \r\n if (event.targetTouches.length === 1) { \r\n _clientY = event.targetTouches[0].clientY; \r\n }\r\n \r\n }, false);\r\n \r\n function disableRubberBand(event : TouchEvent) {\r\n \r\n var clientY = event.targetTouches[0].clientY - _clientY;\r\n \r\n if (_overlay.scrollTop === 0 && clientY > 0) { \r\n // element is at the top of its scroll \r\n event.preventDefault(); \r\n }\r\n \r\n if (isOverlayTotallyScrolled() && clientY < 0) { \r\n //element is at the top of its scroll \r\n event.preventDefault(); \r\n } \r\n }\r\n \r\n _overlay.addEventListener('touchmove', function (event : TouchEvent) { \r\n if (event.targetTouches.length === 1) { \r\n disableRubberBand(event); \r\n }\r\n \r\n }, false);\r\n \r\n }());\r\n }\r\n}\r\n\r\nfunction resetFilter(filterSearchInfo : IFilterSearchInfo) {\r\n const pageNoUrl : string = \"/\" + filterSearchInfo.pageNo;\r\n const urlPostFix = \"search=\" + $(\".filter__search-input:not(.filter__search-input-menu)\").val();\r\n const url = $(filterSearchInfo.filterElement).find(\".filter__results\").attr(\"data-search-url\") + pageNoUrl + \"?\" + urlPostFix;\r\n\r\n filterSearchInfo.searchIndex++;\r\n const oldSearchIndex : number = filterSearchInfo.searchIndex;\r\n\r\n filterSearchInfo.resultsCount = 0;\r\n filterSearchInfo.pageNo = 1;\r\n filterSearchInfo.currentMonth = \"\";\r\n storeTimerFunction(filterSearchInfo, url, oldSearchIndex, true, 1);\r\n}\r\n\r\nexport function doFilter(initFilter : boolean, keepResultsUntilCallback : boolean, triggerWithDelay : boolean, filterSearchInfo : IFilterSearchInfo) {\r\n \r\n let isAndOrFacetsSearch = false;\r\n let addAdditionalActiviteitenFacets = false;\r\n let filterContainer = $(\".filter__container\");\r\n if (filterContainer.length > 0) {\r\n isAndOrFacetsSearch = $(filterContainer[0]).attr(\"data-and-or-facets\").toLowerCase() === \"true\";\r\n }\r\n\r\n if (filterContainer.length > 0) {\r\n if ($(filterContainer[0]).attr(\"data-activiteiten-facets\") !== undefined) {\r\n addAdditionalActiviteitenFacets = ($(filterContainer[0]).attr(\"data-activiteiten-facets\") || \"\").toLowerCase() === \"true\";\r\n }\r\n }\r\n\r\n filterSearchInfo.searchIndex++;\r\n let oldSearchIndex : number = filterSearchInfo.searchIndex;\r\n\r\n if (typeof filterSearchInfo.storeTimer != \"undefined\") {\r\n clearTimeout(filterSearchInfo.storeTimer);\r\n filterSearchInfo.storeTimer = undefined;\r\n }\r\n\r\n if (initFilter) {\r\n filterSearchInfo.resultsCount = 0;\r\n filterSearchInfo.pageNo = 1;\r\n filterSearchInfo.currentMonth = \"\";\r\n\r\n if (!keepResultsUntilCallback) {\r\n $(filterSearchInfo.filterElement).find(\".filter__results\").html(\"\"); \r\n }\r\n } else {\r\n $(filterSearchInfo.filterElement).find(\".filter__load-more-container\").remove();\r\n }\r\n\r\n let facetFilters : any = {};\r\n let filterCategories = \"\";\r\n let filterCategoryCodeNames = \"\";\r\n $(\".filter__filter-options-container form input:checked\").each((index: number, element) => {\r\n let facet : string = $(element).attr(\"name\");\r\n \r\n let existingValues = \"\";\r\n if (typeof facetFilters[facet] !== \"undefined\") {\r\n existingValues = facetFilters[facet] + \",\";\r\n }\r\n facetFilters[facet] = existingValues + $(element).val();\r\n\r\n if (filterCategories != \"\") {\r\n filterCategories += \",\";\r\n filterCategoryCodeNames += \",\";\r\n }\r\n filterCategories += $(element).val();\r\n filterCategoryCodeNames += $(element).attr('id').replace(\"facetcategorie-\", \"\");\r\n });\r\n\r\n let urlPostFix = \"\";\r\n for (let facet in facetFilters) {\r\n if (facetFilters.hasOwnProperty(facet)) {\r\n\r\n if (urlPostFix != \"\") {\r\n urlPostFix += \"&\"; \r\n }\r\n urlPostFix += facet + \"=\" + facetFilters[facet];\r\n }\r\n }\r\n\r\n const documentCategoryIdsFacet = \"documentcategoryids\";\r\n \r\n const selectedCategoryIds = $(filterSearchInfo.filterElement).find(\".filter__results\").attr(\"data-documentcategories\");\r\n if (selectedCategoryIds) {\r\n\r\n if (urlPostFix != \"\") {\r\n urlPostFix += \"&\";\r\n }\r\n urlPostFix += documentCategoryIdsFacet + \"=\" + selectedCategoryIds;\r\n }\r\n\r\n if ($(\".filter__search-sort\").length > 0) {\r\n const sortOption = $(\".filter__search-sort-option.active\").attr(\"data-sort\");\r\n\r\n if (urlPostFix != \"\") {\r\n urlPostFix += \"&\"; \r\n }\r\n\r\n urlPostFix += \"&orderby=\" + sortOption;\r\n }\r\n\r\n const defaultSortOption = $(filterSearchInfo.filterElement).find(\".filter__results\").attr(\"data-default-sort\");\r\n\r\n if(defaultSortOption !== undefined) {\r\n if (urlPostFix != \"\") {\r\n urlPostFix += \"&\"; \r\n }\r\n\r\n urlPostFix += \"&defaultorderby=\" + defaultSortOption;\r\n }\r\n \r\n const searchFieldSelector = \".filter__search-input:not(.filter__search-input-menu)\";\r\n const hasSearchField = $(searchFieldSelector).length > 0;\r\n\r\n // This only applies to search pages with a search input field, but the whole 'search' functionality is also used on pages where there is no search field (for example news block widgets)\r\n if (hasSearchField) {\r\n const searchVal = $(searchFieldSelector).val();\r\n if (urlPostFix != \"\") {\r\n urlPostFix += \"&\"; \r\n }\r\n\r\n urlPostFix += \"search=\" + searchVal;\r\n\r\n updateCurrentUrlParameter(\"search\", searchVal.toString());\r\n setQueryParamOnSearchTabs();\r\n }\r\n\r\n let pageNoUrl : string = \"/\" + filterSearchInfo.pageNo;\r\n\r\n if (developMode) {\r\n pageNoUrl = \"\";\r\n }\r\n\r\n if (isAndOrFacetsSearch && filterCategories !== \"\") {\r\n // search via facets mbv categories and/or\r\n if (urlPostFix != \"\") {\r\n urlPostFix += \"&\";\r\n }\r\n urlPostFix += \"documentcategoryids=\" + filterCategories;\r\n updateCurrentUrlParameter(\"categories\", filterCategoryCodeNames);\r\n setQueryParamOnSearchTabs();\r\n }\r\n\r\n const url = $(filterSearchInfo.filterElement).find(\".filter__results\").attr(\"data-search-url\") + pageNoUrl + \"?\" + urlPostFix;\r\n \r\n let timeInterval = 500;\r\n if (!triggerWithDelay) { \r\n timeInterval = 1;\r\n }\r\n\r\n storeTimerFunction(filterSearchInfo, url, oldSearchIndex, initFilter, timeInterval);\r\n}\r\n\r\nfunction storeTimerFunction(filterSearchInfo: IFilterSearchInfo, url: string, oldSearchIndex: number, initFilter: boolean, timeInterval: number){\r\n filterSearchInfo.storeTimer = setTimeout(function () {\r\n $.ajax({\r\n url: url\r\n }).done(function (data) {\r\n\r\n if (oldSearchIndex != filterSearchInfo.searchIndex) {\r\n return;\r\n }\r\n\r\n $(\".filter__filter-result-title\").removeClass(\"hidden\");\r\n $(\".filter__form\").removeClass(\"hidden\");\r\n\r\n $(\".filter__container\").removeAttr(\"data-search-initialised\");\r\n\r\n if (typeof data != \"undefined\" && data !== null && typeof data.searchResults != \"undefined\") {\r\n let html = \"\"; \r\n\r\n $(\".filter__search-tabs-container\").removeClass(\"hidden\");\r\n \r\n if (filterSearchInfo.pageNo == 1 && $(\".filter__search-title\").length > 0) {\r\n\r\n if (data.totalAmountOfResults == 1) {\r\n html += \"
1 \" + $(\".filter__search-title\").attr(\"data-result\") + \"
\";\r\n } else\r\n if (data.totalAmountOfResults > 1) {\r\n html += \"
\" + data.totalAmountOfResults + \" \" + $(\".filter__search-title\").attr(\"data-results\") + \"
\";\r\n } else {\r\n html += \"
\" + $(\".filter__search-title\").attr(\"data-title\") + \"
\";\r\n }\r\n }\r\n\r\n if (data.totalAmountOfResults == 0) {\r\n $(\".filter__container\").attr(\"data-search-initialised\", \"1\");\r\n\r\n if (typeof filterSearchInfo.noResultsTemplate !== \"undefined\") {\r\n html = filterSearchInfo.noResultsTemplate();\r\n $(filterSearchInfo.filterElement).find(\".filter__results\").html(html);\r\n $(\".filter__search-container-results\").removeClass(\"hidden\");\r\n \r\n $(\".filter__form input:checked\").closest(\".form-group\").removeClass(\"hidden\");\r\n $(\".filter__form input:not(:checked)\").closest(\".form-group\").addClass(\"hidden\");\r\n\r\n $(\".filter__form input:checked\").closest(\".form-sub-group\").removeClass(\"hidden\");\r\n $(\".filter__form input:not(:checked)\").closest(\".form-sub-group\").addClass(\"hidden\");\r\n\r\n $(\".filter__facet-group\").each(function (index, element) {\r\n if ($(\".filter__form input:checked\").length == 0) {\r\n $(element).prev().addClass(\"hidden\");\r\n }\r\n });\r\n\r\n return;\r\n }\r\n }\r\n\r\n // When there are results show the related activiteiten (this is a different way of searching and has a predefined of facets)\r\n if (data.totalAmountOfResults > 0 && $(filterSearchInfo.filterElement).closest(\".related-activiteiten\").length > 0) {\r\n $(filterSearchInfo.filterElement).closest(\".related-activiteiten\").removeClass(\"hidden\");\r\n $(filterSearchInfo.filterElement).closest(\".related-activiteiten\").removeClass(\"d-none\");\r\n $(filterSearchInfo.filterElement).closest(\".widgets\").removeClass(\"empty\");\r\n } else\r\n if (data.totalAmountOfResults > 0 && $(filterSearchInfo.filterElement).closest(\".related-kennisbank\").length > 0) {\r\n $(filterSearchInfo.filterElement).closest(\".related-kennisbank\").removeClass(\"hidden\");\r\n $(filterSearchInfo.filterElement).closest(\".related-kennisbank\").removeClass(\"d-none\");\r\n $(filterSearchInfo.filterElement).closest(\".widgets\").removeClass(\"empty\");\r\n }\r\n\r\n filterSearchInfo.resultsCount += data.searchResults.length; \r\n\r\n data.searchResults.map((item : any, index : number) => {\r\n if (filterSearchInfo.maxItems !== -1 && index >= filterSearchInfo.maxItems) {\r\n return;\r\n }\r\n if (typeof filterSearchInfo.dateField != \"undefined\" && \r\n filterSearchInfo.dateField != \"\" && \r\n typeof item.Document[filterSearchInfo.dateField] != \"undefined\") {\r\n\r\n const date = new Date(item.Document[filterSearchInfo.dateField]);\r\n \r\n item.month = ( window).months[date.getMonth()];\r\n item.day = date.getDate();\r\n \r\n if (filterSearchInfo.groupMode == \"month\") {\r\n let monthYear = ( window).monthFull[date.getMonth()] + \" \" + date.getFullYear();\r\n\r\n if (monthYear != filterSearchInfo.currentMonth || filterSearchInfo.currentMonth == \"\") {\r\n html += filterSearchInfo.groupTemplate({titel : monthYear});\r\n }\r\n\r\n filterSearchInfo.currentMonth = monthYear;\r\n }\r\n }\r\n\r\n if (typeof item.Document[\"date\"] != \"undefined\" && item.Document[\"date\"] != null) {\r\n const date = new Date(item.Document[\"date\"]);\r\n item.dateAsString = date.getDate() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getFullYear();\r\n } else if (typeof item.Document[\"documentlastpublished\"] != \"undefined\" && item.Document[\"documentlastpublished\"] != null) {\r\n const date = new Date(item.Document[\"documentlastpublished\"]);\r\n item.dateAsString = date.getDate() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getFullYear();\r\n } else \r\n {\r\n item.dateAsString = \"\";\r\n }\r\n\r\n if (item.Document[\"nieuwsfoto\"]) {\r\n let nieuwsfoto = item.Document[\"nieuwsfoto\"];\r\n if ((nieuwsfoto || \"\").indexOf(\"~\") == 0) {\r\n nieuwsfoto = (nieuwsfoto || \"\").slice(1);\r\n if (nieuwsfoto.indexOf(\"?\") >= 0) {\r\n nieuwsfoto += \"&type=NieuwsOverzicht\";\r\n } else {\r\n nieuwsfoto += \"?type=NieuwsOverzicht\";\r\n }\r\n item.Document[\"nieuwsfoto\"] = nieuwsfoto;\r\n }\r\n }\r\n\r\n if (item.Document[\"teaserimage\"]) {\r\n let teaserimage = item.Document[\"teaserimage\"];\r\n\r\n if ((teaserimage || \"\").indexOf(\"~\") == 0) {\r\n teaserimage = (teaserimage || \"\").slice(1);\r\n item.Document[\"teaserimage\"] = teaserimage;\r\n }\r\n }\r\n\r\n let isDefaultRendering = true;\r\n if (item.Document && item.Document[\"classname\"]) {\r\n const templateName = item.Document[\"classname\"].replace(/\\./g , \"-\"); \r\n const element = $(\"#\" + templateName + \"-template\");\r\n if (element.length == 1) {\r\n const itemSource = element.html();\r\n let template = Handlebars.compile(itemSource);\r\n html += template(item);\r\n isDefaultRendering = false;\r\n }\r\n }\r\n\r\n if (isDefaultRendering) {\r\n html += filterSearchInfo.itemTemplate(item);\r\n }\r\n });\r\n \r\n if (filterSearchInfo.resultsCount < data.totalAmountOfResults) { \r\n html += filterSearchInfo.loadMoreTemplate(); \r\n }\r\n\r\n if (initFilter) {\r\n $(filterSearchInfo.filterElement).find(\".filter__results\").html(html);\r\n } else {\r\n $(filterSearchInfo.filterElement).find(\".filter__results\").append(html);\r\n }\r\n\r\n if ($(\".filter__filter-item-teaser\").length > 0) {\r\n $(\".filter__filter-item-teaser\").ellipsis({count : 2, type : \"lines\"});\r\n }\r\n \r\n if (data.totalAmountOfResults > 0 && $(\".filter__search-container-results\").length > 0) {\r\n $(\".filter__search-container-results\").removeClass(\"hidden\");\r\n }\r\n\r\n if (filterSearchInfo.resultsCount < data.totalAmountOfResults) {\r\n $(filterSearchInfo.filterElement).find(\".filter__load-more\").off(\"click\");\r\n $(filterSearchInfo.filterElement).find(\".filter__load-more\").on(\"click\", function (event) {\r\n event.preventDefault();\r\n filterSearchInfo.pageNo++;\r\n doFilter(false, false, false, filterSearchInfo);\r\n return false;\r\n });\r\n }\r\n\r\n // default geen zoek count\r\n $(\".filter__form input\").parent().find(\".filter__count\").text(\"(0)\");\r\n\r\n $(\".filter__form input:checked\").closest(\".form-group\").removeClass(\"hidden\");\r\n $(\".filter__form input:not(:checked)\").closest(\".form-group\").addClass(\"hidden\");\r\n\r\n $(\".filter__form input:checked\").closest(\".form-sub-group\").removeClass(\"hidden\");\r\n $(\".filter__form input:not(:checked)\").closest(\".form-sub-group\").addClass(\"hidden\");\r\n\r\n for (let facet in data.searchableFacets) {\r\n if (data.searchableFacets.hasOwnProperty(facet)) {\r\n for (let field in data.searchableFacets[facet]) {\r\n if (data.searchableFacets[facet].hasOwnProperty(field)) {\r\n let count = data.searchableFacets[facet][field];\r\n $(\".filter__form input[value='\" + field + \"']\").closest(\".form-group\").removeClass(\"hidden\");\r\n $(\".filter__form input[value='\" + field + \"']\").closest(\".form-sub-group\").removeClass(\"hidden\");\r\n $(\".filter__form input[value='\" + field + \"']\").closest(\".form-group\").find(\".filter__facet-accordion-toggle\").removeClass(\"hidden\");\r\n\r\n // activiteiten overzicht\r\n $(\".filter__form h3[data-fieldname='\" + facet + \"']\").siblings(\".form-group\").find(\"input[value='\" + field + \"']\").parent().find(\".filter__count\").text(\"(\" + count + \")\");\r\n $(\".filter__form h3[data-fieldname='\" + facet + \"']\").siblings(\".form-sub-group\").find(\"input[value='\" + field + \"']\").parent().find(\".filter__count\").text(\"(\" + count + \")\");\r\n // zoeken overzicht\r\n $(\".filter__form input[value='\" + field + \"']\").parent().find(\".filter__count\").text(\"(\" + count + \")\");\r\n }\r\n }\r\n }\r\n }\r\n\r\n $(\".filter__facet-group\").each(function (index, element) {\r\n if ($(element).find(\".form-group:not(.hidden)\").length == 0) {\r\n $(element).prev().addClass(\"hidden\");\r\n } else {\r\n $(element).prev().removeClass(\"hidden\");\r\n }\r\n });\r\n\r\n $(\".form-group\").each(function (index, element) {\r\n const hasAnySubGroupNotHidden = $(element).find(\".form-sub-group:not(.hidden)\").length > 0;\r\n if (!hasAnySubGroupNotHidden) {\r\n $(element).find(\".filter__facet-accordion-toggle\").first().addClass(\"hidden\");\r\n }\r\n });\r\n\r\n $(\".filter__facet-sub-group\").each(function (index, element) {\r\n if ($(element).find(\".form-sub-group:not(.hidden)\").length == 0) {\r\n $(element).prev().addClass(\"hidden\");\r\n } else {\r\n $(element).prev().removeClass(\"hidden\");\r\n }\r\n });\r\n\r\n setupOpenContentInModal();\r\n setupFilterCategoryAccordion();\r\n\r\n initKaderlidInfoShowLessMore();\r\n\r\n EventManager.publish(EVENT_PAGESLIDER_ITEMS_LOADED);\r\n }\r\n });\r\n }, timeInterval);\r\n}\r\n\r\nfunction setupOpenContentInModal() {\r\n let isLoading = false;\r\n $(\".content__open-modal\").off(\"click\");\r\n $(\".content__open-modal\").on(\"click\", function(event) {\r\n event.preventDefault();\r\n if (!!isLoading) {\r\n return false;\r\n }\r\n isLoading = true;\r\n const pageUrl = $(this).attr(\"href\");\r\n $.ajax({\r\n url: pageUrl + \"?IsInModal=true\"\r\n }).done(function(data) {\r\n isLoading = false;\r\n let gotoPageTitle = \"\";\r\n let filterContainer = $(\".filter__container\");\r\n if (filterContainer.length > 0) {\r\n gotoPageTitle = $(filterContainer[0]).attr(\"data-goto-page-button-text\");\r\n }\r\n \r\n $('.content-modal').remove();\r\n let newDiv = $(\"
\").append(data);\r\n $(newDiv).find(\"head\").remove();\r\n $(newDiv).find(\"noscript\").remove();\r\n $(newDiv).find(\"script\").remove();\r\n $(newDiv).find(\"link\").remove();\r\n $(newDiv).find(\".cookiebanner \").remove();\r\n $(newDiv).find(\".main-navbar \").remove();\r\n $(newDiv).find(\".breadcrumbs \").remove();\r\n $(newDiv).find(\".footer__fluid \").remove();\r\n $(newDiv).find(\".colophon__fluid\").remove();\r\n $(newDiv).find(\".container.content\").not(':first').remove();\r\n\r\n let result = `
\r\n
\r\n
\r\n Terug\r\n \r\n ×\r\n \r\n
\r\n
\r\n ${gotoPageTitle}\r\n
\r\n
\r\n
`;\r\n $(\"body\").append(result);\r\n $(\".content-modal .modal-body\").append(newDiv);\r\n $('.content-modal').modal('show');\r\n\r\n if (callBackInitializeContentModal) {\r\n callBackInitializeContentModal();\r\n }\r\n }).fail(function() {\r\n isLoading = false;\r\n location.href = pageUrl;\r\n });\r\n\r\n\r\n return false;\r\n });\r\n}\r\n\r\nfunction initInitialFilterValues(urlParams) {\r\n let categoriesParam = urlParams[\"categories\"];\r\n if(categoriesParam != undefined\r\n && categoriesParam != \"\") {\r\n let selectedCategoryCodeNames = categoriesParam.split(\",\");\r\n (selectedCategoryCodeNames.forEach(selectedCategorCodeName => {\r\n let checkboxInput = document.getElementById(\"facetcategorie-\" + selectedCategorCodeName);\r\n\r\n if(checkboxInput != undefined) {\r\n checkboxInput.checked = true;\r\n }\r\n }));\r\n }\r\n}\r\n\r\nfunction setQueryParamOnSearchTabs() {\r\n let tabOptionsElements = $(\".filter__search-tabs-options a.dropdown-item\");\r\n\r\n tabOptionsElements.each((i, element) =>\r\n {\r\n let currentUrl = $(element).attr('href');\r\n if(currentUrl.includes(\"?\"))\r\n {\r\n currentUrl = currentUrl.substring(0, currentUrl.indexOf(\"?\"));\r\n }\r\n $(element).attr('href', currentUrl + window.location.search);\r\n });\r\n\r\n}\r\n\r\nfunction initKaderlidInfoShowLessMore() {\r\n $(\".kadergroepen-info__show-more\").off(\"click\");\r\n $(\".kadergroepen-info__show-more\").on(\"click\" , function (event) {\r\n event.preventDefault();\r\n $(this).closest(\".body-text\").find(\".kadergroepen-info\").addClass(\"open\");\r\n return false;\r\n });\r\n\r\n $(\".kadergroepen-info__show-less\").off(\"click\");\r\n $(\".kadergroepen-info__show-less\").on(\"click\" , function (event) {\r\n event.preventDefault();\r\n $(this).closest(\".body-text\").find(\".kadergroepen-info\").removeClass(\"open\");\r\n return false;\r\n });\r\n}\r\n\r\nlet callBackInitializeContentModal;\r\nexport function initFilterController(initializeContentModal) {\r\n callBackInitializeContentModal = initializeContentModal;\r\n \r\n initKaderlidInfoShowLessMore();\r\n\r\n if ($(\".filter\").length > 0) {\r\n\r\n const urlParams = getAllUrlParams();\r\n if (urlParams[\"search\"] !== undefined && urlParams[\"search\"] !== \"\") {\r\n $(\".filter__search-input:not(.filter__search-input-menu)\").val(urlParams[\"search\"]);\r\n }\r\n\r\n if ($(\".filter\").attr(\"data-develop\") == \"DEVELOP\") {\r\n developMode = true;\r\n }\r\n\r\n registerHandlebarsHelpers();\r\n \r\n setupFilterMobile();\r\n\r\n initInitialFilterValues(urlParams);\r\n\r\n $(\".filter\").each(function(index, element) {\r\n let filterSearchInfo : IFilterSearchInfo = {\r\n itemTemplate : undefined,\r\n groupTemplate : undefined,\r\n loadMoreTemplate : undefined,\r\n noResultsTemplate : undefined,\r\n dateField : \"\",\r\n pageNo: 1,\r\n currentMonth : \"\",\r\n groupMode : \"off\",\r\n maxItems : -1,\r\n resultsCount : 0,\r\n filterElement : $(element),\r\n storeTimer : undefined,\r\n searchIndex : 1\r\n };\r\n \r\n filterSearchInfo.groupMode = $(element).attr(\"data-groupmode\");\r\n filterSearchInfo.dateField = $(element).attr(\"data-dateField\");\r\n\r\n const templateId = $(element).attr(\"data-filter-item-template-id\");\r\n const templateItemGroupId = $(element).attr(\"data-filter-grouptitle-template-id\");\r\n const loadMoreId = $(element).attr(\"data-load-more-template-id\");\r\n\r\n if ($(element).attr(\"data-max-items\") !== undefined) {\r\n filterSearchInfo.maxItems = parseFloat($(element).attr(\"data-max-items\"));\r\n }\r\n\r\n if (templateId != \"\" && templateItemGroupId != \"\" && loadMoreId != \"\") {\r\n const itemSource = $(\"#\" + templateId).html();\r\n filterSearchInfo.itemTemplate = Handlebars.compile(itemSource);\r\n\r\n const groupSource = $(\"#\" + templateItemGroupId).html();\r\n filterSearchInfo.groupTemplate = Handlebars.compile(groupSource);\r\n\r\n const loadMoreSource = $(\"#\" + loadMoreId).html();\r\n filterSearchInfo.loadMoreTemplate = Handlebars.compile(loadMoreSource);\r\n\r\n if (typeof($(element).attr(\"data-filter-noresults-template-id\")) !== \"undefined\" && \r\n $(element).attr(\"data-filter-noresults-template-id\") != \"\") {\r\n const noResultsSource = $(\"#\" + $(element).attr(\"data-filter-noresults-template-id\")).html();\r\n if (typeof noResultsSource !== \"undefined\") {\r\n filterSearchInfo.noResultsTemplate = Handlebars.compile(noResultsSource);\r\n }\r\n }\r\n\r\n $(\".filter__remove-filters-link\").on(\"click\", function(event) { \r\n let checkedBoxes = $(\".filter__filter-options-container form input:checkbox:checked\");\r\n checkedBoxes.each((_: number, element : HTMLElement) => {\r\n (element as HTMLInputElement).checked = false;\r\n });\r\n $(\".filter__remove-filters-link\").addClass(\"d-none\");\r\n resetFilter(filterSearchInfo);\r\n });\r\n \r\n $(\".filter__filter-options-container form input\").on(\"click\", function(event) { \r\n const checkedBoxes = $(\".filter__filter-options-container form input:checkbox:checked\");\r\n if(checkedBoxes.length < 1){\r\n $(\".filter__remove-filters-link\").addClass(\"d-none\");\r\n } else {\r\n $(\".filter__remove-filters-link\").removeClass(\"d-none\");\r\n }\r\n doFilter(true, false, false, filterSearchInfo);\r\n });\r\n\r\n $(\".filter__search-container form .input-group-append\").on(\"click\", function(event) {\r\n if ($(this).closest(\".pagebuilder__widget-zoekbalk\").length > 0) {\r\n return false;\r\n }\r\n\r\n doFilter(true, true, true, filterSearchInfo);\r\n });\r\n\r\n $(\".filter__search-container form input\").on(\"keydown\", function(event) {\r\n if ($(this).closest(\".pagebuilder__widget-zoekbalk\").length > 0) {\r\n return false;\r\n }\r\n\r\n if(event.key == 'Enter'){\r\n event.preventDefault();\r\n doFilter(true, true, true, filterSearchInfo);\r\n }\r\n });\r\n\r\n $(\"#autocompleteList\").on(\"click\", function(event) {\r\n location.href = \"zoeken?search=\" + event.target.innerText;\r\n });\r\n\r\n $(\".filter__search-sort-option\").click(function (event) {\r\n event.preventDefault();\r\n $(\".filter__search-sort-option\").removeClass(\"active\");\r\n $(this).addClass(\"active\");\r\n $(\".filter__search-sort-dropdown-toggle span\").text( $.trim($(this).text()) );\r\n $(\".filter__search-sort-dropdown-toggle\").dropdown('toggle');\r\n doFilter(true, false, false, filterSearchInfo);\r\n return false;\r\n });\r\n\r\n if ($(\".filter__search-container form input\").length == 0) {\r\n // Trigger auto-search for nieuwsoverzicht & activiteiten\r\n doFilter(true, false, false, filterSearchInfo);\r\n } else {\r\n if ($(\".filter__search-input:not(.filter__search-input-menu)\").length > 0) {\r\n if ($(\".filter__search-input:not(.filter__search-input-menu)\").val() != \"\") {\r\n doFilter(true, false, false, filterSearchInfo);\r\n }\r\n }\r\n }\r\n\r\n $(\".form-search\").submit(function (event) {\r\n event.preventDefault();\r\n return false;\r\n }); \r\n }\r\n\r\n if ($(\".filter__facet-group-title\").length > 0) {\r\n doFilter(true, false, false, filterSearchInfo);\r\n } \r\n });\r\n }\r\n}\r\n\r\nPluginManager.registerPlugin('filtercontroller', initFilterController);\r\n","export const EVENT_PAGESLIDER_ITEMS_LOADED = 'pageslider-items-loaded';\r\n"],"names":["callBackInitializeContentModal","developMode","setupFilterMobile","_overlay","_clientY","$","length","addEventListener","event","targetTouches","clientY","scrollTop","preventDefault","scrollHeight","clientHeight","disableRubberBand","doFilter","initFilter","keepResultsUntilCallback","triggerWithDelay","filterSearchInfo","isAndOrFacetsSearch","filterContainer","attr","toLowerCase","undefined","searchIndex","oldSearchIndex","storeTimer","clearTimeout","resultsCount","pageNo","currentMonth","filterElement","find","html","remove","facetFilters","filterCategories","filterCategoryCodeNames","each","index","element","facet","existingValues","val","replace","urlPostFix","hasOwnProperty","selectedCategoryIds","documentCategoryIdsFacet","defaultSortOption","searchFieldSelector","searchVal","toString","setQueryParamOnSearchTabs","pageNoUrl","timeInterval","storeTimerFunction","url","setTimeout","ajax","done","data","isLoading","removeClass","removeAttr","searchResults","totalAmountOfResults","noResultsTemplate","closest","addClass","prev","map","item","maxItems","dateField","Document","date","Date","month","window","months","getMonth","day","getDate","groupMode","monthYear","monthFull","getFullYear","groupTemplate","titel","dateAsString","nieuwsfoto","indexOf","slice","teaserimage","isDefaultRendering","templateName","itemSource","template","itemTemplate","loadMoreTemplate","append","ellipsis","count","type","off","on","parent","text","searchableFacets","field","siblings","first","pageUrl","this","gotoPageTitle","newDiv","not","result","modal","fail","location","href","toggleClass","initKaderlidInfoShowLessMore","E","publish","i","currentUrl","includes","substring","search","initFilterController","initializeContentModal","urlParams","categoriesParam","split","forEach","selectedCategorCodeName","checkboxInput","document","getElementById","checked","initInitialFilterValues","templateId","templateItemGroupId","loadMoreId","parseFloat","groupSource","loadMoreSource","noResultsSource","_","resetFilter","key","target","innerText","click","trim","dropdown","submit","registerPlugin","EVENT_PAGESLIDER_ITEMS_LOADED"],"sourceRoot":""}