{"version":3,"sources":["webpack://sage/./resources/scripts/modules/animations/canvasAnimation.js","webpack://sage/./resources/scripts/modules/animations/enterTransition.js","webpack://sage/./resources/scripts/modules/animations/forkAnimation.js","webpack://sage/./resources/scripts/modules/animations/hide.js","webpack://sage/./resources/scripts/modules/animations/leaveTransition.js","webpack://sage/./resources/scripts/modules/animations/linkAnimation.js","webpack://sage/./resources/scripts/modules/animations/marqueeSlider.js","webpack://sage/./resources/scripts/modules/animations/move-up.js","webpack://sage/./resources/scripts/modules/animations/parallax.js","webpack://sage/./resources/scripts/modules/animations/scaleUp.js","webpack://sage/./resources/scripts/modules/animations/show.js","webpack://sage/./resources/scripts/modules/animations/showContent.js","webpack://sage/./resources/scripts/modules/app.js","webpack://sage/./resources/scripts/modules/btnDesign.js","webpack://sage/./resources/scripts/modules/color.js","webpack://sage/./resources/scripts/modules/contact.js","webpack://sage/./resources/scripts/modules/cursor.js","webpack://sage/./resources/scripts/modules/food-bowl-slider.js","webpack://sage/./resources/scripts/modules/height-fix.js","webpack://sage/./resources/scripts/modules/img-slider-with-text.js","webpack://sage/./resources/scripts/modules/img-with-text-card.js","webpack://sage/./resources/scripts/modules/lazyloading.js","webpack://sage/./resources/scripts/modules/leadspace-home.js","webpack://sage/./resources/scripts/modules/leadspace-with-slider-and-text.js","webpack://sage/./resources/scripts/modules/navbar.js","webpack://sage/./resources/scripts/modules/slideShowWithContent.js","webpack://sage/./resources/scripts/modules/smoother.js","webpack://sage/./resources/scripts/modules/text-with-img.js","webpack://sage/./resources/scripts/modules/video-with-popup.js","webpack://sage/external \"jQuery\""],"names":["canvasAnimation","setTimeout","elem","container","errorImg","canvas","img","ctx","document","window","screen","width","height","drawImg","x","Math","y","requestAnimationFrame","enterTransition","display","top","duration","ease","Power3","gsap","select","fork","forkAnimation","tl","paused","Back","initFork","animation","renderer","loop","autoplay","path","src","introFork","parseInt","setFork","hide","e","autoAlpha","pointerEvents","leaveTransition","onComplete","showContent","hoverAnimation","parent","modifier","footer","footerLinks","hover","el","linkChange","navbar","navLinks","navLogo","termsLink","i","marqueeSlider","main","selectSlider","slidesPerView","centeredSlides","speed","allowTouchMove","delay","moveUp","res","val","scrollTrigger","trigger","end","scrub","parallax","defaults","scaleUp","scale","show","animateShow","logoShow","logo","ScrollTrigger","smootherPause","body","globalFunc","indexFunc","careerFunc","errorFunc","productFunc","aboutFunc","impactFunc","termsFunc","normalizer","heightFix","smoother","colorChange","cursorHover","btnDesign","contact","lazyLoad","introAnimate","leadspaceHome","textWithimg","videoWithPopup","slideShowWithContent","foodBowlSlider","imgSliderWithText","imgWithTextCard","leadspaceWithSliderAndText","textWithImgAndHeading","barba","preventRunning","transitions","enter","afterEnter","to","namespace","once","cursor","navToggle","data","overlayColor","resetTransform","removeVideo","btns","colorFinder","themeColor","clr","overlay","btn","modal","close","event","_smoother__WEBPACK_IMPORTED_MODULE_0__","xPercent","yPercent","pos","mouse","xSet","ySet","dt","video","swiperNext","swiperPrev","sliderArr","productSliderTexts","sliderTexts","resize","swiper","preloadImages","lazy","pagination","clickable","renderBullet","index","on","slideChangeTransitionStart","sliderMove","touchEnd","vh","gap","textGrp","imgGrp","prevBtn","nextBtn","carousel","textGrpSwiper","spaceBetween","effect","imgGrpSwiper","navigation","nextEl","prevEl","init","slideChange","slidePrevTransitionStart","opacity","this","clearProps","slideNextTransitionStart","startVal","endVal","start","lazyImages","Array","lazyVideos","options","root","rootMargin","lazyImageObserver","IntersectionObserver","entries","entry","lazyImage","lazyVideoObserver","videoSource","isDesktop","isTablet","breakPoint","isMobile","reduceMotion","context","force3D","pin","endTrigger","pinSpacing","onEnterBack","rotation","transformOrigin","slider","captions","navBtn","arr","arrIndex","slideShow","temp","setInterval","scroller","smooth","effects","smoothTouch","normalizeScroll","ScrollSmoother","textWithImg","Linear","rotate","videoModal","videoModule","videoBtnLink","videoText","videoModuleLink","loopVideo","source","module","exports"],"mappings":"iTACA,IAyCaA,EAAkB,WAE3BC,YAAW,WA3CM,IACbC,EACAC,EAWJ,QA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mC,CAC/B4C,cAAe,CACXC,QAAS/B,2BAEb0L,OAAQ,SAJZxM,KAKQc,gBALRd,uCAKgE,CAC5D4C,cAAe,CACXC,QAAS/B,wDAEb1B,EAAG,QATPY,a,2HC3DhBJ,yBAEO,IAAMkF,EAAiB,WAC1B,IAAM9E,EAAKJ,gBACL6M,EAAa7N,uBAAnB,gBACMwI,EAAQqF,gBAAd,SAEMC,EAAc9N,uBAApB,UACM+N,EAAeD,gBAArB,oBACME,EAAYF,gBAAlB,OACMG,EAAkBH,gBAAxB,sBAEMI,EAAYlO,uBAAlB,wBAEAiO,4BAA0C,WACtCjO,oEACA6E,YACA,IAAIsJ,EAASnO,uBAAb,UACAmO,MAAaF,UAAbE,KACAA,mBACA3F,iBACAA,SACA0F,aAGJL,iEAA0E,WACtE7N,uEACA6E,YACA2D,UACA0F,YAGJlO,qCAAqC,YAC7B+H,kBAA2B/H,kDAA/B,wBACIA,uEACA6E,YACA2D,UACA0F,aAIRL,mEAA4E,WACxE7N,uEACA6E,YACA2D,UACA0F,YAGJlN,4CAC0B,WAClBI,SAAsB,CAClB4C,cAAe,CACXC,QADW,EAEXgH,MAFW,aAGX/G,IAHW,UAIXC,OAAO,GAEX3D,EAAG,SAPPY,OASiB,CACb4C,cAAe,CACXC,QADW,EAEXgH,MAFW,WAGX/G,IAHW,UAIXC,OAAO,GAEX3D,EAAG,SAhBPY,8BAkBgC,CAC5B4C,cAAe,CACXC,QADW,EAEXgH,MAFW,WAGX/G,IAHW,UAIXC,OAAO,GAEX3D,EAAG,SAzBPY,sBA2BwB,CACpB4C,cAAe,CACXC,QADW,iBAEXgH,MAFW,WAGX/G,IAHW,UAIXC,OAAO,GAEXI,MAAO,SAMV+C,EAAc,WACvB,IACMwE,EADa9L,uBAAnB,gBACoB6N,cAApB,gBACA/B,SAAsBA,EAAtBA,W,kXCjGJsC,EAAOC,QAAUpO,OAAe,S","file":"/scripts/app.js","sourcesContent":["// Creating canvas\nconst createCanvas = () => {\n let elem = document.createElement('canvas');\n let container = document.querySelector('.theme-container');\n elem.classList.add('canvasAnimation');\n container.appendChild(elem); \n}\n\n// Showing image on random position\nconst showAnimation = () => {\n const errorImg = document.querySelector('.error .error__img').src;\n const canvas = document.querySelector('.canvasAnimation');\n const img = new Image();\n const ctx = canvas.getContext('2d');\n let x, y, height, width;\n\n canvas.width = window.innerWidth;\n canvas.height = window.innerHeight;\n\n if (screen.width > 768) {\n width = 91;\n height = 73;\n } else {\n width = 80;\n height = 64;\n }\n \n const drawImg = () => {\n setTimeout(function() {\n // Setting random x and y coordinates for the image.\n x = Math.floor(Math.random() * canvas.width);\n y = Math.floor(Math.random() * canvas.height);\n img.src = errorImg;\n img.onload = () => {\n ctx.drawImage(img, x, y, width, height);\n }\n requestAnimationFrame(drawImg);\n }, 1000);\n } \n drawImg(); \n}\n\nexport const canvasAnimation = () => {\n // Adding initial delay of 1s (Total intital delay becomes 2s due to setInterval of showAnimation())\n setTimeout(() => {\n createCanvas();\n showAnimation();\n }, 1000)\n}\n","import gsap from \"gsap\";\nimport { Power1, Power3 } from \"gsap\";\nexport const enterTransition = () => {\n return gsap.to('.overlay', {\n display: 'block', \n top: '-6.4rem', \n duration: 0.4,\n ease: Power3.in\n });\n}\n","import gsap from \"gsap\";\nimport ScrollTrigger from \"gsap/ScrollTrigger\";\nimport { Back } from \"gsap\";\nimport lottie from \"lottie-web\";\ngsap.registerPlugin(ScrollTrigger);\n\nconst select = document.querySelector('.bottom-bar');\nconst fork = select.querySelector('.bottom-bar__fork');\nconst forkAnimation = fork.querySelector('figure');\nconst tl = gsap.timeline({\n paused: true\n});\n\ntl.to(select, {\n y: '0%',\n duration: 0.3,\n ease: Back.easeOut,\n})\n\nconst lottieFork = () => {\n return lottie.loadAnimation({\n container: forkAnimation,\n renderer: 'svg',\n loop: false,\n autoplay: false,\n path: fork.dataset.src\n });\n}\n\nexport const initFork = () => {\n if (forkAnimation.childNodes.length == 0) {\n let animation = lottieFork();\n gsap.matchMedia().add(\n \"(min-width: 900px)\", () => {\n fork.addEventListener('mouseenter', () => {\n animation.play();\n })\n animation.addEventListener('complete', () => {\n animation.goToAndStop(0);\n })\n }\n )\n };\n}\n\nexport const introFork = () => {\n window.addEventListener('scroll', () => {\n const pageName = document.querySelector('.theme-main').dataset.barbaNamespace;\n if (pageName == 'index') {\n if (window.scrollY >= parseInt(0.8 * window.innerHeight)) {\n tl.play();\n } else {\n tl.reverse();\n }\n }\n })\n}\n\nexport const setFork = () => {\n tl.reverse();\n setTimeout(() => {\n tl.play();\n }, 1500);\n}\n","import gsap from 'gsap';\n\nexport const hide = e => {\n gsap.set(e, {\n autoAlpha: 0,\n pointerEvents: 'none'\n })\n}\n","import gsap from \"gsap\";\nimport { showContent } from \"./showContent\";\n\nexport const leaveTransition = () => {\n gsap.set('.overlay', {\n display: 'none', \n top: '100vh',\n onComplete: () => {\n showContent();\n }\n });\n}\n","const hover = (elem, parent, modifier) => {\n elem.forEach(e => {\n e.addEventListener('mouseenter', () => {\n elem.forEach(el => {\n if (el.classList.contains('active') && e!=el) {\n parent.classList.add(modifier);\n }\n })\n })\n e.addEventListener('mouseout', () => {\n elem.forEach(el => {\n if (el.classList.contains('active') && e!=el) {\n parent.classList.remove(modifier);\n }\n })\n })\n }) \n}\n\nexport const hoverAnimation = () => {\n const footer = document.querySelector('.theme-footer');\n const footerLinks = footer != null ? footer.querySelectorAll('.theme-footer__links li a') : [];\n hover(footerLinks, footer, 'theme-footer--hover');\n}\n\nexport const linkChange = () => {\n const navbar = document.querySelector('.navbar-collapse');\n const navLinks = navbar != null ? navbar.querySelectorAll('.navbar__items li a') : [];\n const navLogo = document.querySelector('.navbar__logo a');\n const termsLink = document.querySelectorAll('.terms-link');\n const footer = document.querySelector('.theme-footer');\n const footerLinks = footer != null ? footer.querySelectorAll('.theme-footer__links li a') : [];\n\n if (navLinks.length != 0) {\n navLinks.forEach(e => {\n e.addEventListener('click', () => {\n navLinks.forEach(el => {\n el.classList.remove('active');\n })\n e.classList.add('active');\n })\n })\n }\n \n if (footerLinks.length != 0 && navLinks.length != 0) {\n footerLinks.forEach((e, i) => {\n e.addEventListener('click', () => {\n navLinks.forEach(el => {\n el.classList.remove('active');\n })\n if (i != 0) {\n navLinks[i-1].classList.add('active');\n }\n })\n })\n }\n\n navLogo.addEventListener('click', () => navLinks.forEach(el => el.classList.remove('active')));\n termsLink.forEach(e => e.addEventListener('click', () => navLinks.forEach(el => el.classList.remove('active'))));\n}\n","import Swiper from \"swiper/bundle\";\n\nexport const marqueeSlider = (main, el) => {\n const select = document.querySelectorAll(main);\n select.forEach( e => {\n const selectSlider = e.querySelector(el);\n var swiper = new Swiper(selectSlider, {\n slidesPerView: 'auto',\n centeredSlides: true,\n loop: true,\n speed: 6000,\n allowTouchMove: false,\n autoplay: {\n delay: 1,\n },\n });\n })\n}\n","import gsap from 'gsap';\nimport ScrollTrigger from 'gsap/ScrollTrigger';\nimport { CSSRulePlugin } from 'gsap/CSSRulePlugin';\nimport {Power1} from 'gsap';\n\n// Register plugins\ngsap.registerPlugin(CSSRulePlugin, ScrollTrigger);\n\nexport const tl = gsap.timeline();\n\nexport const colorchange = () => {\n const btn = document.querySelectorAll('.btn');\n const overlay = document.querySelector('.overlay');\n btn.forEach(e => {\n e.addEventListener('click', () => {\n overlay.style.setProperty('--bg', e.getAttribute('data-color'));\n })\n })\n}\n\nexport const overlayUp = (e) => {\n return tl.to(e, {\n display: 'block', \n top: '-6.4rem', \n duration:.8,\n ease: Power1.easeInOut\n });\n}\n\nexport const hide = () => {\n gsap.set('.overlay', {\n display: 'none', \n top: '100vh',\n })\n gsap.set('.theme-content', {\n y: '100vh'\n })\n}\n\nexport const moveUp = (e, res) => {\n let val;\n res ? val = 900 : val = 0;\n gsap.matchMedia().add(\n `(min-width: ${val}px)`, () => {\n tl.from(e, {\n y: '10rem',\n scrollTrigger: {\n trigger: e,\n end: 'top 50%',\n scrub: true\n }\n })\n },\n )\n}","import gsap from \"gsap\";\n\nexport const parallax = (e) => {\n gsap.matchMedia().add(\n \"(min-width: 900px)\", () => {\n const tl = gsap.timeline({\n defaults: {\n duration: 0.6,\n delay: 0.2\n }\n });\n switch(e) {\n case 'terms':\n return tl.from('.post__content', {\n y: '100rem'\n });\n case 'product':\n case 'impact':\n return tl.from('.leadspace-with-text-and-img__img', {\n y: '100rem'\n });\n case 'about':\n return tl.from('.leadspace-with-slider-and-text__swiper', {\n y: '100rem'\n });\n }\n }\n )\n}","import gsap from \"gsap\";\nimport ScrollTrigger from \"gsap/ScrollTrigger\";\n\ngsap.registerPlugin(ScrollTrigger);\n\nexport const scaleUp = (main, el) => {\n gsap.matchMedia().add(\n \"(min-width: 900px)\", () => {\n const tl = gsap.timeline();\n const select = document.querySelectorAll(main);\n select.forEach( e => {\n tl.from(e.querySelector(el), {\n scale: 0.9,\n y: '5rem',\n scrollTrigger: {\n trigger: e.querySelector(el),\n end: 'top 50%',\n scrub: true\n }\n })\n })\n }\n )\n}\n","import gsap from 'gsap';\n\nexport const show = e => {\n gsap.set(e, {\n autoAlpha: 1,\n pointerEvents: 'auto',\n })\n}\n\nexport const animateShow = e => {\n gsap.to(e, {\n autoAlpha: 1,\n pointerEvents: 'auto',\n duration: 0.3\n })\n}\n\nexport const logoShow = e => {\n if (e == 'index' && window.scrollY >= window.innerHeight ) {\n const tl = gsap.timeline();\n const logo = document.querySelector('.navbar__intro-logo');\n\n tl\n .to('.navbar__logo', {\n autoAlpha: 1,\n duration: 0.1,\n })\n .to(logo, {\n autoAlpha: 0,\n duration: 0.1,\n delay: 0.1\n })\n }\n}\n","import gsap from \"gsap\";\nimport ScrollTrigger from \"gsap/ScrollTrigger\";\nimport { Power3 } from \"gsap\";\nimport { smootherPause } from \"../smoother\";\n\ngsap.registerPlugin(ScrollTrigger);\n\nexport const showContent = e => {\n let tl = gsap.timeline();\n tl.to('.theme-container', {\n y: 0,\n delay: 0.4,\n duration: .4,\n ease: Power3.in\n }).from('.theme-footer', {\n y: '100vh',\n duration: .4,\n ease: Power3.in,\n onComplete: () => {\n ScrollTrigger.refresh();\n smootherPause(false);\n }\n }, '<')\n}\n","// Barba\nimport barba from '@barba/core';\n\n//Imports\nimport { normalizer, smoother, smootherPause } from './smoother';\nimport { navToggle } from './navbar';\nimport { colorChange, overlayColor } from './color';\nimport { enterTransition } from './animations/enterTransition';\nimport { leaveTransition } from './animations/leaveTransition';\nimport { showContent } from './animations/showContent';\nimport { hoverAnimation, linkChange } from './animations/linkAnimation';\nimport { canvasAnimation } from './animations/canvasAnimation';\nimport { cursor, cursorHover } from './cursor';\nimport { textWithimg, textWithImgAndHeading } from './text-with-img';\nimport { btnDesign } from './btnDesign';\nimport { removeVideo, videoWithPopup } from './video-with-popup';\nimport { slideShowWithContent } from './slideShowWithContent';\nimport { introAnimate, leadspaceHome, resetTransform } from './leadspace-home';\nimport { animateShow, logoShow, show } from \"./animations/show\";\nimport { contact } from './contact';\nimport { foodBowlSlider } from './food-bowl-slider';\nimport { parallax } from './animations/parallax';\nimport { heightFix } from './height-fix';\nimport { imgSliderWithText } from './img-slider-with-text';\nimport { imgWithTextCard } from './img-with-text-card';\nimport { scaleUp } from './animations/scaleUp';\nimport { leadspaceWithSliderAndText } from './leadspace-with-slider-and-text';\nimport { marqueeSlider } from './animations/marqueeSlider';\nimport { moveUp } from './animations/move-up';\nimport { introFork, initFork, setFork } from './animations/forkAnimation';\nimport { hide } from './animations/hide';\nimport { lazyLoad } from './lazyloading';\n\nconst barbaInit = () => {\n const body = document.querySelector('body');\n\n const globalFunc = () => {\n normalizer(true);\n heightFix();\n smoother();\n colorChange();\n hoverAnimation();\n linkChange();\n cursorHover();\n btnDesign();\n contact();\n initFork();\n lazyLoad();\n }\n\n const indexFunc = () => {\n introAnimate();\n leadspaceHome();\n textWithimg();\n videoWithPopup();\n slideShowWithContent(document.querySelectorAll('.slide-show-with-content figure'));\n }\n\n const careerFunc = () => {\n slideShowWithContent(document.querySelectorAll('.slide-show-with-content figure'));\n }\n\n const errorFunc = () => {\n canvasAnimation();\n }\n\n const productFunc = () => {\n parallax('product');\n textWithimg();\n foodBowlSlider();\n imgSliderWithText();\n imgWithTextCard();\n scaleUp('.text-with-large-img', '.text-with-large-img__figure');\n }\n\n const aboutFunc = () => {\n parallax('about');\n leadspaceWithSliderAndText();\n imgSliderWithText();\n marqueeSlider('.marquee-img-slider-with-heading', '.marquee-img-slider-with-heading__swiper');\n textWithImgAndHeading();\n }\n\n const impactFunc = () => {\n parallax('impact');\n imgWithTextCard();\n moveUp('.text-with-stat-and-img__left-content', true);\n scaleUp('.text-with-stat-and-img', '.text-with-stat-and-img__figure');\n }\n\n const termsFunc = () => {\n parallax('terms');\n }\n\n barba.init({\n preventRunning: true,\n transitions: [\n {\n enter: () => enterTransition(),\n afterEnter: () => leaveTransition(),\n },\n {\n to: {\n namespace: 'index'\n },\n once: () => {\n window.cleanup = indexFunc();\n }\n },\n {\n to: {\n namespace: 'about'\n },\n once: () => {\n window.cleanup = aboutFunc();\n }\n },\n {\n to: {\n namespace: 'careers'\n },\n once: () => {\n window.cleanup = careerFunc();\n }\n },\n {\n to: {\n namespace: 'error'\n },\n once: () => {\n window.cleanup = errorFunc();\n }\n },\n {\n to: {\n namespace: 'product'\n },\n once: () => {\n window.cleanup = productFunc();\n }\n },\n {\n to: {\n namespace: 'impact'\n },\n once: () => {\n window.cleanup = impactFunc();\n }\n },\n\n {\n to: {\n namespace: 'terms'\n },\n once: () => {\n window.cleanup = termsFunc();\n }\n }\n ]\n })\n\n barba.hooks.once((data) => {\n globalFunc();\n cursor();\n navToggle();\n data.next.namespace != 'index' ? showContent() : '';\n data.next.namespace == 'index' ? introFork() : setFork();\n data.next.namespace == 'careers' || data.next.namespace == 'error' ? hide('.bottom-bar') : show('.bottom-bar');\n })\n\n barba.hooks.beforeEnter(() => {\n smootherPause(true)\n })\n\n barba.hooks.enter(data => {\n overlayColor();\n logoShow(data.current.namespace);\n data.next.namespace != 'index' ? setFork() : '';\n data.next.namespace == 'careers' ? hide('.bottom-bar') : show('.bottom-bar');\n })\n\n barba.hooks.afterEnter(data => {\n body.classList.remove('navbar__offcanvas--active');\n body.classList.remove('contact-modal--active');\n window.scrollTo(0,0);\n data.next.namespace == 'index' ? resetTransform() : '';\n })\n\n barba.hooks.after((data) => {\n globalFunc();\n removeVideo();\n data.next.namespace == 'index' ? window.cleanup = indexFunc() : '';\n data.next.namespace == 'careers' ? window.cleanup = careerFunc() : '';\n data.next.namespace == 'about' ? window.cleanup = aboutFunc() : '';\n data.next.namespace == 'product' ? window.cleanup = productFunc() : '';\n data.next.namespace == 'impact' ? window.cleanup = impactFunc() : '';\n data.next.namespace == 'error' ? window.cleanup = errorFunc() : '';\n data.next.namespace == 'terms' ? window.cleanup = termsFunc() : '';\n data.next.namespace != 'index' ? animateShow('.navbar__logo') : '';\n })\n}\n\nconst init = () => {\n barbaInit();\n}\n\ninit();\n","export const btnDesign = () => {\n const btns = document.querySelectorAll('.btn');\n\n // Cloning the btn text for animation.\n btns.forEach(e => {\n let btnTextLength = e.querySelectorAll('.btn__text').length;\n let i = 0;\n if (btnTextLength < 2){\n while (i < 2) {\n e.appendChild(e.querySelector('.btn__text').cloneNode(true));\n i++;\n }\n }\n });\n}","// Getting the theme color based on data-attr.\nexport const colorFinder = (e) => {\n switch(e.dataset.theme) {\n case 'red':\n return 'red';\n\n case 'red-inverted':\n return 'red-inverted';\n\n case 'eggplant':\n return 'eggplant';\n\n case 'eggplant-inverted':\n return 'eggplant-inverted';\n\n case 'coolDijon':\n return 'coolDijon';\n\n case 'coolDijon-inverted':\n return 'coolDijon-inverted';\n\n case 'parsnip':\n return 'parsnip';\n\n case 'parsnip-inverted':\n return 'parsnip-inverted';\n }\n}\n\n// Adding the theme color.\nexport const colorChange = () => {\n const themeColor = document.querySelector('.theme-color');\n let clr = colorFinder(document.querySelector('.theme-main'));\n themeColor.className = '';\n themeColor.classList.add(`theme-color`);\n themeColor.classList.add(`theme-color--${clr}`);\n}\n\n// Identifying the next page's theme and changing the overlay's color.\nexport const overlayColor = () => {\n // Selecting the next page's theme-main.\n let main = document.querySelector('.theme-main:nth-child(2)');\n let overlay = document.querySelector('.overlay');\n\n // Changing background color of overlay same to the next page's backgruond.\n let clr = colorFinder(main);\n overlay.className = '';\n overlay.classList.add(`overlay`);\n overlay.classList.add(`theme-color`);\n overlay.classList.add(`theme-color--${clr}`);\n}","import { normalizer } from \"./smoother\";\nimport gsap from \"gsap\";\n\nexport const contact = () => {\n const btn = document.querySelectorAll('.btn__contact');\n const body = document.querySelector('body');\n const modal = document.querySelector('.contact-modal');\n const overlay = modal.querySelector('.contact-modal__overlay-btn');\n const close = modal.querySelector('.contact-modal__close');\n const cursor = document.querySelector('.cursor');\n\n btn.forEach(e => {\n e.addEventListener('click', () => {\n gsap.set(modal, {\n display: 'flex',\n onComplete: () => {\n setTimeout(() => {\n body.classList.add('contact-modal-active');\n body.classList.add('overflow-hidden');\n normalizer(false);\n document.querySelector('.wpcf7-form')?.classList.remove('d-none');\n }, 1)\n }\n })\n })\n })\n \n document.addEventListener('keydown', function(event) {\n if (event.key === 'Escape' && body.classList.contains('contact-modal-active')) {\n body.classList.remove('contact-modal-active');\n body.classList.remove('overflow-hidden');\n (0,_smoother__WEBPACK_IMPORTED_MODULE_0__.normalizer)(true);\n cursor.classList.remove('cursor--color-invert');\n }\n });\n\n overlay.addEventListener('click', () => {\n body.classList.remove('contact-modal-active');\n body.classList.remove('overflow-hidden');\n normalizer(true);\n cursor.classList.remove('cursor--color-invert');\n })\n\n close.addEventListener('click', () => {\n body.classList.remove('contact-modal-active');\n body.classList.remove('overflow-hidden');\n normalizer(true);\n cursor.classList.remove('cursor--color-invert');\n })\n if( document.querySelector('.btn__contact') ){\n document.querySelector('.btn__contact').addEventListener('click',() => {\n document.querySelector('.success-message').classList.add('d-none');\n });\n }\n document.getElementById(\"contact_email_address\") != null ? document.getElementById(\"contact_email_address\").setAttribute('autocomplete','off') : '';\n document.getElementById(\"contact_full_name\") != null ? document.getElementById(\"contact_full_name\").setAttribute('autocomplete','off') : '';\n document.addEventListener('wpcf7submit', e => {\n if (e.detail.apiResponse.status === \"mail_sent\") {\n document.querySelector('.wpcf7-form').classList.add('d-none');\n document.querySelector('.success-message').classList.remove('d-none');\n }\n }, false);\n}","import gsap from \"gsap\";\n\nexport const cursor = () => {\n gsap.matchMedia().add(\n \"(min-width: 900px)\", () => {\n gsap.set(\".cursor\", {xPercent: -50, yPercent: -50});\n\n const cursor = document.querySelector(\".cursor\");\n const pos = { x: window.innerWidth / 2, y: window.innerHeight / 2 };\n const mouse = { x: pos.x, y: pos.y };\n const speed = 0.15;\n \n const xSet = gsap.quickSetter(cursor, \"x\", \"px\");\n const ySet = gsap.quickSetter(cursor, \"y\", \"px\");\n \n window.addEventListener(\"mousemove\", e => { \n mouse.x = e.x;\n mouse.y = e.y; \n });\n \n gsap.ticker.add(() => {\n \n // adjust speed for higher refresh monitors\n const dt = 1.0 - Math.pow(1.0 - speed, gsap.ticker.deltaRatio()); \n \n pos.x += (mouse.x - pos.x) * dt;\n pos.y += (mouse.y - pos.y) * dt;\n xSet(pos.x);\n ySet(pos.y);\n });\n },\n )\n}\n\nexport const cursorHover = () => {\n const video = document.querySelectorAll('.video__module-btn');\n const contactOverlay = document.querySelector('.contact-modal__row');\n const footer = document.querySelector('.theme-footer');\n const cursor = document.querySelector('.cursor');\n const swiperNext = document.querySelectorAll('.swiper-button--next');\n const swiperPrev = document.querySelectorAll('.swiper-button--prev');\n\n // contactOverlay.addEventListener('mouseenter', () => {\n // cursor.classList.add('cursor--color-invert');\n // })\n\n // contactOverlay.addEventListener('mouseleave', () => {\n // cursor.classList.remove('cursor--color-invert');\n // })\n\n swiperNext.forEach(e => {\n e.addEventListener('mouseover', () => {\n cursor.classList.add('cursor--next');\n cursor.classList.add('cursor--img');\n })\n e.addEventListener('mouseout', () => {\n cursor.classList.remove('cursor--next');\n cursor.classList.remove('cursor--img');\n })\n })\n\n swiperPrev.forEach(e => {\n e.addEventListener('mouseover', () => {\n cursor.classList.add('cursor--prev');\n cursor.classList.add('cursor--img');\n })\n e.addEventListener('mouseout', () => {\n cursor.classList.remove('cursor--prev');\n cursor.classList.remove('cursor--img');\n })\n })\n\n video.forEach(e => {\n e.addEventListener('mouseenter', () => {\n cursor.classList.add('cursor--video');\n cursor.classList.add('cursor--img');\n })\n e.addEventListener('mouseleave', () => {\n cursor.classList.remove('cursor--video');\n cursor.classList.remove('cursor--img');\n })\n })\n\n // footer?.addEventListener('mouseenter', () => {\n // !footer.classList.contains('theme-footer--no-links') ? cursor.classList.add('cursor--color-invert') : '';\n // })\n\n // if (!!footer) { \n // footer.addEventListener('mouseleave', () => {\n // !footer.classList.contains('theme-footer--no-links') ? cursor.classList.remove('cursor--color-invert') : '';\n // })\n // }\n}","import Swiper from 'swiper/bundle';\nimport { smootherPause } from './smoother';\n\nexport const foodBowlSlider = () => {\n const select = document.querySelectorAll('.food-bowl-slider');\n select.forEach(e => {\n let sliderArr = [];\n const productSliderTexts = e.querySelector('.food-bowl-slider__texts');\n const sliderTexts = productSliderTexts.querySelectorAll('.food-bowl-slider__texts > *');\n \n const resize = () => {\n sliderArr = [];\n sliderTexts.forEach(e => {\n sliderArr.push(e.clientHeight);\n })\n\n productSliderTexts.style.height = `${Math.max.apply(null, sliderArr)/10}rem`;\n }\n \n var swiper = new Swiper(e.querySelector(\".food-bowl-slider__swiper\"), {\n slidesPerView: 'auto',\n centeredSlides: true,\n loop: true,\n preloadImages: false,\n lazy: true,\n pagination: {\n el: e.querySelector(\".food-bowl-slider__swiper-pagination.swiper-pagination\"),\n clickable: true,\n renderBullet: function (index, className) {\n return `

${index + 1}

`;\n },\n },\n on: {\n slideChangeTransitionStart: () => {\n sliderTexts.forEach(e => e.classList.remove('active'));\n setTimeout(() => {\n sliderTexts[swiper.realIndex].classList.add('active');\n }, 300)\n },\n sliderMove: () => {\n smootherPause(true);\n },\n touchEnd: () => {\n smootherPause(false);\n }\n }\n });\n\n sliderTexts.forEach(e => {\n sliderArr.push(e.clientHeight);\n })\n \n resize();\n window.addEventListener('resize', ()=> {\n resize();\n })\n })\n}\n","export const heightFix = () => {\n let vh = window.innerHeight * 0.01;\n document.documentElement.style.setProperty('--vh', `${vh}px`);\n \n window.addEventListener('orientationchange', function() {\n let vh = window.innerHeight * 0.01;\n document.documentElement.style.setProperty('--vh', `${vh}px`);\n });\n}\n","import gsap from \"gsap\";\nimport ScrollTrigger from \"gsap/ScrollTrigger\";\n\nimport Swiper from 'swiper/bundle';\nimport { smootherPause } from \"./smoother\";\n\ngsap.registerPlugin(ScrollTrigger);\n\nexport const imgSliderWithText = () => {\n const select = document.querySelectorAll('.img-slider-with-text');\n select.forEach( e => {\n let gap;\n e.classList.contains('img-slider-with-text--img-overflow') ? gap = 30 : gap = 1;\n const textGrp = e.querySelector('.img-slider-with-text__text-group');\n const imgGrp = e.querySelector('.img-slider-with-text__img-slider');\n const prevBtn = e.querySelector('.swiper-button--prev');\n const nextBtn = e.querySelector('.swiper-button--next');\n const carousel = e.querySelector(\".img-slider-with-text__swiper-pagination.swiper-pagination\");\n \n let textGrpSwiper = new Swiper(textGrp, {\n spaceBetween: 30,\n speed: 300,\n effect: 'fade',\n allowTouchMove: false\n })\n\n let imgGrpSwiper = new Swiper(imgGrp, {\n spaceBetween: gap,\n speed: 600,\n preloadImages: false,\n lazy: true,\n navigation: {\n nextEl: nextBtn,\n prevEl: prevBtn,\n },\n pagination: {\n el: carousel,\n clickable: true,\n },\n on : {\n init: () => {\n prevBtn.disabled = false;\n prevBtn.classList.add('pe-none');\n },\n slideChange: () => {\n if (imgGrpSwiper.activeIndex == 0) {\n prevBtn.disabled = false;\n prevBtn.classList.add('pe-none');\n } else if ( imgGrpSwiper.activeIndex == imgGrpSwiper.slides.length - 1 ) {\n nextBtn.disabled = false;\n nextBtn.classList.add('pe-none');\n } else {\n prevBtn.classList.remove('pe-none');\n nextBtn.classList.remove('pe-none');\n }\n },\n slidePrevTransitionStart: () => {\n gsap.fromTo(textGrpSwiper.slides[textGrpSwiper.activeIndex].querySelector('*'), \n {\n y: 0,\n opacity: 1\n },\n {\n y: '8rem',\n opacity: 0,\n duration: .2,\n onComplete: () => {\n textGrpSwiper.slidePrev();\n gsap.fromTo(textGrpSwiper.slides[textGrpSwiper.activeIndex].querySelector('*'), \n {\n y: '8rem',\n opacity: 0\n },\n {\n y: 0,\n opacity: 1,\n duration: .2,\n onComplete: function() {\n gsap.set(this.targets(), { clearProps: \"all\" }); \n }\n }\n ) \n }\n })\n },\n slideNextTransitionStart: () => {\n gsap.fromTo(textGrpSwiper.slides[textGrpSwiper.activeIndex].querySelector('*'), \n {\n y: 0\n },\n {\n y: '8rem',\n opacity: 0,\n duration: .2,\n onComplete: () => {\n textGrpSwiper.slideNext(); \n gsap.fromTo(textGrpSwiper.slides[textGrpSwiper.activeIndex].querySelector('*'), \n {\n y: '8rem',\n opacity: 0\n },\n {\n y: 0,\n opacity: 1,\n duration: .2,\n onComplete: function() {\n gsap.set(this.targets(), { clearProps: \"all\" }); \n }\n }\n )\n }\n }\n )\n },\n sliderMove: () => {\n smootherPause(true);\n },\n touchEnd: () => {\n smootherPause(false);\n }\n }\n })\n })\n}","import gsap from \"gsap\";\nimport ScrollTrigger from \"gsap/ScrollTrigger\";\n\ngsap.registerPlugin(ScrollTrigger);\n\nexport const imgWithTextCard = () => {\n const select = document.querySelectorAll('.img-card-group');\n const tl = gsap.timeline();\n\n gsap.matchMedia().add(\n \"(min-width: 900px)\", () => {\n select.forEach( e => {\n const main = e.querySelectorAll('.img-with-text-card');\n main.forEach( (el, i) => {\n let val, startVal, endVal;\n \n \n val = (i + 0.8) * 120;\n startVal = 'top bottom';\n endVal = 'bottom +=30%'; \n !e.classList.contains('img-card-group--number') ?\n tl.from(el, {\n y: val,\n scrollTrigger: {\n trigger: el.querySelector('.img-with-text-card__img'),\n start: startVal,\n end: endVal,\n scrub: true\n }\n }) : \n tl.from(el, {\n y: val,\n scrollTrigger: {\n trigger: el.querySelector('.img-with-text-card__img'),\n start: startVal,\n end: endVal,\n scrub: true\n }\n })\n .from(el.querySelector('.img-with-text-card__img'), {\n '--move': '100%',\n scrollTrigger: {\n trigger: el.querySelector('.img-with-text-card__img'),\n start: 'top bottom',\n end: '50% 50%',\n scrub: true\n }\n });\n })\n })\n }\n )\n}\n","// Lazy load\nexport const lazyLoad = () => {\n const lazyImages = Array.from(document.querySelectorAll(\"img.lazy-loading\"));\n const lazyVideos = Array.from(document.querySelectorAll(\"video.lazy-loading\"));\n const options = {\n root: document.querySelector('#smooth-wrapper'),\n rootMargin: \"500px\"\n }\n if (\"IntersectionObserver\" in window) {\n // Lazy loading for image\n let lazyImageObserver = new IntersectionObserver(function(entries, observer) {\n entries.forEach(function(entry) {\n if (entry.isIntersecting) {\n let lazyImage = entry.target;\n lazyImage.src = lazyImage.dataset.src;\n lazyImageObserver.unobserve(lazyImage);\n }\n });\n }, options);\n \n lazyImages.forEach(function(lazyImage) {\n lazyImageObserver.observe(lazyImage);\n });\n\n // Lazy loading for video\n const lazyVideoObserver = new IntersectionObserver(function(entries, observer) {\n entries.forEach(function(video) {\n if (video.isIntersecting) {\n for (let source in video.target.children) {\n const videoSource = video.target.children[source];\n if (typeof videoSource.tagName === \"string\" && videoSource.tagName === \"SOURCE\") {\n videoSource.src = videoSource.dataset.src;\n }\n }\n \n video.target.load();\n lazyVideoObserver.unobserve(video.target);\n }\n });\n }, options);\n\n lazyVideos.forEach(function(lazyVideo) {\n lazyVideoObserver.observe(lazyVideo);\n });\n }\n}","import gsap from \"gsap\";\nimport ScrollSmoother from \"gsap/ScrollSmoother\";\nimport ScrollTrigger from \"gsap/ScrollTrigger\";\nimport { hide } from \"./animations/hide\";\nimport { smootherPause } from \"./smoother\";\n\n\ngsap.registerPlugin(ScrollSmoother, ScrollTrigger);\n\nexport const leadspaceHome = () => {\n const logo = document.querySelector('.navbar__intro-logo');\n const tl = gsap.timeline();\n let val, breakPoint = 900;\n\n hide('.navbar__logo');\n\n ScrollTrigger.defaults({\n trigger: '.leadspace-home',\n start: '0 0',\n end: 'bottom 0',\n scrub: true,\n })\n\n gsap.matchMedia().add(\n {\n isDesktop: `(min-width: ${breakPoint}px)`,\n isTablet: `(min-width: ${breakPoint - 300}px)`,\n isMobile: `(max-width: ${breakPoint - 300 - 1}px)`,\n reduceMotion: \"(prefers-reduced-motion: reduce)\"\n }, \n (context) => {\n let { isDesktop, isMobile, isTablet, reduceMotion } = context.conditions;\n\n val = isDesktop ? '5% top' : '15% top';\n\n tl.from(logo, {\n top: isDesktop ? '43vh' : '25vh',\n scale: isDesktop ? 5.5 : isTablet ? 4 : isMobile ? 3 : '',\n y: isDesktop ? '-43%' : '-25%',\n force3D: false,\n scrollTrigger: {\n trigger: '.leadspace-home__logo',\n pin: true,\n endTrigger: '.leadspace-home'\n },\n })\n .to(logo, {\n scrollTrigger: {\n pin: true,\n pinSpacing: false,\n start: '100% top',\n end: 'bottom 0',\n endTrigger: '.theme-container',\n scrub: false\n },\n })\n return () => {}\n }\n ); \n\n tl\n .to('.leadspace-home__text', {\n y: '10rem',\n autoAlpha: 0,\n scrollTrigger: {\n end: '10% top'\n }\n })\n .to('.leadspace-home__bg img', {\n y: '5rem',\n scrollTrigger: {}\n })\n .to('.leadspace-home__fork figure', {\n y: '100%',\n duration: 0.2,\n scrollTrigger: {\n start: '0.5% top',\n end: val,\n onEnterBack: () => {\n gsap.set('.leadspace-home__fork', {\n display: 'block'\n })\n }\n },\n onComplete: () => {\n gsap.set('.leadspace-home__fork', {\n display: 'none'\n })\n }\n })\n\n gsap.to('.leadspace-home__fork', {\n scrollTrigger: {\n trigger: '.leadspace-home__fork',\n endTrigger: '.theme-container',\n start: 'top 100%',\n pin: true,\n pinSpacing: false\n }\n })\n \n document.querySelector('.scroll-btn').addEventListener('click', () => {\n window.scrollTo(0, document.querySelector('.leadspace-home').clientHeight);\n })\n}\n\nexport const resetTransform = () => {\n gsap.set('.theme-container', {\n y: 0\n })\n}\n\nexport const introAnimate = () => {\n const tl = gsap.timeline({\n defaults: {\n duration: 0.3\n }\n });\n\n tl.set('.leadspace-home__logo svg', {\n autoAlpha: 0,\n xPercent: -18,\n yPercent: 20,\n rotation: -20,\n transformOrigin: '50% 50%',\n })\n .set('.leadspace-home__bg', {\n autoAlpha: 0,\n scale: 1.2\n })\n .set('.leadspace-home__text figure', {\n y: '10rem',\n autoAlpha: 0\n })\n .set('.navbar', {\n y: '-100%'\n })\n .set('.leadspace-home__btn', {\n y: '100%'\n })\n \n\n tl\n .to('.leadspace-home__logo svg', {\n autoAlpha: 1,\n xPercent: 0,\n yPercent: 0,\n rotation: 0,\n delay: 1,\n force3D: false\n })\n .to('.leadspace-home__bg', {\n autoAlpha: 1,\n scale: 1,\n duration: 0.6\n }, \"+=0.6\")\n .to('.leadspace-home__text figure', {\n y: 0,\n autoAlpha: 1\n }, '<')\n .to('.leadspace-home__fork img', {\n y: '-100%'\n }, '<')\n .to('.navbar', {\n y: 0\n }, '<')\n .to('.leadspace-home__btn', {\n y: 0,\n onComplete: () => {\n setTimeout(() => {\n smootherPause(false);\n }, 600)\n }\n }, '<')\n}\n\nexport const bottomBar = () => {\n const tl = gsap.timeline();\n const select = document.querySelector('.bottom-bar');\n gsap.to('.bottom-bar__fork', {\n y: '0',\n duration: 0.3,\n scrollTrigger: {\n trigger: '.bottom-bar__fork',\n start: '-200% 20%',\n end: '-200% 10%',\n scrub: true\n }\n })\n}\n","import Swiper from \"swiper/bundle\";\nimport { smootherPause } from \"./smoother\";\n\nexport const leadspaceWithSliderAndText = () => {\n const select = document.querySelector('.leadspace-with-slider-and-text');\n const slider = select.querySelector('.leadspace-with-slider-and-text__swiper');\n const carousel = select.querySelector('.leadspace-with-slider-and-text__swiper-pagination');\n const captions = select.querySelectorAll('.leadspace-with-slider-and-text__single-caption');\n let swiper = new Swiper(slider, {\n preloadImages: false,\n lazy: true,\n speed: 600,\n autoplay: {\n delay: 2000\n },\n pagination: {\n el: carousel,\n clickable: true\n },\n on: {\n slideChange: () => {\n captions.forEach( e => \n e.classList.contains('leadspace-with-slider-and-text__single-caption--active') ?\n e.classList.remove('leadspace-with-slider-and-text__single-caption--active') : ''\n );\n setTimeout(() => {\n captions[swiper.activeIndex].classList.add('leadspace-with-slider-and-text__single-caption--active')\n }, 300)\n },\n sliderMove: () => {\n smootherPause(true);\n },\n touchEnd: () => {\n smootherPause(false);\n }\n }\n })\n}\n","import gsap from \"gsap\";\nimport ScrollTrigger from \"gsap/ScrollTrigger\";\nimport { normalizer, smootherPause } from \"./smoother\";\n\ngsap.registerPlugin(ScrollTrigger);\n\nexport const navToggle = () => {\n const navbar = document.querySelector('.navbar');\n const body = document.querySelector('body');\n const navBtn = navbar.querySelector('.navbar__burger');\n if( body.classList.contains('navbar__offcanvas--action') ){\n body.classList.add('overflow-hidden');\n }\n else{\n body.classList.remove('overflow-hidden');\n }\n navBtn.addEventListener('click', () => {\n body.classList.toggle('navbar__offcanvas--active');\n body.classList.contains('navbar__offcanvas--active') ? normalizer(false) : normalizer(true);\n if (document.querySelector('.theme-main').getAttribute('data-barba-namespace') == 'index') {\n body.classList.contains('navbar__offcanvas--active') ? gsap.set('.navbar__logo', {autoAlpha: 1, pointerEvents: 'auto'}) : gsap.set('.navbar__logo', {autoAlpha: 0}) ;\n }\n })\n}\n","export const slideShowWithContent = (arr) => {\n let arrIndex = [];\n arr.forEach((e, i) => arrIndex.push(parseInt(i)));\n let index = 0;\n let tempTotal = 2;\n\n const slideShow = () => {\n let temp = [];\n arrIndex.forEach(e => {\n arr[e].classList.remove('active')\n if (temp.length <= tempTotal) {\n temp.push(arrIndex[index]);\n index <= arrIndex.length - tempTotal ? index++ : index = 0;\n }\n })\n index = arrIndex.indexOf(temp[1]);\n temp.forEach(e => arr[arrIndex[e]].classList.add('active'));\n }\n\n setTimeout(() => {\n slideShow();\n }, 800)\n\n setInterval(() => {\n slideShow();\n }, 2000)\n}\n","import gsap from 'gsap';\nimport ScrollTrigger from 'gsap/ScrollTrigger';\nimport ScrollSmoother from 'gsap/ScrollSmoother';\n\ngsap.registerPlugin(ScrollTrigger, ScrollSmoother);\n\nexport const smoother = () => {\n const scroller = ScrollSmoother.create({\n smooth: 1.4,\n effects: true,\n smoothTouch: 0.3,\n normalizeScroll: true\n });\n document.querySelector('#smooth-content').style.transform = 'translate(0,0)';\n scroller.paused(true);\n return scroller;\n}\n\nexport const normalizer = (val) => {\n ScrollTrigger.normalizeScroll(val);\n}\n\nexport const smootherPause = (e) => {\n const scroller = ScrollSmoother.get();\n scroller.paused(e);\n}\n","import gsap from \"gsap\";\nimport { Linear } from \"gsap\";\nimport ScrollTrigger from \"gsap/ScrollTrigger\";\n\ngsap.registerPlugin(ScrollTrigger);\n\nexport const textWithimg = () => {\n const textWithImg = document.querySelectorAll('.text-with-img');\n const tl = gsap.timeline({\n defaults: {\n ease: Linear.ease,\n }\n });\n\n ScrollTrigger.defaults({\n start: 'top 100%',\n end: 'top 20%',\n scrub: true,\n });\n\n gsap.matchMedia().add(\n \"(min-width: 900px)\", () => {\n textWithImg.forEach(e => {\n tl.to(e.querySelector('figure'), {\n scrollTrigger: {\n trigger: e.querySelector('figure')\n },\n rotate: 0\n }).from(e.querySelector('.btn'), {\n scrollTrigger: {\n trigger: e.querySelector('.btn'),\n start: 'top +=120%',\n end: 'top 90%'\n },\n y: '8rem'\n }, '<').from(e.querySelector('.text-with-img__text'), {\n scrollTrigger: {\n trigger: e.querySelector('.text-with-img__text')\n },\n y: '8rem'\n }, '<')\n });\n }\n )\n}\n\nexport const textWithImgAndHeading = () => {\n const textWithImg = document.querySelectorAll('.text-with-img-and-heading');\n const tl = gsap.timeline({\n defaults: {\n ease: Linear.ease,\n }\n });\n\n ScrollTrigger.defaults({\n start: 'top 100%',\n end: 'top 20%',\n scrub: true,\n });\n\n gsap.matchMedia().add(\n \"(min-width: 900px)\", () => {\n textWithImg.forEach(e => {\n tl.from(e.querySelector('figure'), {\n scrollTrigger: {\n trigger: e.querySelector('figure')\n },\n rotate: '5deg'\n }).from(e.querySelector('.text-with-img-and-heading__content'), {\n scrollTrigger: {\n trigger: e.querySelector('.text-with-img-and-heading__content')\n },\n y: '8rem'\n }, '<')\n });\n }\n )\n}","import gsap from \"gsap\";\nimport ScrollTrigger from \"gsap/ScrollTrigger\";\nimport { smootherPause } from \"./smoother\";\n\ngsap.registerPlugin(ScrollTrigger);\n\nexport const videoWithPopup = () => {\n const tl = gsap.timeline();\n const videoModal = document.querySelector('.video-modal');\n const video = videoModal.querySelector('video');\n\n const videoModule = document.querySelector('.video');\n const videoBtnLink = videoModule.querySelector('.video__link-btn');\n const videoText = videoModule.querySelector('.h1');\n const videoModuleLink = videoModule.querySelector('.video__module-btn');\n\n const loopVideo = document.querySelector('.video__looped video');\n\n videoModuleLink.addEventListener('click', () => {\n document.querySelector('body').classList.add('video-modal-active');\n smootherPause(true);\n var source = document.createElement('source');\n source.src = videoModuleLink.dataset.link;\n source.type = 'video/mp4';\n video.appendChild(source);\n video.play();\n loopVideo.pause();\n })\n\n videoModal.querySelector('.video-modal__close').addEventListener('click', () => {\n document.querySelector('body').classList.remove('video-modal-active');\n smootherPause(false);\n video.pause();\n loopVideo.play();\n })\n\n document.addEventListener('keydown', function(event) {\n if (event.key === 'Escape' && document.querySelector('body').classList.contains('video-modal-active')) {\n document.querySelector('body').classList.remove('video-modal-active');\n smootherPause(false);\n video.pause();\n loopVideo.play();\n }\n });\n\n videoModal.querySelector('.video-modal__overlay').addEventListener('click', () => {\n document.querySelector('body').classList.remove('video-modal-active');\n smootherPause(false);\n video.pause();\n loopVideo.play();\n })\n\n gsap.matchMedia().add(\n \"(min-width: 900px)\", () => {\n tl.from(videoBtnLink, {\n scrollTrigger: {\n trigger: videoBtnLink,\n start: 'top +=120%',\n end: 'top 90%',\n scrub: true\n },\n y: '8rem'\n })\n .from(videoText, {\n scrollTrigger: {\n trigger: videoText,\n start: 'top 100%',\n end: 'top 20%',\n scrub: true\n },\n y: '8rem'\n })\n .from('.video__content figure', {\n scrollTrigger: {\n trigger: videoText,\n start: 'top 100%',\n end: 'top 20%',\n scrub: true\n },\n y: '8rem'\n })\n .from('.video__looped', {\n scrollTrigger: {\n trigger: '.video__looped',\n start: 'top 100%',\n end: 'top 50%',\n scrub: true\n },\n scale: .9\n })\n }\n )\n}\n\nexport const removeVideo = () => {\n const videoModal = document.querySelector('.video-modal');\n const videoSource = videoModal.querySelector('video source');\n videoSource != null ? videoSource.remove() : '';\n}\n","module.exports = window[\"jQuery\"];"],"sourceRoot":""}