{"version":3,"file":"multi-carousel.min.js","sources":["../../../src/plugins/multi-carousel/js/mdb/util/index.js","../../../src/plugins/multi-carousel/js/mdb/dom/data.js","../../../src/plugins/multi-carousel/js/mdb/dom/polyfill.js","../../../src/plugins/multi-carousel/js/mdb/dom/event-handler.js","../../../src/plugins/multi-carousel/js/mdb/dom/manipulator.js","../../../src/plugins/multi-carousel/js/mdb/dom/selector-engine.js","../../../src/plugins/multi-carousel/js/mdb/util/touch/touchUtil.js","../../../src/plugins/multi-carousel/js/mdb/util/touch/swipe.js","../../../src/plugins/multi-carousel/js/mdb/util/touch/index.js","../../../src/plugins/multi-carousel/js/multi-carousel.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): util/index.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst MAX_UID = 1000000;\nconst MILLISECONDS_MULTIPLIER = 1000;\nconst TRANSITION_END = 'transitionend';\n\n// Shoutout AngusCroll (https://goo.gl/pxwQGp)\nconst toType = (obj) => {\n if (obj === null || obj === undefined) {\n return `${obj}`;\n }\n\n return {}.toString\n .call(obj)\n .match(/\\s([a-z]+)/i)[1]\n .toLowerCase();\n};\n\n/**\n * --------------------------------------------------------------------------\n * Public Util Api\n * --------------------------------------------------------------------------\n */\n\nconst getUID = (prefix) => {\n do {\n prefix += Math.floor(Math.random() * MAX_UID);\n } while (document.getElementById(prefix));\n\n return prefix;\n};\n\nconst getSelector = (element) => {\n let selector = element.getAttribute('data-mdb-target');\n\n if (!selector || selector === '#') {\n const hrefAttr = element.getAttribute('href');\n\n selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;\n }\n\n return selector;\n};\n\nconst getSelectorFromElement = (element) => {\n const selector = getSelector(element);\n\n if (selector) {\n return document.querySelector(selector) ? selector : null;\n }\n\n return null;\n};\n\nconst getElementFromSelector = (element) => {\n const selector = getSelector(element);\n\n return selector ? document.querySelector(selector) : null;\n};\n\nconst getTransitionDurationFromElement = (element) => {\n if (!element) {\n return 0;\n }\n\n // Get transition-duration of the element\n let { transitionDuration, transitionDelay } = window.getComputedStyle(element);\n\n const floatTransitionDuration = Number.parseFloat(transitionDuration);\n const floatTransitionDelay = Number.parseFloat(transitionDelay);\n\n // Return 0 if element or transition duration is not found\n if (!floatTransitionDuration && !floatTransitionDelay) {\n return 0;\n }\n\n // If multiple durations are defined, take the first\n transitionDuration = transitionDuration.split(',')[0];\n transitionDelay = transitionDelay.split(',')[0];\n\n return (\n (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) *\n MILLISECONDS_MULTIPLIER\n );\n};\n\nconst triggerTransitionEnd = (element) => {\n element.dispatchEvent(new Event(TRANSITION_END));\n};\n\nconst isElement = (obj) => (obj[0] || obj).nodeType;\n\nconst emulateTransitionEnd = (element, duration) => {\n let called = false;\n const durationPadding = 5;\n const emulatedDuration = duration + durationPadding;\n\n function listener() {\n called = true;\n element.removeEventListener(TRANSITION_END, listener);\n }\n\n element.addEventListener(TRANSITION_END, listener);\n setTimeout(() => {\n if (!called) {\n triggerTransitionEnd(element);\n }\n }, emulatedDuration);\n};\n\nconst typeCheckConfig = (componentName, config, configTypes) => {\n Object.keys(configTypes).forEach((property) => {\n const expectedTypes = configTypes[property];\n const value = config[property];\n const valueType = value && isElement(value) ? 'element' : toType(value);\n\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new Error(\n `${componentName.toUpperCase()}: ` +\n `Option \"${property}\" provided type \"${valueType}\" ` +\n `but expected type \"${expectedTypes}\".`\n );\n }\n });\n};\n\nconst isVisible = (element) => {\n if (!element) {\n return false;\n }\n\n if (element.style && element.parentNode && element.parentNode.style) {\n const elementStyle = getComputedStyle(element);\n const parentNodeStyle = getComputedStyle(element.parentNode);\n\n return (\n elementStyle.display !== 'none' &&\n parentNodeStyle.display !== 'none' &&\n elementStyle.visibility !== 'hidden'\n );\n }\n\n return false;\n};\n\nconst findShadowRoot = (element) => {\n if (!document.documentElement.attachShadow) {\n return null;\n }\n\n // Can find the shadow root otherwise it'll return the document\n if (typeof element.getRootNode === 'function') {\n const root = element.getRootNode();\n return root instanceof ShadowRoot ? root : null;\n }\n\n if (element instanceof ShadowRoot) {\n return element;\n }\n\n // when we don't find a shadow root\n if (!element.parentNode) {\n return null;\n }\n\n return findShadowRoot(element.parentNode);\n};\n\nconst noop = () => function () {};\n\nconst reflow = (element) => element.offsetHeight;\n\nconst getjQuery = () => {\n const { jQuery } = window;\n\n if (jQuery && !document.body.hasAttribute('data-mdb-no-jquery')) {\n return jQuery;\n }\n\n return null;\n};\n\nconst onDOMContentLoaded = (callback) => {\n if (document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', callback);\n } else {\n callback();\n }\n};\n\nconst isRTL = document.documentElement.dir === 'rtl';\n\nconst array = (collection) => {\n return Array.from(collection);\n};\n\nconst element = (tag) => {\n return document.createElement(tag);\n};\n\nexport {\n getjQuery,\n TRANSITION_END,\n getUID,\n getSelectorFromElement,\n getElementFromSelector,\n getTransitionDurationFromElement,\n triggerTransitionEnd,\n isElement,\n emulateTransitionEnd,\n typeCheckConfig,\n isVisible,\n findShadowRoot,\n noop,\n reflow,\n array,\n element,\n onDOMContentLoaded,\n isRTL,\n};\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha1): dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst mapData = (() => {\n const storeData = {};\n let id = 1;\n return {\n set(element, key, data) {\n if (typeof element[key] === 'undefined') {\n element[key] = {\n key,\n id,\n };\n id++;\n }\n\n storeData[element[key].id] = data;\n },\n get(element, key) {\n if (!element || typeof element[key] === 'undefined') {\n return null;\n }\n\n const keyProperties = element[key];\n if (keyProperties.key === key) {\n return storeData[keyProperties.id];\n }\n\n return null;\n },\n delete(element, key) {\n if (typeof element[key] === 'undefined') {\n return;\n }\n\n const keyProperties = element[key];\n if (keyProperties.key === key) {\n delete storeData[keyProperties.id];\n delete element[key];\n }\n },\n };\n})();\n\nconst Data = {\n setData(instance, key, data) {\n mapData.set(instance, key, data);\n },\n getData(instance, key) {\n return mapData.get(instance, key);\n },\n removeData(instance, key) {\n mapData.delete(instance, key);\n },\n};\n\nexport default Data;\n","/* istanbul ignore file */\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha1): dom/polyfill.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { getUID } from '../util/index';\n\nlet findElements = Element.prototype.querySelectorAll;\nlet findElement = Element.prototype.querySelector;\n\n// MSEdge resets defaultPrevented flag upon dispatchEvent call if at least one listener is attached\nconst defaultPreventedPreservedOnDispatch = (() => {\n const e = new CustomEvent('Bootstrap', {\n cancelable: true,\n });\n\n const element = document.createElement('div');\n element.addEventListener('Bootstrap', () => null);\n\n e.preventDefault();\n element.dispatchEvent(e);\n return e.defaultPrevented;\n})();\n\nconst scopeSelectorRegex = /:scope\\b/;\nconst supportScopeQuery = (() => {\n const element = document.createElement('div');\n\n try {\n element.querySelectorAll(':scope *');\n } catch (_) {\n return false;\n }\n\n return true;\n})();\n\nif (!supportScopeQuery) {\n findElements = function (selector) {\n if (!scopeSelectorRegex.test(selector)) {\n return this.querySelectorAll(selector);\n }\n\n const hasId = Boolean(this.id);\n\n if (!hasId) {\n this.id = getUID('scope');\n }\n\n let nodeList = null;\n try {\n selector = selector.replace(scopeSelectorRegex, `#${this.id}`);\n nodeList = this.querySelectorAll(selector);\n } finally {\n if (!hasId) {\n this.removeAttribute('id');\n }\n }\n\n return nodeList;\n };\n\n findElement = function (selector) {\n if (!scopeSelectorRegex.test(selector)) {\n return this.querySelector(selector);\n }\n\n const matches = find.call(this, selector);\n\n if (typeof matches[0] !== 'undefined') {\n return matches[0];\n }\n\n return null;\n };\n}\n\nconst find = findElements;\nconst findOne = findElement;\n\nexport { find, findOne, defaultPreventedPreservedOnDispatch };\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha1): dom/event-handler.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { defaultPreventedPreservedOnDispatch } from './polyfill';\nimport { getjQuery } from '../util/index';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst $ = getjQuery();\nconst namespaceRegex = /[^.]*(?=\\..*)\\.|.*/;\nconst stripNameRegex = /\\..*/;\nconst stripUidRegex = /::\\d+$/;\nconst eventRegistry = {}; // Events storage\nlet uidEvent = 1;\nconst customEvents = {\n mouseenter: 'mouseover',\n mouseleave: 'mouseout',\n};\nconst nativeEvents = [\n 'click',\n 'dblclick',\n 'mouseup',\n 'mousedown',\n 'contextmenu',\n 'mousewheel',\n 'DOMMouseScroll',\n 'mouseover',\n 'mouseout',\n 'mousemove',\n 'selectstart',\n 'selectend',\n 'keydown',\n 'keypress',\n 'keyup',\n 'orientationchange',\n 'touchstart',\n 'touchmove',\n 'touchend',\n 'touchcancel',\n 'pointerdown',\n 'pointermove',\n 'pointerup',\n 'pointerleave',\n 'pointercancel',\n 'gesturestart',\n 'gesturechange',\n 'gestureend',\n 'focus',\n 'blur',\n 'change',\n 'reset',\n 'select',\n 'submit',\n 'focusin',\n 'focusout',\n 'load',\n 'unload',\n 'beforeunload',\n 'resize',\n 'move',\n 'DOMContentLoaded',\n 'readystatechange',\n 'error',\n 'abort',\n 'scroll',\n];\n\n/**\n * ------------------------------------------------------------------------\n * Private methods\n * ------------------------------------------------------------------------\n */\n\nfunction getUidEvent(element, uid) {\n return (uid && `${uid}::${uidEvent++}`) || element.uidEvent || uidEvent++;\n}\n\nfunction getEvent(element) {\n const uid = getUidEvent(element);\n\n element.uidEvent = uid;\n eventRegistry[uid] = eventRegistry[uid] || {};\n\n return eventRegistry[uid];\n}\n\nfunction bootstrapHandler(element, fn) {\n return function handler(event) {\n if (handler.oneOff) {\n EventHandler.off(element, event.type, fn);\n }\n\n return fn.apply(element, [event]);\n };\n}\n\nfunction bootstrapDelegationHandler(element, selector, fn) {\n return function handler(event) {\n const domElements = element.querySelectorAll(selector);\n\n for (let { target } = event; target && target !== this; target = target.parentNode) {\n for (let i = domElements.length; i--; '') {\n if (domElements[i] === target) {\n if (handler.oneOff) {\n EventHandler.off(element, event.type, fn);\n }\n\n return fn.apply(target, [event]);\n }\n }\n }\n\n // To please ESLint\n return null;\n };\n}\n\nfunction findHandler(events, handler, delegationSelector = null) {\n const uidEventList = Object.keys(events);\n\n for (let i = 0, len = uidEventList.length; i < len; i++) {\n const event = events[uidEventList[i]];\n\n if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {\n return event;\n }\n }\n\n return null;\n}\n\nfunction normalizeParams(originalTypeEvent, handler, delegationFn) {\n const delegation = typeof handler === 'string';\n const originalHandler = delegation ? delegationFn : handler;\n\n // allow to get the native events from namespaced events ('click.bs.button' --> 'click')\n let typeEvent = originalTypeEvent.replace(stripNameRegex, '');\n const custom = customEvents[typeEvent];\n\n if (custom) {\n typeEvent = custom;\n }\n\n const isNative = nativeEvents.indexOf(typeEvent) > -1;\n\n if (!isNative) {\n typeEvent = originalTypeEvent;\n }\n\n return [delegation, originalHandler, typeEvent];\n}\n\nfunction addHandler(element, originalTypeEvent, handler, delegationFn, oneOff) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n\n if (!handler) {\n handler = delegationFn;\n delegationFn = null;\n }\n\n const [delegation, originalHandler, typeEvent] = normalizeParams(\n originalTypeEvent,\n handler,\n delegationFn\n );\n const events = getEvent(element);\n const handlers = events[typeEvent] || (events[typeEvent] = {});\n const previousFn = findHandler(handlers, originalHandler, delegation ? handler : null);\n\n if (previousFn) {\n previousFn.oneOff = previousFn.oneOff && oneOff;\n\n return;\n }\n\n const uid = getUidEvent(originalHandler, originalTypeEvent.replace(namespaceRegex, ''));\n const fn = delegation\n ? bootstrapDelegationHandler(element, handler, delegationFn)\n : bootstrapHandler(element, handler);\n\n fn.delegationSelector = delegation ? handler : null;\n fn.originalHandler = originalHandler;\n fn.oneOff = oneOff;\n fn.uidEvent = uid;\n handlers[uid] = fn;\n\n element.addEventListener(typeEvent, fn, delegation);\n}\n\nfunction removeHandler(element, events, typeEvent, handler, delegationSelector) {\n const fn = findHandler(events[typeEvent], handler, delegationSelector);\n\n if (!fn) {\n return;\n }\n\n element.removeEventListener(typeEvent, fn, Boolean(delegationSelector));\n delete events[typeEvent][fn.uidEvent];\n}\n\nfunction removeNamespacedHandlers(element, events, typeEvent, namespace) {\n const storeElementEvent = events[typeEvent] || {};\n\n Object.keys(storeElementEvent).forEach((handlerKey) => {\n if (handlerKey.indexOf(namespace) > -1) {\n const event = storeElementEvent[handlerKey];\n\n removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);\n }\n });\n}\n\nconst EventHandler = {\n on(element, event, handler, delegationFn) {\n addHandler(element, event, handler, delegationFn, false);\n },\n\n one(element, event, handler, delegationFn) {\n addHandler(element, event, handler, delegationFn, true);\n },\n\n off(element, originalTypeEvent, handler, delegationFn) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n\n const [delegation, originalHandler, typeEvent] = normalizeParams(\n originalTypeEvent,\n handler,\n delegationFn\n );\n const inNamespace = typeEvent !== originalTypeEvent;\n const events = getEvent(element);\n const isNamespace = originalTypeEvent.charAt(0) === '.';\n\n if (typeof originalHandler !== 'undefined') {\n // Simplest case: handler is passed, remove that listener ONLY.\n if (!events || !events[typeEvent]) {\n return;\n }\n\n removeHandler(element, events, typeEvent, originalHandler, delegation ? handler : null);\n return;\n }\n\n if (isNamespace) {\n Object.keys(events).forEach((elementEvent) => {\n removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1));\n });\n }\n\n const storeElementEvent = events[typeEvent] || {};\n Object.keys(storeElementEvent).forEach((keyHandlers) => {\n const handlerKey = keyHandlers.replace(stripUidRegex, '');\n\n if (!inNamespace || originalTypeEvent.indexOf(handlerKey) > -1) {\n const event = storeElementEvent[keyHandlers];\n\n removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);\n }\n });\n },\n\n trigger(element, event, args) {\n if (typeof event !== 'string' || !element) {\n return null;\n }\n\n const typeEvent = event.replace(stripNameRegex, '');\n const inNamespace = event !== typeEvent;\n const isNative = nativeEvents.indexOf(typeEvent) > -1;\n\n let jQueryEvent;\n let bubbles = true;\n let nativeDispatch = true;\n let defaultPrevented = false;\n let evt = null;\n\n if (inNamespace && $) {\n jQueryEvent = $.Event(event, args);\n\n $(element).trigger(jQueryEvent);\n bubbles = !jQueryEvent.isPropagationStopped();\n nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();\n defaultPrevented = jQueryEvent.isDefaultPrevented();\n }\n\n if (isNative) {\n evt = document.createEvent('HTMLEvents');\n evt.initEvent(typeEvent, bubbles, true);\n } else {\n evt = new CustomEvent(event, {\n bubbles,\n cancelable: true,\n });\n }\n\n // merge custom informations in our event\n if (typeof args !== 'undefined') {\n Object.keys(args).forEach((key) => {\n Object.defineProperty(evt, key, {\n get() {\n return args[key];\n },\n });\n });\n }\n\n if (defaultPrevented) {\n evt.preventDefault();\n\n if (!defaultPreventedPreservedOnDispatch) {\n Object.defineProperty(evt, 'defaultPrevented', {\n get: () => true,\n });\n }\n }\n\n if (nativeDispatch) {\n element.dispatchEvent(evt);\n }\n\n if (evt.defaultPrevented && typeof jQueryEvent !== 'undefined') {\n jQueryEvent.preventDefault();\n }\n\n return evt;\n },\n};\n\nexport const EventHandlerMulti = {\n on(element, eventsName, handler, delegationFn) {\n const events = eventsName.split(' ');\n\n for (let i = 0; i < events.length; i++) {\n EventHandler.on(element, events[i], handler, delegationFn);\n }\n },\n off(element, originalTypeEvent, handler, delegationFn) {\n const events = originalTypeEvent.split(' ');\n\n for (let i = 0; i < events.length; i++) {\n EventHandler.off(element, events[i], handler, delegationFn);\n }\n },\n};\n\nexport default EventHandler;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(val) {\n if (val === 'true') {\n return true;\n }\n\n if (val === 'false') {\n return false;\n }\n\n if (val === Number(val).toString()) {\n return Number(val);\n }\n\n if (val === '' || val === 'null') {\n return null;\n }\n\n return val;\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, (chr) => `-${chr.toLowerCase()}`);\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-mdb-${normalizeDataKey(key)}`, value);\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-mdb-${normalizeDataKey(key)}`);\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {};\n }\n\n const attributes = {\n ...element.dataset,\n };\n\n Object.keys(attributes)\n .filter((key) => key.startsWith('mdb'))\n .forEach((key) => {\n let pureKey = key.replace(/^mdb/, '');\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);\n attributes[pureKey] = normalizeData(attributes[key]);\n });\n\n return attributes;\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-mdb-${normalizeDataKey(key)}`));\n },\n\n offset(element) {\n const rect = element.getBoundingClientRect();\n\n return {\n top: rect.top + document.body.scrollTop,\n left: rect.left + document.body.scrollLeft,\n };\n },\n\n position(element) {\n return {\n top: element.offsetTop,\n left: element.offsetLeft,\n };\n },\n\n style(element, style) {\n Object.assign(element.style, style);\n },\n\n toggleClass(element, className) {\n if (!element) {\n return;\n }\n\n if (element.classList.contains(className)) {\n element.classList.remove(className);\n } else {\n element.classList.add(className);\n }\n },\n\n addClass(element, className) {\n if (element.classList.contains(className)) return;\n element.classList.add(className);\n },\n\n addStyle(element, style) {\n Object.keys(style).forEach((property) => {\n element.style[property] = style[property];\n });\n },\n\n removeClass(element, className) {\n if (!element.classList.contains(className)) return;\n element.classList.remove(className);\n },\n\n hasClass(element, className) {\n return element.classList.contains(className);\n },\n};\n\nexport default Manipulator;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha1): dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { find as findFn, findOne } from './polyfill';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NODE_TEXT = 3;\n\nconst SelectorEngine = {\n closest(element, selector) {\n return element.closest(selector);\n },\n\n matches(element, selector) {\n return element.matches(selector);\n },\n\n find(selector, element = document.documentElement) {\n return [].concat(...findFn.call(element, selector));\n },\n\n findOne(selector, element = document.documentElement) {\n return findOne.call(element, selector);\n },\n\n children(element, selector) {\n const children = [].concat(...element.children);\n\n return children.filter((child) => child.matches(selector));\n },\n\n parents(element, selector) {\n const parents = [];\n\n let ancestor = element.parentNode;\n\n while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {\n if (this.matches(ancestor, selector)) {\n parents.push(ancestor);\n }\n\n ancestor = ancestor.parentNode;\n }\n\n return parents;\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling;\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous];\n }\n\n previous = previous.previousElementSibling;\n }\n\n return [];\n },\n\n next(element, selector) {\n let next = element.nextElementSibling;\n\n while (next) {\n if (this.matches(next, selector)) {\n return [next];\n }\n\n next = next.nextElementSibling;\n }\n\n return [];\n },\n};\n\nexport default SelectorEngine;\n","class TouchUtil {\n _getCoordinates(e) {\n const [touch] = e.touches;\n return {\n x: touch.clientX,\n y: touch.clientY,\n };\n }\n\n _getDirection(displacement) {\n return {\n x: {\n direction: displacement.x < 0 ? 'left' : 'right',\n value: Math.abs(displacement.x),\n },\n y: {\n direction: displacement.y < 0 ? 'up' : 'down',\n value: Math.abs(displacement.y),\n },\n };\n }\n}\n\nexport default TouchUtil;\n","import TouchUtil from './touchUtil';\nimport EventHandler from '../../dom/event-handler';\n\nconst DEFAULT_OPTIONS = {\n threshold: 10,\n direction: 'all',\n};\n\nclass Swipe extends TouchUtil {\n constructor(element, options) {\n super();\n this._element = element;\n this._startPosition = null;\n this._options = {\n ...DEFAULT_OPTIONS,\n ...options,\n };\n }\n\n handleTouchStart(e) {\n this._startPosition = this._getCoordinates(e);\n }\n\n handleTouchMove(e) {\n if (!this._startPosition) return;\n\n const position = this._getCoordinates(e);\n const displacement = {\n x: position.x - this._startPosition.x,\n y: position.y - this._startPosition.y,\n };\n\n const swipe = this._getDirection(displacement);\n\n if (this._options.direction === 'all') {\n if (swipe.y.value < this._options.threshold && swipe.x.value < this._options.threshold) {\n return;\n }\n const direction = swipe.y.value > swipe.x.value ? swipe.y.direction : swipe.x.direction;\n EventHandler.trigger(this._element, `swipe${direction}`);\n EventHandler.trigger(this._element, 'swipe', { direction });\n this._startPosition = null;\n return;\n }\n\n const axis = this._options.direction === 'left' || this._options === 'right' ? 'x' : 'y';\n\n if (\n swipe[axis].direction === this._options.direction &&\n swipe[axis].value > this._options.threshold\n ) {\n EventHandler.trigger(this._element, `swipe${swipe[axis].direction}`);\n this._startPosition = null;\n }\n }\n\n handleTouchEnd() {\n this._startPosition = null;\n }\n}\n\nexport default Swipe;\n","import Swipe from './swipe';\n\nclass Touch {\n constructor(element, event = 'swipe', options = {}) {\n this._element = element;\n this._event = event;\n\n // events\n\n this.swipe = new Swipe(element, options);\n\n // handlers\n\n this._touchStartHandler = this._handleTouchStart.bind(this);\n this._touchMoveHandler = this._handleTouchMove.bind(this);\n this._touchEndHandler = this._handleTouchEnd.bind(this);\n }\n\n dispose() {\n this._element.removeEventListener('touchstart', this._touchStartHandler);\n this._element.removeEventListener('touchmove', this._touchMoveHandler);\n window.removeEventListener('touchend', this._touchEndHandler);\n }\n\n init() {\n // istanbul ignore next\n this._element.addEventListener('touchstart', (e) => this._handleTouchStart(e));\n // istanbul ignore next\n this._element.addEventListener('touchmove', (e) => this._handleTouchMove(e));\n // istanbul ignore next\n window.addEventListener('touchend', (e) => this._handleTouchEnd(e));\n }\n\n _handleTouchStart(e) {\n this[this._event].handleTouchStart(e);\n }\n\n _handleTouchMove(e) {\n this[this._event].handleTouchMove(e);\n }\n\n _handleTouchEnd(e) {\n this[this._event].handleTouchEnd(e);\n }\n}\n\nexport default Touch;\n","import { typeCheckConfig, getjQuery, onDOMContentLoaded } from './mdb/util/index';\nimport Data from './mdb/dom/data';\nimport EventHandler from './mdb/dom/event-handler';\nimport Manipulator from './mdb/dom/manipulator';\nimport SelectorEngine from './mdb/dom/selector-engine';\nimport Touch from './mdb/util/touch';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'multiCarousel';\nconst DATA_KEY = 'mdb.multiCarousel';\n\nconst CLASSNAME_MULTI_CAROUSEL_INNER = '.multi-carousel-inner';\nconst CLASSNAME_MULTI_CAROUSEL_ITEM = '.multi-carousel-item';\nconst CLASSNAME_MUTLI_CAROUSEL_CONTROL_PREV = '.carousel-control-prev';\nconst CLASSNAME_MUTLI_CAROUSEL_CONTROL_NEXT = '.carousel-control-next';\n\nconst SELECTOR_DATA_INIT = '[data-mdb-multi-carousel-init]';\n\nconst OPTIONS_TYPE = {\n items: '(number|string)',\n breakpoint: '(number|string|boolean)',\n interval: '(number|string|boolean)',\n};\n\nconst DEFAULT_OPTIONS = {\n items: 3,\n breakpoint: 992,\n interval: false,\n};\n\n/**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\nclass MultiCarousel {\n constructor(element, options = {}) {\n this._element = element;\n this._options = options;\n\n this._carouselInner = SelectorEngine.findOne(CLASSNAME_MULTI_CAROUSEL_INNER, this._element);\n this._prevArrow = SelectorEngine.findOne(CLASSNAME_MUTLI_CAROUSEL_CONTROL_PREV, this._element);\n this._nextArrow = SelectorEngine.findOne(CLASSNAME_MUTLI_CAROUSEL_CONTROL_NEXT, this._element);\n this._slideWidth = 0;\n this._slideHeight = 0;\n this._animating = false;\n this._vertical = this._element.classList.contains('vertical');\n this._autoplayInterval = null;\n this._touch = null;\n\n if (this._element) {\n Data.setData(element, DATA_KEY, this);\n }\n }\n\n // Getters\n static get NAME() {\n return NAME;\n }\n\n get options() {\n const config = {\n ...DEFAULT_OPTIONS,\n ...Manipulator.getDataAttributes(this._element),\n ...this._options,\n };\n\n typeCheckConfig(NAME, config, OPTIONS_TYPE);\n\n return config;\n }\n\n get slides() {\n return SelectorEngine.find(CLASSNAME_MULTI_CAROUSEL_ITEM, this._element);\n }\n\n get firstSlide() {\n return this.slides[0];\n }\n\n get lastSlide() {\n return this.slides[this.slides.length - 1];\n }\n\n get _size() {\n return JSON.parse(this.options.breakpoint) === false ||\n this.options.breakpoint < window.innerWidth\n ? 100 / parseInt(this.options.items, 10)\n : 100;\n }\n\n // Public\n init() {\n this._calcSlidesSizes();\n this._addEvents();\n this._setInterval();\n }\n\n slideNext() {\n if (this._animating) return;\n this._animationStart();\n this._setInterval();\n\n if (this._vertical) {\n this._slideDown();\n } else {\n this._slideRight();\n }\n }\n\n slidePrev() {\n if (this._animating) return;\n this._animationStart();\n this._setInterval();\n\n if (this._vertical) {\n this._slideUp();\n } else {\n this._slideLeft();\n }\n }\n\n dispose() {\n this._removeEvents();\n clearInterval(this._autoplayInterval);\n\n Data.removeData(this._element, DATA_KEY);\n this._element = null;\n }\n\n _animationStart() {\n this._animating = true;\n setTimeout(() => {\n this._animating = false;\n }, 400);\n }\n\n _calcSlidesSizes() {\n if (this._vertical) {\n this.slides.forEach((slide) => {\n this._slideHeight = this._size;\n Manipulator.style(slide, { height: `${this._slideHeight}%`, display: 'flex' });\n });\n } else {\n this.slides.forEach((slide) => {\n this._slideWidth = this._size;\n Manipulator.style(slide, { width: `${this._slideWidth}%` });\n });\n }\n }\n\n _slideRight() {\n const firstSlideCopy = this.firstSlide.cloneNode(true);\n Manipulator.style(firstSlideCopy, { marginLeft: 0 });\n this._carouselInner.appendChild(firstSlideCopy);\n Manipulator.style(this.firstSlide, { marginLeft: `-${this._slideWidth}%` });\n this._triggerEvents('slide', 'slid');\n\n setTimeout(() => {\n this._carouselInner.removeChild(this.firstSlide);\n }, 300);\n }\n\n _slideLeft() {\n const lastSlideCopy = this.lastSlide.cloneNode(true);\n this._carouselInner.insertBefore(lastSlideCopy, this.firstSlide);\n Manipulator.style(lastSlideCopy, { marginLeft: `-${this._slideWidth}%` });\n\n this._triggerEvents('slide', 'slid');\n\n setTimeout(() => {\n Manipulator.style(this.firstSlide, { marginLeft: 0 });\n }, 150);\n\n setTimeout(() => {\n this._carouselInner.removeChild(this.lastSlide);\n }, 300);\n }\n\n _slideDown() {\n const firstSlideCopy = this.firstSlide.cloneNode(true);\n Manipulator.style(firstSlideCopy, { marginTop: 0 });\n this._carouselInner.appendChild(firstSlideCopy);\n Manipulator.style(this.firstSlide, {\n marginTop: `-${this.firstSlide.getBoundingClientRect().height}px`,\n });\n this._triggerEvents('slide', 'slid');\n\n setTimeout(() => {\n this._carouselInner.removeChild(this.firstSlide);\n }, 300);\n }\n\n _slideUp() {\n const lastSlideCopy = this.lastSlide.cloneNode(true);\n Manipulator.style(lastSlideCopy, {\n marginTop: `-${this.lastSlide.getBoundingClientRect().height}px`,\n });\n this._carouselInner.insertBefore(lastSlideCopy, this.firstSlide);\n\n this._triggerEvents('slide', 'slid');\n\n setTimeout(() => {\n Manipulator.style(this.firstSlide, { marginTop: 0 });\n }, 80);\n\n setTimeout(() => {\n this._carouselInner.removeChild(this.lastSlide);\n }, 300);\n }\n\n _setInterval() {\n if (!this.options.interval) return;\n clearInterval(this._autoplayInterval);\n this._autoplayInterval = setInterval(() => {\n this.slideNext();\n }, parseInt(this.options.interval, 10));\n }\n\n _addEvents() {\n this._slideNextEvent = this.slideNext.bind(this);\n this._slidePrevEvent = this.slidePrev.bind(this);\n this._arrowKeyupEvent = this._arrowKeyup.bind(this);\n this._windowResizeHandler = this._onResize.bind(this);\n\n EventHandler.on(this._nextArrow, 'click', this._slideNextEvent);\n EventHandler.on(this._prevArrow, 'click', this._slidePrevEvent);\n EventHandler.on(this._nextArrow, 'keyup', this._arrowKeyupEvent);\n EventHandler.on(this._prevArrow, 'keyup', this._arrowKeyupEvent);\n EventHandler.on(window, 'resize', this._windowResizeHandler);\n\n this._touch = new Touch(this._element, 'swipe', { threshold: 20 });\n this._touch.init();\n\n if (this._vertical) {\n EventHandler.on(this._element, 'swipedown', this._slidePrevEvent);\n EventHandler.on(this._element, 'swipeup', this._slideNextEvent);\n } else {\n EventHandler.on(this._element, 'swiperight', this._slidePrevEvent);\n EventHandler.on(this._element, 'swipeleft', this._slideNextEvent);\n }\n }\n\n _removeEvents() {\n EventHandler.off(this._nextArrow, 'click', this._slideNextEvent);\n EventHandler.off(this._prevArrow, 'click', this._slidePrevEvent);\n EventHandler.off(this._nextArrow, 'keyup', this._arrowKeyupEvent);\n EventHandler.off(this._prevArrow, 'keyup', this._arrowKeyupEvent);\n EventHandler.off(window, 'resize', this._windowResizeHandler);\n\n if (this._vertical) {\n EventHandler.off(this._element, 'swipedown', this._slidePrevEvent);\n EventHandler.off(this._element, 'swipeup', this._slideNextEvent);\n } else {\n EventHandler.off(this._element, 'swiperight', this._slidePrevEvent);\n EventHandler.off(this._element, 'swipeleft', this._slideNextEvent);\n }\n }\n\n _onResize() {\n this._calcSlidesSizes();\n }\n\n _arrowKeyup(e) {\n e.preventDefault();\n e.stopPropagation();\n switch (e.keyCode) {\n case 13:\n if (e.target.dataset.mdbSlide === 'prev') {\n this.slidePrev();\n } else {\n this.slideNext();\n }\n break;\n case 37:\n this.slidePrev();\n break;\n case 39:\n this.slideNext();\n break;\n default:\n break;\n }\n }\n\n async _triggerEvents(startEvent, completeEvent) {\n EventHandler.trigger(this._element, `${startEvent}.mdb.multiCarousel`);\n\n if (completeEvent) {\n await setTimeout(() => {\n EventHandler.trigger(this._element, `${completeEvent}.mdb.multiCarousel`);\n }, 305);\n }\n }\n\n // Static\n static getInstance(element) {\n return Data.getData(element, DATA_KEY);\n }\n\n static jQueryInterface(config, options) {\n return this.each(function () {\n let data = Data.getData(this, DATA_KEY);\n const _config = typeof config === 'object' && config;\n if (!data && /dispose/.test(config)) {\n return;\n }\n if (!data) {\n data = new MultiCarousel(this, _config);\n }\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config](options);\n }\n });\n }\n}\n\n/**\n * ------------------------------------------------------------------------\n * Data Api implementation - auto initialization\n * ------------------------------------------------------------------------\n */\n\nSelectorEngine.find(SELECTOR_DATA_INIT).forEach((el) => {\n new MultiCarousel(el).init();\n});\n\n/**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\nonDOMContentLoaded(() => {\n const $ = getjQuery();\n\n if ($) {\n const JQUERY_NO_CONFLICT = $.fn[NAME];\n $.fn[NAME] = MultiCarousel.jQueryInterface;\n $.fn[NAME].Constructor = MultiCarousel;\n $.fn[NAME].noConflict = () => {\n $.fn[NAME] = JQUERY_NO_CONFLICT;\n return MultiCarousel.jQueryInterface;\n };\n }\n});\n\nexport default MultiCarousel;\n"],"names":["getjQuery","jQuery","window","document","body","hasAttribute","documentElement","dir","mapData","storeData","id","set","element","key","data","get","keyProperties","Data","setData","instance","getData","removeData","delete","findElements","Element","prototype","querySelectorAll","findElement","querySelector","defaultPreventedPreservedOnDispatch","e","CustomEvent","cancelable","createElement","addEventListener","preventDefault","dispatchEvent","defaultPrevented","scopeSelectorRegex","_","selector","test","this","hasId","Boolean","prefix","Math","floor","random","getElementById","getUID","nodeList","replace","removeAttribute","matches","find","call","findOne","$","namespaceRegex","stripNameRegex","stripUidRegex","eventRegistry","uidEvent","customEvents","mouseenter","mouseleave","nativeEvents","getUidEvent","uid","getEvent","findHandler","events","handler","delegationSelector","uidEventList","Object","keys","i","len","length","event","originalHandler","normalizeParams","originalTypeEvent","delegationFn","delegation","typeEvent","custom","indexOf","addHandler","oneOff","handlers","previousFn","fn","domElements","target","parentNode","EventHandler","off","type","apply","bootstrapDelegationHandler","bootstrapHandler","removeHandler","removeEventListener","on","one","inNamespace","isNamespace","charAt","forEach","elementEvent","namespace","storeElementEvent","handlerKey","removeNamespacedHandlers","slice","keyHandlers","trigger","args","isNative","jQueryEvent","bubbles","nativeDispatch","evt","Event","isPropagationStopped","isImmediatePropagationStopped","isDefaultPrevented","createEvent","initEvent","defineProperty","normalizeData","val","Number","toString","normalizeDataKey","chr","toLowerCase","Manipulator","setDataAttribute","value","setAttribute","removeDataAttribute","getDataAttributes","attributes","dataset","filter","startsWith","pureKey","getDataAttribute","getAttribute","offset","rect","getBoundingClientRect","top","scrollTop","left","scrollLeft","position","offsetTop","offsetLeft","style","assign","toggleClass","className","classList","contains","remove","add","addClass","addStyle","property","removeClass","hasClass","SelectorEngine","closest","concat","findFn","children","child","parents","ancestor","nodeType","Node","ELEMENT_NODE","push","prev","previous","previousElementSibling","next","nextElementSibling","TouchUtil","_getCoordinates","touch","touches","x","clientX","y","clientY","_getDirection","displacement","direction","abs","DEFAULT_OPTIONS","threshold","Swipe","constructor","options","_element","_startPosition","_options","handleTouchStart","handleTouchMove","swipe","axis","handleTouchEnd","Touch","_event","_touchStartHandler","_handleTouchStart","bind","_touchMoveHandler","_handleTouchMove","_touchEndHandler","_handleTouchEnd","dispose","init","NAME","DATA_KEY","OPTIONS_TYPE","items","breakpoint","interval","MultiCarousel","_carouselInner","_prevArrow","_nextArrow","_slideWidth","_slideHeight","_animating","_vertical","_autoplayInterval","_touch","config","componentName","configTypes","expectedTypes","valueType","obj","match","toType","RegExp","Error","toUpperCase","typeCheckConfig","slides","firstSlide","lastSlide","_size","JSON","parse","innerWidth","parseInt","_calcSlidesSizes","_addEvents","_setInterval","slideNext","_animationStart","_slideDown","_slideRight","slidePrev","_slideUp","_slideLeft","_removeEvents","clearInterval","setTimeout","slide","height","display","width","firstSlideCopy","cloneNode","marginLeft","appendChild","_triggerEvents","removeChild","lastSlideCopy","insertBefore","marginTop","setInterval","_slideNextEvent","_slidePrevEvent","_arrowKeyupEvent","_arrowKeyup","_windowResizeHandler","_onResize","stopPropagation","keyCode","mdbSlide","startEvent","completeEvent","getInstance","jQueryInterface","each","_config","TypeError","callback","el","JQUERY_NO_CONFLICT","Constructor","noConflict","readyState"],"mappings":"8OAOA,MA0KMA,EAAY,KACV,MAAAC,OAAEA,GAAWC,OAEnB,OAAID,IAAWE,SAASC,KAAKC,aAAa,sBACjCJ,EAGF,IAAA,EAWKE,SAASG,gBAAgBC,ICtLvC,MAAMC,QACJ,MAAMC,EAAY,CAAA,EAClB,IAAIC,EAAK,EACF,MAAA,CACL,GAAAC,CAAIC,EAASC,EAAKC,QACY,IAAjBF,EAAQC,KACjBD,EAAQC,GAAO,CACbA,MACAH,MAEFA,KAGFD,EAAUG,EAAQC,GAAKH,IAAMI,CAC9B,EACD,GAAAC,CAAIH,EAASC,GACX,IAAKD,QAAmC,IAAjBA,EAAQC,GACtB,OAAA,KAGH,MAAAG,EAAgBJ,EAAQC,GAC1B,OAAAG,EAAcH,MAAQA,EACjBJ,EAAUO,EAAcN,IAG1B,IACR,EACD,OAAOE,EAASC,GACd,QAA4B,IAAjBD,EAAQC,GACjB,OAGI,MAAAG,EAAgBJ,EAAQC,GAC1BG,EAAcH,MAAQA,WACjBJ,EAAUO,EAAcN,WACxBE,EAAQC,GAElB,OAICI,EAAO,CACX,OAAAC,CAAQC,EAAUN,EAAKC,GACbN,EAAAG,IAAIQ,EAAUN,EAAKC,EAC5B,EACDM,QAAA,CAAQD,EAAUN,IACTL,EAAQO,IAAII,EAAUN,GAE/B,UAAAQ,CAAWF,EAAUN,GACXL,EAAAc,OAAOH,EAAUN,EAC1B,GCpDC,IAAAU,EAAeC,QAAQC,UAAUC,iBACjCC,EAAcH,QAAQC,UAAUG,cAGpC,MAAMC,QACE,MAAAC,EAAI,IAAI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