{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../rvw_autobahn_core/cartridges/rvw_autobahn_core/cartridge/scripts/constants/SiteConstants.js","webpack:///../rvw_integrations_core/cartridges/rvw_integrations_core/cartridge/client/default/js/integrations/siteIntegrationsUtils.js","webpack:///../storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/util.js","webpack:///../rvw_autobahn_core/cartridges/rvw_autobahn_core/cartridge/client/default/js/search/search.js","webpack:///../storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/search/search.js","webpack:///../autobahn_client_core/cartridges/autobahn_client_core/cartridge/client/default/js/search/search.js","webpack:///../autobahn_client_core/cartridges/autobahn_client_core/cartridge/client/default/js/search.js","webpack:///../rvw_integrations_core/cartridges/rvw_integrations_core/cartridge/client/default/js/search.js","webpack:///../rvw_autobahn_core/cartridges/rvw_autobahn_core/cartridge/client/default/js/search.js","webpack:///../rvw_autobahn_core/cartridges/rvw_autobahn_core/cartridge/client/default/js/integrations/siteIntegrationsUtils.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","BreakpointSizes","TransitionSpeed","ComponentAnimationDelay","Spacer","placeholderImagePaths","defaultMapMarker","defaultStoreType","UP_KEY","DOWN_KEY","DIRECTION_DOWN","DIRECTION_UP","core","require","include","this","keys","forEach","$","extend","SiteConstants","setRefinementCollapseStates","status","addClass","removeClass","find","attr","toggleRefinementDrawer","$refinementBar","$modalBackground","$header","headerNavHeight","length","outerHeight","scrollTopHeight","offset","top","scrollTop","document","body","documentElement","css","siblings","fadeIn","closest","focus","fadeOut","updateDom","$results","selector","$updates","empty","html","handleRefinements","each","activeDiv","className","replace","oneDropdownSlideToggle","menuToggle","unbind","on","e","preventDefault","slideToggle","toggleClass","refinementStickyBar","showStickyRefinementData","getElementById","showStickyRefinementBarCheck","getAttribute","topHeader","querySelector","offsetHeight","mainContent","isMobile","window","classList","contains","topHeaderHeight","heightCalculation","offsetTop","addEventListener","pageYOffset","scrollHeight","innerHeight","add","setAttribute","remove","removeAttribute","initialize","ready","$element","$target","showMoreUrl","collapseMobile","collapseDesktop","hasClass","data","spinner","start","ajax","url","method","success","response","append","complete","stop","localStorage","getItem","closeRefinements","$oneRefinementsDropdown","is","target","has","slideUp","closeOneRefinementsDropdown","sort","$xhr","stopPropagation","thisValue","trigger","sortOrder","val","split","location","toString","includes","indexOf","newUrl","newSelection","selectedOptions","prop","removeAttr","abort","selectedUrl","isSortUpdate","timeout","beforeSend","$productGridElement","updatedGridHtml","children","history","replaceState","undefined","showMore","$showMoreButton","promoTileCount","replaceWith","$tempDom","sortOptions","options","pageSize","Number","option","pageUrl","URL","urlPageSize","searchParams","optionUrl","optionPageSize","isNaN","updatedPageSize","set","id","updateSortOptions","error","applyFilter","event","category","currentTarget","setItem","selectedSort","sortingRule","refinementUrl","page","methods","parseResults","filter","toggle","toggleDirection","toggleFilters","reset","resize","windowWidth","width","refinementStyle","$filterBar","filterBarStyle","filterBar","verticalMobile","verticalDesktop","horizontalOneDropdownDesktop","horizontalOneDropdownDesktopActive","horizontalOneDropdownDesktopOpen","specialHandlers","refinements","getContent","show","hide","showContentTab","filterTypeDrawer","parentNode","setTimeout","$refinementBarCloseButton","showMoreUrlParams","pop","params","URLSearchParams","showMoreUrlObj","fromEntries","entries","size","sz","pushState","verticalDrawer","sortOrderUrlParams","paramsObj","newSortedUrl","srule","goToPreviousScrollPosition","plpScrollPos","scrollObj","JSON","parse","pos","clear","integrations","baseFiles","search","searchAutobahn","initSiteIntegrations","getIntegrationSettings","yotpoCartridgeEnabled","yotpo","refreshWidgets","processInclude","CachedData","siteIntegrations"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EA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AIC,EAAYC,KAAKC,MAAMpH,aAAaiH,cACpC5M,EAAE,uBAAuBc,OAAS,GAAK+L,EAAUhF,UAAYnE,OAAOmE,QAAQ/G,QACxE4C,OAAOD,WACPiI,YAAW,WACP1L,EAAE0D,QAAQvC,UAAU0L,EAAUG,OAC7B,KAELhN,EAAE0D,QAAQvC,UAAU0L,EAAUG,KAElCrH,aAAasH,MAAM,iBAEnBtH,aAAasH,MAAM,kBAK/BnQ,EAAOD,QAAUA,G,oBClbjB,IAAIqQ,EAAevN,EAAQ,KAE3BuN,EAAaC,UAAUC,OAASzN,EAAQ,KAExC7C,EAAOD,QAAUqQ,G,oBCJjB,IAAIG,EAAiB1N,EAAQ,KAc7B0N,EAAeF,UAAUG,qBAZzB,WAE2B3N,EAAQ,IACK4N,yBAEnBC,uBACbxN,EAAE,QAAQ2C,GAAG,wEAAwE,WACjFe,OAAO+J,MAAMC,qBAOzB5Q,EAAOD,QAAUwQ,G,iCCdjB,IAAIM,EAAiBhO,EAAQ,IAEzBwN,EAAY,CACZC,OAAQzN,EAAQ,MAGpBK,EAAEoB,UAAUqD,OAAM,WACdhH,OAAOqC,KAAKqN,GAAWpN,SAAQ,SAAUzB,GACrCqP,EAAeR,EAAU7O,UAIjCxB,EAAOD,QAAU,CACbsQ,c,+BCDJrQ,EAAOD,QAAU,CACb0Q,uBARJ,WACI,OAAI7J,QAAUA,OAAOkK,YAAclK,OAAOkK,WAAWC,iBAC1CnK,OAAOkK,WAAWC,iBAEtB","file":"default/js/search.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\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\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 677);\n","'use strict';\n\n// These values should always match the variables set in _variables.scss and the contentImageBreakpoints site pref\nmodule.exports.BreakpointSizes = {\n 'sm': 544,\n 'md': 769,\n 'lg': 1024,\n 'xl': 1440\n};\n\nmodule.exports.TransitionSpeed = 200;\n\nmodule.exports.ComponentAnimationDelay = 0;\n\nmodule.exports.Spacer = 16;\n\nmodule.exports.placeholderImagePaths = {\n 'thumbnail': '/images/gray.png',\n 'imageMissing': '/images/placeholder.png'\n}\n\nmodule.exports.defaultMapMarker = {\n 'color': 'white',\n 'backgroundImage': '/images/icons/map-marker-default.svg'\n}\n\nmodule.exports.defaultStoreType = {\n 'id': 0,\n 'displayValue': 'Retail',\n 'value': 'retail'\n}\n\n// These are used in cartridge/client/default/js/components/search.js\nmodule.exports.UP_KEY = 38;\nmodule.exports.DOWN_KEY = 40;\nmodule.exports.DIRECTION_DOWN = 1;\nmodule.exports.DIRECTION_UP = -1;\n","'use strict';\n/*\n * Just have a simple pass through so we can use the site preference integration toggles\n * in rvw_integrations_core as well as rvw_autobahn_core\n */\nvar core = require('core/integrations/siteIntegrationsUtils');\n\nmodule.exports = core;\n\n","'use strict';\n\nmodule.exports = function (include) {\n if (typeof include === 'function') {\n include.call(this);\n } else if (typeof include === 'object') {\n Object.keys(include).forEach(function (key) {\n if (typeof include[key] === 'function') {\n include[key].call(include);\n }\n });\n }\n};\n","var exports = $.extend({}, require('base/search/search'));\nvar SiteConstants = require('constants/SiteConstants');\n\nvar setRefinementCollapseStates = status => {\n\n if (status === 'open') {\n $('.refinement').addClass('active');\n }\n else if (status === 'closed') {\n $('.refinement').removeClass('active');\n $('.refinement').find('button.title').attr('aria-expanded','false');\n }\n};\n\nvar toggleRefinementDrawer = status => {\n var $refinementBar = $('.refinement-bar');\n var $modalBackground = $('.modal-background');\n\n if (status === 'open') {\n var $header = $('header');\n var bannerHeight = $header.find('.header-banner').length ? $header.find('.header-banner').outerHeight() : 0;\n var navHeight = $header.find('.header-nav').length ? $header.find('.header-nav').outerHeight() : 0;\n var headerNavHeight = bannerHeight + navHeight;\n var scrollTopHeight = $header.offset().top;\n $('html').scrollTop(scrollTopHeight);\n // Following two lines for MS Edge to work\n document.body.scrollTop = scrollTopHeight;\n document.documentElement.scrollTop = scrollTopHeight;\n $('html').addClass('lock-scroll');\n $('body').addClass('mobile-filter-drawer-in');\n $refinementBar.addClass('in').css('top', headerNavHeight).siblings().attr('aria-hidden', true);\n $modalBackground.fadeIn(SiteConstants.TransitionSpeed).css('top', headerNavHeight);\n $refinementBar.closest('.row').siblings().attr('aria-hidden', true);\n $refinementBar.closest('.tab-pane.active').siblings().attr('aria-hidden', true);\n $refinementBar.closest('.container.search-results').siblings().attr('aria-hidden', true);\n $refinementBar.find('.close').focus();\n } else {\n $('html').removeClass('lock-scroll');\n $('body').removeClass('mobile-filter-drawer-in');\n $refinementBar.removeClass('in').css('top', '').siblings().attr('aria-hidden', false);\n $modalBackground.fadeOut(SiteConstants.TransitionSpeed);\n $refinementBar.closest('.row').siblings().attr('aria-hidden', false);\n $refinementBar.closest('.tab-pane.active').siblings().attr('aria-hidden', false);\n $refinementBar.closest('.container.search-results').siblings().attr('aria-hidden', false);\n $('.btn.filter-results').focus();\n }\n};\n\nvar toggleFilters = (e) => {\n e.preventDefault();\n var toggleDirection = 'open';\n if ($('.refinement-bar .refinement').hasClass('active')) {\n toggleDirection = 'closed';\n }\n setRefinementCollapseStates(toggleDirection);\n};\n\n/**\n * Update DOM elements with Ajax results\n *\n * @param {Object} $results - jQuery DOM element\n * @param {string} selector - DOM element to look up in the $results\n * @return {undefined}\n */\nfunction updateDom($results, selector) {\n var $updates = $results.find(selector);\n $(selector).empty().html($updates.html());\n}\n\n/**\n * This function retrieves another page of content to display in the content search grid\n * @param {JQuery} $element - the jquery element that has the click event attached\n * @param {JQuery} $target - the jquery element that will receive the response\n * @return {undefined}\n */\nfunction getContent($element, $target) {\n var showMoreUrl = $element.data('url');\n $.spinner().start();\n $.ajax({\n url: showMoreUrl,\n method: 'GET',\n success: function (response) {\n $target.append(response);\n },\n complete: function () {\n $.spinner().stop();\n }\n });\n}\n\n/**\n * Update sort option URLs from Ajax response\n *\n * @param {string} response - Ajax response HTML code\n * @return {undefined}\n */\nfunction updateSortOptions(response, promoTileCount) {\n var $tempDom = $('
').append($(response));\n var sortOptions = $tempDom.find('.grid-footer').data('sort-options').options;\n var pageSize = Number($tempDom.find('.grid-footer').data('page-size'));\n\n sortOptions.forEach(option => {\n var pageUrl = new URL(window.location);\n var urlPageSize = pageUrl.searchParams.get('sz') !== null ? Number(pageUrl.searchParams.get('sz')) : null;\n var optionUrl = new URL(option.url);\n var optionPageSize = Number(optionUrl.searchParams.get('sz'));\n\n // If 'sz' is already defined in URL, but promo tiles aren't already accounted for, decrement sz param\n if (!isNaN(urlPageSize) && urlPageSize !== optionPageSize - pageSize) {\n var updatedPageSize = optionPageSize - promoTileCount;\n optionUrl.searchParams.set('sz', updatedPageSize);\n option.url = optionUrl.toString();\n }\n\n $('option.' + option.id).val(option.url);\n });\n}\n\n/**\n * Keep refinement panes expanded/collapsed after Ajax refresh\n *\n * @param {Object} $results - jQuery DOM element\n * @return {undefined}\n */\nfunction handleRefinements($results, selector) {\n $('.refinement.active').each(function () {\n $(this).removeClass('active');\n var activeDiv = $results.find('.' + $(this)[0].className.replace(/ /g, '.'));\n activeDiv.addClass('active');\n activeDiv.find('button.title').attr('aria-expanded', 'true');\n });\n updateDom($results, selector);\n}\n\n/**\n * Parse Ajax results and updated select DOM elements\n *\n * @param {string} response - Ajax response HTML code\n * @return {undefined}\n */\nfunction parseResults(response) {\n var $results = $(response);\n var isMobile = window.isMobile();\n\n if (isMobile) {\n var $refinements = $results.find('.refinements[data-refinement-style-mobile]');\n var refinementStyle = $refinements.data('refinement-style-mobile');\n var selector = `[data-refinement-style-mobile=\"${refinementStyle}\"]`;\n } else {\n var $refinements = $results.find('.refinements[data-refinement-style-desktop]');\n var refinementStyle = $refinements.data('refinement-style-desktop');\n var selector = `[data-refinement-style-desktop=\"${refinementStyle}\"]`;\n };\n\n var $filterBar = $results.find('.filter-bar');\n var filterBarStyle = !isMobile ? $filterBar.attr('data-filter-bar-style-desktop') : $filterBar.attr('data-filter-bar-style-mobile');\n var filterBar = !isMobile ? '[data-filter-bar-style-desktop=\"' + filterBarStyle + '\"]' : '[data-filter-bar-style-mobile=\"' + filterBarStyle + '\"]';\n\n var verticalMobile = isMobile && selector === '[data-refinement-style-mobile=\"vertical\"]';\n var verticalDesktop = !isMobile && selector === '[data-refinement-style-desktop=\"vertical\"]';\n var horizontalMultipleDropdownsDesktop = !isMobile && selector === '[data-refinement-style-desktop=\"horizontal-multiple-dropdowns\"]';\n var horizontalOneDropdownDesktop = !isMobile && selector === '[data-refinement-style-desktop=\"horizontal-one-dropdown\"]';\n var horizontalOneDropdownDesktopActive = $('.collapse-filters-wrapper').hasClass('active');\n var horizontalOneDropdownDesktopOpen = false;\n\n if (horizontalOneDropdownDesktop && horizontalOneDropdownDesktopActive) {\n horizontalOneDropdownDesktopOpen = true;\n }\n\n if (verticalMobile || verticalDesktop) {\n var specialHandlers = {\n selector : handleRefinements\n };\n\n Object.keys(specialHandlers).forEach(function (selector) {\n specialHandlers[selector]($results, selector);\n });\n };\n\n if (!isMobile) {\n var refinements = '.desktop-search-refinements';\n } else {\n var refinements = '.mobile-search-refinements';\n };\n\n // Update DOM elements that do not require special handling\n [\n '.grid-header',\n '.header-bar',\n '.header.page-title',\n '.product-grid',\n '.show-more',\n refinements,\n filterBar\n ].forEach((selector) => {\n updateDom($results, selector);\n });\n\n if (horizontalOneDropdownDesktopOpen === true) {\n $('.collapse-filters-wrapper').addClass('active').css('display', 'block');\n }\n\n $('body').trigger('ajax:load.ajaxEvents', [$('.search-results')]);\n\n exports.refinementStickyBar();\n exports.oneDropdownSlideToggle();\n}\n\nexports.oneDropdownSlideToggle = function() {\n var oneDropdownFilter = $('.horizontal-onedropdown-filter');\n if (oneDropdownFilter) {\n var menuToggle = $('.horizontal-onedropdown-filter-btn').unbind();\n menuToggle.removeClass('open');\n\n menuToggle.on('touchstart click', function(e) {\n e.preventDefault();\n $('.collapse-filters-wrapper').slideToggle(SiteConstants.TransitionSpeed).toggleClass('active');\n menuToggle.toggleClass('open');\n });\n }\n}\n\nexports.refinementStickyBar = function() {\n var showStickyRefinementData = document.getElementById('horizontal-filter');\n if (showStickyRefinementData) {\n var showStickyRefinementBarCheck = showStickyRefinementData.getAttribute('data-sticky-refinement-bar');\n var topHeader = document.getElementById('top-header'); // includes promobar and nav\n var headerNavHeight = document.querySelector('.header-nav').offsetHeight;\n var mainContent = document.getElementById('maincontent');\n var isMobile = window.isMobile();\n\n //if header is fixed, use just the nav bar to measure top of page, else use the entire header (may contain promo bar)\n if (topHeader.classList.contains('fixed-header')) {\n var topHeaderHeight = headerNavHeight;\n var heightCalculation = (document.querySelector('.search-results').offsetTop - headerNavHeight);\n } else {\n var topHeaderHeight = 0;\n var heightCalculation = document.querySelector('.search-results').offsetTop;\n }\n\n if (showStickyRefinementData && !isMobile && showStickyRefinementBarCheck == 'true') {\n // Note: This is intentionally not using utilities/scroll.js so that it can fix immediately vs. being debounced. Should be replaced with CSS position:sticky once IE11 support is dropped.\n window.addEventListener('scroll', function() {\n //main sticky horiziontal dropdown filter functionality - only show when scrolled past in-page refinement button section\n if (window.pageYOffset > heightCalculation && mainContent.scrollHeight > (window.innerHeight + showStickyRefinementData.offsetHeight)) {\n showStickyRefinementData.classList.add('sticky-filters');\n showStickyRefinementData.setAttribute('style', 'top:' + topHeaderHeight + 'px;');\n mainContent.setAttribute('style', 'padding-top:' + showStickyRefinementData.offsetHeight + 'px;');\n } else if (showStickyRefinementData.classList.contains('sticky-filters') && window.pageYOffset < heightCalculation) {\n showStickyRefinementData.classList.remove('sticky-filters');\n mainContent.removeAttribute('style');\n }\n });\n }\n }\n}\n\nvar closeOneRefinementsDropdown = (e) => {\n var $oneRefinementsDropdown = $('.horizontal-onedropdown-filter-group');\n if ((!$('.collapse-one-dropdown-filter').is(e.target) && $oneRefinementsDropdown.has(e.target).length === 0)\n || $('.close-one-refinements-dropdown').is(e.target)) {\n $('.collapse-filters-wrapper').slideUp().removeClass('active');\n }\n};\n\nexports.initialize = () => $(document).ready(function () {\n var isMobile = window.isMobile();\n var collapseMobile = $('[data-collapse-mobile]').attr('data-collapse-mobile') === 'true' ? true : false;\n var collapseDesktop = $('[data-collapse-desktop]').attr('data-collapse-desktop') === 'true' ? true : false;\n if (isMobile && collapseMobile) {\n setRefinementCollapseStates('close');\n } else if (isMobile && !collapseMobile) {\n setRefinementCollapseStates('open');\n } else if (!isMobile && collapseDesktop) {\n setRefinementCollapseStates('close');\n } else if (!isMobile && !collapseDesktop) {\n setRefinementCollapseStates('open');\n }\n if ($('#articles-tab').hasClass('active') && $('#content-search-results').html() === '') {\n getContent($('.content-search'), $('#content-search-results'));\n }\n\n var refinementCategoryOpen = localStorage.getItem('refinement-category');\n if (refinementCategoryOpen) {\n $('.refinement-category').addClass('active');\n }\n});\n\nexports.closeRefinements = function () {\n\n $('html').on('click', '.refinement-bar button.close, .mobile-filter-drawer-in .modal-background', () => toggleRefinementDrawer('close'));\n //for horizontal one dropdown menu\n $('html').on('click', (e) => closeOneRefinementsDropdown(e));\n}\n\nexports.sort = function () {\n var $xhr;\n // Handle sort order menu selection\n $('.container').on('change', '[name=sort-order]', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var thisValue = this.value;\n $(this).trigger('search:sort', thisValue);\n var sortOrder = $(this).val().split('srule')[1];\n var url = window.location.toString().split('&srule')[0];\n if (url.includes('srule')) {\n url = window.location.toString().split('?srule')[0];\n }\n var split = url.indexOf('?') !== -1 ? '&' : '?';\n var newUrl = url + split + 'srule' + sortOrder;\n\n var newSelection = this.selectedOptions[0];\n $('[name=\"sort-order\"]').find('option[selected=\"selected\"], option:selected').prop('selected',false).removeAttr('selected');\n $(newSelection).prop('selected', true).attr('selected', true);\n\n // Cancel previous request\n $xhr && $xhr.abort && $xhr.abort();\n\n $xhr = $.ajax({\n url: thisValue,\n data: {\n selectedUrl: thisValue,\n isSortUpdate: true\n },\n method: 'GET',\n timeout: 10000,\n beforeSend: function () {\n $.spinner().start();\n },\n success: function (response) {\n var $productGridElement = $(response).find('.product-grid'); // if response is coming from page designer\n var updatedGridHtml = $productGridElement.length > 0 ? $productGridElement.children() : response;\n $('.product-grid').empty().html(updatedGridHtml);\n history.replaceState(undefined, '', newUrl);\n $('body').trigger('search:sort--success');\n $('body').trigger('ajax:load.ajaxEvents', [$('.product-grid')]);\n },\n complete: function () {\n $.spinner().stop();\n }\n });\n });\n}\n\nexports.showMore = function () {\n // Show more products\n $('.container').on('click', '.show-more button', function (e) {\n e.stopPropagation();\n e.preventDefault();\n var showMoreUrl = $(this).data('url');\n var $showMoreButton = $(e.target);\n $.spinner().start();\n $(this).trigger('search:showMore', e);\n\n $.ajax({\n url: showMoreUrl,\n data: { selectedUrl: showMoreUrl },\n method: 'GET',\n success: function (response) {\n var promoTileCount = $showMoreButton.closest('.product-grid').find('[class*=\"experience-promoTile\"]').length;\n $('.grid-footer').replaceWith(response);\n updateSortOptions(response, promoTileCount);\n $('body').trigger('search:showMore--success');\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n });\n}\n\nexports.applyFilter = function () {\n var $xhr;\n // Handle refinement value selection and reset click\n $('.container').on(\n 'click',\n '.refinements li button, .refinement-bar button.reset, .filter-value button, .swatch-filter button',\n function (event) {\n var category = $(event.currentTarget).closest('.refinement');\n\n if (category && category.hasClass('refinement-category')) {\n localStorage.setItem('refinement-category', true);\n return;\n }\n //find new attr on Sort if selected, if not use the default\n var selectedSort = $('select[name=\"sort-order\"]').find('option[selected=\"selected\"]');\n if (selectedSort.data('id') != null) {\n var sortingRule = selectedSort.data('id');\n } else {\n var sortingRule = $('select[name=\"sort-order\"] option:selected').data('id');\n }\n //create a new url with the correct preferences\n if ($(this).data('href').includes('srule')) {\n var refinementUrl = $(this).data('href').replace(/(srule=).*?(&|$)/,'$1' + sortingRule + '$2');\n } else if (!$(this).data('href').includes('srule') && sortingRule != null) {\n var split = $(this).data('href').indexOf('?') !== -1 ? '&' : '?';\n var refinementUrl = $(this).data('href') + split + 'srule=' + sortingRule;\n } else {\n var refinementUrl = $(this).data('href');\n }\n\n event.preventDefault();\n event.stopPropagation();\n $(this).trigger('search:filter', event);\n\n // Cancel previous request\n $xhr && $xhr.abort && $xhr.abort();\n\n $xhr = $.ajax({\n url: refinementUrl,\n data: {\n page: $('.grid-footer').data('page-number'),\n selectedUrl: refinementUrl\n },\n method: 'GET',\n timeout: 10000,\n beforeSend: function () {\n $.spinner().start();\n },\n success: function (response) {\n module.exports.methods.parseResults(response);\n history.replaceState(undefined, '', refinementUrl);\n $('body').trigger('search:filter--success');\n },\n complete: function () {\n $.spinner().stop();\n }\n });\n });\n};\n\nexports.filter = () => $('html').on('click', 'button.filter-results', () => toggleRefinementDrawer('open'));\nexports.toggle = () => $('html').on('click', '.js-toggle-filters', (e) => toggleFilters(e));\nexports.reset = () => $('html').on('click', '.js-reset', (e) => $('.refinements li button').trigger('click'));\nexports.resize = () => {\n var windowWidth = $(window).width();\n\n $(window).resize(() => {\n // iOS fix: make sure window actually resized before triggering resize functions\n if (windowWidth !== $(window).width()) {\n windowWidth = $(window).width();\n toggleRefinementDrawer('close');\n exports.oneDropdownSlideToggle();\n }\n });\n};\n\nexports.methods = {\n parseResults: parseResults\n}\n\nmodule.exports = exports;\n","'use strict';\n\n/**\n * Update DOM elements with Ajax results\n *\n * @param {Object} $results - jQuery DOM element\n * @param {string} selector - DOM element to look up in the $results\n * @return {undefined}\n */\nfunction updateDom($results, selector) {\n var $updates = $results.find(selector);\n $(selector).empty().html($updates.html());\n}\n\n/**\n * Keep refinement panes expanded/collapsed after Ajax refresh\n *\n * @param {Object} $results - jQuery DOM element\n * @return {undefined}\n */\nfunction handleRefinements($results) {\n $('.refinement.active').each(function () {\n $(this).removeClass('active');\n var activeDiv = $results.find('.' + $(this)[0].className.replace(/ /g, '.'));\n activeDiv.addClass('active');\n activeDiv.find('button.title').attr('aria-expanded', 'true');\n });\n\n updateDom($results, '.refinements');\n}\n\n/**\n * Parse Ajax results and updated select DOM elements\n *\n * @param {string} response - Ajax response HTML code\n * @return {undefined}\n */\nfunction parseResults(response) {\n var $results = $(response);\n var specialHandlers = {\n '.refinements': handleRefinements\n };\n\n // Update DOM elements that do not require special handling\n [\n '.grid-header',\n '.header-bar',\n '.header.page-title',\n '.product-grid',\n '.show-more',\n '.filter-bar'\n ].forEach(function (selector) {\n updateDom($results, selector);\n });\n\n Object.keys(specialHandlers).forEach(function (selector) {\n specialHandlers[selector]($results);\n });\n}\n\n/**\n * This function retrieves another page of content to display in the content search grid\n * @param {JQuery} $element - the jquery element that has the click event attached\n * @param {JQuery} $target - the jquery element that will receive the response\n * @return {undefined}\n */\nfunction getContent($element, $target) {\n var showMoreUrl = $element.data('url');\n $.spinner().start();\n $.ajax({\n url: showMoreUrl,\n method: 'GET',\n success: function (response) {\n $target.append(response);\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n}\n\n/**\n * Update sort option URLs from Ajax response\n *\n * @param {string} response - Ajax response HTML code\n * @return {undefined}\n */\nfunction updateSortOptions(response) {\n var $tempDom = $('
').append($(response));\n var sortOptions = $tempDom.find('.grid-footer').data('sort-options').options;\n sortOptions.forEach(function (option) {\n $('option.' + option.id).val(option.url);\n });\n}\n\nmodule.exports = {\n filter: function () {\n // Display refinements bar when Menu icon clicked\n $('.container').on('click', 'button.filter-results', function () {\n $('.refinement-bar, .modal-background').show();\n $('.refinement-bar').siblings().attr('aria-hidden', true);\n $('.refinement-bar').closest('.row').siblings().attr('aria-hidden', true);\n $('.refinement-bar').closest('.tab-pane.active').siblings().attr('aria-hidden', true);\n $('.refinement-bar').closest('.container.search-results').siblings().attr('aria-hidden', true);\n $('.refinement-bar .close').focus();\n });\n },\n\n closeRefinements: function () {\n // Refinements close button\n $('.container').on('click', '.refinement-bar button.close, .modal-background', function () {\n $('.refinement-bar, .modal-background').hide();\n $('.refinement-bar').siblings().attr('aria-hidden', false);\n $('.refinement-bar').closest('.row').siblings().attr('aria-hidden', false);\n $('.refinement-bar').closest('.tab-pane.active').siblings().attr('aria-hidden', false);\n $('.refinement-bar').closest('.container.search-results').siblings().attr('aria-hidden', false);\n $('.btn.filter-results').focus();\n });\n },\n\n resize: function () {\n // Close refinement bar and hide modal background if user resizes browser\n $(window).resize(function () {\n $('.refinement-bar, .modal-background').hide();\n $('.refinement-bar').siblings().attr('aria-hidden', false);\n $('.refinement-bar').closest('.row').siblings().attr('aria-hidden', false);\n $('.refinement-bar').closest('.tab-pane.active').siblings().attr('aria-hidden', false);\n $('.refinement-bar').closest('.container.search-results').siblings().attr('aria-hidden', false);\n });\n },\n\n sort: function () {\n // Handle sort order menu selection\n $('.container').on('change', '[name=sort-order]', function (e) {\n e.preventDefault();\n\n $.spinner().start();\n $(this).trigger('search:sort', this.value);\n $.ajax({\n url: this.value,\n data: { selectedUrl: this.value },\n method: 'GET',\n success: function (response) {\n $('.product-grid').empty().html(response);\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n });\n },\n\n showMore: function () {\n // Show more products\n $('.container').on('click', '.show-more button', function (e) {\n e.stopPropagation();\n var showMoreUrl = $(this).data('url');\n e.preventDefault();\n\n $.spinner().start();\n $(this).trigger('search:showMore', e);\n $.ajax({\n url: showMoreUrl,\n data: { selectedUrl: showMoreUrl },\n method: 'GET',\n success: function (response) {\n $('.grid-footer').replaceWith(response);\n updateSortOptions(response);\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n });\n },\n\n applyFilter: function () {\n // Handle refinement value selection and reset click\n $('.container').on(\n 'click',\n '.refinements li button, .refinement-bar button.reset, .filter-value button, .swatch-filter button',\n function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $.spinner().start();\n $(this).trigger('search:filter', e);\n $.ajax({\n url: $(this).data('href'),\n data: {\n page: $('.grid-footer').data('page-number'),\n selectedUrl: $(this).data('href')\n },\n method: 'GET',\n success: function (response) {\n parseResults(response);\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n });\n },\n\n showContentTab: function () {\n // Display content results from the search\n $('.container').on('click', '.content-search', function () {\n if ($('#content-search-results').html() === '') {\n getContent($(this), $('#content-search-results'));\n }\n });\n\n // Display the next page of content results from the search\n $('.container').on('click', '.show-more-content button', function () {\n getContent($(this), $('#content-search-results'));\n $('.show-more-content').remove();\n });\n }\n};\n","var exports = $.extend({}, require('core/search/search'));\nvar SiteConstants = require('constants/SiteConstants');\n\nvar filterTypeDrawer = $('.search-results').data('filter-type') == \"vertical-drawer\" ? true : false;\n\nvar toggleRefinementDrawer = status => {\n var $refinementBar = $('.refinement-bar');\n var $refinementBarCloseButton = $('.refinement-bar-close-button');\n var $modalBackground = $('.modal-background');\n\n if (status === 'open') {\n var $header = $('header');\n var scrollTopHeight = $header.offset().top;\n $('html').scrollTop(scrollTopHeight);\n // Following two lines for MS Edge to work\n document.body.scrollTop = scrollTopHeight;\n document.documentElement.scrollTop = scrollTopHeight;\n $('html').addClass('lock-scroll');\n if (filterTypeDrawer === true) {\n $('body').addClass('filter-drawer-in');\n } else {\n $('body').addClass('mobile-filter-drawer-in');\n }\n\n //After scrollTop header shouldn't have fixed. If left as is the class is not removed prior to measuring the height of the header causing an offset.\n if ($('#header-nav').hasClass('fixed')) {\n $('#header-nav').removeClass('fixed');\n }\n var bannerHeight = $header.find('.header-banner').length ? $header.find('.header-banner').outerHeight() : 0;\n var navHeight = $header.find('.header-nav').length ? $header.find('.header-nav').outerHeight() : 0;\n var headerNavHeight = bannerHeight + navHeight;\n $refinementBar.addClass('in').css('top', headerNavHeight).siblings().attr('aria-hidden', true);\n $refinementBarCloseButton.addClass('in').attr('aria-hidden', false);\n $modalBackground.fadeIn(SiteConstants.TransitionSpeed).css('top', headerNavHeight);\n $refinementBar.closest('.row').siblings().attr('aria-hidden', true);\n $refinementBar.closest('.tab-pane.active').siblings().attr('aria-hidden', true);\n $refinementBar.closest('.container.search-results').siblings().attr('aria-hidden', true);\n $refinementBar.find('.close').focus();\n } else {\n $('html').removeClass('lock-scroll');\n if (filterTypeDrawer === true) {\n $('body').removeClass('filter-drawer-in');\n } else {\n $('body').removeClass('mobile-filter-drawer-in');\n }\n $refinementBar.removeClass('in').css('top', '').siblings().attr('aria-hidden', false);\n $refinementBarCloseButton.removeClass('in').attr('aria-hidden', true);\n $modalBackground.fadeOut(SiteConstants.TransitionSpeed);\n $refinementBar.closest('.row').siblings().attr('aria-hidden', false);\n $refinementBar.closest('.tab-pane.active').siblings().attr('aria-hidden', false);\n $refinementBar.closest('.container.search-results').siblings().attr('aria-hidden', false);\n $('.btn.filter-results').focus();\n }\n};\n\n/**\n * Update DOM elements with Ajax results\n *\n * @param {Object} $results - jQuery DOM element\n * @param {string} selector - DOM element to look up in the $results\n * @return {undefined}\n */\n function updateDom($results, selector) {\n var $updates = $results.find(selector);\n $(selector).empty().html($updates.html());\n}\n\n/**\n * Update sort option URLs from Ajax response\n *\n * @param {string} response - Ajax response HTML code\n * @return {undefined}\n */\n function updateSortOptions(response, promoTileCount) {\n var $tempDom = $('
').append($(response));\n var sortOptions = $tempDom.find('.grid-footer').data('sort-options').options;\n var pageSize = Number($tempDom.find('.grid-footer').data('page-size'));\n\n sortOptions.forEach(option => {\n var pageUrl = new URL(window.location);\n var urlPageSize = pageUrl.searchParams.get('sz') !== null ? Number(pageUrl.searchParams.get('sz')) : null;\n var optionUrl = new URL(option.url);\n var optionPageSize = Number(optionUrl.searchParams.get('sz'));\n\n // If 'sz' is already defined in URL, but promo tiles aren't already accounted for, decrement sz param\n if (!isNaN(urlPageSize) && urlPageSize !== optionPageSize - pageSize) {\n var updatedPageSize = optionPageSize - promoTileCount;\n optionUrl.searchParams.set('sz', updatedPageSize);\n option.url = optionUrl.toString();\n }\n\n $('option.' + option.id).val(option.url);\n });\n}\n\n\n/**\n * Keep refinement panes expanded/collapsed after Ajax refresh\n *\n * @param {Object} $results - jQuery DOM element\n * @return {undefined}\n */\nfunction handleRefinements($results, selector) {\n $('.refinement.active').each(function () {\n $(this).removeClass('active');\n var activeDiv = $results.find('.' + $(this)[0].className.replace(/ /g, '.'));\n activeDiv.addClass('active');\n activeDiv.find('button.title').attr('aria-expanded', 'true');\n });\n updateDom($results, selector);\n}\n\n/**\n * Parse Ajax results and updated select DOM elements\n *\n * @param {string} response - Ajax response HTML code\n * @return {undefined}\n */\nfunction parseResults(response) {\n var $results = $(response);\n var isMobile = window.isMobile();\n\n if (filterTypeDrawer === true) {\n var $refinements = $results.find('.refinements[data-refinement-style]');\n var refinementStyle = $refinements.data('refinement-style');\n var selector = `[data-refinement-style=\"${refinementStyle}\"]`;\n } else if (isMobile) {\n var $refinements = $results.find('.refinements[data-refinement-style-mobile]');\n var refinementStyle = $refinements.data('refinement-style-mobile');\n var selector = `[data-refinement-style-mobile=\"${refinementStyle}\"]`;\n } else {\n var $refinements = $results.find('.refinements[data-refinement-style-desktop]');\n var refinementStyle = $refinements.data('refinement-style-desktop');\n var selector = `[data-refinement-style-desktop=\"${refinementStyle}\"]`;\n };\n\n var $filterBar = $results.find('.filter-bar');\n var filterBarStyle = !isMobile ? $filterBar.attr('data-filter-bar-style-desktop') : $filterBar.attr('data-filter-bar-style-mobile');\n var filterBar = !isMobile ? '[data-filter-bar-style-desktop=\"' + filterBarStyle + '\"]' : '[data-filter-bar-style-mobile=\"' + filterBarStyle + '\"]';\n\n var verticalMobile = isMobile && selector === '[data-refinement-style-mobile=\"vertical\"]';\n var verticalDesktop = !isMobile && selector === '[data-refinement-style-desktop=\"vertical\"]';\n var horizontalMultipleDropdownsDesktop = !isMobile && selector === '[data-refinement-style-desktop=\"horizontal-multiple-dropdowns\"]';\n var horizontalOneDropdownDesktop = !isMobile && selector === '[data-refinement-style-desktop=\"horizontal-one-dropdown\"]';\n var horizontalOneDropdownDesktopActive = $('.collapse-filters-wrapper').hasClass('active');\n var horizontalOneDropdownDesktopOpen = false;\n var verticalDrawer = selector === '[data-refinement-style=\"vertical-drawer\"]';\n\n if (horizontalOneDropdownDesktop && horizontalOneDropdownDesktopActive) {\n horizontalOneDropdownDesktopOpen = true;\n }\n\n if (verticalMobile || verticalDesktop || verticalDrawer) {\n var specialHandlers = {\n selector : handleRefinements\n };\n\n Object.keys(specialHandlers).forEach(function (selector) {\n specialHandlers[selector]($results, selector);\n });\n };\n\n if (verticalDrawer) {\n var refinements = '.search-refinements';\n } else if (!isMobile) {\n var refinements = '.desktop-search-refinements';\n } else {\n var refinements = '.mobile-search-refinements';\n };\n\n // Update DOM elements that do not require special handling\n [\n '.grid-header',\n '.header-bar',\n '.header.page-title',\n '.product-grid',\n '.show-more',\n refinements,\n filterBar\n ].forEach((selector) => {\n updateDom($results, selector);\n });\n\n if (horizontalOneDropdownDesktopOpen === true) {\n $('.collapse-filters-wrapper').addClass('active').css('display', 'block');\n }\n\n $('body').trigger('ajax:load.ajaxEvents', [$('.search-results')]);\n\n exports.refinementStickyBar();\n exports.oneDropdownSlideToggle();\n}\n\nexports.oneDropdownSlideToggle = function() {\n var oneDropdownFilter = $('.horizontal-onedropdown-filter');\n if (oneDropdownFilter) {\n var menuToggle = $('.horizontal-onedropdown-filter-btn').unbind();\n menuToggle.removeClass('open');\n\n menuToggle.on('touchstart click', function(e) {\n e.preventDefault();\n $('.collapse-filters-wrapper').slideToggle(SiteConstants.TransitionSpeed).toggleClass('active');\n menuToggle.toggleClass('open');\n });\n }\n}\n\nexports.refinementStickyBar = function() {\n var showStickyRefinementData = document.getElementById('horizontal-filter');\n if (showStickyRefinementData) {\n var showStickyRefinementBarCheck = showStickyRefinementData.getAttribute('data-sticky-refinement-bar');\n var topHeader = document.getElementById('top-header'); // includes promobar and nav\n var headerNavHeight = document.querySelector('.header-nav').offsetHeight;\n var mainContent = document.getElementById('maincontent');\n var isMobile = window.isMobile();\n\n //if header is fixed, use just the nav bar to measure top of page, else use the entire header (may contain promo bar)\n if (topHeader.classList.contains('fixed-header')) {\n var topHeaderHeight = headerNavHeight;\n var heightCalculation = (document.querySelector('.search-results').offsetTop - headerNavHeight);\n } else {\n var topHeaderHeight = 0;\n var heightCalculation = document.querySelector('.search-results').offsetTop;\n }\n\n if (showStickyRefinementData && !isMobile && showStickyRefinementBarCheck == 'true') {\n window.addEventListener('load', function() {\n showStickyRefinementData.parentNode.setAttribute('style', 'min-height:' + headerNavHeight + 'px;');\n });\n // Note: This is intentionally not using utilities/scroll.js so that it can fix immediately vs. being debounced. Should be replaced with CSS position:sticky once IE11 support is dropped.\n window.addEventListener('scroll', function() {\n //main sticky horiziontal dropdown filter functionality - only show when scrolled past in-page refineent button section\n if (window.pageYOffset > heightCalculation && mainContent.scrollHeight > (window.innerHeight + showStickyRefinementData.offsetHeight)) {\n showStickyRefinementData.classList.add('sticky-filters');\n showStickyRefinementData.setAttribute('style', 'top:' + topHeaderHeight + 'px;');\n mainContent.setAttribute('style', 'padding-top:' + showStickyRefinementData.offsetHeight + 'px;');\n } else if (showStickyRefinementData.classList.contains('sticky-filters') && window.pageYOffset < heightCalculation) {\n showStickyRefinementData.classList.remove('sticky-filters');\n setTimeout(() => {\n showStickyRefinementData.removeAttribute(\"style\");\n mainContent.removeAttribute('style');\n }, SiteConstants.TransitionSpeed);\n }\n });\n }\n }\n\n}\n\nvar closeOneRefinementsDropdown = (e) => {\n var $oneRefinementsDropdown = $('.horizontal-onedropdown-filter-group');\n if ((!$('.collapse-one-dropdown-filter').is(e.target) && $oneRefinementsDropdown.has(e.target).length === 0)\n || $('.close-one-refinements-dropdown').is(e.target)) {\n $('.collapse-filters-wrapper').slideUp().removeClass('active');\n }\n};\n\nexports.closeRefinements = function () {\n\n $('html').on('click', '.refinement-bar button.close, .mobile-filter-drawer-in .modal-background, .filter-drawer-in .modal-background, .refinement-bar-close-button .btn', () => toggleRefinementDrawer('close'));\n //for horizontal one dropdown menu\n $('html').on('click', (e) => closeOneRefinementsDropdown(e));\n}\n\nexports.showMore = function () {\n // Show more products\n $('.container').on('click', '.show-more button', function (e) {\n e.stopPropagation();\n e.preventDefault();\n var showMoreUrl = $(this).data('url');\n var pageUrl = new URL(window.location);\n var $showMoreButton = $(e.target);\n var showMoreUrlParams = showMoreUrl.split('?').pop();\n var params = new URLSearchParams(showMoreUrlParams);\n var showMoreUrlObj = Object.fromEntries(params.entries());\n var size = null;\n if (showMoreUrlObj.start && showMoreUrlObj.sz) {\n size = Number(showMoreUrlObj.start) + Number(showMoreUrlObj.sz);\n }\n $.spinner().start();\n $(this).trigger('search:showMore', e);\n\n $.ajax({\n url: showMoreUrl,\n data: { selectedUrl: showMoreUrl },\n method: 'GET',\n success: function (response) {\n var promoTileCount = $showMoreButton.closest('.product-grid').find('[class*=\"experience-promoTile\"]').length;\n $('.grid-footer').replaceWith(response);\n updateSortOptions(response, promoTileCount);\n if (!isNaN(size)) {\n if (pageUrl.searchParams.get('start') === null) {\n pageUrl.searchParams.set('start', '0');\n }\n pageUrl.searchParams.set('sz', size);\n window.history.pushState({}, '', pageUrl);\n }\n $('body').trigger('search:showMore--success');\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n });\n}\n\nexports.applyFilter = function () {\n var $xhr;\n // Handle refinement value selection and reset click\n $('.container').on(\n 'click',\n '.refinements li button, .refinement-bar button.reset, .filter-value button, .swatch-filter button',\n function (event) {\n var category = $(event.currentTarget).closest('.refinement');\n\n if (category && category.hasClass('refinement-category')) {\n localStorage.setItem('refinement-category', true);\n return;\n }\n //find new attr on Sort if selected, if not use the default\n var selectedSort = $('select[name=\"sort-order\"]').find('option[selected=\"selected\"]');\n if (selectedSort.data('id') != null) {\n var sortingRule = selectedSort.data('id');\n } else {\n var sortingRule = $('select[name=\"sort-order\"] option:selected').data('id');\n }\n //create a new url with the correct preferences\n if ($(this).data('href').includes('srule')) {\n var refinementUrl = $(this).data('href').replace(/(srule=).*?(&|$)/,'$1' + sortingRule + '$2');\n } else if (!$(this).data('href').includes('srule') && sortingRule != null) {\n var split = $(this).data('href').indexOf('?') !== -1 ? '&' : '?';\n var refinementUrl = $(this).data('href') + split + 'srule=' + sortingRule;\n } else {\n var refinementUrl = $(this).data('href');\n }\n\n event.preventDefault();\n event.stopPropagation();\n $(this).trigger('search:filter', event);\n\n // Cancel previous request\n $xhr && $xhr.abort && $xhr.abort();\n\n $xhr = $.ajax({\n url: refinementUrl,\n data: {\n page: $('.grid-footer').data('page-number'),\n selectedUrl: refinementUrl\n },\n method: 'GET',\n timeout: 10000,\n beforeSend: function () {\n $.spinner().start();\n },\n success: function (response) {\n parseResults(response);\n history.replaceState(undefined, '', refinementUrl);\n $('body').trigger('search:filter--success');\n },\n complete: function () {\n $.spinner().stop();\n }\n });\n });\n};\n\nexports.sort = function () {\n var $xhr;\n // Handle sort order menu selection\n $('.container').on('change', '[name=sort-order]', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var thisValue = this.value;\n $(this).trigger('search:sort', thisValue);\n var sortOrderUrlParams = $(this).val().split('?').pop();\n var params = new URLSearchParams(sortOrderUrlParams);\n var paramsObj = Object.fromEntries(params.entries());\n var newSortedUrl = new URL(window.location);\n var newSelection = this.selectedOptions[0];\n $('[name=\"sort-order\"]').find('option[selected=\"selected\"], option:selected').prop('selected',false).removeAttr('selected');\n $(newSelection).prop('selected', true).attr('selected', true);\n\n // Cancel previous request\n $xhr && $xhr.abort && $xhr.abort();\n\n $xhr = $.ajax({\n url: thisValue,\n data: {\n selectedUrl: thisValue,\n isSortUpdate: true\n },\n method: 'GET',\n timeout: 10000,\n beforeSend: function () {\n $.spinner().start();\n },\n success: function (response) {\n var $productGridElement = $(response).find('.product-grid'); // if response is coming from page designer\n var updatedGridHtml = $productGridElement.length > 0 ? $productGridElement.children() : response;\n $('.product-grid').empty().html(updatedGridHtml);\n newSortedUrl.searchParams.set('start', paramsObj.start);\n newSortedUrl.searchParams.set('sz', paramsObj.sz);\n newSortedUrl.searchParams.set('srule', paramsObj.srule);\n window.history.pushState({}, '', newSortedUrl);\n $('body').trigger('search:sort--success');\n $('body').trigger('ajax:load.ajaxEvents', [$('.product-grid')]);\n },\n complete: function () {\n $.spinner().stop();\n }\n });\n });\n}\n\nexports.goToPreviousScrollPosition = function() {\n if (localStorage.plpScrollPos) {\n var scrollObj = JSON.parse(localStorage.plpScrollPos);\n if ($('.productListingPage').length > 0 && scrollObj.history === window.history.length) {\n if (window.isMobile()) {\n setTimeout(() => {\n $(window).scrollTop(scrollObj.pos);\n }, 100);\n } else {\n $(window).scrollTop(scrollObj.pos);\n }\n localStorage.clear('plpScrollPos');\n } else {\n localStorage.clear('plpScrollPos');\n }\n }\n}\n\nmodule.exports = exports;\n","var integrations = require('integrations/search');\n\nintegrations.baseFiles.search = require('./search/search');\n\nmodule.exports = integrations;\n","var searchAutobahn = require('core/search');\n\nfunction initSiteIntegrations() {\n // grab the site pref integration object\n var siteIntegrations = require('./integrations/siteIntegrationsUtils');\n var toggleObject = siteIntegrations.getIntegrationSettings();\n\n if (toggleObject.yotpoCartridgeEnabled) {\n $('body').on('search:showMore--success search:filter--success search:sort--success', () => {\n window.yotpo.refreshWidgets();\n });\n }\n}\n\nsearchAutobahn.baseFiles.initSiteIntegrations = initSiteIntegrations;\n\nmodule.exports = searchAutobahn;\n","'use strict';\n\nvar processInclude = require('base/util');\n\nvar baseFiles = {\n search: require('./search/search'),\n}\n\n$(document).ready(function () {\n Object.keys(baseFiles).forEach(function (key) {\n processInclude(baseFiles[key]);\n });\n});\n\nmodule.exports = {\n baseFiles\n};\n","'use strict';\n\n/**\n * This client-side js file just acts as a wrapper for the site preference config toggles\n * that are outputted by Controller: Integrations-OutputIntegrationsConfig\n */\n\nfunction getIntegrationSettings() {\n if (window && window.CachedData && window.CachedData.siteIntegrations) {\n return window.CachedData.siteIntegrations;\n }\n return {};\n}\n\nmodule.exports = {\n getIntegrationSettings : getIntegrationSettings\n};\n"],"sourceRoot":""}