{"version":3,"sources":["webpack:///./node_modules/core-js/internals/regexp-exec.js","webpack:///./node_modules/core-js/modules/es.regexp.exec.js","webpack:///./node_modules/core-js/modules/es.array.concat.js","webpack:///./node_modules/core-js/internals/regexp-exec-abstract.js","webpack:///./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js","webpack:///./node_modules/core-js/internals/advance-string-index.js","webpack:///./node_modules/core-js/modules/es.string.replace.js","webpack:///./src/js/modules/ProductGallery.js"],"names":["re1","re2","regexpFlags","nativeExec","RegExp","prototype","exec","nativeReplace","String","replace","patchedExec","UPDATES_LAST_INDEX_WRONG","call","lastIndex","NPCG_INCLUDED","undefined","str","reCopy","match","i","re","this","source","global","index","length","arguments","module","exports","regexpExec","target","proto","forced","isArray","isObject","toObject","toLength","createProperty","arraySpeciesCreate","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","array","concat","SPECIES_SUPPORT","isConcatSpreadable","O","spreadable","FORCED","arg","k","len","E","A","n","TypeError","classof","R","S","result","hide","redefine","fails","wellKnownSymbol","SPECIES","REPLACE_SUPPORTS_NAMED_GROUPS","groups","a","SPLIT_WORKS_WITH_OVERWRITTEN_EXEC","originalExec","apply","split","KEY","sham","SYMBOL","DELEGATES_TO_SYMBOL","DELEGATES_TO_EXEC","execCalled","constructor","nativeRegExpMethod","methods","nativeMethod","regexp","arg2","forceStringMethod","done","value","stringMethod","regexMethod","string","codePointAt","unicode","anObject","toInteger","requireObjectCoercible","advanceStringIndex","regExpExec","max","Math","min","floor","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","REPLACE","maybeCallNative","searchValue","replaceValue","replacer","res","rx","functionalReplace","fullUnicode","results","push","it","accumulatedResult","nextSourcePosition","matched","position","captures","j","namedCaptures","replacerArgs","replacement","getSubstitution","slice","tailPos","m","symbols","ch","capture","charAt","f","Swiper","use","Navigation","ProductGallery","dom","inner","el","querySelector","init","buildGalleryLightBox","galleryItems","forEach","item","addEventListener","displayGalleryLightBox","bind","imagesCount","querySelectorAll","image","button","document","createElement","classList","add","dataset","appendChild","overlay","label","viewMoreLabel","innerHTML","initialized","lightbox","body","sliderContainer","swiperWrapper","lightboxClose","lightboxInner","lightboxPagination","swiperSlide","cloneNode","swiper","slidesPerView","spaceBetween","navigation","nextEl","prevEl","on","update","activeIndex","slides","slideChange","closeGalleryLightBox","handleClickOutside","event","currentTarget","slideTo","show","console","log","close","contains","Component"],"mappings":"2FAEA,IAWMA,EACAC,EAZFC,EAAc,EAAQ,KAEtBC,EAAaC,OAAOC,UAAUC,KAI9BC,EAAgBC,OAAOH,UAAUI,QAEjCC,EAAcP,EAEdQ,GACEX,EAAM,IACNC,EAAM,MACVE,EAAWS,KAAKZ,EAAK,KACrBG,EAAWS,KAAKX,EAAK,KACI,IAAlBD,EAAIa,WAAqC,IAAlBZ,EAAIY,WAIhCC,OAAuCC,IAAvB,OAAOT,KAAK,IAAI,IAExBK,GAA4BG,KAGtCJ,EAAc,SAAcM,GAC1B,IACIH,EAAWI,EAAQC,EAAOC,EAD1BC,EAAKC,KAuBT,OApBIP,IACFG,EAAS,IAAIb,OAAO,IAAMgB,EAAGE,OAAS,WAAYpB,EAAYU,KAAKQ,KAEjET,IAA0BE,EAAYO,EAAGP,WAE7CK,EAAQf,EAAWS,KAAKQ,EAAIJ,GAExBL,GAA4BO,IAC9BE,EAAGP,UAAYO,EAAGG,OAASL,EAAMM,MAAQN,EAAM,GAAGO,OAASZ,GAEzDC,GAAiBI,GAASA,EAAMO,OAAS,GAG3ClB,EAAcK,KAAKM,EAAM,GAAID,GAAQ,WACnC,IAAKE,EAAI,EAAGA,EAAIO,UAAUD,OAAS,EAAGN,SACfJ,IAAjBW,UAAUP,KAAkBD,EAAMC,QAAKJ,MAK1CG,IAIXS,EAAOC,QAAUlB,G,iCCpDjB,IAAImB,EAAa,EAAQ,KAEzB,EAAQ,GAAR,CAA+B,CAAEC,OAAQ,SAAUC,OAAO,EAAMC,OAAQ,IAAI1B,OA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,yCAGDN,GAEfA,EAAM3J,SAAWT,KAAKmH,IAAI2B,UACzB9I,KAAKmH,IAAIgC,cAAcwB,SAASP,EAAM3J,SAEvCT,KAAKkK,4B,8BA1KkBU,aA+Kd1D","file":"17.bundle.js","sourcesContent":["'use strict';\n\nvar regexpFlags = require('./regexp-flags');\n\nvar nativeExec = RegExp.prototype.exec;\n// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace = String.prototype.replace;\n\nvar patchedExec = nativeExec;\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;\n\nif (PATCH) {\n patchedExec = function exec(str) {\n var re = this;\n var lastIndex, reCopy, match, i;\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + re.source + '$(?!\\\\s)', regexpFlags.call(re));\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = nativeExec.call(re, str);\n\n if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\n\nvar regexpExec = require('../internals/regexp-exec');\n\nrequire('../internals/export')({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {\n exec: regexpExec\n});\n","'use strict';\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar IS_CONCAT_SPREADABLE = require('../internals/well-known-symbol')('isConcatSpreadable');\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';\n\nvar IS_CONCAT_SPREADABLE_SUPPORT = !require('../internals/fails')(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('concat');\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;\n\n// `Array.prototype.concat` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\nrequire('../internals/export')({ target: 'Array', proto: true, forced: FORCED }, {\n concat: function concat(arg) { // eslint-disable-line no-unused-vars\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = toLength(E.length);\n if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","var classof = require('./classof-raw');\nvar regexpExec = require('./regexp-exec');\n\n// `RegExpExec` abstract operation\n// https://tc39.github.io/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n if (typeof result !== 'object') {\n throw TypeError('RegExp exec method returned something other than an Object or null');\n }\n return result;\n }\n\n if (classof(R) !== 'RegExp') {\n throw TypeError('RegExp#exec called on incompatible receiver');\n }\n\n return regexpExec.call(R, S);\n};\n\n","'use strict';\nvar hide = require('../internals/hide');\nvar redefine = require('../internals/redefine');\nvar fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar regexpExec = require('../internals/regexp-exec');\n\nvar SPECIES = wellKnownSymbol('species');\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$') !== '7';\n});\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\n\nmodule.exports = function (KEY, length, exec, sham) {\n var SYMBOL = wellKnownSymbol(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n re.exec = function () { execCalled = true; return null; };\n\n if (KEY === 'split') {\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n }\n\n re[SYMBOL]('');\n return !execCalled;\n });\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||\n (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n });\n var stringMethod = methods[0];\n var regexMethod = methods[1];\n\n redefine(String.prototype, KEY, stringMethod);\n redefine(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return regexMethod.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return regexMethod.call(string, this); }\n );\n if (sham) hide(RegExp.prototype[SYMBOL], 'sham', true);\n }\n};\n","'use strict';\nvar codePointAt = require('../internals/string-at');\n\n// `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? codePointAt(S, index, true).length : 1);\n};\n","'use strict';\n\nvar anObject = require('../internals/an-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar toInteger = require('../internals/to-integer');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar max = Math.max;\nvar min = Math.min;\nvar floor = Math.floor;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&`']|\\d\\d?|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&`']|\\d\\d?)/g;\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// @@replace logic\nrequire('../internals/fix-regexp-well-known-symbol-logic')(\n 'replace',\n 2,\n function (REPLACE, nativeReplace, maybeCallNative) {\n return [\n // `String.prototype.replace` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];\n return replacer !== undefined\n ? replacer.call(searchValue, O, replaceValue)\n : nativeReplace.call(String(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\n function (regexp, replaceValue) {\n var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n\n results.push(result);\n if (!global) break;\n\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }\n ];\n\n // https://tc39.github.io/ecma262/#sec-getsubstitution\n function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return nativeReplace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return str.slice(0, position);\n case \"'\": return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n }\n }\n);\n","import { Component } from '@verndale/core';\nimport Swiper, { Navigation } from 'swiper';\n\nSwiper.use([Navigation]);\n\nclass ProductGallery extends Component {\n setupDefaults() {\n this.dom = {\n inner: this.el.querySelector('.product-detail__gallery-inner'),\n };\n\n this.init();\n this.buildGalleryLightBox();\n }\n\n addListeners() {\n this.dom.galleryItems.forEach((item) => {\n item.addEventListener('click', this.displayGalleryLightBox.bind(this));\n });\n }\n\n init() {\n this.imagesCount = this.dom.inner.querySelectorAll('img').length;\n\n this.dom.inner.querySelectorAll('img').forEach((image, index) => {\n const button = document.createElement('button');\n button.classList.add('product-detail__gallery-item');\n button.dataset.index = index;\n button.appendChild(image);\n this.dom.inner.appendChild(button);\n });\n\n this.dom.galleryItems = this.dom.inner.querySelectorAll(\n '.product-detail__gallery-item'\n );\n\n if (this.imagesCount > 6) {\n const overlay = document.createElement('div');\n overlay.classList.add('product-detail__gallery-item-overlay');\n const label = this.el.dataset.viewMoreLabel;\n\n overlay.innerHTML = `${label.replace(\n '[count]',\n this.imagesCount - 6\n )}`;\n const lastImage = this.dom.galleryItems[5];\n lastImage.appendChild(overlay);\n this.dom.inner.dataset.imagesCount = 6;\n } else {\n this.dom.inner.dataset.imagesCount = this.imagesCount;\n }\n\n this.dom.inner.dataset.initialized = 'initialized';\n }\n\n buildGalleryLightBox() {\n this.dom.lightbox = document.createElement('dialog');\n // this.dom.lightbox.setAttribute('open', '');\n this.dom.lightbox.classList.add('product-detail__gallery-lightbox');\n this.dom.lightbox.innerHTML = `\n \n `;\n\n document.body.appendChild(this.dom.lightbox);\n const sliderContainer = this.dom.lightbox.querySelector(\n '.product-detail__gallery-lightbox-content .swiper-container'\n );\n const swiperWrapper = this.dom.lightbox.querySelector(\n '.product-detail__gallery-lightbox-content .swiper-wrapper'\n );\n\n this.dom.lightboxClose = this.dom.lightbox.querySelector(\n '.product-detail__gallery-lightbox-close'\n );\n this.dom.lightboxInner = this.dom.lightbox.querySelector(\n '.product-detail__gallery-lightbox-inner'\n );\n this.dom.lightboxPagination = this.dom.lightbox.querySelector(\n '.product-detail__gallery-lightbox-pagination'\n );\n\n this.dom.inner.querySelectorAll('img').forEach((image) => {\n const swiperSlide = document.createElement('div');\n swiperSlide.classList.add('swiper-slide');\n swiperSlide.appendChild(image.cloneNode(true));\n swiperWrapper.appendChild(swiperSlide);\n });\n\n this.swiper = new Swiper(sliderContainer, {\n slidesPerView: 1,\n spaceBetween: 10,\n navigation: {\n nextEl: this.dom.lightboxInner.querySelector(\n '.product-detail__gallery-lightbox-next'\n ),\n prevEl: this.dom.lightboxInner.querySelector(\n '.product-detail__gallery-lightbox-prev'\n ),\n },\n on: {\n update: (swiper) => {\n this.dom.lightboxPagination.innerHTML = `${swiper.activeIndex + 1}/${\n swiper.slides.length\n }`;\n },\n slideChange: (swiper) => {\n this.dom.lightboxPagination.innerHTML = `${swiper.activeIndex + 1}/${\n swiper.slides.length\n }`;\n },\n },\n });\n this.dom.lightboxClose.addEventListener(\n 'click',\n this.closeGalleryLightBox.bind(this)\n );\n this.dom.lightbox.addEventListener(\n 'click',\n this.handleClickOutside.bind(this)\n );\n }\n\n displayGalleryLightBox(event) {\n const target = event.currentTarget;\n const index = target.dataset.index;\n\n this.swiper.slideTo(index);\n this.dom.lightbox.show();\n this.swiper.update();\n }\n\n closeGalleryLightBox() {\n console.log('entra');\n this.dom.lightbox.close();\n }\n\n handleClickOutside(event) {\n if (\n event.target === this.dom.lightbox &&\n !this.dom.lightboxInner.contains(event.target)\n ) {\n this.closeGalleryLightBox();\n }\n }\n}\n\nexport default ProductGallery;\n"],"sourceRoot":""}