{"version":3,"sources":["webpack:///js/custom.js","webpack:///webpack/bootstrap bb539f760d5be2c6ac4e","webpack:///./src/js/index.js","webpack:///./src/js/custom/index.js","webpack:///./src/js/custom/header/index.js","webpack:///./src/js/custom/header/header.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","obj","default","_custom","custom","init","_classCallCheck","instance","Constructor","TypeError","value","resizeThreshold","_createClass","defineProperties","target","props","length","descriptor","writable","key","protoProps","staticProps","$","jQuery","$window","window","Custom","this","Header","header","windowWidth","scrollTop","resize","clearTimeout","setTimeout","onWindowResize","width","scroll","onWindowScroll","scrollY","document","ready","onload","onWindowLoad","onpageshow","event","persisted","onPageShow","_interopRequireDefault","_header","$mobileNavButton","$closeMobileButton","$mobileNavBg","$siteHeader","$megaMenuList","$megaMenu","$menuItemHasChildren","$menuLink","removeClass","css","click","addClass","prev","parents","console","log","mobileMenuToggle","on","preventDefault","currentTarget","hasClass","pageLink","attr","location","href","next","slideToggle","toggleClass"],"mappings":"CAAS,SAAUA,GCIjB,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUE,OAGnC,IAAIC,GAASF,EAAiBD,IAC7BI,EAAGJ,EACHK,GAAG,EACHH,WAUD,OANAJ,GAAQE,GAAUM,KAAKH,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOE,GAAI,EAGJF,EAAOD,QAvBf,GAAID,KA4BJF,GAAoBQ,EAAIT,EAGxBC,EAAoBS,EAAIP,EAGxBF,EAAoBU,EAAI,SAASP,EAASQ,EAAMC,GAC3CZ,EAAoBa,EAAEV,EAASQ,IAClCG,OAAOC,eAAeZ,EAASQ,GAC9BK,cAAc,EACdC,YAAY,EACZC,IAAKN,KAMRZ,EAAoBmB,EAAI,SAASf,GAChC,GAAIQ,GAASR,GAAUA,EAAOgB,WAC7B,W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EuB,EAAMwB,eAAeQ,YAAY,iBLsNvC1D,IAAK,iBACLT,MAAO,SKhNOqB,GACVA,GAAa,GACfJ,KAAK0B,YAAYQ,SAAS,mBAE1BlC,KAAK0B,YAAYK,YAAY,uBL+N1B7B,IAGTpD,GAAQyB,QKpNO2B","file":"js/custom.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/wp-content/themes/larkin-university/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _custom = __webpack_require__(1);\n\nvar _custom2 = _interopRequireDefault(_custom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_custom2.default.init();\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _header = __webpack_require__(2);\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n// @NOTE: assumes jQuery is included by WP\nvar $ = jQuery;\n\nvar $window = $(window);\n\nvar Custom = function () {\n function Custom() {\n _classCallCheck(this, Custom);\n }\n\n _createClass(Custom, [{\n key: 'init',\n value: function init() {\n this.Header = new _header.header();\n }\n }, {\n key: 'onWindowResize',\n value: function onWindowResize(windowWidth) {\n // all methods that respond to window resize should be here\n //this.Header.onWindowResize(windowWidth)\n }\n }, {\n key: 'onWindowScroll',\n value: function onWindowScroll(scrollTop) {\n // all methods that respond to window scroll should be here\n // this.Header.onWindowScroll(scrollTop)\n }\n }, {\n key: 'onWindowLoad',\n value: function onWindowLoad() {}\n }, {\n key: 'onPageShow',\n value: function onPageShow() {\n // this.Header.onPageShow()\n }\n }]);\n\n return Custom;\n}();\n\nvar custom = new Custom();\n\nvar resizeThreshold;\n$window.resize(function () {\n clearTimeout(resizeThreshold);\n resizeThreshold = setTimeout(function () {\n custom.onWindowResize($window.width());\n }, 100);\n});\n\n$window.scroll(function () {\n custom.onWindowScroll(window.scrollY);\n});\n\n$(document).ready(function () {\n custom.onWindowResize($window.width());\n});\n\nwindow.onload = function () {\n custom.onWindowLoad();\n};\n\nwindow.onpageshow = function (event) {\n if (event.persisted) {\n custom.onPageShow();\n // window.location.reload();\n }\n};\n\nexports.default = custom;\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _header = __webpack_require__(3);\n\nObject.defineProperty(exports, 'header', {\n enumerable: true,\n get: function get() {\n return _interopRequireDefault(_header).default;\n }\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n// @NOTE: assumes jQuery is included by WP\nvar $ = jQuery;\n\nvar header = function () {\n function header() {\n _classCallCheck(this, header);\n\n this.$mobileNavButton = $(\".mobile-btn\");\n this.$closeMobileButton = $(\".close-mobile-nav\");\n this.$mobileNavBg = $(\".mobile-nav-bg-curtain\");\n this.$siteHeader = $(\".header-primary\");\n this.$megaMenuList = $('.mega-menu');\n this.$megaMenu = $('.mega-menu > span');\n this.$menuItemHasChildren = $('.menu-item-has-children > a');\n this.$menuLink = $('.elementor-nav-menu .menu-item-has-children > a');\n\n var delay = 100;setTimeout(function () {\n $('.elementor-tab-title').removeClass('elementor-active');\n $('.elementor-tab-content').css('display', 'none');\n }, delay);\n\n this.$mobileNavButton.click(function () {\n $(\".navigation\").addClass('menu-open');\n $(\".mobile-nav-bg-curtain\").addClass('menu-open');\n });\n\n this.$closeMobileButton.click(function () {\n $(\".navigation\").removeClass('menu-open');\n $(\".mobile-nav-bg-curtain\").removeClass('menu-open');\n });\n\n this.$mobileNavBg.click(function () {\n $(\".navigation\").removeClass('menu-open');\n $(\".mobile-nav-bg-curtain\").removeClass('menu-open');\n });\n\n /* If mobile browser, prevent click on parent nav item from redirecting to URL */\n // if(is_touch_device()) {\n\n // $('.main-menu-wrapper li > ul').each(function (index, elem) {\n // /* Option 1: Use this to modify the href on the to # */\n // //$(elem).prev('a').attr('href' ,'#'); \n\n // /* OR Option 2: Use this to keep the href on the intact but prevent the default action */\n // $(elem).prev('a').click(function(event) {\n // event.preventDefault();\n // });\n // });\n // }\n\n setTimeout(function () {\n $('.spinner-decimal').prev('.input-group-addon').addClass('addon-icon').css('display', 'table-cell');\n $('.spinner-decimal').parents('.col-md-6').addClass('addon-icon-wrapper');\n $('.checkout_products_wrap').prev('h3').addClass('card-title');\n console.log();\n }, 1500);\n\n this.mobileMenuToggle();\n }\n\n _createClass(header, [{\n key: \"mobileMenuToggle\",\n value: function mobileMenuToggle() {\n this.$menuItemHasChildren.on('click', function (event) {\n var windowWidth = $(window).width();\n if (windowWidth < 1024) {\n event.preventDefault();\n if ($(event.currentTarget).hasClass('clicked')) {\n var pageLink = $(event.currentTarget).attr('href');\n window.location.href = pageLink;\n }\n $(event.currentTarget).next('.sub-menu').slideToggle();\n $(event.currentTarget).toggleClass('clicked');\n }\n });\n }\n }, {\n key: \"onWindowScroll\",\n value: function onWindowScroll(scrollTop) {\n if (scrollTop >= 20) {\n this.$siteHeader.addClass('js-fixed-header');\n } else {\n this.$siteHeader.removeClass('js-fixed-header');\n }\n }\n\n // onWindowResize (windowWidth) {\n // this.$menuItemHasChildren.on('click', (event) => {\n // event.preventDefault() \n // if(windowWidth < 1024) { \n // $(event.currentTarget).next('.sub-menu').toggleClass('show') \n // }\n // }) \n // }\n\n }]);\n\n return header;\n}();\n\nexports.default = header;\n\n/***/ })\n/******/ ]);\n\n\n// WEBPACK FOOTER //\n// js/custom.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/wp-content/themes/larkin-university/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap bb539f760d5be2c6ac4e","import custom from './custom'\r\n\r\ncustom.init()\n\n\n// WEBPACK FOOTER //\n// ./src/js/index.js","// @NOTE: assumes jQuery is included by WP\r\nconst $ = jQuery\r\n\r\nimport { header } from './header'\r\n\r\nconst $window = $(window) \r\n\r\nclass Custom {\r\n\r\n init () {\r\n this.Header = new header()\r\n }\r\n \r\n onWindowResize (windowWidth) {\r\n // all methods that respond to window resize should be here\r\n //this.Header.onWindowResize(windowWidth)\r\n }\r\n\r\n onWindowScroll (scrollTop) {\r\n // all methods that respond to window scroll should be here\r\n // this.Header.onWindowScroll(scrollTop)\r\n }\r\n\r\n onWindowLoad () { \r\n \r\n }\r\n\r\n onPageShow () {\r\n // this.Header.onPageShow()\r\n }\r\n}\r\n\r\nconst custom = new Custom()\r\n\r\nvar resizeThreshold;\r\n$window.resize(() => {\r\n clearTimeout(resizeThreshold);\r\n resizeThreshold = setTimeout(function() {\r\n custom.onWindowResize($window.width())\r\n }, 100);\r\n});\r\n\r\n$window.scroll(() => {\r\n custom.onWindowScroll(window.scrollY)\r\n})\r\n\r\n$(document).ready(() => {\r\n custom.onWindowResize($window.width()) \r\n})\r\n\r\nwindow.onload = () => {\r\n custom.onWindowLoad() \r\n}\r\n\r\nwindow.onpageshow = (event) => {\r\n if (event.persisted) {\r\n custom.onPageShow()\r\n // window.location.reload();\r\n }\r\n}\r\n\r\nexport default custom\n\n\n// WEBPACK FOOTER //\n// ./src/js/custom/index.js","export { default as header } from './header'\n\n\n// WEBPACK FOOTER //\n// ./src/js/custom/header/index.js","// @NOTE: assumes jQuery is included by WP\r\nconst $ = jQuery\r\n\r\nclass header {\r\n constructor () {\r\n this.$mobileNavButton = $(\".mobile-btn\") \r\n this.$closeMobileButton = $(\".close-mobile-nav\")\r\n this.$mobileNavBg = $(\".mobile-nav-bg-curtain\")\r\n this.$siteHeader = $(\".header-primary\")\r\n this.$megaMenuList = $('.mega-menu')\r\n this.$megaMenu = $('.mega-menu > span')\r\n this.$menuItemHasChildren = $('.menu-item-has-children > a')\r\n this.$menuLink = $('.elementor-nav-menu .menu-item-has-children > a')\r\n\r\n var delay = 100; setTimeout(function(){\r\n $('.elementor-tab-title').removeClass('elementor-active');\r\n $('.elementor-tab-content').css('display', 'none');\r\n }, delay);\r\n\r\n this.$mobileNavButton.click(function () { \r\n $(\".navigation\").addClass('menu-open')\r\n $(\".mobile-nav-bg-curtain\").addClass('menu-open')\r\n }); \r\n\r\n this.$closeMobileButton.click(function () { \r\n $(\".navigation\").removeClass('menu-open') \r\n $(\".mobile-nav-bg-curtain\").removeClass('menu-open')\r\n }); \r\n\r\n this.$mobileNavBg.click(function () { \r\n $(\".navigation\").removeClass('menu-open') \r\n $(\".mobile-nav-bg-curtain\").removeClass('menu-open')\r\n });\r\n\r\n /* If mobile browser, prevent click on parent nav item from redirecting to URL */\r\n // if(is_touch_device()) {\r\n \r\n // $('.main-menu-wrapper li > ul').each(function (index, elem) {\r\n // /* Option 1: Use this to modify the href on the to # */\r\n // //$(elem).prev('a').attr('href' ,'#'); \r\n \r\n // /* OR Option 2: Use this to keep the href on the intact but prevent the default action */\r\n // $(elem).prev('a').click(function(event) {\r\n // event.preventDefault();\r\n // });\r\n // });\r\n // }\r\n\r\n setTimeout(() => {\r\n $('.spinner-decimal').prev('.input-group-addon').addClass('addon-icon').css('display', 'table-cell');\r\n $('.spinner-decimal').parents('.col-md-6').addClass('addon-icon-wrapper');\r\n $('.checkout_products_wrap').prev('h3').addClass('card-title');\r\n console.log();\r\n }, 1500)\r\n\r\n this.mobileMenuToggle()\r\n }\r\n\r\n mobileMenuToggle () {\r\n this.$menuItemHasChildren.on('click', (event) => { \r\n let windowWidth = $(window).width()\r\n if(windowWidth < 1024) {\r\n event.preventDefault()\r\n if($(event.currentTarget).hasClass('clicked')) {\r\n let pageLink = $(event.currentTarget).attr('href')\r\n window.location.href = pageLink\r\n }\r\n $(event.currentTarget).next('.sub-menu').slideToggle()\r\n $(event.currentTarget).toggleClass('clicked')\r\n\r\n \r\n } \r\n })\r\n }\r\n\r\n onWindowScroll (scrollTop) {\r\n if (scrollTop >= 20) {\r\n this.$siteHeader.addClass('js-fixed-header')\r\n } else {\r\n this.$siteHeader.removeClass('js-fixed-header')\r\n }\r\n }\r\n\r\n // onWindowResize (windowWidth) {\r\n // this.$menuItemHasChildren.on('click', (event) => {\r\n // event.preventDefault() \r\n // if(windowWidth < 1024) { \r\n // $(event.currentTarget).next('.sub-menu').toggleClass('show') \r\n // }\r\n // }) \r\n // }\r\n}\r\n\r\nexport default header\n\n\n// WEBPACK FOOTER //\n// ./src/js/custom/header/header.js"],"sourceRoot":""}