1/* 2 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). 3 * This devtool is neither made for production nor for readable output files. 4 * It uses "eval()" calls to create a separate source file in the browser devtools. 5 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) 6 * or disable the default devtool with "devtool: false". 7 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). 8 */ 9/******/ (() => { // webpackBootstrap 10/******/ var __webpack_modules__ = ({ 11
vendor: 6,179 bytes, lines 12-21
12/***/ "./node_modules/marquee3000/marquee3k.js": 13/*!***********************************************!*\ 14 !*** ./node_modules/marquee3000/marquee3k.js ***! 15 \***********************************************/ 16/***/ (function(module, exports) { 17 18eval("{var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n * MARQUEE 3000 MARQUEE 3000 MARQUEE 3000 MARQUEE 3000 MARQUEE 3000\n * http://github.com/ezekielaquino/marquee3000\n * Marquees for the new millennium v1.0\n * MIT License\n */\n\n;(function(root, factory) {\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else // removed by dead control flow\n{}\n}(this, function() {\n 'use strict';\n\n let animationId = 0;\n\n class Marquee3k {\n constructor(element, options) {\n this.element = element;\n this.selector = options.selector;\n this.speed = element.dataset.speed || 0.25;\n this.pausable = element.dataset.pausable;\n this.reverse = element.dataset.reverse;\n this.paused = false;\n this.parent = element.parentElement;\n this.parentProps = this.parent.getBoundingClientRect();\n this.content = element.children[0];\n this.innerContent = this.content.innerHTML;\n this.wrapStyles = '';\n this.offset = 0;\n\n this._setupWrapper();\n this._setupContent();\n this._setupEvents();\n\n this.wrapper.appendChild(this.content);\n this.element.appendChild(this.wrapper);\n }\n\n _setupWrapper() {\n this.wrapper = document.createElement('div');\n this.wrapper.classList.add('marquee3k__wrapper');\n this.wrapper.style.whiteSpace = 'nowrap';\n }\n\n _setupContent() {\n this.content.classList.add(`${this.selector}__copy`);\n this.content.style.display = 'inline-block';\n this.contentWidth = this.content.offsetWidth;\n\n this.requiredReps = this.contentWidth > this.parentProps.width ? 2 : Math.ceil((this.parentProps.width - this.contentWidth) / this.contentWidth) + 1;\n\n for (let i = 0; i < this.requiredReps; i++) {\n this._createClone();\n }\n\n if (this.reverse) {\n this.offset = this.contentWidth * -1;\n }\n\n this.element.classList.add('is-init');\n }\n\n _setupEvents() {\n this.element.addEventListener('mouseenter', () => {\n if (this.pausable) this.paused = true;\n });\n\n this.element.addEventListener('mouseleave', () => {\n if (this.pausable) this.paused = false;\n });\n }\n\n _createClone() {\n const clone = this.content.cloneNode(true);\n clone.style.display = 'inline-block';\n clone.classList.add(`${this.selector}__copy`);\n this.wrapper.appendChild(clone);\n }\n\n animate() {\n if (!this.paused) {\n const isScrolled = this.reverse ? this.offset < 0 : this.offset > this.contentWidth * -1;\n const direction = this.reverse ? -1 : 1;\n const reset = this.reverse ? this.contentWidth * -1 : 0;\n\n if (isScrolled) this.offset -= this.speed * direction;\n else this.offset = reset;\n\n this.wrapper.style.whiteSpace = 'nowrap';\n this.wrapper.style.transform = `translate(${this.offset}px, 0) translateZ(0)`;\n }\n }\n\n _refresh() {\n this.contentWidth = this.content.offsetWidth;\n }\n\n repopulate(difference, isLarger) {\n this.contentWidth = this.content.offsetWidth;\n\n if (isLarger) {\n const amount = Math.ceil(difference / this.contentWidth) + 1;\n\n for (let i = 0; i < amount; i++) {\n this._createClone();\n }\n }\n }\n\n static refresh(index) {\n MARQUEES[index]._refresh();\n }\n\n static pause(index) {\n MARQUEES[index].paused = true;\n }\n\n static play(index) {\n MARQUEES[index].paused = false;\n }\n\n static toggle(index) {\n MARQUEES[index].paused = !MARQUEES[index].paused;\n }\n\n static refreshAll() {\n for (let i = 0; i < MARQUEES.length; i++) {\n MARQUEES[i]._refresh();\n }\n }\n\n static pauseAll() {\n for (let i = 0; i < MARQUEES.length; i++) {\n MARQUEES[i].paused = true;\n }\n }\n\n static playAll() {\n for (let i = 0; i < MARQUEES.length; i++) {\n MARQUEES[i].paused = false;\n }\n }\n\n static toggleAll() {\n for (let i = 0; i < MARQUEES.length; i++) {\n MARQUEES[i].paused = !MARQUEES[i].paused;\n }\n }\n\n static init(options = { selector: 'marquee3k' }) {\n if (animationId) window.cancelAnimationFrame(animationId);\n\n window.MARQUEES = [];\n const marquees = Array.from(document.querySelectorAll(`.${options.selector}`));\n let previousWidth = window.innerWidth;\n let timer;\n\n for (let i = 0; i < marquees.length; i++) {\n const marquee = marquees[i];\n const instance = new Marquee3k(marquee, options);\n MARQUEES.push(instance);\n }\n\n animate();\n\n function animate() {\n for (let i = 0; i < MARQUEES.length; i++) {\n MARQUEES[i].animate();\n }\n animationId = window.requestAnimationFrame(animate);\n }\n\n window.addEventListener('resize', () => {\n clearTimeout(timer);\n\n timer = setTimeout(() => {\n const isLarger = previousWidth < window.innerWidth;\n const difference = window.innerWidth - previousWidth;\n\n for (let i = 0; i < MARQUEES.length; i++) {\n MARQUEES[i].repopulate(difference, isLarger);\n }\n\n previousWidth = this.innerWidth;\n }, 250);\n });\n }\n }\n\n return Marquee3k;\n\n}));\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./node_modules/marquee3000/marquee3k.js?\n}"); 19 20/***/ }), 21
22/***/ "./src/scripts/components/ajax-functionality.js": 23/*!******************************************************!*\ 24 !*** ./src/scripts/components/ajax-functionality.js ***! 25 \******************************************************/ 26/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 27 28"use strict"; 29eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ displayAjaxContent: () => (/* binding */ displayAjaxContent),\n/* harmony export */ setupAjaxEventCloseLink: () => (/* binding */ setupAjaxEventCloseLink),\n/* harmony export */ setupAjaxEventLinks: () => (/* binding */ setupAjaxEventLinks),\n/* harmony export */ setupAjaxPopState: () => (/* binding */ setupAjaxPopState),\n/* harmony export */ setupAjaxSpoof: () => (/* binding */ setupAjaxSpoof)\n/* harmony export */ });\n/* harmony import */ var _main_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../main.js */ \"./src/scripts/main.js\");\n/* harmony import */ var _misc_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./misc.js */ \"./src/scripts/components/misc.js\");\n\n\n\nconst bodyClassSet = () => {\n const bodyClassElement = document.querySelector(\".bodyClass\");\n if (bodyClassElement) {\n document.body.className = bodyClassElement.textContent + \" loaded\";\n if (window.isNightMode == true) {\n document.querySelector(\"HTML\").classList.add(\"night-mode\");\n }\n }\n};\n\nconst ajaxRequest = (page, container, start, end, event) => {\n if (page.indexOf(window.homeUrl) > -1) {\n event.preventDefault();\n const xhttp = new XMLHttpRequest();\n\n document.body.classList.add(\"changing\");\n window.is_changing = true;\n setTimeout(function () {\n window.is_changing = false;\n document.body.classList.remove(\"changing\");\n }, 4000);\n\n xhttp.onreadystatechange = function () {\n if (xhttp.readyState == 4 && xhttp.status == 200) {\n const responseText = xhttp.responseText;\n displayAjaxContent(responseText, container, start, end, page);\n }\n };\n\n xhttp.open(\"GET\", page, true);\n xhttp.send();\n\n window.history.pushState(false, false, page);\n }\n};\n\nconst displayAjaxContent = (responseText, container, start, end, page) => {\n if (responseText.indexOf(start) > -1 && responseText.indexOf(end) > 1) {\n let startPointStringLength = start.length;\n\n let startIndex = responseText.indexOf(start);\n let endIndex = responseText.indexOf(end);\n\n let ajaxContent = responseText.substring(\n startIndex + startPointStringLength,\n endIndex,\n );\n\n const logoWrapper = document.querySelector(\".logo__wrapper\");\n if (logoWrapper) {\n logoWrapper.style.width = null;\n logoWrapper.style.transition = null;\n }\n\n setTimeout(function () {\n if (container) {\n container.innerHTML = ajaxContent;\n bodyClassSet();\n document.body.classList.add(\"loaded\");\n (0,_main_js__WEBPACK_IMPORTED_MODULE_0__.autorun)();\n\n const documentTitle = document.querySelector(\"#documentTitle\");\n if (documentTitle) {\n document.title = documentTitle.innerHTML;\n }\n }\n }, 400);\n }\n};\n\nconst displayAjaxEventContent = (responseText, container, start, end, page) => {\n if (responseText.indexOf(start) > -1 && responseText.indexOf(end) > 1) {\n let startPointStringLength = start.length;\n\n let startIndex = responseText.indexOf(start);\n let endIndex = responseText.indexOf(end);\n\n let ajaxContent = responseText.substring(\n startIndex + startPointStringLength,\n endIndex,\n );\n\n document.body.classList.add(\"event-is-active\");\n\n setTimeout(function () {\n if (container) {\n container.innerHTML = ajaxContent;\n (0,_main_js__WEBPACK_IMPORTED_MODULE_0__.autorun)();\n\n const eventTitle = document.querySelector(\"#eventTitle\");\n if (eventTitle) {\n document.title = eventTitle.innerHTML;\n }\n }\n }, 400);\n }\n};\n\nconst ajaxEventRequest = (page, container, start, end, event) => {\n const xhttp = new XMLHttpRequest();\n\n xhttp.onreadystatechange = function () {\n if (xhttp.readyState == 4 && xhttp.status == 200) {\n const responseText = xhttp.responseText;\n displayAjaxEventContent(responseText, container, start, end, page);\n }\n };\n\n xhttp.open(\"GET\", page, true);\n xhttp.send();\n\n window.history.pushState({ eventPopup: true }, false, page);\n};\n\nconst closeEventOverlay = () => {\n const container = document.querySelector(\".events__popup__inner\");\n\n if (container) {\n bodyClassSet();\n document.body.classList.remove(\"loading\");\n document.body.classList.add(\"loaded\");\n\n const documentTitle = document.querySelector(\"#documentTitle\");\n if (documentTitle) {\n document.title = documentTitle.innerHTML;\n }\n\n document.body.classList.remove(\"event-is-active\");\n document.body.classList.remove(\"single-tribe_events\");\n document.body.classList.remove(\"loading\");\n document.body.classList.add(\"loaded\");\n\n setTimeout(function () {\n container.innerHTML = \"\";\n }, 800);\n }\n};\n\nconst onClickEventCloseLink = (event) => {\n event.preventDefault();\n\n let link = event.target;\n if (!link.href) {\n link = event.target.closest(\"a\");\n }\n if (link) {\n window.history.pushState({ eventPopup: false }, false, link.href);\n\n closeEventOverlay();\n }\n};\n\nconst onPopState = (event) => {\n if (document.body.classList.contains(\"event-is-active\")) {\n if (!event.state || !event.state.eventPopup) {\n closeEventOverlay();\n }\n }\n};\n\nconst setupAjaxPopState = () => {\n window.removeEventListener(\"popstate\", onPopState);\n window.addEventListener(\"popstate\", onPopState);\n};\n\nconst onClickEventLink = (event) => {\n event.preventDefault();\n\n let link = event.target;\n if (!link.href) {\n link = event.target.closest(\"a\");\n }\n if (link) {\n const page = link.href;\n const start = '<div id=\"eventsPopupInnerStart\"></div>';\n const end = '<div id=\"eventsPopupInnerEnd\"></div>';\n\n const container = document.querySelector(\".events__popup__inner\");\n\n if (start && end && container) {\n ajaxEventRequest(page, container, start, end, event);\n }\n }\n};\n\nconst onClickLink = (event) => {\n event.preventDefault();\n\n let link = event.target;\n if (!link.href) {\n link = event.target.closest(\"a\");\n }\n if (link) {\n if (link.getAttribute(\"target\") == null) {\n if (link.className.indexOf(\"link--video\") > -1) {\n (0,_misc_js__WEBPACK_IMPORTED_MODULE_1__.onHomepageScroll)();\n } else {\n const logoWrapper = document.querySelector(\".logo__wrapper\");\n if (logoWrapper) {\n logoWrapper.style.width = null;\n logoWrapper.style.transition = null;\n }\n setTimeout(_misc_js__WEBPACK_IMPORTED_MODULE_1__.onHomepageScroll, 1200);\n }\n\n const page = link.getAttribute(\"href\");\n const container = document.querySelector(\"#content\");\n const start = '<div id=\"contentStart\"></div>';\n const end = '<div id=\"contentEnd\"></div>';\n\n document.body.classList.add(\"changing\");\n window.is_changing = true;\n\n ajaxRequest(page, container, start, end, event);\n\n window.history.pushState(false, false, page);\n }\n }\n};\n\nconst setupAjaxEventListeners = () => {\n const linkElements = document.querySelectorAll(\"a\");\n if (linkElements[0]) {\n for (let element of linkElements) {\n element.removeEventListener(\"click\", onClickLink);\n if (element.className.indexOf(\"no-ajax\") == -1) {\n if (!element.getAttribute(\"target\")) {\n if (element.getAttribute(\"href\")) {\n if (element.getAttribute(\"href\").indexOf(window.homeUrl) > -1) {\n element.addEventListener(\"click\", onClickLink);\n } else {\n element.setAttribute(\"target\", \"_blank\");\n }\n }\n }\n }\n }\n }\n};\n\nconst setupAjaxEventLinks = () => {\n const linkElements = document.querySelectorAll(\".event-thumbnail__inner\");\n if (linkElements[0]) {\n for (let element of linkElements) {\n element.removeEventListener(\"click\", onClickEventLink);\n element.addEventListener(\"click\", onClickEventLink);\n }\n }\n};\n\nconst setupAjaxEventCloseLink = () => {\n const linkElements = document.querySelectorAll(\".event__close-button\");\n if (linkElements[0]) {\n for (let element of linkElements) {\n element.removeEventListener(\"click\", onClickEventCloseLink);\n element.addEventListener(\"click\", onClickEventCloseLink);\n }\n }\n};\n\nconst ajaxSpoof = (e) => {\n e.preventDefault();\n\n let link = event.target;\n if (!link.href) {\n link = event.target.closest(\"a\");\n }\n if (link) {\n if (link.getAttribute(\"target\") == null) {\n document.body.classList.remove(\"loaded\");\n\n if (link.getAttribute(\"href\") != \"#\") {\n setTimeout(function () {\n window.location.href = link.href;\n }, 400);\n } else {\n setTimeout(function () {\n document.body.classList.add(\"loaded\");\n }, 400);\n }\n }\n }\n};\n\nconst preventDefaultOnHashLink = (e) => {\n e.preventDefault();\n};\n\nconst setupAjaxSpoof = () => {\n const linkElements = document.querySelectorAll(\"a\");\n if (linkElements[0]) {\n for (let element of linkElements) {\n element.removeEventListener(\"click\", ajaxSpoof);\n if (\n element.className.indexOf(\"no-ajax\") == -1 &&\n element.className.indexOf(\"event-thumbnail__inner\") == -1 &&\n element.className.indexOf(\"event__close-button\") == -1\n ) {\n if (!element.getAttribute(\"target\")) {\n if (element.getAttribute(\"href\")) {\n if (\n element.getAttribute(\"href\").indexOf(\"#\") !== 0 &&\n element.getAttribute(\"href\") !== \"#\"\n ) {\n if (element.getAttribute(\"href\").indexOf(window.homeUrl) > -1) {\n element.addEventListener(\"click\", ajaxSpoof);\n } else {\n element.setAttribute(\"target\", \"_blank\");\n }\n } else {\n element.removeEventListener(\"click\", preventDefaultOnHashLink);\n element.addEventListener(\"click\", preventDefaultOnHashLink);\n }\n }\n }\n }\n }\n }\n};\n\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/
29ajax-functionality.js?\n}"); 30 31/***/ }), 32
33/***/ "./src/scripts/components/carousels.js": 34/*!*********************************************!*\ 35 !*** ./src/scripts/components/carousels.js ***! 36 \*********************************************/ 37/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 38 39"use strict"; 40eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ setupCarousels: () => (/* binding */ setupCarousels)\n/* harmony export */ });\n/* harmony import */ var _vendor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vendor.js */ \"./src/scripts/components/vendor.js\");\n\n\nconst setupCarousels = () => {\n\tconst carouselElements = document.querySelectorAll('.carousel');\n\tif (carouselElements[0]) {\n\t\tfor (let carouselElement of carouselElements) {\n\t\t\tconst nextButton = carouselElement.parentNode.querySelector('.carousel__arrow--next');\n\t\t\tconst prevButton = carouselElement.parentNode.querySelector('.carousel__arrow--prev');\n\t\t\tconst slidesPerScreen = carouselElement.getAttribute('data-slides-per-screen');\n\t\t\tconst slidesPerScreenMobile = slidesPerScreen / 2;\n\t\t\tconst slider = (0,_vendor_js__WEBPACK_IMPORTED_MODULE_0__.tns)({\n\t\t\t container: carouselElement,\n \titems: 1,\n\t\t\t slideBy: 1,\n\t\t\t mouseDrag: true,\n\t\t\t loop: false,\n\t\t\t center: true,\n\t\t\t nextButton: nextButton,\n\t\t\t prevButton: prevButton,\n\t\t\t \n\t\t\t nav: true,\n\t\t responsive: {\n\t\t 500: {\n\t\t \tnav: false,\n\t\t\t\t\t center: false,\n\t\t\t\t\t items: slidesPerScreen,\n\t\t }\n\t\t }\n\t\t\t});\n\t\t}\n\t}\n}\n\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/carousels.js?\n}"); 41 42/***/ }), 43
44/***/ "./src/scripts/components/global-vars.js": 45/*!***********************************************!*\ 46 !*** ./src/scripts/components/global-vars.js ***! 47 \***********************************************/ 48/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 49 50"use strict"; 51eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createGlobalVariables: () => (/* binding */ createGlobalVariables)\n/* harmony export */ });\nconst createGlobalVariables = () => {\n\n\tvar isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n\n\twindow.isSafari = isSafari;\n\n\twindow.USER_IS_TOUCHING = false;\n\twindow.resizeTimer;\n\twindow.homeUrl;\n\n var d = new Date();\n var h = d.getHours();\n\n if (h < 7 || h >= 18) {\n \twindow.isNightMode = true;\n \tdocument.querySelector('HTML').classList.add('night-mode');\n } else {\n \twindow.isNightMode = false;\n \tdocument.querySelector('HTML').classList.remove('night-mode');\n }\n\n\twindow.nightModeIsManual = false;\n\n}\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/global-vars.js?\n}"); 52 53/***/ }), 54
55/***/ "./src/scripts/components/lazyloading.js": 56/*!***********************************************!*\ 57 !*** ./src/scripts/components/lazyloading.js ***! 58 \***********************************************/ 59/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 60 61"use strict"; 62eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ lazyloadBackgrounds: () => (/* binding */ lazyloadBackgrounds),\n/* harmony export */ lazyloadIframes: () => (/* binding */ lazyloadIframes),\n/* harmony export */ lazyloadImages: () => (/* binding */ lazyloadImages)\n/* harmony export */ });\nconst lazyloadImages = () => {\n\tconst lazyImages = document.querySelectorAll('.lazy');\n\n\tif (lazyImages[0]) {\n\t\tfor (let i = 0; i < lazyImages.length; i++) {\n\t\t\tlet currentLazyImage = lazyImages[i];\n\t\t\tlet dataSrc = currentLazyImage.getAttribute('data-src');\n\t\t\tcurrentLazyImage.setAttribute('src',dataSrc);\n\t\t\tcurrentLazyImage.classList.add('lazy-loading');\n\n currentLazyImage.onload = function () {\n\t\t\t\tthis.classList.remove('lazy-loading');\n\t\t\t\tthis.classList.add('lazy-loaded');\n\n\t\t\t\tthis.removeAttribute('width');\n\t\t\t\tthis.removeAttribute('height');\n\t\t\t\tthis.removeAttribute('style');\n\n\t\t\t\tconst lazyloadImages = document.querySelectorAll('.lazy');\n\t\t\t\tconst lazyloadedImages = document.querySelectorAll('.lazy-loaded');\n\n\t\t\t\tif (lazyloadImages[0] && lazyloadedImages[0]) {\n\t\t\t\t\tif (lazyloadImages.length == lazyloadedImages.length) {\n\t\t\t\t\t\tdocument.body.classList.remove('loading');\n\t\t\t\t\t}\n\t\t\t\t} \n };\n\t\t}\n\t} else {\n\t\tdocument.body.classList.remove('loading');\n\t}\n}\n\nconst lazyloadBackgrounds = () => {\n\tconst lazyBackgrounds = document.querySelectorAll('.lazy-background');\n\n\tif (lazyBackgrounds[0]) {\n\t\tfor (let i = 0; i < lazyBackgrounds.length; i++) {\n\t\t\tlet currentLazyBackground = lazyBackgrounds[i];\n\t\t\tlet dataStyle = currentLazyBackground.getAttribute('data-style');\n\t\t\tcurrentLazyBackground.setAttribute('style',dataStyle);\n\t\t\tcurrentLazyBackground.classList.add('lazy-loaded');\n\t\t}\n\t} else {\n\t\tdocument.body.classList.remove('loading');\n\t}\n}\n\nconst lazyloadIframes = () => {\n\tif (document.querySelectorAll('.lazy-iframe')[0]) {\n\t\tfor (let i = 0; i < document.querySelectorAll('.lazy-iframe').length; i++) {\n\t\t\tlet currentLazyIframe = document.querySelectorAll('.lazy-iframe')[i];\n\t\t\tlet dataSrc = currentLazyIframe.getAttribute('data-src');\n\t\t\tcurrentLazyIframe.setAttribute('src',dataSrc);\n\t\t\tcurrentLazyIframe.classList.add('lazy-loading-iframe');\n\n currentLazyIframe.onload = function () {\n\t\t\t\tthis.classList.remove('lazy-loading-iframe');\n\t\t\t\tthis.classList.add('lazy-loaded-iframe');\n };\n\t\t}\n\t\tfor (let i = 0; i < document.querySelectorAll('.lazy-loading-iframe').length; i++) {\n\t\t\tdocument.querySelectorAll('.lazy-loading-iframe')[i].classList.remove('lazy-iframe');\n\t\t}\n\t}\n}\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/lazyloading.js?\n}"); 63 64/***/ }), 65
66/***/ "./src/scripts/components/menu.js": 67/*!****************************************!*\ 68 !*** ./src/scripts/components/menu.js ***! 69 \****************************************/ 70/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 71 72"use strict"; 73eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ activateMenu: () => (/* binding */ activateMenu),\n/* harmony export */ deactivateMenu: () => (/* binding */ deactivateMenu),\n/* harmony export */ setupMenu: () => (/* binding */ setupMenu),\n/* harmony export */ toggleMenuActive: () => (/* binding */ toggleMenuActive)\n/* harmony export */ });\nconst activateMenu = () => {\n\tdocument.body.classList.add('menu-is-active');\n}\n\nconst deactivateMenu = () => {\n\tdocument.body.classList.remove('menu-is-active');\n}\n\nconst toggleMenuActive = () => {\n\tdocument.body.classList.toggle('menu-is-active');\n}\n\nconst setupMenu = () => {\n\tconst hamburger = document.querySelector('.hamburger');\n\tif (hamburger) {\n\t\thamburger.removeEventListener('click',toggleMenuActive);\n\t\thamburger.addEventListener('click',toggleMenuActive);\n\t}\n}\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/menu.js?\n}"); 74 75/***/ }), 76
77/***/ "./src/scripts/components/misc.js": 78/*!****************************************!*\ 79 !*** ./src/scripts/components/misc.js ***! 80 \****************************************/ 81/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 82 83"use strict"; 84eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ monthNameSize: () => (/* binding */ monthNameSize),\n/* harmony export */ onFirstContentReady: () => (/* binding */ onFirstContentReady),\n/* harmony export */ onFirstLoad: () => (/* binding */ onFirstLoad),\n/* harmony export */ onHomepageScroll: () => (/* binding */ onHomepageScroll),\n/* harmony export */ onMouseMove: () => (/* binding */ onMouseMove),\n/* harmony export */ onPageScrollPageBackground: () => (/* binding */ onPageScrollPageBackground),\n/* harmony export */ setupBackToTopButton: () => (/* binding */ setupBackToTopButton)\n/* harmony export */ });\nconst onFooterWheel = (e) => {\n if (document.body.className.indexOf(\"home\") > -1) {\n if (document.querySelector(\"#content\")) {\n document.querySelector(\"#content\").scrollTo({\n left: 0,\n top: document.querySelector(\"#content\").scrollTop + e.deltaY,\n });\n }\n } else if (\n document.querySelector(\".page__header--standard\") ||\n document.querySelector(\"#aboutBackground\")\n ) {\n document.querySelector(\"body\").scrollTo({\n left: 0,\n top: document.querySelector(\"body\").scrollTop + e.deltaY,\n });\n } else {\n document.body.scrollTo({\n left: 0,\n top: document.body.scrollTop + e.deltaY,\n });\n }\n};\n\n// const onResize = () => {\n// document.body.style.height = window.innerHeight + \"px\";\n// const fullHeightElements = document.querySelectorAll(\".full-height\");\n// if (fullHeightElements[0]) {\n// for (let fullHeightElement of fullHeightElements) {\n// fullHeightElement.style.height = window.innerHeight + \"px\";\n// }\n// }\n// const fullHeightWidthElements =\n// document.querySelectorAll(\".full-height-width\");\n// if (fullHeightWidthElements[0]) {\n// for (let fullHeightWidthElement of fullHeightWidthElements) {\n// fullHeightWidthElement.style.width = window.innerHeight + \"px\";\n// }\n// }\n\n// const content = document.querySelector(\"#content\");\n// if (content) {\n// if (document.body.className.indexOf(\"home\") == -1) {\n// // content.style.height = null;\n// } else {\n// // content.style.height = window.innerHeight + 'px';\n// }\n// content.style.minHeight = window.innerHeight + \"px\";\n// }\n\n// const overFooter = document.querySelector(\".over__footer\");\n// const footer = document.querySelectorAll(\".page-footer\")[1];\n// if (overFooter && footer) {\n// overFooter.style.height = footer.offsetHeight + \"px\";\n// }\n\n// const pageHeaderStandard = document.querySelector(\".page__header--standard\");\n\n// if (pageHeaderStandard) {\n// if (window.innerWidth < 768) {\n// const containerFluidMain = document.querySelector(\n// \".page__container-fluid--main\",\n// );\n// if (containerFluidMain) {\n// if (window.innerWidth < 768) {\n// pageHeaderStandard.style.height = null;\n// } else {\n// pageHeaderStandard.style.height =\n// containerFluidMain.offsetHeight + 30 + \"px\";\n// }\n// }\n// } else {\n// pageHeaderStandard.style.height = window.innerHeight + \"px\";\n// }\n// }\n\n// const aboutBackground = document.querySelector(\"#aboutBackground\");\n\n// if (aboutBackground) {\n// if (window.innerWidth < 768) {\n// const containerFluidMain = document.querySelector(\n// \".page__container-fluid--main\",\n// );\n// if (containerFluidMain) {\n// if (window.innerWidth < 768) {\n// aboutBackground.style.height = null;\n// } else {\n// aboutBackground.style.height =\n// containerFluidMain.offsetHeight + 30 + \"px\";\n// }\n// }\n// }
84 else {\n// aboutBackground.style.height = window.innerHeight + \"px\";\n// }\n// }\n\n// window.removeEventListener(\"scroll\", onPageScrollPageBackground);\n// document.body.removeEventListener(\"scroll\", onPageScrollPageBackground);\n// if (footer) {\n// footer.removeEventListener(\"wheel\", onFooterWheel);\n// footer.addEventListener(\"wheel\", onFooterWheel);\n// }\n// if (document.querySelector(\"#aboutBackgroundHelper\")) {\n// document\n// .querySelector(\"#aboutBackgroundHelper\")\n// .removeEventListener(\"wheel\", onFooterWheel);\n// document\n// .querySelector(\"#aboutBackgroundHelper\")\n// .addEventListener(\"wheel\", onFooterWheel);\n// }\n\n// if (document.querySelector(\"#content\")) {\n// document\n// .querySelector(\"#content\")\n// .removeEventListener(\"scroll\", onPageScrollPageBackground);\n// }\n\n// if (document.body.className.indexOf(\"home\") > -1) {\n// if (document.querySelector(\"#content\")) {\n// document\n// .querySelector(\"#content\")\n// .addEventListener(\"scroll\", onPageScrollPageBackground);\n// }\n// } else if (\n// document.querySelector(\".page__header--standard\") ||\n// document.querySelector(\"#aboutBackground\") ||\n// document.querySelector(\"#communityBackground\")\n// ) {\n// document\n// .querySelector(\"body\")\n// .addEventListener(\"scroll\", onPageScrollPageBackground);\n// } else {\n// window.addEventListener(\"scroll\", onPageScrollPageBackground);\n// }\n\n// jQuery('*').scroll((e) => {\n// console.log(e.target)\n// })\n\n// document..addEventListener('wheel', (e) => {\n// \tconsole.log(e.target);\n// })\n// };\n\nconst monthNameSize = () => {\n const scrollTop =\n document.body.scrollTop ||\n document.scrollTop ||\n document.documentElement.scrollTop;\n document.body.classList.add(\"loaded\");\n const monthNames = document.querySelectorAll(\".month-name\");\n\n if (monthNames[0]) {\n for (let monthName of monthNames) {\n const inner = monthName.parentNode;\n const row = monthName.closest(\".row\");\n const span = monthName.querySelector(\".month-name__inner\");\n let width = -1;\n\n if (scrollTop < row.offsetTop - 260) {\n //full height\n width = inner.offsetHeight;\n } else if (\n scrollTop >\n row.offsetTop + row.offsetHeight - span.offsetWidth - 260\n ) {\n //short\n width = span.offsetWidth + 40;\n } else if (scrollTop > row.offsetTop - 260) {\n //shortening 'sticky' effect\n width = inner.offsetHeight - scrollTop + row.offsetTop - 240;\n }\n\n if (width != -1) {\n monthName.style.width = width + \"px\";\n // monthName.style.left = Math.round(width * 0.44) + 'px';\n }\n }\n }\n};\n\nconst onFirstContentReady = () => {\n document.body.classList.add(\"dom-content-is-loaded\");\n};\n\nconst onFirstLoad = () => {\n window.firstLoadDone = true;\n document.body.classList.add(\"loaded\");\n lazyloadImages();\n};\n\nconst onMouseMove = (e) => {\n window.mouseX = e.clientX;\n window.mouseY = e.clientY;\n const cursor = document.querySelector(\"#cursor\");\n if (cursor) {\n if (window.USER_IS_TOUCHING == false) {\n cursor.style.left = window.mouseX + \"px\";\n cursor.style.top = window.mouseY + \"px\";\n }\n }\n};\n\nconst onPageScrollPageBackground = (e) => {\n const scrollTop =\n document.body.scrollTop || document.documentElement.scrollTop;\n const scrollHeight = document.body.scrollHeight;\n const content = document.querySelector(\".page__container-fluid--main\");\n const footer = document.querySelectorAll(\".page-footer\")[1];\n const overFooter = document.querySelector(\".over__footer\");
84\n\n const pageBackground = document.querySelector(\".page-background\");\n const aboutBackground = document.querySelector(\"#aboutBackground\");\n const communityBackground = document.querySelector(\"#communityBackground\");\n\n if (\n typeof pageBackground !== \"undefined\" &&\n typeof content !== \"undefined\" &&\n typeof footer !== \"undefined\"\n ) {\n // let top = Math.min(scrollTop, content.offsetHeight - window.innerHeight);\n if (\n pageBackground.className.indexOf(\"page__header--standard\") === -1 &&\n pageBackground.getAttribute(\"id\") !== \"aboutBackground\" &&\n pageBackground.getAttribute(\"id\") !== \"communityBackground\"\n ) {\n } else {\n if (typeof overFooter !== \"undefined\" && window.innerWidth >= 768) {\n if (\n scrollTop >\n scrollHeight - overFooter.offsetHeight - window.innerHeight\n ) {\n pageBackground.style.position = \"absolute\";\n pageBackground.style.bottom = 0;\n pageBackground.style.top = \"unset\";\n }
84 else {\n pageBackground.style.position = \"fixed\";\n pageBackground.style.bottom = null;\n pageBackground.style.top = null;\n }\n }\n }\n if (\n typeof aboutBackground !== \"undefined\" &&\n aboutBackground !== null &&\n typeof communityBackground !== \"undefined\" &&\n communityBackground !== null\n ) {\n if (\n typeof aboutBackground.style !== \"undefined\" &&\n aboutBackground.style !== null\n ) {\n // aboutBackground.style.top = top + 'px';\n }\n if (\n typeof communityBackground.style !== \"undefined\" &&\n communityBackground.style !== null\n ) {\n // communityBackground.style.top = top + 'px';\n }\n }\n }\n\n const postTitleElement = document.querySelector(\n \".page-background--legacy__title\",\n );\n if (postTitleElement) {\n if (scrollTop > window.innerHeight / 2) {\n postTitleElement.classList.add(\"fade-out\");\n } else {\n postTitleElement.classList.remove(\"fade-out\");\n }\n }\n\n const homepageSplash = document.querySelector(\".homepage__splash\");\n if (homepageSplash && scrollTop >= window.innerHeight) {\n document.body.classList.add(\"homepage--scrolled\");\n } else {\n document.body.classList.remove(\"homepage--scrolled\");\n }\n};\n\nconst addHoverStateToThumbnail = (scrollTop) => {\n const thumbnails = document.querySelectorAll(\".thumbnail\");\n const container = document.querySelector(\".landing-page__container-fluid\");\n if (thumbnails[0] && container) {\n const thumbnailHeight = thumbnails[0].offsetHeight;\n let activeThumbnail = -1;\n for (let i = 0; i < thumbnails.length; i++) {\n const thumbnail = thumbnails[i];\n if (i % 2 == 0) {\n if (thumbnail.offsetTop - scrollTop < window.innerHeight * 0.4) {\n activeThumbnail = thumbnail;\n }\n } else {\n if (\n thumbnail.offsetTop + thumbnailHeight / 2 - scrollTop <\n window.innerHeight * 0.4\n ) {\n activeThumbnail = thumbnail;\n }\n }\n }\n\n for (let i = 0; i < thumbnails.length; i++) {\n if (thumbnails[i] == activeThumbnail) {\n thumbnails[i].classList.add(\"hover\");\n } else {\n thumbnails[i].classList.remove(\"hover\");\n }\n }\n }\n};\n\nconst onHomepageScroll = () => {\n const contentElement = document.querySelector(\n \".landing-page__container-fluid\",\n );\n if (contentElement) {\n const scrollTop = contentElement.scrollTop;\n let smallWidth = window.innerWidth / 2;\n if (window.innerWidth >= 768 && window.innerWidth < 1024) {\n smallWidth = window.innerWidth * 0.3;\n } else if (window.innerWidth >= 1024) {\n smallWidth = window.innerWidth * 0.2;\n }\n\n if (window.innerWidth < 500) {\n addHoverStateToThumbnail(scrollTop);\n } else {\n const thumbnails = document.querySelectorAll(\".thumbnail\");\n if (thumbnails[0]) {\n for (let thumbnail of thumbnails) {\n thumbnail.classList.remove(\"hover\");\n }\n }\n }\n\n let bigWidth = window.innerWidth;\n if (window.innerWidth >= 768 && window.innerWidth < 1024) {\n bigWidth = window.innerWidth * 0.83333333;\n } else if (window.innerWidth >= 1024) {\n bigWidth = window.innerWidth * 0.66666666;\n }\n\n const smallHeight = smallWidth * 0.225;\n const bigHeight = bigWidth * 0.225;\n\n const logoWrapper = document.querySelector(\".logo__wrapper\");\n if (logoWrapper) {\n logoWrapper.style.transition = \"none\";\n if (scrollTop == 0) {\n logoWrapper.style.width = bigWidth + \"px\";\n } else if (scrollTop < bigHeight - smallHeight) {\n if (window.innerWidth >= 768) {\n logoWrapper.style.width = (bigHeight - scrollTop) / 0.225 + \"px\";\n } else {\n logoWrapper.style.width = (bigHeight - scrollTop) / 0.225 + \"px\";\n }\n } else {\n logoWrapper.style.width = smallWidth + \"px\";\n }\n }\n } else {\n const logoWrapper = document.querySelector(\".logo__wrapper\");\n if (logoWrapper) {\n logoWrapper.style.width = null;\n logoWrapper.style.transition = null;\n }\n }\n};\n\nconst backToTop = () => {\n window.scrollTo({\n top: 0,\n left: 0,\n behavior: \"smooth\",\n });\n};\n\nconst setupBackToTopButton = () => {\n const backToTopButton = document.querySelector(\"#backToTopButton\");\n if (backToTopButton) {\n backToTopButton.removeEventListener(\"click\", backToTop);\n backToTopButton.addEventListener(\"click\", backToTop);\n }\n};\n\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/misc.js?\n}"); 85 86/***/ }), 87
88/***/ "./src/scripts/components/news.js": 89/*!****************************************!*\ 90 !*** ./src/scripts/components/news.js ***! 91 \****************************************/ 92/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 93 94"use strict"; 95eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ setupMarquee: () => (/* binding */ setupMarquee)\n/* harmony export */ });\n/* harmony import */ var _node_modules_marquee3000__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/marquee3000 */ \"./node_modules/marquee3000/marquee3k.js\");\n/* harmony import */ var _node_modules_marquee3000__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_marquee3000__WEBPACK_IMPORTED_MODULE_0__);\n\n\nconst setupMarquee = () => {\n\t_node_modules_marquee3000__WEBPACK_IMPORTED_MODULE_0___default().init();\n}\n\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/news.js?\n}"); 96 97/***/ }), 98
99/***/ "./src/scripts/components/nightMode.js": 100/*!*********************************************!*\ 101 !*** ./src/scripts/components/nightMode.js ***! 102 \*********************************************/ 103/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 104 105"use strict"; 106eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ setupNightMode: () => (/* binding */ setupNightMode)\n/* harmony export */ });\nconst nightModeSwitched = new CustomEvent('nightModeSwitched', {\n\t// The \"payload\" of a custom event should be in the \"detail\" prop.\n\t'detail': {\n\t\t// You can use the detail for the event payload\n\t\t'changed': new Date()\n\t},\n\tbubbles: true, // Does your event bubble?\n\tcancelable: true // Is your event cancelable?\n});\n\nconst onDayNightButtonClick = () => {\n\twindow.nightModeIsManual = true;\n\tif (window.isNightMode == false) {\n\t\twindow.isNightMode = true;\n \tdocument.querySelector('HTML').classList.add('night-mode');\n\t} else {\n\t\twindow.isNightMode = false;\n \tdocument.querySelector('HTML').classList.remove('night-mode');\n\t}\n window.dispatchEvent(nightModeSwitched);\n}\n\nconst checkNightModeTime = () => {\n var d = new Date();\n var s = d.getSeconds();\n var m = d.getMinutes();
106\n var h = d.getHours();\n\n\tif (window.nightModeIsManual == false) {\n\n\t if ((h < 7 || h >= 18) && window.isNightMode == false) {\n\t \twindow.isNightMode = true;\n\t \tdocument.querySelector('HTML').classList.add('night-mode');\n\t \twindow.dispatchEvent(nightModeSwitched);\n\t } else if ((h >= 7 && h < 18) && window.isNightMode == true) {\n\t \twindow.isNightMode = false;\n\t \tdocument.querySelector('HTML').classList.remove('night-mode');\n\t \twindow.dispatchEvent(nightModeSwitched);\n\t }\n\t \twindow.requestAnimationFrame(checkNightModeTime);\n\n\t}\n\n}\n\nconst setupNightMode = () => {\n\tconst nightModeButton = document.querySelector('#nightModeButton');\n\tif (nightModeButton) {\n\t\tnightModeButton.removeEventListener('click',onDayNightButtonClick);\n\t\tnightModeButton.addEventListener('click',onDayNightButtonClick);\n\t}\n\tcheckNightModeTime();\n window.dispatchEvent(nightModeSwitched);\n}\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/nightMode.js?\n}"); 107 108/***/ }), 109
110/***/ "./src/scripts/components/popups.js": 111/*!******************************************!*\ 112 !*** ./src/scripts/components/popups.js ***! 113 \******************************************/ 114/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 115 116"use strict"; 117eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ setupResdiaryPopup: () => (/* binding */ setupResdiaryPopup),\n/* harmony export */ setupSharePopup: () => (/* binding */ setupSharePopup)\n/* harmony export */ });\nconst activateResdiaryPopup = () => {\n\tdocument.body.classList.add('resdiary-is-active');\n\tdocument.body.classList.remove('menu-is-active');\n}\n\nconst deactivateResdiaryPopup = () => {\n\tdocument.body.classList.remove('resdiary-is-active');\n}\n\nconst setupResdiaryPopup = () => {\n\tconst links = document.querySelectorAll('A');\n\tif (links[0]) {\n\t\tfor (let link of links) {\n\t\t\tif (link.getAttribute('href')) {\n\t\t\t\tif (link.getAttribute('href') == '#bookatable') {\n\t\t\t\t\tlink.removeEventListener('click',activateResdiaryPopup);\n\t\t\t\t\tlink.addEventListener('click',activateResdiaryPopup);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tconst resdiaryPopupCloseButton = document.querySelector('#popupResdiaryCloseButton');\n\tif (resdiaryPopupCloseButton) {\n\t\tresdiaryPopupCloseButton.removeEventListener('click',deactivateResdiaryPopup);\n\t\tresdiaryPopupCloseButton.addEventListener('click',deactivateResdiaryPopup);\n\t}\n}\n\nconst copyUrlToClipboard = () => {\n /* Get the text field */\n\tlet copyText = window.location.href;\n\n\tconst copyElement = document.createElement('input');\n\tcopyElement.setAttribute('type', 'text');\n\tcopyElement.value = copyText;\n\tdocument.body.appendChild(copyElement);\n\n /* Select the text field */\n copyElement.select();\n copyElement.setSelectionRange(0, 99999); /*For mobile devices*/\n\n /* Copy the text inside the text field */\n\tdocument.execCommand(\"copy\");\n\n\tconst copyUrlButton = document.querySelector('.copy-url');\n\tif (copyUrlButton) {\n\t\tconst copyUrlButtonText = copyUrlButton.innerHTML;\n\n\t\tcopyUrlButton.innerHTML = 'link copied!';\n\n\t\tsetTimeout(() => {\n\t\t\tcopyUrlButton.innerHTML = copyUrlButtonText;\n\t\t}, 1200);\n\t}\n\n\tdocument.body.removeChild(copyElement);\n\n}\n\nconst activateSharePopup = () => {\n\tdocument.body.classList.add('share-popup-is-active');\n\tdocument.body.classList.remove('menu-is-active');\n}\n\nconst deactivateSharePopup = () => {\n\tdocument.body.classList.remove('share-popup-is-active');\n}\n\nconst setupSharePopup = () => {\n\tconst button = document.querySelector('#shareButton');\n\tif (button) {\n\t\tbutton.removeEventListener('click',activateSharePopup);\n\t\tbutton.addEventListener('click',activateSharePopup);\n\t}\n\tconst resdiaryPopupCloseButton = document.querySelector('.share-popup__close-btn');\n\tif (resdiaryPopupCloseButton) {\n\t\tresdiaryPopupCloseButton.removeEventListener('click',deactivateSharePopup);\n\t\tresdiaryPopupCloseButton.addEventListener('click',deactivateSharePopup);\n\t}\n\tconst copyUrlButton = document.querySelector('.copy-url');\n\tif (copyUrlButton) {\n\t\tcopyUrlButton.removeEventListener('click', copyUrlToClipboard);\n\t\tcopyUrlButton.addEventListener('click', copyUrlToClipboard);\n\t}\n}\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/popups.js?\n}"); 118 119/***/ }), 120
121/***/ "./src/scripts/components/search.js": 122/*!******************************************!*\ 123 !*** ./src/scripts/components/search.js ***! 124 \******************************************/ 125/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 126 127"use strict"; 128eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ setupSearchListener: () => (/* binding */ setupSearchListener)\n/* harmony export */ });\n/* harmony import */ var _ajax_functionality_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ajax-functionality.js */ \"./src/scripts/components/ajax-functionality.js\");\n\n\nfunction setupSearchListener() {\n\n\twindow.SEARCH_FIELD_IS_EMPTY = true;\n\n\tconst submitForm = () => {\n\t\tconst searchInputText = document.querySelector('#searchInputText');\n\n\t\tif (searchInputText.value.length > 0) {\n\t\t\tconst searchTerm = searchInputText.value;\n\t\t\tconst searchUrl = searchform.getAttribute('action');\n\t\t\tconst page = searchUrl + searchTerm;\n\t\t\tdocument.body.classList.add('search-loading');\n\n\t const form = searchform;\n\t const input = searchInputText;\n\t const query = searchInputText.value;\n\t const container = document.querySelector('.row--results');\n \tconst start = '<div class=\"search__start\"></div>';\n \tconst end = '<div class=\"search__end\"></div>';\n\n\t\t\tconst xhttp = new XMLHttpRequest();\n\n\t\t\txhttp.onreadystatechange = function() {\n\t\t if (xhttp.readyState == 4 && xhttp.status == 200) {\n\t\t \tconst responseText = xhttp.responseText;\n\t\t \t(0,_ajax_functionality_js__WEBPACK_IMPORTED_MODULE_0__.displayAjaxContent)(responseText, container, start, end, page);\n\n\t\t\t\t\twindow.history.pushState(\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tpage\n\t\t\t\t\t);\n\n\t\t \tsetTimeout(function(){\n\t\t\t\t\t\tdocument.body.classList.remove('search-loading');\n\t\t\t\t\t},400);\n\t\t }\n\t\t\t}\n\n\t\t xhttp.open(\"POST\", page, true);\n\t\t xhttp.send(\n\t\t \tJSON.stringify(\n\t\t\t\t {\n\t\t\t\t action : 'load_search_results',\n query : query\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t);\n\n }\n return false;\n\t}\n\n\tconst onSearchformSubmit = (e) => {\n e.preventDefault();\n submitForm();\n\t}\n\n\tconst clearSearchForm = (e) => {\n\t\te.preventDefault();\n\t\tconst searchInputText = document.querySelector('#searchInputText');\n\t\tif (searchInputText) {\n\t\t\tsearchInputText.value = '';\n\t\t\tsubmitForm();\n\t\t}\n\t}\n\n\tconst searchform = document.querySelector('#searchform');\n\tif (searchform) {\n\t\tsearchform.removeEventListener('submit',onSearchformSubmit);\n\t\tsearchform.addEventListener('submit',onSearchformSubmit);\n\t}\n\n\tconst searchClearButton = document.querySelector('#searchClearButton');\n\tif (searchClearButton) {\n\t\tsearchClearButton.removeEventListener('click',clearSearchForm);\n\t\tsearchClearButton.addEventListener('click',clearSearchForm);\n\t}\n}\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/search.js?\n}"); 129 130/***/ }), 131
132/***/ "./src/scripts/components/touchstart.js": 133/*!**********************************************!*\ 134 !*** ./src/scripts/components/touchstart.js ***! 135 \**********************************************/ 136/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 137 138"use strict"; 139eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ onTouchStart: () => (/* binding */ onTouchStart)\n/* harmony export */ });\nconst onTouchStart = () => {\n\twindow.USER_IS_TOUCHING = true;\n\tdocument.body.classList.add('touchscreen');\n\twindow.removeEventListener('touchstart',onTouchStart);\n}\n\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/touchstart.js?\n}"); 140 141/***/ }), 142
143/***/ "./src/scripts/components/vendor.js": 144/*!******************************************!*\ 145 !*** ./src/scripts/components/vendor.js ***! 146 \******************************************/ 147/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 148 149"use strict"; 150eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ tns: () => (/* binding */ tns),\n/* harmony export */ vendorFunctions: () => (/* binding */ vendorFunctions)\n/* harmony export */ });\nvar tns=function(){var t=window,Ai=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)},e=window,Ni=e.cancelAnimationFrame||e.mozCancelAnimationFrame||function(t){clearTimeout(t)};function Li(){for(var t,e,n,i=arguments[0]||{},a=1,r=arguments.length;a<r;a++)if(null!==(t=arguments[a]))for(e in t)i!==(n=t[e])&&void 0!==n&&(i[e]=n);return i}function Bi(t){return 0<=[\"true\",\"false\"].indexOf(t)?JSON.parse(t):t}function Si(t,e,n,i){if(i)try{t.setItem(e,n)}catch(t){}return n}function Hi(){var t=document,e=t.body;return e||((e=t.createElement(\"body\")).fake=!0),e}var n=document.documentElement;function Oi(t){var e=\"\";return t.fake&&(e=n.style.overflow,t.style.background=\"\",t.style.overflow=n.style.overflow=\"hidden\",n.appendChild(t)),e}function Di(t,e){t.fake&&(t.remove(),n.style.overflow=e,n.offsetHeight)}function ki(t,e,n,i){\"insertRule\"in t?t.insertRule(e+\"{\"+n+\"}\",i):t.addRule(e,n,i)}function Ri(t){return(\"insertRule\"in t?t.cssRules:t.rules).length}function Ii(t,e,n){for(var i=0,a=t.length;i<a;i++)e.call(n,t[i],i)}var i=\"classList\"in document.createElement(\"_\"),Pi=i?function(t,e){return t.classList.contains(e)}:function(t,e){return 0<=t.className.indexOf(e)},zi=i?function(t,e){Pi(t,e)||t.classList.add(e)}:function(t,e){Pi(t,e)||(t.className+=\" \"+e)},Wi=i?function(t,e){Pi(t,e)&&t.classList.remove(e)}:function(t,e){Pi(t,e)&&(t.className=t.className.replace(e,\"\"))};function qi(t,e){return t.hasAttribute(e)}function Fi(t,e){return t.getAttribute(e)}function r(t){return void 0!==t.item}function ji(t,e){if(t=r(t)||t instanceof Array?t:[t],\"[object Object]\"===Object.prototype.toString.call(e))for(var n=t.length;n--;)for(var i in e)t[n].setAttribute(i,e[i])}function Vi(t,e){t=r(t)||t instanceof Array?t:[t];for(var n=(e=e instanceof Array?e:[e]).length,i=t.length;i--;)for(var a=n;a--;)t[i].removeAttribute(e[a])}function Gi(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n]);return e}function Qi(t,e){\"none\"!==t.style.display&&(t.style.display=\"none\")}function Xi(t,e){\"none\"===t.style.display&&(t.style.display=\"\")}function Yi(t){return\"none\"!==window.getComputedStyle(t).display}function Ki(e){if(\"string\"==typeof e){var n=[e],i=e.charAt(0).toUpperCase()+e.substr(1);[\"Webkit\",\"Moz\",\"ms\",\"O\"].forEach(function(t){\"ms\"===t&&\"transform\"!==e||n.push(t+i)}),e=n}for(var t=document.createElement(\"fakeelement\"),a=(e.length,0);a<e.length;a++){var r=e[a];if(void 0!==t.style[r])return r}return!1}function Ji(t,e){var n=!1;return/^Webkit/.test(t)?n=\"webkit\"+e+\"End\":/^O/.test(t)?n=\"o\"+e+\"End\":t&&(n=e.toLowerCase()+\"end\"),n}var a=!1;try{var o=Object.defineProperty({},\"passive\",{get:function(){a=!0}});window.addEventListener(\"test\",null,o)}catch(t){}var u=!!a&&{passive:!0};function Ui(t,e,n){for(var i in e){var a=0<=[\"touchstart\",\"touchmove\"].indexOf(i)&&!n&&u;t.addEventListener(i,e[i],a)}}function _i(t,e){for(var n in e){var i=0<=[\"touchstart\",\"touchmove\"].indexOf(n)&&u;t.removeEventListener(n,e[n],i)}}function Zi(){return{topics:{},on:function(t,e){this.topics[t]=this.topics[t]||[],this.topics[t].push(e)},off:function(t,e){if(this.topics[t])for(var n=0;n<this.topics[t].length;n++)if(this.topics[t][n]===e){this.topics[t].splice(n,1);break}}
150,emit:function(e,n){n.type=e,this.topics[e]&&this.topics[e].forEach(function(t){t(n,e)})}}}Object.keys||(Object.keys=function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}),\"remove\"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var $i=function(H){H=Li({container:\".slider\",mode:\"carousel\",axis:\"horizontal\",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:\"top\",controlsText:[\"prev\",\"next\"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:\"top\",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:\"top\",autoplayTimeout:5e3,autoplayDirection:\"forward\",autoplayText:[\"start\",\"stop\"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:\"tns-fadeIn\",animateOut:\"tns-fadeOut\",animateNormal:\"tns-normal\",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:\".tns-lazy-img\",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},H||{});var O=document,m=window,a={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},e={},n=H.useLocalStorage;if(n){var t=navigator.userAgent,i=new Date;try{(e=m.localStorage)?(e.setItem(i,i),n=e.getItem(i)==i,e.removeItem(i)):n=!1,n||(e={})}catch(t){n=!1}n&&(e.tnsApp&&e.tnsApp!==t&&[\"tC\",\"tPL\",\"tMQ\",\"tTf\",\"t3D\",\"tTDu\",\"tTDe\",\"tADu\",\"tADe\",\"tTE\",\"tAE\"].forEach(function(t){e.removeItem(t)}),localStorage.tnsApp=t)}var y=e.tC?Bi(e.tC):Si(e,\"tC\",function(){var t=document,e=Hi(),n=Oi(e),i=t.createElement(\"div\"),a=!1;e.appendChild(i);try{for(var r,o=\"(10px * 10)\",u=[\"calc\"+o,\"-moz-calc\"+o,\"-webkit-calc\"+o],l=0;l<3;l++)if(r=u[l],i.style.width=r,100===i.offsetWidth){a=r.replace(o,\"\");break}}catch(t){}return e.fake?Di(e,n):i.remove(),a}(),n),g=e.tPL?Bi(e.tPL):Si(e,\"tPL\",function(){var t,e=document,n=Hi(),i=Oi(n),a=e.createElement(\"div\"),r=e.createElement(\"div\"),o=\"\";a.className=\"tns-t-subp2\",r.className=\"tns-t-ct\";for(var u=0;u<70;u++)o+=\"<div></div>\";return r.innerHTML=o,a.appendChild(r),n.appendChild(a),t=Math.abs(a.getBoundingClientRect().left-r.children[67].getBoundingClientRect().left)<2,n.fake?Di(n,i):a.remove(),t}(),n),D=e.tMQ?Bi(e.tMQ):Si(e,\"tMQ\",function(){if(window.matchMedia||window.msMatchMedia)return!0;var t,e=document,n=Hi(),i=Oi(n),a=e.createElement(\"div\"),r=e.createElement(\"style\"),o=\"@media all and (min-width:1px){.tns-mq-test{position:absolute}}\";return r.type=\"text/css\",a.className=\"tns-mq-test\",n.appendChild(r),n.appendChild(a),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(e.createTextNode(o)),t=window.getComputedStyle?window.getComputedStyle(a).position:a.currentStyle.position,n.fake?Di(n,i):a.remove(),\"absolute\"===t}(),n),r=e.tTf?Bi(e.tTf):Si(e,\"tTf\",Ki(\"transform\"),n),o=e.t3D?Bi(e.t3D):Si(e,\"t3D\",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;var e,n=document,i=Hi(),a=Oi(i),r=n.createElement(\"p\"),o=9<t.length?\"-\"+t.slice(0,-9).toLowerCase()+\"-\":\"\";return o+=\"transform\",i.insertBefore(r,null),r.style[t]=\"translate3d(1px,1px,1px)\",e=window.getComputedStyle(r).getPropertyValue(o),i.fake?Di(i,a):r.remove(),void 0!==e&&0<e.length&&\"none\"!==e}(r),n),x=e.tTDu?Bi(e.tTDu):Si(e,\"tTDu\",Ki(\"transitionDuration\"),n),u=e.tTDe?Bi(e.tTDe):Si(e,\"tTDe\",Ki(\"transitionDelay\"),n),b=e.tADu?Bi(e.tADu):Si(e,\"tADu\",Ki(\"animationDuration\"),n),l=e.tADe?Bi(e.tADe):Si(e,\"tADe\",Ki(\"animationDelay\"),n),s=e.tTE?Bi(e.tTE):Si(e,\"tTE\",Ji(x,\"Transition\"),n),c=e.tAE?Bi(e.tAE):Si(e,\"tAE\",Ji(b,\"Animation\"),n),f=m.console&&\"function\"==typeof m.console.warn,d=[\"container\",\"controlsContainer\",\"prevButton\",\"nextButton\",\"navContainer\",\"autoplayButton\"],v={};if(d.forEach(function(t){if(\"string\"==typeof H[t]){var e=H[t],n=O.querySelector(e);if(v[t]=e,!n||!n.nodeName)return void(f&&console.warn(\"Can't find\",H[t]));H[t]=n}}),!(H.container.children.length<1)){var k=H.responsive,R=H.nested,I=\"carousel\"===H.mode;if(k){0 in k&&(H=Li(H,k[0]),delete k[0]);var p={};for(var h in k){var w=k[h];w=\"number\"==typeof w?{items:w}:w,p[h]=w}k=p,p=null}if(I||function t(e){for(var n in e)I||(\"slideBy\"===n&&(e[n]=\"page\"),\"edgePadding\"===n&&(e[n]=!1),\"autoHeight\"===n&&(e[n]=!1)),\"responsive\"===n&&t(e[n])}(H),!I){H.axis=\"horizontal\",H.slideBy=\"page\",H.edgePadding=!1;var P=H.animateIn,z=H.animateOut,C=H.animateDelay,W=H.animateNormal}var M,q,F=\"horizontal\"===H.axis,T=O.createElement(\"div\"),j=O.createElement(\"div\"),V=H.container,E=V.parentNode,A=V.outerHTML,G=V.children,Q=G.length,X=rn(),Y=!1;k&&En(),I&&(V.className+=\" tns-vpfix\");var N,L,B,S,K,J,U,_,Z,$=H.autoWidth,tt=sn(\"fixedWidth\"),et=sn(\"edgePadding\"),nt=sn(\"gutter\"),it=un(),at=sn(\"center\"),rt=$?1:Math.floor(sn(\"items\")),ot=sn(\"slideBy\"),ut=H.viewportMax||H.fixedWidthViewportWidth,lt=sn(\"arrowKeys\"),st=sn(\"speed\"),ct=H.rewind,ft=!ct&&H.loop,dt=sn(\"autoHeight\"),vt=sn(\"controls\"),pt=sn(\"controlsText\"),ht=sn(\"nav\"),mt=sn(\"touch\"),yt=sn(\"mouseDrag\"),gt=sn(\"autoplay\"),xt=sn(\"autoplayTimeout\"),bt=sn(\"autoplayText\"),wt=sn(\"autoplayHoverPause\"),Ct=sn(\"autoplayResetOnVisibility\"),Mt=(U=null,_=sn(\"nonce\"),Z=document.createElement(\"style\"),U&&Z.setAttribute(\"media\",U),_&&Z.setAttribute(\"nonce\",_),document.querySelector(\"head\").appendChild(Z),Z.sheet?Z.sheet:Z.styleSheet),Tt=H.lazyload,Et=H.lazyloadSelector,At=[],Nt=ft?(K=function(){{if($||tt&&!ut)return Q-1;var t=tt?\"fixedWidth\":\"items\",e=[];if((tt||H[t]<Q)&&e.push(H[t]),k)for(var n in k){var i=k[n][t];i&&(tt||i<Q)&&e.push(i)}return e.length||e.push(0),Math.ceil(tt?ut/Math.min.apply(null,e):Math.max.apply(null,e))}}(),J=I?Math.ceil((5*K-Q)/2):4*K-Q,J=Math.max(K,J),ln(\"edgePadding\")?J+1:J):0,Lt=I?Q+2*Nt:Q+Nt,Bt=!(!tt&&!$||ft),St=tt?_n():null,Ht=!I||!ft,Ot=F?\"left\":\"top\",Dt=\"\",kt=\"\",Rt=tt?function(){return at&&!ft?Q-1:Math.ceil(-St/(tt+nt))}:$?function(){for(var t=0;t<Lt;t++)if(N[t]>=-St)return t}:function(){return at&&I&&!ft?Q-1:ft||I?Math.max(0,Lt-Math.ceil(rt)):Lt-1},It=en(sn(\"startIndex\")),Pt=It,zt=(tn(),0),Wt=$?null:Rt(),qt=H.preventActionWhenRunning,Ft=H.swipeAngle,jt=!Ft||\"?\",Vt=!1,Gt=H.onInit,Qt=new Zi,Xt=\" tns-sli
150der tns-\"+H.mode,Yt=V.id||(S=window.tnsId,window.tnsId=S?S+1:1,\"tns\"+window.tnsId),Kt=sn(\"disable\"),Jt=!1,Ut=H.freezable,_t=!(!Ut||$)&&Tn(),Zt=!1,$t={click:oi,keydown:function(t){t=pi(t);var e=[a.LEFT,a.RIGHT].indexOf(t.keyCode);0<=e&&(0===e?we.disabled||oi(t,-1):Ce.disabled||oi(t,1))}},te={click:function(t){if(Vt){if(qt)return;ai()}var e=hi(t=pi(t));for(;e!==Ae&&!qi(e,\"data-nav\");)e=e.parentNode;if(qi(e,\"data-nav\")){var n=Se=Number(Fi(e,\"data-nav\")),i=tt||$?n*Q/Le:n*rt,a=le?n:Math.min(Math.ceil(i),Q-1);ri(a,t),He===n&&(Pe&&fi(),Se=-1)}},keydown:function(t){t=pi(t);var e=O.activeElement;if(!qi(e,\"data-nav\"))return;var n=[a.LEFT,a.RIGHT,a.ENTER,a.SPACE].indexOf(t.keyCode),i=Number(Fi(e,\"data-nav\"));0<=n&&(0===n?0<i&&vi(Ee[i-1]):1===n?i<Le-1&&vi(Ee[i+1]):ri(Se=i,t))}},ee={mouseover:function(){Pe&&(li(),ze=!0)},mouseout:function(){ze&&(ui(),ze=!1)}},ne={visibilitychange:function(){O.hidden?Pe&&(li(),qe=!0):qe&&(ui(),qe=!1)}},ie={keydown:function(t){t=pi(t);var e=[a.LEFT,a.RIGHT].indexOf(t.keyCode);0<=e&&oi(t,0===e?-1:1)}},ae={touchstart:xi,touchmove:bi,touchend:wi,touchcancel:wi},re={mousedown:xi,mousemove:bi,mouseup:wi,mouseleave:wi},oe=ln(\"controls\"),ue=ln(\"nav\"),le=!!$||H.navAsThumbnails,se=ln(\"autoplay\"),ce=ln(\"touch\"),fe=ln(\"mouseDrag\"),de=\"tns-slide-active\",ve=\"tns-slide-cloned\",pe=\"tns-complete\",he={load:function(t){kn(hi(t))},error:function(t){e=hi(t),zi(e,\"failed\"),Rn(e);var e}},me=\"force\"===H.preventScrollOnTouch;if(oe)var ye,ge,xe=H.controlsContainer,be=H.controlsContainer?H.controlsContainer.outerHTML:\"\",we=H.prevButton,Ce=H.nextButton,Me=H.prevButton?H.prevButton.outerHTML:\"\",Te=H.nextButton?H.nextButton.outerHTML:\"\";if(ue)var Ee,Ae=H.navContainer,Ne=H.navContainer?H.navContainer.outerHTML:\"\",Le=$?Q:Mi(),Be=0,Se=-1,He=an(),Oe=He,De=\"tns-nav-active\",ke=\"Carousel Page \",Re=\" (Current Slide)\";if(se)var Ie,Pe,ze,We,qe,Fe=\"forward\"===H.autoplayDirection?1:-1,je=H.autoplayButton,Ve=H.autoplayButton?H.autoplayButton.outerHTML:\"\",Ge=[\"<span class='tns-visually-hidden'>\",\" animation</span>\"];if(ce||fe)var Qe,Xe,Ye={},Ke={},Je=!1,Ue=F?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y};$||$e(Kt||_t),r&&(Ot=r,Dt=\"translate\",o?(Dt+=F?\"3d(\":\"3d(0px, \",kt=F?\", 0px, 0px)\":\", 0px)\"):(Dt+=F?\"X(\":\"Y(\",kt=\")\")),I&&(V.className=V.className.replace(\"tns-vpfix\",\"\")),function(){ln(\"gutter\");T.className=\"tns-outer\",j.className=\"tns-inner\",T.id=Yt+\"-ow\",j.id=Yt+\"-iw\",\"\"===V.id&&(V.id=Yt);Xt+=g||$?\" tns-subpixel\":\" tns-no-subpixel\",Xt+=y?\" tns-calc\":\" tns-no-calc\",$&&(Xt+=\" tns-autowidth\");Xt+=\" tns-\"+H.axis,V.className+=Xt,I?((M=O.createElement(\"div\")).id=Yt+\"-mw\",M.className=\"tns-ovh\",T.appendChild(M),M.appendChild(j)):T.appendChild(j);if(dt){var t=M||j;t.className+=\" tns-ah\"}if(E.insertBefore(T,V),j.appendChild(V),Ii(G,function(t,e){zi(t,\"tns-item\"),t.id||(t.id=Yt+\"-item\"+e),!I&&W&&zi(t,W),ji(t,{\"aria-hidden\":\"true\",tabindex:\"-1\"})}),Nt){for(var e=O.createDocumentFragment(),n=O.createDocumentFragment(),i=Nt;i--;){var a=i%Q,r=G[a].cloneNode(!0);if(zi(r,ve),Vi(r,\"id\"),n.insertBefore(r,n.firstChild),I){var o=G[Q-1-a].cloneNode(!0);zi(o,ve),Vi(o,\"id\"),e.appendChild(o)}}V.insertBefore(e,V.firstChild),V.appendChild(n),G=V.children}}(),function(){if(!I)for(var t=It,e=It+Math.min(Q,rt);t<e;t++){var n=G[t];n.style.left=100*(t-It)/rt+\"%\",zi(n,P),Wi(n,W)}F&&(g||$?(ki(Mt,\"#\"+Yt+\" > .tns-item\",\"font-size:\"+m.getComputedStyle(G[0]).fontSize+\";\",Ri(Mt)),ki(Mt,\"#\"+Yt,\"font-size:0;\",Ri(Mt))):I&&Ii(G,function(t,e){var n;t.style.marginLeft=(n=e,y?y+\"(\"+100*n+\"% / \"+Lt+\")\":100*n/Lt+\"%\")}));if(D){if(x){var i=M&&H.autoHeight?hn(H.speed):\"\";ki(Mt,\"#\"+Yt+\"-mw\",i,Ri(Mt))}i=cn(H.edgePadding,H.gutter,H.fixedWidth,H.speed,H.autoHeight),ki(Mt,\"#\"+Yt+\"-iw\",i,Ri(Mt)),I&&(i=F&&!$?\"width:\"+fn(H.fixedWidth,H.gutter,H.items)+\";\":\"\",x&&(i+=hn(st)),ki(Mt,\"#\"+Yt,i,Ri(Mt))),i=F&&!$?dn(H.fixedWidth,H.gutter,H.items):\"\",H.gutter&&(i+=vn(H.gutter)),I||(x&&(i+=hn(st)),b&&(i+=mn(st))),i&&ki(Mt,\"#\"+Yt+\" > .tns-item\",i,Ri(Mt))}else{I&&dt&&(M.style[x]=st/1e3+\"s\"),j.style.cssText=cn(et,nt,tt,dt),I&&F&&!$&&(V.style.width=fn(tt,nt,rt));var i=F&&!$?dn(tt,nt,rt):\"\";nt&&(i+=vn(nt)),i&&ki(Mt,\"#\"+Yt+\" > .tns-item\",i,Ri(Mt))}if(k&&D)for(var a in k){a=parseInt(a);var r=k[a],i=\"\",o=\"\",u=\"\",l=\"\",s=\"\",c=$?null:sn(\"items\",a),f=sn(\"fixedWidth\",a),d=sn(\"speed\",a),v=sn(\"edgePadding\",a),p=sn(\"autoHeight\",a),h=sn(\"gutter\",a);x&&M&&sn(\"autoHeight\",a)&&\"speed\"in r&&(o=\"#\"+Yt+\"-mw{\"+hn(d)+\"}\"),(\"edgePadding\"in r||\"gutter\"in r)&&(u=\"#\"+Yt+\"-iw{\"+cn(v,h,f,d,p)+\"}\"),I&&F&&!$&&(\"fixedWidth\"in r||\"items\"in r||tt&&\"gutter\"in r)&&(l=\"width:\"+fn(f,h,c)+\";\"),x&&\"speed\"in r&&(l+=hn(d)),l&&(l=\"#\"+Yt+\"{\"+l+\"}
150\"),(\"fixedWidth\"in r||tt&&\"gutter\"in r||!I&&\"items\"in r)&&(s+=dn(f,h,c)),\"gutter\"in r&&(s+=vn(h)),!I&&\"speed\"in r&&(x&&(s+=hn(d)),b&&(s+=mn(d))),s&&(s=\"#\"+Yt+\" > .tns-item{\"+s+\"}\"),(i=o+u+l+s)&&Mt.insertRule(\"@media (min-width: \"+a/16+\"em) {\"+i+\"}\",Mt.cssRules.length)}}(),yn();var _e=ft?I?function(){var t=zt,e=Wt;t+=ot,e-=ot,et?(t+=1,e-=1):tt&&(it+nt)%(tt+nt)&&(e-=1),Nt&&(e<It?It-=Q:It<t&&(It+=Q))}:function(){if(Wt<It)for(;zt+Q<=It;)It-=Q;else if(It<zt)for(;It<=Wt-Q;)It+=Q}:function(){It=Math.max(zt,Math.min(Wt,It))},Ze=I?function(){var e,n,i,a,t,r,o,u,l,s,c;Jn(V,\"\"),x||!st?(ti(),st&&Yi(V)||ai()):(e=V,n=Ot,i=Dt,a=kt,t=Zn(),r=st,o=ai,u=Math.min(r,10),l=0<=t.indexOf(\"%\")?\"%\":\"px\",t=t.replace(l,\"\"),s=Number(e.style[n].replace(i,\"\").replace(a,\"\").replace(l,\"\")),c=(t-s)/r*u,setTimeout(function t(){r-=u,s+=c,e.style[n]=i+s+l+a,0<r?setTimeout(t,u):o()},u)),F||Ci()}:function(){At=[];var t={};t[s]=t[c]=ai,_i(G[Pt],t),Ui(G[It],t),ei(Pt,P,z,!0),ei(It,W,P),s&&c&&st&&Yi(V)||ai()};return{version:\"2.9.3\",getInfo:Ei,events:Qt,goTo:ri,play:function(){gt&&!Pe&&(ci(),We=!1)},pause:function(){Pe&&(fi(),We=!0)},isOn:Y,updateSliderHeight:Fn,refresh:yn,destroy:function(){if(Mt.disabled=!0,Mt.ownerNode&&Mt.ownerNode.remove(),_i(m,{resize:Cn}),lt&&_i(O,ie),xe&&_i(xe,$t),Ae&&_i(Ae,te),_i(V,ee),_i(V,ne),je&&_i(je,{click:di}),gt&&clearInterval(Ie),I&&s){var t={};t[s]=ai,_i(V,t)}mt&&_i(V,ae),yt&&_i(V,re);var r=[A,be,Me,Te,Ne,Ve];for(var e in d.forEach(function(t,e){var n=\"container\"===t?T:H[t];if(\"object\"==typeof n&&n){var i=!!n.previousElementSibling&&n.previousElementSibling,a=n.parentNode;n.outerHTML=r[e],H[t]=i?i.nextElementSibling:a.firstElementChild}}),d=P=z=C=W=F=T=j=V=E=A=G=Q=q=X=$=tt=et=nt=it=rt=ot=ut=lt=st=ct=ft=dt=Mt=Tt=N=At=Nt=Lt=Bt=St=Ht=Ot=Dt=kt=Rt=It=Pt=zt=Wt=Ft=jt=Vt=Gt=Qt=Xt=Yt=Kt=Jt=Ut=_t=Zt=$t=te=ee=ne=ie=ae=re=oe=ue=le=se=ce=fe=de=pe=he=L=vt=pt=xe=be=we=Ce=ye=ge=ht=Ae=Ne=Ee=Le=Be=Se=He=Oe=De=ke=Re=gt=xt=Fe=bt=wt=je=Ve=Ct=Ge=Ie=Pe=ze=We=qe=Ye=Ke=Qe=Je=Xe=Ue=mt=yt=null,this)\"rebuild\"!==e&&(this[e]=null);Y=!1},rebuild:function(){return $i(Li(H,v))}}}function $e(t){t&&(vt=ht=mt=yt=lt=gt=wt=Ct=!1)}function tn(){for(var t=I?It-Nt:It;t<0;)t+=Q;return t%Q+1}function en(t){return t=t?Math.max(0,Math.min(ft?Q-1:Q-rt,t)):0,I?t+Nt:t}function nn(t){for(null==t&&(t=It),I&&(t-=Nt);t<0;)t+=Q;return Math.floor(t%Q)}function an(){var t,e=nn();return t=le?e:tt||$?Math.ceil((e+1)*Le/Q-1):Math.floor(e/rt),!ft&&I&&It===Wt&&(t=Le-1),t}function rn(){return m.innerWidth||O.documentElement.clientWidth||O.body.clientWidth}function on(t){return\"top\"===t?\"afterbegin\":\"beforeend\"}function un(){var t=et?2*et-nt:0;return function t(e){if(null!=e){var n,i,a=O.createElement(\"div\");return e.appendChild(a),i=(n=a.getBoundingClientRect()).right-n.left,a.remove(),i||t(e.parentNode)}}(E)-t}function ln(t){if(H[t])return!0;if(k)for(var e in k)if(k[e][t])return!0;return!1}function sn(t,e){if(null==e&&(e=X),\"items\"===t&&tt)return Math.floor((it+nt)/(tt+nt))||1;var n=H[t];if(k)for(var i in k)e>=parseInt(i)&&t in k[i]&&(n=k[i][t]);return\"slideBy\"===t&&\"page\"===n&&(n=sn(\"items\")),I||\"slideBy\"!==t&&\"items\"!==t||(n=Math.floor(n)),n}function cn(t,e,n,i,a){var r=\"\";if(void 0!==t){var o=t;e&&(o-=e),r=F?\"margin: 0 \"+o+\"px 0 \"+t+\"px;\":\"margin: \"+t+\"px 0 \"+o+\"px 0;\"}else if(e&&!n){var u=\"-\"+e+\"px\";r=\"margin: 0 \"+(F?u+\" 0 0\":\"0 \"+u+\" 0\")+\";\"}return!I&&a&&x&&i&&(r+=hn(i)),r}function fn(t,e,n){return t?(t+e)*Lt+\"px\":y?y+\"(\"+100*Lt+\"% / \"+n+\")\":100*Lt/n+\"%\"}function dn(t,e,n){var i;if(t)i=t+e+\"px\";else{I||(n=Math.floor(n));var a=I?Lt:n;i=y?y+\"(100% / \"+a+\")\":100/a+\"%\"}return i=\"width:\"+i,\"inner\"!==R?i+\";\":i+\" !important;\"}function vn(t){var e=\"\";!1!==t&&(e=(F?\"padding-\":\"margin-\")+(F?\"right\":\"bottom\")+\": \"+t+\"px;\");return e}function pn(t,e){var n=t.substring(0,t.length-e).toLowerCase();return n&&(n=\"-\"+n+\"-\"),n}function hn(t){return pn(x,18)+\"transition-duration:\"+t/1e3+\"s;\"}function mn(t){return pn(b,17)+\"animation-duration:\"+t/1e3+\"s;\"}function yn(){if(ln(\"autoHeight\")||$||!F){var t=V.querySelectorAll(\"img\");Ii(t,function(t){var e=t.src;Tt||(e&&e.indexOf(\"data:image\")<0?(t.src=\"\",Ui(t,he),zi(t,\"loading\"),t.src=e):kn(t))}),Ai(function(){zn(Gi(t),function(){L=!0})}),ln(\"autoHeight\")&&(t=In(It,Math.min(It+rt-1,Lt-1))),Tt?gn():Ai(function(){zn(Gi(t),gn)})}else I&&$n(),bn(),wn()}function gn(){if($&&1<Q){var i=ft?It:Q-1;!function t(){var e=G[i].getBoundingClientRect().left,n=G[i-1].getBoundingClientRect().right;Math.abs(e-n)<=1?xn():setTimeout(function(){t()},16)}()}else xn()}function xn(){F&&!$||(jn(),$?(St=_n(),Ut&&(_t=Tn()),Wt=Rt(),$e(Kt||_t)):Ci()),I&&$n(),bn(),wn()}function bn(){if(Vn(),T.insertAdjacentHTML(\"afterbegin\",'<div class=\"tns-liveregion tns-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">slide <span class=\"current\">
150'+Hn()+\"</span> of \"+Q+\"</div>\"),B=T.querySelector(\".tns-liveregion .current\"),se){var t=gt?\"stop\":\"start\";je?ji(je,{\"data-action\":t}):H.autoplayButtonOutput&&(T.insertAdjacentHTML(on(H.autoplayPosition),'<button type=\"button\" data-action=\"'+t+'\">'+Ge[0]+t+Ge[1]+bt[0]+\"</button>\"),je=T.querySelector(\"[data-action]\")),je&&Ui(je,{click:di}),gt&&(ci(),wt&&Ui(V,ee),Ct&&Ui(V,ne))}if(ue){if(Ae)ji(Ae,{\"aria-label\":\"Carousel Pagination\"}),Ii(Ee=Ae.children,function(t,e){ji(t,{\"data-nav\":e,tabindex:\"-1\",\"aria-label\":ke+(e+1),\"aria-controls\":Yt})});else{for(var e=\"\",n=le?\"\":'style=\"display:none\"',i=0;i<Q;i++)e+='<button type=\"button\" data-nav=\"'+i+'\" tabindex=\"-1\" aria-controls=\"'+Yt+'\" '+n+' aria-label=\"'+ke+(i+1)+'\"></button>';e='<div class=\"tns-nav\" aria-label=\"Carousel Pagination\">'+e+\"</div>\",T.insertAdjacentHTML(on(H.navPosition),e),Ae=T.querySelector(\".tns-nav\"),Ee=Ae.children}if(Ti(),x){var a=x.substring(0,x.length-18).toLowerCase(),r=\"transition: all \"+st/1e3+\"s\";a&&(r=\"-\"+a+\"-\"+r),ki(Mt,\"[aria-controls^=\"+Yt+\"-item]\",r,Ri(Mt))}ji(Ee[He],{\"aria-label\":ke+(He+1)+Re}),Vi(Ee[He],\"tabindex\"),zi(Ee[He],De),Ui(Ae,te)}oe&&(xe||we&&Ce||(T.insertAdjacentHTML(on(H.controlsPosition),'<div class=\"tns-controls\" aria-label=\"Carousel Navigation\" tabindex=\"0\"><button type=\"button\" data-controls=\"prev\" tabindex=\"-1\" aria-controls=\"'+Yt+'\">'+pt[0]+'</button><button type=\"button\" data-controls=\"next\" tabindex=\"-1\" aria-controls=\"'+Yt+'\">'+pt[1]+\"</button></div>\"),xe=T.querySelector(\".tns-controls\")),we&&Ce||(we=xe.children[0],Ce=xe.children[1]),H.controlsContainer&&ji(xe,{\"aria-label\":\"Carousel Navigation\",tabindex:\"0\"}),(H.controlsContainer||H.prevButton&&H.nextButton)&&ji([we,Ce],{\"aria-controls\":Yt,tabindex:\"-1\"}),(H.controlsContainer||H.prevButton&&H.nextButton)&&(ji(we,{\"data-controls\":\"prev\"}),ji(Ce,{\"data-controls\":\"next\"})),ye=Qn(we),ge=Qn(Ce),Kn(),xe?Ui(xe,$t):(Ui(we,$t),Ui(Ce,$t))),An()}function wn(){if(I&&s){var t={};t[s]=ai,Ui(V,t)}mt&&Ui(V,ae,H.preventScrollOnTouch),yt&&Ui(V,re),lt&&Ui(O,ie),\"inner\"===R?Qt.on(\"outerResized\",function(){Mn(),Qt.emit(\"innerLoaded\",Ei())}):(k||tt||$||dt||!F)&&Ui(m,{resize:Cn}),dt&&(\"outer\"===R?Qt.on(\"innerLoaded\",Pn):Kt||Pn()),Dn(),Kt?Bn():_t&&Ln(),Qt.on(\"indexChanged\",Wn),\"inner\"===R&&Qt.emit(\"innerLoaded\",Ei()),\"function\"==typeof Gt&&Gt(Ei()),Y=!0}function Cn(t){Ai(function(){Mn(pi(t))})}function Mn(t){if(Y){\"outer\"===R&&Qt.emit(\"outerResized\",Ei(t)),X=rn();var e,n=q,i=!1;k&&(En(),(e=n!==q)&&Qt.emit(\"newBreakpointStart\",Ei(t)));var a,r,o,u,l=rt,s=Kt,c=_t,f=lt,d=vt,v=ht,p=mt,h=yt,m=gt,y=wt,g=Ct,x=It;if(e){var b=tt,w=dt,C=pt,M=at,T=bt;if(!D)var E=nt,A=et}if(lt=sn(\"arrowKeys\"),vt=sn(\"controls\"),ht=sn(\"nav\"),mt=sn(\"touch\"),at=sn(\"center\"),yt=sn(\"mouseDrag\"),gt=sn(\"autoplay\"),wt=sn(\"autoplayHoverPause\"),Ct=sn(\"autoplayResetOnVisibility\"),e&&(Kt=sn(\"disable\"),tt=sn(\"fixedWidth\"),st=sn(\"speed\"),dt=sn(\"autoHeight\"),pt=sn(\"controlsText\"),bt=sn(\"autoplayText\"),xt=sn(\"autoplayTimeout\"),D||(et=sn(\"edgePadding\"),nt=sn(\"gutter\"))),$e(Kt),it=un(),F&&!$||Kt||(jn(),F||(Ci(),i=!0)),(tt||$)&&(St=_n(),Wt=Rt()),(e||tt)&&(rt=sn(\"items\"),ot=sn(\"slideBy\"),(r=rt!==l)&&(tt||$||(Wt=Rt()),_e())),e&&Kt!==s&&(Kt?Bn():function(){if(!Jt)return;if(Mt.disabled=!1,V.className+=Xt,$n(),ft)for(var t=Nt;t--;)I&&Xi(G[t]),Xi(G[Lt-t-1]);if(!I)for(var e=It,n=It+Q;e<n;e++){var i=G[e],a=e<It+rt?P:W;i.style.left=100*(e-It)/rt+\"%\",zi(i,a)}Nn(),Jt=!1}()),Ut&&(e||tt||$)&&(_t=Tn())!==c&&(_t?(ti(Zn(en(0))),Ln()):(!function(){if(!Zt)return;et&&D&&(j.style.margin=\"\");if(Nt)for(var t=\"tns-transparent\",e=Nt;e--;)I&&Wi(G[e],t),Wi(G[Lt-e-1],t);Nn(),Zt=!1}(),i=!0)),$e(Kt||_t),gt||(wt=Ct=!1),lt!==f&&(lt?Ui(O,ie):_i(O,ie)),vt!==d&&(vt?xe?Xi(xe):(we&&Xi(we),Ce&&Xi(Ce)):xe?Qi(xe):(we&&Qi(we),Ce&&Qi(Ce))),ht!==v&&(ht?(Xi(Ae),Ti()):Qi(Ae)),mt!==p&&
vendor: 5,503 bytes, line 150
150(mt?Ui(V,ae,H.preventScrollOnTouch):_i(V,ae)),yt!==h&&(yt?Ui(V,re):_i(V,re)),gt!==m&&(gt?(je&&Xi(je),Pe||We||ci()):(je&&Qi(je),Pe&&fi())),wt!==y&&(wt?Ui(V,ee):_i(V,ee)),Ct!==g&&(Ct?Ui(O,ne):_i(O,ne)),e){if(tt===b&&at===M||(i=!0),dt!==w&&(dt||(j.style.height=\"\")),vt&&pt!==C&&(we.innerHTML=pt[0],Ce.innerHTML=pt[1]),je&&bt!==T){var N=gt?1:0,L=je.innerHTML,B=L.length-T[N].length;L.substring(B)===T[N]&&(je.innerHTML=L.substring(0,B)+bt[N])}}else at&&(tt||$)&&(i=!0);if((r||tt&&!$)&&(Le=Mi(),Ti()),(a=It!==x)?(Qt.emit(\"indexChanged\",Ei()),i=!0):r?a||Wn():(tt||$)&&(Dn(),Vn(),Sn()),r&&!I&&function(){for(var t=It+Math.min(Q,rt),e=Lt;e--;){var n=G[e];It<=e&&e<t?(zi(n,\"tns-moving\"),n.style.left=100*(e-It)/rt+\"%\",zi(n,P),Wi(n,W)):n.style.left&&(n.style.left=\"\",zi(n,W),Wi(n,P)),Wi(n,z)}setTimeout(function(){Ii(G,function(t){Wi(t,\"tns-moving\")})},300)}(),!Kt&&!_t){if(e&&!D&&(et===A&&nt===E||(j.style.cssText=cn(et,nt,tt,st,dt)),F)){I&&(V.style.width=fn(tt,nt,rt));var S=dn(tt,nt,rt)+vn(nt);u=Ri(o=Mt)-1,\"deleteRule\"in o?o.deleteRule(u):o.removeRule(u),ki(Mt,\"#\"+Yt+\" > .tns-item\",S,Ri(Mt))}dt&&Pn(),i&&($n(),Pt=It)}e&&Qt.emit(\"newBreakpointEnd\",Ei(t))}}function Tn(){if(!tt&&!$)return Q<=(at?rt-(rt-1)/2:rt);var t=tt?(tt+nt)*Q:N[Q],e=et?it+2*et:it+nt;return at&&(e-=tt?(it-tt)/2:(it-(N[It+1]-N[It]-nt))/2),t<=e}function En(){for(var t in q=0,k)(t=parseInt(t))<=X&&(q=t)}function An(){!gt&&je&&Qi(je),!ht&&Ae&&Qi(Ae),vt||(xe?Qi(xe):(we&&Qi(we),Ce&&Qi(Ce)))}function Nn(){gt&&je&&Xi(je),ht&&Ae&&Xi(Ae),vt&&(xe?Xi(xe):(we&&Xi(we),Ce&&Xi(Ce)))}function Ln(){if(!Zt){if(et&&(j.style.margin=\"0px\"),Nt)for(var t=\"tns-transparent\",e=Nt;e--;)I&&zi(G[e],t),zi(G[Lt-e-1],t);An(),Zt=!0}}function Bn(){if(!Jt){if(Mt.disabled=!0,V.className=V.className.replace(Xt.substring(1),\"\"),Vi(V,[\"style\"]),ft)for(var t=Nt;t--;)I&&Qi(G[t]),Qi(G[Lt-t-1]);if(F&&I||Vi(j,[\"style\"]),!I)for(var e=It,n=It+Q;e<n;e++){var i=G[e];Vi(i,[\"style\"]),Wi(i,P),Wi(i,W)}An(),Jt=!0}}function Sn(){var t=Hn();B.innerHTML!==t&&(B.innerHTML=t)}function Hn(){var t=On(),e=t[0]+1,n=t[1]+1;return e===n?e+\"\":e+\" to \"+n}function On(t){null==t&&(t=Zn());var n,i,a,r=It;if(at||et?($||tt)&&(i=-(parseFloat(t)+et),a=i+it+2*et):$&&(i=N[It],a=i+it),$)N.forEach(function(t,e){e<Lt&&((at||et)&&t<=i+.5&&(r=e),.5<=a-t&&(n=e))});else{if(tt){var e=tt+nt;at||et?(r=Math.floor(i/e),n=Math.ceil(a/e-1)):n=r+Math.ceil(it/e)-1}else if(at||et){var o=rt-1;if(at?(r-=o/2,n=It+o/2):n=It+o,et){var u=et*rt/it;r-=u,n+=u}r=Math.floor(r),n=Math.ceil(n)}else n=r+rt-1;r=Math.max(r,0),n=Math.min(n,Lt-1)}return[r,n]}function Dn(){if(Tt&&!Kt){var t=On();t.push(Et),In.apply(null,t).forEach(function(t){if(!Pi(t,pe)){var e={};e[s]=function(t){t.stopPropagation()},Ui(t,e),Ui(t,he),t.src=Fi(t,\"data-src\");var n=Fi(t,\"data-srcset\");n&&(t.srcset=n),zi(t,\"loading\")}})}}function kn(t){zi(t,\"loaded\"),Rn(t)}function Rn(t){zi(t,pe),Wi(t,\"loading\"),_i(t,he)}function In(t,e,n){var i=[];for(n||(n=\"img\");t<=e;)Ii(G[t].querySelectorAll(n),function(t){i.push(t)}),t++;return i}function Pn(){var t=In.apply(null,On());Ai(function(){zn(t,Fn)})}function zn(n,t){return L?t():(n.forEach(function(t,e){!Tt&&t.complete&&Rn(t),Pi(t,pe)&&n.splice(e,1)}),n.length?void Ai(function(){zn(n,t)}):t())}function Wn(){Dn(),Vn(),Sn(),Kn(),function(){if(ht&&(He=0<=Se?Se:an(),Se=-1,He!==Oe)){var t=Ee[Oe],e=Ee[He];ji(t,{tabindex:\"-1\",\"aria-label\":ke+(Oe+1)}),Wi(t,De),ji(e,{\"aria-label\":ke+(He+1)+Re}),Vi(e,\"tabindex\"),zi(e,De),Oe=He}}()}function qn(t,e){for(var n=[],i=t,a=Math.min(t+e,Lt);i<a;i++)n.push(G[i].offsetHeight);return Math.max.apply(null,n)}function Fn(){var t=dt?qn(It,rt):qn(Nt,Q),e=M||j;e.style.height!==t&&(e.style.height=t+\"px\")}function jn(){N=[0];var n=F?\"left\":\"top\",i=F?\"right\":\"bottom\",a=G[0].getBoundingClientRect()[n];Ii(G,function(t,e){e&&N.push(t.getBoundingClientRect()[n]-a),e===Lt-1&&N.push(t.getBoundingClientRect()[i]-a)})}function Vn(){var t=On(),n=t[0],i=t[1];Ii(G,function(t,e){n<=e&&e<=i?qi(t,\"aria-hidden\")&&(Vi(t,[\"aria-hidden\",\"tabindex\"]),zi(t,de)):qi(t,\"aria-hidden\")||(ji(t,{\"aria-hidden\":\"true\",tabindex:\"-1\"}),Wi(t,de))})}function Gn(t){return t.nodeName.toLowerCase()}function Qn(t){return\"button\"===Gn(t)}function Xn(t){return\"true\"===t.getAttribute(\"aria-disabled\")}function Yn(t,e,n){t?e.disabled=n:e.setAttribute(\"aria-disabled\",n.toString())}function Kn(){if(vt&&!ct&&!ft){var t=ye?we.disabled:Xn(we),e=ge?Ce.disabled:Xn(Ce),n=It<=zt,i=!ct&&Wt<=It;n&&!t&&Yn(ye,we,!0),!n&&t&&Yn(ye,we,!1),i&&!e&&Yn(ge,Ce,!0),!i&&e&&Yn(ge,Ce,!1)}}function Jn(t,e){x&&(t.style[x]=e)}function Un(t){return null==t&&(t=It),$?(it-(et?nt:0)-(N[t+1]-N[t]-nt))/2:tt?(it-tt)/2:(rt-1)/2}function _n(){var t=it+(et?nt:0)-(tt?(tt+nt)*Lt:N[Lt]);return at&&!ft&&(t=tt?-(tt+nt)*(Lt-1)-Un():Un(Lt-1)-N[Lt-1]),0<t&&(t=0),t}function Zn(t){var e;if(null==t&&(t=It),F&&!$)if(tt)e=-(tt+nt)*t,at&&(e+=Un());else{var n=r?Lt:rt;at&&(t-=Un()),e=100*-t/n}else e=-N[t],at&&$&&(e+=Un());return Bt&&(e=Math.max(e,St)),e+=!F||$||tt?\"px\":\"%\"}function $n(t){Jn(V,\"0s\"),ti(t)}function ti(t){null==t&&(t=Zn()),V.style[Ot]=Dt+t+kt}function ei(t,e,n,i){var a=t+rt;ft||(a=Math.min(a,Lt));for(var r=t;r<a;r++){var o=G[r];i||(o.style.left=100*(r-It)/rt+\"%\"),C&&u&&(o.style[u]=o.style[l]=C*(r-t)/1e3+\"s\"),Wi(o,e),zi(o,n),i&&At.push(o)}}function ni(t,e){Ht&&_e(),(It!==Pt||e)&&(Qt.emit(\"indexChanged\",Ei()),Qt.emit(\"transitionStart\",Ei()),dt&&Pn(),Pe&&t&&0<=[\"click\",\"keydown\"].indexOf(t.type)&&fi(),Vt=!0,Ze()
150)}function ii(t){return t.toLowerCase().replace(/-/g,\"\")}function ai(t){if(I||Vt){if(Qt.emit(\"transitionEnd\",Ei(t)),!I&&0<At.length)for(var e=0;e<At.length;e++){var n=At[e];n.style.left=\"\",l&&u&&(n.style[l]=\"\",n.style[u]=\"\"),Wi(n,z),zi(n,W)}if(!t||!I&&t.target.parentNode===V||t.target===V&&ii(t.propertyName)===ii(Ot)){if(!Ht){var i=It;_e(),It!==i&&(Qt.emit(\"indexChanged\",Ei()),$n())}\"inner\"===R&&Qt.emit(\"innerLoaded\",Ei()),Vt=!1,Pt=It}}}function ri(t,e){if(!_t)if(\"prev\"===t)oi(e,-1);else if(\"next\"===t)oi(e,1);else{if(Vt){if(qt)return;ai()}var n=nn(),i=0;if(\"first\"===t?i=-n:\"last\"===t?i=I?Q-rt-n:Q-1-n:(\"number\"!=typeof t&&(t=parseInt(t)),isNaN(t)||(e||(t=Math.max(0,Math.min(Q-1,t))),i=t-n)),!I&&i&&Math.abs(i)<rt){var a=0<i?1:-1;i+=zt<=It+i-Q?Q*a:2*Q*a*-1}It+=i,I&&ft&&(It<zt&&(It+=Q),Wt<It&&(It-=Q)),nn(It)!==nn(Pt)&&ni(e)}}function oi(t,e){if(Vt){if(qt)return;ai()}var n;if(!e){for(var i=hi(t=pi(t));i!==xe&&[we,Ce].indexOf(i)<0;)i=i.parentNode;var a=[we,Ce].indexOf(i);0<=a&&(n=!0,e=0===a?-1:1)}if(ct){if(It===zt&&-1===e)return void ri(\"last\",t);if(It===Wt&&1===e)return void ri(\"first\",t)}e&&(It+=ot*e,$&&(It=Math.floor(It)),ni(n||t&&\"keydown\"===t.type?t:null))}function ui(){Ie=setInterval(function(){oi(null,Fe)},xt),Pe=!0}function li(){clearInterval(Ie),Pe=!1}function si(t,e){ji(je,{\"data-action\":t}),je.innerHTML=Ge[0]+t+Ge[1]+e}function ci(){ui(),je&&si(\"stop\",bt[1])}function fi(){li(),je&&si(\"start\",bt[0])}function di(){Pe?(fi(),We=!0):(ci(),We=!1)}function vi(t){t.focus()}function pi(t){return mi(t=t||m.event)?t.changedTouches[0]:t}function hi(t){return t.target||m.event.srcElement}function mi(t){return 0<=t.type.indexOf(\"touch\")}function yi(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function gi(){return a=Ke.y-Ye.y,r=Ke.x-Ye.x,t=Math.atan2(a,r)*(180/Math.PI),e=Ft,n=!1,i=Math.abs(90-Math.abs(t)),90-e<=i?n=\"horizontal\":i<=e&&(n=\"vertical\"),n===H.axis;// removed by dead control flow\n{ var t, e, n, i, a, r; }}function xi(t){if(Vt){if(qt)return;ai()}gt&&Pe&&li(),Je=!0,Xe&&(Ni(Xe),Xe=null);var e=pi(t);Qt.emit(mi(t)?\"touchStart\":\"dragStart\",Ei(t)),!mi(t)&&0<=[\"img\",\"a\"].indexOf(Gn(hi(t)))&&yi(t),Ke.x=Ye.x=e.clientX,Ke.y=Ye.y=e.clientY,I&&(Qe=parseFloat(V.style[Ot].replace(Dt,\"\")),Jn(V,\"0s\"))}function bi(t){if(Je){var e=pi(t);Ke.x=e.clientX,Ke.y=e.clientY,I?Xe||(Xe=Ai(function(){!function t(e){if(!jt)return void(Je=!1);Ni(Xe);Je&&(Xe=Ai(function(){t(e)}));\"?\"===jt&&(jt=gi());if(jt){!me&&mi(e)&&(me=!0);try{e.type&&Qt.emit(mi(e)?\"touchMove\":\"dragMove\",Ei(e))}catch(t){}var n=Qe,i=Ue(Ke,Ye);if(!F||tt||$)n+=i,n+=\"px\";else{var a=r?i*rt*100/((it+nt)*Lt):100*i/(it+nt);n+=a,n+=\"%\"}V.style[Ot]=Dt+n+kt}}(t)})):(\"?\"===jt&&(jt=gi()),jt&&(me=!0)),(\"boolean\"!=typeof t.cancelable||t.cancelable)&&me&&t.preventDefault()}}function wi(i){if(Je){Xe&&(Ni(Xe),Xe=null),I&&Jn(V,\"\"),Je=!1;var t=pi(i);Ke.x=t.clientX,Ke.y=t.clientY;var a=Ue(Ke,Ye);if(Math.abs(a)){if(!mi(i)){var n=hi(i);Ui(n,{click:function t(e){yi(e),_i(n,{click:t})}})}I?Xe=Ai(function(){if(F&&!$){var t=-a*rt/(it+nt);t=0<a?Math.floor(t):Math.ceil(t),It+=t}else{var e=-(Qe+a);if(e<=0)It=zt;else if(e>=N[Lt-1])It=Wt;else for(var n=0;n<Lt&&e>=N[n];)e>N[It=n]&&a<0&&(It+=1),n++}ni(i,a),Qt.emit(mi(i)?\"touchEnd\":\"dragEnd\",Ei(i))}):jt&&oi(i,0<a?-1:1)}}\"auto\"===H.preventScrollOnTouch&&(me=!1),Ft&&(jt=\"?\"),gt&&!Pe&&ui()}function Ci(){(M||j).style.height=N[It+rt]-N[It]+\"px\"}function Mi(){var t=tt?(tt+nt)*Q/it:Q/rt;return Math.min(Math.ceil(t),Q)}function Ti(){if(ht&&!le&&Le!==Be){var t=Be,e=Le,n=Xi;for(Le<Be&&(t=Le,e=Be,n=Qi);t<e;)n(Ee[t]),t++;Be=Le}}function Ei(t){return{container:V,slideItems:G,navContainer:Ae,navItems:Ee,controlsContainer:xe,hasControls:oe,prevButton:we,nextButton:Ce,items:rt,slideBy:ot,cloneCount:Nt,slideCount:Q,slideCountNew:Lt,index:It,indexCached:Pt,displayIndex:tn(),navCurrentIndex:He,navCurrentIndexCached:Oe,pages:Le,pagesCached:Be,sheet:Mt,isOn:Y,event:t||{}}}f&&console.warn(\"No slides found in\",H.container)};return $i}();\n//# sourceMappingURL=../sourcemaps/tiny-slider.js.map\n\nconst vendorFunctions = () => {\n\n\n\n}\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/vendor.js?\n}"); 151 152/***/ }), 153
154/***/ "./src/scripts/components/youtube.js": 155/*!*******************************************!*\ 156 !*** ./src/scripts/components/youtube.js ***! 157 \*******************************************/ 158/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 159 160"use strict"; 161eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ setupCreditsButton: () => (/* binding */ setupCreditsButton),\n/* harmony export */ setupYoutubeVideos: () => (/* binding */ setupYoutubeVideos)\n/* harmony export */ });\nconst setupYoutubeVideos = () => {\n\t// Inject YouTube API script\n\tvar tag = document.createElement('script');\n\ttag.src = \"//www.youtube.com/player_api\";\n\tvar firstScriptTag = document.getElementsByTagName('script')[0];\n\tfirstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n\n\t// make player array\n\tvar players = new Array(),\n\t\tcounter = 2;\n\n\tconst onYouTubePlayerAPIReady = () => {\n\t\tfor (let i = 0; i < counter;
161 i++) {\n\t\t\tplayers[i] = new YT.Player('video' + i, {\n\t\t\t\tevents: {\n\t\t\t\t\t'onReady': onPlayerReady\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tconst onPlayerReady = (event) => {\n\t}\n}\n\nconst onCreditsButtonClick = () => {\n\tconst creditsButton = document.querySelector('#creditsButton');\n\tif (creditsButton) {\n\t\tif (document.body.className.indexOf('info-is-hidden') > -1) {\n\t\t\tcreditsButton.innerHTML = 'Hide Info';\n\t\t\tdocument.body.classList.remove('info-is-hidden');\n\t\t} else {\n\t\t\tcreditsButton.innerHTML = 'Show Info';\n\t\t\tdocument.body.classList.add('info-is-hidden');\n\t\t}\n\t}\n}\n\nconst setupCreditsButton = () => {\n\tconst creditsButton = document.querySelector('#creditsButton');\n\tif (creditsButton) {\n\t\tcreditsButton.removeEventListener('click',onCreditsButtonClick);\n\t\tcreditsButton.addEventListener('click',onCreditsButtonClick);\n\t}\n}\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/components/youtube.js?\n}"); 162 163/***/ }), 164
165/***/ "./src/scripts/main.js": 166/*!*****************************!*\ 167 !*** ./src/scripts/main.js ***! 168 \*****************************/ 169/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 170 171"use strict"; 172eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ autorun: () => (/* binding */ autorun)\n/* harmony export */ });\n/* harmony import */ var _components_vendor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/vendor.js */ \"./src/scripts/components/vendor.js\");\n/* harmony import */ var _components_ajax_functionality_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/ajax-functionality.js */ \"./src/scripts/components/ajax-functionality.js\");\n/* harmony import */ var _components_global_vars_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/global-vars.js */ \"./src/scripts/components/global-vars.js\");\n/* harmony import */ var _components_misc_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/misc.js */ \"./src/scripts/components/misc.js\");\n/* harmony import */ var _components_lazyloading_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/lazyloading.js */ \"./src/scripts/components/lazyloading.js\");\n/* harmony import */ var _components_touchstart_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/touchstart.js */ \"./src/scripts/components/touchstart.js\");\n/* harmony import */ var _components_youtube_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/youtube.js */ \"./src/scripts/components/youtube.js\");\n/* harmony import */ var _components_carousels_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/carousels.js */ \"./src/scripts/components/carousels.js\");\n/* harmony import */ var _components_menu_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/menu.js */ \"./src/scripts/components/menu.js\");\n/* harmony import */ var _components_news_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/news.js */ \"./src/scripts/components/news.js\");\n/* harmony import */ var _components_nightMode_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/nightMode.js */ \"./src/scripts/components/nightMode.js\");\n/* harmony import */ var _components_popups_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/popups.js */ \"./src/scripts/components/popups.js\");\n/* harmony import */ var _components_search_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/search.js */ \"./src/scripts/components/search.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst autorun = () => {\n (0,_components_vendor_js__WEBPACK_IMPORTED_MODULE_0__.vendorFunctions)();\n (0,_components_global_vars_js__WEBPACK_IMPORTED_MODULE_2__.createGlobalVariables)();\n (0,_components_nightMode_js__WEBPACK_IMPORTED_MODULE_10__.setupNightMode)();\n (0,_components_carousels_js__WEBPACK_IMPORTED_MODULE_7__.setupCarousels)();\n (0,_components_menu_js__WEBPACK_IMPORTED_MODULE_8__.setupMenu)();\n (0,_components_news_js__WEBPACK_IMPORTED_MODULE_9__.setupMarquee)();\n (0,_components_misc_js__WEBPACK_IMPORTED_MODULE_3__.setupBackToTopButton)();\n (0,_components_popups_js__WEBPACK_IMPORTED_MODULE_11__.setupResdiaryPopup)();\n (0,_components_popups_js__WEBPACK_IMPORTED_MODULE_11__.setupSharePopup)();\n (0,_components_search_js__WEBPACK_IMPORTED_MODULE_12__.setupSearchListener)();\n\n if (window.isSafari == true) {\n document.body.classList.add(\"is-safari\");\n }\n\n const homeUrlElement = document.querySelector(\"#homeUrl\");\n if (homeUrlElement) {\n window.homeUrl = homeUrlElement.innerHTML;\n }\n const templateDirectoryUriElement = document.querySelector(\n \"#templateDirectoryUri\",\n );\n if (templateDirectoryUriElement) {\n window.templateDirectoryUri = templateDirectoryUriElement.innerHTML;\n }\n\n // setupAjaxEventListeners();\n (0,_components_ajax_functionality_js__WEBPACK_IMPORTED_MODULE_1__.setupAjaxSpoof)();\n (0,_components_ajax_functionality_js__WEBPACK_IMPORTED_MODULE_1__.setupAjaxEventLinks)();\n (0,_components_ajax_functionality_js__WEBPACK_IMPORTED_MODULE_1__.setupAjaxEventCloseLink)();\n (0,_components_ajax_functionality_js__WEBPACK_IMPORTED_MODULE_1__.setupAjaxPopState)();\n\n (0,_components_lazyloading_js__WEBPACK_IMPORTED_MODULE_4__.lazyloadImages)();\n (0,_components_lazyloading_js__WEBPACK_IMPORTED_MODULE_4__.lazyloadBackgroun
172ds)();\n\n // onResize();\n (0,_components_misc_js__WEBPACK_IMPORTED_MODULE_3__.monthNameSize)();\n\n const contentElement = document.querySelector(\n \".landing-page__container-fluid\",\n );\n if (contentElement) {\n contentElement.removeEventListener(\"scroll\", _components_misc_js__WEBPACK_IMPORTED_MODULE_3__.onHomepageScroll);\n contentElement.addEventListener(\"scroll\", _components_misc_js__WEBPACK_IMPORTED_MODULE_3__.onHomepageScroll);\n }\n window.removeEventListener(\"resize\", _components_misc_js__WEBPACK_IMPORTED_MODULE_3__.onHomepageScroll);\n window.addEventListener(\"resize\", _components_misc_js__WEBPACK_IMPORTED_MODULE_3__.onHomepageScroll);\n window.removeEventListener(\"resize\", _components_misc_js__WEBPACK_IMPORTED_MODULE_3__.monthNameSize);\n window.addEventListener(\"resize\", _components_misc_js__WEBPACK_IMPORTED_MODULE_3__.monthNameSize);\n window.removeEventListener(\"scroll\", _components_misc_js__WEBPACK_IMPORTED_MODULE_3__.monthNameSize);\n window.addEventListener(\"scroll\", _components_misc_js__WEBPACK_IMPORTED_MODULE_3__.monthNameSize);\n};\n\nconst onDocumentReady = () => {\n (0,_components_misc_js__WEBPACK_IMPORTED_MODULE_3__.onHomepageScroll)();\n};\n\nconst onLoad = () => {\n document.body.classList.add(\"loaded\");\n};\n\nwindow.addEventListener(\"DOMContentLoaded\", onDocumentReady);\nwindow.addEventListener(\"DOMContentLoaded\", autorun);\nwindow.addEventListener(\"load\", onLoad);\nwindow.addEventListener(\"touchstart\", _components_touchstart_js__WEBPACK_IMPORTED_MODULE_5__.onTouchStart);\n// window.addEventListener(\"resize\", onResize);\n\n\n\n\n//# sourceURL=webpack://dalston-superstore-theme-2020/./src/scripts/main.js?\n}"); 173 174/***/ })
vendor: 3,021 bytes, lines 174-251
174 175 176/******/ }); 177/************************************************************************/ 178/******/ // The module cache 179/******/ var __webpack_module_cache__ = {}; 180/******/ 181/******/ // The require function 182/******/ function __webpack_require__(moduleId) { 183/******/ // Check if module is in cache 184/******/ var cachedModule = __webpack_module_cache__[moduleId]; 185/******/ if (cachedModule !== undefined) { 186/******/ return cachedModule.exports; 187/******/ } 188/******/ // Create a new module (and put it into the cache) 189/******/ var module = __webpack_module_cache__[moduleId] = { 190/******/ // no module.id needed 191/******/ // no module.loaded needed 192/******/ exports: {} 193/******/ }; 194/******/ 195/******/ // Execute the module function 196/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); 197/******/ 198/******/ // Return the exports of the module 199/******/ return module.exports; 200/******/ } 201/******/ 202/************************************************************************/ 203/******/ /* webpack/runtime/compat get default export */ 204/******/ (() => { 205/******/ // getDefaultExport function for compatibility with non-harmony modules 206/******/ __webpack_require__.n = (module) => { 207/******/ var getter = module && module.__esModule ? 208/******/ () => (module['default']) : 209/******/ () => (module); 210/******/ __webpack_require__.d(getter, { a: getter }); 211/******/ return getter; 212/******/ }; 213/******/ })(); 214/******/ 215/******/ /* webpack/runtime/define property getters */ 216/******/ (() => { 217/******/ // define getter functions for harmony exports 218/******/ __webpack_require__.d = (exports, definition) => { 219/******/ for(var key in definition) { 220/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 221/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 222/******/ } 223/******/ } 224/******/ }; 225/******/ })(); 226/******/ 227/******/ /* webpack/runtime/hasOwnProperty shorthand */ 228/******/ (() => { 229/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) 230/******/ })(); 231/******/ 232/******/ /* webpack/runtime/make namespace object */ 233/******/ (() => { 234/******/ // define __esModule on exports 235/******/ __webpack_require__.r = (exports) => { 236/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 237/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 238/******/ } 239/******/ Object.defineProperty(exports, '__esModule', { value: true }); 240/******/ }; 241/******/ })(); 242/******/ 243/************************************************************************/ 244/******/ 245/******/ // startup 246/******/ // Load entry module and return exports 247/******/ // This entry module is referenced by other modules so it can't be inlined 248/******/ var __webpack_exports__ = __webpack_require__("./src/scripts/main.js"); 249/******/ 250/******/ })() 251;
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.