{"version":3,"sources":["webpack:///./src/shared/utilities/screenSize.js","webpack:///./node_modules/process/browser.js","webpack:///./src/components/organisms/carousel-two/carousel-two.js","webpack:///./src/shared/utilities/debounce.js","webpack:///./src/shared/utilities/pubsub.js","webpack:///./src/framework/base/base.js","webpack:///./src/shared/utilities/case.ts","webpack:///./src/shared/utilities/id.ts","webpack:///./src/framework/slider.ts"],"names":["defaultWidths","sm","md","lg","xl","getBreakpoint","window","getComputedStyle","document","querySelector","getPropertyValue","replace","screenSmallerThan","size","widths","arguments","length","undefined","Object","prototype","hasOwnProperty","call","Error","concat","keys","join","innerWidth","screenGreatOrEqualTo","cachedSetTimeout","cachedClearTimeout","process","module","exports","defaultSetTimout","defaultClearTimeout","runTimeout","fun","setTimeout","e","this","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","timeout","len","run","marker","runClearTimeout","Item","array","noop","nextTick","args","Array","i","push","apply","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","name","binding","cwd","chdir","dir","umask","CarouselTwo","_Slider","element","_this","_classCallCheck","isExperienceEditor","body","classList","contains","_callSuper","dotContainer","slideContainer","createBullets","sliderOpts","infinite","initializeLory","publishBreakpointOnResize","addSubscriptions","carousel","querySelectorAll","progressBar","carouselDots","timeLeft","addBgImage","bind","addEventListener","evt","target","closest","resetAnimation","clearInterval","resetProgressBar","startProgressBar","startAnimation","_inherits","key","value","style","width","_this2","setInterval","slider","next","cancelAnimationFrame","frameId","fps","fpsInterval","timeThen","Date","now","animateCarousel","requestAnimationFrame","timeNow","timeElapsed","dotCount","initLory","subscribe","_this$progressBar2","_this$progressBar2$pa","_this$progressBar2$pa2","_this$progressBar","_this$progressBar$par","forEach","slide","_img$dataset","_img$dataset$mhide","img","dataset","mhide","toLowerCase","parentElement","add","parentNode","remove","Slider","debounce","func","wait","immediate","_len","_key","later","callNow","pubsub","PubSub","subscriptions","topic","_step","_iterator","_createForOfIteratorHelper","s","n","done","fn","err","f","index","splice","BaseBehavior","state","events","behaviorName","camelCaseToDashCase","getAttribute","instanceId","generateId","attachInstanceId","partialState","_objectSpread","setAttribute","removeAttribute","dom","from","filter","el","ref","dashCaseToCamelCase","split","console","error","_this3","delay","breakpoint","publish","debouncedGetBreakpoint","newBreakPoint","event","useCapture","removeEventListener","obj","unsubscribe","navigation","getBoundingClientRect","bottom","scrollY","scroll","reason","promise","log","str","x","chr","toUpperCase","alphabet","id","charAt","Math","floor","random","_BaseBehavior","_ref","_ref$createBullets","_ref$isTabFocusDisabl","isTabFocusDisabled","hiddenCardsOnMobile","item","disableTabFocus","eventListeners","addBullets","addBulletsEventListeners","setActiveBullet","_a","bullets","_toConsumableArray","map","appendChild","createElement","bullet","onBulletClick","_ref2","targetIdx","indexOf","slideTo","resetBullets","_ref3","_ref3$detail","detail","currentSlide","idx","loading","then","_ref4","lory","catch","destroyLory","destroy","classNameSlideContainer","assign","classNameFrame","enableMouseEvents"],"mappings":"2FAAA,sGAAO,IAAMA,EAAgB,CAC5BC,GAAI,IACJC,GAAI,KACJC,GAAI,KACJC,GAAI,MAIQC,EAAgB,WAAH,OACzBC,OACEC,iBAAiBC,SAASC,cAAc,QAAS,WACjDC,iBAAiB,WACjBC,QAAQ,KAAM,KAGV,SAASC,EAAkBC,GAA8B,IAAxBC,EAAMC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGf,EAChD,IAAKkB,OAAOC,UAAUC,eAAeC,KAAKP,EAAQD,GACjD,MAAM,IAAIS,MAAM,wBAADC,OAAyBL,OAAOM,KAAKV,GAAQW,KAAK,QAElE,OAAOnB,OAAOoB,WAAaZ,EAAOD,GAG5B,SAASc,EAAqBd,GAA8B,IAAxBC,EAAMC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGf,EACnD,IAAKkB,OAAOC,UAAUC,eAAeC,KAAKP,EAAQD,GACjD,MAAM,IAAIS,MAAM,wBAADC,OAAyB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AAcqF,GAC5CR,EAAKmD,UACApD,EAAQiB,iBAAiB,yCAA2C,IAAItF,SACpEqE,EAAQiB,iBAAiB,0BAA4B,IAAItF,OAClEsE,EAAK+J,QAAU,GACf/J,EAAK0J,iBAAiB1J,EACzB,O,qRAAA+B,CAAAwC,EAAA2E,G,EAAA3E,E,6FAnFsB,C,OAASwB","file":"41-9667af84.js","sourcesContent":["export const defaultWidths = {\r\n\tsm: 768,\r\n\tmd: 1024,\r\n\tlg: 1280,\r\n\txl: 1400\r\n};\r\n\r\n// getBreakpoint :: Void -> String\r\nexport const getBreakpoint = () =>\r\n\twindow\r\n\t\t.getComputedStyle(document.querySelector('body'), ':before')\r\n\t\t.getPropertyValue('content')\r\n\t\t.replace(/\"/g, '');\r\n\r\n// function :: String -> ?Object -> Boolean\r\nexport function screenSmallerThan(size, widths = defaultWidths) {\r\n\tif (!Object.prototype.hasOwnProperty.call(widths, size)) {\r\n\t\tthrow new Error(`size must be one of: ${Object.keys(widths).join(', ')}`);\r\n\t}\r\n\treturn window.innerWidth < widths[size];\r\n}\r\n\r\nexport function screenGreatOrEqualTo(size, widths = defaultWidths) {\r\n\tif (!Object.prototype.hasOwnProperty.call(widths, size)) {\r\n\t\tthrow new Error(`size must be one of: ${Object.keys(widths).join(', ')}`);\r\n\t}\r\n\treturn window.innerWidth >= widths[size];\r\n}\r\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","import Slider from '../../../framework/slider';\r\nimport { screenSmallerThan } from '../../../shared/utilities/screenSize';\r\n\r\nexport default class CarouselTwo extends Slider {\r\n\tconstructor(element) {\r\n\t\tconst isExperienceEditor = document.body.classList.contains('isSitecoreEditor');\r\n\t\tsuper({\r\n\t\t\telement,\r\n\t\t\tdotContainer: '.v2-slider__dots',\r\n\t\t\tslideContainer: '.v2-slider',\r\n\t\t\tcreateBullets: true,\r\n\t\t\tsliderOpts: {\r\n\t\t\t\tinfinite: isExperienceEditor ? false : 1\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.initializeLory();\r\n\t\tthis.publishBreakpointOnResize();\r\n\t\tthis.addSubscriptions();\r\n\t\t// Device check\r\n\t\tconst carousel = document.querySelectorAll('.v2-slider__slide--carousel');\r\n\t\tthis.progressBar = this.element.querySelector('.v2-slider__progress-bar');\r\n\t\tconst carouselDots = this.element.querySelector('ul.v2-slider__dots');\r\n\t\tthis.timeLeft = undefined;\r\n\r\n\t\tif (carouselDots) {\r\n\t\t\tthis.addBgImage.bind(this, carousel, carouselDots)();\r\n\t\t\tthis.addEventListener(carouselDots, 'click', evt => {\r\n\t\t\t\tif (evt.target.closest('li')) {\r\n\t\t\t\t\tthis.resetAnimation();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\twindow.addEventListener('resize', () => {\r\n\t\t\t\tthis.addBgImage.bind(this, carousel, carouselDots)();\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (!screenSmallerThan('sm')) {\r\n\t\t\tthis.element.addEventListener('after.lory.slide', () => {\r\n\t\t\t\tif (this.progressBar) {\r\n\t\t\t\t\tclearInterval(this.timeLeft);\r\n\t\t\t\t\tthis.resetProgressBar();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.resetAnimation();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t// Check the progress Bar\r\n\t\t\tif (this.progressBar) {\r\n\t\t\t\tthis.startProgressBar();\r\n\t\t\t} else {\r\n\t\t\t\tthis.startAnimation(0.14); // value 0.14 is used for taking 7000 as fpsInterval.\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.resetAnimation();\r\n\t\t}\r\n\t}\r\n\r\n\tresetProgressBar() {\r\n\t\tthis.progressBar.style.width = 0;\r\n\t\tthis.startProgressBar();\r\n\t}\r\n\r\n\tstartProgressBar() {\r\n\t\tlet width = 1;\r\n\t\tthis.timeLeft = setInterval(() => {\r\n\t\t\tif (width >= 100) {\r\n\t\t\t\tclearInterval(this.timeLeft);\r\n\t\t\t\tif (this.slider) this.slider.next();\r\n\t\t\t} else {\r\n\t\t\t\twidth++;\r\n\t\t\t\tthis.progressBar.style.width = width + '%';\r\n\t\t\t}\r\n\t\t}, 70);\r\n\t}\r\n\r\n\tresetAnimation() {\r\n\t\twindow.cancelAnimationFrame(this.frameId);\r\n\t\tthis.startAnimation(0.14);\r\n\t}\r\n\r\n\tstartAnimation(fps) {\r\n\t\tthis.fpsInterval = 1000 / fps;\r\n\t\tthis.timeThen = Date.now();\r\n\t\tthis.animateCarousel();\r\n\t}\r\n\r\n\t// Function to call recursively after 7 seconds\r\n\tanimateCarousel() {\r\n\t\tthis.frameId = requestAnimationFrame(this.animateCarousel.bind(this));\r\n\t\tthis.timeNow = Date.now();\r\n\t\tthis.timeElapsed = this.timeNow - this.timeThen;\r\n\t\tif (this.timeElapsed > this.fpsInterval && this.slider) {\r\n\t\t\tthis.timeThen = this.timeNow - (this.timeElapsed % this.fpsInterval);\r\n\t\t\tthis.slider.next();\r\n\t\t}\r\n\t}\r\n\r\n\tinitializeLory() {\r\n\t\tif (!this.slider && this.dotCount > 1) {\r\n\t\t\tthis.initLory(this.slideContainer);\r\n\t\t}\r\n\t}\r\n\r\n\taddSubscriptions() {\r\n\t\tthis.subscribe('SITE.BREAKPOINT', this.initializeLory.bind(this));\r\n\t}\r\n\r\n\t// Check mobile and desktop and add bg-image\r\n\taddBgImage(carousel, carouselDots) {\r\n\t\tcarousel.forEach(slide => {\r\n\t\t\tif (screenSmallerThan('sm')) {\r\n\t\t\t\tconst img = slide.querySelector('.v2-slider__slide--carousel--col img');\r\n\t\t\t\t// Check Carousel item image\r\n\t\t\t\tif (img && img?.dataset && img?.dataset?.mhide?.toLowerCase() === 'true') {\r\n\t\t\t\t\timg.parentElement.classList.add('v2-hidden');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tif (screenSmallerThan('sm')) {\r\n\t\t\tif (this?.progressBar?.parentNode?.classList) {\r\n\t\t\t\tthis.progressBar.parentNode.classList.add('v2-hidden');\r\n\t\t\t}\r\n\t\t\tif (carouselDots?.classList) carouselDots.classList.remove('v2-hidden');\r\n\t\t} else if (this?.progressBar?.parentNode?.classList?.contains('v2-hidden')) {\r\n\t\t\tthis.progressBar.parentNode.classList.remove('v2-hidden');\r\n\t\t\tcarouselDots.classList.add('v2-hidden');\r\n\t\t}\r\n\t}\r\n}\r\n","// debounce :: Function, Number, Bool -> (Any -> Void)\r\nexport function debounce(func, wait, immediate) {\r\n\tlet timeout;\r\n\treturn function debounced(...args) {\r\n\t\tconst later = () => {\r\n\t\t\ttimeout = null;\r\n\t\t\tif (!immediate) func(args);\r\n\t\t};\r\n\t\tconst callNow = immediate && !timeout;\r\n\t\tclearTimeout(timeout);\r\n\t\ttimeout = setTimeout(later, wait);\r\n\t\tif (callNow) func(args);\r\n\t};\r\n}\r\n","class PubSub {\r\n\tconstructor() {\r\n\t\tthis.subscriptions = {};\r\n\t}\r\n\r\n\tpublish(topic, ...args) {\r\n\t\tif (this.subscriptions[topic]) {\r\n\t\t\t// eslint-disable-next-line no-restricted-syntax\r\n\t\t\tfor (const fn of this.subscriptions[topic]) {\r\n\t\t\t\tfn(...args);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tsubscribe(topic, fn) {\r\n\t\tthis.subscriptions[topic] = this.subscriptions[topic] || [];\r\n\t\tthis.subscriptions[topic].push(fn);\r\n\t}\r\n\r\n\tunsubscribe(topic, fn) {\r\n\t\tif (this.subscriptions[topic]) {\r\n\t\t\tthis.subscriptions[topic].forEach((value, index) => {\r\n\t\t\t\tif (value === fn) {\r\n\t\t\t\t\tthis.subscriptions[topic].splice(index, 1);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n}\r\n\r\nconst pubsub = new PubSub();\r\n\r\nexport default pubsub;\r\n","import pubsub from '../../shared/utilities/pubsub';\r\nimport { generateId } from '../../shared/utilities/id';\r\nimport { camelCaseToDashCase, dashCaseToCamelCase } from '../../shared/utilities/case';\r\nimport { getBreakpoint } from '../../shared/utilities/screenSize';\r\nimport { debounce } from '../../shared/utilities/debounce';\r\n\r\nexport default class BaseBehavior {\r\n\tconstructor(element) {\r\n\t\tthis.element = element;\r\n\t\tthis.state = undefined;\r\n\t\tthis.events = {};\r\n\t\tthis.subscriptions = {};\r\n\t\tthis.behaviorName = camelCaseToDashCase(element.getAttribute('data-behavior'));\r\n\t\tthis.instanceId = generateId();\r\n\t\tthis.attachInstanceId();\r\n\t}\r\n\r\n\tsetState(partialState) {\r\n\t\tObject.keys(partialState).forEach(key => {\r\n\t\t\tif (!{}.hasOwnProperty.call(this.state, key)) {\r\n\t\t\t\tthrow new Error(\r\n\t\t\t\t\t`${this.behaviorName} does not have ${key} on the state object,\r\n\t\t\t\t\tmake sure to define all state properties in the constructor.`\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.state = { ...(this.state || {}), ...partialState };\r\n\t}\r\n\r\n\tattachInstanceId() {\r\n\t\tthis.element.setAttribute('data-instance', `${this.behaviorName}__${this.instanceId}`);\r\n\t\tthis.element.removeAttribute('data-instance-init');\r\n\t}\r\n\r\n\tinitDomCache() {\r\n\t\tthis.dom = {};\r\n\r\n\t\t// Filter out ref's that embedded in another instance of the same behavior.\r\n\t\tArray.from(this.element.querySelectorAll(`[data-ref^=${this.behaviorName}]`))\r\n\t\t\t.filter(el => el.closest(`[data-behavior*=\"${this.behaviorName}\"]`) === this.element)\r\n\t\t\t.forEach(element => {\r\n\t\t\t\tconst ref = element.getAttribute('data-ref');\r\n\t\t\t\tconst key = dashCaseToCamelCase(ref).split('__')[1];\r\n\r\n\t\t\t\tif (key) {\r\n\t\t\t\t\tthis.dom[key] = element;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.error(\r\n\t\t\t\t\t\t`Element cannot be cached. Reference \"${ref}\" should have the format \"behavior-name__element-name\"`\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\tpublishBreakpointOnResize(delay = 250) {\r\n\t\tif (this.breakpoint) return;\r\n\r\n\t\tthis.breakpoint = getBreakpoint();\r\n\t\tthis.publish('SITE.BREAKPOINT', this.breakpoint);\r\n\r\n\t\tconst debouncedGetBreakpoint = debounce(() => {\r\n\t\t\tconst newBreakPoint = getBreakpoint();\r\n\t\t\tif (this.breakpoint !== newBreakPoint) {\r\n\t\t\t\tthis.publish('SITE.BREAKPOINT', newBreakPoint);\r\n\t\t\t\tthis.breakpoint = newBreakPoint;\r\n\t\t\t}\r\n\t\t}, delay);\r\n\r\n\t\twindow.addEventListener('resize', debouncedGetBreakpoint);\r\n\t}\r\n\r\n\taddEventListener(element, event, fn, useCapture = false) {\r\n\t\tif (element) {\r\n\t\t\tthis.events[event] = fn;\r\n\t\t\telement.addEventListener(event.split('.')[0], this.events[event], useCapture);\r\n\t\t}\r\n\t}\r\n\r\n\tremoveEventListener(element, event) {\r\n\t\telement.removeEventListener(event.split('.')[0], this.events[event]);\r\n\t\tthis.events[event] = null;\r\n\t\tdelete this.events[event];\r\n\t}\r\n\r\n\t// eslint-disable-next-line class-methods-use-this\r\n\tpublish(topic, obj) {\r\n\t\tpubsub.publish(topic, obj);\r\n\t}\r\n\r\n\tsubscribe(topic, fn) {\r\n\t\tthis.subscriptions[topic] = fn;\r\n\t\tpubsub.subscribe(topic, fn);\r\n\t}\r\n\r\n\tunsubscribe(topic) {\r\n\t\tpubsub.unsubscribe(topic, this.subscriptions[topic]);\r\n\t\tthis.subscriptions[topic] = null;\r\n\t\tdelete this.subscriptions[topic];\r\n\t}\r\n}\r\n\r\n// Below code is added for fixing scrolling issue on page refresh.\r\nwindow.addEventListener('load', () => {\r\n\tsetTimeout(() => {\r\n\t\tconst navigation = document.querySelector('#navigation');\r\n\t\t// eslint-disable-next-line\r\n\t\tif (navigation && navigation.getBoundingClientRect().bottom === scrollY) {\r\n\t\t\twindow.scroll(0, 0);\r\n\t\t}\r\n\t}, 0);\r\n});\r\n\r\nprocess.on('unhandledRejection', (reason, promise) => {\r\n\t// eslint-disable-next-line no-console\r\n\tconsole.log('Reason for this failure is : ', reason);\r\n\t// eslint-disable-next-line no-console\r\n\tconsole.log('promise is', promise);\r\n\t// Application specific logging, throwing an error, or other logic here\r\n});\r\n","export function camelCaseToDashCase(str) {\n return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n}\nexport function dashCaseToCamelCase(str) {\n return str.replace(/\\W+(.)/g, (x, chr) => chr.toUpperCase());\n}\n","const alphabet = '23456789ABDEGJKMNPQRVWXYZ';\nexport function generateId(length = 6) {\n let id = '';\n for (let i = 0; i < length; i++) {\n id += alphabet.charAt(Math.floor(Math.random() * alphabet.length));\n }\n return id;\n}\n","import { screenSmallerThan } from '../shared/utilities/screenSize';\nimport BaseBehavior from './base/base';\nexport default class Slider extends BaseBehavior {\n constructor({ dotContainer, slideContainer, sliderOpts, element, createBullets = false, isTabFocusDisabled = false }) {\n const hiddenCardsOnMobile = screenSmallerThan('sm') && element.querySelector('.v2-card-container')\n ? element.querySelectorAll('.v2-show-sm.v2-slider__slide')\n : null;\n if (hiddenCardsOnMobile) {\n hiddenCardsOnMobile.forEach(item => item.remove());\n }\n super(element);\n this.disableTabFocus = () => {\n Array.from(this.element.querySelectorAll('a')).forEach((el) => {\n el.setAttribute('tabindex', '-1');\n });\n };\n this.eventListeners = () => {\n if (this.createBullets && this.dotCount > 1) {\n this.element.addEventListener('before.lory.init', this.addBullets.bind(this));\n this.element.addEventListener('after.lory.init', this.addBulletsEventListeners.bind(this));\n this.element.addEventListener('after.lory.slide', this.setActiveBullet.bind(this));\n }\n this.element.addEventListener('after.lory.destroy', () => {\n this.slider = undefined;\n });\n };\n this.addBullets = () => {\n var _a;\n this.bullets = [...Array(this.dotCount)].map(() => { var _a; return (_a = this.dotContainer) === null || _a === void 0 ? void 0 : _a.appendChild(document.createElement('li')); });\n if (this.bullets.length) {\n (_a = this.bullets[0]) === null || _a === void 0 ? void 0 : _a.classList.add('active');\n }\n };\n this.addBulletsEventListeners = () => {\n this.bullets.forEach(bullet => {\n bullet === null || bullet === void 0 ? void 0 : bullet.addEventListener('click', e => this.onBulletClick(e));\n });\n };\n this.onBulletClick = ({ target }) => {\n const targetIdx = this.bullets.indexOf(target);\n this.slider.slideTo(targetIdx);\n };\n this.resetBullets = () => {\n this.setActiveBullet({});\n };\n this.setActiveBullet = ({ detail = { currentSlide: 0 } } = {}) => {\n this.bullets.forEach((bullet, idx) => {\n if (this.sliderOpts.infinite ? detail.currentSlide - 1 === idx : detail.currentSlide === idx) {\n bullet === null || bullet === void 0 ? void 0 : bullet.classList.add('active');\n }\n else {\n bullet === null || bullet === void 0 ? void 0 : bullet.classList.remove('active');\n }\n });\n };\n this.initLory = (slideContainer) => {\n if (!this.loading) {\n this.loading = import(/* webpackChunkName: \"lory\" */ 'lory.js')\n .then(({ lory }) => {\n this.loading = null;\n this.slider = lory(slideContainer, this.sliderOpts);\n return this.slider;\n })\n .catch(e => console.error(e));\n }\n return this.loading;\n };\n this.destroyLory = () => {\n this.slider.destroy();\n this.element\n .querySelector('.' + this.sliderOpts.classNameSlideContainer)\n .removeAttribute('style');\n };\n this.dotContainer = element.querySelector(dotContainer);\n this.createBullets = createBullets;\n this.sliderOpts = Object.assign({ classNameFrame: 'v2-slider__frame', classNameSlideContainer: 'v2-slider__slides', enableMouseEvents: true }, sliderOpts);\n if (isTabFocusDisabled) {\n this.disableTabFocus();\n }\n this.slideContainer = element.querySelector(slideContainer);\n this.dotCount =\n (element.querySelectorAll('.v2-slider__slides .v2-slider__slide') || []).length ||\n (element.querySelectorAll('.v2-slider__slides li') || []).length;\n this.bullets = [];\n this.eventListeners();\n }\n}\n"],"sourceRoot":""}