{"version":3,"file":"default/js/accountNavigationScroll.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;UCZA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,mBAAO,CAAC,kGAAqB;;AAEjD;AACA;AACA;AACA;AACA;;AAEA,kCAAkC,sBAAsB;AACxD;AACA,CAAC","sources":["webpack://sfra-startup-kit/./cartridges/app_cwf/cartridge/client/default/js/utils/breakpoints.js","webpack://sfra-startup-kit/webpack/bootstrap","webpack://sfra-startup-kit/./cartridges/app_cwf/cartridge/client/default/js/accountNavigationScroll.js"],"sourcesContent":["/**\n * Store global breakpoints for use across the whole project.\n */\n const breakpoints = {\n sm: 375,\n md: 768,\n ls: 1024,\n dp: 1200,\n lg: 1440,\n xl: 1600\n};\n\nmodule.exports = breakpoints;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// ==============================\n//* ACCOUNT NAVIGATION SCROLL\n//\n//? This file manages the account navigation scroll.\n// ==============================\n\nconst breakpoints = require(\"./utils/breakpoints\");\n\n$(() => {\n if (window.matchMedia(\"(max-width:\" + breakpoints.md + \"px)\").matches) {\n const $navigationTabs = $(\".account-navigation__container\");\n const $activeTab = $(\".account-navigation__tabs-item.active\");\n let scrollTo = ($activeTab.position().left + $activeTab.width() / 2 - $navigationTabs.width() / 2);\n\n $navigationTabs.animate({ scrollLeft: scrollTo }, 500);\n }\n});\n"],"names":[],"sourceRoot":""}