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;;;;;;UCD31D;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;UENA;UACA;UACA;UACA;UACA","sources":["webpack://opten.mgh/./app/components/cookiebot.ts","webpack://opten.mgh/./app/components/filter.ts","webpack://opten.mgh/./app/components/header.ts","webpack://opten.mgh/./app/components/map.ts","webpack://opten.mgh/./app/main.ts","webpack://opten.mgh/./node_modules/@opten/compiler/factory/index.ts","webpack://opten.mgh/./node_modules/@opten/compiler/index.ts","webpack://opten.mgh/./node_modules/@opten/compiler/metadata/component.ts","webpack://opten.mgh/./node_modules/@opten/compiler/reflector/index.ts","webpack://opten.mgh/./node_modules/@opten/compiler/resolver/index.ts","webpack://opten.mgh/./node_modules/@opten/compiler/util/decorators.ts","webpack://opten.mgh/./node_modules/@opten/compiler/util/factories.ts","webpack://opten.mgh/./node_modules/@opten/compiler/util/type.ts","webpack://opten.mgh/./node_modules/@opten/dom/as-html-element/index.ts","webpack://opten.mgh/./node_modules/@opten/dom/class-regex/index.ts","webpack://opten.mgh/./node_modules/@opten/dom/get-class/index.ts","webpack://opten.mgh/./node_modules/@opten/dom/has-class/index.ts","webpack://opten.mgh/./node_modules/@opten/dom/is-html-element/index.ts","webpack://opten.mgh/./node_modules/@opten/events/event-dispatcher/index.ts","webpack://opten.mgh/./app/main.scss","webpack://opten.mgh/webpack/bootstrap","webpack://opten.mgh/webpack/runtime/define property getters","webpack://opten.mgh/webpack/runtime/hasOwnProperty shorthand","webpack://opten.mgh/webpack/runtime/make namespace object","webpack://opten.mgh/webpack/before-startup","webpack://opten.mgh/webpack/startup","webpack://opten.mgh/webpack/after-startup"],"sourcesContent":["import { Component } from '@opten/compiler/metadata/component';\r\n\r\ndeclare const Cookiebot: any;\r\n@Component({ className: 'js-cookiebot-renew' })\r\nexport class CookiebotRenew {\r\n\tconstructor(private element: HTMLElement) {\r\n\t\tthis.element.addEventListener('click', e => {\r\n\t\t\te.preventDefault();\r\n\t\t\tCookiebot.renew();\r\n\t\t});\r\n\t}\r\n}\r\n","import { Component } from '@opten/compiler/metadata/component';\r\nimport { EventDispatcher } from '@opten/events/event-dispatcher';\r\n\r\ndeclare const mixitup: any;\r\n\r\n@Component({className: 'js-filter'})\r\nexport class FilterComponent {\r\n\tstatic onFilterChange = new EventDispatcher();\r\n\r\n\tmixer: any;\r\n\twrapper: HTMLElement;\r\n\tviews: HTMLElement[];\r\n\tfilterGroups: string[] = [];\r\n\r\n\tconstructor(private element: HTMLElement) {\r\n\t\t// Let animations settle in for 2 sec first, if any\r\n\t\tsetTimeout(() => {\r\n\t\t\telement\r\n\t\t\t.querySelectorAll('[data-filter-group]')\r\n\t\t\t?.forEach(filterGroupEl =>\r\n\t\t\t\t\tthis.filterGroups.push(\r\n\t\t\t\t\t\t\tfilterGroupEl.getAttribute('data-filter-group')\r\n\t\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthis.wrapper = this.element.querySelector('.js-filter-wrapper');\r\n\r\n\t\t\tthis.views = Array.from(\r\n\t\t\t\t\tthis.element.querySelectorAll('.js-filter-view')\r\n\t\t\t) as HTMLElement[];\r\n\t\t\tlet targetClass = '.js-filter-item';\r\n\t\t\tif(this.views && this.views.length > 0) {\r\n\t\t\t\ttargetClass = '.js-filter-view.collapse--show ' + targetClass;\r\n\t\t\t}\r\n\r\n\t\t\tthis.mixer = mixitup(this.element, {\r\n\t\t\t\tselectors: {\r\n\t\t\t\t\ttarget: targetClass,\r\n\t\t\t\t\tcontrol: '.js-filter-control'\r\n\t\t\t\t},\r\n\t\t\t\tcontrols: {\r\n\t\t\t\t\tenable: false\r\n\t\t\t\t},\r\n\t\t\t\tcallbacks: {\r\n\t\t\t\t\tonMixClick: this.onMixClick.bind(this),\r\n\t\t\t\t\tonMixStart: this.onMixStart.bind(this),\r\n\t\t\t\t\tonMixEnd: this.onMixEnd.bind(this)\r\n\t\t\t\t},\r\n\t\t\t\tanimation: {\r\n\t\t\t\t\teffects: 'fade'\r\n\t\t\t\t},\r\n\t\t\t\tmultifilter: {\r\n\t\t\t\t\tenable: true,\r\n\t\t\t\t\tparseOn: 'change'\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tif(this.views && this.views.length > 0) {\r\n\t\t\t\tthis.views.forEach(view => {\r\n\t\t\t\t\tview.addEventListener('shown.opten.collapse', () => {\r\n\t\t\t\t\t\tthis.mixer.forceRefresh();\r\n\t\t\t\t\t\tthis.mixer.filter(\r\n\t\t\t\t\t\t\t\tthis.mixer.getState().activeFilter.selector\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\tlet sortBtns: HTMLButtonElement[] = [];\r\n\t\t\t\tthis.element.querySelectorAll('.js-filter-control').forEach(btn => {\r\n\t\t\t\t\tif(btn.getAttribute('data-sort')) sortBtns.push(btn as HTMLButtonElement);\r\n\t\t\t\t});\r\n\t\t\t\tlet container = element.querySelector('.js-sorter-container');\r\n\t\t\t\tsortBtns.forEach(btn => {\r\n\t\t\t\t\tif(!btn.getAttribute('data-sort')) return;\r\n\t\t\t\t\tbtn.addEventListener('click', () => {\r\n\t\t\t\t\t\tenableTrBottomBorders(false);\r\n\t\t\t\t\t\tlet dataSort = btn.getAttribute('data-sort').split(':')[0];\r\n\t\t\t\t\t\tlet classList = btn.classList;\r\n\t\t\t\t\t\tlet sortOrderNew;\r\n\r\n\t\t\t\t\t\tclassList.contains('is-asc') ? setSort('desc') : setSort('asc');\r\n\r\n\t\t\t\t\t\tthis.mixer.sort(`${ dataSort }:${ sortOrderNew }`)\r\n\t\t\t\t\t\t\t.then(function(state) {\r\n\t\t\t\t\t\t\t\tenableTrBottomBorders(true);\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tfunction setSort(newState: 'asc' | 'desc') {\r\n\t\t\t\t\t\t\tsortBtns.forEach(sortButton => {\r\n\t\t\t\t\t\t\t\tsortButton.classList.remove('is-asc');\r\n\t\t\t\t\t\t\t\tsortButton.classList.remove('is-desc');\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tlet pastState = newState == 'asc' ? 'desc' : 'asc';\r\n\t\t\t\t\t\t\tsortOrderNew = newState;\r\n\t\t\t\t\t\t\tbtn.setAttribute('data-sort', `${ dataSort }:${ pastState }`);\r\n\t\t\t\t\t\t\tclassList.remove(`is-${ pastState }`);\r\n\t\t\t\t\t\t\tclassList.add(`is-${ newState }`);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\tfunction enableTrBottomBorders(enable: boolean) {\r\n\t\t\t\t\tenable ? container.classList.remove('disable-bottom-border') : container.classList.add('disable-bottom-border');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis.filterByUrl();\r\n\t\t}, 2000);\r\n\t}\r\n\r\n\tonMixClick(state: any, e: Event) {\r\n\t\te.stopPropagation();\r\n\t\te.preventDefault();\r\n\t\tconst target = e.target as HTMLElement;\r\n\t\tif(target.classList.contains('js-filter-reset')) return;\r\n\t\tconst clickedFilter = target.attributes['data-filter']?.value.split(\".\")[1] || '';\r\n\t\tconst activeFilters = state.activeFilter.selector.split(\".\").filter(x => x) || '';\r\n\r\n\t\tif(clickedFilter != '.all' && activeFilters?.includes(clickedFilter)) {\r\n\t\t\tthis.resetFilters(target);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\tonMixStart(state, futureState) {\r\n\t\tthis.wrapper?.classList.toggle('is-animating');\r\n\t\tFilterComponent.onFilterChange.dispatch(futureState);\r\n\t}\r\n\r\n\tonMixEnd() {\r\n\t\tthis.wrapper?.classList.toggle('is-animating');\r\n\t\tthis.setUrl();\r\n\t}\r\n\r\n\tfilterByUrl() {\r\n\t\tconst params = new URL(location.href).searchParams;\r\n\t\tlet filterSelectors = '';\r\n\t\tthis.filterGroups.forEach(group => {\r\n\t\t\tconst val = params.get(group);\r\n\t\t\tif(val && val != '.all') {\r\n\t\t\t\tthis.mixer.setFilterGroupSelectors(group, val);\r\n\t\t\t\tfilterSelectors += val;\r\n\t\t\t} else {\r\n\t\t\t\tthis.mixer.setFilterGroupSelectors(group, '.all');\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tif(filterSelectors.length > 0) {\r\n\t\t\tthis.mixer.filter(filterSelectors);\r\n\t\t}\r\n\t}\r\n\r\n\tsetUrl() {\r\n\t\tconst url = new URL(window.location.href);\r\n\t\tthis.filterGroups.forEach(group => {\r\n\t\t\tlet val = this.mixer.getFilterGroupSelectors(group)[0];\r\n\t\t\tif(val && val != '.all') {\r\n\t\t\t\turl.searchParams.set(group, val);\r\n\t\t\t} else {\r\n\t\t\t\turl.searchParams.delete(group);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\twindow.history.replaceState(null, null, url);\r\n\t}\r\n\r\n\tresetFilters(target: HTMLElement) {\r\n\t\tlet resetbtn = document.createElement(\"button\");\r\n\t\tresetbtn.classList.add('js-filter-control', 'js-filter-reset');\r\n\t\tresetbtn.style.display = 'none';\r\n\t\tresetbtn.dataset.filter = '.all';\r\n\t\ttarget.parentElement.appendChild(resetbtn);\r\n\t\tresetbtn.click();\r\n\t\tresetbtn.remove();\r\n\t}\r\n}\r\n","import { Component } from '@opten/compiler/metadata/component';\r\n\r\n@Component({className: 'js-header'})\r\nexport class HeaderComponent {\r\n\tconstructor(private element: HTMLElement) {\r\n // Really needs something better\r\n element.querySelectorAll('a[data-bs-toggle=\"dropdown\"]').forEach(dropdown => {\r\n dropdown.addEventListener('click', () => {\r\n window.location.href = dropdown.getAttribute('href');\r\n });\r\n });\r\n }\r\n}\r\n","import { Component } from '@opten/compiler/metadata/component';\r\n\r\n@Component({ className: 'js-contact-map' })\r\nexport class ContactMapComponent {\r\n\tstatic CustomMarker;\r\n static element: HTMLElement;\r\n\r\n\tconstructor(private element: HTMLElement) {\r\n this.init();\r\n\t\t// document.addEventListener('googleMapsLoaded', () => this.init());\r\n\t}\r\n\r\n\tprivate init() {\r\n console.log('maps init');\r\n let dset = this.element.dataset;\r\n const myLatLng = { lat: parseFloat(dset.lat), lng: parseFloat(dset.lng) };\r\n\r\n if(typeof google === 'undefined') return setTimeout(() => {\r\n this.init();\r\n }, 2000);\r\n const map = new google.maps.Map(\r\n this.element,\r\n {\r\n zoom: 17,\r\n center: myLatLng,\r\n gestureHandling: 'greedy'\r\n }\r\n );\r\n \r\n new google.maps.Marker({\r\n position: myLatLng,\r\n map,\r\n });\r\n\t}\r\n}","import './main.scss';\r\n// import './layout/js/jquery.min';\r\n// import './layout/js/theme-vendors.min';\r\n// import './layout/js/mainTemplate';\r\n\r\nimport { factory } from '@opten/compiler/factory';\r\nimport { FilterComponent } from './components/filter';\r\nimport { HeaderComponent } from './components/header';\r\nimport { ContactMapComponent } from './components/map';\r\nimport { CookiebotRenew } from './components/cookiebot';\r\n// import { CollapseComponent } from '@opten/collapse/index';\r\n// import { NavigationComponent } from './components/navbar/navbar';\r\n\r\nfactory([\r\n\tFilterComponent,\r\n\tHeaderComponent,\r\n\tContactMapComponent,\r\n\tCookiebotRenew\r\n\t// CollapseComponent,\r\n\t// NavigationComponent\r\n])(document.body);\r\n","import { asHTMLElement } from '@opten/dom/as-html-element';\nimport { hasClass } from '@opten/dom/has-class';\nimport { isHTMLElement } from '@opten/dom/is-html-element';\n\nimport { Compiler } from '../';\nimport { Component } from '../metadata/component';\nimport { Reflector } from '../reflector';\nimport { Resolver } from '../resolver';\n\n// TODO: cache, static, inject?\nconst reflector = new Reflector();\nconst resolver = new Resolver(reflector);\nconst compiler = new Compiler(resolver);\n\nexport function factory(components: any[]) {\n\treturn (rootElement: HTMLElement) => {\n\t\tconst observables = new Map();\n\t\tcomponents.forEach((componentType) => {\n\t\t\t// TODO: inject resolver, or cache?\n\t\t\t// TODO: static or something to cache?\n\t\t\tconst component = resolver.resolve(componentType);\n\n\t\t\tif (component) {\n\t\t\t\tconst safeRootElement =\n\t\t\t\t\trootElement === document.body ? document : rootElement;\n\t\t\t\tArray.from(\n\t\t\t\t\tsafeRootElement.getElementsByClassName(component.className)\n\t\t\t\t).forEach((node) =>\n\t\t\t\t\tcompiler.compile(component, node as HTMLElement, componentType)\n\t\t\t\t);\n\n\t\t\t\tif (component.observe) {\n\t\t\t\t\tobservables.set(component, componentType);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`No @Component annotation for ${\n\t\t\t\t\t\tcomponentType ? componentType.name : componentType\n\t\t\t\t\t} found!`\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\n\t\tif (observables.size) {\n\t\t\tnew MutationObserver((mutations) => {\n\t\t\t\tconst componentInitializer = new Map void>();\n\n\t\t\t\tmutations.forEach((mutation) => {\n\t\t\t\t\tobservables.forEach((value, key) =>\n\t\t\t\t\t\tArray.from(mutation.addedNodes)\n\t\t\t\t\t\t\t.filter((node) => isHTMLElement(node))\n\t\t\t\t\t\t\t.map((node) => asHTMLElement(node))\n\t\t\t\t\t\t\t.forEach((node) => {\n\t\t\t\t\t\t\t\tconst comps = Array.from(\n\t\t\t\t\t\t\t\t\tnode.getElementsByClassName(key.className)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\tif (hasClass(node, key.className)) {\n\t\t\t\t\t\t\t\t\tcomps.push(node);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcomps.forEach((component) => {\n\t\t\t\t\t\t\t\t\tcomponentInitializer.set(component as HTMLElement, () =>\n\t\t\t\t\t\t\t\t\t\tcompiler.compile(key, component as HTMLElement, value)\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t})\n\t\t\t\t\t);\n\t\t\t\t});\n\n\t\t\t\tcomponentInitializer.forEach((c) => c());\n\t\t\t}).observe(document.body, {\n\t\t\t\tchildList: true,\n\t\t\t\tsubtree: true,\n\t\t\t});\n\t\t}\n\t};\n}\n","import { Component } from './metadata/component';\nimport { Query } from './metadata/di';\nimport { OnInit } from './metadata/lifecycle';\nimport { Resolver } from './resolver';\nimport { isType } from './util/type';\n\n// TODO: move whole project to @opten/initializer?\nexport class Compiler {\n\tprivate componentCache = new Map();\n\n\tconstructor(private resolver: Resolver) {}\n\n\tcompile(\n\t\tcomponent: Component,\n\t\tnode: HTMLElement,\n\t\tcomponentType: /*Type*/ any\n\t) {\n\t\t// TODO: cache everything?\n\n\t\t// TODO: cache that also?\n\t\tconst constructor = new componentType(node);\n\n\t\tif (this.componentCache.has(node)) {\n\t\t\tthis.componentCache.get(node).push(constructor);\n\t\t} else {\n\t\t\tthis.componentCache.set(node, [constructor]);\n\t\t}\n\n\t\tObject.keys(component.queries).forEach((propName) => {\n\t\t\tconst query: Query = component.queries[propName];\n\n\t\t\t// TODO: why do we have to inject the resolver?\n\t\t\t// can we not get the class name by some other way?\n\t\t\tconst target = this.resolver.resolve(query.selector);\n\n\t\t\tif (target) {\n\t\t\t\tconst targetNode = query.descendants ? node : document;\n\t\t\t\tconst nodes = targetNode.getElementsByClassName(target.className);\n\n\t\t\t\tconst cache = Array.from(nodes)\n\t\t\t\t\t.filter((o) => (query.filter ? query.filter(o) : true))\n\t\t\t\t\t.map((e) => this.componentCache.get(e as HTMLElement))\n\t\t\t\t\t.filter((e) => e !== undefined && e !== null)\n\t\t\t\t\t.reduce((acc, val) => acc.concat(val), [])\n\t\t\t\t\t.filter((f) => f.constructor === query.selector);\n\n\t\t\t\tconstructor[propName] = query.first ? cache[0] : cache;\n\t\t\t}\n\t\t});\n\n\t\tif (isType(constructor.onInit)) {\n\t\t\t(constructor as OnInit).onInit();\n\t\t}\n\t}\n}\n","import { makeDecorator, TypeDecorator } from '../util/decorators';\nimport { makeMetadataFactory, MetadataFactory } from '../util/factories';\n\nexport interface ComponentDecorator {\n\t(obj: Component): TypeDecorator;\n\tnew (obj: Component): Component;\n}\n\nexport interface Component {\n\tclassName?: string;\n\tobserve?: boolean;\n\tqueries?: { [key: string]: any };\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention,no-underscore-dangle,id-denylist,id-match\nexport const Component: ComponentDecorator = makeDecorator(\n\t'Component',\n\t(c: Component = {}) => ({ ...c })\n);\n\nexport const createComponent: MetadataFactory =\n\tmakeMetadataFactory('Component', (c: Component = {}) => ({\n\t\t...c,\n\t}));\n","import { ANNOTATIONS, PROP_METADATA } from '../util/decorators';\nimport { isType, Type } from '../util/type';\n\n// TODO: @opten/reflector? or @opten/initializer/reflector?\nexport class Reflector {\n\tannotations(typeOrFunc: Type): any[] {\n\t\tif (!isType(typeOrFunc)) {\n\t\t\treturn [];\n\t\t}\n\t\tconst parentCtor = getParentCtor(typeOrFunc);\n\t\tconst ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];\n\t\tconst parentAnnotations =\n\t\t\tparentCtor !== Object ? this.annotations(parentCtor) : [];\n\t\treturn parentAnnotations.concat(ownAnnotations);\n\t}\n\n\tpropMetadata(typeOrFunc: any): { [key: string]: any[] } {\n\t\tif (!isType(typeOrFunc)) {\n\t\t\treturn {};\n\t\t}\n\t\tconst parentCtor = getParentCtor(typeOrFunc);\n\t\tconst propMetadata: { [key: string]: any[] } = {};\n\t\tif (parentCtor !== Object) {\n\t\t\tconst parentPropMetadata = this.propMetadata(parentCtor);\n\t\t\tObject.keys(parentPropMetadata).forEach((propName) => {\n\t\t\t\tpropMetadata[propName] = parentPropMetadata[propName];\n\t\t\t});\n\t\t}\n\t\tconst ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);\n\t\tif (ownPropMetadata) {\n\t\t\tObject.keys(ownPropMetadata).forEach((propName) => {\n\t\t\t\tconst decorators: any[] = [];\n\t\t\t\tif (propMetadata.hasOwnProperty(propName)) {\n\t\t\t\t\tdecorators.push(...propMetadata[propName]);\n\t\t\t\t}\n\t\t\t\tdecorators.push(...ownPropMetadata[propName]);\n\t\t\t\tpropMetadata[propName] = decorators;\n\t\t\t});\n\t\t}\n\t\treturn propMetadata;\n\t}\n\n\tprivate _ownAnnotations(\n\t\ttypeOrFunc: Type,\n\t\tparentCtor: any\n\t): any[] | null {\n\t\t// API for metadata created by invoking the decorators.\n\t\tif (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {\n\t\t\treturn (typeOrFunc as any)[ANNOTATIONS];\n\t\t}\n\t\treturn null;\n\t}\n\n\tprivate _ownPropMetadata(\n\t\ttypeOrFunc: any,\n\t\tparentCtor: any\n\t): { [key: string]: any[] } | null {\n\t\t// API for metadata created by invoking the decorators.\n\t\tif (typeOrFunc.hasOwnProperty(PROP_METADATA)) {\n\t\t\treturn (typeOrFunc as any)[PROP_METADATA];\n\t\t}\n\t\treturn null;\n\t}\n}\n\nfunction getParentCtor(ctor: Type): Type {\n\tconst parentProto = Object.getPrototypeOf(ctor.prototype);\n\tconst parentCtor = parentProto ? parentProto.constructor : null;\n\t// Note: We always use `Object` as the null value\n\t// to simplify checking later on.\n\treturn parentCtor || Object;\n}\n","import { Component, createComponent } from '../metadata/component';\nimport { Query } from '../metadata/di';\nimport { Reflector } from '../reflector';\n\nconst QUERY_METADATA_IDENTIFIERS = [\n\t'ComponentRef',\n\t'ComponentRefs',\n\t'ChildRef',\n\t'ChildrenRef',\n];\n\n// TODO: @opten/resolver? or @opten/initializer/resolver?\nexport class Resolver {\n\tconstructor(private reflector: Reflector) {}\n\n\t// propertyCache = new Map();\n\n\tresolve(type: any /*Type*/): Component | null {\n\t\tconst typeMetadata = this.reflector.annotations(type);\n\n\t\tif (typeMetadata) {\n\t\t\tconst metadata = findLast(\n\t\t\t\ttypeMetadata,\n\t\t\t\t(c) => c && c.metadataName === 'Component'\n\t\t\t);\n\n\t\t\tif (metadata) {\n\t\t\t\tconst propertyMetadata = this.reflector.propMetadata(type);\n\n\t\t\t\treturn this._mergeWithPropertyMetadata(\n\t\t\t\t\tmetadata,\n\t\t\t\t\tpropertyMetadata,\n\t\t\t\t\ttype\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tprivate _mergeWithPropertyMetadata(\n\t\tcomponent: Component,\n\t\tpropertyMetadata: { [key: string]: any[] },\n\t\tcomponentType: /*Type*/ any\n\t): Component {\n\t\tconst queries: { [key: string]: any } = {};\n\n\t\tObject.keys(propertyMetadata).forEach((propName: string) => {\n\t\t\tconst query = findLast(propertyMetadata[propName], (a) =>\n\t\t\t\tQUERY_METADATA_IDENTIFIERS.some((i) => i && i === a.metadataName)\n\t\t\t);\n\n\t\t\tif (query) {\n\t\t\t\tqueries[propName] = query;\n\t\t\t}\n\t\t});\n\n\t\treturn this._merge(component, queries, componentType);\n\t}\n\n\tprivate _merge(\n\t\tcomponent: Component,\n\t\tqueries: { [key: string]: any },\n\t\tcomponentType: /*Type*/ any\n\t): Component {\n\t\tconst mergedQueries = component.queries\n\t\t\t? { ...component.queries, ...queries }\n\t\t\t: queries;\n\n\t\treturn createComponent({\n\t\t\tclassName: component.className,\n\t\t\tobserve: component.observe,\n\t\t\tqueries: mergedQueries,\n\t\t});\n\t}\n\n\tprivate _getQueriesMetadata(queries: { [key: string]: Query }): any[] {\n\t\tconst res: any[] = [];\n\n\t\tObject.keys(queries).forEach((propertyName: string) => {\n\t\t\tconst query = queries[propertyName];\n\t\t\tres.push(this._getQueryMetadata(query, propertyName));\n\t\t});\n\n\t\treturn res;\n\t}\n\n\tprivate _getQueryMetadata(q: Query, propertyName: string): any {\n\t\treturn {\n\t\t\tdescendants: q.descendants,\n\t\t\tfirst: q.first,\n\t\t\tpropertyName,\n\t\t\tread: false,\n\t\t\tselector: q.selector,\n\t\t};\n\t}\n}\n\nfunction findLast(arr: T[], condition: (value: T) => boolean): T | null {\n\tfor (let i = arr.length - 1; i >= 0; i--) {\n\t\tif (condition(arr[i])) {\n\t\t\treturn arr[i];\n\t\t}\n\t}\n\treturn null;\n}\n","import { Type } from './type';\n\nexport const ANNOTATIONS = '__annotations__';\nexport const PROP_METADATA = '__prop__metadata__';\n\nexport interface TypeDecorator {\n\t// Invoke as ES7 decorator.\n\t>(type: T): T;\n\n\t// Make TypeDecorator assignable to built-in ParameterDecorator type.\n\t// ParameterDecorator is declared in lib.d.ts as a `declare type`\n\t// so we cannot declare this interface as a subtype.\n\t// see https://github.com/angular/angular/issues/3379#issuecomment-126169417\n\t(\n\t\ttarget: object,\n\t\tpropertyKey?: string | symbol,\n\t\tparameterIndex?: number\n\t): void;\n}\n\nexport function makeDecorator(\n\tname: string,\n\tprops?: (...args: any[]) => any,\n\tparentClass?: any,\n\tchainFn?: (fn: TypeDecorator) => void,\n\ttypeFn?: (type: Type, ...args: any[]) => void\n): {\n\t\tnew (...args: any[]): any;\n\t\t(...args: any[]): any;\n\t\t(...args: any[]): (cls: any) => any;\n\t} {\n\tconst metaCtor = makeMetadataCtor(props);\n\n\t// eslint-disable-next-line @typescript-eslint/naming-convention\n\tfunction DecoratorFactory(...args: any[]): (cls: any) => any {\n\t\tif (this instanceof DecoratorFactory) {\n\t\t\tmetaCtor.call(this, ...args);\n\t\t\treturn this;\n\t\t}\n\n\t\tconst annotationInstance = new (DecoratorFactory as any)(...args);\n\t\tconst typeDecorator: TypeDecorator = (cls: Type) => {\n\t\t\tif (typeFn) {\n\t\t\t\ttypeFn(cls, ...args);\n\t\t\t}\n\t\t\t// Use of Object.defineProperty is important since it creates non-enumerable property which\n\t\t\t// prevents the property is copied during subclassing.\n\t\t\tconst annotations = cls.hasOwnProperty(ANNOTATIONS)\n\t\t\t\t? (cls as any)[ANNOTATIONS]\n\t\t\t\t: Object.defineProperty(cls, ANNOTATIONS, { value: [] })[ANNOTATIONS];\n\t\t\tannotations.push(annotationInstance);\n\t\t\treturn cls;\n\t\t};\n\t\tif (chainFn) {\n\t\t\tchainFn(typeDecorator);\n\t\t}\n\t\treturn typeDecorator;\n\t}\n\n\tif (parentClass) {\n\t\tDecoratorFactory.prototype = Object.create(parentClass.prototype);\n\t}\n\n\tDecoratorFactory.prototype.metadataName = name;\n\treturn DecoratorFactory as any;\n}\n\nfunction makeMetadataCtor(props?: (...args: any[]) => any): any {\n\treturn function ctor(...args: any[]) {\n\t\tif (props) {\n\t\t\tconst values = props(...args);\n\t\t\tfor (const propName in values) {\n\t\t\t\tif (values.hasOwnProperty(propName)) {\n\t\t\t\t\tthis[propName] = values[propName];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\nexport function makePropDecorator(\n\tname: string,\n\tprops?: (...args: any[]) => any,\n\tparentClass?: any\n): any {\n\tconst metaCtor = makeMetadataCtor(props);\n\n\t// eslint-disable-next-line @typescript-eslint/naming-convention\n\tfunction PropDecoratorFactory(...args: any[]): any {\n\t\tif (this instanceof PropDecoratorFactory) {\n\t\t\tmetaCtor.apply(this, args);\n\t\t\treturn this;\n\t\t}\n\n\t\tconst decoratorInstance = new (PropDecoratorFactory as any)(...args);\n\n\t\t// eslint-disable-next-line @typescript-eslint/naming-convention\n\t\treturn function PropDecorator(target: any, metaName: string) {\n\t\t\tconst constructor = target.constructor;\n\t\t\t// Use of Object.defineProperty is important since it creates non-enumerable property which\n\t\t\t// prevents the property is copied during subclassing.\n\t\t\tconst meta = constructor.hasOwnProperty(PROP_METADATA)\n\t\t\t\t? (constructor as any)[PROP_METADATA]\n\t\t\t\t: Object.defineProperty(constructor, PROP_METADATA, {\n\t\t\t\t\tvalue: {},\n\t\t\t\t })[PROP_METADATA];\n\t\t\tmeta[metaName] = (meta.hasOwnProperty(metaName) && meta[metaName]) || [];\n\t\t\tmeta[metaName].unshift(decoratorInstance);\n\t\t};\n\t}\n\n\tif (parentClass) {\n\t\tPropDecoratorFactory.prototype = Object.create(parentClass.prototype);\n\t}\n\n\tPropDecoratorFactory.prototype.metadataName = name;\n\treturn PropDecoratorFactory;\n}\n","export interface MetadataFactory {\n\t(...args: any[]): T;\n\tmetadataName: string;\n\tisTypeOf(obj: any): obj is T;\n}\n\nexport function makeMetadataFactory(\n\tname: string,\n\tprops?: (...args: any[]) => T\n): MetadataFactory {\n\tconst factory: any = (...args: any[]) => {\n\t\tconst values = props ? props(...args) : {};\n\t\treturn {\n\t\t\tmetadataName: name,\n\t\t\t...values,\n\t\t};\n\t};\n\tfactory.isTypeOf = (obj: any) => obj && obj.metadataName === name;\n\tfactory.metadataName = name;\n\treturn factory;\n}\n","// eslint-disable-next-line @typescript-eslint/naming-convention,no-underscore-dangle,id-denylist,id-match\nexport const Type = Function;\n\nexport function isType(v: any): v is Type {\n\treturn typeof v === 'function';\n}\n\nexport type Type = new (...args: any[]) => T;\n","import { isHTMLElement } from '../is-html-element';\n\nexport function asHTMLElement(o: any): HTMLElement {\n\tif (isHTMLElement(o)) {\n\t\treturn o as HTMLElement;\n\t}\n\treturn null;\n}\n","const classRegexCache = {};\nexport function classRegex(className: string): RegExp {\n\tif (!classRegexCache[className]) {\n\t\tclassRegexCache[className] = new RegExp('(\\\\s|^)' + className + '(\\\\s|$)');\n\t}\n\treturn classRegexCache[className];\n}\n","export function getClass(element: Element) {\n\treturn element.getAttribute('class') || '';\n}\n","import { classRegex } from '../class-regex';\nimport { getClass } from '../get-class';\n\nexport function hasClass(element: Element, className: string): boolean {\n\treturn element && classRegex(className).test(getClass(element));\n}\n","export function isHTMLElement(o: any) {\n\treturn typeof HTMLElement === 'object'\n\t\t? o instanceof HTMLElement\n\t\t: o &&\n\t\t\t\ttypeof o === 'object' &&\n\t\t\t\to !== null &&\n\t\t\t\to.nodeType === 1 &&\n\t\t\t\ttypeof o.nodeName === 'string';\n}\n","export type IEventHandler = (args: TArgs) => void;\n\nclass Subscription {\n\tisExecuted = false;\n\n\tconstructor(public handler: IEventHandler, public isOnce: boolean) {}\n\n\texecute(args: TArgs) {\n\t\tif (!this.isOnce || !this.isExecuted) {\n\t\t\tthis.isExecuted = true;\n\t\t\tthis.handler(args);\n\t\t}\n\t}\n}\n\nexport class EventDispatcher {\n\tprivate subscriptions: Subscription[] = [];\n\n\tdispatch(args: TArgs): void {\n\t\tfor (const sub of [...this.subscriptions]) {\n\t\t\tsub.execute(args);\n\t\t\tthis.cleanup(sub);\n\t\t}\n\t}\n\n\tsubscribe(fn: IEventHandler) {\n\t\tif (fn) {\n\t\t\tthis.subscriptions.push(new Subscription(fn, false));\n\t\t}\n\t\treturn this;\n\t}\n\n\tone(fn: IEventHandler) {\n\t\tif (fn) {\n\t\t\tthis.subscriptions.push(new Subscription(fn, true));\n\t\t}\n\t\treturn this;\n\t}\n\n\thas(fn: IEventHandler): boolean {\n\t\tif (!fn) {\n\t\t\treturn false;\n\t\t}\n\t\treturn this.subscriptions.some((sub) => sub.handler === fn);\n\t}\n\n\tunsubscribe(fn: IEventHandler) {\n\t\tif (!fn) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (let i = 0; i < this.subscriptions.length; i++) {\n\t\t\tif (this.subscriptions[i].handler === fn) {\n\t\t\t\tthis.subscriptions.splice(i, 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tclear(): void {\n\t\tthis.subscriptions.splice(0, this.subscriptions.length);\n\t}\n\n\tprivate cleanup(sub: Subscription) {\n\t\tif (sub.isOnce && sub.isExecuted) {\n\t\t\tconst i = this.subscriptions.indexOf(sub);\n\t\t\tif (i > -1) {\n\t\t\t\tthis.subscriptions.splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"img-fluid\":\"img-fluid\",\"img-fluid--vertical\":\"img-fluid--vertical\",\"img-fluid--max-width\":\"img-fluid--max-width\",\"is-lazy\":\"is-lazy\",\"--lazy\":\"---lazy\",\"lazyload\":\"lazyload\",\"lazyloaded\":\"lazyloaded\",\"c-navbar__toggler\":\"c-navbar__toggler\",\"is-active\":\"is-active\",\"p-relative\":\"p-relative\",\"c-spacers\":\"c-spacers\",\"c-footer\":\"c-footer\",\"c-footer__container\":\"c-footer__container\",\"c-footer__title\":\"c-footer__title\",\"c-footer__address\":\"c-footer__address\",\"c-footer__address__companyname\":\"c-footer__address__companyname\",\"c-footer__invisible\":\"c-footer__invisible\",\"c-footer__col\":\"c-footer__col\",\"c-footer__col--center\":\"c-footer__col--center\",\"c-footer__col__wrapper\":\"c-footer__col__wrapper\",\"c-footer__links\":\"c-footer__links\",\"c-footer__words__word--one\":\"c-footer__words__word--one\",\"c-footer__words__word--two\":\"c-footer__words__word--two\",\"c-footer__words__word--three\":\"c-footer__words__word--three\",\"c-footer__words__word--four\":\"c-footer__words__word--four\",\"c-footer__words\":\"c-footer__words\",\"c-footer__bottom\":\"c-footer__bottom\",\"c-footer__bottom__copyright\":\"c-footer__bottom__copyright\",\"c-footer__bottom__links\":\"c-footer__bottom__links\",\"c-footer__bottom__link\":\"c-footer__bottom__link\",\"c-footer__bottom__link__wrapper\":\"c-footer__bottom__link__wrapper\",\"c-footer__bottom__social\":\"c-footer__bottom__social\",\"c-footer__bottom__col\":\"c-footer__bottom__col\",\"c-footer__bottom__col__content\":\"c-footer__bottom__col__content\",\"c-banner--separate\":\"c-banner--separate\",\"c-banner--separate__img\":\"c-banner--separate__img\",\"c-banner--separate__video\":\"c-banner--separate__video\",\"text-list\":\"text-list\",\"c-form\":\"c-form\",\"umbraco-forms-field-wrapper\":\"umbraco-forms-field-wrapper\",\"field-validation-error\":\"field-validation-error\",\"img-hover\":\"img-hover\",\"img-hover--div\":\"img-hover--div\",\"c-media-text__text\":\"c-media-text__text\",\"mfp-hide\":\"mfp-hide\"};","// 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](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","","// startup\n// Load entry module and return exports\n__webpack_require__(\"./app/main.ts\");\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./app/main.scss\");\n",""],"names":["CookiebotRenew","className","element","addEventListener","e","preventDefault","Cookiebot","renew","FilterComponent","filterGroups","setTimeout","querySelectorAll","forEach","filterGroupEl","push","getAttribute","wrapper","querySelector","views","Array","from","targetClass","length","mixer","mixitup","selectors","target","control","controls","enable","callbacks","onMixClick","bind","onMixStart","onMixEnd","animation","effects","multifilter","parseOn","enableTrBottomBorders","container","classList","remove","add","view","forceRefresh","filter","getState","activeFilter","selector","sortBtns","btn","dataSort","split","sortOrderNew","contains","setSort","sort","then","state","newState","sortButton","pastState","setAttribute","filterByUrl","stopPropagation","clickedFilter","attributes","value","activeFilters","x","includes","resetFilters","futureState","toggle","onFilterChange","dispatch","setUrl","params","URL","location","href","searchParams","filterSelectors","group","val","get","setFilterGroupSelectors","url","window","getFilterGroupSelectors","set","delete","history","replaceState","resetbtn","document","createElement","style","display","dataset","parentElement","appendChild","click","EventDispatcher","HeaderComponent","dropdown","ContactMapComponent","init","console","log","dset","myLatLng","lat","parseFloat","lng","google","map","maps","Map","zoom","center","gestureHandling","Marker","position","body","reflector","Reflector","resolver","Resolver","compiler","Compiler","factory","components","rootElement","observables","componentType","component","resolve","safeRootElement","getElementsByClassName","node","compile","observe","Error","name","size","MutationObserver","mutations","componentInitializer","mutation","key","addedNodes","comps","c","childList","subtree","componentCache","constructor","has","Object","keys","queries","propName","query","targetNode","descendants","nodes","cache","o","undefined","reduce","acc","concat","f","first","onInit","Component","createComponent","typeOrFunc","parentCtor","getParentCtor","ownAnnotations","_ownAnnotations","parentAnnotations","annotations","propMetadata","parentPropMetadata","ownPropMetadata","_ownPropMetadata","decorators","hasOwnProperty","ANNOTATIONS","PROP_METADATA","ctor","parentProto","getPrototypeOf","prototype","QUERY_METADATA_IDENTIFIERS","type","typeMetadata","metadata","findLast","metadataName","propertyMetadata","_mergeWithPropertyMetadata","a","some","i","_merge","mergedQueries","res","propertyName","_getQueryMetadata","q","read","arr","condition","makeDecorator","props","parentClass","chainFn","typeFn","metaCtor","makeMetadataCtor","DecoratorFactory","args","call","annotationInstance","typeDecorator","cls","defineProperty","create","values","makePropDecorator","PropDecoratorFactory","apply","decoratorInstance","PropDecorator","metaName","meta","unshift","makeMetadataFactory","isTypeOf","obj","Type","Function","isType","v","asHTMLElement","classRegexCache","classRegex","RegExp","getClass","hasClass","test","isHTMLElement","HTMLElement","nodeType","nodeName","Subscription","handler","isOnce","isExecuted","subscriptions","sub","execute","cleanup","fn","splice","indexOf"],"sourceRoot":""}