{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./app/utilities/observable.helper.ts","webpack:///./app/ggwmain-shop.ts","webpack:///./app/components/filterpage-store.ts","webpack:///./app/components/fmc.ts","webpack:///./app/shop/shop/promotion-link.ts"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","3","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","source","pipe","filter","user","distinctUntilChanged","a","b","id","ev","which","keyCode","_filter","require","_distinctUntilChanged","obj","_class","_class2","_factory","default","_component","_operators","_filterpageStore","_fmc","_promotionLink","_defineProperties","target","props","descriptor","configurable","writable","arg","input","hint","_typeof","prim","toPrimitive","undefined","res","TypeError","String","Number","_toPrimitive","_createClass","Constructor","protoProps","staticProps","_classCallCheck","instance","FilterPageStore","Component","className","_dec","element","filterpagestore","ShopSearch","_dec2","_this","this","addEventListener","e","search","location","assign","concat","origin","getAttribute","isPolyfillLoaded","isLoaded","take","subscribe","setTimeout","test","navigator","userAgent","MicroModal","show","factory","FilterModalComponent","PromotionLinkComponent","document","body","wrapper","options","_addClass","_interopRequireDefault","_hasClass","_removeClass","_queryStringAsObject","_rxjs","_observable","ownKeys","enumerableOnly","keys","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","FilterPageOptions","DisplayTypes","pagingSize","page","language","_options","selectors","content","selectTag","tag","searchText","resetAllActiveTagsElements","filterResults","resultWrapper","displayTypes","sort","paging","pageBack","pageNext","pageJump","pageJumpAttribute","changeSize","loading","contentLoading","contentYScroll","classes","active","hidden","contentLocation","wrapperId","searchValueText","tagValue","displayType","List","wrapperElement","dataLanguage","init","_this2","contentElement","getElementsByClassName","tags","Array","from","searchTextInput","loadingButton","querySelector","sortSelect","searchClear","preventDefault","clearSearch","localDisplayType","localStorage","getItem","type","addClass","changeDisplayType","sortResults","showHideSortOptions","fromEvent","debounceTime","merge","hasClass","map","mergeAll","loadFilterElements","storedPageSize","queryStringObject","queryStringAsObject","query","filterIsNotKeyEnter","filterIsKeyEnter","resetTags","resetAllActiveTags","querySelectorAll","removeClass","setItem","_this3","setPageDefault","setPageToDefault","dataSearch","getFilters","parentElement","style","overflow","innerHTML","showOrHideSearchClear","fetch","method","headers","credentials","then","response","contentType","includes","text","setPreviousNextJumpPageEvents","setTagsInHash","updateFilterButton","updateSelectedFilterBadges","src","total","textContent","event","scrollTo","updateLocationPage","currentTarget","_this4","pageStep","loadPreviousPage","loadNextPage","loadJumpPage","getActiveTagValues","hash","join","_this5","checked","getTagValue","isInit","setActiveTagsClasses","renderFilterResult","_this6","tagsFromHash","getTagsFromLocationHash","indexOf","el","innerText","toString","inputs","split","stopPropagation","stopImmediatePropagation","_this7","_this8","display","closeIcon","createElement","isTagActive","li","appendChild","cloneNode","deactivateTag","path","pathname","history","pushState","mobileOption","desktopOption","innerWidth","setNewValue","removeElement","insertBefore","childNodes","remove","parentNode","removeChild","_toggleClass","setDisplayNone","removeEventListener","transitionEndName","getTransitionEndEventName","toggles","reference","toggle","positionContent","toggleClass","rect","getBoundingClientRect","top","left","right","scrollWidth","bottom","innerHeight","transitions","transition","OTransition","MozTransition","WebkitTransition","check","json","hasProducts"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,EAAgBP,IAClBK,EAASG,KAAKD,EAAgBP,GAAS,IAExCO,E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GrCwF,GADZ,EAAA7B,aAAU,CAAEC,UAAW,sBAAuBC,CAAApC,EAAA,WAE9C,SAAA+D,EAAoB1B,IAJ6B,SAAAL,EAAAJ,GAAA,KAAAI,aAAAJ,GAAA,UAAAL,UAAA,qCAIPQ,CAAA,KAAAgC,GAAA,KAAtB1B,UACnBK,KAAKiO,QAL2C,IAAA/O,EAAAC,EAAAC,EAkBhD,OAlBgDF,EAMhDmC,GANgDlC,EAMhD,EAAAtD,IAAA,QAAAN,MAED,WAAQ,IAAAwE,EAAA,KACPsI,MAAM,sCACJI,MAAK,SAAAC,GAAQ,OAAIA,EAASwF,UAC1BzF,MAAK,SAAA0F,GACDA,GACH,EAAA1G,WAAY1H,EAAKJ,QAAS,WAE1B,EAAA0G,WAAStG,EAAKJ,QAAS,kBAfsB5B,EAAAmB,EAAA7F,UAAA8F,GAAAC,GAAArB,EAAAmB,EAAAE,GAAAhG,OAAA6B,eAAAiE,EAAA,aAAAd,UAAA,IAkBhDiD,EAhB6C,KAgB7C/D,EAAA9C,EAAA6G","file":"Scripts/ggwmainstore.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t3: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([387,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import { filter } from 'rxjs/internal/operators/filter';\r\nimport { Observable } from 'rxjs';\r\nimport { distinctUntilChanged } from 'rxjs/internal/operators/distinctUntilChanged';\r\n\r\nexport function distinctUntilUserChanged() {\r\n\treturn (source: Observable): Observable => {\r\n\t\treturn source.pipe(\r\n\t\t\tfilter(user => !!user),\r\n\t\t\tdistinctUntilChanged((a: any, b: any) => a.id === b.id)\r\n\t\t);\r\n\t};\r\n}\r\n\r\nexport function filterIsKeyEnter() {\r\n\treturn (source: Observable): Observable => {\r\n\t\treturn source.pipe(\r\n\t\t\tfilter((ev: KeyboardEvent) => {\r\n\t\t\t\t// tslint:disable-next-line\r\n\t\t\t\tconst key = ev.which || ev.keyCode;\r\n\t\t\t\treturn key === 13;\r\n\t\t\t})\r\n\t\t);\r\n\t};\r\n}\r\nexport function filterIsNotKeyEnter() {\r\n\treturn (source: Observable): Observable => {\r\n\t\treturn source.pipe(\r\n\t\t\tfilter((ev: KeyboardEvent) => {\r\n\t\t\t\t// tslint:disable-next-line\r\n\t\t\t\tconst key = ev.which || ev.keyCode;\r\n\t\t\t\treturn key !== 13;\r\n\t\t\t})\r\n\t\t);\r\n\t};\r\n}\r\n","import factory from '@opten/compiler/factory';\r\nimport { Component } from '@opten/compiler/metadata/component';\r\nimport { filter, take } from 'rxjs/operators';\r\nimport { filterpagestore } from './components/filterpage-store';\r\nimport { FilterModalComponent } from './components/fmc';\r\nimport { PromotionLinkComponent } from './shop/shop/promotion-link';\r\n\r\n@Component({ className: 'js-filter__page__store' })\r\nclass FilterPageStore {\r\n\tconstructor(private element: HTMLElement) {\r\n\t\tfilterpagestore(element);\r\n\t}\r\n}\r\n\r\n@Component({ className: 'js-shop-search' })\r\nclass ShopSearch {\r\n\tconstructor(private element: HTMLInputElement) {\r\n\t\tthis.element.addEventListener('keypress', e => {\r\n\t\t\t// tslint:disable-next-line\r\n\t\t\tconst key = e.which || e.keyCode;\r\n\t\t\tif (key === 13) {\r\n\t\t\t\t// 13 is enter\r\n\t\t\t\tthis.search();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate search() {\r\n\t\twindow.location.assign(`${window.location.origin}${this.element.getAttribute('data-search-path')}?query=${this.element.value}`);\r\n\t}\r\n}\r\n\r\nwindow.isPolyfillLoaded\r\n\t.pipe(\r\n\t\tfilter(isLoaded => isLoaded),\r\n\t\ttake(1)\r\n\t)\r\n\t.subscribe(isLoaded => {\r\n\t\tsetTimeout(() => {\r\n\t\t\tif (/MSIE|Trident/.test(window.navigator.userAgent)) {\r\n\t\t\t\tMicroModal.show('browser-warning');\r\n\t\t\t}\r\n\t\t}, 1000);\r\n\r\n\t\tfactory([FilterPageStore, ShopSearch, FilterModalComponent, PromotionLinkComponent])(document.body);\r\n\t});\r\n","import addClass from '@opten/dom/add-class';\r\nimport hasClass from '@opten/dom/has-class';\r\nimport removeClass from '@opten/dom/remove-class';\r\nimport { queryStringAsObject } from '@opten/url/query-string-as-object';\r\nimport { fromEvent, merge } from 'rxjs';\r\nimport { debounceTime, mergeAll } from 'rxjs/operators';\r\nimport { filterIsKeyEnter, filterIsNotKeyEnter } from '../utilities/observable.helper';\r\n\r\nexport class FilterPageOptions {\r\n\tselectors: {\r\n\t\tcontent: string;\r\n\t\tselectTag: string;\r\n\t\ttag: string;\r\n\t\tsearchText: string;\r\n\t\tresetAllActiveTagsElements: string;\r\n\t\tfilterResults: string;\r\n\t\tresultWrapper: string;\r\n\t\tdisplayTypes: string;\r\n\t\tsort: string;\r\n\t};\r\n\tpaging: {\r\n\t\tpageBack: string;\r\n\t\tpageNext: string;\r\n\t\tpageJump: string;\r\n\t\tpageJumpAttribute: string;\r\n\t\tpagingSize: string;\r\n\t\tchangeSize: string;\r\n\t};\r\n\tloading: {\r\n\t\tcontentLoading: string;\r\n\t\tcontentYScroll: number;\r\n\t};\r\n\tclasses: {\r\n\t\tactive: string;\r\n\t\thidden: string;\r\n\t};\r\n\r\n\tcontentLocation: string;\r\n\twrapperId: string;\r\n\tsearchValueText: string;\r\n\ttagValue: string;\r\n}\r\n\r\nenum DisplayTypes {\r\n\tList,\r\n\tGrid\r\n}\r\n\r\nexport class FilterPageStore {\r\n\tprivate wrapperElement: HTMLElement;\r\n\tprivate wrapperId: string;\r\n\tprivate contentElement: HTMLElement;\r\n\tprivate contentLocation: string;\r\n\tprivate tags: Element[];\r\n\tprivate searchTextInput: HTMLInputElement;\r\n\tprivate resetAllActiveTagsElements: Element[];\r\n\tprivate pagingSize = 15;\r\n\tprivate page = 1;\r\n\tprivate language = 'de-CH';\r\n\r\n\tprivate resultWrapper: HTMLElement[];\r\n\r\n\tprivate _options: FilterPageOptions = {\r\n\t\tselectors: {\r\n\t\t\tcontent: 'js-filter__page__content',\r\n\t\t\tselectTag: 'js-filter__select__tag',\r\n\t\t\ttag: 'js-filter__tag',\r\n\t\t\tsearchText: 'js-filter__search-text',\r\n\t\t\tresetAllActiveTagsElements: 'js-filter__reset--all',\r\n\t\t\tfilterResults: 'js-filter__page__result',\r\n\t\t\tresultWrapper: 'js-filter__page__result__wrapper',\r\n\t\t\tdisplayTypes: 'js-filter__display-type',\r\n\t\t\tsort: 'js-filter__sort'\r\n\t\t},\r\n\t\tpaging: {\r\n\t\t\tpageBack: 'js-filter__page-back',\r\n\t\t\tpageNext: 'js-filter__page-next',\r\n\t\t\tpageJump: 'js-filter__page-jump',\r\n\t\t\tpageJumpAttribute: 'data-value',\r\n\t\t\tpagingSize: 'data-paging-size',\r\n\t\t\tchangeSize: 'js-filter__page-size'\r\n\t\t},\r\n\t\tloading: {\r\n\t\t\tcontentLoading:\r\n\t\t\t\t'
',\r\n\t\t\tcontentYScroll: 0\r\n\t\t},\r\n\t\tclasses: {\r\n\t\t\tactive: '--active',\r\n\t\t\thidden: '--hidden'\r\n\t\t},\r\n\t\tcontentLocation: 'data-location',\r\n\t\twrapperId: 'data-id',\r\n\t\tsearchValueText: 'search_text',\r\n\t\ttagValue: 'value'\r\n\t};\r\n\tdisplayTypes: HTMLElement[];\r\n\tdisplayType = DisplayTypes.List;\r\n\tsortSelect: HTMLInputElement;\r\n\tsort: string;\r\n\tloadingButton: HTMLElement;\r\n\tsearchClear: HTMLElement;\r\n\r\n\tconstructor(private wrapper: HTMLElement, options?: FilterPageOptions) {\r\n\t\tthis.wrapperElement = wrapper;\r\n\t\tthis._options = { ...this._options, ...options };\r\n\t\tconst dataLanguage = document.body.getAttribute('data-language-long');\r\n\t\tif (dataLanguage && dataLanguage.length > 0) {\r\n\t\t\tthis.language = dataLanguage;\r\n\t\t}\r\n\r\n\t\tthis.init();\r\n\r\n\t\twindow.addEventListener('hashchange', () => this.filter());\r\n\r\n\t\t// window.addEventListener('popstate', () => {\r\n\t\t// \tthis.setPreviousNextJumpPageEvents();\r\n\t\t// \tthis.setTagsInHash();\r\n\t\t// \tthis.updateFilterButton();\r\n\t\t// \tthis.updateSelectedFilterBadges();\r\n\t\t// \tconst queryStringObject = queryStringAsObject(window.location.search);\r\n\t\t// \tif (queryStringObject) {\r\n\t\t// \t\tif (queryStringObject.page) {\r\n\t\t// \t\t\tthis.page = +queryStringObject.page;\r\n\t\t// \t\t} else {\r\n\t\t// \t\t\tthis.page = 1;\r\n\t\t// \t\t}\r\n\t\t// \t\tif (queryStringObject.query) {\r\n\t\t// \t\t\tthis.searchTextInput.value = queryStringObject.query;\r\n\t\t// \t\t}\r\n\t\t// \t} else {\r\n\t\t// \t\tthis.page = 1;\r\n\t\t// \t}\r\n\t\t// \tthis.loadFilterElements(false);\r\n\t\t// });\r\n\r\n\t\tthis.filter(true);\r\n\t}\r\n\r\n\tprivate init() {\r\n\t\tthis.wrapperId = this.wrapperElement.getAttribute(this._options.wrapperId);\r\n\t\tthis.pagingSize = Number(this.wrapperElement.getAttribute(this._options.paging.pagingSize));\r\n\t\tthis.contentLocation = this.wrapperElement.getAttribute(this._options.contentLocation);\r\n\t\tthis.contentElement = this.wrapperElement.getElementsByClassName(this._options.selectors.content)[0] as HTMLElement;\r\n\t\tthis.tags = Array.from(document.getElementsByClassName(this._options.selectors.tag));\r\n\t\tthis.searchTextInput = document.getElementsByClassName(this._options.selectors.searchText)[0] as HTMLInputElement;\r\n\t\tthis.resetAllActiveTagsElements = Array.from(document.getElementsByClassName(this._options.selectors.resetAllActiveTagsElements));\r\n\t\tthis.loadingButton = document.querySelector('.js-filter__filter-button');\r\n\t\tthis.displayTypes = Array.from(document.getElementsByClassName(this._options.selectors.displayTypes)) as HTMLElement[];\r\n\t\tthis.sortSelect = document.querySelector(`.${this._options.selectors.sort}`);\r\n\r\n\t\tthis.searchClear = document.querySelector(`.js-filter__search__clear`) as HTMLElement;\r\n\t\tif (this.searchClear) {\r\n\t\t\tthis.searchClear.addEventListener('click', e => {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\tthis.clearSearch();\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// DISPLAY TYPES\r\n\t\tconst localDisplayType = localStorage.getItem('shopDisplayType');\r\n\t\tif (localDisplayType) {\r\n\t\t\tthis.displayType = DisplayTypes[localDisplayType];\r\n\t\t}\r\n\r\n\t\tthis.displayTypes.forEach(type => {\r\n\t\t\tif (this.displayType === DisplayTypes[type.getAttribute('data-type')]) {\r\n\t\t\t\taddClass(type, 'is-active');\r\n\t\t\t}\r\n\t\t\ttype.addEventListener('click', () => this.changeDisplayType(type));\r\n\t\t});\r\n\r\n\t\t// SORT\r\n\t\tif (this.sortSelect) {\r\n\t\t\tthis.sortSelect.addEventListener('change', () => this.sortResults());\r\n\t\t\tthis.sort = this.sortSelect.value;\r\n\r\n\t\t\tthis.showHideSortOptions();\r\n\t\t\tfromEvent(window, 'resize')\r\n\t\t\t\t.pipe(debounceTime(250))\r\n\t\t\t\t.subscribe(() => this.showHideSortOptions());\r\n\t\t}\r\n\r\n\t\t// TAGS\r\n\t\tif (this.tags) {\r\n\t\t\tmerge(this.tags.filter(tag => !hasClass(tag, this._options.selectors.selectTag)).map(tag => fromEvent(tag, 'change')))\r\n\t\t\t\t.pipe(mergeAll(), debounceTime(750))\r\n\t\t\t\t.subscribe(ev => this.loadFilterElements());\r\n\t\t}\r\n\r\n\t\t// PAGE SIZE\r\n\t\tconst storedPageSize = localStorage.getItem('pageSize');\r\n\t\tif (storedPageSize) {\r\n\t\t\tthis.pagingSize = Number(storedPageSize);\r\n\t\t}\r\n\r\n\t\t// PAGE\r\n\t\tconst queryStringObject = queryStringAsObject(window.location.search);\r\n\t\tif (queryStringObject) {\r\n\t\t\tif (queryStringObject.page) {\r\n\t\t\t\tthis.page = +queryStringObject.page;\r\n\t\t\t}\r\n\t\t\tif (queryStringObject.query) {\r\n\t\t\t\tthis.searchTextInput.value = queryStringObject.query;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// SEARCH INPUT\r\n\t\tif (this.searchTextInput != null) {\r\n\t\t\tmerge(\r\n\t\t\t\tfromEvent(this.searchTextInput, 'keyup').pipe(filterIsNotKeyEnter(), debounceTime(500)),\r\n\t\t\t\tfromEvent(this.searchTextInput, 'keypress').pipe(filterIsKeyEnter())\r\n\t\t\t).subscribe(ev => this.loadFilterElements());\r\n\t\t}\r\n\r\n\t\tif (this.resetAllActiveTagsElements && this.resetAllActiveTagsElements.length > 0) {\r\n\t\t\tthis.resetAllActiveTagsElements.forEach(resetTags => resetTags.addEventListener('click', e => this.resetAllActiveTags(e)));\r\n\t\t}\r\n\r\n\t\tthis.resultWrapper = Array.from(document.querySelectorAll(`.${this._options.selectors.resultWrapper}`)) as HTMLElement[];\r\n\t}\r\n\r\n\tsortResults() {\r\n\t\tif (this.sort !== this.sortSelect.value) {\r\n\t\t\tthis.sort = this.sortSelect.value;\r\n\t\t\tthis.loadFilterElements();\r\n\t\t}\r\n\t}\r\n\r\n\tchangeDisplayType(type: HTMLElement): any {\r\n\t\tthis.displayTypes.forEach(t => removeClass(t, 'is-active'));\r\n\t\taddClass(type, 'is-active');\r\n\r\n\t\tthis.displayType = DisplayTypes[type.getAttribute('data-type')];\r\n\t\tlocalStorage.setItem('shopDisplayType', DisplayTypes[this.displayType]);\r\n\t\tthis.loadFilterElements(false);\r\n\t}\r\n\r\n\tprivate loadFilterElements(setPageDefault = true) {\r\n\t\tif (setPageDefault) {\r\n\t\t\tthis.setPageToDefault();\r\n\t\t}\r\n\t\tconst searchText = this.searchTextInput != null ? this.searchTextInput.value : '';\r\n\t\tconst dataSearch = `id=${this.wrapperId}&filter=${this.getFilters()}&pagingSize=${this.pagingSize}&page=${\r\n\t\t\tthis.page\r\n\t\t}&searchText=${searchText}&displayType=${this.displayType}&sort=${this.sort}`;\r\n\r\n\t\tthis.contentElement.parentElement.style.overflow = 'hidden';\r\n\t\tthis.contentElement.innerHTML = this._options.loading.contentLoading;\r\n\r\n\t\tthis.showOrHideSearchClear();\r\n\r\n\t\tif (this.loadingButton) {\r\n\t\t\taddClass(this.loadingButton.parentElement, 'is-loading');\r\n\t\t}\r\n\r\n\t\tfetch('/umbraco/surface/' + this.contentLocation, {\r\n\t\t\tmethod: 'POST',\r\n\t\t\theaders: {\r\n\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded',\r\n\t\t\t\t'accept-language': this.language,\r\n\t\t\t\t// todo: why? if we change to a api controller we don't have this problem...\r\n\t\t\t\t'X-Requested-With': 'XMLHttpRequest' // otherwise accept-language is ignored\r\n\t\t\t},\r\n\t\t\tbody: dataSearch,\r\n\t\t\tcredentials: 'include'\r\n\t\t})\r\n\t\t\t.then(response => {\r\n\t\t\t\tconst contentType = response.headers.get('content-type');\r\n\t\t\t\tif (contentType && contentType.includes('text/html')) {\r\n\t\t\t\t\treturn response.text();\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.then(data => {\r\n\t\t\t\tif (data != null && data.length > 0) {\r\n\t\t\t\t\tthis.contentElement.parentElement.style.overflow = null;\r\n\t\t\t\t\tthis.contentElement.innerHTML = data;\r\n\r\n\t\t\t\t\tthis.setPreviousNextJumpPageEvents();\r\n\t\t\t\t\tthis.setTagsInHash();\r\n\t\t\t\t\tthis.updateFilterButton();\r\n\t\t\t\t\tthis.updateSelectedFilterBadges();\r\n\r\n\t\t\t\t\tif (this.loadingButton) {\r\n\t\t\t\t\t\tremoveClass(this.loadingButton.parentElement, 'is-loading');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tprivate updateFilterButton() {\r\n\t\tconst src = document.querySelector('.js-filter__total-results') as HTMLElement;\r\n\t\tconst total = src ? src.getAttribute('data-total') : 0;\r\n\r\n\t\tif (this.loadingButton) {\r\n\t\t\tthis.loadingButton.textContent = `${this.loadingButton.getAttribute('data-text')} (${total})`;\r\n\t\t}\r\n\t}\r\n\r\n\tprivate loadPreviousPage(event: any) {\r\n\t\twindow.scrollTo(0, 0);\r\n\t\tevent.preventDefault();\r\n\t\tthis.page = this.page - 1 >= 1 ? this.page - 1 : 1;\r\n\r\n\t\tthis.updateLocationPage(this.page);\r\n\t\tthis.loadFilterElements(false);\r\n\t}\r\n\r\n\tprivate loadNextPage(event: any) {\r\n\t\twindow.scrollTo(0, 0);\r\n\t\tevent.preventDefault();\r\n\t\tthis.page = this.page + 1;\r\n\r\n\t\tthis.updateLocationPage(this.page);\r\n\t\tthis.loadFilterElements(false);\r\n\t}\r\n\r\n\tprivate loadJumpPage(event: any) {\r\n\t\twindow.scrollTo(0, 0);\r\n\t\tevent.preventDefault();\r\n\t\tconst element = event.target || event.currentTarget;\r\n\t\tthis.page = Number(element.getAttribute(this._options.paging.pageJumpAttribute));\r\n\r\n\t\tthis.updateLocationPage(this.page);\r\n\t\tthis.loadFilterElements(false);\r\n\t}\r\n\r\n\tprivate setPreviousNextJumpPageEvents() {\r\n\t\tconst pageBack = Array.from(this.contentElement.getElementsByClassName(this._options.paging.pageBack));\r\n\t\tconst pageNext = Array.from(this.contentElement.getElementsByClassName(this._options.paging.pageNext));\r\n\r\n\t\tconst pageJump = Array.from(this.contentElement.getElementsByClassName(this._options.paging.pageJump));\r\n\r\n\t\tif (pageBack.length > 0) {\r\n\t\t\tpageBack.forEach(pageStep => pageStep.addEventListener('click', e => this.loadPreviousPage(e)));\r\n\t\t}\r\n\t\tif (pageNext.length > 0) {\r\n\t\t\tpageNext.forEach(pageStep => pageStep.addEventListener('click', e => this.loadNextPage(e)));\r\n\t\t}\r\n\r\n\t\tif (pageJump.length > 0) {\r\n\t\t\tpageJump.forEach(pageStep => pageStep.addEventListener('click', e => this.loadJumpPage(e)));\r\n\t\t}\r\n\t}\r\n\r\n\tprivate setPageToDefault() {\r\n\t\tthis.page = 1;\r\n\t\tthis.updateLocationPage(this.page);\r\n\t}\r\n\r\n\tprivate setTagsInHash() {\r\n\t\tconst tags = this.getActiveTagValues();\r\n\t\tif (tags && tags.length > 0) {\r\n\t\t\tlocation.hash = '/' + tags.join('/');\r\n\t\t}\r\n\t}\r\n\r\n\tprivate getActiveTagValues(): string[] {\r\n\t\treturn this.tags.filter((t: HTMLInputElement) => t.checked).map(t => this.getTagValue(t));\r\n\t}\r\n\r\n\tprivate filter(isInit = false) {\r\n\t\tif (isInit) {\r\n\t\t\tthis.setActiveTagsClasses();\r\n\t\t\tthis.loadFilterElements(false);\r\n\t\t} else {\r\n\t\t\tthis.loadFilterElements();\r\n\t\t}\r\n\t\tthis.renderFilterResult();\r\n\t}\r\n\r\n\tprivate setActiveTagsClasses() {\r\n\t\tconst tagsFromHash = this.getTagsFromLocationHash();\r\n\t\tthis.tags.forEach((tag: HTMLInputElement) => {\r\n\t\t\tif (tagsFromHash.indexOf(this.getTagValue(tag)) >= 0) {\r\n\t\t\t\tif (tag.checked !== true) {\r\n\t\t\t\t\ttag.checked = true;\r\n\t\t\t\t}\r\n\t\t\t} else if (tag.checked !== false) {\r\n\t\t\t\ttag.checked = false;\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate updateSelectedFilterBadges() {\r\n\t\tconst total = this.getActiveTagValues().length;\r\n\t\tArray.from(document.querySelectorAll('.js-filter__tag__counter__total')).forEach(\r\n\t\t\t(el: HTMLElement) => (el.innerText = total === 0 ? '' : total.toString())\r\n\t\t);\r\n\t\tArray.from(document.querySelectorAll('.js-filter__tag__counter')).forEach((el: HTMLElement) => {\r\n\t\t\tconst inputs = el.parentElement.parentElement.querySelectorAll('input:checked');\r\n\t\t\tel.innerText = inputs.length === 0 ? '' : inputs.length.toString();\r\n\t\t});\r\n\r\n\t\tthis.resetAllActiveTagsElements.forEach(o => (total === 0 ? addClass(o, 'd-none') : removeClass(o, 'd-none')));\r\n\t}\r\n\r\n\tprivate getTagsFromLocationHash(): string[] {\r\n\t\treturn location.hash.split('/').filter(o => ['', '#'].indexOf(o) === -1);\r\n\t}\r\n\r\n\tprivate resetAllActiveTags(event: Event): void {\r\n\t\tevent.preventDefault();\r\n\t\tevent.stopPropagation();\r\n\t\tevent.stopImmediatePropagation();\r\n\r\n\t\tlocation.hash = '';\r\n\t\tthis.tags.forEach((t: HTMLInputElement) => (t.checked = false));\r\n\t\tthis.updateSelectedFilterBadges();\r\n\t\tthis.loadFilterElements();\r\n\t}\r\n\r\n\tprivate deactivateTag(tag: HTMLInputElement) {\r\n\t\ttag.checked = false;\r\n\t\tthis.setTagsInHash();\r\n\t}\r\n\r\n\tprivate isTagActive(tag: Element): boolean {\r\n\t\treturn (tag as HTMLInputElement).checked;\r\n\t}\r\n\r\n\tprivate getTagValue(tag: Element): string {\r\n\t\treturn tag.getAttribute(this._options.tagValue);\r\n\t}\r\n\r\n\tprivate getFilters(): string {\r\n\t\treturn this.tags\r\n\t\t\t.filter((t: HTMLInputElement) => t.checked)\r\n\t\t\t.map(t => this.getTagValue(t))\r\n\t\t\t.join(',');\r\n\t}\r\n\r\n\tprivate renderFilterResult() {\r\n\t\tthis.resultWrapper.forEach(wrapper => {\r\n\t\t\tconst filterResults = wrapper.querySelector(`.${this._options.selectors.filterResults}`);\r\n\r\n\t\t\tif (filterResults) {\r\n\t\t\t\twrapper.style.display = 'block';\r\n\r\n\t\t\t\tfilterResults.innerHTML = '';\r\n\t\t\t\tconst closeIcon = document.createElement('i');\r\n\t\t\t\tcloseIcon.className = 'material-icons';\r\n\t\t\t\tcloseIcon.innerText = 'close';\r\n\r\n\t\t\t\tthis.tags\r\n\t\t\t\t\t.filter(tag => this.isTagActive(tag))\r\n\t\t\t\t\t.forEach((tag: HTMLInputElement) => {\r\n\t\t\t\t\t\tconst li = document.createElement('li');\r\n\t\t\t\t\t\tli.innerHTML = `${tag.getAttribute('data-title')}`;\r\n\t\t\t\t\t\tli.appendChild(closeIcon.cloneNode(true));\r\n\r\n\t\t\t\t\t\tli.addEventListener('click', e => {\r\n\t\t\t\t\t\t\te.stopPropagation();\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tthis.deactivateTag(tag);\r\n\t\t\t\t\t\t\tthis.loadFilterElements();\r\n\t\t\t\t\t\t\tthis.renderFilterResult();\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tfilterResults.appendChild(li);\r\n\t\t\t\t\t});\r\n\t\t\t} else if (this.resultWrapper) {\r\n\t\t\t\twrapper.style.display = 'none';\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate updateLocationPage(page: number) {\r\n\t\t//if (page > 1) {\r\n\t\tlet path = `${window.location.pathname}?page=${page}`;\r\n\t\tif (this.searchTextInput.value !== '') {\r\n\t\t\tpath += `&query=${this.searchTextInput.value}`;\r\n\t\t}\r\n\t\tpath += `${window.location.hash}`;\r\n\t\thistory.pushState(false, '', path);\r\n\t\t// }\r\n\t}\r\n\r\n\tprivate clearSearch() {\r\n\t\tthis.searchTextInput.value = '';\r\n\t\tthis.loadFilterElements();\r\n\t}\r\n\r\n\tprivate showOrHideSearchClear() {\r\n\t\tif (this.searchTextInput.value === '') {\r\n\t\t\taddClass(this.searchClear, 'd-none');\r\n\t\t} else {\r\n\t\t\tremoveClass(this.searchClear, 'd-none');\r\n\t\t}\r\n\t}\r\n\r\n\tprivate mobileOption: HTMLOptionElement;\r\n\tprivate desktopOption: HTMLOptionElement;\r\n\r\n\tprivate showHideSortOptions() {\r\n\t\tthis.mobileOption = this.mobileOption || (this.sortSelect.querySelector('option[value=\"\"]').cloneNode(true) as HTMLOptionElement);\r\n\t\tthis.desktopOption =\r\n\t\t\tthis.desktopOption || (this.sortSelect.querySelector('option[value=\"default\"]').cloneNode(true) as HTMLOptionElement);\r\n\t\tif (window.innerWidth >= 992) {\r\n\t\t\tconst setNewValue = this.sortSelect.value === '';\r\n\t\t\tthis.removeElement(this.sortSelect.querySelector('option[value=\"\"]'));\r\n\t\t\tif (!this.sortSelect.querySelector('option[value=\"default\"]')) {\r\n\t\t\t\tthis.sortSelect.insertBefore(this.desktopOption, this.sortSelect.childNodes[0]);\r\n\t\t\t}\r\n\t\t\tif (setNewValue) {\r\n\t\t\t\tthis.sortSelect.value = 'default';\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tconst setNewValue = this.sortSelect.value === 'default';\r\n\t\t\tthis.removeElement(this.sortSelect.querySelector('option[value=\"default\"]'));\r\n\t\t\tif (!this.sortSelect.querySelector('option[value=\"\"]')) {\r\n\t\t\t\tthis.sortSelect.insertBefore(this.mobileOption, this.sortSelect.childNodes[0]);\r\n\t\t\t}\r\n\t\t\tif (setNewValue) {\r\n\t\t\t\tthis.sortSelect.value = '';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tprivate removeElement(element: Element) {\r\n\t\tif (element) {\r\n\t\t\tif (typeof element.remove === 'function') {\r\n\t\t\t\telement.remove();\r\n\t\t\t} else {\r\n\t\t\t\telement.parentNode.removeChild(element);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\nexport function filterpagestore(wrapper: HTMLElement, options?: FilterPageOptions): FilterPageStore {\r\n\treturn new FilterPageStore(wrapper, options);\r\n}\r\n","import { Component } from '@opten/compiler/metadata/component';\r\nimport hasClass from '@opten/dom/has-class';\r\nimport toggleClass from '@opten/dom/toggle-class';\r\n\r\n@Component({ className: 'js-fmc' })\r\nexport class FilterModalComponent {\r\n\tprivate content: HTMLElement;\r\n\tprivate transitionEndName: string;\r\n\r\n\tconstructor(private element: HTMLElement) {\r\n\t\tthis.content = this.element.querySelector('.js-fmc-content') as HTMLElement;\r\n\t\tthis.transitionEndName = this.getTransitionEndEventName();\r\n\t\tconst toggles = Array.from(this.element.querySelectorAll('.js-fmc-toggle')) as HTMLElement[];\r\n\t\tconst reference = this.element.querySelector('.js-fmc-toggle-reference') as HTMLElement;\r\n\r\n\t\ttoggles.forEach(toggle =>\r\n\t\t\ttoggle.addEventListener('click', () => {\r\n\t\t\t\tif (hasClass(this.element, 'is-active')) {\r\n\t\t\t\t\tthis.positionContent(reference, this.content);\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.content.addEventListener(this.transitionEndName, this.setDisplayNone);\r\n\t\t\t\t\t\ttoggleClass(this.element, 'is-active');\r\n\t\t\t\t\t}, 10);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.positionContent(toggle, this.content);\r\n\t\t\t\t\tsetTimeout(() => toggleClass(this.element, 'is-active'), 10);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tprivate setDisplayNone = () => {\r\n\t\tthis.content.style.display = 'none';\r\n\t\tthis.content.removeEventListener(this.transitionEndName, this.setDisplayNone);\r\n\t};\r\n\r\n\tprivate positionContent(toggle: HTMLElement, content: HTMLElement) {\r\n\t\tconst rect = toggle.getBoundingClientRect();\r\n\t\tcontent.style.top = `${rect.top}px`;\r\n\t\tcontent.style.left = `${rect.left}px`;\r\n\t\tcontent.style.right = `${document.body.scrollWidth - rect.right}px`;\r\n\t\tcontent.style.bottom = `${window.innerHeight - rect.bottom}px`;\r\n\t\tcontent.style.display = 'flex';\r\n\t}\r\n\r\n\tprivate getTransitionEndEventName() {\r\n\t\tlet t;\r\n\t\tconst el = document.createElement('fakeelement');\r\n\t\tconst transitions = {\r\n\t\t\ttransition: 'transitionend',\r\n\t\t\tOTransition: 'oTransitionEnd',\r\n\t\t\tMozTransition: 'transitionend',\r\n\t\t\tWebkitTransition: 'webkitTransitionEnd'\r\n\t\t};\r\n\r\n\t\tfor (t in transitions) {\r\n\t\t\tif (el.style[t] !== undefined) {\r\n\t\t\t\treturn transitions[t];\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n","import { Component } from '@opten/compiler/metadata/component';\r\nimport addClass from '@opten/dom/add-class';\r\nimport removeClass from '@opten/dom/remove-class';\r\n\r\n@Component({ className: 'js-promotions-link' })\r\nexport class PromotionLinkComponent {\r\n\tconstructor(private element: HTMLElement) {\r\n\t\tthis.check();\r\n\t}\r\n\r\n\tcheck() {\r\n\t\tfetch('/connect/store/products/promotions')\r\n\t\t\t.then(response => response.json())\r\n\t\t\t.then(hasProducts => {\r\n\t\t\t\tif (hasProducts) {\r\n\t\t\t\t\tremoveClass(this.element, 'd-none');\r\n\t\t\t\t} else {\r\n\t\t\t\t\taddClass(this.element, 'd-none');\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n}\r\n"],"sourceRoot":""}