{"version":3,"file":"78c6c043f3edc73e6195135a162b4d1386023937-6b457c987b57dae20653.js","mappings":"sKAGA,SAASA,EAASC,GAChB,OAJF,SAAkBA,GAChB,MAAmD,oBAA5CC,OAAOC,UAAUC,SAASC,KAAKJ,EACxC,CAESK,CAASL,IAAYM,MAAMC,QAAQP,EAC5C,CAIA,SAASQ,EAAgBC,EAAUC,GACjC,MAAMC,EAAeV,OAAOW,KAAKH,GAC3BI,EAAeZ,OAAOW,KAAKF,GACjC,GAAIC,EAAaG,SAAWD,EAAaC,OAAQ,OAAO,EAGxD,OAFqBC,KAAKC,UAAUf,OAAOW,KAAKH,EAASQ,aAAe,CAAC,MACpDF,KAAKC,UAAUf,OAAOW,KAAKF,EAASO,aAAe,CAAC,KAElEN,EAAaO,OAAMC,IACxB,MAAMC,EAASX,EAASU,GAClBE,EAASX,EAASS,GACxB,MAAsB,mBAAXC,EAA8B,GAAGA,KAAa,GAAGC,IACvDtB,EAASqB,IAAYrB,EAASsB,GAC5Bb,EAAgBY,EAAQC,GADoBD,IAAWC,CACxB,GAE1C,CACA,SAASC,EAA0BC,GACjC,OAAOA,EAAQC,SAASC,MAAK,CAACC,EAAGC,IAAMD,EAAEE,KAAOD,EAAEC,KAAO,GAAK,IAAGC,KAAIC,GAAUA,EAAOC,SACxF,CC1BA,SAASC,EAAShC,GAChB,MAA0B,iBAAZA,CAChB,CACA,SAASiC,EAASjC,GAChB,MAA0B,iBAAZA,CAChB,CACA,SAASkC,EAAUlC,GACjB,MAA0B,kBAAZA,CAChB,CACA,SAAS,EAASA,GAChB,MAAmD,oBAA5CC,OAAOC,UAAUC,SAASC,KAAKJ,EACxC,CACA,SAASmC,EAAQC,GACf,OAAOC,KAAKC,IAAIF,EAClB,CACA,SAASG,EAASH,GAChB,OAAOC,KAAKG,KAAKJ,EACnB,CACA,SAASK,EAASpB,EAAQD,GACxB,OAAOe,EAAQd,EAASD,EAC1B,CAOA,SAASsB,EAAUC,GACjB,OAAOC,EAAWD,GAAOd,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AAA,GAA0B,CACnDC,yBAZgCC,IAChC,MAAMC,EAAUC,OACdF,GAAiBG,EAAAA,EAAQtc,EAAE,8CAG7Buc,EAAAA,EAAAA,IAAUH,EAAS,CACjBlmB,KAAM,QACNsmB,QAAS,qBACT,EAKFC,iBAAkBH,EAAAA,EAAQtc,EAAE,qCAC5B+b,c","sources":["webpack://batmaid-www/../node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js","webpack://batmaid-www/../node_modules/embla-carousel/esm/embla-carousel.esm.js","webpack://batmaid-www/../node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js","webpack://batmaid-www/../@components/General/Button/helpers/getSize.ts","webpack://batmaid-www/../@components/General/Button/helpers/getGreenVariant.ts","webpack://batmaid-www/../@components/General/Button/helpers/getBlueVariant.ts","webpack://batmaid-www/../@components/General/Button/helpers/getBlackVariant.ts","webpack://batmaid-www/../@components/General/Button/helpers/getWhiteVariant.ts","webpack://batmaid-www/../@components/General/Button/Button.styled.tsx","webpack://batmaid-www/../@components/General/Button/helpers/getIconVariant.ts","webpack://batmaid-www/../@components/General/Button/Button.tsx","webpack://batmaid-www/../@containers/SmartlookClient/SmartlookClient.tsx","webpack://batmaid-www/../@services/ResolveBookingRoute/ResolveBookingRoute.ts","webpack://batmaid-www/../@ui/Assets/MyIcons/SingleUserHeartUser.tsx","webpack://batmaid-www/./src/components/UTMCatcher.tsx","webpack://batmaid-www/./src/services/AsyncActionCreator/AsyncActionCreator.ts"],"sourcesContent":["function isObject(subject) {\n return Object.prototype.toString.call(subject) === '[object Object]';\n}\nfunction isRecord(subject) {\n return isObject(subject) || Array.isArray(subject);\n}\nfunction canUseDOM() {\n return !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n}\nfunction areOptionsEqual(optionsA, optionsB) {\n const optionsAKeys = Object.keys(optionsA);\n const optionsBKeys = Object.keys(optionsB);\n if (optionsAKeys.length !== optionsBKeys.length) return false;\n const breakpointsA = JSON.stringify(Object.keys(optionsA.breakpoints || {}));\n const breakpointsB = JSON.stringify(Object.keys(optionsB.breakpoints || {}));\n if (breakpointsA !== breakpointsB) return false;\n return optionsAKeys.every(key => {\n const valueA = optionsA[key];\n const valueB = optionsB[key];\n if (typeof valueA === 'function') return `${valueA}` === `${valueB}`;\n if (!isRecord(valueA) || !isRecord(valueB)) return valueA === valueB;\n return areOptionsEqual(valueA, valueB);\n });\n}\nfunction sortAndMapPluginToOptions(plugins) {\n return plugins.concat().sort((a, b) => a.name > b.name ? 1 : -1).map(plugin => plugin.options);\n}\nfunction arePluginsEqual(pluginsA, pluginsB) {\n if (pluginsA.length !== pluginsB.length) return false;\n const optionsA = sortAndMapPluginToOptions(pluginsA);\n const optionsB = sortAndMapPluginToOptions(pluginsB);\n return optionsA.every((optionA, index) => {\n const optionB = optionsB[index];\n return areOptionsEqual(optionA, optionB);\n });\n}\nexport { areOptionsEqual, arePluginsEqual, canUseDOM, sortAndMapPluginToOptions };","function isNumber(subject) {\n return typeof subject === 'number';\n}\nfunction isString(subject) {\n return typeof subject === 'string';\n}\nfunction isBoolean(subject) {\n return typeof subject === 'boolean';\n}\nfunction isObject(subject) {\n return Object.prototype.toString.call(subject) === '[object Object]';\n}\nfunction mathAbs(n) {\n return Math.abs(n);\n}\nfunction mathSign(n) {\n return Math.sign(n);\n}\nfunction deltaAbs(valueB, valueA) {\n return mathAbs(valueB - valueA);\n}\nfunction factorAbs(valueB, valueA) {\n if (valueB === 0 || valueA === 0) return 0;\n if (mathAbs(valueB) <= mathAbs(valueA)) return 0;\n const diff = deltaAbs(mathAbs(valueB), mathAbs(valueA));\n return mathAbs(diff / valueB);\n}\nfunction arrayKeys(array) {\n return objectKeys(array).map(Number);\n}\nfunction arrayLast(array) {\n return array[arrayLastIndex(array)];\n}\nfunction arrayLastIndex(array) {\n return Math.max(0, array.length - 1);\n}\nfunction arrayIsLastIndex(array, index) {\n return index === arrayLastIndex(array);\n}\nfunction arrayFromNumber(n) {\n let startAt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n return Array.from(Array(n), (_, i) => startAt + i);\n}\nfunction objectKeys(object) {\n return Object.keys(object);\n}\nfunction objectsMergeDeep(objectA, objectB) {\n return [objectA, objectB].reduce((mergedObjects, currentObject) => {\n objectKeys(currentObject).forEach(key => {\n const valueA = mergedObjects[key];\n const valueB = currentObject[key];\n const areObjects = isObject(valueA) && isObject(valueB);\n mergedObjects[key] = areObjects ? objectsMergeDeep(valueA, valueB) : valueB;\n });\n return mergedObjects;\n }, {});\n}\nfunction isMouseEvent(evt, ownerWindow) {\n return typeof ownerWindow.MouseEvent !== 'undefined' && evt instanceof ownerWindow.MouseEvent;\n}\nfunction Alignment(align, viewSize) {\n const predefined = {\n start,\n center,\n end\n };\n function start() {\n return 0;\n }\n function center(n) {\n return end(n) / 2;\n }\n function end(n) {\n return viewSize - n;\n }\n function measure(n, index) {\n if (isString(align)) return predefined[align](n);\n return align(viewSize, n, index);\n }\n const self = {\n measure\n };\n return self;\n}\nfunction Axis(axis, direction) {\n const scroll = axis === 'y' ? 'y' : 'x';\n const cross = axis === 'y' ? 'x' : 'y';\n const startEdge = getStartEdge();\n const endEdge = getEndEdge();\n function measureSize(nodeRect) {\n const {\n width,\n height\n } = nodeRect;\n return scroll === 'x' ? width : height;\n }\n function getStartEdge() {\n if (scroll === 'y') return 'top';\n return direction === 'rtl' ? 'right' : 'left';\n }\n function getEndEdge() {\n if (scroll === 'y') return 'bottom';\n return direction === 'rtl' ? 'left' : 'right';\n }\n const self = {\n scroll,\n cross,\n startEdge,\n endEdge,\n measureSize\n };\n return self;\n}\nfunction Limit(min, max) {\n const length = mathAbs(min - max);\n function reachedMin(n) {\n return n < min;\n }\n function reachedMax(n) {\n return n > max;\n }\n function reachedAny(n) {\n return reachedMin(n) || reachedMax(n);\n }\n function constrain(n) {\n if (!reachedAny(n)) return n;\n return reachedMin(n) ? min : max;\n }\n function removeOffset(n) {\n if (!length) return n;\n return n - length * Math.ceil((n - max) / length);\n }\n const self = {\n length,\n max,\n min,\n constrain,\n reachedAny,\n reachedMax,\n reachedMin,\n removeOffset\n };\n return self;\n}\nfunction Counter(max, start, loop) {\n const {\n constrain\n } = Limit(0, max);\n const loopEnd = max + 1;\n let counter = withinLimit(start);\n function withinLimit(n) {\n return !loop ? constrain(n) : mathAbs((loopEnd + n) % loopEnd);\n }\n function get() {\n return counter;\n }\n function set(n) {\n counter = withinLimit(n);\n return self;\n }\n function add(n) {\n return clone().set(get() + n);\n }\n function clone() {\n return Counter(max, get(), loop);\n }\n const self = {\n get,\n set,\n add,\n clone\n };\n return self;\n}\nfunction Direction(direction) {\n const sign = direction === 'rtl' ? -1 : 1;\n function apply(n) {\n return n * sign;\n }\n const self = {\n apply\n };\n return self;\n}\nfunction EventStore() {\n let listeners = [];\n function add(node, type, handler) {\n let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {\n passive: true\n };\n let removeListener;\n if ('addEventListener' in node) {\n node.addEventListener(type, handler, options);\n removeListener = () => node.removeEventListener(type, handler, options);\n } else {\n const legacyMediaQueryList = node;\n legacyMediaQueryList.addListener(handler);\n removeListener = () => legacyMediaQueryList.removeListener(handler);\n }\n listeners.push(removeListener);\n return self;\n }\n function clear() {\n listeners = listeners.filter(remove => remove());\n }\n const self = {\n add,\n clear\n };\n return self;\n}\nfunction DragHandler(axis, direction, rootNode, ownerDocument, ownerWindow, target, dragTracker, location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, baseFriction, watchDrag) {\n const {\n cross: crossAxis\n } = axis;\n const focusNodes = ['INPUT', 'SELECT', 'TEXTAREA'];\n const nonPassiveEvent = {\n passive: false\n };\n const initEvents = EventStore();\n const dragEvents = EventStore();\n const goToNextThreshold = Limit(50, 225).constrain(percentOfView.measure(20));\n const snapForceBoost = {\n mouse: 300,\n touch: 400\n };\n const freeForceBoost = {\n mouse: 500,\n touch: 600\n };\n const baseSpeed = dragFree ? 43 : 25;\n let isMoving = false;\n let startScroll = 0;\n let startCross = 0;\n let pointerIsDown = false;\n let preventScroll = false;\n let preventClick = false;\n let isMouse = false;\n function init(emblaApi) {\n if (!watchDrag) return;\n function downIfAllowed(evt) {\n if (isBoolean(watchDrag) || watchDrag(emblaApi, evt)) down(evt);\n }\n const node = rootNode;\n initEvents.add(node, 'dragstart', evt => evt.preventDefault(), nonPassiveEvent).add(node, 'touchmove', () => undefined, nonPassiveEvent).add(node, 'touchend', () => undefined).add(node, 'touchstart', downIfAllowed).add(node, 'mousedown', downIfAllowed).add(node, 'touchcancel', up).add(node, 'contextmenu', up).add(node, 'click', click, true);\n }\n function destroy() {\n initEvents.clear();\n dragEvents.clear();\n }\n function addDragEvents() {\n const node = isMouse ? ownerDocument : rootNode;\n dragEvents.add(node, 'touchmove', move, nonPassiveEvent).add(node, 'touchend', up).add(node, 'mousemove', move, nonPassiveEvent).add(node, 'mouseup', up);\n }\n function isFocusNode(node) {\n const nodeName = node.nodeName || '';\n return focusNodes.includes(nodeName);\n }\n function forceBoost() {\n const boost = dragFree ? freeForceBoost : snapForceBoost;\n const type = isMouse ? 'mouse' : 'touch';\n return boost[type];\n }\n function allowedForce(force, targetChanged) {\n const next = index.add(mathSign(force) * -1);\n const baseForce = scrollTarget.byDistance(force, !dragFree).distance;\n if (dragFree || mathAbs(force) < goToNextThreshold) return baseForce;\n if (skipSnaps && targetChanged) return baseForce * 0.5;\n return scrollTarget.byIndex(next.get(), 0).distance;\n }\n function down(evt) {\n const isMouseEvt = isMouseEvent(evt, ownerWindow);\n isMouse = isMouseEvt;\n if (isMouseEvt && evt.button !== 0) return;\n if (isFocusNode(evt.target)) return;\n preventClick = dragFree && isMouseEvt && !evt.buttons && isMoving;\n isMoving = deltaAbs(target.get(), location.get()) >= 2;\n pointerIsDown = true;\n dragTracker.pointerDown(evt);\n scrollBody.useFriction(0).useDuration(0);\n target.set(location);\n addDragEvents();\n startScroll = dragTracker.readPoint(evt);\n startCross = dragTracker.readPoint(evt, crossAxis);\n eventHandler.emit('pointerDown');\n }\n function move(evt) {\n const lastScroll = dragTracker.readPoint(evt);\n const lastCross = dragTracker.readPoint(evt, crossAxis);\n const diffScroll = deltaAbs(lastScroll, startScroll);\n const diffCross = deltaAbs(lastCross, startCross);\n if (!preventScroll && !isMouse) {\n if (!evt.cancelable) return up(evt);\n preventScroll = diffScroll > diffCross;\n if (!preventScroll) return up(evt);\n }\n const diff = dragTracker.pointerMove(evt);\n if (diffScroll > dragThreshold) preventClick = true;\n scrollBody.useFriction(0.3).useDuration(1);\n animation.start();\n target.add(direction.apply(diff));\n evt.preventDefault();\n }\n function up(evt) {\n const currentLocation = scrollTarget.byDistance(0, false);\n const targetChanged = currentLocation.index !== index.get();\n const rawForce = dragTracker.pointerUp(evt) * forceBoost();\n const force = allowedForce(direction.apply(rawForce), targetChanged);\n const forceFactor = factorAbs(rawForce, force);\n const speed = baseSpeed - 10 * forceFactor;\n const friction = baseFriction + forceFactor / 50;\n preventScroll = false;\n pointerIsDown = false;\n dragEvents.clear();\n scrollBody.useDuration(speed).useFriction(friction);\n scrollTo.distance(force, !dragFree);\n isMouse = false;\n eventHandler.emit('pointerUp');\n }\n function click(evt) {\n if (preventClick) {\n evt.stopPropagation();\n evt.preventDefault();\n }\n }\n function pointerDown() {\n return pointerIsDown;\n }\n const self = {\n init,\n pointerDown,\n destroy\n };\n return self;\n}\nfunction DragTracker(axis, ownerWindow) {\n const logInterval = 170;\n let startEvent;\n let lastEvent;\n function readTime(evt) {\n return evt.timeStamp;\n }\n function readPoint(evt, evtAxis) {\n const property = evtAxis || axis.scroll;\n const coord = `client${property === 'x' ? 'X' : 'Y'}`;\n return (isMouseEvent(evt, ownerWindow) ? evt : evt.touches[0])[coord];\n }\n function pointerDown(evt) {\n startEvent = evt;\n lastEvent = evt;\n return readPoint(evt);\n }\n function pointerMove(evt) {\n const diff = readPoint(evt) - readPoint(lastEvent);\n const expired = readTime(evt) - readTime(startEvent) > logInterval;\n lastEvent = evt;\n if (expired) startEvent = evt;\n return diff;\n }\n function pointerUp(evt) {\n if (!startEvent || !lastEvent) return 0;\n const diffDrag = readPoint(lastEvent) - readPoint(startEvent);\n const diffTime = readTime(evt) - readTime(startEvent);\n const expired = readTime(evt) - readTime(lastEvent) > logInterval;\n const force = diffDrag / diffTime;\n const isFlick = diffTime && !expired && mathAbs(force) > 0.1;\n return isFlick ? force : 0;\n }\n const self = {\n pointerDown,\n pointerMove,\n pointerUp,\n readPoint\n };\n return self;\n}\nfunction NodeRects() {\n function measure(node) {\n const {\n offsetTop,\n offsetLeft,\n offsetWidth,\n offsetHeight\n } = node;\n const offset = {\n top: offsetTop,\n right: offsetLeft + offsetWidth,\n bottom: offsetTop + offsetHeight,\n left: offsetLeft,\n width: offsetWidth,\n height: offsetHeight\n };\n return offset;\n }\n const self = {\n measure\n };\n return self;\n}\nfunction PercentOfView(viewSize) {\n function measure(n) {\n return viewSize * (n / 100);\n }\n const self = {\n measure\n };\n return self;\n}\nfunction ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects) {\n let resizeObserver;\n let containerSize;\n let slideSizes = [];\n let destroyed = false;\n function readSize(node) {\n return axis.measureSize(nodeRects.measure(node));\n }\n function init(emblaApi) {\n if (!watchResize) return;\n containerSize = readSize(container);\n slideSizes = slides.map(readSize);\n function defaultCallback(entries) {\n for (const entry of entries) {\n const isContainer = entry.target === container;\n const slideIndex = slides.indexOf(entry.target);\n const lastSize = isContainer ? containerSize : slideSizes[slideIndex];\n const newSize = readSize(isContainer ? container : slides[slideIndex]);\n const diffSize = mathAbs(newSize - lastSize);\n if (diffSize >= 0.5) {\n ownerWindow.requestAnimationFrame(() => {\n emblaApi.reInit();\n eventHandler.emit('resize');\n });\n break;\n }\n }\n }\n resizeObserver = new ResizeObserver(entries => {\n if (destroyed) return;\n if (isBoolean(watchResize) || watchResize(emblaApi, entries)) {\n defaultCallback(entries);\n }\n });\n const observeNodes = [container].concat(slides);\n observeNodes.forEach(node => resizeObserver.observe(node));\n }\n function destroy() {\n if (resizeObserver) resizeObserver.disconnect();\n destroyed = true;\n }\n const self = {\n init,\n destroy\n };\n return self;\n}\nfunction ScrollBody(location, offsetLocation, target, baseDuration, baseFriction) {\n let bodyVelocity = 0;\n let scrollDirection = 0;\n let scrollDuration = baseDuration;\n let scrollFriction = baseFriction;\n let rawLocation = location.get();\n let rawLocationPrevious = 0;\n function seek() {\n const diff = target.get() - location.get();\n const isInstant = !scrollDuration;\n let directionDiff = 0;\n if (isInstant) {\n bodyVelocity = 0;\n location.set(target);\n directionDiff = diff;\n } else {\n bodyVelocity += diff / scrollDuration;\n bodyVelocity *= scrollFriction;\n rawLocation += bodyVelocity;\n location.add(bodyVelocity);\n directionDiff = rawLocation - rawLocationPrevious;\n }\n scrollDirection = mathSign(directionDiff);\n rawLocationPrevious = rawLocation;\n return self;\n }\n function settled() {\n const diff = target.get() - offsetLocation.get();\n return mathAbs(diff) < 0.001;\n }\n function duration() {\n return scrollDuration;\n }\n function direction() {\n return scrollDirection;\n }\n function velocity() {\n return bodyVelocity;\n }\n function useBaseDuration() {\n return useDuration(baseDuration);\n }\n function useBaseFriction() {\n return useFriction(baseFriction);\n }\n function useDuration(n) {\n scrollDuration = n;\n return self;\n }\n function useFriction(n) {\n scrollFriction = n;\n return self;\n }\n const self = {\n direction,\n duration,\n velocity,\n seek,\n settled,\n useBaseFriction,\n useBaseDuration,\n useFriction,\n useDuration\n };\n return self;\n}\nfunction ScrollBounds(limit, location, target, scrollBody, percentOfView) {\n const pullBackThreshold = percentOfView.measure(10);\n const edgeOffsetTolerance = percentOfView.measure(50);\n const frictionLimit = Limit(0.1, 0.99);\n let disabled = false;\n function shouldConstrain() {\n if (disabled) return false;\n if (!limit.reachedAny(target.get())) return false;\n if (!limit.reachedAny(location.get())) return false;\n return true;\n }\n function constrain(pointerDown) {\n if (!shouldConstrain()) return;\n const edge = limit.reachedMin(location.get()) ? 'min' : 'max';\n const diffToEdge = mathAbs(limit[edge] - location.get());\n const diffToTarget = target.get() - location.get();\n const friction = frictionLimit.constrain(diffToEdge / edgeOffsetTolerance);\n target.subtract(diffToTarget * friction);\n if (!pointerDown && mathAbs(diffToTarget) < pullBackThreshold) {\n target.set(limit.constrain(target.get()));\n scrollBody.useDuration(25).useBaseFriction();\n }\n }\n function toggleActive(active) {\n disabled = !active;\n }\n const self = {\n constrain,\n toggleActive\n };\n return self;\n}\nfunction ScrollContain(viewSize, contentSize, snapsAligned, containScroll) {\n const scrollBounds = Limit(-contentSize + viewSize, 0);\n const snapsBounded = measureBounded();\n const scrollContainLimit = findScrollContainLimit();\n const snapsContained = measureContained();\n function findScrollContainLimit() {\n const startSnap = snapsBounded[0];\n const endSnap = arrayLast(snapsBounded);\n const min = snapsBounded.lastIndexOf(startSnap);\n const max = snapsBounded.indexOf(endSnap) + 1;\n return Limit(min, max);\n }\n function measureBounded() {\n return snapsAligned.map((snapAligned, index) => {\n const isFirst = !index;\n const isLast = arrayIsLastIndex(snapsAligned, index);\n if (isFirst) return scrollBounds.max;\n if (isLast) return scrollBounds.min;\n return scrollBounds.constrain(snapAligned);\n }).map(scrollBound => parseFloat(scrollBound.toFixed(3)));\n }\n function measureContained() {\n if (contentSize <= viewSize) return [scrollBounds.max];\n if (containScroll === 'keepSnaps') return snapsBounded;\n const {\n min,\n max\n } = scrollContainLimit;\n return snapsBounded.slice(min, max);\n }\n const self = {\n snapsContained,\n scrollContainLimit\n };\n return self;\n}\nfunction ScrollLimit(contentSize, scrollSnaps, loop) {\n const max = scrollSnaps[0];\n const min = loop ? max - contentSize : arrayLast(scrollSnaps);\n const limit = Limit(min, max);\n const self = {\n limit\n };\n return self;\n}\nfunction ScrollLooper(contentSize, limit, offsetLocation, vectors) {\n const jointSafety = 0.1;\n const min = limit.min + jointSafety;\n const max = limit.max + jointSafety;\n const {\n reachedMin,\n reachedMax\n } = Limit(min, max);\n function shouldLoop(direction) {\n if (direction === 1) return reachedMax(offsetLocation.get());\n if (direction === -1) return reachedMin(offsetLocation.get());\n return false;\n }\n function loop(direction) {\n if (!shouldLoop(direction)) return;\n const loopDistance = contentSize * (direction * -1);\n vectors.forEach(v => v.add(loopDistance));\n }\n const self = {\n loop\n };\n return self;\n}\nfunction ScrollProgress(limit) {\n const {\n max,\n length\n } = limit;\n function get(n) {\n const currentLocation = n - max;\n return length ? currentLocation / -length : 0;\n }\n const self = {\n get\n };\n return self;\n}\nfunction ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll) {\n const {\n startEdge,\n endEdge\n } = axis;\n const {\n groupSlides\n } = slidesToScroll;\n const alignments = measureSizes().map(alignment.measure);\n const snaps = measureUnaligned();\n const snapsAligned = measureAligned();\n function measureSizes() {\n return groupSlides(slideRects).map(rects => arrayLast(rects)[endEdge] - rects[0][startEdge]).map(mathAbs);\n }\n function measureUnaligned() {\n return slideRects.map(rect => containerRect[startEdge] - rect[startEdge]).map(snap => -mathAbs(snap));\n }\n function measureAligned() {\n return groupSlides(snaps).map(g => g[0]).map((snap, index) => snap + alignments[index]);\n }\n const self = {\n snaps,\n snapsAligned\n };\n return self;\n}\nfunction SlideRegistry(viewSize, contentSize, containSnaps, containScroll, scrollContainLimit, slidesToScroll, slideIndexes) {\n const {\n groupSlides\n } = slidesToScroll;\n const {\n min,\n max\n } = scrollContainLimit;\n const slideRegistry = createSlideRegistry();\n function createSlideRegistry() {\n const groupedSlideIndexes = groupSlides(slideIndexes);\n const doNotContain = !containSnaps || containScroll === 'keepSnaps';\n if (doNotContain || contentSize <= viewSize) return groupedSlideIndexes;\n return groupedSlideIndexes.slice(min, max).map((group, index, groups) => {\n const isFirst = !index;\n const isLast = arrayIsLastIndex(groups, index);\n if (isFirst) {\n const range = arrayLast(groups[0]) + 1;\n return arrayFromNumber(range);\n }\n if (isLast) {\n const range = arrayLastIndex(slideIndexes) - arrayLast(groups)[0] + 1;\n return arrayFromNumber(range, arrayLast(groups)[0]);\n }\n return group;\n });\n }\n const self = {\n slideRegistry\n };\n return self;\n}\nfunction ScrollTarget(loop, scrollSnaps, contentSize, limit, targetVector) {\n const {\n reachedAny,\n removeOffset,\n constrain\n } = limit;\n function minDistance(distances) {\n return distances.concat().sort((a, b) => mathAbs(a) - mathAbs(b))[0];\n }\n function findTargetSnap(target) {\n const distance = loop ? removeOffset(target) : constrain(target);\n const ascDiffsToSnaps = scrollSnaps.map(scrollSnap => scrollSnap - distance).map(diffToSnap => shortcut(diffToSnap, 0)).map((diff, i) => ({\n diff,\n index: i\n })).sort((d1, d2) => mathAbs(d1.diff) - mathAbs(d2.diff));\n const {\n index\n } = ascDiffsToSnaps[0];\n return {\n index,\n distance\n };\n }\n function shortcut(target, direction) {\n const targets = [target, target + contentSize, target - contentSize];\n if (!loop) return targets[0];\n if (!direction) return minDistance(targets);\n const matchingTargets = targets.filter(t => mathSign(t) === direction);\n if (matchingTargets.length) return minDistance(matchingTargets);\n return arrayLast(targets) - contentSize;\n }\n function byIndex(index, direction) {\n const diffToSnap = scrollSnaps[index] - targetVector.get();\n const distance = shortcut(diffToSnap, direction);\n return {\n index,\n distance\n };\n }\n function byDistance(distance, snap) {\n const target = targetVector.get() + distance;\n const {\n index,\n distance: targetSnapDistance\n } = findTargetSnap(target);\n const reachedBound = !loop && reachedAny(target);\n if (!snap || reachedBound) return {\n index,\n distance\n };\n const diffToSnap = scrollSnaps[index] - targetSnapDistance;\n const snapDistance = distance + shortcut(diffToSnap, 0);\n return {\n index,\n distance: snapDistance\n };\n }\n const self = {\n byDistance,\n byIndex,\n shortcut\n };\n return self;\n}\nfunction ScrollTo(animation, indexCurrent, indexPrevious, scrollTarget, targetVector, eventHandler) {\n function scrollTo(target) {\n const distanceDiff = target.distance;\n const indexDiff = target.index !== indexCurrent.get();\n targetVector.add(distanceDiff);\n if (distanceDiff) animation.start();\n if (indexDiff) {\n indexPrevious.set(indexCurrent.get());\n indexCurrent.set(target.index);\n eventHandler.emit('select');\n }\n }\n function distance(n, snap) {\n const target = scrollTarget.byDistance(n, snap);\n scrollTo(target);\n }\n function index(n, direction) {\n const targetIndex = indexCurrent.clone().set(n);\n const target = scrollTarget.byIndex(targetIndex.get(), direction);\n scrollTo(target);\n }\n const self = {\n distance,\n index\n };\n return self;\n}\nfunction SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore) {\n let lastTabPressTime = 0;\n function init() {\n eventStore.add(document, 'keydown', registerTabPress, false);\n slides.forEach(addSlideFocusEvent);\n }\n function registerTabPress(event) {\n if (event.code === 'Tab') lastTabPressTime = new Date().getTime();\n }\n function addSlideFocusEvent(slide) {\n const focus = () => {\n const nowTime = new Date().getTime();\n const diffTime = nowTime - lastTabPressTime;\n if (diffTime > 10) return;\n root.scrollLeft = 0;\n const index = slides.indexOf(slide);\n const group = slideRegistry.findIndex(group => group.includes(index));\n if (!isNumber(group)) return;\n scrollBody.useDuration(0);\n scrollTo.index(group, 0);\n };\n eventStore.add(slide, 'focus', focus, {\n passive: true,\n capture: true\n });\n }\n const self = {\n init\n };\n return self;\n}\nfunction Vector1D(initialValue) {\n let value = initialValue;\n function get() {\n return value;\n }\n function set(n) {\n value = normalizeInput(n);\n }\n function add(n) {\n value += normalizeInput(n);\n }\n function subtract(n) {\n value -= normalizeInput(n);\n }\n function normalizeInput(n) {\n return isNumber(n) ? n : n.get();\n }\n const self = {\n get,\n set,\n add,\n subtract\n };\n return self;\n}\nfunction Translate(axis, direction, container) {\n const translate = axis.scroll === 'x' ? x : y;\n const containerStyle = container.style;\n let disabled = false;\n function x(n) {\n return `translate3d(${n}px,0px,0px)`;\n }\n function y(n) {\n return `translate3d(0px,${n}px,0px)`;\n }\n function to(target) {\n if (disabled) return;\n containerStyle.transform = translate(direction.apply(target));\n }\n function toggleActive(active) {\n disabled = !active;\n }\n function clear() {\n if (disabled) return;\n containerStyle.transform = '';\n if (!container.getAttribute('style')) container.removeAttribute('style');\n }\n const self = {\n clear,\n to,\n toggleActive\n };\n return self;\n}\nfunction SlideLooper(axis, direction, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, offsetLocation, slides) {\n const roundingSafety = 0.5;\n const ascItems = arrayKeys(slideSizesWithGaps);\n const descItems = arrayKeys(slideSizesWithGaps).reverse();\n const loopPoints = startPoints().concat(endPoints());\n function removeSlideSizes(indexes, from) {\n return indexes.reduce((a, i) => {\n return a - slideSizesWithGaps[i];\n }, from);\n }\n function slidesInGap(indexes, gap) {\n return indexes.reduce((a, i) => {\n const remainingGap = removeSlideSizes(a, gap);\n return remainingGap > 0 ? a.concat([i]) : a;\n }, []);\n }\n function findSlideBounds(offset) {\n return snaps.map((snap, index) => ({\n start: snap - slideSizes[index] + roundingSafety + offset,\n end: snap + viewSize - roundingSafety + offset\n }));\n }\n function findLoopPoints(indexes, offset, isEndEdge) {\n const slideBounds = findSlideBounds(offset);\n return indexes.map(index => {\n const initial = isEndEdge ? 0 : -contentSize;\n const altered = isEndEdge ? contentSize : 0;\n const boundEdge = isEndEdge ? 'end' : 'start';\n const loopPoint = slideBounds[index][boundEdge];\n return {\n index,\n loopPoint,\n slideLocation: Vector1D(-1),\n translate: Translate(axis, direction, slides[index]),\n target: () => offsetLocation.get() > loopPoint ? initial : altered\n };\n });\n }\n function startPoints() {\n const gap = scrollSnaps[0];\n const indexes = slidesInGap(descItems, gap);\n return findLoopPoints(indexes, contentSize, false);\n }\n function endPoints() {\n const gap = viewSize - scrollSnaps[0] - 1;\n const indexes = slidesInGap(ascItems, gap);\n return findLoopPoints(indexes, -contentSize, true);\n }\n function canLoop() {\n return loopPoints.every(_ref => {\n let {\n index\n } = _ref;\n const otherIndexes = ascItems.filter(i => i !== index);\n return removeSlideSizes(otherIndexes, viewSize) <= 0.1;\n });\n }\n function loop() {\n loopPoints.forEach(loopPoint => {\n const {\n target,\n translate,\n slideLocation\n } = loopPoint;\n const shiftLocation = target();\n if (shiftLocation === slideLocation.get()) return;\n translate.to(shiftLocation);\n slideLocation.set(shiftLocation);\n });\n }\n function clear() {\n loopPoints.forEach(loopPoint => loopPoint.translate.clear());\n }\n const self = {\n canLoop,\n clear,\n loop,\n loopPoints\n };\n return self;\n}\nfunction SlidesHandler(container, eventHandler, watchSlides) {\n let mutationObserver;\n let destroyed = false;\n function init(emblaApi) {\n if (!watchSlides) return;\n function defaultCallback(mutations) {\n for (const mutation of mutations) {\n if (mutation.type === 'childList') {\n emblaApi.reInit();\n eventHandler.emit('slidesChanged');\n break;\n }\n }\n }\n mutationObserver = new MutationObserver(mutations => {\n if (destroyed) return;\n if (isBoolean(watchSlides) || watchSlides(emblaApi, mutations)) {\n defaultCallback(mutations);\n }\n });\n mutationObserver.observe(container, {\n childList: true\n });\n }\n function destroy() {\n if (mutationObserver) mutationObserver.disconnect();\n destroyed = true;\n }\n const self = {\n init,\n destroy\n };\n return self;\n}\nfunction SlidesInView(container, slides, eventHandler, threshold) {\n const intersectionEntryMap = {};\n let inViewCache = null;\n let notInViewCache = null;\n let intersectionObserver;\n let destroyed = false;\n function init() {\n intersectionObserver = new IntersectionObserver(entries => {\n if (destroyed) return;\n entries.forEach(entry => {\n const index = slides.indexOf(entry.target);\n intersectionEntryMap[index] = entry;\n });\n inViewCache = null;\n notInViewCache = null;\n eventHandler.emit('slidesInView');\n }, {\n root: container.parentElement,\n threshold\n });\n slides.forEach(slide => intersectionObserver.observe(slide));\n }\n function destroy() {\n if (intersectionObserver) intersectionObserver.disconnect();\n destroyed = true;\n }\n function createInViewList(inView) {\n return objectKeys(intersectionEntryMap).reduce((list, slideIndex) => {\n const index = parseInt(slideIndex);\n const {\n isIntersecting\n } = intersectionEntryMap[index];\n const inViewMatch = inView && isIntersecting;\n const notInViewMatch = !inView && !isIntersecting;\n if (inViewMatch || notInViewMatch) list.push(index);\n return list;\n }, []);\n }\n function get() {\n let inView = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (inView && inViewCache) return inViewCache;\n if (!inView && notInViewCache) return notInViewCache;\n const slideIndexes = createInViewList(inView);\n if (inView) inViewCache = slideIndexes;\n if (!inView) notInViewCache = slideIndexes;\n return slideIndexes;\n }\n const self = {\n init,\n destroy,\n get\n };\n return self;\n}\nfunction SlideSizes(axis, containerRect, slideRects, slides, readEdgeGap, ownerWindow) {\n const {\n measureSize,\n startEdge,\n endEdge\n } = axis;\n const withEdgeGap = slideRects[0] && readEdgeGap;\n const startGap = measureStartGap();\n const endGap = measureEndGap();\n const slideSizes = slideRects.map(measureSize);\n const slideSizesWithGaps = measureWithGaps();\n function measureStartGap() {\n if (!withEdgeGap) return 0;\n const slideRect = slideRects[0];\n return mathAbs(containerRect[startEdge] - slideRect[startEdge]);\n }\n function measureEndGap() {\n if (!withEdgeGap) return 0;\n const style = ownerWindow.getComputedStyle(arrayLast(slides));\n return parseFloat(style.getPropertyValue(`margin-${endEdge}`));\n }\n function measureWithGaps() {\n return slideRects.map((rect, index, rects) => {\n const isFirst = !index;\n const isLast = arrayIsLastIndex(rects, index);\n if (isFirst) return slideSizes[index] + startGap;\n if (isLast) return slideSizes[index] + endGap;\n return rects[index + 1][startEdge] - rect[startEdge];\n }).map(mathAbs);\n }\n const self = {\n slideSizes,\n slideSizesWithGaps,\n startGap,\n endGap\n };\n return self;\n}\nfunction SlidesToScroll(axis, direction, viewSize, slidesToScroll, loop, containerRect, slideRects, startGap, endGap) {\n const {\n startEdge,\n endEdge\n } = axis;\n const groupByNumber = isNumber(slidesToScroll);\n function byNumber(array, groupSize) {\n return arrayKeys(array).filter(i => i % groupSize === 0).map(i => array.slice(i, i + groupSize));\n }\n function bySize(array) {\n if (!array.length) return [];\n return arrayKeys(array).reduce((groups, rectB) => {\n const rectA = arrayLast(groups) || 0;\n const isFirst = rectA === 0;\n const isLast = rectB === arrayLastIndex(array);\n const edgeA = containerRect[startEdge] - slideRects[rectA][startEdge];\n const edgeB = containerRect[startEdge] - slideRects[rectB][endEdge];\n const gapA = !loop && isFirst ? direction.apply(startGap) : 0;\n const gapB = !loop && isLast ? direction.apply(endGap) : 0;\n const chunkSize = mathAbs(edgeB - gapB - (edgeA + gapA));\n if (chunkSize > viewSize) groups.push(rectB);\n if (isLast) groups.push(array.length);\n return groups;\n }, []).map((currentSize, index, groups) => {\n const previousSize = Math.max(groups[index - 1] || 0);\n return array.slice(previousSize, currentSize);\n });\n }\n function groupSlides(array) {\n return groupByNumber ? byNumber(array, slidesToScroll) : bySize(array);\n }\n const self = {\n groupSlides\n };\n return self;\n}\nfunction Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler, animations) {\n // Options\n const {\n align,\n axis: scrollAxis,\n direction: contentDirection,\n startIndex,\n loop,\n duration,\n dragFree,\n dragThreshold,\n inViewThreshold,\n slidesToScroll: groupSlides,\n skipSnaps,\n containScroll,\n watchResize,\n watchSlides,\n watchDrag\n } = options;\n // Measurements\n const nodeRects = NodeRects();\n const containerRect = nodeRects.measure(container);\n const slideRects = slides.map(nodeRects.measure);\n const direction = Direction(contentDirection);\n const axis = Axis(scrollAxis, contentDirection);\n const viewSize = axis.measureSize(containerRect);\n const percentOfView = PercentOfView(viewSize);\n const alignment = Alignment(align, viewSize);\n const containSnaps = !loop && !!containScroll;\n const readEdgeGap = loop || !!containScroll;\n const {\n slideSizes,\n slideSizesWithGaps,\n startGap,\n endGap\n } = SlideSizes(axis, containerRect, slideRects, slides, readEdgeGap, ownerWindow);\n const slidesToScroll = SlidesToScroll(axis, direction, viewSize, groupSlides, loop, containerRect, slideRects, startGap, endGap);\n const {\n snaps,\n snapsAligned\n } = ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll);\n const contentSize = -arrayLast(snaps) + arrayLast(slideSizesWithGaps);\n const {\n snapsContained,\n scrollContainLimit\n } = ScrollContain(viewSize, contentSize, snapsAligned, containScroll);\n const scrollSnaps = containSnaps ? snapsContained : snapsAligned;\n const {\n limit\n } = ScrollLimit(contentSize, scrollSnaps, loop);\n // Indexes\n const index = Counter(arrayLastIndex(scrollSnaps), startIndex, loop);\n const indexPrevious = index.clone();\n const slideIndexes = arrayKeys(slides);\n // Animation\n const update = _ref2 => {\n let {\n dragHandler,\n scrollBody,\n scrollBounds,\n options: {\n loop\n }\n } = _ref2;\n if (!loop) scrollBounds.constrain(dragHandler.pointerDown());\n scrollBody.seek();\n };\n const render = (_ref3, lagOffset) => {\n let {\n scrollBody,\n translate,\n location,\n offsetLocation,\n scrollLooper,\n slideLooper,\n dragHandler,\n animation,\n eventHandler,\n options: {\n loop\n }\n } = _ref3;\n const velocity = scrollBody.velocity();\n const hasSettled = scrollBody.settled();\n if (hasSettled && !dragHandler.pointerDown()) {\n animation.stop();\n eventHandler.emit('settle');\n }\n if (!hasSettled) eventHandler.emit('scroll');\n offsetLocation.set(location.get() - velocity + velocity * lagOffset);\n if (loop) {\n scrollLooper.loop(scrollBody.direction());\n slideLooper.loop();\n }\n translate.to(offsetLocation.get());\n };\n const animation = {\n start: () => animations.start(engine),\n stop: () => animations.stop(engine),\n update: () => update(engine),\n render: lagOffset => render(engine, lagOffset)\n };\n // Shared\n const friction = 0.68;\n const startLocation = scrollSnaps[index.get()];\n const location = Vector1D(startLocation);\n const offsetLocation = Vector1D(startLocation);\n const target = Vector1D(startLocation);\n const scrollBody = ScrollBody(location, offsetLocation, target, duration, friction);\n const scrollTarget = ScrollTarget(loop, scrollSnaps, contentSize, limit, target);\n const scrollTo = ScrollTo(animation, index, indexPrevious, scrollTarget, target, eventHandler);\n const scrollProgress = ScrollProgress(limit);\n const eventStore = EventStore();\n const slidesInView = SlidesInView(container, slides, eventHandler, inViewThreshold);\n const {\n slideRegistry\n } = SlideRegistry(viewSize, contentSize, containSnaps, containScroll, scrollContainLimit, slidesToScroll, slideIndexes);\n const slideFocus = SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore);\n // Engine\n const engine = {\n ownerDocument,\n ownerWindow,\n eventHandler,\n containerRect,\n slideRects,\n animation,\n axis,\n direction,\n dragHandler: DragHandler(axis, direction, root, ownerDocument, ownerWindow, target, DragTracker(axis, ownerWindow), location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, friction, watchDrag),\n eventStore,\n percentOfView,\n index,\n indexPrevious,\n limit,\n location,\n offsetLocation,\n options,\n resizeHandler: ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects),\n scrollBody,\n scrollBounds: ScrollBounds(limit, location, target, scrollBody, percentOfView),\n scrollLooper: ScrollLooper(contentSize, limit, offsetLocation, [location, offsetLocation, target]),\n scrollProgress,\n scrollSnapList: scrollSnaps.map(scrollProgress.get),\n scrollSnaps,\n scrollTarget,\n scrollTo,\n slideLooper: SlideLooper(axis, direction, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, offsetLocation, slides),\n slideFocus,\n slidesHandler: SlidesHandler(container, eventHandler, watchSlides),\n slidesInView,\n slideIndexes,\n slideRegistry,\n slidesToScroll,\n target,\n translate: Translate(axis, direction, container)\n };\n return engine;\n}\nfunction Animations(ownerWindow) {\n const timeStep = 1000 / 60;\n let engines = [];\n let lastTimeStamp = null;\n let lag = 0;\n let animationFrame = 0;\n function animate(timeStamp) {\n if (!lastTimeStamp) lastTimeStamp = timeStamp;\n const elapsed = timeStamp - lastTimeStamp;\n lastTimeStamp = timeStamp;\n lag += elapsed;\n while (lag >= timeStep) {\n engines.forEach(_ref4 => {\n let {\n animation\n } = _ref4;\n return animation.update();\n });\n lag -= timeStep;\n }\n const lagOffset = mathAbs(lag / timeStep);\n engines.forEach(_ref5 => {\n let {\n animation\n } = _ref5;\n return animation.render(lagOffset);\n });\n if (animationFrame) ownerWindow.requestAnimationFrame(animate);\n }\n function start(engine) {\n if (!engines.includes(engine)) engines.push(engine);\n if (animationFrame) return;\n animationFrame = ownerWindow.requestAnimationFrame(animate);\n }\n function stop(engine) {\n engines = engines.filter(e => e !== engine);\n if (engines.length) return;\n ownerWindow.cancelAnimationFrame(animationFrame);\n lastTimeStamp = null;\n lag = 0;\n animationFrame = 0;\n }\n function reset() {\n lastTimeStamp = null;\n lag = 0;\n }\n const self = {\n start,\n stop,\n reset,\n window: ownerWindow\n };\n return self;\n}\nfunction EventHandler() {\n const listeners = {};\n let api;\n function init(emblaApi) {\n api = emblaApi;\n }\n function getListeners(evt) {\n return listeners[evt] || [];\n }\n function emit(evt) {\n getListeners(evt).forEach(e => e(api, evt));\n return self;\n }\n function on(evt, cb) {\n listeners[evt] = getListeners(evt).concat([cb]);\n return self;\n }\n function off(evt, cb) {\n listeners[evt] = getListeners(evt).filter(e => e !== cb);\n return self;\n }\n const self = {\n init,\n emit,\n off,\n on\n };\n return self;\n}\nconst defaultOptions = {\n align: 'center',\n axis: 'x',\n container: null,\n slides: null,\n containScroll: 'trimSnaps',\n direction: 'ltr',\n slidesToScroll: 1,\n inViewThreshold: 0,\n breakpoints: {},\n dragFree: false,\n dragThreshold: 10,\n loop: false,\n skipSnaps: false,\n duration: 25,\n startIndex: 0,\n active: true,\n watchDrag: true,\n watchResize: true,\n watchSlides: true\n};\nfunction OptionsHandler(ownerWindow) {\n function mergeOptions(optionsA, optionsB) {\n return objectsMergeDeep(optionsA, optionsB || {});\n }\n function optionsAtMedia(options) {\n const optionsAtMedia = options.breakpoints || {};\n const matchedMediaOptions = objectKeys(optionsAtMedia).filter(media => ownerWindow.matchMedia(media).matches).map(media => optionsAtMedia[media]).reduce((a, mediaOption) => mergeOptions(a, mediaOption), {});\n return mergeOptions(options, matchedMediaOptions);\n }\n function optionsMediaQueries(optionsList) {\n return optionsList.map(options => objectKeys(options.breakpoints || {})).reduce((acc, mediaQueries) => acc.concat(mediaQueries), []).map(ownerWindow.matchMedia);\n }\n const self = {\n mergeOptions,\n optionsAtMedia,\n optionsMediaQueries\n };\n return self;\n}\nfunction PluginsHandler(optionsHandler) {\n let activePlugins = [];\n function init(emblaApi, plugins) {\n activePlugins = plugins.filter(_ref6 => {\n let {\n options\n } = _ref6;\n return optionsHandler.optionsAtMedia(options).active !== false;\n });\n activePlugins.forEach(plugin => plugin.init(emblaApi, optionsHandler));\n return plugins.reduce((map, plugin) => Object.assign(map, {\n [plugin.name]: plugin\n }), {});\n }\n function destroy() {\n activePlugins = activePlugins.filter(plugin => plugin.destroy());\n }\n const self = {\n init,\n destroy\n };\n return self;\n}\nfunction EmblaCarousel(root, userOptions, userPlugins) {\n const ownerDocument = root.ownerDocument;\n const ownerWindow = ownerDocument.defaultView;\n const optionsHandler = OptionsHandler(ownerWindow);\n const pluginsHandler = PluginsHandler(optionsHandler);\n const mediaHandlers = EventStore();\n const documentVisibleHandler = EventStore();\n const eventHandler = EventHandler();\n const {\n animationRealms\n } = EmblaCarousel;\n const {\n mergeOptions,\n optionsAtMedia,\n optionsMediaQueries\n } = optionsHandler;\n const {\n on,\n off,\n emit\n } = eventHandler;\n const reInit = reActivate;\n let destroyed = false;\n let engine;\n let optionsBase = mergeOptions(defaultOptions, EmblaCarousel.globalOptions);\n let options = mergeOptions(optionsBase);\n let pluginList = [];\n let pluginApis;\n let container;\n let slides;\n function storeElements() {\n const {\n container: userContainer,\n slides: userSlides\n } = options;\n const customContainer = isString(userContainer) ? root.querySelector(userContainer) : userContainer;\n container = customContainer || root.children[0];\n const customSlides = isString(userSlides) ? container.querySelectorAll(userSlides) : userSlides;\n slides = [].slice.call(customSlides || container.children);\n }\n function createEngine(options, animations) {\n const engine = Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler, animations);\n if (options.loop && !engine.slideLooper.canLoop()) {\n const optionsWithoutLoop = Object.assign({}, options, {\n loop: false\n });\n return createEngine(optionsWithoutLoop, animations);\n }\n return engine;\n }\n function activate(withOptions, withPlugins) {\n if (destroyed) return;\n const animationRealm = animationRealms.find(a => a.window === ownerWindow);\n const animations = animationRealm || Animations(ownerWindow);\n if (!animationRealm) animationRealms.push(animations);\n optionsBase = mergeOptions(optionsBase, withOptions);\n options = optionsAtMedia(optionsBase);\n pluginList = withPlugins || pluginList;\n storeElements();\n engine = createEngine(options, animations);\n optionsMediaQueries([optionsBase, ...pluginList.map(_ref7 => {\n let {\n options\n } = _ref7;\n return options;\n })]).forEach(query => mediaHandlers.add(query, 'change', reActivate));\n if (!options.active) return;\n engine.translate.to(engine.location.get());\n engine.slidesInView.init();\n engine.slideFocus.init();\n engine.eventHandler.init(self);\n engine.resizeHandler.init(self);\n engine.slidesHandler.init(self);\n documentVisibleHandler.add(ownerDocument, 'visibilitychange', () => {\n if (ownerDocument.hidden) animations.reset();\n });\n if (engine.options.loop) engine.slideLooper.loop();\n if (container.offsetParent && slides.length) engine.dragHandler.init(self);\n pluginApis = pluginsHandler.init(self, pluginList);\n }\n function reActivate(withOptions, withPlugins) {\n const startIndex = selectedScrollSnap();\n deActivate();\n activate(mergeOptions({\n startIndex\n }, withOptions), withPlugins);\n eventHandler.emit('reInit');\n }\n function deActivate() {\n engine.dragHandler.destroy();\n engine.animation.stop();\n engine.eventStore.clear();\n engine.translate.clear();\n engine.slideLooper.clear();\n engine.resizeHandler.destroy();\n engine.slidesHandler.destroy();\n engine.slidesInView.destroy();\n pluginsHandler.destroy();\n mediaHandlers.clear();\n documentVisibleHandler.clear();\n }\n function destroy() {\n if (destroyed) return;\n destroyed = true;\n mediaHandlers.clear();\n deActivate();\n eventHandler.emit('destroy');\n }\n function scrollTo(index, jump, direction) {\n if (!options.active || destroyed) return;\n engine.scrollBody.useBaseFriction().useDuration(jump ? 0 : options.duration);\n engine.scrollTo.index(index, direction || 0);\n }\n function scrollNext(jump) {\n const next = engine.index.add(1).get();\n scrollTo(next, jump === true, -1);\n }\n function scrollPrev(jump) {\n const prev = engine.index.add(-1).get();\n scrollTo(prev, jump === true, 1);\n }\n function canScrollNext() {\n const next = engine.index.add(1).get();\n return next !== selectedScrollSnap();\n }\n function canScrollPrev() {\n const prev = engine.index.add(-1).get();\n return prev !== selectedScrollSnap();\n }\n function scrollSnapList() {\n return engine.scrollSnapList;\n }\n function scrollProgress() {\n return engine.scrollProgress.get(engine.location.get());\n }\n function selectedScrollSnap() {\n return engine.index.get();\n }\n function previousScrollSnap() {\n return engine.indexPrevious.get();\n }\n function slidesInView() {\n return engine.slidesInView.get();\n }\n function slidesNotInView() {\n return engine.slidesInView.get(false);\n }\n function plugins() {\n return pluginApis;\n }\n function internalEngine() {\n return engine;\n }\n function rootNode() {\n return root;\n }\n function containerNode() {\n return container;\n }\n function slideNodes() {\n return slides;\n }\n const self = {\n canScrollNext,\n canScrollPrev,\n containerNode,\n internalEngine,\n destroy,\n off,\n on,\n emit,\n plugins,\n previousScrollSnap,\n reInit,\n rootNode,\n scrollNext,\n scrollPrev,\n scrollProgress,\n scrollSnapList,\n scrollTo,\n selectedScrollSnap,\n slideNodes,\n slidesInView,\n slidesNotInView\n };\n activate(userOptions, userPlugins);\n setTimeout(() => eventHandler.emit('init'), 0);\n return self;\n}\nEmblaCarousel.animationRealms = [];\nEmblaCarousel.globalOptions = undefined;\nexport { EmblaCarousel as default };","import { useRef, useState, useCallback, useEffect } from 'react';\nimport { canUseDOM, areOptionsEqual, arePluginsEqual } from 'embla-carousel-reactive-utils';\nimport EmblaCarousel from 'embla-carousel';\nfunction useEmblaCarousel() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let plugins = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n const storedOptions = useRef(options);\n const storedPlugins = useRef(plugins);\n const [emblaApi, setEmblaApi] = useState();\n const [viewport, setViewport] = useState();\n const reInit = useCallback(() => {\n if (emblaApi) emblaApi.reInit(storedOptions.current, storedPlugins.current);\n }, [emblaApi]);\n useEffect(() => {\n if (canUseDOM() && viewport) {\n EmblaCarousel.globalOptions = useEmblaCarousel.globalOptions;\n const newEmblaApi = EmblaCarousel(viewport, storedOptions.current, storedPlugins.current);\n setEmblaApi(newEmblaApi);\n return () => newEmblaApi.destroy();\n } else {\n setEmblaApi(undefined);\n }\n }, [viewport, setEmblaApi]);\n useEffect(() => {\n if (areOptionsEqual(storedOptions.current, options)) return;\n storedOptions.current = options;\n reInit();\n }, [options, reInit]);\n useEffect(() => {\n if (arePluginsEqual(storedPlugins.current, plugins)) return;\n storedPlugins.current = plugins;\n reInit();\n }, [plugins, reInit]);\n return [setViewport, emblaApi];\n}\nuseEmblaCarousel.globalOptions = undefined;\nexport { useEmblaCarousel as default };","import { css } from \"styled-components\";\n\nimport { text } from \"@ui/helpers\";\n\nimport { Size } from \"../Button.types\";\n\nexport const getSize = (size: Size) => css`\n ${size === \"large\" &&\n css`\n --button-padding-h: 24px;\n --button-padding-v: 16px;\n --button-icon-size: 24px;\n\n ${text(\"semibold_18\")}\n `}\n\n ${size === \"medium\" &&\n css`\n --button-padding-h: 18px;\n --button-padding-v: 12px;\n --button-icon-size: 24px;\n\n ${text(\"semibold_18\")}\n `}\n\n ${size === \"small\" &&\n css`\n --button-padding-h: 16px;\n --button-padding-v: 8px;\n --button-icon-size: 20px;\n\n ${text(\"semibold_14\")}\n `}\n`;\n","import { css } from \"styled-components\";\n\nimport { Style } from \"../Button.types\";\n\nconst fill = css`\n --button-color: ${props => props.theme.palette.white};\n --button-border-color: transparent;\n --button-background-color: ${props => props.theme.palette.green500};\n\n &:hover {\n --button-background-color: ${props => props.theme.palette.green600};\n }\n\n &:active {\n --button-background-color: ${props => props.theme.palette.green400};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.green800};\n --button-background-color: ${props => props.theme.palette.green600};\n }\n`;\n\nconst stroke = css`\n --button-color: ${props => props.theme.palette.green500};\n --button-border-color: ${props => props.theme.palette.green500};\n --button-background-color: transparent;\n\n &:hover {\n --button-color: ${props => props.theme.palette.green600};\n --button-border-color: ${props => props.theme.palette.green600};\n --button-background-color: ${props => props.theme.palette.green50};\n }\n\n &:active {\n --button-border-color: ${props => props.theme.palette.green500};\n --button-background-color: ${props => props.theme.palette.green100};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.green800};\n --button-background-color: ${props => props.theme.palette.green50};\n }\n`;\n\nconst text = css`\n --button-color: ${props => props.theme.palette.green500};\n --button-border-color: transparent;\n --button-background-color: transparent;\n\n &:hover {\n --button-color: ${props => props.theme.palette.green600};\n --button-background-color: ${props => props.theme.palette.green50};\n }\n\n &:active {\n --button-background-color: ${props => props.theme.palette.green100};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.green800};\n --button-background-color: ${props => props.theme.palette.green50};\n }\n`;\n\nexport const getGreenVariant = (style: Style) => css`\n &:disabled {\n --button-color: ${props => props.theme.palette.grey300};\n --button-border-color: ${props => props.theme.palette.grey100};\n --button-background-color: ${props => props.theme.palette.grey100};\n }\n\n ${style === \"fill\" && fill}\n\n ${style === \"stroke\" && stroke}\n\n ${style === \"text\" && text}\n`;\n","import { css } from \"styled-components\";\n\nimport { Style } from \"../Button.types\";\n\nconst fill = css`\n --button-color: ${props => props.theme.palette.white};\n --button-border-color: transparent;\n --button-background-color: ${props => props.theme.palette.blue500};\n\n &:hover {\n --button-background-color: ${props => props.theme.palette.blue600};\n }\n\n &:active {\n --button-background-color: ${props => props.theme.palette.blue400};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.blue800};\n --button-background-color: ${props => props.theme.palette.blue600};\n }\n`;\n\nconst stroke = css`\n --button-color: ${props => props.theme.palette.blue500};\n --button-border-color: ${props => props.theme.palette.blue500};\n --button-background-color: transparent;\n\n &:hover {\n --button-color: ${props => props.theme.palette.blue600};\n --button-border-color: ${props => props.theme.palette.blue600};\n --button-background-color: ${props => props.theme.palette.blue20};\n }\n\n &:active {\n --button-background-color: ${props => props.theme.palette.blue50};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.blue800};\n --button-background-color: ${props => props.theme.palette.blue20};\n }\n`;\n\nconst text = css`\n --button-color: ${props => props.theme.palette.blue500};\n --button-border-color: transparent;\n --button-background-color: transparent;\n\n &:hover {\n --button-color: ${props => props.theme.palette.blue600};\n }\n\n &:active {\n --button-background-color: ${props => props.theme.palette.blue50};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.blue800};\n --button-background-color: ${props => props.theme.palette.blue20};\n }\n`;\n\nexport const getBlueVariant = (style: Style) => css`\n &:disabled {\n --button-color: ${props => props.theme.palette.grey300};\n --button-border-color: ${props => props.theme.palette.grey100};\n --button-background-color: ${props => props.theme.palette.grey100};\n }\n\n ${style === \"fill\" && fill}\n\n ${style === \"stroke\" && stroke}\n\n ${style === \"text\" && text}\n`;\n","import { css } from \"styled-components\";\n\nimport { Style } from \"../Button.types\";\n\nconst fill = css`\n --button-color: ${props => props.theme.palette.white};\n --button-border-color: transparent;\n --button-background-color: ${props => props.theme.palette.grey800};\n\n &:hover {\n --button-background-color: ${props => props.theme.palette.grey900};\n }\n\n &:active {\n --button-background-color: ${props => props.theme.palette.grey700};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.grey200};\n --button-background-color: ${props => props.theme.palette.grey900};\n }\n`;\n\nconst stroke = css`\n --button-color: ${props => props.theme.palette.grey800};\n --button-border-color: ${props => props.theme.palette.grey800};\n --button-background-color: transparent;\n\n &:hover {\n --button-color: ${props => props.theme.palette.white};\n --button-border-color: ${props => props.theme.palette.grey900};\n --button-background-color: ${props => props.theme.palette.grey900};\n }\n\n &:active {\n --button-color: ${props => props.theme.palette.grey900};\n --button-background-color: ${props => props.theme.palette.grey100};\n }\n\n &:focus:not(:hover, :active) {\n --button-color: ${props => props.theme.palette.white};\n --button-border-color: ${props => props.theme.palette.grey200};\n --button-background-color: ${props => props.theme.palette.grey900};\n }\n`;\n\nconst text = css`\n --button-color: ${props => props.theme.palette.grey800};\n --button-border-color: transparent;\n --button-background-color: transparent;\n\n &:hover {\n --button-color: ${props => props.theme.palette.grey900};\n }\n\n &:active {\n --button-background-color: ${props => props.theme.palette.grey100};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.grey200};\n --button-background-color: ${props => props.theme.palette.grey20};\n }\n`;\n\nexport const getBlackVariant = (style: Style) => css`\n &:disabled {\n --button-color: ${props => props.theme.palette.grey300};\n --button-border-color: ${props => props.theme.palette.grey100};\n --button-background-color: ${props => props.theme.palette.grey100};\n }\n\n ${style === \"fill\" && fill}\n\n ${style === \"stroke\" && stroke}\n\n ${style === \"text\" && text}\n`;\n","import { css } from \"styled-components\";\n\nimport { Style } from \"../Button.types\";\n\nconst fill = css`\n --button-color: ${props => props.theme.palette.grey800};\n --button-border-color: transparent;\n --button-background-color: ${props => props.theme.palette.white};\n\n &:hover {\n --button-color: ${props => props.theme.palette.grey900};\n --button-background-color: ${props => props.theme.palette.grey20};\n }\n\n &:active {\n --button-background-color: ${props => props.theme.palette.grey100};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.grey200};\n --button-background-color: ${props => props.theme.palette.grey20};\n }\n`;\n\nconst stroke = css`\n --button-color: ${props => props.theme.palette.white};\n --button-border-color: ${props => props.theme.palette.white};\n --button-background-color: transparent;\n\n &:hover {\n --button-color: ${props => props.theme.palette.grey900};\n --button-border-color: ${props => props.theme.palette.grey20};\n --button-background-color: ${props => props.theme.palette.grey20};\n }\n\n &:active {\n --button-color: ${props => props.theme.palette.white};\n --button-border-color: ${props => props.theme.palette.white};\n --button-background-color: ${props => props.theme.palette.grey100};\n }\n\n &:focus:not(:hover, :active) {\n --button-color: ${props => props.theme.palette.white};\n --button-border-color: ${props => props.theme.palette.grey200};\n --button-background-color: ${props => props.theme.palette.grey900};\n }\n`;\n\nconst text = css`\n --button-color: ${props => props.theme.palette.white};\n --button-border-color: transparent;\n --button-background-color: transparent;\n\n &:hover {\n --button-color: ${props => props.theme.palette.grey20};\n }\n\n &:active {\n --button-background-color: ${props => props.theme.palette.grey100};\n }\n\n &:focus:not(:hover, :active) {\n --button-border-color: ${props => props.theme.palette.grey100};\n --button-background-color: ${props => props.theme.palette.grey600};\n }\n`;\n\nexport const getWhiteVariant = (style: Style) => css`\n &:disabled {\n --button-color: ${props => props.theme.palette.grey300};\n --button-border-color: ${props => props.theme.palette.grey100};\n --button-background-color: ${props => props.theme.palette.grey100};\n }\n\n ${style === \"fill\" && fill}\n\n ${style === \"stroke\" && stroke}\n\n ${style === \"text\" && text}\n`;\n","import styled, { css } from \"styled-components\";\n\nimport { transition } from \"@ui/helpers\";\n\nimport { ButtonStyledProps } from \"./Button.types\";\nimport { getSize } from \"./helpers/getSize\";\nimport { getIconVariant } from \"./helpers/getIconVariant\";\nimport { getGreenVariant } from \"./helpers/getGreenVariant\";\nimport { getBlueVariant } from \"./helpers/getBlueVariant\";\nimport { getBlackVariant } from \"./helpers/getBlackVariant\";\nimport { getWhiteVariant } from \"./helpers/getWhiteVariant\";\n\nexport const Button = styled.button`\n --button-border-radius: 4px;\n --button-border-size: 2px;\n\n all: unset;\n\n padding: var(--button-padding-v) var(--button-padding-h);\n color: var(--button-color);\n text-align: center;\n border-radius: var(--button-border-radius);\n background-color: var(--button-background-color);\n box-shadow: inset 0px 0px 0px var(--button-border-size)\n var(--button-border-color);\n transition: ${transition([\"color\", \"background-color\", \"box-shadow\"])};\n cursor: pointer;\n\n &:disabled {\n pointer-events: none;\n }\n\n ${props => getSize(props.$size)}\n ${props => props.$icon && getIconVariant(props.$icon)}\n ${props => props.$type === \"green\" && getGreenVariant(props.$style)}\n ${props => props.$type === \"blue\" && getBlueVariant(props.$style)}\n ${props => props.$type === \"black\" && getBlackVariant(props.$style)}\n ${props => props.$type === \"white\" && getWhiteVariant(props.$style)}\n`;\n\ntype IconWrapperProps = Pick;\n\nexport const IconWrapper = styled.span`\n position: relative;\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n display: block;\n\n ${props =>\n props.$icon === \"right\" &&\n css`\n order: 1;\n `}\n\n ${Button}:has(&) {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: ${props => props.theme.spacing.spacing_8};\n\n ${props =>\n props.$size === \"small\" &&\n css`\n gap: ${props => props.theme.spacing.spacing_4};\n `}\n }\n\n > svg {\n position: absolute;\n inset: 0;\n min-width: 100%;\n min-height: 100%;\n }\n\n * {\n pointer-events: none;\n }\n`;\n","import { css } from \"styled-components\";\n\nimport { Icon } from \"../Button.types\";\n\nexport const getIconVariant = (icon: Icon) => css`\n ${icon === \"alone\" &&\n css`\n --button-padding-h: var(--button-padding-v);\n `}\n`;\n","import React from \"react\";\n\nimport { TestWrapper } from \"@ui/Atoms\";\n\nimport { Props } from \"./Button.types\";\nimport * as Styled from \"./Button.styled\";\n\nexport const Button: React.FC = ({\n children,\n colorType,\n variantStyle,\n size,\n icon,\n iconComponent: Icon,\n testId,\n ...props\n}) => {\n const iconExists = !!Icon && !!icon && icon !== \"none\";\n\n return (\n \n \n {iconExists && (\n \n \n \n )}\n\n {!iconExists && children}\n {iconExists && icon !== \"alone\" && (\n {children}\n )}\n \n \n );\n};\n","/**\n * @author jakubbujakowski\n * @since 2022-3-2\n *\n * IMPORTANT!\n * Smartlook is injected and initialized via GTM.\n * This component will only work on environemnts where GTM has been configured.\n */\nimport React, { useEffect } from \"react\";\nimport { Record } from \"immutable\";\n\nimport { IS_BROWSER } from \"@config/consts\";\n\nimport { IUser } from \"@typings/user\";\n\nimport { useAuth } from \"@hooks/useAuth\";\n\ninterface Props {\n urlWhitelist?: string[]; // when passed, only allow recording on these routes\n}\n\nconst SmartlookClient = (props: Props): null => {\n const { user } = useAuth();\n\n const disableSmartlookEffectDeps = IS_BROWSER ? [window.location.href] : [];\n\n const isUrlSupported = () =>\n props.urlWhitelist === undefined ||\n props.urlWhitelist?.some(url => window.location.href.includes(url));\n\n const handleIdentify = (user: Record) => {\n (window as any)?.smartlook?.(\"identify\", user.get(\"uuid\"), {\n name: `${user.get(\"firstName\")} ${user.get(\"lastName\")}`,\n email: user.get(\"email\"),\n });\n };\n\n const handleAnonymize = () => {\n (window as any)?.smartlook?.(\"anonymize\");\n };\n\n const handleDisable = () => {\n (window as any)?.smartlook?.(\"disable\");\n };\n\n useEffect(() => {\n if (!user) {\n handleAnonymize();\n return;\n }\n\n handleIdentify(user);\n }, [user]);\n\n useEffect(() => {\n if (!isUrlSupported()) {\n handleDisable();\n }\n }, [disableSmartlookEffectDeps]);\n\n return null;\n};\n\nexport { SmartlookClient };\n","import { PATHS, ROUTES } from \"@config/app.routing\";\n\nimport {\n AVAILABLE_LANGS,\n BOOKING_TYPES,\n HERO_TYPES,\n SERVICE_TYPE,\n} from \"@typings/globals\";\nimport { DEFAULT_CLEANING_TYPE } from \"@typings/user\";\n\nexport const resolveBookingRoute = (bookingType: BOOKING_TYPES): ROUTES => {\n switch (bookingType) {\n case BOOKING_TYPES.B2B:\n return ROUTES.B2B_GET_A_QUOTE;\n case BOOKING_TYPES.EOT:\n return ROUTES.END_OF_TENANCY;\n default:\n return ROUTES.BOOKING;\n }\n};\n\nexport const resolveBookingRouteByDefaultCleaningType = (\n defaultCleaningType: DEFAULT_CLEANING_TYPE | null,\n): ROUTES => {\n switch (defaultCleaningType) {\n case DEFAULT_CLEANING_TYPE.B2B:\n return ROUTES.B2B_GET_A_QUOTE;\n case DEFAULT_CLEANING_TYPE.EOT:\n return ROUTES.END_OF_TENANCY;\n default:\n return ROUTES.BOOKING;\n }\n};\n\nconst getServiceRoute = (heroType?: HERO_TYPES | SERVICE_TYPE) => {\n switch (heroType) {\n case SERVICE_TYPE.B2B:\n case HERO_TYPES.OFFICE_CLEANING:\n return ROUTES.B2B_GET_A_QUOTE;\n case SERVICE_TYPE.END_OF_TENANCY:\n case HERO_TYPES.END_OF_TENANCY:\n return ROUTES.END_OF_TENANCY;\n case SERVICE_TYPE.HOME_CLEANING:\n case HERO_TYPES.HOME_CLEANING:\n default:\n return ROUTES.BOOKING;\n }\n};\n\nexport const buildBookingUrl = ({\n language,\n zip,\n serviceType,\n options,\n}: {\n language: AVAILABLE_LANGS;\n zip: string;\n serviceType?: SERVICE_TYPE;\n options?: {\n omitBaseRoute?: boolean;\n };\n}): string => {\n const serviceRoute = getServiceRoute(serviceType);\n const baseRoute = `/${language}${PATHS.CLIENT_APP}#`;\n\n // temporary solution until we fully migrate to postalCode query for all types of booking\n const queries = `?postalCode=${zip}&serviceSelected=✓`;\n\n if (options?.omitBaseRoute) {\n return `${serviceRoute}${queries}`;\n }\n\n return `${baseRoute}${serviceRoute}${queries}`;\n};\n","import * as React from \"react\";\n\nimport { style, MyIconProps } from \"./MyIcons\";\n\nexport const SingleUserHeartUser = (props: MyIconProps): React.ReactElement => {\n return (\n \n \n \n \n \n );\n};\n","import React from \"react\";\n\nimport { IS_BROWSER } from \"@config/consts\";\nimport { UTM_ENDPOINT } from \"@config/endpoints\";\n\nimport { getQueryValue } from \"@services/QueryParamsParser/QueryParamsParser\";\nimport { ASYNC_ACTION_TYPES } from \"@services/FetchFacade\";\n\nimport { asyncActionCreator } from \"../services/AsyncActionCreator\";\n\ninterface UTMData {\n utm_medium?: string;\n utm_source?: string;\n utm_campaign?: string;\n utm_content?: string;\n utm_term?: string;\n}\n\nconst getUTMEndpointUrlWithQuery = (utmData: UTMData): string => {\n const queryValues = Object.entries(utmData).map(\n entry => `${entry[0]}=${entry[1]}`,\n );\n const query = queryValues.join(\"&\");\n\n return `${UTM_ENDPOINT}?${query}`;\n};\n\nconst UTMCatcher = (): null => {\n const putUTMTags = async (utmData: UTMData) => {\n const UTMEndpointUrlWithQuery = getUTMEndpointUrlWithQuery(utmData);\n\n await asyncActionCreator({\n url: UTMEndpointUrlWithQuery,\n action: \"\",\n method: ASYNC_ACTION_TYPES.PUT,\n });\n };\n\n React.useEffect(() => {\n if (!IS_BROWSER) {\n return;\n }\n\n const utmMedium = getQueryValue(window.location.href, \"utm_medium\");\n const utmSource = getQueryValue(window.location.href, \"utm_source\");\n const utmCampaign = getQueryValue(window.location.href, \"utm_campaign\");\n const utmContent = getQueryValue(window.location.href, \"utm_content\");\n const utmTerm = getQueryValue(window.location.href, \"utm_term\");\n\n const utm: UTMData = {\n ...(utmMedium && { utm_medium: utmMedium }),\n ...(utmSource && { utm_source: utmSource }),\n ...(utmCampaign && { utm_campaign: utmCampaign }),\n ...(utmContent && { utm_content: utmContent }),\n ...(utmTerm && { utm_term: utmTerm }),\n };\n\n if (Object.keys(utm).length) {\n putUTMTags(utm);\n }\n }, []);\n\n return null;\n};\n\nexport default UTMCatcher;\n","import i18next from \"@config/i18next\";\n\nimport { AsyncActionCreatorFactory } from \"@services/AsyncActionCreatorFactory\";\nimport { versionRefresherMiddleware } from \"@services/VersionRefresherMiddleware\";\n\nimport { showToast } from \"@containers/Toastify\";\n\nconst middleware =\n process.env.NODE_ENV === \"production\" ? [versionRefresherMiddleware] : [];\n\nconst onFetchErrorNotification = (customMessage?: string) => {\n const message = String(\n customMessage || i18next.t(\"batmaid_pwa_generic.something_went_wrong\"),\n );\n\n showToast(message, {\n type: \"error\",\n toastId: \"generic-www-error\",\n });\n};\n\nconst asyncActionCreator = AsyncActionCreatorFactory({\n onFetchErrorNotification,\n invalidValueText: i18next.t(\"batmaid_pwa_generic.invalid_value\"),\n middleware,\n});\n\nexport { asyncActionCreator };\n"],"names":["isRecord","subject","Object","prototype","toString","call","isObject","Array","isArray","areOptionsEqual","optionsA","optionsB","optionsAKeys","keys","optionsBKeys","length","JSON","stringify","breakpoints","every","key","valueA","valueB","sortAndMapPluginToOptions","plugins","concat","sort","a","b","name","map","plugin","options","isNumber","isString","isBoolean","mathAbs","n","Math","abs","mathSign","sign","deltaAbs","arrayKeys","array","objectKeys","Number","arrayLast","arrayLastIndex","max","arrayIsLastIndex","index","arrayFromNumber","startAt","arguments","undefined","from","_","i","object","objectsMergeDeep","objectA","objectB","reduce","mergedObjects","currentObject","forEach","areObjects","isMouseEvent","evt","ownerWindow","MouseEvent","Limit","min","reachedMin","reachedMax","reachedAny","constrain","removeOffset","ceil","Counter","start","loop","loopEnd","counter","withinLimit","get","clone","self","set","add","EventStore","listeners","node","type","handler","removeListener","passive","addEventListener","removeEventListener","legacyMediaQueryList","addListener","push","clear","filter","remove","DragHandler","axis","direction","rootNode","ownerDocument","target","dragTracker","location","animation","scrollTo","scrollBody","scrollTarget","eventHandler","percentOfView","dragFree","dragThreshold","skipSnaps","baseFriction","watchDrag","cross","crossAxis","focusNodes","nonPassiveEvent","initEvents","dragEvents","goToNextThreshold","measure","snapForceBoost","mouse","touch","freeForceBoost","baseSpeed","isMoving","startScroll","startCross","pointerIsDown","preventScroll","preventClick","isMouse","move","lastScroll","readPoint","lastCross","diffScroll","diffCross","cancelable","up","diff","pointerMove","useFriction","useDuration","apply","preventDefault","targetChanged","byDistance","rawForce","pointerUp","force","next","baseForce","distance","byIndex","allowedForce","forceFactor","factorAbs","speed","friction","emit","click","stopPropagation","init","emblaApi","downIfAllowed","isMouseEvt","button","nodeName","includes","isFocusNode","buttons","pointerDown","addDragEvents","down","destroy","DragTracker","startEvent","lastEvent","readTime","timeStamp","evtAxis","coord","scroll","touches","expired","diffDrag","diffTime","ResizeHandler","container","slides","watchResize","nodeRects","resizeObserver","containerSize","slideSizes","destroyed","readSize","measureSize","ResizeObserver","entries","entry","isContainer","slideIndex","indexOf","lastSize","requestAnimationFrame","reInit","defaultCallback","observe","disconnect","ScrollBounds","limit","pullBackThreshold","edgeOffsetTolerance","frictionLimit","disabled","edge","diffToEdge","diffToTarget","subtract","useBaseFriction","toggleActive","active","ScrollLooper","contentSize","offsetLocation","vectors","shouldLoop","loopDistance","v","ScrollTarget","scrollSnaps","targetVector","minDistance","distances","shortcut","targets","matchingTargets","t","snap","targetSnapDistance","ascDiffsToSnaps","scrollSnap","diffToSnap","d1","d2","findTargetSnap","reachedBound","Vector1D","initialValue","value","normalizeInput","Translate","translate","containerStyle","style","transform","getAttribute","removeAttribute","to","SlideLooper","viewSize","slideSizesWithGaps","snaps","roundingSafety","ascItems","descItems","reverse","loopPoints","gap","findLoopPoints","slidesInGap","startPoints","endPoints","removeSlideSizes","indexes","offset","isEndEdge","slideBounds","end","findSlideBounds","initial","altered","boundEdge","loopPoint","slideLocation","canLoop","_ref","shiftLocation","SlidesHandler","watchSlides","mutationObserver","MutationObserver","mutations","mutation","childList","SlidesInView","threshold","intersectionEntryMap","intersectionObserver","inViewCache","notInViewCache","IntersectionObserver","root","parentElement","slide","inView","slideIndexes","list","parseInt","isIntersecting","createInViewList","SlidesToScroll","slidesToScroll","containerRect","slideRects","startGap","endGap","startEdge","endEdge","groupByNumber","groupSlides","groupSize","slice","byNumber","groups","rectB","rectA","isFirst","isLast","edgeA","edgeB","gapA","currentSize","previousSize","bySize","Engine","animations","align","scrollAxis","contentDirection","startIndex","duration","inViewThreshold","containScroll","offsetTop","offsetLeft","offsetWidth","offsetHeight","top","right","bottom","left","width","height","Direction","nodeRect","Axis","PercentOfView","alignment","predefined","center","Alignment","containSnaps","readEdgeGap","withEdgeGap","slideRect","measureStartGap","getComputedStyle","parseFloat","getPropertyValue","measureEndGap","rect","rects","SlideSizes","snapsAligned","alignments","g","ScrollSnaps","snapsContained","scrollContainLimit","scrollBounds","snapsBounded","snapAligned","scrollBound","toFixed","startSnap","endSnap","lastIndexOf","findScrollContainLimit","measureContained","ScrollContain","ScrollLimit","indexPrevious","engine","stop","update","_ref2","dragHandler","seek","render","lagOffset","_ref3","scrollLooper","slideLooper","velocity","hasSettled","settled","startLocation","baseDuration","bodyVelocity","scrollDirection","scrollDuration","scrollFriction","rawLocation","rawLocationPrevious","directionDiff","useBaseDuration","ScrollBody","indexCurrent","distanceDiff","indexDiff","targetIndex","ScrollTo","scrollProgress","ScrollProgress","eventStore","slidesInView","slideRegistry","groupedSlideIndexes","group","createSlideRegistry","SlideRegistry","slideFocus","lastTabPressTime","registerTabPress","event","code","Date","getTime","addSlideFocusEvent","scrollLeft","findIndex","capture","document","SlideFocus","resizeHandler","scrollSnapList","slidesHandler","defaultOptions","OptionsHandler","mergeOptions","optionsAtMedia","matchedMediaOptions","media","matchMedia","matches","mediaOption","optionsMediaQueries","optionsList","acc","mediaQueries","EmblaCarousel","userOptions","userPlugins","defaultView","optionsHandler","pluginsHandler","activePlugins","_ref6","assign","PluginsHandler","mediaHandlers","documentVisibleHandler","api","getListeners","e","off","cb","on","EventHandler","animationRealms","reActivate","pluginApis","optionsBase","globalOptions","pluginList","createEngine","activate","withOptions","withPlugins","animationRealm","find","window","timeStep","engines","lastTimeStamp","lag","animationFrame","animate","elapsed","_ref4","_ref5","cancelAnimationFrame","reset","Animations","userContainer","userSlides","customContainer","querySelector","children","customSlides","querySelectorAll","storeElements","_ref7","query","hidden","offsetParent","selectedScrollSnap","deActivate","jump","canScrollNext","canScrollPrev","containerNode","internalEngine","previousScrollSnap","scrollNext","scrollPrev","slideNodes","slidesNotInView","setTimeout","useEmblaCarousel","storedOptions","useRef","storedPlugins","setEmblaApi","useState","viewport","setViewport","useCallback","current","useEffect","createElement","newEmblaApi","pluginsA","pluginsB","optionA","arePluginsEqual","fill","css","props","theme","palette","white","green500","green600","green400","green800","stroke","green50","green100","text","blue500","blue600","blue400","blue800","blue20","blue50","grey800","grey900","grey700","grey200","grey100","grey20","grey600","Button","styled","withConfig","displayName","componentId","transition","getSize","size","$size","$icon","icon","$type","$style","grey300","IconWrapper","span","spacing","spacing_8","spacing_4","colorType","variantStyle","iconComponent","Icon","testId","iconExists","React","TestWrapper","Styled","className","SmartlookClient","user","useAuth","disableSmartlookEffectDeps","IS_BROWSER","href","handleAnonymize","_window2","_window2$smartlook","_window","_window$smartlook","smartlook","email","handleIdentify","handleDisable","_window3","_window3$smartlook","_props$urlWhitelist","urlWhitelist","some","url","buildBookingUrl","language","zip","serviceType","serviceRoute","heroType","SERVICE_TYPE","B2B","HERO_TYPES","OFFICE_CLEANING","ROUTES","B2B_GET_A_QUOTE","END_OF_TENANCY","HOME_CLEANING","BOOKING","getServiceRoute","baseRoute","PATHS","CLIENT_APP","queries","omitBaseRoute","SingleUserHeartUser","ref","elementRef","viewBox","xmlns","strokeWidth","strokeLinecap","strokeLinejoin","fillRule","clipRule","d","cx","cy","r","UTMCatcher","putUTMTags","async","UTMEndpointUrlWithQuery","utmData","join","UTM_ENDPOINT","getUTMEndpointUrlWithQuery","asyncActionCreator","action","method","ASYNC_ACTION_TYPES","PUT","utmMedium","getQueryValue","utmSource","utmCampaign","utmContent","utmTerm","utm","utm_medium","utm_source","utm_campaign","utm_content","utm_term","middleware","versionRefresherMiddleware","AsyncActionCreatorFactory","onFetchErrorNotification","customMessage","message","String","i18next","showToast","toastId","invalidValueText"],"sourceRoot":""}