{"remainingRequest":"C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\resources\\assets\\scripts\\transitions\\baseTransition.js","dependencies":[{"path":"C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\resources\\assets\\scripts\\transitions\\baseTransition.js","mtime":1722418414000},{"path":"C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1726651497274},{"path":"C:\\wamp64\\www\\free-energie\\wp-content\\themes\\digitalcover\\node_modules\\babel-loader\\lib\\index.js","mtime":1726651482652}],"contextDependencies":[],"result":["import { Transition } from '@unseenco/taxi';\nimport store from '../util/store';\nexport default class BaseTransition extends Transition {\n  onLeave(_ref) {\n    let {\n      done,\n      from\n    } = _ref;\n    this.from = from;\n    store.smoothScroll && store.smoothScroll.stop();\n    this.getElems();\n    store.transitionComplete = false;\n    this.showLoader().then(() => {\n      if (store.transitionComplete) this.transitionComplete();else window.addEventListener('transitionComplete', this.transitionComplete.bind(this), {\n        once: true\n      });\n      done();\n    });\n  }\n  onEnter(_ref2) {\n    let {\n      done,\n      to\n    } = _ref2;\n    this.to = to;\n    this.done = done;\n    this.getElems();\n  }\n  resetScroll() {\n    window.scrollTo(0, 0);\n    if (store.scrollEngine === 'locomotive-scroll') {\n      store.smoothScroll.setScroll(0, 0);\n      store.smoothScroll.update();\n      store.smoothScroll.start();\n    } else if (store.scrollEngine === 'lenis') {\n      store.smoothScroll.scrollTo(0, {\n        immediate: true\n      });\n      store.smoothScroll.start();\n      store.smoothScroll.scroll = 0;\n      store.smoothScroll.targetScroll = 0;\n    }\n  }\n  transitionComplete() {\n    this.hideLoader(this.from, this.to).then(() => {\n      this.resetScroll();\n      this.done();\n    });\n  }\n  hideLoader() {}\n  showLoader() {}\n  getElems() {}\n}",null]}