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ACA,MAED,qCAAsC,CACrC,KACA,MAED,0BAA2B,CAC1B,MACA,MAED,+CAAgD,CAC/C,MACA,MAED,4BAA6B,CAC5B,MACA,MAED,0BAA2B,CAC1B,KACA,MAED,kCAAmC,CAClC,MACA,MAED,0BAA2B,CAC1B,MACA,MAED,6CAA8C,CAC7C,MACA,MAED,wBAAyB,CACxB,MACA,OAGF,SAAS0I,EAAoBC,GAC5B,IAAIC,EAAoB7H,EAAEf,EAAK2I,GAC9B,OAAOtI,QAAQwI,UAAUtI,MAAK,WAC7B,IAAIuI,EAAI,IAAIC,MAAM,uBAAyBJ,EAAM,KAEjD,MADAG,EAAEE,KAAO,mBACHF,CACP,IAGD,IAAIG,EAAMjJ,EAAI2I,GAAMO,EAAKD,EAAI,GAC7B,OAAOL,EAAoBE,EAAEG,EAAI,IAAI1I,MAAK,WACzC,OAAOqI,EAAoBO,EAAED,EAAI,GAClC,GACD,CACAR,EAAoBjM,KAAO,WAAa,OAAOC,OAAOD,KAAKuD,EAAM,EACjE0I,EAAoBQ,GAAK,MACzBzH,EAAO2H,QAAUV,C","sources":["webpack://projectInit/./node_modules/@elements/lightbox/dist/index.js","webpack://projectInit/./public/static/js/project.js","webpack://projectInit/./public/static/js/scripts/ajax-form-extend.js","webpack://projectInit/./public/static/js/scripts/copy-to-clipboard.js","webpack://projectInit/./public/static/js/scripts/filter-group.js","webpack://projectInit/./public/static/js/scripts/lightbox-extend.js","webpack://projectInit/./public/static/js/scripts/project-teaser.js","webpack://projectInit/./node_modules/lightgallery/plugins/ lazy ^\\.\\/.*\\.umd\\.js$ namespace object"],"sourcesContent":["\"use strict\";\r\n//todo remove when ts\r\n// @ts-ignore\r\nimport { getPrefixedDataSet } from '@elements/data-set-utils';\r\n// @ts-ignore\r\nimport { onFind } from \"@elements/init-modules-in-scope\";\r\n// @ts-ignore\r\nimport { findIn, on } from \"@elements/dom-utils\";\r\n// @ts-ignore\r\nimport loadScript from '@elements/load-script';\r\nconst defaultOptions = {\r\n licenseKey: '7AF43751-F35F4C70-A604AE1C-12C521AE',\r\n download: false,\r\n zoom: false,\r\n video: false,\r\n plugins: []\r\n};\r\nconst defaultSelectors = {\r\n base: '.js-lightbox',\r\n item: '.js-lightbox__item'\r\n};\r\nexport function init(options = defaultOptions, selectors = defaultSelectors) {\r\n onFind(selectors.base, function (baseElement) {\r\n createLightbox(baseElement, { ...defaultOptions, ...options }, { ...defaultSelectors, ...selectors });\r\n });\r\n}\r\nexport function createLightbox(lightbox, options = defaultOptions, selectors = defaultSelectors) {\r\n let lightboxItems = findIn(selectors.item, lightbox);\r\n let elementOptions = {\r\n ...defaultOptions,\r\n ...options,\r\n ...getPrefixedDataSet('lightbox', lightbox)\r\n };\r\n let imports = [\r\n import('lightgallery')\r\n ];\r\n if (options.plugins) {\r\n options.plugins.map((item) => {\r\n imports.push(import('lightgallery/plugins/' + item + '/lg-' + item + '.umd.js'));\r\n if (item === 'video') {\r\n loadScript(\"https://player.vimeo.com/api/player.js\");\r\n }\r\n });\r\n }\r\n let modules = [];\r\n imports.map((promise, index) => {\r\n if (index !== 0) {\r\n modules.push('module-' + index);\r\n }\r\n });\r\n Promise.all(imports).then(([lightGallery, ...modules]) => {\r\n elementOptions.plugins = [];\r\n lightGallery = lightGallery.default;\r\n modules.map((module) => {\r\n elementOptions.plugins.push(module.default);\r\n });\r\n if (elementOptions.dynamic && elementOptions.dynamicEl) {\r\n elementOptions.dynamicEl = JSON.parse(elementOptions.dynamicEl);\r\n }\r\n const lightboxInstance = lightGallery(lightbox, {\r\n ...elementOptions,\r\n selector: selectors.item,\r\n });\r\n //prevent isClickable\r\n const lightboxClickHandler = (evt) => {\r\n evt.stopImmediatePropagation();\r\n if (elementOptions.dynamic) {\r\n lightboxInstance.openGallery(0);\r\n }\r\n };\r\n if (lightboxItems) {\r\n on('click', lightboxClickHandler, lightboxItems);\r\n }\r\n });\r\n}\r\n","import './scripts/common';\nimport {onFind} from \"@elements/init-modules-in-scope\";\n\nlet _config = window['_config'] || {};\n\nlet app = {\n debug: false,\n};\nwindow.app = app || {};\n\nimport Dropdown from 'bootstrap/js/dist/dropdown';\nonFind('[data-bs-toggle=\"dropdown\"]',function (element) {\n new Dropdown(element);\n});\n\nimport * as ajaxForm from '@elements/ajax-form';\najaxForm.init();\n\nimport * as ajaxFormExtend from './scripts/ajax-form-extend'\najaxFormExtend.init();\n\nimport * as projectTeaser from './scripts/project-teaser'\nprojectTeaser.init();\n\nimport * as infiniteGrid from './scripts/infinite-grid'\ninfiniteGrid.init();\n\nimport * as filterGroup from './scripts/filter-group';\nfilterGroup.init();\n\nimport * as copyToClipboard from './scripts/copy-to-clipboard'\ncopyToClipboard.init();\n\nimport * as lightbox from '@elements/lightbox';\nlightbox.init({\n plugins: ['video']\n});\n\nimport * as lightboxExtend from './scripts/lightbox-extend';\nlightboxExtend.init();","import {onFind} from \"@elements/init-modules-in-scope\";\nimport {on, findIn} from \"@elements/dom-utils\";\n\nexport function init(){\n onFind('.js-ajax-form', function (element){\n let offset = matchMedia('(max-width: 767px)').matches ? 70 : 120;\n\n let scrollTo = element.getBoundingClientRect().top + window.scrollY - offset;\n\n if (element.getAttribute('data-ajax-form-scroll-result')) {\n console.log(findIn('.js-ajax-form__result', element).offsetTop);\n scrollTo = findIn('.js-ajax-form__result', element).getBoundingClientRect().top + window.scrollY - offset;\n }\n\n on('success.ajax-form', (evt) => {\n window.scrollTo({\n top: scrollTo,\n behavior: 'smooth'\n });\n }, element);\n });\n}","\"use strict\";\nimport {onFind} from \"@elements/init-modules-in-scope\";\nimport {on, find} from \"@elements/dom-utils\";\nimport {showNotification, clearAll} from '@elements/alert-notification';\nimport {translate} from '@elements/translations';\n\nexport function init() {\n onFind('.js-copy-to-clipboard', function (btn) {\n on('click', function () {\n let target = find(btn.getAttribute('data-target'));\n\n let clipboardText = btn.getAttribute('data-copy-content');\n\n if (target) {\n clipboardText = target.textContent;\n }\n\n navigator.clipboard.writeText(clipboardText);\n\n clearAll();\n\n let successTitle = translate('copy-notification.title');\n let successText = translate('copy-notification.text');\n\n if (btn.getAttribute('data-copy-notification-title')) {\n successTitle = btn.getAttribute('data-copy-notification-title');\n }\n if (btn.getAttribute('data-copy-notification-text')) {\n successText = btn.getAttribute('data-copy-notification-text');\n }\n\n showNotification({\n type: 'info',\n title: successTitle,\n content: successText\n })\n }, btn);\n });\n}","\"use strict\";\nimport {onFind} from \"@elements/init-modules-in-scope\";\nimport {\n on,\n addClass,\n findIn,\n setAttribute,\n findAllIn,\n closest,\n trigger\n} from \"@elements/dom-utils\";\nimport Collapse from 'bootstrap/js/dist/collapse';\nimport Dropdown from 'bootstrap/js/dist/dropdown';\n\nlet index = 0;\nexport function init () {\n onFind('.js-filter-group', function (group) {\n let button = findIn('.js-filter-group__btn', group),\n dropdown = findIn('.js-filter-group__dropdown', group),\n selectAll = findIn('.js-filter-group__select-all', group),\n reset = findIn('.js-filter-group__reset', group);\n\n let autoSubmitOnClose = false;\n let dropdownInstance;\n\n setButtonCount(findAllIn('input:checked', group).length, button)\n\n if (matchMedia('(max-width: 767px)').matches) {\n let collapseState = findIn('.js-filter-group__state', dropdown);\n if (!dropdown.getAttribute('id')) {\n setAttribute('id', 'customFilterCollapse-'+ index +'', dropdown);\n }\n\n let collapse = Collapse.getOrCreateInstance(dropdown, {\n toggle: false\n });\n\n on('click', () => {\n collapse.toggle();\n }, button);\n\n if (collapseState) {\n dropdown.addEventListener('hide.bs.collapse', function () {\n collapseState.value = \"false\"\n });\n\n dropdown.addEventListener('shown.bs.collapse', function () {\n collapseState.value = \"true\"\n });\n }\n } else {\n setAttribute('data-bs-toggle', 'dropdown', button);\n addClass('dropdown-menu', dropdown);\n\n dropdownInstance = Dropdown.getOrCreateInstance(button, {\n autoClose: 'outside'\n });\n\n findAllIn('input', group).map((input) => {\n on('change', () => {\n autoSubmitOnClose = true;\n }, input)\n });\n\n\n //trigger submit event on close\n on('hidden.bs.dropdown', () => {\n if (autoSubmitOnClose) {\n if (findIn('.js-product-grid__submit-section-btn', group)) {\n trigger('click', findIn('.js-product-grid__submit-section-btn', group));\n } else {\n trigger('submit', closest('form', group));\n }\n\n setButtonCount(findAllIn('input:checked', group).length, button)\n }\n\n autoSubmitOnClose = false;\n }, button);\n }\n\n\n if (selectAll) {\n on('click', () => {\n findAllIn('input[type=\"checkbox\"]', group).map((checkbox) => checkbox.checked = true);\n\n autoSubmitOnClose = true;\n }, selectAll);\n }\n\n on('click', () => {\n findAllIn('input[type=\"checkbox\"]', group).map((checkbox) => checkbox.checked = false);\n\n let rangeSlider = findIn('.js-range-slider', group);\n if (rangeSlider) {\n let values = JSON.parse(rangeSlider.getAttribute('data-range-slider-range'));\n\n findIn('.js-range-slider__min', rangeSlider).value = values.min;\n findIn('.js-range-slider__max', rangeSlider).value = values.max;\n findIn('.js-range-slider__slider', rangeSlider).noUiSlider.set([findIn('.js-range-slider__min', rangeSlider).value, findIn('.js-range-slider__max', rangeSlider).value])\n }\n\n if (findIn('.js-product-grid__submit-section-btn', group)) {\n const event = new MouseEvent(\"click\", {\n view: window,\n bubbles: true,\n cancelable: true,\n });\n\n findIn('.js-product-grid__submit-section-btn', group).dispatchEvent(event);\n } else {\n trigger('submit', closest('form', group));\n }\n }, reset);\n\n if (group.getAttribute('data-filter-group-submit-section')) {\n on('change', (evt) => {\n evt.preventDefault();\n evt.stopImmediatePropagation();\n }, group)\n }\n\n //close dropdown on submit click\n if (findIn('[type=submit]', group)) {\n on('click', () => {\n autoSubmitOnClose = false;\n\n if (dropdownInstance) {\n dropdownInstance.hide();\n }\n\n setButtonCount(findAllIn('input:checked', group).length, button)\n\n }, findIn('[type=submit]', group))\n }\n\n index += 1;\n });\n}\n\nfunction setButtonCount (count, button) {\n if (count > 0) {\n findIn('.js-filter-group__btn-count', button).innerHTML = '(' + count + ')';\n // addClass('is-active', button);\n } else {\n findIn('.js-filter-group__btn-count', button).innerHTML = '';\n // removeClass('is-active', button);\n }\n}\n","import {onFind} from \"@elements/init-modules-in-scope\";\nimport {findIn, on} from \"@elements/dom-utils\";\nimport {trackVideoProgress} from \"./video\";\n\nexport function init() {\n onFind('.js-lightbox', function (lightbox) {\n let instance;\n on('lgInit', (evt) => {\n instance = evt.detail.instance;\n }, lightbox);\n\n on('lgAfterSlide', (evt) => {\n let video = findIn('.lg-video-object', instance.$content.selector),\n title = instance.galleryItems[instance.index ?? 0]?.subHtml ?? 'lightbox';\n\n if (video) {\n on('playing', function () {\n window.dataLayer.push({\n \"event\": \"video\",\n \"type\": \"play\",\n \"name\": title\n });\n\n setTimeout(() => {\n trackVideoProgress(video, 25, title);\n trackVideoProgress(video, 50, title);\n trackVideoProgress(video, 75, title);\n trackVideoProgress(video, 90, title);\n }, 100);\n }, video);\n\n on('pause', function (evt) {\n // Prevent pause event from firing when video ends\n if (video.currentTime === video.duration) {\n return\n }\n\n if (video.getAttribute('data-autoplay') !== 'true') {\n window.dataLayer.push({\n \"event\": \"video\",\n \"type\": \"pause\",\n \"name\": title\n });\n }\n }, video);\n\n on('ended', function () {\n if (video.getAttribute('data-autoplay') !== 'true') {\n window.dataLayer.push({\n \"event\": \"video\",\n \"type\": \"ended\",\n \"name\": title\n });\n }\n }, video);\n }\n }, lightbox)\n });\n}","import {onFind} from \"@elements/init-modules-in-scope\";\nimport {on, hasClass, addClass, removeClass, closest, findIn, findAllIn, find} from \"@elements/dom-utils\";\nimport asyncAppend from \"@elements/async-append\";\nimport axios from \"axios\";\n\nexport function init() {\n onFind('.js-project-teaser__more', function (toggle) {\n let container = closest('.js-project-teaser', toggle),\n isLoaded = false;\n\n on('click', () => {\n if (hasClass('is-open', container)) {\n removeClass('is-open', container);\n } else {\n console.log(container, isLoaded)\n let pendingRequest = axios({method: 'GET', url: container.getAttribute('data-content-url') });\n\n asyncAppend({\n target: findAllIn('.js-project-teaser__content', container),\n loading: findAllIn('.js-project-teaser__loading', container)\n }, pendingRequest.then((x) => x.data));\n\n isLoaded = true;\n addClass('is-open', container);\n }\n }, toggle);\n });\n}","var map = {\n\t\"./autoplay/lg-autoplay.umd.js\": [\n\t\t83226,\n\t\t3226\n\t],\n\t\"./comment/lg-comment.umd.js\": [\n\t\t63216,\n\t\t3216\n\t],\n\t\"./fullscreen/lg-fullscreen.umd.js\": [\n\t\t69797,\n\t\t9797\n\t],\n\t\"./hash/lg-hash.umd.js\": [\n\t\t1741,\n\t\t1741\n\t],\n\t\"./mediumZoom/lg-medium-zoom.umd.js\": [\n\t\t1463,\n\t\t1463\n\t],\n\t\"./pager/lg-pager.umd.js\": [\n\t\t74913,\n\t\t4913\n\t],\n\t\"./relativeCaption/lg-relative-caption.umd.js\": [\n\t\t84955,\n\t\t4955\n\t],\n\t\"./rotate/lg-rotate.umd.js\": [\n\t\t26951,\n\t\t6951\n\t],\n\t\"./share/lg-share.umd.js\": [\n\t\t5571,\n\t\t5571\n\t],\n\t\"./thumbnail/lg-thumbnail.umd.js\": [\n\t\t59205,\n\t\t9205\n\t],\n\t\"./video/lg-video.umd.js\": [\n\t\t91257,\n\t\t1257\n\t],\n\t\"./vimeoThumbnail/lg-vimeo-thumbnail.umd.js\": [\n\t\t89962,\n\t\t9962\n\t],\n\t\"./zoom/lg-zoom.umd.js\": [\n\t\t98578,\n\t\t8578\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 7 | 16);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 97347;\nmodule.exports = webpackAsyncContext;"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","_arrayLikeToArray","arr","len","length","i","arr2","Array","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","arguments","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","value","arg","input","hint","prim","toPrimitive","undefined","res","call","TypeError","String","_toPrimitive","_toPropertyKey","configurable","writable","defaultOptions","licenseKey","download","zoom","video","plugins","defaultSelectors","base","item","init","options","selectors","onFind","baseElement","lightbox","lightboxItems","findIn","elementOptions","getPrefixedDataSet","imports","map","loadScript","modules","promise","index","Promise","all","then","_ref","_ref2","isArray","_arrayWithHoles","iter","from","_iterableToArray","o","minLen","n","toString","slice","name","test","_unsupportedIterableToArray","_nonIterableRest","lightGallery","module","dynamic","dynamicEl","JSON","parse","lightboxInstance","selector","on","evt","stopImmediatePropagation","openGallery","createLightbox","window","app","debug","element","Dropdown","ajaxForm","ajaxFormExtend","projectTeaser","infiniteGrid","filterGroup","copyToClipboard","lightboxExtend","offset","matchMedia","matches","scrollTo","getBoundingClientRect","top","scrollY","getAttribute","console","log","offsetTop","behavior","btn","find","clipboardText","textContent","navigator","clipboard","writeText","clearAll","successTitle","translate","successText","showNotification","type","title","content","group","dropdownInstance","button","dropdown","selectAll","reset","autoSubmitOnClose","setButtonCount","findAllIn","collapseState","setAttribute","collapse","Collapse","toggle","addEventListener","addClass","autoClose","trigger","closest","checkbox","checked","rangeSlider","values","min","max","noUiSlider","set","event","MouseEvent","view","bubbles","cancelable","dispatchEvent","preventDefault","hide","count","innerHTML","instance","detail","_instance$galleryItem","_instance$galleryItem2","_instance$index","$content","galleryItems","subHtml","dataLayer","setTimeout","trackVideoProgress","currentTime","duration","container","isLoaded","hasClass","removeClass","pendingRequest","axios","method","url","asyncAppend","loading","x","data","webpackAsyncContext","req","__webpack_require__","resolve","e","Error","code","ids","id","t","exports"],"sourceRoot":""}