{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/typescript/menu.tsx","webpack:///./src/typescript/main.tsx"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","r","value","n","__esModule","object","property","prototype","hasOwnProperty","p","s","e","t","Menu","init","this","handleToggle","handleShrink","handleAnchor","markActive","$","document","on","event","toggleClass","window","scroll","scrollTop","removeClass","addClass","list","each","attr","parent","next","append","location","pathname","index","element","parentsUntil","tagName","menu_1"],"mappings":"aACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ,EAAAmB,EAAA,SAAAjB,GACAY,OAAAC,eAAAb,EAAA,cAAiDkB,OAAA,KAIjDpB,EAAAqB,EAAA,SAAAlB,GACA,IAAAS,EAAAT,KAAAmB,WACA,WAA2B,OAAAnB,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAH,EAAAU,EAAAE,EAAA,IAAAA,GACAA,GAIAZ,EAAAa,EAAA,SAAAU,EAAAC,GAAsD,OAAAV,OAAAW,UAAAC,eAAAnB,KAAAgB,EAAAC,IAGtDxB,EAAA2B,EAAA,GAIA3B,IAAA4B,EAAA,cAAAC,EAAAC,EAAAT,GAAA,aAAAP,OAAAC,eAAAe,EAAA,cAAAV,OAAA,ICnEA,IAAAW,EAAA,oBAAAA,KAiDA,OA/CWA,EAAAN,UAAAO,KAAP,WAEIC,KAAKC,eACLD,KAAKE,eACLF,KAAKG,eACLH,KAAKI,cAIDN,EAAAN,UAAAS,aAAR,WACII,EAAEC,UAAUC,GAAG,QAAS,wBAAyB,SAACC,GAE9C,OADAH,EAAE,QAAQI,YAAY,2BACf,KAKPX,EAAAN,UAAAU,aAAR,WACIG,EAAEK,QAAQC,OAAO,WACkB,GAA3BN,EAAEC,UAAUM,YACZP,EAAE,kBAAkBQ,YAAY,QAEhCR,EAAE,kBAAkBS,SAAS,WAKjChB,EAAAN,UAAAW,aAAR,WACIE,EAAE,WACE,IAAIU,EAAOV,EAAE,2BACbA,EAAE,SAASW,KAAK,WACZX,EAAEL,MAAMiB,KAAK,OAAO,IAAKZ,EAAEL,MAAMkB,OAAO,OAAOC,KAAK,OAAOF,KAAK,OAChEZ,EAAEU,GAAMK,OAAO,iBAAoBf,EAAEL,MAAMiB,KAAK,MAAQ,KAASZ,EAAEL,MAAMiB,KAAK,MAAQ,kBAM1FnB,EAAAN,UAAAY,WAAR,WACIC,EAAE,WAAaC,SAASe,SAASC,SAAW,MAAMN,KAAK,SAACO,EAAOC,GAC3DnB,EAAEmB,GAASC,aAAa,OAAOT,KAAK,SAACO,EAAOC,GACjB,MAAnBA,EAAQE,SACRrB,EAAEmB,GAASV,SAAST,EAAEmB,GAASP,KAAK,SAAW,iBAKnEnB,EAjDA,GAAa7B,EAAA6B,sFCCb,IAAA6B,EAAA5D,EAAA,GAMAsC,EAAE,gBACIsB,EAAA7B,MAAOC","file":"main.min.js","sourcesContent":[" \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// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n","export class Menu {\r\n\r\n public init()\r\n {\r\n this.handleToggle();\r\n this.handleShrink();\r\n this.handleAnchor();\r\n this.markActive();\r\n }\r\n\r\n // handle handheld menu toggle\r\n private handleToggle() {\r\n $(document).on(\"click\", \".c-nav-header__toggle\", (event: JQuery.Event): boolean => {\r\n $(\"body\").toggleClass(\"c-nav-header--expanded\");\r\n return true;\r\n });\r\n }\r\n\r\n // handle logo shrink on scroll\r\n private handleShrink() {\r\n $(window).scroll(function () {\r\n if ($(document).scrollTop() == 0) {\r\n $('.c-page-header').removeClass('tiny');\r\n } else {\r\n $('.c-page-header').addClass('tiny');\r\n }\r\n });\r\n }\r\n\r\n private handleAnchor() { \r\n $(function() {\r\n var list = $('.c-anchorblock__menu ul'); \r\n $('a[id]').each(function() {\r\n $(this).attr(\"href\",\"#\"+($(this).parent(\"div\").next(\"div\").attr(\"id\")));\r\n $(list).append('