{"version":3,"file":"localpop/localpop.js","sources":["webpack://fusion-360/./source/localpop/localpop.scss","webpack://fusion-360/./source/localpop/localpop.js","webpack://fusion-360/webpack/bootstrap","webpack://fusion-360/webpack/runtime/make namespace object","webpack://fusion-360/webpack/startup"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","var wp_f360_features = document.querySelectorAll('.flex-item .wistia_embed a');\nvar attr;\n\nwp_f360_features.forEach(function(e){\n    attr = e.getAttribute('wistia-embed-id');\n    e.parentElement.classList.add(`wistia_async_${attr}`);\n});\n\nvar fnav_mobile_trigger = document.querySelector('.wp-f360-fnav-title');\n\nfnav_mobile_trigger.addEventListener('click', function(event){\n    if (window.innerWidth <= 1024) {\n        document.querySelector('.wp-f360-fnav-inner-wrap').classList.contains('wp-f360-fnav-inner-wrap-show') ? document.querySelector('.wp-f360-fnav-inner-wrap').classList.remove('wp-f360-fnav-inner-wrap-show') : document.querySelector('.wp-f360-fnav-inner-wrap').classList.add('wp-f360-fnav-inner-wrap-show');\n    }\n});\n\nvar universal_header_height = document.querySelector('.header-content.fixed-header').offsetHeight;\nvar local_pop_scrollto_benefits_trigger = document.querySelector('.wp-f360-localpop-benefits');\nvar local_pop_scrollto_features_trigger = document.querySelector('.wp-f360-localpop-features');\nvar local_pop_scrollto_extensions_trigger = document.querySelector('.wp-f360-localpop-extensions');\nvar local_pop_scrollto_review_trigger = document.querySelector('.wp-f360-localpop-reviews');\nvar local_pop_scrollto_buy_trigger = document.querySelectorAll('.wp-f360-localpop-buy');\n\nif (local_pop_scrollto_benefits_trigger) {\n    local_pop_scrollto_benefits_trigger.addEventListener('click', function(event){\n        event.preventDefault();\n        wp_f360_scrollTo('#benefits', universal_header_height);\n        if (window.innerWidth <= 1024) {\n            document.querySelector('.wp-f360-fnav-inner-wrap').classList.contains('wp-f360-fnav-inner-wrap-show') ? document.querySelector('.wp-f360-fnav-inner-wrap').classList.remove('wp-f360-fnav-inner-wrap-show') : document.querySelector('.wp-f360-fnav-inner-wrap').classList.add('wp-f360-fnav-inner-wrap-show');\n        }\n    });\n}\n\nif (local_pop_scrollto_features_trigger) {\n    local_pop_scrollto_features_trigger.addEventListener('click', function(event){\n        event.preventDefault();\n        wp_f360_scrollTo('#features', universal_header_height);\n        if (window.innerWidth <= 1024) {\n            document.querySelector('.wp-f360-fnav-inner-wrap').classList.contains('wp-f360-fnav-inner-wrap-show') ? document.querySelector('.wp-f360-fnav-inner-wrap').classList.remove('wp-f360-fnav-inner-wrap-show') : document.querySelector('.wp-f360-fnav-inner-wrap').classList.add('wp-f360-fnav-inner-wrap-show');\n        }\n    });\n}\n\nif (local_pop_scrollto_extensions_trigger) {\n    local_pop_scrollto_extensions_trigger.addEventListener('click', function(event){\n        event.preventDefault();\n        wp_f360_scrollTo('#extensions', universal_header_height);\n        if (window.innerWidth <= 1024) {\n            document.querySelector('.wp-f360-fnav-inner-wrap').classList.contains('wp-f360-fnav-inner-wrap-show') ? document.querySelector('.wp-f360-fnav-inner-wrap').classList.remove('wp-f360-fnav-inner-wrap-show') : document.querySelector('.wp-f360-fnav-inner-wrap').classList.add('wp-f360-fnav-inner-wrap-show');\n        }\n    });\n}\n\nif (local_pop_scrollto_review_trigger) {\n    local_pop_scrollto_review_trigger.addEventListener('click', function(event){\n        event.preventDefault();\n        wp_f360_scrollTo('#review', universal_header_height);\n        if (window.innerWidth <= 1024) {\n            document.querySelector('.wp-f360-fnav-inner-wrap').classList.contains('wp-f360-fnav-inner-wrap-show') ? document.querySelector('.wp-f360-fnav-inner-wrap').classList.remove('wp-f360-fnav-inner-wrap-show') : document.querySelector('.wp-f360-fnav-inner-wrap').classList.add('wp-f360-fnav-inner-wrap-show');\n        }\n    });\n}\n\nif (local_pop_scrollto_buy_trigger) {\n    local_pop_scrollto_buy_trigger.forEach(function(e){\n        e.addEventListener('click', function(event){\n            event.preventDefault();\n            wp_f360_scrollTo('#localpop-buy', universal_header_height);\n            if (window.innerWidth <= 1024) {\n                if (event.target.parentElement.classList.contains('wp-f360-fnav-subscribe-btn')) {\n                    document.querySelector('.wp-f360-fnav-inner-wrap').classList.contains('wp-f360-fnav-inner-wrap-show') ? document.querySelector('.wp-f360-fnav-inner-wrap').classList.remove('wp-f360-fnav-inner-wrap-show') : document.querySelector('.wp-f360-fnav-inner-wrap').classList.add('wp-f360-fnav-inner-wrap-show');\n                }\n            }\n        });\n    })\n}\n\nfunction wp_f360_scrollTo(selector, yOffset = 0){\n    const el = document.querySelector(selector);\n    const y = el.getBoundingClientRect().top + window.pageYOffset - yOffset;\n    window.scrollTo({top: y});\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\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].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","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// startup\n// Load entry module\n__webpack_require__(\"./source/localpop/localpop.scss\");\n// This entry module used 'exports' so it can't be inlined\n__webpack_require__(\"./source/localpop/localpop.js\");\n"],"mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;A;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A;;;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;ACNA;AACA;AACA;AACA;AACA;;A","sourceRoot":""}