PageSourceSearch

https://www.ilovescience.brussels/etc.clientlibs/visitbrussels/cli…/resources/3619-fda3bda8dc7b437b85d9.js

js ilovescience.brussels collected 2026-09-26 02:16:48 UTC 10,970 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[3619,3332],{45367:function(e,n,t){t.d(n,{R:function(){return r}});var r=function(e){var n={},t={};if(e.all&&"filtered_categories"in e.all){var r,o=null===(r=e.all)||void 0===r?void 0:r.filtered_categories;o&&(o.main_category.buckets.forEach((function(e){n[e.key]=e.doc_count})),o.other_category.buckets.forEach((function(e){t[e.key]=e.doc_count})))}else if(e.all&&"filtered_visit_category"in e.all){var i,a=null===(i=e.all)||void 0===i?void 0:i.filtered_visit_category;a&&a.visit_category.buckets.forEach((function(e){n[e.key]=e.doc_count}))}return{top_filter_category:n,other_category:t}}},8171:function(e,n,t){var r=t(80816);n.A=function(e){return e||(0,r.vV)("Missing required configuration for vue component: ".concat(window.location.href)),!0}},19785:function(e,n){n.A=function(e,n){return!!n.find((function(n){return e===n}))}},13332:function(e,n,t){t.d(n,{JA:function(){return c},LP:function(){return s},Uh:function(){return l},Yz:function(){return i},a5:function(){return o},cB:function(){return d},qf:function(){return a},vs:function(){return u}});var r=t(65756),o=function(e,n,t){return(0,r.U)({container:e,prevButton:n,nextButton:t,slideBy:1,gutter:50,swipeAngle:!1,preventScrollOnTouch:"force",autoWidth:!0,mouseDrag:!0,lazyload:!0,loop:!1,center:!1,nav:!1,responsive:{800:{gutter:84}}})},i=function(e,n){return(0,r.U)({container:e,items:1.1,slideBy:1,controls:!0,controlsContainer:n,mouseDrag:!0,lazyload:!0,gutter:20,loop:!1,center:!0,nav:!1})},a=function(e,n){return(0,r.U)({container:e,items:1.1,slideBy:1,controls:!0,controlsContainer:n,mouseDrag:!0,gutter:20,center:!0,loop:!1,nav:!1,responsive:{768:{items:1.3}}})},l=function(e,n){return(0,r.U)({container:e,items:1,slideBy:1,loop:!1,controlsContainer:n,mouseDrag:!0,lazyload:!0,center:!0,nav:!1})},u=function(e,n,t){return(0,r.U)({container:e,items:1.1,slideBy:1,controls:!0,controlsContainer:n,lazyload:!0,gutter:20,loop:!1,center:!1,mouseDrag:!0,nav:!1,responsive:{768:{items:2.2},1100:{items:t+.1},1920:{items:t}}})},c=function(e,n,t){return(0,r.U)({container:e,controlsContainer:n,startIndex:t,slideBy:1,edgePadding:16,gutter:16,autoWidth:!0,mouseDrag:!0,controls:!1,lazyload:!0,loop:!1,center:!1,nav:!1,responsive:{1025:{edgePadding:0,controls:!0}}})},s=function(e,n){return(0,r.U)({container:n,startIndex:e,controls:!1,autoWidth:!0,gutter:13,mouseDrag:!0,loop:!1,lazyload:!0,nav:!1,center:!1,arrowKeys:!1})},d=function(e,n,t,o,i){return(0,r.U)({container:e,prevButton:n,nextButton:t,startIndex:o,navContainer:i,navAsThumbnails:!0,items:1,loop:!1,mouseDrag:!0,lazyload:!0,center:!0})}},58612:function(e,n,t){function r(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return o(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){u=!0,a=e},f:function(){try{l||null==t.return||t.return()}finally{if(u)throw a}}}}function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}t.d(n,{BQ:function(){return v},Kw:function(){return c},QD:function(){return s},V9:function(){return f},d6:function(){return d},mZ:function(){return g},xf:function(){return m}});var i=new Event("urlupdate"),a=function(e){return""===e.toString()?window.location.pathname:window.location.pathname+"?"+e.toString()},l=function(e){var n=document.querySelector('link[rel="canonical"]');n&&n instanceof HTMLLinkElement&&(n.href=e,history.pushState(null,"",e))},u=function(e){var n=document.getElementsByClassName("cmp-language-navigation__item-link");Array.from(n,(function(n){if(n instanceof HTMLAnchorElement&&""!==n.href){var t=new URL(n.href);t.search=e,n.setAttribute("href",t.toString())}}))},c=function(e,n){if("URLSearchParams"in window){var t=new URLSearchParams(window.location.search),r=a(t);t.append(e,"string"==typeof n?n:n.toString());var o=a(t);u(t.toString()),o!==r&&l(o),window.dispatchEvent(i)}},s=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("URLSearchParams"in window){var t=new URLSearchParams(window.location.search),r=a(t);
1t.delete(e),n&&n.forEach((function(n){"number"==typeof n&&(n=n.toString()),t.append(e,n)}));var o=a(t);u(t.toString()),o!==r&&l(o),window.dispatchEvent(i)}},d=function(e){return"URLSearchParams"in window?new URLSearchParams(window.location.search).getAll(e):[]},f=function(e,n){var t=d(e);t.includes(n)?(t=t.filter((function(e){return e!==n})),s(e,t)):c(e,n)},v=function(e){if("URLSearchParams"in window){var n=new URLSearchParams(window.location.search);if(n.values().next().done)return!0;var t,o=r(e);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(n.has(i))return!1}}catch(e){o.e(e)}finally{o.f()}}return!0},m=function(e){if("URLSearchParams"in window){var n=new URLSearchParams(window.location.search),t=a(n);e.forEach((function(e){n.delete(e)}));var r=a(n);u(n.toString()),r!==t&&l(r),window.dispatchEvent(i)}},g=function(e,n){var t={},r=new URL(e),o=r.searchParams;return n||(n=Array.from(o.keys())),n.forEach((function(e){var n=o.get(e);n&&(t[e]=n,o.delete(e))})),r.search=o.toString(),[r.toString(),t]}},54288:function(e,n,t){t.d(n,{A:function(){return g}});var r=t(6934),o={key:0},i=["onClick"],a={class:"cmp-carousel__controls",ref:"sliderControlsRef"};var l=t(89394),u=t(45819),c=t(27152),s=t(13332),d=t(80816),f=t(68019),v="tns-slide-active",m=(0,r.pM)({name:"TopFilterSlider",components:{VueButton:f.default},props:{activeFilters:{type:Array,required:!0},data:{type:Array,required:!0},noClearFilter:{type:Boolean,default:!1},photoCover:{type:Boolean,default:!0}},emits:["clear-filter-clicked","filter-clicked"],setup:function(e){var n=(0,u.s9)().locale,t=(0,c.V)(n.value),o=(0,r.KR)(),i=(0,r.KR)(),a=(0,r.KR)(),f=(0,r.KR)(),m=(0,r.KR)(0),g=(0,r.KR)(1),h=(0,r.KR)(!1),p=function(e){return(0,l.A)(e).findIndex((function(e){return e.classList.contains(v)}))},y=function(e){return(0,l.A)(e).filter((function(e){return e.classList.contains(v)})).length};(0,r.nT)((function(){var n=o.value,t=i.value;if(n&&t&&!a.value)try{var r=e.data.findIndex((function(n){return n.value===e.activeFilters[0]}));a.value=(0,s.JA)(n,t,0===e.activeFilters.length?0:e.noClearFilter?r:r+1);var l=a.value.getInfo(),u=l.slideItems,c=l.slideCount;m.value=p(u),g.value=y(u),f.value=c,a.value.events.on("indexChanged",(function(e){m.value=p(e.slideItems),g.value=y(e.slideItems)}))}catch(e){(0,d.H4)(e),n.classList.add("multilevel-filter__onError")}}),{flush:"post"}),(0,r.sV)((function(){var e;o.value&&(h.value=(e=o.value).clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight)}));return{defaultGradient:"linear-gradient(0deg, rgba(25, 25, 25, 0.65), rgba(25, 25, 25, 0.65))",checkedGradient:"linear-gradient(0deg, rgba(84, 81, 255, 0.8), rgba(84, 81, 255, 0.8)), linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), linear-gradient(0deg, #5451FF, #5451FF)",goToTnsIndex:function(e){var n;null===(n=a.value)||void 0===n||n.goTo(e)},validLangCode:t,sliderContainerRef:o,sliderControlsRef:i,maxIndex:f,currentIndex:m,sliderIsOverflowing:h,getFilterIndex:function(n){return e.noClearFilter?n:n+1},getIsActiveSlide:function(e){return e>=m.value&&e<m.value+g.value}}}});t(35272);var g=(0,t(66262).A)(m,[["render",function(e,n,t,l,u,c){var s=(0,r.g2)("VueButton");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.Lk)("div",{class:(0,r.C4)(["cmp-multilevel-filter__main-category-list cmp-carousel__container",{"cmp-multilevel-filter__main-category-list--centered":!e.sliderIsOverflowing,"cmp-multilevel-filter--top-no-photo-cover":!e.photoCover}]),ref:"sliderContainerRef"},[e.noClearFilter?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",o,[(0,r.Lk)("button",(0,r.v6)({class:["cmp-multilevel-filter__filter",{"cmp-multilevel-filter__filter--checked":0===e.activeFilters.length}],style:e.photoCover?[0!==e.activeFilters.length?{backgroundImage:"".concat(e.defaultGradient,", url(/content/dam/visitbrussels/placeholder/filterAll.png)")}:{backgroundImage:"".concat(e.checkedGradient,", url(/content/dam/visitbrussels/placeholder/filterAll.png)")}]:[],onClick:n[0]||(n[0]=function(n){return e.$emit("clear-filter-clicked")})},!e.getIsActiveSlide(0)&&{ariaHidden:!0,tabindex:-1}),(0,r.v_)(e.$t("All")),17)])),(0,r.Q3)(" not all the finders are refactor yet so we have to consider the 2 options\r\n        and seems like in the catering finder we display the top filters in every case"),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.data,(function(n,t){var o,a,l;return(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",{key:n.value},[(0,r.Lk)("button",(0,r.v6)({class:["cmp-multilevel-filter__filter",{"cmp-multilevel-filter__filter--checked":e.activeFilters.includes(n.value)}],style:e.photoCover?[e.activeFilters.includes(n.value)?{backgroundImage:"".concat(e.checkedGradient,", url(").concat(n.picture,")")}:{backgroundImage:"".concat(e.defaultGradient,", url(").concat(n.picture,")")}]:[],onClick:function(r){e.$emit("filter-clicked",n.value),e.goToTnsIndex(e.getFilterIndex(t))},ref_for:!0},!e.getIsActiveSlide(e.getFilterIndex(t))&&{ariaHidden:!0,tabindex:-1}),[(0,r.eW)((0,r.v_)(n.label[e.validLangCode])+" ",1),(0,r.Q3)(" not all the finders are refactor yet so we have to consider the 2 options\r\n         and seems like in the catering finder we display the top filters in every case event if the value is null"),(0,r.eW)(" "+(0,r.v_)("number"==typeof n.filteredResultsAmount||null===n.filteredResultsAmount?n.filteredResultsAmount?"(".concat(n.filteredResultsAmount,")"):"":"(".concat(null!==(o=n.filteredResultsAmount)&&void 0!==o&&o.value?n.filteredResultsAmount.value:"
10",")")),1)],16,i)])),[[r.aG,"number"==typeof n.filteredResultsAmount||null===n.filteredResultsAmount?null===n.filteredResultsAmount||n.filteredResultsAmount>0:null===(null===(a=n.filteredResultsAmount)||void 0===a?void 0:a.value)||null!=(null===(l=n.filteredResultsAmount)||void 0===l?void 0:l.value)&&n.filteredResultsAmount.value>=0]])})),128))],2),(0,r.Lk)("div",a,[(0,r.bo)((0,r.bF)(s,{class:"btn btn--icon-only btn--white cmp-carousel__controls--prev",icon:"chevronLeft__small","aria-label":"Previous"},null,512),[[r.aG,0!==e.currentIndex]]),(0,r.bo)((0,r.bF)(s,{class:"btn btn--icon-only btn--white cmp-carousel__controls--next",icon:"chevronRight__small","aria-label":"Next"},null,512),[[r.aG,e.currentIndex+1!==e.maxIndex]])],512)],64)}]])}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.