{"version":3,"sources":["webpack:///./node_modules/lodash.debounce/index.js","webpack:///./src/js/helpers/slider-nav.js","webpack:///./src/js/modules/content-cards-slider.js"],"names":["reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","global","Object","freeSelf","self","root","Function","objectToString","prototype","toString","nativeMax","Math","max","nativeMin","min","now","Date","isObject","value","type","toNumber","isObjectLike","call","isSymbol","other","valueOf","replace","isBinary","test","slice","module","exports","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","remainingWait","debounced","isInvoking","arguments","this","cancel","clearTimeout","flush","Swiper","use","Navigation","Pagination","addGenericSwiperNav","el","prevEl","_$","nextEl","pagination","modifierClass","renderCustom","_","current","total","navigation","disabledClass","Module","Component","setupDefaults","dom","$cards","_$$","$cardsContainer","$firstCard","$image","parentElement","$pager","$nav","$wrapper","$primaryContacts","document","mobileStyleApplied","secondary","classList","contains","additional","primary","isRecentlyViewed","slidesNumber","length","dashboard","style","width","getScrollbarWidth","overflowX","handleWindowResize","debounce","updateLayout","createFadeout","addListeners","window","_on","bind","observer","MutationObserver","observe","childList","fadeRight","createElement","fadeLeft","add","appendChild","fillWithBlank","remainder","removeBlank","sliderCards","totalCards","pages","ceil","offsetWidth","i","cardClone","cloneNode","display","visibility","innerHTML","$blankSlides","forEach","remove","initSlider","showMobileNav","matchMedia","matches","loopFillGroupWithBlank","lazy","slidesPerView","slidesPerGroup","spaceBetween","str","pageMax","activeIndex","params","breakpoints","320","480","760","1024","1240","navVisible","maxBlockSize","getComputedStyle","getPropertyValue","split","navVisibility","isDevice","resizeImage","imgWidth","floor","innerWidth"],"mappings":"+EAAA,YAUA,IASIA,EAAS,aAGTC,EAAa,qBAGbC,EAAa,aAGbC,EAAY,cAGZC,EAAeC,SAGfC,EAA8B,iBAAVC,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pD,KAAK0C,mBACP1C,KAAKwB,IAAII,WAAa5B,KAAKS,GAAGE,GAAG,iBACjCX,KAAKwB,IAAIC,OAASzB,KAAKS,GAAGiB,IAAI,iBAC9B1B,KAAK2C,aAAe3C,KAAKwB,IAAIC,OAAOmB,QAGjC5C,KAAK6C,UAwBH,CACL,MAAM0D,EACJvG,KAAK2C,aAAe3C,KAAKwB,IAAIC,OAAO,GAAGiD,YACvC1E,KAAKS,GAAGiE,YAEV1E,KAAKwB,IAAIQ,KAAKc,MAAMiC,WAAawB,EAAa,UAAY,SAC1DvG,KAAKwB,IAAIQ,KAAKc,MAAM0D,aAAeD,EAAa,QAAU,QA9BvC,CACnBvG,KAAKoC,mBACHmB,OACGkD,iBAAiBzG,KAAKS,GAAGqB,cAAcnB,GAAG,2BAC1C+F,iBAAiB,aACjBC,MAAM,MAAM,GAAK,GAEtB,IAAIC,EAAgB,UAIbA,EAFHC,eAAc7G,KAAKoC,mBACrBpC,KAAKwB,IAAIC,OAAOmB,OAAS,EACJ,UACA,SAErB5C,KAAKwB,IAAIC,OAAOmB,OAAS,EACJ,UACA,SAGvB5C,KAAKwB,IAAIQ,KAAKc,MAAMiC,WAAa6B,EAE7B5G,KAAK2C,cAAgB,GAAK3C,KAAK2C,cAAgB,GACjD3C,KAAKwB,IAAIS,SAASK,UAAU2B,IAAI,2BAWpCjE,KAAK8G,cACL9G,KAAKoF,aAGP0B,cACE,IACG9G,KAAKwB,IAAIK,QACVgF,eACA7G,KAAKoC,qBACJpC,KAAKqC,UAEN,OAEF,MAAM0E,EAAWlK,KAAKmK,MACpBzD,OAAO0D,YAAc1D,OAAO0D,WAAa,MAAQ,GAEnDjH,KAAKwB,IAAIK,OAAOiB,MAAMC,MAAWgE,EAAF,MAIpB1F","file":"43.fd293b.js","sourcesContent":["/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","import Swiper, { Navigation, Pagination } from 'swiper';\nSwiper.use(Navigation);\nSwiper.use(Pagination);\n\n/**\n * Extends options for swiper to add support for General Slider Nav\n * @param {Object} el - HTML element that contains the nav\n*/\nexport const addGenericSwiperNav = el => {\n const prevEl = el._$('.slider-nav__arrow--prev');\n const nextEl = el._$('.slider-nav__arrow--next');\n const $pager = el._$('.slider-nav__pager');\n const renderCustom = (_, current, total) => `${current} / ${total}`;\n\n return {\n pagination: {\n type: 'custom',\n el: $pager,\n modifierClass: '',\n renderCustom\n },\n navigation: {\n disabledClass: 'slider-nav__arrow--disabled',\n prevEl,\n nextEl\n }\n }\n}\n","import { Component } from '@verndale/core';\nimport debounce from 'lodash.debounce';\nimport { isDevice, getScrollbarWidth } from '../helpers';\nimport Swiper from 'swiper/core';\nimport { addGenericSwiperNav } from '../helpers/slider-nav';\n\nclass Module extends Component {\n setupDefaults() {\n this.dom = {\n $cards: this.el._$$('.content-card'),\n $cardsContainer: this.el._$('.cards-slider__cards-container'),\n $firstCard: this.el._$('.content-card'),\n $image: this.el.parentElement._$('.cards-slider__image'),\n $pager: this.el._$('.slider-nav__pager'),\n $nav: this.el._$('.slider-nav'),\n $wrapper: this.el._$('.swiper-wrapper'),\n $primaryContacts: document._$('.primary-contacts')\n };\n\n this.mobileStyleApplied = true;\n this.secondary = this.el.parentElement.classList.contains(\n 'cards-slider--secondary'\n );\n this.additional = this.el.parentElement.classList.contains(\n 'cards-slider--additional'\n );\n this.primary = !this.secondary && !this.additional;\n this.isRecentlyViewed = this.el.parentElement.classList.contains(\n 'cards-slider--recently-viewed'\n );\n this.slidesNumber = this.dom.$cards.length;\n\n this.dashboard = this.el.parentElement.classList.contains(\n 'cards-slider--dashboard'\n );\n if (!this.dashboard) {\n this.el.style.width = `calc(100vw - ${getScrollbarWidth() / 2}px)`;\n }\n if (document._$('main')) document._$('main').style.overflowX = 'hidden';\n\n this.handleWindowResize = debounce(() => {\n this.updateLayout();\n }, 250);\n\n this.createFadeout();\n this.updateLayout();\n }\n\n addListeners() {\n window._on('resize', this.handleWindowResize.bind(this));\n\n // in some cases, we may need ENG adding cards after init\n if (this.isRecentlyViewed) {\n this.observer = new MutationObserver(() => {\n if (this.el._$$('.content-card').length !== this.slidesNumber)\n this.updateLayout();\n });\n this.observer.observe(this.dom.$wrapper, { childList: true });\n }\n }\n\n createFadeout() {\n if (!this.el._$('.cards-slider__fadeout')) {\n const fadeRight = document.createElement('div');\n const fadeLeft = document.createElement('div');\n fadeRight.classList.add('cards-slider__fadeout');\n fadeLeft.classList.add(\n 'cards-slider__fadeout',\n 'cards-slider__fadeout--left'\n );\n this.el.appendChild(fadeRight);\n this.el.appendChild(fadeLeft);\n }\n }\n\n // workaround for slider pagination - avoid last slides staying off layout\n fillWithBlank(remainder) {\n this.removeBlank();\n\n const sliderCards = this.dom.$cards;\n const totalCards = sliderCards.length;\n const itemsPerPage = 4;\n const pages = Math.ceil(totalCards / itemsPerPage);\n if (this.dashboard) {\n if (\n this.dom.$wrapper.offsetWidth >\n sliderCards[0].offsetWidth * totalCards + 20 * totalCards - 1\n ) {\n return;\n }\n }\n if (!remainder) remainder = itemsPerPage * pages - totalCards;\n\n for(let i = 0; i < remainder; i++) {\n const cardClone = this.dom.$primaryContacts\n ? this.dom.$primaryContacts._$('.contact-card').cloneNode(true)\n : this.el._$('.swiper-slide').cloneNode(true);\n cardClone.style.display = 'flex';\n cardClone.style.visibility = 'hidden';\n cardClone.classList.add('blank-slide');\n cardClone.innerHTML = '';\n this.dom.$wrapper.appendChild(cardClone);\n }\n\n this.dom.$blankSlides = this.dom.$wrapper._$$('.blank-slide');\n }\n\n removeBlank() {\n if (this.dom.$blankSlides) {\n this.dom.$blankSlides.forEach(el => el.remove());\n this.dom.$blankSlides = null;\n }\n }\n\n initSlider() {\n if (!this.dom.$firstCard) return;\n\n const { $cardsContainer, $pager } = this.dom;\n this.showMobileNav = this.dashboard\n ? this.dom.$cards[0].offsetWidth * 2 > this.el.offsetWidth\n : window.matchMedia(\n `(max-width: ${this.dom.$firstCard.offsetWidth * 1.5}px)`\n ).matches;\n\n this.showMobileNav ? this.removeBlank() : this.fillWithBlank(1);\n\n const renderCustom = (_, current) => {\n let str = '';\n\n if (this.showMobileNav) {\n str = `${current} / ${this.slidesNumber}`;\n } else {\n let pageMax = _.activeIndex + _.params.slidesPerGroup;\n if (pageMax > this.slidesNumber) pageMax = this.slidesNumber;\n str = `${_.activeIndex + 1} - ${pageMax} / ${this.slidesNumber}`;\n }\n\n return str;\n };\n\n new Swiper($cardsContainer, {\n loopFillGroupWithBlank: true,\n lazy: false,\n slidesPerView: 'auto',\n slidesPerGroup: 4,\n spaceBetween: 20,\n ...addGenericSwiperNav(this.el),\n pagination: {\n type: 'custom',\n el: $pager,\n modifierClass: '',\n renderCustom\n },\n breakpoints: {\n 320: {\n slidesPerGroup: 1\n },\n 480: {\n slidesPerGroup: 2\n },\n 760: {\n slidesPerGroup: this.dashboard ? 1 : 3\n },\n 1024: {\n slidesPerGroup: this.dashboard ? 2 : 4\n },\n 1240: {\n slidesPerGroup: this.dashboard ? 3 : 4\n }\n }\n });\n }\n\n updateLayout() {\n if (this.isRecentlyViewed) {\n this.dom.$firstCard = this.el._$('.content-card');\n this.dom.$cards = this.el._$$('.content-card');\n this.slidesNumber = this.dom.$cards.length;\n }\n\n if (!this.dashboard) {\n this.mobileStyleApplied =\n window\n .getComputedStyle(this.el.parentElement._$('.cards-slider__heading'))\n .getPropertyValue('font-size')\n .split('px')[0] < 48;\n\n let navVisibility = 'visible';\n\n if (isDevice() || this.mobileStyleApplied) {\n this.dom.$cards.length > 1\n ? (navVisibility = 'visible')\n : (navVisibility = 'hidden');\n } else {\n this.dom.$cards.length > 4\n ? (navVisibility = 'visible')\n : (navVisibility = 'hidden');\n }\n\n this.dom.$nav.style.visibility = navVisibility;\n\n if (this.slidesNumber <= 4 && this.slidesNumber >= 1) {\n this.dom.$wrapper.classList.add('swiper-wrapper--no-grow'); // don't distribute, just stack all cards to the right\n }\n } else {\n const navVisible =\n this.slidesNumber * this.dom.$cards[0].offsetWidth >\n this.el.offsetWidth;\n\n this.dom.$nav.style.visibility = navVisible ? 'visible' : 'hidden';\n this.dom.$nav.style.maxBlockSize = navVisible ? 'unset' : '0';\n }\n\n this.resizeImage();\n this.initSlider();\n }\n\n resizeImage() {\n if (\n !this.dom.$image ||\n isDevice() ||\n this.mobileStyleApplied ||\n !this.secondary\n )\n return;\n\n const imgWidth = Math.floor(\n window.innerWidth - (window.innerWidth - 1200) / 2\n );\n this.dom.$image.style.width = `${imgWidth}px`;\n }\n}\n\nexport default Module;\n"],"sourceRoot":""}