{"version":3,"file":"default/js/productTile.js","mappings":";;;;;;;;;;AAAA;;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACvBA;;AAEA;AAEA;AACA;AACA;AACA;AACA","sources":["webpack://sfcc/./cartridges/app_storefront_base/cartridge/client/default/js/util.js","webpack://sfcc/./cartridges/org_gamestop/cartridge/client/default/js/product/clickableTile.js","webpack://sfcc/./cartridges/org_gamestop/cartridge/client/default/js/product/swatch.js","webpack://sfcc/webpack/bootstrap","webpack://sfcc/./cartridges/org_gamestop/cartridge/client/default/js/productTile.js"],"sourcesContent":["'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","module.exports = {\n initializeTile: function () {\n $('body').on('click', '.product-tile', function (e) {\n var href = $(this).data('href');\n var $target = $(e.target);\n if (!href || $target.hasClass('quickview') || $target.hasClass('link') || $target.hasClass('selectable') || $target.hasClass('tradeable') || $target.hasClass('in-store-pickup') || $target.hasClass('heart-img')) {\n if ($target.hasClass('heart-img')) {\n var wishlistPlpTile = $('.product-tile-wishlist');\n var isSelectedWishlistPlpTile = wishlistPlpTile && wishlistPlpTile.hasClass('selected-tile');\n if (isSelectedWishlistPlpTile) {\n wishlistPlpTile.removeClass('selected-tile');\n }\n $(this).find(wishlistPlpTile).addClass('selected-tile');\n }\n return;\n }\n window.location.href = href;\n });\n\n $('body').on('click', '.product-tile-wishlist .library-modal', function (e) {\n e.stopPropagation();\n });\n }\n};\n","module.exports = {\n initializeSwatch: function () {\n $('body').on('click mouseenter', '.swatches .selectable', function () {\n var $this = $(this);\n var $thumbnailImage = $this.data('thumbnail');\n var $tileImage = $this.closest('.product-tile').find('.tile-image');\n\n var currentAttr = {\n src: $thumbnailImage.url,\n title: $thumbnailImage.title,\n alt: $thumbnailImage.alt\n };\n\n $tileImage.attr(currentAttr);\n $tileImage.data('current', currentAttr);\n\n return false;\n });\n },\n initialSwatchContainer: function () {\n $('[data-swatch-container-link]').on('click', function () {\n $('[data-swatch-container]').removeClass('open');\n $(this).next().addClass('open');\n return false;\n });\n\n $(document).on('click', function (event) {\n if (!$(event.target).closest('.swatches').length) {\n $('[data-swatch-container]').removeClass('open');\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('wishlists/product/wishlistHeart'));\n processInclude(require('./product/swatch'));\n processInclude(require('./product/clickableTile'));\n});\n"],"names":[],"sourceRoot":""}