{"version":3,"sources":["webpack:///./src/scripts/partials/book-tree-toggle.js","webpack:///./src/images/close.svg","webpack:///./src/images/menu-with-arrow.svg","webpack:///./src/scss/tsai-city-annual-report.theme.scss?1148","webpack:////Volumes/Work/repos/tsai-city-drupal/web/themes/custom/tsai_city_annual_report/assets/src/images|sync|/\\.(gif|png|jpe","webpack:///external \"jQuery\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/publicPath","webpack:///./src/scripts/tsai-city-annual-report.theme.js"],"names":["define","$","window","document","undefined","lastScrollTop","nodeHeader","nodeHeaderHeight","betterBookNavigationTreeHeight","bookTreeToggle","betterBookNavigationTree","ready","ROOT","documentElement","querySelector","addEventListener","handleBookTreeToggle","style","setProperty","concat","clientHeight","dispatchEvent","Event","event","getAttribute","setAttribute","removeEventListener","handleScroll","st","scrollTop","jQuery","require"],"mappings":";;;;;;;;;;;;;;;AAAA;;AAEA,IAAIA,MAAM,GAAG,KAAK;AAElB,CAAC,UAACC,CAAC,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,EAAK;EACnC,IAAIC,aAAa,GAAG,CAAC;EACrB,IAAIC,UAAU;EACd,IAAIC,gBAAgB,GAAG,CAAC;EACxB,IAAIC,8BAA8B,GAAG,CAAC;EACtC,IAAIC,cAAc;EAClB,IAAIC,wBAAwB;EAE5BT,CAAC,CAACE,QAAQ,CAAC,CAACQ,KAAK,CAAC,YAAM;IACtB,IAAMC,IAAI,GAAGT,QAAQ,CAACU,eAAe;IAErCP,UAAU,GAAGH,QAAQ,CAACW,aAAa,CAAC,yBAAyB,CAAC;IAE9DL,cAAc,GAAGN,QAAQ,CAACW,aAAa,CAAC,8BAA8B,CAAC;IACvE,IAAI,CAACL,cAAc,EAAE;IAErBC,wBAAwB,GAAGP,QAAQ,CAACW,aAAa,CAAC,yCAAyC,CAAC;IAC5F,IAAI,CAACJ,wBAA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;QACtEQ,oBAAoB,CAAC,CAAC;MACxB;IACF;IACA;IAAA,KACK,IAAIY,EAAE,GAAGvB,aAAa,EAAE;MAC3B;IAAA;;IAGF;IACAA,aAAa,GAAGuB,EAAE,IAAI,CAAC,GAAG,CAAC,GAAGA,EAAE;EAElC;AACF,CAAC,EAAEE,MAAM,EAAE5B,MAAM,EAAEC,QAAQ,CAAC,C;;;;;;;;;;;;;;;AC/E5B,iEAAe,qBAAuB,qBAAqB,E;;;;;;;;;;;;;;;ACA3D,iEAAe,qBAAuB,+BAA+B,E;;;;;;;;;;;;ACArE;;;;;;;;;;;ACAA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0E;;;;;;;;;;;ACvBA,wB;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA,wCAAwC,yCAAyC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,sDAAsD,kBAAkB;WACxE;WACA,+CAA+C,cAAc;WAC7D,E;;;;;WCNA,8B;;;;;;;;;;ACAA;;AAEA,IAAIH,MAAM,GAAG,KAAK;;AAElB;AACA+B,mBAAO,CAAC,oGAA+C,CAAC;;AAExD;AACAA,0EAA6D;AAG7DA,mBAAO,CAAC,+EAA6B,CAAC,C","file":"js/tsai-city-annual-report.theme.min.js","sourcesContent":["/*** IMPORTS FROM imports-loader ***/\n\nvar define = false;\n\n(($, window, document, undefined) => {\n let lastScrollTop = 0;\n let nodeHeader;\n let nodeHeaderHeight = 0;\n let betterBookNavigationTreeHeight = 0;\n let bookTreeToggle;\n let betterBookNavigationTree;\n\n $(document).ready(() => {\n const ROOT = document.documentElement;\n\n nodeHeader = document.querySelector('[data-js=\"node-header\"]');\n\n bookTreeToggle = document.querySelector('[data-js=\"book-tree-toggle\"]');\n if (!bookTreeToggle) return;\n\n betterBookNavigationTree = document.querySelector('[data-js=\"better-book-navigation-tree\"]');\n if (!betterBookNavigationTree) return;\n\n bookTreeToggle.addEventListener('click', handleBookTreeToggle, false);\n\n ROOT.style.setProperty('--better-book-toggle-height', `${ bookTreeToggle.clientHeight }px`);\n\n window.addEventListener('resize', () => {\n nodeHeaderHeight = nodeHeader.clientHeight;\n betterBookNavigationTreeHeight = betterBookNavigationTree.clientHeight;\n }, false);\n\n window.dispatchEvent(new Event('resize'));\n });\n\n function handleBookTreeToggle(event) {\n // Navigation is opened, close it.\n if (bookTreeToggle.getAttribute('aria-expanded') == 'true') {\n // Let screen readers know the button is not expanded.\n bookTreeToggle.setAttribute('aria-expanded', 'false');\n\n // Hide the site nav from the user and screen readers.\n betterBookNavigationTree.setAttribute('aria-hidden', 'true');\n\n window.removeEventListener(\"scroll\", handleScroll, false);\n }\n // Navigation is closed, open it.\n else {\n // Let screen readers know the button is expanded.\n bookTreeToggle.setAttribute('aria-expanded', 'true');\n\n // Show the site nav from the user and screen readers.\n betterBookNavigationTree.setAttribute('aria-hidden', 'false');\n\n window.addEventListener(\"scroll\", handleScroll, false);\n }\n }\n\n /**\n * Handles scrolling\n */\n function handleScroll() {\n let st = document.documentElement.scrollTop;\n\n // downscroll code\n if (st > lastScrollTop) {\n if (st > (nodeHeaderHeight / 2) - (betterBookNavigationTreeHeight / 2)) {\n handleBookTreeToggle();\n }\n }\n // upscroll code\n else if (st < lastScrollTop) {\n // Do nothing\n }\n\n // For Mobile or negative scrolling\n lastScrollTop = st <= 0 ? 0 : st;\n\n }\n})(jQuery, window, document);\n","export default __webpack_public_path__ + \"images/close.svg\";","export default __webpack_public_path__ + \"images/menu-with-arrow.svg\";","// extracted by mini-css-extract-plugin\nexport {};","var map = {\n\t\"./close.svg\": \"./src/images/close.svg\",\n\t\"./menu-with-arrow.svg\": \"./src/images/menu-with-arrow.svg\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"./src/images sync recursive \\\\.(gif|png|jpe?g|svg)$\";","module.exports = jQuery;","// 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","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// 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};","__webpack_require__.p = \"../\";","/*** IMPORTS FROM imports-loader ***/\n\nvar define = false;\n\n// Require the stlye files inside the \"src/scss\" folder.\nrequire('SRC_STYLES/tsai-city-annual-report.theme.scss');\n\n// Require all static images inside the \"src/images\" folder.\nrequire.context('SRC_IMAGES', true, /\\.(gif|png|jpe?g|svg)$/);\n\n\nrequire('./partials/book-tree-toggle');\n"],"sourceRoot":""}