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AAiBD,EAAa9J,EAAO3B,MAAM6M,eAAe,oBACpFlL,EAAOgI,UAAYX,EAAI,EAEvBrH,EAAOmI,WAAahL,EAAI,EACxB6C,EAAOgI,UAAYX,EACnBrH,EAAOmI,WAAahL,GAGtB8B,EAAK2K,MAAQ3K,EAAK9B,EAClB8B,EAAK4K,MAAQ5K,EAAKoI,CACpB,EACAyD,KAAM,SAAcK,GAClB,IAAIC,EAAoB,aAAbD,GAEPC,GAAqB,eAAbD,KACVrP,KAAKoO,MAAQ,IAGXkB,GAAqB,eAAbD,KACVrP,KAAKsO,MAAQ,EAEjB,GAEFxH,EAAeiE,IAAMN,EACrB3D,EAAeyI,UAAY7D,EAC3B5E,EAAe0I,YAAcxE,EAC7BX,KAAc7K,EAAKC,eAAeqH,E","sources":["webpack://tombras/./js/classes/Card.js","webpack://tombras/./js/classes/Carousel.js","webpack://tombras/./js/components/FiftyFiftyCarousel.js","webpack://tombras/./js/components/FullCardSlider.js","webpack://tombras/./node_modules/gsap/ScrollToPlugin.js"],"sourcesContent":["import { DESKTOP_SIZE } from \"../utils\";\nimport gsap from \"gsap\";\nimport { DEFAULT_TIME_SHORT } from \"../animations/config\";\nimport Draggable from \"gsap/Draggable\";\nimport InertiaPlugin from '../vendors/gsap-bonus/InertiaPlugin';\ngsap.registerPlugin(Draggable, InertiaPlugin);\n\n/**\n * Arrows\n * @typedef {{\n * \tprev: HTMLElement,\n * \tnext: HTMLElement,\n * }} Arrows\n */\nclass Cards {\n\tconstructor(el, margin) {\n\t\tthis.el = el;\n\t\tthis.margin = margin;\n\t\tthis.draggable = null;\n\t\tthis.isDragEnabled = false;\n\t\tthis.cardSelector = null;\n\t\tthis.container = null;\n\t}\n\n\t/**\n\t * Converts container into a draggable element based off\n\t * elements matching the selector. Can / will be disabled\n\t * as needed based on scroll sizes\n\t * @param {HTMLElement} container\n\t * @param {string} selector\n\t * @return void\n\t */\n\tmakeDraggable(container, selector = \".card\") {\n\t\t// doing this to make it easier\n\t\tthis.cardSelector = selector;\n\t\tthis.container = container;\n\n\t\t// Added this line because of layout pages sometimes freaking out\n\t\tif (!this.container) return false;\n\t\tconst snapPoints = this.calculateSnapPoints(selector);\n\t\tconst [slider] = Draggable.create(container, {\n\t\t\ttype: \"x\",\n\t\t\tbound: window,\n\t\t\tallowContextMenu: true,\n\t\t\tedgeResistance: 0.9,\n\t\t\tdragClickables: true,\n\t\t\tdragResistance: 0.2,\n\t\t\tthrowResistance: 10000,\n\t\t\tinertia: true,\n\t\t\tsnap: {\n\t\t\t\tx: snapPoints,\n\t\t\t},\n\t\t});\n\n\t\tif (!snapPoints) {\n\t\t\tthis.isDragEnabled = false;\n\t\t\tslider.disable();\n\t\t} else {\n\t\t\tthis.isDragEnabled = true;\n\t\t}\n\t\tthis.draggable = slider;\n\n\t\tconst nextEl = this.container.nextElementSibling;\n\t\tif (nextEl && nextEl.classList.contains(\"mobile-indicator\")) {\n\t\t\tthis.attachIndicatorStatus(nextEl);\n\t\t}\n\n\t\tthis.handleArrows();\n\n\t\tconsole.log(\"DRAG STATUS\", this.isDragEnabled);\n\t\t// setup a kill switch for search page\n\t\tconsole.log(this.container, \"kill draggable setup\");\n\t\tthis.container.addEventListener(\"killDraggable\", e => {\n\t\t\tconsole.log(this.container, \"kill draggable yo\");\n\t\t\tif (this.draggable) this.killDraggable();\n\t\t});\n\t\tthis.container.addEventListener(\"resumeDraggable\", e => {\n\t\t\tconsole.log(this.container, \"resume draggable yo\");\n\t\t\tif (this.draggable) this.resumeDraggable();\n\t\t});\n\t}\n\n\ttoggleDraggable({ status = false } = {}) {\n\t\tconsole.log(status);\n\t\tif (this.draggable) {\n\t\t\tthis.isDragEnabled = status;\n\t\t\tconst dFn = status ? \"enable\" : \"disable\";\n\t\t\tthis.draggable[dFn]();\n\t\t\tconst classFn = status ? \"remove\" : \"add\";\n\t\t\tthis.container.parentNode.classList[classFn](\"no-wrap\");\n\t\t\tif (this.container.closest(\".card-with-arrows\")) {\n\t\t\t\tthis.container\n\t\t\t\t\t.closest(\".card-with-arrows\")\n\t\t\t\t\t.classList[classFn](\"killed\");\n\t\t\t}\n\t\t\tthis.container.style.transform = \"\";\n\n\t\t\tconsole.log(dFn, classFn);\n\t\t}\n\t}\n\n\tkillDraggable() {\n\t\tif (this.draggable) {\n\t\t\tthis.toggleDraggable({ status: false });\n\t\t}\n\t}\n\n\tresumeDraggable() {\n\t\tif (this.draggable && !this.isDragEnabled) {\n\t\t\tthis.toggleDraggable({ status: true });\n\t\t}\n\t}\n\n\t/**\n\t * @return number\n\t */\n\tgetCurrentPosition() {\n\t\tconst { x } = this.draggable;\n\t\tconst snapX = this.draggable.vars.snap.x;\n\t\tif (!(snapX && snapX.findIndex)) {\n\t\t\treturn 0;\n\t\t}\n\t\tconst foundIndex = snapX.findIndex(pt => {\n\t\t\treturn Math.abs(pt) === Math.abs(x);\n\t\t});\n\t\treturn foundIndex;\n\t}\n\n\t/**\n\t *\n\t * @param {HTMLElement} indicatorBar\n\t * @return void\n\t */\n\tattachIndicatorStatus(indicatorBar) {\n\t\tthis.updateIndicatorWidth();\n\t\tthis.draggable.addEventListener(\"throwcomplete\", data => {\n\t\t\tthis.updateIndicatorWidth();\n\t\t});\n\t}\n\n\tupdateIndicatorWidth() {\n\t\tconst nextEl = this.container.nextElementSibling;\n\t\tif (nextEl && nextEl.classList.contains(\"mobile-indicator\")) {\n\t\t\tconst percentageBar = nextEl.querySelector(\".percentage\");\n\t\t\tconst { x } = this.draggable;\n\t\t\tconst snapX = this.draggable.vars.snap.x;\n\t\t\tif (snapX && snapX.findIndex) {\n\t\t\t\tconst foundIndex = snapX.findIndex(pt => pt === x);\n\t\t\t\tpercentageBar.style.width = `${((foundIndex + 1) / snapX.length) *\n\t\t\t\t\t100}%`;\n\t\t\t} else {\n\t\t\t\tpercentageBar.style.width = `0%`;\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t *\n\t * @param {Arrows} arrows\n\t * @param {number} position\n\t * @param {number} numItems\n\t */\n\tarrowsData({ prev, next }, position, numItems) {\n\t\tconsole.log({ prev, next }, position, numItems);\n\t\tif (position <= 0) {\n\t\t\tprev.classList.add(\"hide\");\n\t\t} else {\n\t\t\tprev.classList.remove(\"hide\");\n\t\t}\n\t\tconsole.log(position, numItems, numItems - 1);\n\t\tif (position < numItems - 1) {\n\t\t\tnext.classList.remove(\"hide\");\n\t\t} else {\n\t\t\tnext.classList.add(\"hide\");\n\t\t}\n\t}\n\n\t/**\n\t *\n\t * @param {number} pos\n\t * @return void\n\t */\n\tprogrammaticallyTweenPosition(pos) {\n\t\tgsap.to(this.draggable.target, DEFAULT_TIME_SHORT, {\n\t\t\tx: pos,\n\t\t\tonComplete: () => {\n\t\t\t\tthis.draggable.update();\n\t\t\t\tthis.updateIndicatorWidth();\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * If arrows are present, this will hook up all of their functionality\n\t */\n\thandleArrows() {\n\t\tconst arrows = this.container.closest(\".card-with-arrows\");\n\t\tif (!arrows) return false;\n\t\tconst numItems = this.container.querySelectorAll(this.cardSelector).length;\n\t\tconst prev = arrows.querySelector(\".prev-btn\");\n\t\tconst next = arrows.querySelector(\".next-btn\");\n\n\t\tif (arrows) {\n\t\t\tthis.arrowsData(\n\t\t\t\t{ prev, next },\n\t\t\t\tthis.getCurrentPosition(),\n\t\t\t\tthis.draggable.vars.snap.x.length,\n\t\t\t);\n\t\t\tnext.addEventListener(\"click\", e => {\n\t\t\t\tconst pos = this.getCurrentPosition() + 1;\n\t\t\t\tconst { x } = this.draggable.vars.snap;\n\t\t\t\tconst newPos = x[pos];\n\n\t\t\t\tif (pos < numItems) {\n\t\t\t\t\tthis.programmaticallyTweenPosition(newPos);\n\t\t\t\t\tthis.arrowsData({ prev, next }, pos, x.length);\n\t\t\t\t}\n\t\t\t});\n\t\t\tprev.addEventListener(\"click\", e => {\n\t\t\t\tconst pos = this.getCurrentPosition() - 1;\n\t\t\t\tconst { x } = this.draggable.vars.snap;\n\t\t\t\tconst newPos = x[pos];\n\t\t\t\tif (pos >= 0) {\n\t\t\t\t\tthis.programmaticallyTweenPosition(newPos);\n\t\t\t\t\tthis.arrowsData({ prev, next }, pos, x.length);\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.draggable.addEventListener(\"throwcomplete\", data => {\n\t\t\t\tthis.arrowsData(\n\t\t\t\t\t{ prev, next },\n\t\t\t\t\tthis.getCurrentPosition(),\n\t\t\t\t\tthis.draggable.vars.snap.x.length,\n\t\t\t\t);\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Calculates all the x-axis snap points for scrolling\n\t * @param {string} selector\n\t */\n\tcalculateSnapPoints(selector = \".card, .sleek-card\") {\n\t\tconsole.log(this, selector, this.el);\n\t\tif (!this.el) return [];\n\t\tconst cards = this.el.querySelectorAll(selector);\n\t\tif (!cards.length) return [];\n\n\t\t// get the total width\n\t\tconst computedCardStyle = window.getComputedStyle(\n\t\t\tcards.length > 1 ? cards[1] : cards[0],\n\t\t);\n\t\tconst cardMargin =\n\t\t\tparseInt(computedCardStyle.marginLeft, 10) +\n\t\t\tparseInt(computedCardStyle.marginRight, 10);\n\t\tconsole.log(\n\t\t\t\"CARD MARGIN\",\n\t\t\tparseInt(computedCardStyle.marginRight, 10),\n\t\t\tparseInt(computedCardStyle.marginLeft, 10),\n\t\t\tcardMargin,\n\t\t);\n\t\tlet totalWidth = [...cards].reduce((acc, curr, idx) => {\n\t\t\treturn (acc += curr.offsetWidth + cardMargin);\n\t\t}, 0);\n\n\t\t// compare to see if we need to have this enabled\n\t\tconst containerWidth = Math.min(\n\t\t\tcards[0].parentNode.offsetWidth,\n\t\t\tcards[0].parentNode.parentNode.offsetWidth,\n\t\t);\n\t\tconsole.log(totalWidth, containerWidth);\n\t\tif (totalWidth <= containerWidth) {\n\t\t\tconsole.log(243);\n\t\t\treturn false;\n\t\t}\n\n\t\t// now we're calculating how to move the cards around\n\t\tconst cardCount = cards.length;\n\t\tconst cardSize = cards[0].offsetWidth;\n\t\tconst cardsPerPage =\n\t\t\tMath.floor(containerWidth / (cardSize + cardMargin)) || 1;\n\t\tconst sizeArr = Math.ceil(cardCount / cardsPerPage);\n\n\t\t// in case something is hidden, all of our math just fails\n\t\t// and we don't need this anyways, so disable!\n\t\tif (isNaN(sizeArr)) return false;\n\n\t\tconst snapsArr = Array(sizeArr);\n\t\t// const snapsArr = Array(cardCount);\n\n\t\tlet _width = 0;\n\t\tconst positions = [...snapsArr].map((_, idx) => {\n\t\t\tif (idx === 0) return 0; // force to 0 so we always align on left\n\t\t\tlet cardsInSection = [...cards].slice(\n\t\t\t\tidx * cardsPerPage,\n\t\t\t\tidx * cardsPerPage + cardsPerPage,\n\t\t\t).length;\n\n\t\t\t// console.log(227, cardsPerPage, cardCount);\n\t\t\t_width += cardSize * cardsInSection + cardsInSection * cardMargin;\n\t\t\t// _width += cardSize + cardMargin;\n\t\t\t// console.log(`${idx}: -${_width}`);\n\t\t\treturn -_width;\n\t\t});\n\n\t\tconsole.log(`SNAP POSITIONS:`, positions);\n\t\treturn positions;\n\t}\n\n\t/**\n\t * Wraps calculateSnapPoints and sets the object\n\t * @param {*} selector\n\t */\n\tupdateSnapPoints(selector = \".card\") {\n\t\tconst snapPoints = this.calculateSnapPoints(selector);\n\t\tthis.draggable.vars.snap.x = snapPoints;\n\t\treturn snapPoints;\n\t}\n\n\tdebug() {\n\t\tconsole.log(this);\n\t}\n\n\t/**\n\t * Handles turning cards on / off as required by screen sizes\n\t * @param {string} selector\n\t */\n\trecalculate(selector) {\n\t\tconst snapPoints = this.updateSnapPoints(selector);\n\n\t\t// is drag enabled and now we have no snap points?\n\t\t// is drag disabled and we have snap points\n\t\t// is drag enabled and we're now on desktop but we don't want to do that?\n\t\tif (this.disabledOnDesktop && window.innerWidth >= DESKTOP_SIZE) {\n\t\t\tthis.draggable.disable();\n\t\t\tthis.isDragEnabled = false;\n\t\t} else if (this.isDragEnabled && !snapPoints) {\n\t\t\tthis.draggable.disable();\n\t\t\tthis.isDragEnabled = false;\n\t\t} else if (!this.isDragEnabled && snapPoints) {\n\t\t\tthis.draggable.enable();\n\t\t\tthis.isDragEnabled = true;\n\t\t}\n\n\t\tconst arrows = this.container.closest(\".card-with-arrows\");\n\t\tif (arrows) {\n\t\t\tconst prev = arrows.querySelector(\".prev-btn\");\n\t\t\tconst next = arrows.querySelector(\".next-btn\");\n\n\t\t\tthis.arrowsData(\n\t\t\t\t{ prev, next },\n\t\t\t\tthis.getCurrentPosition(),\n\t\t\t\tthis.draggable.vars.snap.x.length,\n\t\t\t);\n\t\t}\n\t}\n}\n\nexport default Cards;\n","import Cards from \"./Card\";\nimport { DESKTOP_SIZE } from \"../utils\";\nimport gsap from \"gsap\";\nimport ScrollToPlugin from \"gsap/ScrollToPlugin\";\nimport { DEFAULT_TIME } from \"../animations/config\";\n\ngsap.registerPlugin(ScrollToPlugin);\n\nclass Carousel extends Cards {\n\tconstructor(el, margin, disabledOnDesktop) {\n\t\tsuper(el, margin);\n\t\tconsole.log(7, disabledOnDesktop);\n\t\tthis.index = 0;\n\t\tthis.disabledOnDesktop = disabledOnDesktop;\n\t\tthis.outerWrapper = null;\n\t}\n\n\tsetupEvents(outerWrapper = false) {\n\t\tif (outerWrapper) {\n\t\t\tthis.outerWrapper = outerWrapper;\n\t\t\tconst titleListing = outerWrapper.querySelector(\".title-listing\");\n\t\t\tconst indicators = outerWrapper.querySelector(\".carousel-indicators\");\n\n\t\t\tconst clickableEls = [];\n\t\t\tif (titleListing) clickableEls.push(...titleListing.children);\n\t\t\tif (indicators) clickableEls.push(...indicators.children);\n\t\t\t[...clickableEls].forEach(el => {\n\t\t\t\tel.addEventListener(\"click\", this.clickTo.bind(this));\n\t\t\t});\n\t\t}\n\n\t\tthis.draggable.addEventListener(\"throwcomplete\", () => {\n\t\t\tconst snaps = this.draggable.vars.snap.x;\n\t\t\tconst currSpot = snaps.findIndex(x => this.draggable.x === x);\n\t\t\tthis.updateActiveLinks(currSpot);\n\t\t});\n\t}\n\n\tscrollScrollbar(idx) {\n\t\tif (this.outerWrapper) {\n\t\t\tconst titleListing = this.outerWrapper.querySelector(\"ul.title-listing\");\n\t\t\tgsap.to(titleListing, DEFAULT_TIME, {\n\t\t\t\tscrollTo: titleListing.children[idx],\n\t\t\t});\n\t\t}\n\t}\n\n\tupdateActiveLinks(idx) {\n\t\tconst { outerWrapper } = this;\n\t\tthis.index = idx;\n\t\tif (this.outerWrapper) {\n\t\t\tconst titleListing = outerWrapper.querySelector(\".title-listing\");\n\t\t\tconst indicators = outerWrapper.querySelector(\".carousel-indicators\");\n\n\t\t\tconst idxUpdate = (el, elIdx) => {\n\t\t\t\tif (idx !== elIdx) el.classList.remove(\"active\");\n\t\t\t\telse el.classList.add(\"active\");\n\t\t\t};\n\n\t\t\t[...titleListing.children].forEach(idxUpdate);\n\t\t\t[...indicators.children].forEach(idxUpdate);\n\t\t\tthis.scrollScrollbar(idx);\n\t\t}\n\t\tconsole.log(25, \"update active links\");\n\t}\n\n\tclickTo({ currentTarget }) {\n\t\tconst { container } = this;\n\n\t\tconst idx = [...currentTarget.parentNode.children].indexOf(currentTarget);\n\t\tconsole.log(currentTarget, idx);\n\t\tif (container) {\n\t\t\tconsole.log(this.container, this.draggable);\n\t\t\tconst x = this.draggable.vars.snap.x[idx];\n\t\t\tconsole.log(x);\n\t\t\tgsap.to(container, 1, {\n\t\t\t\tx,\n\t\t\t});\n\t\t\tthis.updateActiveLinks(idx);\n\t\t}\n\t}\n\n\tmakeDraggable(container, selector = \".card\", offset = 0) {\n\t\tsuper.makeDraggable(container, selector);\n\t\tif (this.disabledOnDesktop && window.innerWidth >= DESKTOP_SIZE) {\n\t\t\tthis.draggable.disable();\n\t\t\tthis.isDragEnabled = false;\n\t\t}\n\t}\n}\n\nexport default Carousel;\n","import Carousel from \"../classes/Carousel\";\nimport gsap from \"gsap\";\nimport {\n\tDEFAULT_TIME,\n\tSIMPLE_ANIMATION_START,\n\tSIMPLE_ANIMATION_FINISH,\n\tDEFAULT_STAGGER,\n} from \"../animations/config\";\nimport { componentAnimationHandler } from \"../animations/AnimationHandler\";\nimport { windowResizeEvents } from \"../events\";\n\nclass FiftyFiftyCarousel {\n\tconstructor(el, margin, desktopDragDisabled) {\n\t\tthis.el = el;\n\t\tthis.margin = margin;\n\t\tthis.cards = null;\n\t\tthis.init(margin, desktopDragDisabled);\n\n\t\tthis.setupEvents();\n\t\tcomponentAnimationHandler.add(el);\n\n\t\tif (this.cards) {\n\t\t\tconsole.log(\"YO\");\n\t\t\tthis.cards.setupEvents(el);\n\t\t}\n\t}\n\n\tinit(margin, desktopDrag) {\n\t\tconst cardContainer = this.el.querySelector(\".carousel-container-inner\");\n\t\tthis.cards = new Carousel(cardContainer, margin, desktopDrag);\n\t\tthis.cards.makeDraggable(cardContainer, \".carousel-card\");\n\t}\n\n\tsetupEvents() {\n\t\tthis.el.addEventListener(\"inview\", this.animate.bind(this));\n\t\twindowResizeEvents.push(this.recalculate.bind(this));\n\t}\n\tanimate() {\n\t\tconsole.log(\"Animating the carousel\");\n\t\tconst titleListing = this.el.querySelector(\".title-listing\");\n\t\tconst indicators = this.el.querySelector(\".carousel-indicators\");\n\t\tconst carouselCards = this.el.querySelectorAll(\".carousel-card\");\n\t\tconst tl = gsap.timeline();\n\t\ttl.staggerFromTo(\n\t\t\t[...carouselCards].slice(0, 2),\n\t\t\tDEFAULT_TIME,\n\t\t\tSIMPLE_ANIMATION_START,\n\t\t\tSIMPLE_ANIMATION_FINISH,\n\t\t\tDEFAULT_STAGGER * 2,\n\t\t);\n\t\ttl.set([...carouselCards].slice(2, carouselCards.length), { opacity: 1 });\n\t\ttl.staggerFromTo(\n\t\t\ttitleListing.children,\n\t\t\tDEFAULT_TIME,\n\t\t\tSIMPLE_ANIMATION_START,\n\t\t\tSIMPLE_ANIMATION_FINISH,\n\t\t\tDEFAULT_STAGGER,\n\t\t\t\"controls\",\n\t\t);\n\t\ttl.staggerFromTo(\n\t\t\tindicators.children,\n\t\t\tDEFAULT_TIME,\n\t\t\tSIMPLE_ANIMATION_START,\n\t\t\tSIMPLE_ANIMATION_FINISH,\n\t\t\tDEFAULT_STAGGER,\n\t\t\t\"controls\",\n\t\t);\n\t}\n\n\trecalculate() {\n\t\tif (this.cards) {\n\t\t\tthis.cards.recalculate(\".carousel-card\");\n\t\t}\n\t}\n}\n\nexport default FiftyFiftyCarousel;\nexport const instantiatedFiftyFiftyCarousel = [\n\t...document.querySelectorAll(\".fifty-fifty-carousel\"),\n]\n\t.filter(c => !c.classList.contains(\"full-card-slider\"))\n\t.map(el => {\n\t\treturn new FiftyFiftyCarousel(el, 20, true);\n\t});\n","import Carousel from \"../classes/Carousel\";\nimport { debounce } from \"../utils\";\nimport gsap from \"gsap\";\nimport {\n\tDEFAULT_TIME,\n\tSIMPLE_ANIMATION_START,\n\tSIMPLE_ANIMATION_FINISH,\n\tDEFAULT_STAGGER,\n} from \"../animations/config\";\nimport { componentAnimationHandler } from \"../animations/AnimationHandler\";\nimport { windowResizeEvents } from \"../events\";\n\nclass FullCardSlider {\n\tconstructor(el, margin, desktopDragDisabled) {\n\t\tthis.el = el;\n\t\tthis.margin = margin;\n\t\tthis.cards = null;\n\t\tthis.init(margin, desktopDragDisabled);\n\n\t\tthis.setupEvents();\n\t\tcomponentAnimationHandler.add(el);\n\n\t\tif (this.cards) {\n\t\t\tconsole.log(\"YO\");\n\t\t\tthis.cards.setupEvents(el);\n\t\t}\n\t}\n\n\tinit(margin, desktopDrag) {\n\t\tconst cardContainer = this.el.querySelector(\".carousel-container-inner\");\n\t\tthis.cards = new Carousel(cardContainer, margin, desktopDrag);\n\t\tthis.cards.makeDraggable(cardContainer, \".carousel-card\");\n\t}\n\n\tsetupEvents() {\n\t\tthis.el.addEventListener(\"inview\", this.animate.bind(this));\n\t\twindowResizeEvents.push(this.recalculate.bind(this));\n\t}\n\tanimate() {\n\t\tconsole.log(\"Animating the carousel\");\n\t\tconst indicators = this.el.querySelector(\".carousel-indicators\");\n\t\tconst carouselCards = this.el.querySelectorAll(\".carousel-card\");\n\t\tconst tl = gsap.timeline();\n\t\ttl.staggerFromTo(\n\t\t\t[...carouselCards].slice(0, 2),\n\t\t\tDEFAULT_TIME,\n\t\t\tSIMPLE_ANIMATION_START,\n\t\t\tSIMPLE_ANIMATION_FINISH,\n\t\t\tDEFAULT_STAGGER * 2,\n\t\t);\n\t\ttl.set([...carouselCards].slice(2, carouselCards.length), { opacity: 1 });\n\t\ttl.staggerFromTo(\n\t\t\tindicators.children,\n\t\t\tDEFAULT_TIME,\n\t\t\tSIMPLE_ANIMATION_START,\n\t\t\tSIMPLE_ANIMATION_FINISH,\n\t\t\tDEFAULT_STAGGER,\n\t\t\t\"controls\",\n\t\t);\n\t}\n\n\trecalculate() {\n\t\tif (this.cards) {\n\t\t\tthis.cards.recalculate(\".carousel-card\");\n\t\t}\n\t}\n}\n\nexport default FullCardSlider;\nexport const instantiatedFullCardSlider = [\n\t...document.querySelectorAll(\".full-card-slider\"),\n].map(el => {\n\tconsole.log(80, \"AY\");\n\treturn new FullCardSlider(el, 20, true);\n});\n","/*!\n * ScrollToPlugin 3.9.1\n * https://greensock.com\n *\n * @license Copyright 2008-2021, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nvar gsap,\n _coreInitted,\n _window,\n _docEl,\n _body,\n _toArray,\n _config,\n _windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n},\n _getGSAP = function _getGSAP() {\n return gsap || _windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap;\n},\n _isString = function _isString(value) {\n return typeof value === \"string\";\n},\n _isFunction = function _isFunction(value) {\n return typeof value === \"function\";\n},\n _max = function _max(element, axis) {\n var dim = axis === \"x\" ? \"Width\" : \"Height\",\n scroll = \"scroll\" + dim,\n client = \"client\" + dim;\n return element === _window || element === _docEl || element === _body ? Math.max(_docEl[scroll], _body[scroll]) - (_window[\"inner\" + dim] || _docEl[client] || _body[client]) : element[scroll] - element[\"offset\" + dim];\n},\n _buildGetter = function _buildGetter(e, axis) {\n //pass in an element and an axis (\"x\" or \"y\") and it'll return a getter function for the scroll position of that element (like scrollTop or scrollLeft, although if the element is the window, it'll use the pageXOffset/pageYOffset or the documentElement's scrollTop/scrollLeft or document.body's. Basically this streamlines things and makes a very fast getter across browsers.\n var p = \"scroll\" + (axis === \"x\" ? \"Left\" : \"Top\");\n\n if (e === _window) {\n if (e.pageXOffset != null) {\n p = \"page\" + axis.toUpperCase() + \"Offset\";\n } else {\n e = _docEl[p] != null ? _docEl : _body;\n }\n }\n\n return function () {\n return e[p];\n };\n},\n _clean = function _clean(value, index, target, targets) {\n _isFunction(value) && (value = value(index, target, targets));\n\n if (typeof value !== \"object\") {\n return _isString(value) && value !== \"max\" && value.charAt(1) !== \"=\" ? {\n x: value,\n y: value\n } : {\n y: value\n }; //if we don't receive an object as the parameter, assume the user intends \"y\".\n } else if (value.nodeType) {\n return {\n y: value,\n x: value\n };\n } else {\n var result = {},\n p;\n\n for (p in value) {\n result[p] = p !== \"onAutoKill\" && _isFunction(value[p]) ? value[p](index, target, targets) : value[p];\n }\n\n return result;\n }\n},\n _getOffset = function _getOffset(element, container) {\n element = _toArray(element)[0];\n\n if (!element || !element.getBoundingClientRect) {\n return console.warn(\"scrollTo target doesn't exist. Using 0\") || {\n x: 0,\n y: 0\n };\n }\n\n var rect = element.getBoundingClientRect(),\n isRoot = !container || container === _window || container === _body,\n cRect = isRoot ? {\n top: _docEl.clientTop - (_window.pageYOffset || _docEl.scrollTop || _body.scrollTop || 0),\n left: _docEl.clientLeft - (_window.pageXOffset || _docEl.scrollLeft || _body.scrollLeft || 0)\n } : container.getBoundingClientRect(),\n offsets = {\n x: rect.left - cRect.left,\n y: rect.top - cRect.top\n };\n\n if (!isRoot && container) {\n //only add the current scroll position if it's not the window/body.\n offsets.x += _buildGetter(container, \"x\")();\n offsets.y += _buildGetter(container, \"y\")();\n }\n\n return offsets;\n},\n _parseVal = function _parseVal(value, target, axis, currentVal, offset) {\n return !isNaN(value) && typeof value !== \"object\" ? parseFloat(value) - offset : _isString(value) && value.charAt(1) === \"=\" ? parseFloat(value.substr(2)) * (value.charAt(0) === \"-\" ? -1 : 1) + currentVal - offset : value === \"max\" ? _max(target, axis) - offset : Math.min(_max(target, axis), _getOffset(value, target)[axis] - offset);\n},\n _initCore = function _initCore() {\n gsap = _getGSAP();\n\n if (_windowExists() && gsap && document.body) {\n _window = window;\n _body = document.body;\n _docEl = document.documentElement;\n _toArray = gsap.utils.toArray;\n gsap.config({\n autoKillThreshold: 7\n });\n _config = gsap.config();\n _coreInitted = 1;\n }\n};\n\nexport var ScrollToPlugin = {\n version: \"3.9.1\",\n name: \"scrollTo\",\n rawVars: 1,\n register: function register(core) {\n gsap = core;\n\n _initCore();\n },\n init: function init(target, value, tween, index, targets) {\n _coreInitted || _initCore();\n var data = this,\n snapType = gsap.getProperty(target, \"scrollSnapType\");\n data.isWin = target === _window;\n data.target = target;\n data.tween = tween;\n value = _clean(value, index, target, targets);\n data.vars = value;\n data.autoKill = !!value.autoKill;\n data.getX = _buildGetter(target, \"x\");\n data.getY = _buildGetter(target, \"y\");\n data.x = data.xPrev = data.getX();\n data.y = data.yPrev = data.getY();\n\n if (snapType && snapType !== \"none\") {\n // disable scroll snapping to avoid strange behavior\n data.snap = 1;\n data.snapInline = target.style.scrollSnapType;\n target.style.scrollSnapType = \"none\";\n }\n\n if (value.x != null) {\n data.add(data, \"x\", data.x, _parseVal(value.x, target, \"x\", data.x, value.offsetX || 0), index, targets);\n\n data._props.push(\"scrollTo_x\");\n } else {\n data.skipX = 1;\n }\n\n if (value.y != null) {\n data.add(data, \"y\", data.y, _parseVal(value.y, target, \"y\", data.y, value.offsetY || 0), index, targets);\n\n data._props.push(\"scrollTo_y\");\n } else {\n data.skipY = 1;\n }\n },\n render: function render(ratio, data) {\n var pt = data._pt,\n target = data.target,\n tween = data.tween,\n autoKill = data.autoKill,\n xPrev = data.xPrev,\n yPrev = data.yPrev,\n isWin = data.isWin,\n snap = data.snap,\n snapInline = data.snapInline,\n x,\n y,\n yDif,\n xDif,\n threshold;\n\n while (pt) {\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n\n x = isWin || !data.skipX ? data.getX() : xPrev;\n y = isWin || !data.skipY ? data.getY() : yPrev;\n yDif = y - yPrev;\n xDif = x - xPrev;\n threshold = _config.autoKillThreshold;\n\n if (data.x < 0) {\n //can't scroll to a position less than 0! Might happen if someone uses a Back.easeOut or Elastic.easeOut when scrolling back to the top of the page (for example)\n data.x = 0;\n }\n\n if (data.y < 0) {\n data.y = 0;\n }\n\n if (autoKill) {\n //note: iOS has a bug that throws off the scroll by several pixels, so we need to check if it's within 7 pixels of the previous one that we set instead of just looking for an exact match.\n if (!data.skipX && (xDif > threshold || xDif < -threshold) && x < _max(target, \"x\")) {\n data.skipX = 1; //if the user scrolls separately, we should stop tweening!\n }\n\n if (!data.skipY && (yDif > threshold || yDif < -threshold) && y < _max(target, \"y\")) {\n data.skipY = 1; //if the user scrolls separately, we should stop tweening!\n }\n\n if (data.skipX && data.skipY) {\n tween.kill();\n data.vars.onAutoKill && data.vars.onAutoKill.apply(tween, data.vars.onAutoKillParams || []);\n }\n }\n\n if (isWin) {\n _window.scrollTo(!data.skipX ? data.x : x, !data.skipY ? data.y : y);\n } else {\n data.skipY || (target.scrollTop = data.y);\n data.skipX || (target.scrollLeft = data.x);\n }\n\n if (snap && (ratio === 1 || ratio === 0)) {\n y = target.scrollTop;\n x = target.scrollLeft;\n snapInline ? target.style.scrollSnapType = snapInline : target.style.removeProperty(\"scroll-snap-type\");\n target.scrollTop = y + 1; // bug in Safari causes the element to totally reset its scroll position when scroll-snap-type changes, so we need to set it to a slightly different value and then back again to work around this bug.\n\n target.scrollLeft = x + 1;\n target.scrollTop = y;\n target.scrollLeft = x;\n }\n\n data.xPrev = data.x;\n data.yPrev = data.y;\n },\n kill: function kill(property) {\n var both = property === \"scrollTo\";\n\n if (both || property === \"scrollTo_x\") {\n this.skipX = 1;\n }\n\n if (both || property === \"scrollTo_y\") {\n this.skipY = 1;\n }\n }\n};\nScrollToPlugin.max = _max;\nScrollToPlugin.getOffset = _getOffset;\nScrollToPlugin.buildGetter = _buildGetter;\n_getGSAP() && gsap.registerPlugin(ScrollToPlugin);\nexport { ScrollToPlugin as default };"],"names":["gsap","registerPlugin","Draggable","InertiaPlugin","Cards","constructor","el","margin","this","draggable","isDragEnabled","cardSelector","container","makeDraggable","selector","snapPoints","calculateSnapPoints","slider","create","type","bound","window","allowContextMenu","edgeResistance","dragClickables","dragResistance","throwResistance","inertia","snap","x","disable","nextEl","nextElementSibling","classList","contains","attachIndicatorStatus","handleArrows","addEventListener","e","killDraggable","resumeDraggable","toggleDraggable","status","dFn","classFn","parentNode","closest","style","transform","getCurrentPosition","snapX","vars","findIndex","foundIndex","pt","Math","abs","indicatorBar","updateIndicatorWidth","data","percentageBar","querySelector","width","length","arrowsData","prev","next","position","numItems","add","remove","programmaticallyTweenPosition","pos","to","target","DEFAULT_TIME_SHORT","onComplete","update","arrows","querySelectorAll","newPos","cards","computedCardStyle","getComputedStyle","cardMargin","parseInt","marginLeft","marginRight","totalWidth","reduce","acc","curr","idx","offsetWidth","containerWidth","min","cardCount","cardSize","cardsPerPage","floor","sizeArr","ceil","isNaN","snapsArr","Array","_width","positions","map","_","cardsInSection","slice","updateSnapPoints","debug","recalculate","disabledOnDesktop","innerWidth","DESKTOP_SIZE","enable","ScrollToPlugin","Carousel","super","index","outerWrapper","setupEvents","titleListing","indicators","clickableEls","push","children","forEach","clickTo","bind","snaps","currSpot","updateActiveLinks","scrollScrollbar","DEFAULT_TIME","scrollTo","idxUpdate","elIdx","currentTarget","indexOf","offset","FiftyFiftyCarousel","desktopDragDisabled","init","componentAnimationHandler","desktopDrag","cardContainer","animate","windowResizeEvents","carouselCards","tl","timeline","staggerFromTo","SIMPLE_ANIMATION_START","SIMPLE_ANIMATION_FINISH","DEFAULT_STAGGER","set","opacity","instantiatedFiftyFiftyCarousel","document","filter","c","FullCardSlider","instantiatedFullCardSlider","_coreInitted","_window","_docEl","_body","_toArray","_config","_windowExists","_getGSAP","_isString","value","_isFunction","_max","element","axis","dim","scroll","client","max","_buildGetter","p","pageXOffset","toUpperCase","_clean","targets","charAt","y","nodeType","result","_getOffset","getBoundingClientRect","rect","isRoot","cRect","top","clientTop","pageYOffset","scrollTop","left","clientLeft","scrollLeft","offsets","_parseVal","currentVal","parseFloat","substr","_initCore","body","documentElement","utils","toArray","config","autoKillThreshold","version","name","rawVars","register","core","tween","snapType","getProperty","isWin","autoKill","getX","getY","xPrev","yPrev","snapInline","scrollSnapType","offsetX","_props","skipX","offsetY","skipY","render","ratio","yDif","xDif","threshold","_pt","r","d","_next","kill","onAutoKill","apply","onAutoKillParams","removeProperty","property","both","getOffset","buildGetter"],"sourceRoot":""}