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UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;ACtBa;;AAEb,IAAIqH,cAAc,GAAG5W,mBAAO,CAAC,uFAAW,CAAC;AAEzCG,CAAC,CAACC,QAAQ,CAAC,CAACmW,KAAK,CAAC,YAAY;EAC1BK,cAAc,CAAC5W,mBAAO,CAAC,iGAAkB,CAAC,CAAC;EAE3C,IAAI6B,MAAM,CAACE,SAAS,CAACC,WAAW,CAAC6U,oBAAoB,IAAI,aAAa,IAAIhV,MAAM,CAAC2U,EAAE,EAAE;IACjFI,cAAc,CAAC5W,mBAAO,CAAC,8GAA4B,CAAC,CAAC;EACzD;AACJ,CAAC,CAAC,C","sources":["webpack://app_custom_dietdirect/./cartridges/app_providio/cartridge/client/default/js/product/base.js","webpack://app_custom_dietdirect/./cartridges/app_providio/cartridge/client/default/js/product/detail.js","webpack://app_custom_dietdirect/./cartridges/app_storefront_base/cartridge/client/default/js/components/focus.js","webpack://app_custom_dietdirect/./cartridges/app_storefront_base/cartridge/client/default/js/product/base.js","webpack://app_custom_dietdirect/./cartridges/app_storefront_base/cartridge/client/default/js/product/detail.js","webpack://app_custom_dietdirect/./cartridges/app_storefront_base/cartridge/client/default/js/util.js","webpack://app_custom_dietdirect/./cartridges/int_ordergroove/cartridge/client/default/js/product/detail.js","webpack://app_custom_dietdirect/./cartridges/plugin_wishlists/cartridge/client/default/js/product/wishlist.js","webpack://app_custom_dietdirect/webpack/bootstrap","webpack://app_custom_dietdirect/./cartridges/app_providio/cartridge/client/default/js/productDetail.js"],"sourcesContent":["'use strict';\n\nvar base = require('base/product/base');\n\nfunction quickViewImagesSlick() {\n var $quickviewImages = $(document).find('.product-quickview').find('.primary-images');\n $quickviewImages.find('.product-image-carousel').addClass('order-0 col-lg-12');\n $quickviewImages.find('.product-image-carousel').removeClass('col-lg-10');\n $quickviewImages.find('.product-thumbnail-slick').addClass('order-3 col-lg-12 pt-4');\n $quickviewImages.find('.product-thumbnail-slick').removeClass('col-lg-2');\n\n var $quickviewSlick = $(document).find('.product-image-carousel');\n var $quickviewSlickOptions = {\n arrows: true,\n slidesToShow: 1,\n slidesToScroll: 1,\n focusOnSelect: true,\n infinite: true,\n dots: false,\n draggable: true,\n asNavFor: '.product-thumbnail-slick'\n };\n\n var $slidesToShowValue = 4;\n var $slidesToScrollValue = 1;\n\n /* $childElements is calculated before initializing slick, based on the number of child elements $slidesToShowValue and $slidesToScrollValue is updated and then slick is initialized. */\n var $childElements = $('.product-thumbnail-slick').children().length;\n if ($slidesToShowValue > $childElements) {\n $slidesToShowValue = $childElements;\n $slidesToScrollValue = $childElements;\n }\n\n /* Initializing Tumbnail slick and product images slick in quickview */\n var $quickviewThumbnailSlick = $(document).find('.product-thumbnail-slick');\n var $quickviewTumbnailSlickOptions = {\n asNavFor: '.product-image-carousel',\n slidesToShow: $slidesToShowValue,\n slidesToScroll: $slidesToScrollValue,\n dots: false,\n centerMode: false,\n focusOnSelect: true,\n arrows: false,\n infinite: false\n };\n\n // each for set items\n $.each($quickviewSlick, function () {\n if (!$(this).hasClass('slick-initialized')) {\n $(this).slick($quickviewSlickOptions);\n }\n });\n\n $.each($quickviewThumbnailSlick, function () {\n if (!$(this).hasClass('slick-initialized')) {\n $(this).slick($quickviewTumbnailSlickOptions);\n }\n });\n\n if ($(window).width() > 1024 && window.resources.preferences.quickViewZoomEnabled == 'true') {\n $('.easyzoom').easyZoom();\n }\n}\n\nfunction pdpImagesSlick() {\n var $pdpSlick = $(document).find('.product-image-carousel');\n var $pdpSlickOptions = {\n arrows: true,\n slidesToShow: 1,\n slidesToScroll: 1,\n focusOnSelect: true,\n infinite: true,\n dots: false,\n draggable: true,\n asNavFor: '.product-thumbnail-slick',\n responsive: [{\n breakpoint: 768,\n settings: {\n dots: $('.product-image-carousel').attr('enable-mobile-carousel-dots') == 'true'\n }\n }]\n };\n\n var $slidesToShowValue = 5;\n var $slidesToScrollValue = 1;\n\n /* $childElements is calculated before initializing slick, based on the number of child elements $slidesToShowValue and $slidesToScrollValue is updated and then slick is initialized. */\n var $childElements = $('.product-thumbnail-slick').children().length;\n if ($slidesToShowValue > $childElements) {\n $slidesToShowValue = $childElements;\n $slidesToScrollValue = $childElements;\n }\n\n /* Initializing thumbnail slick and product images slick in PLP page */\n var $thumbnailSlick = $(document).find('.product-thumbnail-slick');\n var $tumbnailSlickOptions = {\n asNavFor: '.product-image-carousel',\n slidesToShow: $slidesToShowValue,\n slidesToScroll: $slidesToScrollValue,\n dots: false,\n centerMode: false,\n focusOnSelect: true,\n arrows: $('.product-image-carousel').attr('enable-thumbnail-arrows') == 'true',\n vertical: true,\n infinite: false\n };\n\n $.each($thumbnailSlick, function () {\n if (!$(this).hasClass('slick-initialized')) {\n $(this).slick($tumbnailSlickOptions);\n }\n });\n\n $.each($pdpSlick, function () {\n if (!$(this).hasClass('slick-initialized')) {\n $(this).slick($pdpSlickOptions);\n }\n });\n\n /* To get the latest image and display on mouseout when user clicked on color swatches */\n swatchesHoverImage();\n}\n\nfunction createCarousel(response, $productContainer) {\n var $imageshtml = $('
').append($.parseHTML(response.pdpImages));\n var pdpDesktopImages = $imageshtml.find('.carousel-container');\n\n $productContainer.find('.carousel-container').replaceWith(pdpDesktopImages);\n\n if ($('.product-quickview').length) {\n module.exports.quickViewImagesSlick();\n } else {\n module.exports.pdpImagesSlick();\n }\n\n if ($(window).width() > 1024 && !$('#quickViewModal:visible').length) {\n $('.easyzoom').easyZoom();\n }\n}\n\nfunction storeSelectStyles (response) {\n var editWishlistProductModal = document.getElementById('editWishlistProductModal');\n var editProductModal = document.getElementById('editProductModal');\n if (editProductModal || editWishlistProductModal ) {\n return null;\n }\n $('.add-to-cart').prop('disabled', true);\n if ($('#delivery-options-store').length > 0 && $('#delivery-options-home').length > 0) {\n if (response && response.product && !response.product.isBikeCategory) {\n $('#delivery-options-home').prop('checked',true);\n $('#delivery-options-store').prop('checked',false);\n $('#delivery-options-store').prop('disabled',true);\n }\n $('.selected-store-availability').attr('data-status','select-style');\n $('.selected-store-availability').text('Select Styles for Availability');\n }\n}\n\nfunction updateAvailability(response, $productContainer) {\n var availabilityValue = '';\n var availabilityMessages = response.product.availability.messages;\n var checkSizeSelected;\n if ($('.select-size').hasClass('size-change')) {\n checkSizeSelected = !$('.size-change span').hasClass('selected')\n } else {\n checkSizeSelected = $('.select-size').prop(\"selectedIndex\") == 0\n }\n if (!response.product.readyToOrder) {\n availabilityValue = '
  • ' + response.resources.info_selectforstock + '
  • ';\n storeSelectStyles(response);\n var selectedAttrCount = 0;\n var unSelectedAttr = [];\n for (var a = 0 ; a < response.product.variationAttributes.length ; a++) {\n unSelectedAttr.push(response.product.variationAttributes[a].id);\n for (var b = 0 ; b < response.product.variationAttributes[a].values.length ; b++) {\n if (response.product.variationAttributes[a].values[b].selected == true) {\n unSelectedAttr.pop(response.product.variationAttributes[a].id);\n selectedAttrCount++;\n break;\n }\n }\n }\n if (response.product.variationAttributes.length != selectedAttrCount) {\n for (var i = 0 ; i < unSelectedAttr.length ; i++) {\n $('.select-' + unSelectedAttr[i]).prop(\"selectedIndex\", 0);\n }\n }\n\n } else if (($('.select-color').prop(\"selectedIndex\") == 0 || checkSizeSelected)) {\n availabilityValue = '
  • ' + response.resources.info_selectforstock + '
  • ';\n response.product.readyToOrder = null;\n storeSelectStyles(response);\n\n } else {\n var availabilityClassName = response.product.available ? 'in-stock inStock' : 'out-of-stock outOfStock';\n if (response.product.availability && response.product.availability.orderSupplierText && response.product.availability.messages && response.product.availability.messages.length > 0 && response.product.availability.messages[0] == response.product.availability.orderSupplierText) {\n availabilityClassName = 'available-at-supplier';\n }\n availabilityMessages.forEach(function (message) {\n // condition to show lower case text of availability message\n if ($('.availability').hasClass('availability-msg-lowercase')) {\n availabilityValue += '
  • ' + message.toLowerCase() + '
  • ';\n } else {\n availabilityValue += '
  • ' + message + '
  • ';\n }\n });\n }\n\n $($productContainer).trigger('product:updateAvailability', {\n product: response.product,\n $productContainer: $productContainer,\n message: availabilityValue,\n resources: response.resources\n });\n}\n\nfunction getAttributesHtml(attributes) {\n if (!attributes) {\n return '';\n }\n\n var html = '';\n\n attributes.forEach(function (attributeGroup) {\n if (attributeGroup.ID === 'mainAttributes') {\n attributeGroup.attributes.forEach(function (attribute) {\n html += '
    ' + attribute.label + ': ' +\n attribute.value + '
    ';\n });\n }\n });\n\n return html;\n}\n\nfunction updateOptions(optionsHtml, $productContainer) {\n // Update options\n $productContainer.find('.product-options').empty().html(optionsHtml);\n}\n\nfunction getQuantitySelector($el) {\n var quantitySelected;\n if ($el && $('.set-items').length) {\n quantitySelected = $($el).closest('.product-detail').find('.quantity-select');\n } else if ($el && $('.product-bundle').length) {\n var quantitySelectedModal = $($el).closest('.modal-footer').find('.quantity-select');\n var quantitySelectedPDP = $($el).closest('.bundle-footer').find('.quantity-select');\n if (quantitySelectedModal.val() === undefined) {\n quantitySelected = quantitySelectedPDP;\n } else {\n quantitySelected = quantitySelectedModal;\n }\n } else {\n quantitySelected = $('.quantity-select');\n }\n return quantitySelected;\n}\n\nfunction updateQuantities(quantities, $productContainer, product) {\n if ($productContainer.parent('.bonus-product-item').length <= 0) {\n var quantitySelector = getQuantitySelector($productContainer);\n if (!window.resources.preferences.CustomQuantitySelector) {\n var optionsHtml = quantities.map(function (quantity) {\n var selected = quantity.selected ? ' selected ' : '';\n return '';\n }).join('');\n quantitySelector.empty().html(optionsHtml);\n } else {\n // Update the Custom Quantiry selector\n quantitySelector.data('url', quantities[0].url);\n var customQtyMessage = product.availability && product.availability.customQtyMessage || false;\n\n if (customQtyMessage) {\n $productContainer.find('.customQtyMessage').text(customQtyMessage).removeClass(\"d-none\");\n } else {\n $productContainer.find('.customQtyMessage').addClass(\"d-none\");\n }\n\n if (product.customMaxOrderQuantity) {\n $productContainer.find('.quantity-select').data('end', product.customMaxOrderQuantity);\n }\n $productContainer.find('.quantity-select').data('preqty', product.selectedQuantity);\n }\n }\n}\n\nfunction processSwatchValues(attr, $productContainer, msgs) {\n attr.values.forEach(function (attrValue) {\n var $attrValue = $productContainer.find('[data-attr=\"' + attr.id + '\"] [data-attr-value=\"' +\n attrValue.value + '\"]');\n var $swatchButton = $attrValue.parent();\n\n if (attrValue.selected) {\n $attrValue.addClass('selected');\n $attrValue.siblings('.selected-assistive-text').text(msgs.assistiveSelectedText);\n\n if ($('.swatch-attr-style').is(':visible')) {\n $swatchButton.addClass('selected-swatch');\n }\n } else {\n $attrValue.parent().removeClass('selected-swatch');\n $attrValue.removeClass('selected');\n $attrValue.siblings('.selected-assistive-text').empty();\n }\n\n if (attrValue.url) {\n $swatchButton.attr('data-url', attrValue.url);\n } else {\n $swatchButton.removeAttr('data-url');\n }\n\n // Disable if not selectable\n $attrValue.removeClass('selectable unselectable');\n // Disable for color name swatch style\n if ($('.swatch-attr-style').is(':visible')) {\n $attrValue.parent().removeClass('selectable unselectable');\n $attrValue.parent().addClass(attrValue.selectable ? 'selectable' : 'unselectable');\n }\n\n $attrValue.addClass(attrValue.selectable ? 'selectable' : 'unselectable');\n\n // add disable attr when color swatch in dropdown\n if (!attrValue.selectable) {\n $attrValue.attr('disabled', true);\n } else {\n $attrValue.attr('disabled', false);\n }\n });\n}\n\nfunction processNonSwatchValues(attr, $productContainer) {\n var $attr = '[data-attr=\"' + attr.id + '\"]';\n if ($('.size-change').is(':visible') && $('.size-change').length) {\n var $defaultOption = $productContainer.find($attr + ' .select-' + attr.id + ' .size-value:first');\n } else {\n var $defaultOption = $productContainer.find($attr + ' .select-' + attr.id + ' option:first');\n }\n $defaultOption.attr('value', attr.resetUrl);\n\n attr.values.forEach(function (attrValue) {\n var $attrValue = $productContainer\n .find($attr + ' [data-attr-value=\"' + attrValue.value.replace(/\"/g, \"'\") + '\"]');\n // This selectable-oos-product is used in diet direct to enable the PDP functionality for OOS products\n if (!$('.attribute').hasClass('selectable-oos-product')) {\n $attrValue.attr('value', attrValue.url)\n .removeAttr('disabled');\n }\n\n // add disable attr after ajax\n if (!attrValue.selectable) {\n if (!$('.attribute').hasClass('selectable-oos-product')) {\n $attrValue.attr('disabled', true);\n }\n // condition to show oos text with display value\n if ($('.attribute').hasClass('remove-oos-additional-text')) {\n $attrValue.text(attrValue.displayValue);\n } else {\n $attrValue.text(attrValue.displayValue + ' (Out Of Stock)');\n }\n } else {\n $attrValue.text(attrValue.displayValue);\n }\n });\n}\n\nfunction updateAttrs(attrs, $productContainer, msgs) {\n // Currently, the only attribute type that has image swatches is Color.\n var attrsWithSwatches = ['color'];\n\n attrs.forEach(function (attr) {\n if (attrsWithSwatches.indexOf(attr.id) > -1) {\n processSwatchValues(attr, $productContainer, msgs);\n } else {\n processNonSwatchValues(attr, $productContainer);\n }\n });\n}\n\nfunction handleVariantResponse(response, $productContainer) {\n var isChoiceOfBonusProducts =\n $productContainer.parents('.choose-bonus-product-dialog').length > 0;\n var isVaraint;\n if (response.product.variationAttributes) {\n updateAttrs(response.product.variationAttributes, $productContainer, response.resources);\n isVaraint = response.product.productType === 'variant';\n if (isChoiceOfBonusProducts && isVaraint) {\n $productContainer.parent('.bonus-product-item')\n .data('pid', response.product.id);\n\n $productContainer.parent('.bonus-product-item')\n .data('ready-to-order', response.product.readyToOrder);\n }\n }\n\n // Update primary images\n var primaryImageUrls = response.product.images.large;\n createCarousel(response, $productContainer);\n\n // Update pricing\n if (!isChoiceOfBonusProducts) {\n var $priceSelector = $('.prices .price', $productContainer).length ?\n $('.prices .price', $productContainer) :\n $('.prices .price');\n $priceSelector.replaceWith(response.product.price.html);\n }\n\n // Update promotions\n $productContainer.find('.promotions').empty().html(response.product.promotionsHtml);\n\n updateAvailability(response, $productContainer);\n\n if (isChoiceOfBonusProducts) {\n var $selectButton = $productContainer.find('.select-bonus-product');\n $selectButton.trigger('bonusproduct:updateSelectButton', {\n product: response.product,\n $productContainer: $productContainer\n });\n } else {\n // Enable \"Add to Cart\" button if all required attributes have been selected\n $('button.add-to-cart, button.add-to-cart-global, button.update-cart-product-global').trigger('product:updateAddToCart', {\n product: response.product,\n $productContainer: $productContainer\n }).trigger('product:statusUpdate', response.product);\n }\n\n // Update attributes\n $productContainer.find('.main-attributes').empty()\n .html(getAttributesHtml(response.product.attributes));\n}\n\nfunction updateDeliveryOptions(response) {\n var editWishlistProductModal = document.getElementById('editWishlistProductModal');\n var editProductModal = document.getElementById('editProductModal');\n if (editProductModal || editWishlistProductModal || ($('#delivery-options-store').length == 0 && $('#delivery-options-home').length == 0)) {\n return null;\n }\n var uuid = response.product.uuid;\n $('.pickupInStore-deliveryOptions .delivery-option').attr('name','delivery_option_'+uuid);\n if ($('.selectforstock').length > 0) {\n storeSelectStyles(response);\n } else if (response.product.productStoreInventory != null && response.product.productStoreInventory > 0) {\n $('#delivery-options-store').prop('disabled',false);\n $('.selected-store-availability').attr('data-status','store-in-stock');\n $('.selected-store-availability').text('In Stock');\n $('.add-to-cart').prop('disabled', false);\n } else if (response.storeId != null) {\n if (!response.product.isBikeCategory) {\n $('#delivery-options-home').prop('checked',true);\n $('#delivery-options-store').prop('checked',false);\n $('#delivery-options-store').prop('disabled',true);\n }\n $('.selected-store-availability').attr('data-status','store-error');\n $('.selected-store-availability').text('Not Available');\n if (response.product.available) {\n $('.add-to-cart').prop('disabled', false);\n } else {\n $('.add-to-cart').prop('disabled', true);\n }\n }\n}\n\nfunction attributeSelect(selectedValueUrl, $productContainer) {\n if (selectedValueUrl) {\n $('body').trigger('product:beforeAttributeSelect', {\n url: selectedValueUrl,\n container: $productContainer\n });\n\n $.ajax({\n url: selectedValueUrl,\n method: 'GET',\n success: function (data) {\n handleVariantResponse(data, $productContainer);\n updateDeliveryOptions(data);\n updateOptions(data.product.optionsHtml, $productContainer);\n updateQuantities(data.product.quantities, $productContainer, data.product);\n $('body').trigger('product:afterAttributeSelect', {\n data: data,\n container: $productContainer\n });\n $('body').trigger('product:onChangingVariant', {\n data: data,\n container: $productContainer\n });\n $.spinner().stop();\n if (window.resources.preferences.listrakCartridgeEnabled === 'true') {\n try {\n // eslint-disable-next-line no-undef\n if (_ltk) {\n var sessionSku = data.product.id;\n /* Add the product browse if we have it. */\n if (sessionSku != null && sessionSku !== 'null' && sessionSku.length > 0) {\n // eslint-disable-next-line no-undef\n _ltk.Activity.AddProductBrowse(sessionSku);\n }\n /* Submit the activity through client side JS to the endpoint. */\n // eslint-disable-next-line no-undef\n _ltk.Activity.Submit();\n }\n } catch (error) {\n console.log('_ltk is not available');\n }\n }\n var quickViewContainer = document.getElementById('quickViewModal');\n var quickViewModalCart = document.getElementById('editProductModal');\n var editWishlistProductModal = document.getElementById('editWishlistProductModal');\n if (!quickViewContainer && !quickViewModalCart && !editWishlistProductModal) {\n window.history.pushState(null, '', data.pdpWindowUrl);\n }\n },\n error: function () {\n $.spinner().stop();\n }\n });\n }\n}\n\n// To change carousel primary image on hovering the color swatches\nfunction swatchesHoverImage() {\n $('body').on('mouseover', '.color-attribute:not(\".selected-swatch\")', function () {\n var thumbimage = $(this).data('thumb-main');\n $('.product-image-carousel .slick-active img').attr('src', thumbimage).addClass('hover-swatch');\n }).on('mouseleave', '.color-attribute:not(\".selected-swatch\")', function () {\n var prevImage = $('.color-attribute.selected-swatch').data('thumb-main');\n $('.product-image-carousel .slick-active img').attr('src', prevImage).removeClass('hover-swatch');\n });\n}\n\nfunction sizeChart() {\n $('body').on('click', '.product-quickview .size-chart a:not(\".nav-link\")', function (e) {\n e.preventDefault();\n var $this = $(this);\n var url = $this.attr('href');\n var $prodSizeChart = $this.closest('.size-chart').find('.size-chart-collapsible');\n $this.closest('.size-chart').append('
    ');\n if ($('#size-chart-modal').length !== 0) {\n $('#size-chart-modal').remove();\n }\n\n //cloning the modal from isml\n var $modalAppend = $this.closest('.size-chart').find('.size-chart-modal').clone().appendTo('body');\n var $modalShow = $modalAppend.attr('id', 'size-chart-modal');\n if ($prodSizeChart.is(':empty')) {\n $.ajax({\n url: url,\n type: 'get',\n dataType: 'json',\n success: function (data) {\n var sizeChartDetail = $prodSizeChart.append(data.content);\n $('#size-chart-modal .modal-body').html(sizeChartDetail);\n $('#size-chart-modal').modal('show').addClass('show');\n }\n });\n }\n });\n\n //Removing modal div on close and modal hide\n $('body').on('hidden.bs.modal', '#size-chart-modal', function (e) {\n $('#size-chart-modal').remove();\n });\n\n $('body').on('click', '#size-chart-modal .close', function (e) {\n $('#size-chart-modal').modal('hide');\n });\n}\n\nmodule.exports = $.extend({}, base, {\n attributeSelect: attributeSelect,\n pdpImagesSlick: pdpImagesSlick,\n quickViewImagesSlick: quickViewImagesSlick,\n sizeChart: sizeChart,\n swatchesHoverImage: swatchesHoverImage,\n\n colorAttribute: function () {\n $(document).on('click', '[data-attr=\"color\"] button', function (e) {\n e.preventDefault();\n\n if ($(this).attr('disabled')) {\n return;\n }\n var $productContainer = $(this).closest('.set-item');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.product-detail');\n }\n attributeSelect($(this).attr('data-url'), $productContainer);\n });\n\n $('body').on('click', '.primary-images .slick-paging-btn', function () {\n swatchesHoverImage();\n });\n },\n\n selectAttribute: function () {\n $(document).on('change', 'select[class*=\"select-\"], .options-select', function (e) {\n e.preventDefault();\n\n var $productContainer = $(this).closest('.set-item');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.product-detail');\n }\n attributeSelect(e.currentTarget.value, $productContainer);\n });\n\n $(document).on('click', '.size-change span', function (e) {\n e.preventDefault();\n\n var $productContainer = $(this).closest('.set-item');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.product-detail');\n }\n $('.size-change span.selected').removeClass('selected');\n $(this).addClass('selected');\n attributeSelect($(this).data('value'), $productContainer);\n });\n },\n\n availability: function () {\n $(document).on('change', '.quantity-select', function (e) {\n e.preventDefault();\n\n var $productContainer = $(this).closest('.product-detail');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.modal-content').find('.product-quickview');\n }\n\n if ($('.bundle-items', $productContainer).length === 0) {\n attributeSelect($(e.currentTarget).find('option:selected').data('url'),\n $productContainer);\n }\n });\n\n $(document).on('change', '.select-color', function (e) {\n if ($(this).val() == 'null') {\n var AvailabilityMsg = '
  • Select Styles for Availability
  • ';\n $('.list-unstyled.availability-msg').empty().html(AvailabilityMsg);\n $('.add-to-cart').prop('disabled', true);\n }\n });\n\n }\n\n});\n","'use strict';\nvar base = require('./base');\nvar baseDetail = require('base/product/detail');\nvar baseWishlist = require('wishList/product/wishlist');\n\nfunction getOptions($productContainer) {\n var options = $productContainer\n .find('.product-option')\n .map(function () {\n var $elOption = $(this).find('.options-select');\n var urlValue = $elOption.val();\n var selectedValueId = $elOption.find('option[value=\"' + urlValue + '\"]')\n .data('value-id');\n return {\n optionId: $(this).data('option-id'),\n selectedValueId: selectedValueId\n };\n }).toArray();\n\n return JSON.stringify(options);\n}\n\nfunction getAddToCartUrl() {\n return $('.add-to-cart-url').val();\n}\n\n\nfunction getChildProducts() {\n var childProducts = [];\n $('.bundle-item').each(function () {\n childProducts.push({\n pid: $(this).find('.product-id').text() || $(this).data('pid'),\n quantity: parseInt($(this).find('.quantity').data('quantity'), 10)\n });\n });\n\n return childProducts.length ? JSON.stringify(childProducts) : [];\n}\n\nfunction chooseBonusProducts(data) {\n $('.modal-body').spinner().start();\n\n if ($('#chooseBonusProductModal').length !== 0) {\n $('#chooseBonusProductModal').remove();\n }\n var bonusUrl;\n if (data.bonusChoiceRuleBased) {\n bonusUrl = data.showProductsUrlRuleBased;\n } else {\n bonusUrl = data.showProductsUrlListBased;\n }\n\n var htmlString = '' +\n '
    ' +\n '' +\n '
    ' +\n '' +\n '
    ' +\n '
    ' +\n ' ' + data.labels.selectprods + '' +\n ' ' +\n '
    ' +\n '
    ' +\n '
    ' +\n '
    ' +\n '
    ' +\n '
    ';\n $('body').append(htmlString);\n $('.modal-body').spinner().start();\n\n $.ajax({\n url: bonusUrl,\n method: 'GET',\n dataType: 'json',\n success: function (response) {\n var parsedHtml = parseHtml(response.renderedTemplate);\n $('#chooseBonusProductModal .modal-body').empty();\n $('#chooseBonusProductModal .enter-message').text(response.enterDialogMessage);\n $('#chooseBonusProductModal .modal-header .close .sr-only').text(response.closeButtonText);\n $('#chooseBonusProductModal .modal-body').html(parsedHtml.body);\n $('#chooseBonusProductModal .modal-footer').html(parsedHtml.footer);\n $('#chooseBonusProductModal').modal('show');\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n}\n\nfunction handlePostCartAdd(response) {\n $('.minicart').trigger('count:update', response);\n var messageType = response.error ? 'alert-danger' : 'alert-success';\n // show add to cart toast\n if (response.newBonusDiscountLineItem &&\n Object.keys(response.newBonusDiscountLineItem).length !== 0) {\n chooseBonusProducts(response.newBonusDiscountLineItem);\n } else {\n if ($('.add-to-cart-messages').length === 0) {\n $('body').append(\n '
    '\n );\n }\n\n $('.add-to-cart-messages').append(\n '
    ' +\n response.message +\n '
    '\n );\n\n setTimeout(function () {\n $('.add-to-basket-alert').remove();\n }, 5000);\n }\n}\n\nfunction displayMessage(data, button) {\n $.spinner().stop();\n var status;\n if (data.success) {\n status = 'alert-success';\n } else {\n status = 'alert-danger';\n }\n\n if ($('.add-to-wishlist-messages').length === 0) {\n $('body').append(\n '
    '\n );\n }\n $('.add-to-wishlist-messages')\n .append('
    ' + data.msg + '
    ');\n\n setTimeout(function () {\n $('.add-to-wishlist-messages').remove();\n button.removeAttr('disabled');\n }, 5000);\n}\n\nbaseDetail.updateAttributesAndDetails = function () {\n $('body').on('product:statusUpdate', function (e, data) {\n //updates product name and brand\n if ($('.product-detail .product-name').length) {\n $('.product-name').text(data.productName);\n }\n if ($('.product-detail .brand-name').length) {\n $('.brand-name').text(data.brand);\n }\n\n var $productContainer = $('.product-detail');\n\n $productContainer.find('.description-and-detail .product-attributes')\n .empty()\n .html(data.attributesHtml);\n\n if (data.shortDescription) {\n $productContainer.find('.description-and-detail .description')\n .removeClass('hidden-xl-down');\n $productContainer.find('.description-and-detail .description .content')\n .empty()\n .html(data.shortDescription);\n } else {\n $productContainer.find('.description-and-detail .description')\n .addClass('hidden-xl-down');\n }\n\n if (data.longDescription) {\n $productContainer.find('.description-and-detail .details')\n .removeClass('hidden-xl-down');\n $productContainer.find('.description-and-detail .details .content')\n .empty()\n .html(data.longDescription);\n } else {\n $productContainer.find('.description-and-detail .details')\n .addClass('hidden-xl-down');\n }\n // Only for custom PDP tabs\n if ($('.description-and-detail .product-custom-attributes').length > 0 && data.customCategoryTabHtml) {\n $('.description-and-detail .product-custom-attributes').remove();\n $(\".description-and-detail #myTabContent\").append(data.customCategoryTabHtml);\n } else if (data.customCategoryTabHtml) {\n $productContainer.find('#myTabContent').append(data.customCategoryTabHtml);\n } else if ($('.description-and-detail .product-custom-attributes').length > 0) {\n $('.description-and-detail .product-custom-attributes').remove();\n }\n\n // Only for custom PDP tab ID\n if ($('.description-and-detail .custom-product-tab-li').length > 0 && data.customCategoryTabIDHtml) {\n $('.description-and-detail .custom-product-tab-li').remove();\n $(\".description-and-detail #myTab\").append(data.customCategoryTabIDHtml);\n $(\".description-and-detail #myTab li:first a\").trigger(\"click\");\n } else if (data.customCategoryTabIDHtml) {\n $productContainer.find('#myTab').append(data.customCategoryTabIDHtml);\n $(\".description-and-detail #myTab li:first a\").trigger(\"click\");\n } else if ($('.description-and-detail .custom-product-tab-li').length > 0) {\n $('.description-and-detail .custom-product-tab-li').remove();\n $(\".description-and-detail #myTab li:first a\").trigger(\"click\");\n }\n });\n\n // Thumbnail refresh after ajax update\n $('body').on('product:afterAttributeSelect', function () {\n setTimeout(function () {\n $(document).find('.product-thumbnail-slick').slick('refresh');\n }, 1000);\n });\n};\n\n// avoid spinner on quantity update, removed product:beforeAttributeSelect from base\nbaseDetail.showSpinner = function () {\n $('body').on('product:beforeAddToCart', function () {\n $.spinner().start();\n });\n};\n\nbaseDetail.productZoom = function () {\n if ($(window).width() > 1024) {\n $('.easyzoom').easyZoom();\n }\n};\n\n\nbaseDetail.availability = function () {\n $(document).on('change', '.quantity-select', function (e) {\n e.preventDefault();\n\n var $productContainer = $(this).closest('.product-detail');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.modal-content').find('.product-quickview');\n }\n\n if ($('.bundle-items', $productContainer).length === 0) {\n base.attributeSelect($(e.currentTarget).find('option:selected').data('url'),\n $productContainer);\n }\n });\n};\n\nbaseDetail.addToCart = function () {\n $(document).on('click', 'button.add-to-cart, button.add-to-cart-global', function () {\n var addToCartUrl;\n var pid;\n var pidsObj;\n var setPids;\n var storeId = null;\n //only added this storeID for BOPIS. If storeID is null it will work as norml flow.\n\n $('body').trigger('product:beforeAddToCart', this);\n\n if ($('.set-items').length && $(this).hasClass('add-to-cart-global')) {\n setPids = [];\n\n $('.product-detail').each(function () {\n if (!$(this).hasClass('product-set-detail')) {\n setPids.push({\n pid: $(this).find('.product-id').text(),\n qty: $(this).find('.quantity-select').val(),\n options: getOptions($(this))\n });\n }\n });\n pidsObj = JSON.stringify(setPids);\n }\n\n pid = base.getPidValue($(this));\n\n var $productContainer = $(this).closest('.product-detail');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.quick-view-dialog').find('.product-detail');\n }\n if ($('#delivery-options-store').prop('checked') == true) {\n storeId = $('.selected-store-address').attr('data-store-id');\n }\n\n addToCartUrl = getAddToCartUrl();\n\n var form = {\n pid: pid,\n pidsObj: pidsObj,\n storeId: storeId,\n childProducts: getChildProducts(),\n quantity: base.getQuantitySelected($(this))\n };\n if (window.resources.preferences.listrakCartridgeEnabled == 'true') {\n form.format = 'ajax';\n }\n\n if (!$('.bundle-item').length) {\n form.options = getOptions($productContainer);\n }\n\n $(this).trigger('updateAddToCartFormData', form);\n if (addToCartUrl) {\n $.ajax({\n url: addToCartUrl,\n method: 'POST',\n data: form,\n success: function (data) {\n handlePostCartAdd(data); // function is not exported from base\n $('body').trigger('product:afterAddToCart', data);\n $.spinner().stop();\n base.miniCartReportingUrl(data.reportingURL);\n },\n error: function () {\n $.spinner().stop();\n }\n });\n }\n });\n};\n\nbaseDetail.addToWishlist = function () {\n $('.add-to-wish-list').on('click', function (e) {\n e.preventDefault();\n var url = $(this).data('href');\n var button = $(this);\n var pid = $(this).closest('.product-detail').find('.product-id').html();\n var optionId = $(this).closest('.product-detail').find('.product-option').attr('data-option-id');\n var optionVal = $(this).closest('.product-detail').find('.options-select option:selected').attr('data-value-id');\n optionId = optionId || null;\n optionVal = optionVal || null;\n if (!url || !pid) {\n return;\n }\n\n $.spinner().start();\n $(this).attr('disabled', true);\n $.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n data: {\n pid: pid,\n optionId: optionId,\n optionVal: optionVal\n },\n success: function (data) {\n if (data.wishlistCount >= 0) {\n $('.wishlist span.wishlistCount').html(data.wishlistCount);\n }\n displayMessage(data, button);\n\n if (window.resources.preferences.isGTMEnabled) {\n $('body').trigger('gtm:addToWishlist');\n }\n },\n error: function (err) {\n displayMessage(err, button);\n }\n });\n });\n};\n\nbaseDetail.youtubeModal = function () {\n $('body').on('click', '.youtube-video-modal', function(e) {\n e.preventDefault();\n var url = $(this).attr('href');\n $('#youtubeModal').modal('show');\n $('#youtubeModal .modal-body').html('');\n });\n\n $('#youtubeModal').on('hidden.bs.modal', function () {\n $('#youtubeModal .modal-body').empty();\n });\n}\n\nmodule.exports = baseDetail;\n","'use strict';\n\nmodule.exports = {\n setTabNextFocus: function (focusParams) {\n var KEYCODE_TAB = 9;\n var isTabPressed = (focusParams.event.key === 'Tab' || focusParams.event.keyCode === KEYCODE_TAB);\n\n if (!isTabPressed) {\n return;\n }\n\n var firstFocusableEl = $(focusParams.containerSelector + ' ' + focusParams.firstElementSelector);\n var lastFocusableEl = $(focusParams.containerSelector + ' ' + focusParams.lastElementSelector);\n\n if ($(focusParams.containerSelector + ' ' + focusParams.lastElementSelector).is(':disabled')) {\n lastFocusableEl = $(focusParams.containerSelector + ' ' + focusParams.nextToLastElementSelector);\n if ($('.product-quickview.product-set').length > 0) {\n var linkElements = $(focusParams.containerSelector + ' a#fa-link.share-icons');\n lastFocusableEl = linkElements[linkElements.length - 1];\n }\n }\n\n if (focusParams.event.shiftKey) /* shift + tab */ {\n if ($(':focus').is(firstFocusableEl)) {\n lastFocusableEl.focus();\n focusParams.event.preventDefault();\n }\n } else /* tab */ {\n if ($(':focus').is(lastFocusableEl)) { // eslint-disable-line\n firstFocusableEl.focus();\n focusParams.event.preventDefault();\n }\n }\n }\n};\n","'use strict';\nvar focusHelper = require('../components/focus');\n\n/**\n * Retrieves the relevant pid value\n * @param {jquery} $el - DOM container for a given add to cart button\n * @return {string} - value to be used when adding product to cart\n */\nfunction getPidValue($el) {\n var pid;\n\n if ($('#quickViewModal').hasClass('show') && !$('.product-set').length) {\n pid = $($el).closest('.modal-content').find('.product-quickview').data('pid');\n } else if ($('.product-set-detail').length || $('.product-set').length) {\n pid = $($el).closest('.product-detail').find('.product-id').text();\n } else {\n pid = $('.product-detail:not(\".bundle-item\")').data('pid');\n }\n\n return pid;\n}\n\n/**\n * Retrieve contextual quantity selector\n * @param {jquery} $el - DOM container for the relevant quantity\n * @return {jquery} - quantity selector DOM container\n */\nfunction getQuantitySelector($el) {\n var quantitySelected;\n if ($el && $('.set-items').length) {\n quantitySelected = $($el).closest('.product-detail').find('.quantity-select');\n } else if ($el && $('.product-bundle').length) {\n var quantitySelectedModal = $($el).closest('.modal-footer').find('.quantity-select');\n var quantitySelectedPDP = $($el).closest('.bundle-footer').find('.quantity-select');\n if (quantitySelectedModal.val() === undefined) {\n quantitySelected = quantitySelectedPDP;\n } else {\n quantitySelected = quantitySelectedModal;\n }\n } else {\n quantitySelected = $('.quantity-select');\n }\n return quantitySelected;\n}\n\n/**\n * Retrieves the value associated with the Quantity pull-down menu\n * @param {jquery} $el - DOM container for the relevant quantity\n * @return {string} - value found in the quantity input\n */\nfunction getQuantitySelected($el) {\n return getQuantitySelector($el).val();\n}\n\n/**\n * Process the attribute values for an attribute that has image swatches\n *\n * @param {Object} attr - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {Object[]} attr.values - Array of attribute value objects\n * @param {string} attr.values.value - Attribute coded value\n * @param {string} attr.values.url - URL to de/select an attribute value of the product\n * @param {boolean} attr.values.isSelectable - Flag as to whether an attribute value can be\n * selected. If there is no variant that corresponds to a specific combination of attribute\n * values, an attribute may be disabled in the Product Detail Page\n * @param {jQuery} $productContainer - DOM container for a given product\n * @param {Object} msgs - object containing resource messages\n */\nfunction processSwatchValues(attr, $productContainer, msgs) {\n attr.values.forEach(function (attrValue) {\n var $attrValue = $productContainer.find('[data-attr=\"' + attr.id + '\"] [data-attr-value=\"' +\n attrValue.value + '\"]');\n var $swatchButton = $attrValue.parent();\n\n if (attrValue.selected) {\n $attrValue.addClass('selected');\n $attrValue.siblings('.selected-assistive-text').text(msgs.assistiveSelectedText);\n } else {\n $attrValue.removeClass('selected');\n $attrValue.siblings('.selected-assistive-text').empty();\n }\n\n if (attrValue.url) {\n $swatchButton.attr('data-url', attrValue.url);\n } else {\n $swatchButton.removeAttr('data-url');\n }\n\n // Disable if not selectable\n $attrValue.removeClass('selectable unselectable');\n\n $attrValue.addClass(attrValue.selectable ? 'selectable' : 'unselectable');\n });\n}\n\n/**\n * Process attribute values associated with an attribute that does not have image swatches\n *\n * @param {Object} attr - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {Object[]} attr.values - Array of attribute value objects\n * @param {string} attr.values.value - Attribute coded value\n * @param {string} attr.values.url - URL to de/select an attribute value of the product\n * @param {boolean} attr.values.isSelectable - Flag as to whether an attribute value can be\n * selected. If there is no variant that corresponds to a specific combination of attribute\n * values, an attribute may be disabled in the Product Detail Page\n * @param {jQuery} $productContainer - DOM container for a given product\n */\nfunction processNonSwatchValues(attr, $productContainer) {\n var $attr = '[data-attr=\"' + attr.id + '\"]';\n var $defaultOption = $productContainer.find($attr + ' .select-' + attr.id + ' option:first');\n $defaultOption.attr('value', attr.resetUrl);\n\n attr.values.forEach(function (attrValue) {\n var $attrValue = $productContainer\n .find($attr + ' [data-attr-value=\"' + attrValue.value + '\"]');\n $attrValue.attr('value', attrValue.url)\n .removeAttr('disabled');\n\n if (!attrValue.selectable) {\n $attrValue.attr('disabled', true);\n }\n });\n}\n\n/**\n * Routes the handling of attribute processing depending on whether the attribute has image\n * swatches or not\n *\n * @param {Object} attrs - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {jQuery} $productContainer - DOM element for a given product\n * @param {Object} msgs - object containing resource messages\n */\nfunction updateAttrs(attrs, $productContainer, msgs) {\n // Currently, the only attribute type that has image swatches is Color.\n var attrsWithSwatches = ['color'];\n\n attrs.forEach(function (attr) {\n if (attrsWithSwatches.indexOf(attr.id) > -1) {\n processSwatchValues(attr, $productContainer, msgs);\n } else {\n processNonSwatchValues(attr, $productContainer);\n }\n });\n}\n\n/**\n * Updates the availability status in the Product Detail Page\n *\n * @param {Object} response - Ajax response object after an\n * attribute value has been [de]selected\n * @param {jQuery} $productContainer - DOM element for a given product\n */\nfunction updateAvailability(response, $productContainer) {\n var availabilityValue = '';\n var availabilityMessages = response.product.availability.messages;\n if (!response.product.readyToOrder) {\n availabilityValue = '
  • ' + response.resources.info_selectforstock + '
  • ';\n } else {\n availabilityMessages.forEach(function (message) {\n availabilityValue += '
  • ' + message + '
  • ';\n });\n }\n\n $($productContainer).trigger('product:updateAvailability', {\n product: response.product,\n $productContainer: $productContainer,\n message: availabilityValue,\n resources: response.resources\n });\n}\n\n/**\n * Generates html for product attributes section\n *\n * @param {array} attributes - list of attributes\n * @return {string} - Compiled HTML\n */\nfunction getAttributesHtml(attributes) {\n if (!attributes) {\n return '';\n }\n\n var html = '';\n\n attributes.forEach(function (attributeGroup) {\n if (attributeGroup.ID === 'mainAttributes') {\n attributeGroup.attributes.forEach(function (attribute) {\n html += '
    ' + attribute.label + ': '\n + attribute.value + '
    ';\n });\n }\n });\n\n return html;\n}\n\n/**\n * @typedef UpdatedOptionValue\n * @type Object\n * @property {string} id - Option value ID for look up\n * @property {string} url - Updated option value selection URL\n */\n\n/**\n * @typedef OptionSelectionResponse\n * @type Object\n * @property {string} priceHtml - Updated price HTML code\n * @property {Object} options - Updated Options\n * @property {string} options.id - Option ID\n * @property {UpdatedOptionValue[]} options.values - Option values\n */\n\n/**\n * Updates DOM using post-option selection Ajax response\n *\n * @param {OptionSelectionResponse} optionsHtml - Ajax response optionsHtml from selecting a product option\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction updateOptions(optionsHtml, $productContainer) {\n\t// Update options\n $productContainer.find('.product-options').empty().html(optionsHtml);\n}\n\n/**\n * Dynamically creates Bootstrap carousel from response containing images\n * @param {Object[]} imgs - Array of large product images,along with related information\n * @param {jQuery} $productContainer - DOM element for a given product\n */\nfunction createCarousel(imgs, $productContainer) {\n var carousel = $productContainer.find('.carousel');\n $(carousel).carousel('dispose');\n var carouselId = $(carousel).attr('id');\n $(carousel).empty().append('
      ' + $(carousel).data('prev') + '' + $(carousel).data('next') + '');\n for (var i = 0; i < imgs.length; i++) {\n $('
      \"'
      ').appendTo($(carousel).find('.carousel-inner'));\n $('
    1. ').appendTo($(carousel).find('.carousel-indicators'));\n }\n $($(carousel).find('.carousel-item')).first().addClass('active');\n $($(carousel).find('.carousel-indicators > li')).first().addClass('active');\n if (imgs.length === 1) {\n $($(carousel).find('.carousel-indicators, a[class^=\"carousel-control-\"]')).detach();\n }\n $(carousel).carousel();\n $($(carousel).find('.carousel-indicators')).attr('aria-hidden', true);\n}\n\n/**\n * Parses JSON from Ajax call made whenever an attribute value is [de]selected\n * @param {Object} response - response from Ajax call\n * @param {Object} response.product - Product object\n * @param {string} response.product.id - Product ID\n * @param {Object[]} response.product.variationAttributes - Product attributes\n * @param {Object[]} response.product.images - Product images\n * @param {boolean} response.product.hasRequiredAttrsSelected - Flag as to whether all required\n * attributes have been selected. Used partially to\n * determine whether the Add to Cart button can be enabled\n * @param {jQuery} $productContainer - DOM element for a given product.\n */\nfunction handleVariantResponse(response, $productContainer) {\n var isChoiceOfBonusProducts =\n $productContainer.parents('.choose-bonus-product-dialog').length > 0;\n var isVaraint;\n if (response.product.variationAttributes) {\n updateAttrs(response.product.variationAttributes, $productContainer, response.resources);\n isVaraint = response.product.productType === 'variant';\n if (isChoiceOfBonusProducts && isVaraint) {\n $productContainer.parent('.bonus-product-item')\n .data('pid', response.product.id);\n\n $productContainer.parent('.bonus-product-item')\n .data('ready-to-order', response.product.readyToOrder);\n }\n }\n\n // Update primary images\n var primaryImageUrls = response.product.images.large;\n createCarousel(primaryImageUrls, $productContainer);\n\n // Update pricing\n if (!isChoiceOfBonusProducts) {\n var $priceSelector = $('.prices .price', $productContainer).length\n ? $('.prices .price', $productContainer)\n : $('.prices .price');\n $priceSelector.replaceWith(response.product.price.html);\n }\n\n // Update promotions\n $productContainer.find('.promotions').empty().html(response.product.promotionsHtml);\n\n updateAvailability(response, $productContainer);\n\n if (isChoiceOfBonusProducts) {\n var $selectButton = $productContainer.find('.select-bonus-product');\n $selectButton.trigger('bonusproduct:updateSelectButton', {\n product: response.product, $productContainer: $productContainer\n });\n } else {\n // Enable \"Add to Cart\" button if all required attributes have been selected\n $('button.add-to-cart, button.add-to-cart-global, button.update-cart-product-global').trigger('product:updateAddToCart', {\n product: response.product, $productContainer: $productContainer\n }).trigger('product:statusUpdate', response.product);\n }\n\n // Update attributes\n $productContainer.find('.main-attributes').empty()\n .html(getAttributesHtml(response.product.attributes));\n}\n\n/**\n * @typespec UpdatedQuantity\n * @type Object\n * @property {boolean} selected - Whether the quantity has been selected\n * @property {string} value - The number of products to purchase\n * @property {string} url - Compiled URL that specifies variation attributes, product ID, options,\n * etc.\n */\n\n/**\n * Updates the quantity DOM elements post Ajax call\n * @param {UpdatedQuantity[]} quantities -\n * @param {jQuery} $productContainer - DOM container for a given product\n */\nfunction updateQuantities(quantities, $productContainer) {\n if ($productContainer.parent('.bonus-product-item').length <= 0) {\n var optionsHtml = quantities.map(function (quantity) {\n var selected = quantity.selected ? ' selected ' : '';\n return '';\n }).join('');\n getQuantitySelector($productContainer).empty().html(optionsHtml);\n }\n}\n\n/**\n * updates the product view when a product attribute is selected or deselected or when\n * changing quantity\n * @param {string} selectedValueUrl - the Url for the selected variation value\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction attributeSelect(selectedValueUrl, $productContainer) {\n if (selectedValueUrl) {\n $('body').trigger('product:beforeAttributeSelect',\n { url: selectedValueUrl, container: $productContainer });\n\n $.ajax({\n url: selectedValueUrl,\n method: 'GET',\n success: function (data) {\n handleVariantResponse(data, $productContainer);\n updateOptions(data.product.optionsHtml, $productContainer);\n updateQuantities(data.product.quantities, $productContainer);\n $('body').trigger('product:afterAttributeSelect',\n { data: data, container: $productContainer });\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n }\n}\n\n/**\n * Retrieves url to use when adding a product to the cart\n *\n * @return {string} - The provided URL to use when adding a product to the cart\n */\nfunction getAddToCartUrl() {\n return $('.add-to-cart-url').val();\n}\n\n/**\n * Parses the html for a modal window\n * @param {string} html - representing the body and footer of the modal window\n *\n * @return {Object} - Object with properties body and footer.\n */\nfunction parseHtml(html) {\n var $html = $('
      ').append($.parseHTML(html));\n\n var body = $html.find('.choice-of-bonus-product');\n var footer = $html.find('.modal-footer').children();\n\n return { body: body, footer: footer };\n}\n\n/**\n * Retrieves url to use when adding a product to the cart\n *\n * @param {Object} data - data object used to fill in dynamic portions of the html\n */\nfunction chooseBonusProducts(data) {\n $('.modal-body').spinner().start();\n\n if ($('#chooseBonusProductModal').length !== 0) {\n $('#chooseBonusProductModal').remove();\n }\n var bonusUrl;\n if (data.bonusChoiceRuleBased) {\n bonusUrl = data.showProductsUrlRuleBased;\n } else {\n bonusUrl = data.showProductsUrlListBased;\n }\n\n var htmlString = ''\n + '
      '\n + ''\n + '
      '\n + ''\n + '
      '\n + '
      '\n + ' ' + data.labels.selectprods + ''\n + ' '\n + '
      '\n + '
      '\n + '
      '\n + '
      '\n + '
      '\n + '
      ';\n $('body').append(htmlString);\n $('.modal-body').spinner().start();\n\n $.ajax({\n url: bonusUrl,\n method: 'GET',\n dataType: 'json',\n success: function (response) {\n var parsedHtml = parseHtml(response.renderedTemplate);\n $('#chooseBonusProductModal .modal-body').empty();\n $('#chooseBonusProductModal .enter-message').text(response.enterDialogMessage);\n $('#chooseBonusProductModal .modal-header .close .sr-only').text(response.closeButtonText);\n $('#chooseBonusProductModal .modal-body').html(parsedHtml.body);\n $('#chooseBonusProductModal .modal-footer').html(parsedHtml.footer);\n $('#chooseBonusProductModal').modal('show');\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n}\n\n/**\n * Updates the Mini-Cart quantity value after the customer has pressed the \"Add to Cart\" button\n * @param {string} response - ajax response from clicking the add to cart button\n */\nfunction handlePostCartAdd(response) {\n $('.minicart').trigger('count:update', response);\n var messageType = response.error ? 'alert-danger' : 'alert-success';\n // show add to cart toast\n if (response.newBonusDiscountLineItem\n && Object.keys(response.newBonusDiscountLineItem).length !== 0) {\n chooseBonusProducts(response.newBonusDiscountLineItem);\n } else {\n if ($('.add-to-cart-messages').length === 0) {\n $('body').append(\n '
      '\n );\n }\n\n $('.add-to-cart-messages').append(\n '
      '\n + response.message\n + '
      '\n );\n\n setTimeout(function () {\n $('.add-to-basket-alert').remove();\n }, 5000);\n }\n}\n\n/**\n * Retrieves the bundle product item ID's for the Controller to replace bundle master product\n * items with their selected variants\n *\n * @return {string[]} - List of selected bundle product item ID's\n */\nfunction getChildProducts() {\n var childProducts = [];\n $('.bundle-item').each(function () {\n childProducts.push({\n pid: $(this).find('.product-id').text(),\n quantity: parseInt($(this).find('label.quantity').data('quantity'), 10)\n });\n });\n\n return childProducts.length ? JSON.stringify(childProducts) : [];\n}\n\n/**\n * Retrieve product options\n *\n * @param {jQuery} $productContainer - DOM element for current product\n * @return {string} - Product options and their selected values\n */\nfunction getOptions($productContainer) {\n var options = $productContainer\n .find('.product-option')\n .map(function () {\n var $elOption = $(this).find('.options-select');\n var urlValue = $elOption.val();\n var selectedValueId = $elOption.find('option[value=\"' + urlValue + '\"]')\n .data('value-id');\n return {\n optionId: $(this).data('option-id'),\n selectedValueId: selectedValueId\n };\n }).toArray();\n\n return JSON.stringify(options);\n}\n\n/**\n * Makes a call to the server to report the event of adding an item to the cart\n *\n * @param {string | boolean} url - a string representing the end point to hit so that the event can be recorded, or false\n */\nfunction miniCartReportingUrl(url) {\n if (url) {\n $.ajax({\n url: url,\n method: 'GET',\n success: function () {\n // reporting urls hit on the server\n },\n error: function () {\n // no reporting urls hit on the server\n }\n });\n }\n}\n\nmodule.exports = {\n attributeSelect: attributeSelect,\n methods: {\n editBonusProducts: function (data) {\n chooseBonusProducts(data);\n }\n },\n\n focusChooseBonusProductModal: function () {\n $('body').on('shown.bs.modal', '#chooseBonusProductModal', function () {\n $('#chooseBonusProductModal').siblings().attr('aria-hidden', 'true');\n $('#chooseBonusProductModal .close').focus();\n });\n },\n\n onClosingChooseBonusProductModal: function () {\n $('body').on('hidden.bs.modal', '#chooseBonusProductModal', function () {\n $('#chooseBonusProductModal').siblings().attr('aria-hidden', 'false');\n });\n },\n\n trapChooseBonusProductModalFocus: function () {\n $('body').on('keydown', '#chooseBonusProductModal', function (e) {\n var focusParams = {\n event: e,\n containerSelector: '#chooseBonusProductModal',\n firstElementSelector: '.close',\n lastElementSelector: '.add-bonus-products'\n };\n focusHelper.setTabNextFocus(focusParams);\n });\n },\n\n colorAttribute: function () {\n $(document).on('click', '[data-attr=\"color\"] button', function (e) {\n e.preventDefault();\n\n if ($(this).attr('disabled')) {\n return;\n }\n var $productContainer = $(this).closest('.set-item');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.product-detail');\n }\n\n attributeSelect($(this).attr('data-url'), $productContainer);\n });\n },\n\n selectAttribute: function () {\n $(document).on('change', 'select[class*=\"select-\"], .options-select', function (e) {\n e.preventDefault();\n\n var $productContainer = $(this).closest('.set-item');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.product-detail');\n }\n attributeSelect(e.currentTarget.value, $productContainer);\n });\n },\n\n availability: function () {\n $(document).on('change', '.quantity-select', function (e) {\n e.preventDefault();\n\n var $productContainer = $(this).closest('.product-detail');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.modal-content').find('.product-quickview');\n }\n\n if ($('.bundle-items', $productContainer).length === 0) {\n attributeSelect($(e.currentTarget).find('option:selected').data('url'),\n $productContainer);\n }\n });\n },\n\n addToCart: function () {\n $(document).on('click', 'button.add-to-cart, button.add-to-cart-global', function () {\n var addToCartUrl;\n var pid;\n var pidsObj;\n var setPids;\n\n $('body').trigger('product:beforeAddToCart', this);\n\n if ($('.set-items').length && $(this).hasClass('add-to-cart-global')) {\n setPids = [];\n\n $('.product-detail').each(function () {\n if (!$(this).hasClass('product-set-detail')) {\n setPids.push({\n pid: $(this).find('.product-id').text(),\n qty: $(this).find('.quantity-select').val(),\n options: getOptions($(this))\n });\n }\n });\n pidsObj = JSON.stringify(setPids);\n }\n\n pid = getPidValue($(this));\n\n var $productContainer = $(this).closest('.product-detail');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.quick-view-dialog').find('.product-detail');\n }\n\n addToCartUrl = getAddToCartUrl();\n\n var form = {\n pid: pid,\n pidsObj: pidsObj,\n childProducts: getChildProducts(),\n quantity: getQuantitySelected($(this))\n };\n\n if (!$('.bundle-item').length) {\n form.options = getOptions($productContainer);\n }\n\n $(this).trigger('updateAddToCartFormData', form);\n if (addToCartUrl) {\n $.ajax({\n url: addToCartUrl,\n method: 'POST',\n data: form,\n success: function (data) {\n handlePostCartAdd(data);\n $('body').trigger('product:afterAddToCart', data);\n $.spinner().stop();\n miniCartReportingUrl(data.reportingURL);\n },\n error: function () {\n $.spinner().stop();\n }\n });\n }\n });\n },\n selectBonusProduct: function () {\n $(document).on('click', '.select-bonus-product', function () {\n var $choiceOfBonusProduct = $(this).parents('.choice-of-bonus-product');\n var pid = $(this).data('pid');\n var maxPids = $('.choose-bonus-product-dialog').data('total-qty');\n var submittedQty = parseInt($choiceOfBonusProduct.find('.bonus-quantity-select').val(), 10);\n var totalQty = 0;\n $.each($('#chooseBonusProductModal .selected-bonus-products .selected-pid'), function () {\n totalQty += $(this).data('qty');\n });\n totalQty += submittedQty;\n var optionID = $choiceOfBonusProduct.find('.product-option').data('option-id');\n var valueId = $choiceOfBonusProduct.find('.options-select option:selected').data('valueId');\n if (totalQty <= maxPids) {\n var selectedBonusProductHtml = ''\n + '
      '\n + '
      '\n + $choiceOfBonusProduct.find('.product-name').html()\n + '
      '\n + '
      '\n + '
      '\n ;\n $('#chooseBonusProductModal .selected-bonus-products').append(selectedBonusProductHtml);\n $('.pre-cart-products').html(totalQty);\n $('.selected-bonus-products .bonus-summary').removeClass('alert-danger');\n } else {\n $('.selected-bonus-products .bonus-summary').addClass('alert-danger');\n }\n });\n },\n removeBonusProduct: function () {\n $(document).on('click', '.selected-pid', function () {\n $(this).remove();\n var $selected = $('#chooseBonusProductModal .selected-bonus-products .selected-pid');\n var count = 0;\n if ($selected.length) {\n $selected.each(function () {\n count += parseInt($(this).data('qty'), 10);\n });\n }\n\n $('.pre-cart-products').html(count);\n $('.selected-bonus-products .bonus-summary').removeClass('alert-danger');\n });\n },\n enableBonusProductSelection: function () {\n $('body').on('bonusproduct:updateSelectButton', function (e, response) {\n $('button.select-bonus-product', response.$productContainer).attr('disabled',\n (!response.product.readyToOrder || !response.product.available));\n var pid = response.product.id;\n $('button.select-bonus-product', response.$productContainer).data('pid', pid);\n });\n },\n showMoreBonusProducts: function () {\n $(document).on('click', '.show-more-bonus-products', function () {\n var url = $(this).data('url');\n $('.modal-content').spinner().start();\n $.ajax({\n url: url,\n method: 'GET',\n success: function (html) {\n var parsedHtml = parseHtml(html);\n $('.modal-body').append(parsedHtml.body);\n $('.show-more-bonus-products:first').remove();\n $('.modal-content').spinner().stop();\n },\n error: function () {\n $('.modal-content').spinner().stop();\n }\n });\n });\n },\n addBonusProductsToCart: function () {\n $(document).on('click', '.add-bonus-products', function () {\n var $readyToOrderBonusProducts = $('.choose-bonus-product-dialog .selected-pid');\n var queryString = '?pids=';\n var url = $('.choose-bonus-product-dialog').data('addtocarturl');\n var pidsObject = {\n bonusProducts: []\n };\n\n $.each($readyToOrderBonusProducts, function () {\n var qtyOption =\n parseInt($(this)\n .data('qty'), 10);\n\n var option = null;\n if (qtyOption > 0) {\n if ($(this).data('optionid') && $(this).data('option-selected-value')) {\n option = {};\n option.optionId = $(this).data('optionid');\n option.productId = $(this).data('pid');\n option.selectedValueId = $(this).data('option-selected-value');\n }\n pidsObject.bonusProducts.push({\n pid: $(this).data('pid'),\n qty: qtyOption,\n options: [option]\n });\n pidsObject.totalQty = parseInt($('.pre-cart-products').html(), 10);\n }\n });\n queryString += JSON.stringify(pidsObject);\n queryString = queryString + '&uuid=' + $('.choose-bonus-product-dialog').data('uuid');\n queryString = queryString + '&pliuuid=' + $('.choose-bonus-product-dialog').data('pliuuid');\n $.spinner().start();\n $.ajax({\n url: url + queryString,\n method: 'POST',\n success: function (data) {\n $.spinner().stop();\n if (data.error) {\n $('#chooseBonusProductModal').modal('hide');\n if ($('.add-to-cart-messages').length === 0) {\n $('body').append('
      ');\n }\n $('.add-to-cart-messages').append(\n '
      '\n + data.errorMessage + '
      '\n );\n setTimeout(function () {\n $('.add-to-basket-alert').remove();\n }, 3000);\n } else {\n $('.configure-bonus-product-attributes').html(data);\n $('.bonus-products-step2').removeClass('hidden-xl-down');\n $('#chooseBonusProductModal').modal('hide');\n\n if ($('.add-to-cart-messages').length === 0) {\n $('body').append('
      ');\n }\n $('.minicart-quantity').html(data.totalQty);\n $('.add-to-cart-messages').append(\n '
      '\n + data.msgSuccess + '
      '\n );\n setTimeout(function () {\n $('.add-to-basket-alert').remove();\n if ($('.cart-page').length) {\n location.reload();\n }\n }, 1500);\n }\n },\n error: function () {\n $.spinner().stop();\n }\n });\n });\n },\n\n getPidValue: getPidValue,\n getQuantitySelected: getQuantitySelected,\n miniCartReportingUrl: miniCartReportingUrl\n};\n","'use strict';\nvar base = require('./base');\n\n/**\n * Enable/disable UI elements\n * @param {boolean} enableOrDisable - true or false\n */\nfunction updateAddToCartEnableDisableOtherElements(enableOrDisable) {\n $('button.add-to-cart-global').attr('disabled', enableOrDisable);\n}\n\nmodule.exports = {\n methods: {\n updateAddToCartEnableDisableOtherElements: updateAddToCartEnableDisableOtherElements\n },\n\n availability: base.availability,\n\n addToCart: base.addToCart,\n\n updateAttributesAndDetails: function () {\n $('body').on('product:statusUpdate', function (e, data) {\n var $productContainer = $('.product-detail[data-pid=\"' + data.id + '\"]');\n\n $productContainer.find('.description-and-detail .product-attributes')\n .empty()\n .html(data.attributesHtml);\n\n if (data.shortDescription) {\n $productContainer.find('.description-and-detail .description')\n .removeClass('hidden-xl-down');\n $productContainer.find('.description-and-detail .description .content')\n .empty()\n .html(data.shortDescription);\n } else {\n $productContainer.find('.description-and-detail .description')\n .addClass('hidden-xl-down');\n }\n\n if (data.longDescription) {\n $productContainer.find('.description-and-detail .details')\n .removeClass('hidden-xl-down');\n $productContainer.find('.description-and-detail .details .content')\n .empty()\n .html(data.longDescription);\n } else {\n $productContainer.find('.description-and-detail .details')\n .addClass('hidden-xl-down');\n }\n });\n },\n\n showSpinner: function () {\n $('body').on('product:beforeAddToCart product:beforeAttributeSelect', function () {\n $.spinner().start();\n });\n },\n updateAttribute: function () {\n $('body').on('product:afterAttributeSelect', function (e, response) {\n if ($('.product-detail>.bundle-items').length) {\n response.container.data('pid', response.data.product.id);\n response.container.find('.product-id').text(response.data.product.id);\n } else if ($('.product-set-detail').eq(0)) {\n response.container.data('pid', response.data.product.id);\n response.container.find('.product-id').text(response.data.product.id);\n } else {\n $('.product-id').text(response.data.product.id);\n $('.product-detail:not(\".bundle-item\")').data('pid', response.data.product.id);\n }\n });\n },\n updateAddToCart: function () {\n $('body').on('product:updateAddToCart', function (e, response) {\n // update local add to cart (for sets)\n $('button.add-to-cart', response.$productContainer).attr('disabled',\n (!response.product.readyToOrder || !response.product.available));\n\n var enable = $('.product-availability').toArray().every(function (item) {\n return $(item).data('available') && $(item).data('ready-to-order');\n });\n module.exports.methods.updateAddToCartEnableDisableOtherElements(!enable);\n });\n },\n updateAvailability: function () {\n $('body').on('product:updateAvailability', function (e, response) {\n $('div.availability', response.$productContainer)\n .data('ready-to-order', response.product.readyToOrder)\n .data('available', response.product.available);\n\n $('.availability-msg', response.$productContainer)\n .empty().html(response.message);\n\n if ($('.global-availability').length) {\n var allAvailable = $('.product-availability').toArray()\n .every(function (item) { return $(item).data('available'); });\n\n var allReady = $('.product-availability').toArray()\n .every(function (item) { return $(item).data('ready-to-order'); });\n\n $('.global-availability')\n .data('ready-to-order', allReady)\n .data('available', allAvailable);\n\n $('.global-availability .availability-msg').empty()\n .html(allReady ? response.message : response.resources.info_selectforstock);\n }\n });\n },\n sizeChart: function () {\n $('.size-chart a').on('click', function (e) {\n e.preventDefault();\n var url = $(this).attr('href');\n var $prodSizeChart = $(this).closest('.size-chart').find('.size-chart-collapsible');\n if ($prodSizeChart.is(':empty')) {\n $.ajax({\n url: url,\n type: 'get',\n dataType: 'json',\n success: function (data) {\n $prodSizeChart.append(data.content);\n }\n });\n }\n $prodSizeChart.toggleClass('active');\n });\n\n var $sizeChart = $('.size-chart-collapsible');\n $('body').on('click touchstart', function (e) {\n if ($('.size-chart').has(e.target).length <= 0) {\n $sizeChart.removeClass('active');\n }\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\n focusChooseBonusProductModal: base.focusChooseBonusProductModal()\n};\n","'use strict';\n\nmodule.exports = function (include) {\n if (typeof include === 'function') {\n include();\n } else if (typeof include === 'object') {\n Object.keys(include).forEach(function (key) {\n if (typeof include[key] === 'function') {\n include[key]();\n }\n });\n }\n};\n","'use strict';\n\nmodule.exports = {\n setProduct: function () {\n if (window.OrdergrooveLegacyOffers) {\n $('.og-offer').ready(function () {\n if (window.OG && window.OG.setProduct) {\n window.OG.setProduct({\n id: $('.product-detail').data('pid'),\n module: $('.og-offer').data('og-module'),\n quantity: $('.product-detail').find('.quantity-select').val()\n });\n }\n });\n }\n },\n updateProduct: function () {\n $('body').on('product:afterAttributeSelect', function () {\n if (window.OrdergrooveLegacyOffers) {\n if (window.OG && window.OG.setProduct) {\n window.OG.setProduct({\n id: $('.product-detail').data('pid'),\n module: $('.og-offer').data('og-module'),\n quantity: $('.product-detail').find('.quantity-select').val()\n });\n }\n } else {\n $('og-offer').attr('product', $('.product-detail').data('pid'));\n }\n });\n },\n setQuantity: function () {\n if (window.OrdergrooveLegacyOffers) {\n $(document).on('change', '.quantity-select', function (e) {\n e.preventDefault();\n if (window.OG && window.OG.setQuantity) {\n window.OG.setQuantity({\n id: $('.product-detail').data('pid'),\n module: $('.og-offer').data('og-module'),\n quantity: $(this).val()\n });\n }\n });\n }\n },\n updateCart: function () {\n if (window.OrdergrooveLegacyOffers) {\n $('body').on('product:afterAddToCart', function () {\n if (window.OG && window.OG.updateCart) {\n window.OG.updateCart({\n id: $('.product-detail').data('pid'),\n module: $('.og-offer').data('og-module'),\n quantity: $('.product-detail').find('.quantity-select').val()\n });\n }\n });\n }\n }\n};\n","'use strict';\n\n\n/**\n * appends params to a url\n * @param {string} data - data returned from the server's ajax call\n * @param {Object} button - button that was clicked to add a product to the wishlist\n */\nfunction displayMessage(data, button) {\n $.spinner().stop();\n var status;\n if (data.success) {\n status = 'alert-success';\n } else {\n status = 'alert-danger';\n }\n\n if ($('.add-to-wishlist-messages').length === 0) {\n $('body').append(\n '
      '\n );\n }\n $('.add-to-wishlist-messages')\n .append('
      ' + data.msg + '
      ');\n\n setTimeout(function () {\n $('.add-to-wishlist-messages').remove();\n button.removeAttr('disabled');\n }, 5000);\n}\n\nmodule.exports = {\n addToWishlist: function () {\n $('.add-to-wish-list').on('click', function (e) {\n e.preventDefault();\n var url = $(this).data('href');\n var button = $(this);\n var pid = $(this).closest('.product-detail').find('.product-id').html();\n var optionId = $(this).closest('.product-detail').find('.product-option').attr('data-option-id');\n var optionVal = $(this).closest('.product-detail').find('.options-select option:selected').attr('data-value-id');\n optionId = optionId || null;\n optionVal = optionVal || null;\n if (!url || !pid) {\n return;\n }\n\n $.spinner().start();\n $(this).attr('disabled', true);\n $.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n data: {\n pid: pid,\n optionId: optionId,\n optionVal: optionVal\n },\n success: function (data) {\n displayMessage(data, button);\n },\n error: function (err) {\n displayMessage(err, button);\n }\n });\n });\n }\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","'use strict';\n\nvar processInclude = require('base/util');\n\n$(document).ready(function () {\n processInclude(require('./product/detail'));\n\n if (window.resources.preferences.subscriptionProvider == 'ordergroove' && window.OG) {\n processInclude(require('orderGroove/product/detail'));\n }\n});\n"],"names":["base","require","quickViewImagesSlick","$quickviewImages","$","document","find","addClass","removeClass","$quickviewSlick","$quickviewSlickOptions","arrows","slidesToShow","slidesToScroll","focusOnSelect","infinite","dots","draggable","asNavFor","$slidesToShowValue","$slidesToScrollValue","$childElements","children","length","$quickviewThumbnailSlick","$quickviewTumbnailSlickOptions","centerMode","each","hasClass","slick","window","width","resources","preferences","quickViewZoomEnabled","easyZoom","pdpImagesSlick","$pdpSlick","$pdpSlickOptions","responsive","breakpoint","settings","attr","$thumbnailSlick","$tumbnailSlickOptions","vertical","swatchesHoverImage","createCarousel","response","$productContainer","$imageshtml","append","parseHTML","pdpImages","pdpDesktopImages","replaceWith","module","exports","storeSelectStyles","editWishlistProductModal","getElementById","editProductModal","prop","product","isBikeCategory","text","updateAvailability","availabilityValue","availabilityMessages","availability","messages","checkSizeSelected","readyToOrder","info_selectforstock","selectedAttrCount","unSelectedAttr","a","variationAttributes","push","id","b","values","selected","pop","i","availabilityClassName","available","orderSupplierText","forEach","message","toLowerCase","trigger","getAttributesHtml","attributes","html","attributeGroup","ID","attribute","label","value","updateOptions","optionsHtml","empty","getQuantitySelector","$el","quantitySelected","closest","quantitySelectedModal","quantitySelectedPDP","val","undefined","updateQuantities","quantities","parent","quantitySelector","CustomQuantitySelector","map","quantity","url","join","data","customQtyMessage","customMaxOrderQuantity","selectedQuantity","processSwatchValues","msgs","attrValue","$attrValue","$swatchButton","siblings","assistiveSelectedText","is","removeAttr","selectable","processNonSwatchValues","$attr","$defaultOption","resetUrl","replace","displayValue","updateAttrs","attrs","attrsWithSwatches","indexOf","handleVariantResponse","isChoiceOfBonusProducts","parents","isVaraint","productType","primaryImageUrls","images","large","$priceSelector","price","promotionsHtml","$selectButton","updateDeliveryOptions","uuid","productStoreInventory","storeId","attributeSelect","selectedValueUrl","container","ajax","method","success","spinner","stop","listrakCartridgeEnabled","_ltk","sessionSku","Activity","AddProductBrowse","Submit","error","console","log","quickViewContainer","quickViewModalCart","history","pushState","pdpWindowUrl","on","thumbimage","prevImage","sizeChart","e","preventDefault","$this","$prodSizeChart","remove","$modalAppend","clone","appendTo","$modalShow","type","dataType","sizeChartDetail","content","modal","extend","colorAttribute","selectAttribute","currentTarget","AvailabilityMsg","baseDetail","baseWishlist","getOptions","options","$elOption","urlValue","selectedValueId","optionId","toArray","JSON","stringify","getAddToCartUrl","getChildProducts","childProducts","pid","parseInt","chooseBonusProducts","start","bonusUrl","bonusChoiceRuleBased","showProductsUrlRuleBased","showProductsUrlListBased","htmlString","maxBonusItems","pliUUID","addToCartUrl","pageSize","labels","selectprods","parsedHtml","parseHtml","renderedTemplate","enterDialogMessage","closeButtonText","body","footer","handlePostCartAdd","messageType","newBonusDiscountLineItem","Object","keys","setTimeout","displayMessage","button","status","msg","updateAttributesAndDetails","productName","brand","attributesHtml","shortDescription","longDescription","customCategoryTabHtml","customCategoryTabIDHtml","showSpinner","productZoom","addToCart","pidsObj","setPids","qty","getPidValue","form","getQuantitySelected","format","miniCartReportingUrl","reportingURL","addToWishlist","optionVal","wishlistCount","isGTMEnabled","err","youtubeModal","setTabNextFocus","focusParams","KEYCODE_TAB","isTabPressed","event","key","keyCode","firstFocusableEl","containerSelector","firstElementSelector","lastFocusableEl","lastElementSelector","nextToLastElementSelector","linkElements","shiftKey","focus","focusHelper","imgs","carousel","carouselId","alt","index","title","first","detach","$html","methods","editBonusProducts","focusChooseBonusProductModal","onClosingChooseBonusProductModal","trapChooseBonusProductModalFocus","selectBonusProduct","$choiceOfBonusProduct","maxPids","submittedQty","totalQty","optionID","valueId","selectedBonusProductHtml","removeBonusProduct","$selected","count","enableBonusProductSelection","showMoreBonusProducts","addBonusProductsToCart","$readyToOrderBonusProducts","queryString","pidsObject","bonusProducts","qtyOption","option","productId","errorMessage","msgSuccess","location","reload","updateAddToCartEnableDisableOtherElements","enableOrDisable","updateAttribute","eq","updateAddToCart","enable","every","item","allAvailable","allReady","toggleClass","$sizeChart","has","target","copyProductLink","$temp","select","execCommand","_typeof","o","Symbol","iterator","constructor","prototype","include","setProduct","OrdergrooveLegacyOffers","ready","OG","updateProduct","setQuantity","updateCart","processInclude","subscriptionProvider"],"sourceRoot":""}