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IgH,IAAIjE,OAAOkE,SAASC,OAAS1F,KAAKsB,aAChDrH,OAAOC,KAAKqH,OAAOC,kBAAkBe,UAAUsC,SAASrH,IACpDgB,EAAI6D,aAAasD,OAAOnI,EAAO+D,OAAOC,kBAAkBe,SAAS/E,GAAO,IAE5E+D,OAAOqE,QAAQC,aAAa,GAAI,GAAIrH,EAAIkB,WAC5C,CACA8C,uBAAuBsD,GACnB,IAAIC,EAAOD,EAAQ1E,cAAcpB,KAAKM,UAAUE,SAC5CkC,EAAO,CACP,eAAkB,qBAClB,KAAQ,gBAA2BoD,GACnC,eAAkB,oBAA+BC,GACjD,OAAWxE,OAAOC,kBAAiC,gBAAE9B,YAEzD,yBAAoCgD,EACxC,E,+CCtLJ,MAAMzC,EAAU,CACZwC,IAAK,KACDxC,EAAQ+F,QACR7E,SAASe,KAAK6B,mBAAmB,YAAa,4MAG1C,EAERiC,MAAO,KAC6C,OAA5C7E,SAAS8E,eAAe,iBACxB9E,SAAS8E,eAAe,gBAAgB9C,QAC5C,GAGR,G","sources":["webpack:///./node_modules/decode-uri-component/index.js","webpack:///./node_modules/filter-obj/index.js","webpack:///./node_modules/query-string/index.js","webpack:///./node_modules/split-on-first/index.js","webpack:///./node_modules/strict-uri-encode/index.js","webpack:///./assets/src/scripts/base/productSearchComponent.ts","webpack:///./assets/src/scripts/components/spinner.ts"],"sourcesContent":["'use strict';\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp(token, 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn decodeURIComponent(components.join(''));\n\t} catch (err) {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tvar left = components.slice(0, split);\n\tvar right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch (err) {\n\t\tvar tokens = input.match(singleMatcher);\n\n\t\tfor (var i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher);\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tvar replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD'\n\t};\n\n\tvar match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch (err) {\n\t\t\tvar result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tvar entries = Object.keys(replaceMap);\n\n\tfor (var i = 0; i < entries.length; i++) {\n\t\t// Replace all decoded components\n\t\tvar key = entries[i];\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nmodule.exports = function (encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\tencodedURI = encodedURI.replace(/\\+/g, ' ');\n\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch (err) {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n};\n","'use strict';\nmodule.exports = function (obj, predicate) {\n\tvar ret = {};\n\tvar keys = Object.keys(obj);\n\tvar isArr = Array.isArray(predicate);\n\n\tfor (var i = 0; i < keys.length; i++) {\n\t\tvar key = keys[i];\n\t\tvar val = obj[key];\n\n\t\tif (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {\n\t\t\tret[key] = val;\n\t\t}\n\t}\n\n\treturn ret;\n};\n","'use strict';\nconst strictUriEncode = require('strict-uri-encode');\nconst decodeComponent = require('decode-uri-component');\nconst splitOnFirst = require('split-on-first');\nconst filterObject = require('filter-obj');\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\nconst encodeFragmentIdentifier = Symbol('encodeFragmentIdentifier');\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[', index, ']'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')\n\t\t\t\t];\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[]'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '[]=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'colon-list-separator':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), ':list='].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), ':list=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\tcase 'bracket-separator': {\n\t\t\tconst keyValueSep = options.arrayFormat === 'bracket-separator' ?\n\t\t\t\t'[]=' :\n\t\t\t\t'=';\n\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\t// Translate null to an empty string so that it doesn't serialize as 'null'\n\t\t\t\tvalue = value === null ? '' : value;\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), keyValueSep, encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\t\t}\n\n\t\tdefault:\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, encode(key, options)];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'colon-list-separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(:list)$/.exec(key);\n\t\t\t\tkey = key.replace(/:list$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator);\n\t\t\t\tconst isEncodedArray = (typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator));\n\t\t\t\tvalue = isEncodedArray ? decode(value, options) : value;\n\t\t\t\tconst newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : value === null ? value : decode(value, options);\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\n\t\tcase 'bracket-separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = /(\\[\\])$/.test(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!isArray) {\n\t\t\t\t\taccumulator[key] = value ? decode(value, options) : value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst arrayValue = value === null ?\n\t\t\t\t\t[] :\n\t\t\t\t\tvalue.split(options.arrayFormatSeparator).map(item => decode(item, options));\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = arrayValue;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], arrayValue);\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nfunction parse(query, options) {\n\toptions = Object.assign({\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst ret = Object.create(null);\n\n\tif (typeof query !== 'string') {\n\t\treturn ret;\n\t}\n\n\tquery = query.trim().replace(/^[?#&]/, '');\n\n\tif (!query) {\n\t\treturn ret;\n\t}\n\n\tfor (const param of query.split('&')) {\n\t\tif (param === '') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet [key, value] = splitOnFirst(options.decode ? param.replace(/\\+/g, ' ') : param, '=');\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : ['comma', 'separator', 'bracket-separator'].includes(options.arrayFormat) ? value : decode(value, options);\n\t\tformatter(decode(key, options), value, ret);\n\t}\n\n\tfor (const key of Object.keys(ret)) {\n\t\tconst value = ret[key];\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const k of Object.keys(value)) {\n\t\t\t\tvalue[k] = parseValue(value[k], options);\n\t\t\t}\n\t\t} else {\n\t\t\tret[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn ret;\n\t}\n\n\treturn (options.sort === true ? Object.keys(ret).sort() : Object.keys(ret).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = ret[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = (object, options) => {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ','\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key])) ||\n\t\t(options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const key of Object.keys(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = object[key];\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\tif (value.length === 0 && options.arrayFormat === 'bracket-separator') {\n\t\t\t\treturn encode(key, options) + '[]';\n\t\t\t}\n\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n};\n\nexports.parseUrl = (url, options) => {\n\toptions = Object.assign({\n\t\tdecode: true\n\t}, options);\n\n\tconst [url_, hash] = splitOnFirst(url, '#');\n\n\treturn Object.assign(\n\t\t{\n\t\t\turl: url_.split('?')[0] || '',\n\t\t\tquery: parse(extract(url), options)\n\t\t},\n\t\toptions && options.parseFragmentIdentifier && hash ? {fragmentIdentifier: decode(hash, options)} : {}\n\t);\n};\n\nexports.stringifyUrl = (object, options) => {\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\t[encodeFragmentIdentifier]: true\n\t}, options);\n\n\tconst url = removeHash(object.url).split('?')[0] || '';\n\tconst queryFromUrl = exports.extract(object.url);\n\tconst parsedQueryFromUrl = exports.parse(queryFromUrl, {sort: false});\n\n\tconst query = Object.assign(parsedQueryFromUrl, object.query);\n\tlet queryString = exports.stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\tlet hash = getHash(object.url);\n\tif (object.fragmentIdentifier) {\n\t\thash = `#${options[encodeFragmentIdentifier] ? encode(object.fragmentIdentifier, options) : object.fragmentIdentifier}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n};\n\nexports.pick = (input, filter, options) => {\n\toptions = Object.assign({\n\t\tparseFragmentIdentifier: true,\n\t\t[encodeFragmentIdentifier]: false\n\t}, options);\n\n\tconst {url, query, fragmentIdentifier} = exports.parseUrl(input, options);\n\treturn exports.stringifyUrl({\n\t\turl,\n\t\tquery: filterObject(query, filter),\n\t\tfragmentIdentifier\n\t}, options);\n};\n\nexports.exclude = (input, filter, options) => {\n\tconst exclusionFilter = Array.isArray(filter) ? key => !filter.includes(key) : (key, value) => !filter(key, value);\n\n\treturn exports.pick(input, exclusionFilter, options);\n};\n","'use strict';\n\nmodule.exports = (string, separator) => {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (separator === '') {\n\t\treturn [string];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [string];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n};\n","'use strict';\nmodule.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n","import spinner from '../components/spinner'; // used in extended components\nimport scrollUtils from '../utils/scrollUtils'; // used in extended components\nimport customEventBus from '../libs/eventBus'; // used in extended components\nimport queryString from 'query-string';\nimport analyticsUtils from '../utils/analyticsUtils';\nimport BaseComponent from '../base/baseComponent';\nimport extUtils from '../utils/extUtils';\nexport default class ProductSearchComponent extends BaseComponent {\n constructor(element) {\n super(element);\n /* class vars */\n this.spinner = spinner;\n this.scroll = scrollUtils;\n this.customEventBus = customEventBus;\n this.analytics = analyticsUtils;\n this.qs = queryString;\n this.selectors = {\n productListWrapper: '.productgrid',\n product: '.producttile',\n siblingsTotal: '.combo-toolbarsiblings-counter',\n pagination: '.productgrid-pagination',\n paginationCounter: '.productgrid-pagination-counter-part',\n paginationProgress: '.productgrid-pagination-progressbar-value',\n paginationTotal: '.productgrid-pagination-counter-count',\n refinmentProductsTotal: '.search-results-info-counter',\n toolbar: '.toolbar',\n };\n this.waiting = false;\n this.endpoint = '';\n let catUrlString = document.querySelector(this.selectors.productListWrapper).getAttribute('data-categoryurl');\n this.categoryurl = catUrlString && catUrlString !== 'null' ? catUrlString : '';\n if (!window.productSearchData) {\n throw Error(`ProductSearchComponent: window.productSearchData not declared in static.ts`);\n }\n if (!document.querySelector(this.selectors.productListWrapper)) {\n throw Error(`ProductSearchComponent: ${this.selectors.productlistWrapper} not found`);\n }\n // \n this.setInitCount();\n this.setInitParameters();\n this.reviewPaginationCta();\n }\n setInitCount() {\n window.productSearchData.counter = document.querySelector(this.selectors.productListWrapper).querySelectorAll(this.selectors.product).length || 0;\n window.productSearchData.increment = parseInt(document.body.querySelector(this.selectors.productListWrapper).getAttribute('data-paginationsize')) || 24;\n window.productSearchData.total = parseInt(document.querySelector(this.selectors.productListWrapper).getAttribute('data-productcount'));\n window.productSearchData.datalayerOffset = 1;\n }\n setInitParameters() {\n window.productSearchData.searchParams = window.productSearchData.searchParams || this.qs.parse(document.querySelector(this.selectors.productListWrapper).getAttribute('data-querystring')) || {};\n window.productSearchData.searchParams.sz = window.productSearchData.searchParams.sz || window.productSearchData.increment;\n window.productSearchData.searchQs = window.productSearchData.searchQs || {};\n }\n async getPage() {\n if (this.waiting === false) {\n this.waiting = true;\n this.spinner.set();\n try {\n const data = await this.getFetchedDom(`${this.endpoint}?${this.qs.stringify(window.productSearchData.searchParams)}`);\n this.parseResults(data);\n }\n catch (ev) {\n console.error(ev);\n }\n finally {\n // -- toggle toolbar no results\n const toolbar = document.body.querySelector(this.selectors.toolbar);\n if (window.productSearchData.total == 0) {\n if (toolbar && !toolbar.classList.contains('toolbar-no-results'))\n toolbar.classList.add('toolbar-no-results');\n }\n else {\n if (toolbar && toolbar.classList.contains('toolbar-no-results'))\n toolbar.classList.remove('toolbar-no-results');\n }\n // -- reinit tippy\n extUtils.instanceTippy();\n // --\n this.waiting = false;\n spinner.unset();\n }\n }\n }\n async getFetchedDom(url) {\n return fetch(url, {\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n },\n }).then(function (response) {\n return response.text();\n });\n }\n parseResults(data) {\n const parser = new DOMParser();\n const html = parser.parseFromString(data, 'text/html');\n if (this.printMethod === 'replace') {\n // refinements - sorting\n this.reviewDomElements(html);\n document.body.querySelector(this.selectors.productListWrapper).innerHTML = html.querySelector(this.selectors.productListWrapper).innerHTML;\n scrollUtils.toTop();\n }\n else {\n // pagination\n document.body.querySelector(this.selectors.productListWrapper).insertAdjacentHTML('beforeend', html.body.querySelector(this.selectors.productListWrapper).innerHTML);\n }\n this.updateData(html);\n this.updatePageCounter();\n this.reviewPaginationCta();\n this.pushUrlState();\n if (this.printMethod === 'replace') {\n this.updatePageCounter();\n this.reviewPaginationCta();\n }\n this.EMIT(this.CUSTOM_MESSAGES.WISHLIST.verify, {});\n // analytics\n this.prepareDatalayer(html.body.querySelector(this.selectors.productListWrapper));\n }\n reviewDomElements(html) {\n // to override in child class - refinements\n }\n updatePageCounter() {\n const counter = document.body.querySelector(this.selectors.paginationCounter);\n const progress = document.body.querySelector(this.selectors.paginationProgress);\n const total = document.body.querySelector(this.selectors.paginationTotal);\n const siblingsTotals = document.body.querySelectorAll(this.selectors.siblingsTotal);\n const refinementsTotals = document.body.querySelectorAll(this.selectors.refinmentProductsTotal);\n if (counter) {\n counter.innerHTML = window.productSearchData.counter.toString();\n }\n if (progress) {\n progress.style.width = `${(window.productSearchData.counter / window.productSearchData.total) * 100}%`;\n }\n if (total) {\n total.innerHTML = window.productSearchData.total.toString();\n }\n if (siblingsTotals) {\n siblingsTotals.forEach(function (siblingsTotal) {\n siblingsTotal.innerHTML = window.productSearchData.total.toString();\n });\n }\n if (refinementsTotals) {\n refinementsTotals.forEach(function (refinementsTotal) {\n refinementsTotal.innerHTML = window.productSearchData.total.toString();\n const refinmentProductsItems = refinementsTotal.parentElement.querySelector('.search-results-info-counter-items');\n if (refinmentProductsItems && refinmentProductsItems.dataset.item && refinmentProductsItems.dataset.items) {\n refinmentProductsItems.innerHTML = window.productSearchData.total == 1 ? refinmentProductsItems.dataset.item : refinmentProductsItems.dataset.items;\n }\n });\n }\n document.body.querySelector(this.selectors.productListWrapper).setAttribute('data-productcount', window.productSearchData.total.toString());\n }\n updateData(html) {\n // to override in child class\n }\n reviewPaginationCta() {\n let paginationHTML = document.body.querySelector(this.selectors.pagination);\n if (paginationHTML) {\n if (paginationHTML && window.productSearchData.counter >= window.productSearchData.total) {\n paginationHTML.style.display = 'none';\n }\n else {\n paginationHTML.removeAttribute('style');\n }\n }\n }\n pushUrlState() {\n console.log(this.categoryurl);\n let url = new URL(window.location.origin + this.categoryurl);\n Object.keys(window.productSearchData.searchQs).forEach((param) => {\n url.searchParams.append(param, window.productSearchData.searchQs[param]);\n });\n window.history.replaceState('', '', url.toString());\n }\n async prepareDatalayer(context) {\n let tile = context.querySelector(this.selectors.product);\n let data = {\n 'forcedPipeline': 'ProductImpressions',\n 'pids': analyticsUtils.getListPids(context),\n 'item_list_name': analyticsUtils.getTileListName(tile),\n 'offset': (window.productSearchData.datalayerOffset).toString(),\n };\n analyticsUtils.passThroughProcessor(data);\n }\n}\n","const spinner = {\n set: () => {\n spinner.unset();\n document.body.insertAdjacentHTML('beforeend', `<div id=\"html-spinner\" class=\"spinner full visible\">\n <span class=\"spinner__dot spinner__dot--string_light\"></span>\n <span class=\"spinner__dot spinner__dot--string_dark\"></span>\n </div>`);\n },\n unset: () => {\n if (document.getElementById('html-spinner') !== null) {\n document.getElementById('html-spinner').remove();\n }\n },\n};\nexport default spinner;\n"],"names":["token","singleMatcher","RegExp","multiMatcher","decodeComponents","components","split","decodeURIComponent","join","err","length","left","slice","right","Array","prototype","concat","call","decode","input","tokens","match","i","module","exports","encodedURI","TypeError","replace","replaceMap","exec","result","entries","Object","keys","key","customDecodeURIComponent","obj","predicate","ret","isArr","isArray","val","indexOf","strictUriEncode","decodeComponent","splitOnFirst","filterObject","encodeFragmentIdentifier","Symbol","validateArrayFormatSeparator","value","encode","options","strict","encodeURIComponent","keysSorter","sort","a","b","Number","map","removeHash","hashStart","extract","queryStart","parseValue","parseNumbers","isNaN","trim","parseBooleans","toLowerCase","parse","query","assign","arrayFormat","arrayFormatSeparator","formatter","accumulator","undefined","includes","isEncodedArray","newValue","item","test","arrayValue","parserForArrayFormat","create","param","k","reduce","Boolean","stringify","object","shouldFilter","skipNull","skipEmptyString","index","keyValueSep","encoderForArrayFormat","objectCopy","filter","x","parseUrl","url","url_","hash","parseFragmentIdentifier","fragmentIdentifier","stringifyUrl","queryFromUrl","parsedQueryFromUrl","queryString","getHash","pick","exclude","exclusionFilter","string","separator","separatorIndex","str","charCodeAt","toString","toUpperCase","ProductSearchComponent","constructor","element","super","this","spinner","scroll","customEventBus","analytics","qs","selectors","productListWrapper","product","siblingsTotal","pagination","paginationCounter","paginationProgress","paginationTotal","refinmentProductsTotal","toolbar","waiting","endpoint","catUrlString","document","querySelector","getAttribute","categoryurl","window","productSearchData","Error","productlistWrapper","setInitCount","setInitParameters","reviewPaginationCta","counter","querySelectorAll","increment","parseInt","body","total","datalayerOffset","searchParams","sz","searchQs","async","set","data","getFetchedDom","parseResults","ev","console","error","classList","contains","add","remove","fetch","headers","then","response","text","html","DOMParser","parseFromString","printMethod","reviewDomElements","innerHTML","insertAdjacentHTML","updateData","updatePageCounter","pushUrlState","EMIT","CUSTOM_MESSAGES","WISHLIST","verify","prepareDatalayer","progress","siblingsTotals","refinementsTotals","style","width","forEach","refinementsTotal","refinmentProductsItems","parentElement","dataset","items","setAttribute","paginationHTML","display","removeAttribute","log","URL","location","origin","append","history","replaceState","context","tile","unset","getElementById"],"sourceRoot":""}