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EAAWzO,KAAKwD,kBAItB,IAAK,IAAIb,KAFT3C,KAAKyD,iBAAiBiL,kBAERD,EACRA,EAAS9L,GAAGvC,aAAa,wBAA0ByG,GACrD7G,KAAKyD,iBAAiBkL,YAAYF,EAAS9L,IAI/C3C,KAAKyD,iBAAiBmL,SACtB5O,KAAKmE,iCACP,GAAC,0BAED,WACE,OAAOsJ,MAAMC,UAAUC,MAAMC,KAC3B5N,KAAKD,GAAGyH,iBAAiB,qCAE7B,I,iFAAC,EAlrBkC,GAkrBlC,W","sources":["webpack://jcb.com/./src/js/components/brochureDownload.js"],"sourcesContent":["// TODO: JFED-002 - Update Swiper to latest\r\nconst Shuffle = require('shufflejs/dist/shuffle'),\r\n Swiper = require('swiper'),\r\n anims = require('./animations.js'),\r\n _findIndex = require('lodash/findIndex.js'),\r\n _indexOf = require('lodash/indexOf.js'),\r\n _isEqual = require('lodash/isEqual'),\r\n _join = require('lodash/join.js'),\r\n _pullAtt = require('lodash/pullAt'),\r\n _pull = require('lodash/pull'),\r\n _uniqWith = require('lodash/uniqWith');\r\n\r\nexport default class BrochureDownload {\r\n constructor(el) {\r\n this.el = el;\r\n this.lang = document.getElementsByTagName('html')[0].getAttribute('lang');\r\n this.shufflerFilter = [];\r\n this.selectedItems = [];\r\n this.selectedIds = [];\r\n this.selectedRange = null;\r\n\r\n this.init();\r\n }\r\n\r\n get sliderOptions() {\r\n let options = {},\r\n windowWidth = this.windowWidth;\r\n\r\n switch (true) {\r\n case windowWidth >= 1200:\r\n options.multiplier = 0.25;\r\n options.slidesInView = 4;\r\n options.centered = false;\r\n break;\r\n case windowWidth >= 992:\r\n options.multiplier = 0.25;\r\n options.slidesInView = 4;\r\n options.centered = false;\r\n break;\r\n case windowWidth >= 768:\r\n options.multiplier = 0.333;\r\n options.slidesInView = 3;\r\n options.centered = false;\r\n break;\r\n case windowWidth >= 576:\r\n options.multiplier = 0.5;\r\n options.slidesInView = 2;\r\n options.centered = false;\r\n break;\r\n default:\r\n options.multiplier = 0.5;\r\n options.slidesInView = 2;\r\n options.centered = true;\r\n }\r\n return options;\r\n }\r\n\r\n init() {\r\n this.i18n = i18n.BrochureDownload;\r\n this.setCategoryItemWidth();\r\n this.setCategoryListWidth();\r\n this.inlineCategoryIcons();\r\n this.attachCategoryEvents();\r\n this.initCategoryCarousel();\r\n this.initSearchTypeTabs();\r\n this.handleQuerystringData();\r\n }\r\n\r\n handleQuerystringData() {\r\n const urlRange = this.getUrlParameter('range'),\r\n urlModel = this.getUrlParameter('model');\r\n\r\n if (urlRange !== '') {\r\n const rangeItem = this.el.querySelector(\r\n `.jcb-brochure-download--categories--item[data-category=\"${urlRange}\"]`,\r\n );\r\n\r\n if (urlModel !== '') {\r\n this.selectCategory(rangeItem, this.selectModelFilter, urlModel);\r\n } else {\r\n this.selectCategory(rangeItem);\r\n }\r\n }\r\n }\r\n\r\n getUrlParameter(name) {\r\n name = name.replace(/[\\[]/, '\\\\[').replace(/[\\]]/, '\\\\]');\r\n var regex = new RegExp('[\\\\?&]' + name + '=([^&#]*)');\r\n var results = regex.exec(location.search);\r\n return results === null ? '' : decodeURIComponent(results[1].replace(/\\+/g, ' '));\r\n }\r\n\r\n setCategoryItemWidth() {\r\n let items = this.categoryListItems,\r\n itemWidth = this.categoryListWrapperWidth * this.sliderOptions.multiplier;\r\n\r\n for (let i in items) {\r\n let item = items[i];\r\n item.style.width = itemWidth + 'px';\r\n }\r\n }\r\n\r\n setCategoryListWidth() {\r\n this.el.querySelector('.jcb-brochure-download--categories--list').style.width =\r\n this.categoryListItems.length * this.categoryItemWidth + this.categoryListItems.length + 'px';\r\n }\r\n\r\n initCategoryCarousel() {\r\n const categorySection = this.el.querySelector('.jcb-brochure-download--categories .container'),\r\n existingNav = this.el.querySelector('.jcb-brochure-download--categories--nav'),\r\n nextPrevButtons = document\r\n .createRange()\r\n .createContextualFragment(\r\n '
',\r\n ),\r\n that = this;\r\n\r\n if (!existingNav) {\r\n categorySection.insertBefore(nextPrevButtons, categorySection.childNodes[0]);\r\n }\r\n this.allCategorySlides = this.categoryListItems;\r\n\r\n this.categoryCarousel = new Swiper('.jcb-brochure-download--categories--list-wrapper', {\r\n slidesPerView: this.sliderOptions.slidesInView,\r\n slideClass: 'jcb-brochure-download--categories--item',\r\n wrapperClass: 'jcb-brochure-download--categories--list',\r\n nextButton: '.jcb-brochure-download--categories--nav .next',\r\n prevButton: '.jcb-brochure-download--categories--nav .previous',\r\n centeredSlides: this.sliderOptions.centered,\r\n observer: true,\r\n onImagesReady: function () {\r\n setTimeout(function () {\r\n that.slideCategoryCarouselToSelected();\r\n }, 400);\r\n },\r\n });\r\n }\r\n\r\n inlineCategoryIcons() {\r\n let items = this.categoryListItems;\r\n\r\n for (let i in items) {\r\n let item = items[i],\r\n img = item.querySelector('img');\r\n if (img !== null) {\r\n this.inlineIcon(img);\r\n }\r\n }\r\n setTimeout(() => {\r\n this.el\r\n .querySelector('.jcb-brochure-download--categories--list')\r\n .classList.remove('is-pre-init');\r\n }, 500);\r\n }\r\n\r\n inlineIcon(img) {\r\n const src = img.getAttribute('src');\r\n if (src.indexOf('svg') !== -1) {\r\n fetch(src)\r\n .then((response) => response.text())\r\n .then((svg) => {\r\n let parser = new DOMParser(),\r\n svgDOM = parser.parseFromString(svg, 'image/svg+xml'),\r\n svgEl = svgDOM.querySelector('svg'),\r\n item = img.parentNode;\r\n item.insertBefore(svgEl, img);\r\n item.removeChild(img);\r\n });\r\n }\r\n }\r\n\r\n initFilter() {\r\n const container = this.el.querySelector('.jcb-brochure-download--results > .container'),\r\n filterContainer = this.el.querySelector('.jcb-brochure-download--results--filter-options');\r\n\r\n this.shufflerFilter = [];\r\n this.shuffler = new Shuffle(container, {\r\n delimeter: '|',\r\n itemSelector: '.jcb-brochure-download--results--item',\r\n });\r\n\r\n let models = this.categoryModels,\r\n frag = document.createDocumentFragment();\r\n let placeholder = document\r\n .createRange()\r\n .createContextualFragment(``);\r\n frag.appendChild(placeholder);\r\n let allOption = document\r\n .createRange()\r\n .createContextualFragment(``);\r\n frag.appendChild(allOption);\r\n for (let m in models) {\r\n let option = document\r\n .createRange()\r\n .createContextualFragment(\r\n ``,\r\n );\r\n frag.appendChild(option);\r\n }\r\n\r\n filterContainer.innerHTML = '';\r\n filterContainer.appendChild(frag);\r\n\r\n this.attachDropdownFilterEvents();\r\n\r\n this.updateBrochureCount();\r\n }\r\n\r\n selectCategory(categoryItem) {\r\n const currentCategoryItem = _findIndex(this.allCategorySlides, (item) =>\r\n item.classList.contains('is-active'),\r\n ),\r\n currentCategory =\r\n currentCategoryItem > -1\r\n ? this.allCategorySlides[currentCategoryItem].getAttribute('data-category')\r\n : null,\r\n newCategory = categoryItem.getAttribute('data-category'),\r\n categoryType = categoryItem.getAttribute('data-category-type'),\r\n callback = arguments[1],\r\n modelUid = arguments[2],\r\n categoryList = this.el.querySelector('.jcb-brochure-download--categories--list');\r\n\r\n this.selectedRange = categoryItem;\r\n\r\n categoryList.className = 'jcb-brochure-download--categories--list'; //remove other classes\r\n categoryList.classList.add('selected-' + categoryType);\r\n\r\n if (currentCategoryItem > -1 && currentCategory !== newCategory) {\r\n for (let s in this.allCategorySlides) {\r\n this.allCategorySlides[s].classList.remove('is-active');\r\n }\r\n }\r\n if (currentCategory !== newCategory) {\r\n for (let s2 in this.allCategorySlides) {\r\n if (this.allCategorySlides[s2].getAttribute('data-category') === newCategory) {\r\n this.allCategorySlides[s2].classList.add('is-active');\r\n\r\n if (callback) {\r\n this.getCategoryBrochures(newCategory, callback, modelUid);\r\n } else {\r\n this.getCategoryBrochures(newCategory);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n updateBrochureCount() {\r\n const totalBrochures = this.el.querySelectorAll('.jcb-brochure-download--results--item'),\r\n visibleBrochures = this.el.querySelectorAll(\r\n '.jcb-brochure-download--results--item:not([aria-hidden])',\r\n ).length,\r\n activeFilters = this.shufflerFilter,\r\n activeRange = this.el\r\n .querySelector('.jcb-brochure-download--categories--item.is-active')\r\n .getAttribute('data-category-name'),\r\n resultsHeading = this.el.querySelector('.jcb-brochure-download--results--header'),\r\n resultsCount = resultsHeading.querySelector('.count'),\r\n resultsRange = resultsHeading.querySelector('.range'),\r\n resultsContainer = this.el.querySelector('.jcb-brochure-download--results');\r\n\r\n if (totalBrochures.length === 0) {\r\n resultsHeading.classList.remove('visible');\r\n } else {\r\n resultsHeading.classList.add('visible');\r\n if (resultsCount) {\r\n resultsCount.innerText = visibleBrochures + '';\r\n resultsRange.innerText = activeRange;\r\n }\r\n }\r\n }\r\n\r\n getCategoryBrochures(uid, callback, modelUid) {\r\n const that = this,\r\n isProductSearch =\r\n this.el\r\n .querySelector('.jcb-brochure-download--categories--item.is-active')\r\n .getAttribute('data-category-type') === 'product',\r\n url = isProductSearch\r\n ? `/api/v1/datahandler/brochures/machine/${this.lang}/${uid}`\r\n : `/api/v1/datahandler/brochures/attachment/${this.lang}/${uid}`;\r\n this.showSpinner().then(() => {\r\n that.hideSearchError();\r\n fetch(url, { method: 'GET', credentials: 'include' })\r\n .then((response) => response.json())\r\n .then((json) => {\r\n if (json.Brochures.length > 0) {\r\n that\r\n .renderCategoryBrochures(json)\r\n .then(() => that.hideSpinner())\r\n .then(() => {\r\n that.initFilter();\r\n if (callback) {\r\n callback.apply(that, [modelUid]);\r\n }\r\n })\r\n .catch((error) => {\r\n console.error(error);\r\n });\r\n } else {\r\n that.hideSpinner().then(() => that.showBrochureNotThereError());\r\n }\r\n })\r\n .catch((error) => {\r\n that.hideSpinner().then(() => that.showSearchError());\r\n console.error(error);\r\n });\r\n });\r\n }\r\n\r\n showSpinner() {\r\n return new Promise((resolve, reject) => {\r\n const frag = document\r\n .createRange()\r\n .createContextualFragment(\r\n '
Searching...
',\r\n ),\r\n target = this.el;\r\n target.appendChild(frag);\r\n anims.fadeIn(this.el.querySelector('.search-waiting-overlay')).then(() => resolve(true));\r\n });\r\n }\r\n\r\n hideSpinner() {\r\n return new Promise((resolve, reject) => {\r\n const spinner = this.el.querySelector('.search-waiting-overlay'),\r\n target = this.el;\r\n anims.fadeOut(spinner).then(() => {\r\n target.removeChild(spinner);\r\n resolve(true);\r\n });\r\n });\r\n }\r\n\r\n showSearchError() {\r\n const target = this.el.querySelector('.jcb-brochure-download--categories > .container'),\r\n errorMsg = document\r\n .createRange()\r\n .createContextualFragment(\r\n '

! ' +\r\n this.i18n.genericErrorMsg +\r\n '

',\r\n );\r\n target.appendChild(errorMsg);\r\n anims.fadeIn(this.el.querySelector('.search-error-message'));\r\n }\r\n\r\n showBrochureNotThereError() {\r\n const target = this.el.querySelector('.jcb-brochure-download--categories > .container'),\r\n errorMsg = document\r\n .createRange()\r\n .createContextualFragment(\r\n '

! ' +\r\n this.i18n.brochureNotThereErrorMsg +\r\n '

',\r\n );\r\n target.appendChild(errorMsg);\r\n anims.fadeIn(this.el.querySelector('.search-error-message'));\r\n }\r\n\r\n hideSearchError() {\r\n return new Promise((resolve, reject) => {\r\n const target = this.el.querySelector('.search-error-message');\r\n if (target) {\r\n anims.fadeOut(target).then(() => {\r\n target.parentNode.removeChild(target);\r\n resolve(true);\r\n });\r\n } else {\r\n resolve(true);\r\n }\r\n });\r\n }\r\n\r\n scrollTo(element) {\r\n $('html, body').animate(\r\n {\r\n scrollTop: $(element).offset().top,\r\n },\r\n 500,\r\n );\r\n }\r\n\r\n renderCategoryBrochures(json) {\r\n return new Promise((resolve, reject) => {\r\n const range = json.Range;\r\n const brochures = json.Brochures,\r\n target = this.el.querySelector('.jcb-brochure-download--results > .container'),\r\n resultStr = document.createRange().createContextualFragment(\r\n `${brochures\r\n .map(\r\n (item, index) => `
0\r\n ? item.Models.map((model) => `${model.Name}`).join('|')\r\n : ''\r\n }\">\r\n \r\n \"${item.Name}\"\r\n \r\n \r\n ${\r\n item.Models && item.Models.length > 0\r\n ? item.Models.map(\r\n (model) =>\r\n `${model.Name}`,\r\n ).join('')\r\n : ''\r\n }\r\n \r\n ${item.Name}\r\n\r\n 0\r\n ? item.Models.map((model) => `data-name=\"${model.Name}\"`).join('')\r\n : ''\r\n } data-category-english-name=\"${range.EnglishName}\" title=\"${\r\n item.Name\r\n } brochure\" data-ismodalenabled=\"${this.selectedRange.getAttribute(\r\n 'data-ismodalenabled',\r\n )}\">\r\n
`,\r\n )\r\n .join('')}`,\r\n );\r\n\r\n target.innerHTML = '';\r\n target.appendChild(resultStr);\r\n this.scrollTo('.jcb-brochure-download--categories');\r\n resolve(true);\r\n });\r\n }\r\n\r\n attachCategoryEvents() {\r\n const categories = this.categoryListItems,\r\n that = this;\r\n for (let c in categories) {\r\n categories[c].addEventListener('click', (event) => {\r\n const categoryItem = event.target.closest('[data-category]');\r\n that.selectCategory(categoryItem);\r\n if (this.sliderOptions.centered) {\r\n this.slideCategoryCarouselToSelected();\r\n }\r\n });\r\n }\r\n }\r\n\r\n slideCategoryCarouselToSelected() {\r\n const list = this.el.querySelector('.jcb-brochure-download--categories--list');\r\n const selectedProduct = list.querySelector('.is-active');\r\n const slideToIndex = selectedProduct ? [...list.children].indexOf(selectedProduct) : 0;\r\n const categoryCarousel = this.el.querySelector(\r\n '.jcb-brochure-download--categories--list-wrapper',\r\n ).swiper;\r\n\r\n categoryCarousel.slideTo(slideToIndex);\r\n }\r\n\r\n attachDropdownFilterEvents() {\r\n const selectFilter = this.el.querySelector('.jcb-brochure-download--results--filter-options'),\r\n that = this;\r\n let instance = $('.jcb-brochure-download--results--filter-options').selectmenu('instance');\r\n\r\n if (instance) {\r\n $('.jcb-brochure-download--results--filter-options').selectmenu('destroy');\r\n }\r\n\r\n $('.jcb-brochure-download--results--filter-options').selectmenu({\r\n classes: {\r\n 'ui-selectmenu-menu': 'jcb-yellow-drop-down',\r\n 'ui-selectmenu-button': 'jcb-yellow-drop-down',\r\n },\r\n change: function (event, ui) {\r\n let model =\r\n selectFilter.options[selectFilter.selectedIndex].getAttribute('data-model-name');\r\n that.filterResults(model);\r\n },\r\n });\r\n }\r\n\r\n refreshDropdownFilter(uid) {\r\n const modelDropdown = this.el.querySelector('.jcb-brochure-download--results--filter-options');\r\n modelDropdown.options.namedItem(uid).selected = true;\r\n $(modelDropdown).selectmenu('refresh');\r\n }\r\n\r\n selectModelFilter(uid) {\r\n const modelDropdown = this.el.querySelector('.jcb-brochure-download--results--filter-options');\r\n\r\n const targetFilter = modelDropdown.options.namedItem(uid);\r\n const model = targetFilter.getAttribute('data-model-name');\r\n\r\n this.refreshDropdownFilter(uid);\r\n this.filterResults(model);\r\n }\r\n\r\n toggleFilter() {\r\n const button = this.el.querySelector('.jcb-brochure-download--results--filter-toggle'),\r\n target = this.el.querySelector('.jcb-brochure-download--results--filter');\r\n\r\n if (target.classList.contains('is-active')) {\r\n target.classList.remove('is-active');\r\n button.classList.remove('is-active');\r\n $(target).slideUp('fast');\r\n } else {\r\n target.classList.add('is-active');\r\n button.classList.add('is-active');\r\n $(target).slideDown('fast');\r\n }\r\n }\r\n\r\n filterResults(model) {\r\n this.shufflerFilter = [];\r\n\r\n if (model) {\r\n if (model !== 'all') {\r\n this.shufflerFilter.push(model);\r\n }\r\n\r\n this.shuffler.filter(this.shufflerFilter);\r\n this.updateBrochureCount();\r\n }\r\n }\r\n\r\n updateCart(event) {\r\n const target = event.target ? event.target.closest('[data-groups]') : event,\r\n id = target.getAttribute('id'),\r\n models = target.getAttribute('data-groups').split(','),\r\n name = target.querySelector('.jcb-brochure-download--results--name').innerText,\r\n img = target.querySelector('img').getAttribute('src'),\r\n category = this.el\r\n .querySelector('.jcb-brochure-download--tab.is-active')\r\n .getAttribute('data-category-type'),\r\n range = this.el\r\n .querySelector('.jcb-brochure-download--categories--item.is-active')\r\n .getAttribute('data-category-english-name'),\r\n el = target,\r\n item = { id, name, category, range, models, img, el };\r\n\r\n if (_indexOf(this.selectedIds, id) > -1) {\r\n // item is in selection and needs to be removed\r\n this.removeFromCart(item);\r\n } else {\r\n // add item to selection\r\n this.addToCart(item);\r\n }\r\n }\r\n\r\n addToCart(item) {\r\n const cartList = this.el.querySelector('.jcb-brochure-download--cart--items'),\r\n that = this,\r\n cartItem = document\r\n .createRange()\r\n .createContextualFragment(\r\n '' +\r\n _join(item.models, ', ') +\r\n ' ' +\r\n item.name,\r\n ),\r\n li = document.createElement('li');\r\n\r\n this.selectedItems.push(item);\r\n this.selectedIds.push(item.id);\r\n item.el.classList.add('is-selected');\r\n\r\n li.className = 'jcb-brochure-download--cart--item';\r\n li.setAttribute('data-id', item.id);\r\n li.appendChild(cartItem);\r\n li.addEventListener('click', () => {\r\n that.removeFromCart(item);\r\n });\r\n cartList.appendChild(li);\r\n\r\n this.updateCartDisplay();\r\n }\r\n\r\n removeFromCart(item) {\r\n const cartItem = this.el.querySelector('[data-id=\"' + item.id + '\"]');\r\n for (let i in this.selectedItems) {\r\n if (_includes(this.selectedItems[i], item.id)) {\r\n _pullAtt(this.selectedItems, i);\r\n break;\r\n }\r\n }\r\n _pull(this.selectedIds, item.id);\r\n item.el.classList.remove('is-selected');\r\n cartItem.parentNode.removeChild(cartItem);\r\n\r\n this.updateCartDisplay();\r\n }\r\n\r\n updateCartDisplay() {\r\n this.populateCartInfoForSubmit();\r\n const items = this.selectedItems.length;\r\n\r\n this.el.querySelector('.jcb-brochure-download--cart--total').innerText = items;\r\n\r\n this.el.querySelector('.jcb-brochure-download--cart--plural').style.display =\r\n items !== 1 ? 'inline' : 'none';\r\n }\r\n\r\n get windowWidth() {\r\n return window.innerWidth;\r\n }\r\n\r\n get categoryListItems() {\r\n // return results as true array rather than node list\r\n return Array.prototype.slice.call(\r\n this.el.querySelectorAll('.jcb-brochure-download--categories--item'),\r\n );\r\n }\r\n\r\n get categoryListWrapperWidth() {\r\n return this.el.querySelector('.jcb-brochure-download--categories--list-wrapper').offsetWidth;\r\n }\r\n\r\n get categoryItemWidth() {\r\n return this.el.querySelector('.jcb-brochure-download--categories--item:first-child')\r\n .offsetWidth;\r\n }\r\n\r\n get categoryModels() {\r\n const modelsArr = [],\r\n modelTags = Array.prototype.slice.call(\r\n this.el.querySelectorAll('.jcb-brochure-download--results--tag'),\r\n );\r\n\r\n for (let t in modelTags) {\r\n modelsArr.push({\r\n uid: modelTags[t].getAttribute('data-model'),\r\n modelName: modelTags[t].getAttribute('data-model-name'),\r\n });\r\n }\r\n return _uniqWith(modelsArr, _isEqual);\r\n }\r\n\r\n get resultItems() {\r\n return Array.prototype.slice.call(\r\n this.el.querySelectorAll('.jcb-brochure-download--results--item'),\r\n );\r\n }\r\n\r\n /**\r\n * TABS FUNCTIONS\r\n */\r\n\r\n initSearchTypeTabs() {\r\n const tabs = this.searchTypeTabs,\r\n that = this,\r\n selectedTab = this.getUrlParameter('tab') || 0;\r\n\r\n for (let t in tabs) {\r\n tabs[t].addEventListener('click', (event) => that.toggleSearchType(event));\r\n }\r\n this.updateCategoryItems(\r\n this.el\r\n .querySelector('.jcb-brochure-download--tabs > .is-active')\r\n .getAttribute('data-category-type'),\r\n );\r\n\r\n tabs[selectedTab].click();\r\n }\r\n\r\n toggleSearchType(event) {\r\n const clicked = event.target,\r\n targetCategoryType = clicked.getAttribute('data-category-type');\r\n\r\n if (!clicked.classList.contains('is-active')) {\r\n this.updateCategoryItems(targetCategoryType);\r\n this.el\r\n .querySelector('.jcb-brochure-download--tabs .is-active')\r\n .classList.remove('is-active');\r\n clicked.classList.add('is-active');\r\n }\r\n }\r\n\r\n updateCategoryItems(categoryType) {\r\n const allItems = this.allCategorySlides;\r\n\r\n this.categoryCarousel.removeAllSlides();\r\n\r\n for (let i in allItems) {\r\n if (allItems[i].getAttribute('data-category-type') === categoryType) {\r\n this.categoryCarousel.appendSlide(allItems[i]);\r\n }\r\n }\r\n\r\n this.categoryCarousel.update();\r\n this.slideCategoryCarouselToSelected();\r\n }\r\n\r\n get searchTypeTabs() {\r\n return Array.prototype.slice.call(\r\n this.el.querySelectorAll('.jcb-brochure-download--tabs > li'),\r\n );\r\n }\r\n}\r\n"],"names":["Shuffle","require","Swiper","anims","_findIndex","_indexOf","_isEqual","_join","_pullAtt","_pull","_uniqWith","BrochureDownload","el","this","lang","document","getElementsByTagName","getAttribute","shufflerFilter","selectedItems","selectedIds","selectedRange","init","options","windowWidth","multiplier","slidesInView","centered","i18n","setCategoryItemWidth","setCategoryListWidth","inlineCategoryIcons","attachCategoryEvents","initCategoryCarousel","initSearchTypeTabs","handleQuerystringData","urlRange","getUrlParameter","urlModel","rangeItem","querySelector","selectCategory","selectModelFilter","name","replace","results","RegExp","exec","location","search","decodeURIComponent","items","categoryListItems","itemWidth","categoryListWrapperWidth","sliderOptions","i","style","width","length","categoryItemWidth","categorySection","existingNav","nextPrevButtons","createRange","createContextualFragment","that","insertBefore","childNodes","allCategorySlides","categoryCarousel","slidesPerView","slideClass","wrapperClass","nextButton","prevButton","centeredSlides","observer","onImagesReady","setTimeout","slideCategoryCarouselToSelected","img","inlineIcon","classList","remove","src","indexOf","fetch","then","response","text","svg","svgEl","DOMParser","parseFromString","item","parentNode","removeChild","container","filterContainer","shuffler","delimeter","itemSelector","models","categoryModels","frag","createDocumentFragment","placeholder","appendChild","allOption","m","option","modelName","uid","innerHTML","attachDropdownFilterEvents","updateBrochureCount","categoryItem","currentCategoryItem","contains","currentCategory","newCategory","categoryType","callback","arguments","modelUid","categoryList","className","add","s","s2","getCategoryBrochures","totalBrochures","querySelectorAll","visibleBrochures","activeRange","resultsHeading","resultsCount","resultsRange","innerText","url","showSpinner","hideSearchError","method","credentials","json","Brochures","renderCategoryBrochures","hideSpinner","initFilter","apply","error","console","showBrochureNotThereError","showSearchError","Promise","resolve","reject","fadeIn","spinner","target","fadeOut","errorMsg","genericErrorMsg","brochureNotThereErrorMsg","element","$","animate","scrollTop","offset","top","range","Range","brochures","resultStr","map","index","Id","Models","model","Name","join","Asset","ThumbnailUrl","Url","EnglishName","scrollTo","categories","c","addEventListener","event","closest","list","selectedProduct","slideToIndex","children","swiper","slideTo","selectFilter","selectmenu","classes","change","ui","selectedIndex","filterResults","modelDropdown","namedItem","selected","refreshDropdownFilter","button","slideUp","slideDown","push","filter","id","split","category","removeFromCart","addToCart","cartList","cartItem","li","createElement","setAttribute","updateCartDisplay","_includes","populateCartInfoForSubmit","display","window","innerWidth","Array","prototype","slice","call","offsetWidth","modelsArr","modelTags","t","tabs","searchTypeTabs","selectedTab","toggleSearchType","updateCategoryItems","click","clicked","targetCategoryType","allItems","removeAllSlides","appendSlide","update"],"sourceRoot":""}