{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../rvw_autobahn_core/cartridges/rvw_autobahn_core/cartridge/client/default/js/utilities/headerUtils.js","webpack:///../autobahn_client_core/cartridges/autobahn_client_core/cartridge/client/default/js/utilities/productUtils.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/product/detail.js","webpack:///../rvw_autobahn_core/cartridges/rvw_autobahn_core/cartridge/scripts/constants/SiteConstants.js","webpack:///../autobahn_client_core/cartridges/autobahn_client_core/cartridge/client/default/js/product/detail.js","webpack:///../rvw_autobahn_core/cartridges/rvw_autobahn_core/cartridge/client/default/js/product/addToCartStickyBar.js","webpack:///../autobahn_client_core/cartridges/autobahn_client_core/cartridge/client/default/js/productDetail.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","getHeaderHeight","excludedClasses","calculatedHeaderHeight","$","each","this","outerHeight","getHeaderHeightNavOnly","length","hasClass","updateWhyWeLoveIt","on","e","data","product","container","$productContainer","whyWeLoveIt","find","show","html","hide","include","keys","forEach","updateAttributes","id","empty","attributesHtml","trigger","updateAddAllToCart","updateHeadlinesAndTabs","headline","headlineDescription","updateCollapsibleContent","setCollapsibleContentState","enable","toArray","every","item","attr","copyProductLink","event","preventDefault","$temp","append","val","select","document","execCommand","remove","removeClass","setTimeout","addClass","showSpinner","spinner","start","$container","BreakpointSizes","TransitionSpeed","ComponentAnimationDelay","Spacer","placeholderImagePaths","defaultMapMarker","defaultStoreType","UP_KEY","DOWN_KEY","DIRECTION_DOWN","DIRECTION_UP","base","require","productUtils","stickyBarJumpLinks","animate","scrollTop","offset","top","addToCartStickyBar","SiteConstants","getElementById","addToCartContainer","$body","topHeader","headerUtils","classList","contains","topHeaderHeight","window","addEventListener","pageYOffset","offsetTop","offsetHeight","setAttribute","removeAttribute","processInclude","baseFiles","detail","ready"],"mappings":"6BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB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BAC7CC,EAAqBhC,SAAS+B,eAAe,sBAC7CE,EAAQ9E,EAAE,QACV+E,EAAYlC,SAAS+B,eAAe,cACpCI,EAAcb,EAAQ,IAG1B,GAAIY,EAAUE,UAAUC,SAAS,gBAC7B,IAAIC,EAAkBH,EAAY5E,8BAE9B+E,EAAkB,EAGtBT,GAAsBG,GACtBO,OAAOC,iBAAiB,gBAAgB,WAEhCD,OAAOE,YAAeT,EAAmBU,UAAYV,EAAmBW,aAAeL,GACvFL,EAAM5B,SAAS,iBACfwB,EAAmBe,aAAa,QAAS,OAASN,EAAkB,QAC7DL,EAAMxE,SAAS,mBACtBwE,EAAM9B,YAAY,iBAClBC,YAAW,WACPyB,EAAmBgB,gBAAgB,WACpCf,EAAcnB,wB,iCC5DrC,IAAImC,EAAiBxB,EAAQ,IAEzByB,EAAY,CACZC,OAAQ1B,EAAQ,KAChBO,mBAAoBP,EAAQ,MAGhCnE,EAAE6C,UAAUiD,OAAM,WACdvH,OAAO6C,KAAKwE,GAAWvE,SAAQ,SAAUjC,GACrCuG,EAAeC,EAAUxG,UAIjCxB,EAAOD,QAAU,CACbiI","file":"default/js/productDetail.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 = 656);\n","'use strict';\n\n/**\n * Creating a global getHeaderHeight function since its used more than once\n * @param {excludedClasses} string of class names, comma separated — OPTIONAL\n * used in: search.js, menu.js\n */\nfunction getHeaderHeight(excludedClasses) {\n var excludedConstants = '.skip, .d-none'\n var excludedClasses = excludedClasses ? excludedClasses + ', ' + excludedConstants : excludedConstants;\n var calculatedHeaderHeight = 0;\n $(\"#top-header > *:not(\" + excludedClasses + \")\").each(function () {\n calculatedHeaderHeight += $(this).outerHeight();\n })\n return calculatedHeaderHeight;\n}\n\n/**\n * getHeaderHeightNavOnly\n * sometimes there are 2 header-navs if secondary-nav is enabled\n */\nfunction getHeaderHeightNavOnly() {\n var calculatedHeaderHeight = 0;\n //logo-centers secondary-nav is within the original header-nav so don't calculate the height again\n if ($('.logo-center').length) {\n calculatedHeaderHeight = $('.header-nav').outerHeight();\n } else {\n $('.header-nav').each(function () {\n calculatedHeaderHeight += $(this).outerHeight();\n if ($(this).hasClass('secondary-nav')) {\n //helps offset rounding of pixels\n calculatedHeaderHeight --;\n }\n })\n }\n return calculatedHeaderHeight;\n}\n\nmodule.exports = {\n getHeaderHeight: getHeaderHeight,\n getHeaderHeightNavOnly: getHeaderHeightNavOnly\n};\n","'use strict';\n\n/**\n * Updates Why We Love It section after selecting variant attribute\n */\nfunction updateWhyWeLoveIt() {\n $('body').on('product:afterAttributeSelect', function (e, data) {\n if (data && data.data && data.data.product && data.container) {\n var $productContainer = data.container;\n var product = data.data.product;\n\n if (product.whyWeLoveIt) {\n $productContainer.find('.product-whyWeLoveIt')\n .show()\n .html(product.whyWeLoveIt);\n } else {\n $productContainer.find('.product-whyWeLoveIt')\n .hide();\n }\n }\n });\n}\n\nmodule.exports = {\n updateWhyWeLoveIt: updateWhyWeLoveIt\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","'use strict';\n\nmodule.exports = {\n updateAttributes: function() {\n $('body').on('product:statusUpdate', function (e, data) {\n var $productContainer = $('.product-detail[data-pid=\"' + data.id + '\"]');\n\n $productContainer.find('.main-content-group .product-attributes')\n .empty()\n .html(data.attributesHtml);\n\n $('body').trigger('tooltip:init');\n if ($('button.add-to-cart-global').length) {\n module.exports.updateAddAllToCart();\n }\n });\n },\n updateHeadlinesAndTabs: function() {\n $('body').on('product:afterAttributeSelect', function (e, data) {\n if (data && data.data && data.data.product && data.container) {\n var $productContainer = data.container;\n var product = data.data.product;\n\n if (product.headline) {\n $productContainer.find('.product-headline')\n .show()\n .html(product.headline);\n } else {\n $productContainer.find('.product-headline')\n .hide();\n }\n\n if (product.headlineDescription) {\n $productContainer.find('.product-headlinedescription')\n .show()\n .html(product.headlineDescription);\n } else {\n $productContainer.find('.product-headlinedescription')\n .hide();\n }\n }\n });\n },\n updateCollapsibleContent: function() {\n $('body').on('product:afterAttributeContentSwap', function (e, data) {\n module.exports.setCollapsibleContentState((data && data.container) ? data.container : '');\n });\n },\n updateAddAllToCart: function () {\n // if default variants are selected, enable the add all to cart btn on load\n if ($('button.add-to-cart-global').length) {\n var enable = $('.product-availability').toArray().every(function (item) {\n return $(item).data('available') && $(item).data('ready-to-order');\n });\n $('button.add-to-cart-global').attr('disabled', !enable);\n }\n },\n copyProductLink: function () {\n $('body').on('click', '#fa-link', function () {\n event.preventDefault();\n var $temp = $('');\n $('body').append($temp);\n $temp.val($('#shareUrl').val()).select();\n document.execCommand('copy');\n $temp.remove();\n $('.copy-link-message').attr('role', 'alert');\n $('.copy-link-message').removeClass('d-none');\n setTimeout(function () {\n $('.copy-link-message').addClass('d-none');\n }, 3000);\n });\n },\n showSpinner: function() {\n $('body').on('product:beforeAddToCart, product:beforeAttributeSelect', function () {\n $.spinner().start();\n });\n },\n setCollapsibleContentState: function ($container) {\n var $collapsibleContentGroup;\n\n if ($container) {\n $collapsibleContentGroup = $container.find('.collapsible-content-group');\n } else {\n $collapsibleContentGroup = $('.collapsible-content-group');\n }\n\n $collapsibleContentGroup.each(function () {\n var expandCollapsibleContentGroup = $(this).data('expand');\n if (expandCollapsibleContentGroup == true) {\n $(this).addClass('active');\n }\n });\n }\n};\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\nvar base = require('core/product/detail');\nvar productUtils = require('../utilities/productUtils')\n\nbase.updateWhyWeLoveIt = productUtils.updateWhyWeLoveIt;\n\nmodule.exports = base;\n","'use strict';\n\nmodule.exports = {\n\n stickyBarJumpLinks: function () {\n $('a.jumplink').on('click', function(e) {\n e.preventDefault();\n //scrolling indicator may or may not be useful\n $('.addtocart-sticky-bar').addClass('scrolling');\n\n $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top }, 500, function() {\n $('.addtocart-sticky-bar').removeClass('scrolling');\n });\n });\n },\n\n addToCartStickyBar: function (){\n\n //jumplinks - ** Currently deactivated ** : add all jumplinks and related anchor content that exists in an array that contains jumplink object and content area\n /*\n var allJumplinks = $('.addtocart-sticky-bar .jumplink');\n var jumplinkArray = [];\n allJumplinks.each(function(index) {\n var $jumplink = $(allJumplinks[index]);\n var jumplinkContentElement = $($jumplink.attr('href')).parent();\n\n if (jumplinkContentElement && jumplinkContentElement.length > 0) {\n var jumplinkObject = {\n jumplink: $jumplink,\n jumplinkElementTop: jumplinkContentElement.offset().top,\n jumplinkElementBottom: jumplinkContentElement.outerHeight() + jumplinkContentElement.offset().top\n }\n jumplinkArray.push(jumplinkObject);\n }\n });\n */\n\n //main add to cart sticky vars\n var SiteConstants = require('constants/SiteConstants');\n var addToCartStickyBar = document.getElementById('addtocart-sticky-bar');\n var addToCartContainer = document.getElementById('qty-cart-container');\n var $body = $('body');\n var topHeader = document.getElementById('top-header');\n var headerUtils = require('../utilities/headerUtils');\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 = headerUtils.getHeaderHeightNavOnly();\n } else {\n var topHeaderHeight = 0;\n }\n\n if (addToCartStickyBar && addToCartContainer) {\n window.addEventListener('scrollUpdate', function() {\n //main sticky add to cart functionality - only show when scrolled past in-page add to cart section\n if (window.pageYOffset > (addToCartContainer.offsetTop + addToCartContainer.offsetHeight + topHeaderHeight)) {\n $body.addClass('showstickybar');\n addToCartStickyBar.setAttribute('style', 'top:' + topHeaderHeight + 'px;');\n } else if ($body.hasClass('showstickybar')){\n $body.removeClass('showstickybar');\n setTimeout(() => {\n addToCartStickyBar.removeAttribute('style');\n }, SiteConstants.TransitionSpeed);\n }\n\n // ** Jumplinks are Currently Deactivated **\n /*\n var bottomOfTopWindow = window.scrollY + topHeaderHeight + addToCartStickyBar.offsetHeight;\n jumplinkArray.forEach(function(jumplinkObject) {\n if (bottomOfTopWindow > jumplinkObject.jumplinkElementTop && bottomOfTopWindow < jumplinkObject.jumplinkElementBottom ) {\n jumplinkObject.jumplink.addClass('selected');\n } else {\n jumplinkObject.jumplink.removeClass('selected');\n }\n });\n */\n });\n }\n }\n}","'use strict';\n\nvar processInclude = require('base/util');\n\nvar baseFiles = {\n detail: require('./product/detail'),\n addToCartStickyBar: require('core/product/addToCartStickyBar')\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"],"sourceRoot":""}