{"version":3,"sources":["webpack:///./app/components/a/viewports/index.js","webpack:///./app/core/js/libs/FilterBar.js","webpack:///./app/core/js/libs/slider-tracking.js","webpack:///./node_modules/querystring-es3/decode.js","webpack:///./node_modules/querystring-es3/encode.js","webpack:///./node_modules/querystring-es3/index.js"],"names":["viewports","xs","window","matchMedia","sm","md","lg","_toggledContentSel","WeakMap","_filterBarSelMobile","_triggerSelDesktop","_triggerSelMobile","_labelSelDesktop","_labelSelMobile","_attrTextOpen","_attrTextClose","_content","_open","_mustScroll","FilterBar","constructor","toggledContentSel","filterBarSelMobile","triggerSelDesktop","triggerSelMobile","labelSelDesktop","labelSelMobile","attrTextOpen","arguments","length","undefined","attrTextClose","_classPrivateFieldInitSpec","writable","value","_classPrivateFieldSet","_classPrivateFieldGet","console","error","isMobile","init","document","querySelector","handleMobile","bind","handleDesktop","handleShow","handleHide","handleShown","handleHidden","handleResize","addEventListeners","show","updateLabel","destroy","removeEventListeners","isOpen","matches","$","collapse","hide","scrollTo","options","scrollTop","offset","top","bar","getBoundingClientRect","height","animate","getLabelEl","getLabel","labelEl","getAttribute","el","innerHTML","on","addEventListener","off","removeEventListener","trackSlider","eventType","slider","name","vals","values","split","minVal","maxVal","format","data","body","brandname","category","props","eventtype","elementtyp","filterelementname","getFilterElementName","productcategory","indexOf","partsproductvalue","productdetailpagevalue","track","replace","names"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAO,MAAMA,SAAS,GAAG;EACvBC,EAAE,EAAEC,MAAM,CAACC,UAAU,CAAC,oBAAoB,CAAC;EAC3CC,EAAE,EAAEF,MAAM,CAACC,UAAU,CAAC,oBAAoB,CAAC;EAC3CE,EAAE,EAAEH,MAAM,CAACC,UAAU,CAAC,oBAAoB,CAAC;EAC3CG,EAAE,EAAEJ,MAAM,CAACC,UAAU,CAAC,qBAAqB;AAC7C,CAAC,C;;;;;;;;;;;;;;;;;;;;;;;ACLD;AACA;AACA;AACA;AAC4D;;AAE5D;AACA;AACA;AACA;AACA;AACA;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;;;;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACpFa;;AAEb,iCAAiC,mBAAO,CAAC,0DAAU;AACnD,qCAAqC,mBAAO,CAAC,0DAAU","file":"pam-filters~productfilter.chunk.js","sourcesContent":["export const viewports = {\r\n  xs: window.matchMedia('(max-width: 575px)'),\r\n  sm: window.matchMedia('(max-width: 767px)'),\r\n  md: window.matchMedia('(max-width: 991px)'),\r\n  lg: window.matchMedia('(max-width: 1199px)'),\r\n};\r\n","/**\r\n *\r\n * @type {string}\r\n */\r\nimport { viewports } from '../../../components/a/viewports';\r\n\r\n/**\r\n * FilterBar are responsible to show/hide the contents of the\r\n * pam-filter (this.#toggledContentSel) and switching the labels\r\n * of the filter-bar. As showing/hiding of the pam-filter contents\r\n * are made via bootstrap-collapse, we're relaying on those events\r\n * to determine whether the filters are open or which label should\r\n * be displayed\r\n */\r\nexport default class FilterBar {\r\n  // a css selector defining the collapsible content\r\n  // managed by the filter bar\r\n  #toggledContentSel = null;\r\n  // a css selctor used to get the filter-bar shown\r\n  // on mobile devices\r\n  #filterBarSelMobile = null;\r\n  // a css selector used to get the button which will\r\n  // trigger clicks to open/close the #toggledContentSel\r\n  // on DESKTOP devices\r\n  #triggerSelDesktop = null;\r\n  // a css selector used to get the button which will\r\n  // trigger clicks to open/close the #toggledContentSel\r\n  // on MOBILE devices\r\n  #triggerSelMobile = null;\r\n  // a css selector on DESKTOP devices, with the attributes\r\n  // for getting the translated open/close labels\r\n  #labelSelDesktop = null;\r\n  // a css selector on MOBILE devices, with the attributes\r\n  // for getting the translated open/close labels\r\n  #labelSelMobile = null;\r\n  // the name of the attribute for the \"open\" label on the\r\n  // #labelSelDesktop/#labelSelMobile elements\r\n  #attrTextOpen = null;\r\n  // the name of the attribute for the \"close\" label on the\r\n  // #labelSelDesktop/#labelSelMobile elements\r\n  #attrTextClose = null;\r\n\r\n  // the contents which are collapsed\r\n  #content = null;\r\n  // whether the filter-contents are open or not\r\n  #open = true;\r\n  // determines whether we must scroll to the filter\r\n  // contents after opening the filter or not\r\n  #mustScroll = false;\r\n\r\n  /**\r\n   *\r\n   * @param toggledContentSel\r\n   * @param filterBarSelMobile\r\n   * @param triggerSelDesktop\r\n   * @param triggerSelMobile\r\n   * @param labelSelDesktop\r\n   * @param labelSelMobile\r\n   * @param attrTextOpen\r\n   * @param attrTextClose\r\n   */\r\n  constructor(\r\n    toggledContentSel,\r\n    filterBarSelMobile,\r\n    triggerSelDesktop,\r\n    triggerSelMobile,\r\n    labelSelDesktop,\r\n    labelSelMobile,\r\n    attrTextOpen = 'data-title-open',\r\n    attrTextClose = 'data-title-close'\r\n  ) {\r\n    //\r\n    this.#toggledContentSel = toggledContentSel;\r\n    this.#filterBarSelMobile = filterBarSelMobile;\r\n    this.#triggerSelDesktop = triggerSelDesktop;\r\n    this.#triggerSelMobile = triggerSelMobile;\r\n    this.#labelSelDesktop = labelSelDesktop;\r\n    this.#labelSelMobile = labelSelMobile;\r\n    this.#attrTextOpen = attrTextOpen;\r\n    this.#attrTextClose = attrTextClose;\r\n\r\n    // validate selector's and attribute names\r\n    if (\r\n      this.#toggledContentSel === null ||\r\n      this.#filterBarSelMobile === null ||\r\n      this.#triggerSelDesktop === null ||\r\n      this.#triggerSelMobile === null ||\r\n      this.#labelSelDesktop === null ||\r\n      this.#labelSelMobile === null ||\r\n      this.#attrTextOpen === null ||\r\n      this.#attrTextClose === null\r\n    ) {\r\n      console.error('Please specify all required values for the FilterBar constructor!');\r\n    }\r\n\r\n    //\r\n    this.#open = !this.isMobile();\r\n  }\r\n\r\n  /**\r\n   * Initialise the required listeners and elements to get\r\n   * the bar working. This also will be called after the\r\n   * pam-filters where updated with new content from the\r\n   * server's filter api.\r\n   */\r\n  init() {\r\n    //\r\n    this.#content = document.querySelector(this.#toggledContentSel);\r\n\r\n    //\r\n    this.handleMobile = this.handleMobile.bind(this);\r\n    this.handleDesktop = this.handleDesktop.bind(this);\r\n    this.handleShow = this.handleShow.bind(this);\r\n    this.handleHide = this.handleHide.bind(this);\r\n    this.handleShown = this.handleShown.bind(this);\r\n    this.handleHidden = this.handleHidden.bind(this);\r\n    this.handleResize = this.handleResize.bind(this);\r\n\r\n    //\r\n    this.addEventListeners();\r\n\r\n    // open are only undefined after a previous call to\r\n    // destroy, which was called after an filter update.\r\n    // therefore we can set it to true because the filter\r\n    // contents should still be opened. This is required\r\n    // to get the correct label on mobile devices.\r\n    if (this.#open === undefined) {\r\n      this.#open = true;\r\n    }\r\n\r\n    // show initially\r\n    if (!this.isMobile()) {\r\n      this.show();\r\n    } else {\r\n    }\r\n\r\n    this.updateLabel();\r\n  }\r\n\r\n  /**\r\n   * Destroy should be called before the used dom-elements will\r\n   * be changed, so we can remove the event listeners. This\r\n   * will prevent memory leaks with lost reference to listeners\r\n   */\r\n  destroy() {\r\n    // reset open state\r\n    this.#open = undefined;\r\n    //\r\n    this.removeEventListeners();\r\n  }\r\n\r\n  /**\r\n   * Handle opening/closing on mboile devices\r\n   */\r\n  handleMobile() {\r\n    if (!this.isOpen()) {\r\n      //\r\n      this.#mustScroll = true;\r\n    }\r\n  }\r\n\r\n  /**\r\n   * Handle opening/closing on desktop devices\r\n   */\r\n  handleDesktop() {\r\n    if (!this.isOpen()) {\r\n      //\r\n      this.#mustScroll = true;\r\n    }\r\n  }\r\n\r\n  /**\r\n   * Returns true if on a mobile device an false if not\r\n   * @returns {boolean}\r\n   */\r\n  isMobile() {\r\n    return viewports.sm.matches;\r\n  }\r\n\r\n  /**\r\n   * Call to manually show the pam-filter contents\r\n   */\r\n  show() {\r\n    $(this.#toggledContentSel).collapse('show');\r\n  }\r\n\r\n  /**\r\n   * Call to manually hide the pam-filter contents\r\n   */\r\n  hide() {\r\n    $(this.#toggledContentSel).collapse('hide');\r\n  }\r\n\r\n  /**\r\n   * Return whether the pam-filter contents are open or not\r\n   * @returns {boolean}\r\n   */\r\n  isOpen() {\r\n    return this.#open;\r\n  }\r\n\r\n  /**\r\n   * Scroll to pam-filter\r\n   */\r\n  scrollTo() {\r\n    // set scroll options\r\n    const options = { scrollTop: $(this.#content).offset().top };\r\n\r\n    // special handling if on mobile\r\n    if (this.isMobile()) {\r\n      const bar = document.querySelector(this.#filterBarSelMobile);\r\n      if (bar !== null) {\r\n        // we must subtract the height of the bar as it overlaps the contents\r\n        options.scrollTop = options.scrollTop - bar.getBoundingClientRect().height;\r\n      }\r\n    }\r\n\r\n    // scroll to element\r\n    $('html, body').animate(options, 650);\r\n  }\r\n\r\n  /**\r\n   * Return the element which displays the open/close labels\r\n   * @returns {Element}\r\n   */\r\n  getLabelEl() {\r\n    if (this.isMobile()) {\r\n      return document.querySelector(this.#labelSelMobile);\r\n    }\r\n\r\n    return document.querySelector(this.#labelSelDesktop);\r\n  }\r\n\r\n  /**\r\n   * Get the correct label text based on the open/closed state\r\n   * @returns {string}\r\n   */\r\n  getLabel() {\r\n    //\r\n    const labelEl = this.getLabelEl();\r\n\r\n    //\r\n    if (this.isOpen()) {\r\n      return labelEl.getAttribute(this.#attrTextClose);\r\n    }\r\n\r\n    return labelEl.getAttribute(this.#attrTextOpen);\r\n  }\r\n\r\n  /**\r\n   * Update the label text\r\n   */\r\n  updateLabel() {\r\n    //\r\n    let el = document.querySelector(this.#labelSelDesktop);\r\n\r\n    //\r\n    if (this.isMobile()) {\r\n      el = document.querySelector(this.#labelSelMobile);\r\n    }\r\n\r\n    el.innerHTML = this.getLabel();\r\n  }\r\n\r\n  /**\r\n   * Add required event listeners\r\n   */\r\n  addEventListeners() {\r\n    // handle clicks on desktop/mobile bar\r\n    $(this.#triggerSelDesktop).on('click', this.handleDesktop);\r\n    $(this.#triggerSelMobile).on('click', this.handleMobile);\r\n    // handle bootstrap collapse events\r\n    $(this.#toggledContentSel).on('show.bs.collapse', this.handleShow);\r\n    $(this.#toggledContentSel).on('hide.bs.collapse', this.handleHide);\r\n    $(this.#toggledContentSel).on('shown.bs.collapse', this.handleShown);\r\n    $(this.#toggledContentSel).on('hidden.bs.collapse', this.handleHidden);\r\n    // handle resize events\r\n    window.addEventListener('resize', this.handleResize);\r\n  }\r\n\r\n  /**\r\n   * Remove previously added event listeners\r\n   */\r\n  removeEventListeners() {\r\n    // handle clicks on desktop/mobile bar\r\n    $(this.#triggerSelDesktop).off('click', this.handleDesktop);\r\n    $(this.#triggerSelMobile).off('click', this.handleMobile);\r\n    // handle bootstrap collapse events\r\n    $(this.#toggledContentSel).off('show.bs.collapse', this.handleShow);\r\n    $(this.#toggledContentSel).off('hide.bs.collapse', this.handleHide);\r\n    $(this.#toggledContentSel).off('shown.bs.collapse', this.handleShown);\r\n    $(this.#toggledContentSel).off('hidden.bs.collapse', this.handleHidden);\r\n    // handle resize events\r\n    window.removeEventListener('resize', this.handleResize);\r\n  }\r\n\r\n  /**\r\n   * Called after an click to open the collapsible\r\n   */\r\n  handleShow() {\r\n    // update state\r\n    this.#open = true;\r\n  }\r\n\r\n  /**\r\n   * Called after an click to close the collapsible\r\n   */\r\n  handleHide() {\r\n    // update state\r\n    this.#open = false;\r\n  }\r\n\r\n  /**\r\n   * Called after the collapsible was opened\r\n   */\r\n  handleShown() {\r\n    // update label\r\n    this.updateLabel();\r\n    // see if we must scroll to the content\r\n    if (this.#mustScroll) {\r\n      this.scrollTo();\r\n    }\r\n  }\r\n\r\n  /**\r\n   * Called after the collapsible was closed\r\n   */\r\n  handleHidden() {\r\n    // update label\r\n    this.updateLabel();\r\n  }\r\n\r\n  /**\r\n   * Called after window was resized\r\n   */\r\n  handleResize() {\r\n    this.updateLabel();\r\n  }\r\n}\r\n","import { track } from './TrackingService';\r\n\r\n/**\r\n * Create an event object for the given slider and\r\n * send it to the tracking service.\r\n * @param eventType\r\n * @param slider\r\n */\r\nexport function trackSlider(eventType, slider) {\r\n  // get the name of the slider and abort if not available\r\n  const name = slider?.getAttribute('name');\r\n  if (!name) return;\r\n\r\n  // get the values and abort if not available\r\n  const vals = slider?.getAttribute('data-value');\r\n  const values = vals?.split(',');\r\n  if (values.length !== 2) return;\r\n\r\n  // get the min and max values\r\n  const minVal = values[0];\r\n  const maxVal = values[1];\r\n\r\n  /**\r\n   *\r\n   * @param value\r\n   * @returns {*|number}\r\n   */\r\n  const format = (value) => {\r\n    const format = $(slider).data('formatter');\r\n\r\n    return format ? format[value] || value : value;\r\n  };\r\n\r\n  //\r\n  const body = document.querySelector('body');\r\n  const brandname = body ? body?.getAttribute('data-track_brandname') : '';\r\n  const category = body ? body?.getAttribute('data-track_productcategory') : '';\r\n\r\n  //\r\n  const props = {\r\n    eventtype: eventType,\r\n    elementtyp: 'Slider',\r\n    filterelementname: getFilterElementName(name),\r\n    brandname,\r\n    productcategory: category ? `c-${category}` : null,\r\n  };\r\n\r\n  // set the value prop based on the division were in\r\n  if (name.indexOf('$PAM$') >= 0) {\r\n    // parts\r\n    props.partsproductvalue = `${format(minVal)} - ${format(maxVal)}`;\r\n  } else {\r\n    // corporate\r\n    props.productdetailpagevalue = `${format(minVal)} - ${format(maxVal)}`;\r\n  }\r\n\r\n  //\r\n  track(props);\r\n}\r\n\r\n/**\r\n * As the output of the corporate and pam sliders differ,\r\n * we must handle them differently.\r\n * @param name\r\n * @returns {*}\r\n */\r\nfunction getFilterElementName(name) {\r\n  // handle corporate sliders\r\n  if (name.indexOf('SLIDER_VO_PROD_') >= 0) {\r\n    return name.replace('SLIDER_VO_PROD_', '');\r\n  }\r\n\r\n  // handle pam sliders\r\n  if (name.indexOf('$PAM$') >= 0) {\r\n    // split the name by the $ delimiter\r\n    const names = name.split('$');\r\n\r\n    return names[names.length - 1];\r\n  }\r\n\r\n  return name;\r\n}\r\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n  return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n  sep = sep || '&';\n  eq = eq || '=';\n  var obj = {};\n\n  if (typeof qs !== 'string' || qs.length === 0) {\n    return obj;\n  }\n\n  var regexp = /\\+/g;\n  qs = qs.split(sep);\n\n  var maxKeys = 1000;\n  if (options && typeof options.maxKeys === 'number') {\n    maxKeys = options.maxKeys;\n  }\n\n  var len = qs.length;\n  // maxKeys <= 0 means that we should not limit keys count\n  if (maxKeys > 0 && len > maxKeys) {\n    len = maxKeys;\n  }\n\n  for (var i = 0; i < len; ++i) {\n    var x = qs[i].replace(regexp, '%20'),\n        idx = x.indexOf(eq),\n        kstr, vstr, k, v;\n\n    if (idx >= 0) {\n      kstr = x.substr(0, idx);\n      vstr = x.substr(idx + 1);\n    } else {\n      kstr = x;\n      vstr = '';\n    }\n\n    k = decodeURIComponent(kstr);\n    v = decodeURIComponent(vstr);\n\n    if (!hasOwnProperty(obj, k)) {\n      obj[k] = v;\n    } else if (isArray(obj[k])) {\n      obj[k].push(v);\n    } else {\n      obj[k] = [obj[k], v];\n    }\n  }\n\n  return obj;\n};\n\nvar isArray = Array.isArray || function (xs) {\n  return Object.prototype.toString.call(xs) === '[object Array]';\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar stringifyPrimitive = function(v) {\n  switch (typeof v) {\n    case 'string':\n      return v;\n\n    case 'boolean':\n      return v ? 'true' : 'false';\n\n    case 'number':\n      return isFinite(v) ? v : '';\n\n    default:\n      return '';\n  }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n  sep = sep || '&';\n  eq = eq || '=';\n  if (obj === null) {\n    obj = undefined;\n  }\n\n  if (typeof obj === 'object') {\n    return map(objectKeys(obj), function(k) {\n      var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n      if (isArray(obj[k])) {\n        return map(obj[k], function(v) {\n          return ks + encodeURIComponent(stringifyPrimitive(v));\n        }).join(sep);\n      } else {\n        return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n      }\n    }).join(sep);\n\n  }\n\n  if (!name) return '';\n  return encodeURIComponent(stringifyPrimitive(name)) + eq +\n         encodeURIComponent(stringifyPrimitive(obj));\n};\n\nvar isArray = Array.isArray || function (xs) {\n  return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\nfunction map (xs, f) {\n  if (xs.map) return xs.map(f);\n  var res = [];\n  for (var i = 0; i < xs.length; i++) {\n    res.push(f(xs[i], i));\n  }\n  return res;\n}\n\nvar objectKeys = Object.keys || function (obj) {\n  var res = [];\n  for (var key in obj) {\n    if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);\n  }\n  return res;\n};\n","'use strict';\n\nexports.decode = exports.parse = require('./decode');\nexports.encode = exports.stringify = require('./encode');\n"],"sourceRoot":""}