{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./assets/scripts/theme/mobile-menu-drawer.js","webpack:///./assets/scripts/theme/main-nav.js","webpack:///./assets/scripts/theme/resource-nav.js","webpack:///./assets/scripts/theme.js","webpack:///./assets/scripts/theme/gtm-delay-load.js","webpack:///./assets/scripts/theme/events.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","init","body","document","querySelector","button","buttonclose","overlay","drawer","subexpand","querySelectorAll","menulist","closeNav","classList","remove","setTimeout","forEach","subnav","onclick","add","window","addEventListener","sub","event","parent","target","closest","contains","closeSubMenu","openSubMenu","matches","focus","jQuery","on","each","rect","this","getBoundingClientRect","css","left","subnavStick","headerHeight","outerHeight","scroll","scrollTop","addClass","removeClass","initiateVerbal","attr","appendTo","click","slideDown","length","stop","toggleClass","slideToggle","one","documentElement","className","replace","drawerMenu","initGTMOnEvent","initGTM","currentTarget","removeEventListener","type","gtmDidInit","script","createElement","async","onload","dataLayer","push","Date","getTime","src","head","appendChild","gtmDelay","mainNav","resourceNav","showEvents","next","is","show","hide","thrice","start","data","insertBefore","events","header","toggle","scrollY","FWP","soft_refresh","enable_scroll","animate","offset","top","fn","equalHeights","maxHeight","Math","max","height","find","ready","split","includes","parts","cookie","pop","shift","getCookie","slideUp","cookieExp","now","toUTCString","parseInt"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGx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AOH,OAO5BtE,OAAO,cAAcE,MAAK,WAEtBF,OAAOI,MAAMsE,KAAK,YAAYL,kBAOlCrE,OAAO7B,UAAUwG,OAAM,WAanB,GAVA3E,OAAO,gCAAgCE,MAAK,WAExC,IADA,IAAIrB,EAAYuB,KAAKsB,UAAUkD,MAAM,OAC5B3I,EAAI,EAAGA,EAAI4C,EAAUuC,OAAQnF,IAC9B4C,EAAU5C,GAAG4I,SAAS,eACtB7E,OAAOI,MAAMZ,OAAO,mBAAmBqB,SAAShC,EAAU5C,OAMjE+D,OAAO,uBAAyB,CAUf,SARlB,SAAoBxD,GAChB,IACIsI,EADQ,KAAH,OAAQ3G,SAAS4G,QACRH,MAAN,YAAiBpI,EAAjB,MACZ,GAAqB,IAAjBsI,EAAM1D,OAAc,OAAO0D,EAAME,MAAMJ,MAAM,KAAKK,QAG1CC,CAAU,wBAGtBlF,OAAO,uBAAuBqD,OAG9BrD,OAAO,uBAAuBoD,OAIlCpD,OAAO,wBAAwBC,GAAG,SAAS,WACvCD,OAAO,uBAAuBmF,QAAQ,KAGtC,IAAIC,EAAY,IAAI3C,KAAKA,KAAK4C,MAAQ,OACtCD,EAAYA,EAAUE,cACtBnH,SAAS4G,OAAS,+CAAiDK,SAK/EpF,OAAOZ,QAAQa,GAAG,UAAS,WAEvB8C,OAIJ/C,OAAOZ,QAAQa,GAAG,eAAe,WAC7B,GAAKD,OAAO,SAAS,IAAMA,OAAO,mBAAmB,GAAI,CAErD,IAAIS,EAAgB8E,SAASvF,OAAO,aAAaU,eAAkB,EAE9DV,OAAO,SAAS,IACjBA,OAAO,QAAQM,IAAI,aAAc,IAAMG,EAAe,MAErDT,OAAO,mBAAmB,IAC3BA,OAAO,0BAA0BM,IAAI,aAAc,IAAMG,EAAe","file":"/scripts/theme.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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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","function init() {\n    const body = document.querySelector(\"body\");\n    const button = document.querySelector(\".js-toggle\");\n    const buttonclose = document.querySelector(\".js-close\");\n    const overlay = document.querySelector(\".o-drawer__overlay\");\n    const drawer = document.querySelector(\"#drawer\");\n    const subexpand = document.querySelectorAll(\".menu-expand\");\n    const menulist = document.querySelector(\"ul.mobile-menu\");\n\n    // open main nav drawer\n    const openNav = () => {\n        body.classList.add(\"show-menu\", \"visible\");\n        // drawer.setAttribute(\"open\", \"\");\n    };\n\n    // close main nav drawer\n    const closeNav = () => {\n        body.classList.remove(\"show-menu\");\n        setTimeout(() => {\n            body.classList.remove(\"visible\");\n        }, 500);\n\n        let openSubNavs = menulist.querySelectorAll(\".expanded\");\n\n        openSubNavs.forEach((subnav) => {\n            subnav.classList.remove(\"expanded\", \"visible\");\n        });\n    };\n\n    // open dropdown subnav in drawer\n    const openSubMenu = (parent) => {\n        parent.classList.add(\"expanded\", \"visible\");\n    };\n\n    // close dropdown subnav in draw\n    const closeSubMenu = (parent) => {\n        parent.classList.remove(\"expanded\");\n        setTimeout(() => {\n            parent.classList.remove(\"visible\");\n        }, 500);\n    };\n\n    button.onclick = () => {\n        openNav();\n    };\n\n    window.addEventListener(\"resize\", () => {\n        closeNav();\n    });\n\n    overlay.onclick = () => {\n        closeNav();\n    };\n\n    buttonclose.onclick = () => {\n        closeNav();\n    };\n\n    // handles subnav\n    subexpand.forEach((sub) => {\n        sub.addEventListener(\"click\", (event) => {\n            let parent = event.target.closest(\".menu-item-has-children\");\n            if (parent.classList.contains(\"expanded\")) {\n                closeSubMenu(parent);\n            } else {\n                openSubMenu(parent);\n            }\n        });\n    });\n\n    drawer.addEventListener(\"focusout\", (event) => {\n        if (drawer.matches(\":not(:focus-within)\")) {\n            // CD - taking out because right now it's not my goal. may ask DJW to walk thru this.\n            // if (event.target === buttonclose) {\n            //     let lastLinks = drawer.querySelectorAll(`\n            //     .mobile-menu__list > .menu__item:last-child > a[href],\n            //     .mobile-menu__list > .menu__item:last-child > .menu-expand,\n            //     .mobile-menu__list > .menu__item:last-child > .menu-expand:checked ~ .menu__children > .menu__item:last-child > a[href]\n            //   `);\n            //     lastLinks[lastLinks.length - 1].focus(); // focus the deepest link\n            // } else {\n                buttonclose.focus();\n            // }\n        }\n    });\n}\n\nexport { init as default };\n","function init() {\n\n    // position mega menu dropdowns relative to window\n    jQuery(window).on('load resize', function() {\n        jQuery('.o-menu__subnav-mega').each(function() {\n\n            let elem = jQuery(this).closest('.menu-item-has-children');\n            let rect = elem[0].getBoundingClientRect();\n            \n            jQuery(this).css('left', '-' + rect.left + 'px');\n            jQuery(this).css('opacity', 1);\n        });\n    })\n}\n\nexport { init as default } ","function init() {\n\n    // resources subnav\n    function subnavStick() {\n        let headerHeight = jQuery('.o-header').outerHeight() + 1;\n\n        jQuery(window).scroll(function(){\n            let air = jQuery(window).scrollTop();\n            if (air > headerHeight) {\n               jQuery('body').addClass('fixed-subnav');\n            } else {\n                jQuery('body').removeClass('fixed-subnav');\n            }\n        })\n    }\n    function openSubnav() {\n        jQuery('#subnavBrowse').stop().toggleClass('open');\n        jQuery('#subnavWrapper .resource-archive__subnav-links').stop().slideToggle(260);\n    }\n\n    if ( jQuery('#subnavWrapper').length ) {\n        subnavStick();\n\n        jQuery(window).on('resize', function() {\n            subnavStick();\n            jQuery('#subnavWrapper .resource-archive__subnav-links').attr('style', '');\n        });\n\n        jQuery('#subnavBrowse').on('click', function() {\n            openSubnav();\n        })\n    }\n\n    // resource audio navigation\n    function initiateVerbal() {\n        jQuery('.beyondwords-player').attr('id', 'beyondWords');\n        jQuery('.beyondwords-player').appendTo('#resourcePlayerWrapper')\n        jQuery('#resourcePlayerWrapper').css('display', 'inline-block');\n        \n        jQuery('body').on('click', '#resourceListen', function() {\n            jQuery('.beyondwords-player .play-pause-button').click();\n            jQuery('#beyondWords').slideDown(260);\n        });\n    }\n\n    if ( jQuery('#resourcePlayerWrapper').length ) {\n\n        // not sure if the player is always in dom on load or is inserted via js - following should catch either case\n        if ( jQuery('.beyondwords-player').length ) {\n            initiateVerbal();\n        }\n        else {\n            jQuery(document).one(\"DOMNodeInserted\", \".beyondwords-player\", function () {\n                initiateVerbal();\n            });\n        }\n    }\n\n}\n\nexport { init as default } ","import drawerMenu from './theme/mobile-menu-drawer';\nimport gtmDelay from './theme/gtm-delay-load';\nimport mainNav from './theme/main-nav';\nimport resourceNav from './theme/resource-nav';\nimport events from './theme/events';\n\n\ndocument.addEventListener('DOMContentLoaded', function () {\n    /** Address HTML & Body no-js Class */\n    (function () {\n        /** Remove .no-js */\n        // document.documentElement.classList.remove('no-js');\n        // document.body.classList.remove('no-js');\n\n        /** Replace .no-js with .js */\n        document.documentElement.className =\n            document.documentElement.className.replace('no-js', 'js');\n        document.body.className = document.body.className.replace(\n            'no-js',\n            'js'\n        );\n    })();\n\n    /** Call */\n\n    drawerMenu();\n    gtmDelay();\n    mainNav();\n    resourceNav();\n    events();\n\n});\n\nif ( !jQuery('#subnavWrapper').length ) {\n    window.addEventListener('scroll', function(){\n        if ( !jQuery('.o-menu__subnav-mega').is(':visible') ) {\n            var header = document.querySelector('.o-header');\n            header.classList.toggle(\"scrolling\", window.scrollY > 250);\n            header.classList.toggle(\"headerscroll\", window.scrollY > 400);\n        }\n    })\n}\n\njQuery(document).on('facetwp-refresh', function() {\n        \n        if ( FWP.soft_refresh == true ) {\n            FWP.enable_scroll = true;\n        } else {\n            FWP.enable_scroll = false;\n        }\n    });\n    jQuery(document).on('facetwp-loaded', function() {\n        if ( FWP.enable_scroll == true && jQuery('.article-listing').length ) {\n            jQuery('html, body').animate({ scrollTop: jQuery(\".article-listing\").offset().top }, 300);\n        }\n\n       \n    });\n\n\njQuery.fn.equalHeights = function(){\n\nlet maxHeight = 0;\n\n    jQuery(this).each(function(){\n\n        maxHeight = Math.max(jQuery(this).height(), maxHeight);\n\n    });\n\n    jQuery(this).each(function(){\n\n        jQuery(this).height(maxHeight);\n\n    });\n\n};\n\n\njQuery(\".make-grid\").each(function() {\n\n    jQuery(this).find(\".heading\").equalHeights();\n\n//jQuery(this).find(‘.card-text’).equalHeights()\n\n})\n\n\njQuery(document).ready(function () {\n\n    // test of fixing duotone bug (this is being worked on by WP, hopefully a future core update will fix)\n    jQuery(\"figure[class*='wp-duotone-']\").each(function () { // Select the element divs which has class that starts with some-class-\n        var classList = this.className.split(/\\s+/); //get a match to match the pattern wp-duotone- and extract that classname\n        for (var i = 0; i < classList.length; i++) {\n            if (classList[i].includes(\"wp-duotone\")) {\n                jQuery(this).parent('.wp-block-image').addClass(classList[i]);\n            }\n        }\n    });\n\n    // notification bar \n    if ( jQuery(\"#notification-alert\") ) {\n\n        function getCookie (name) {\n            let value = `; ${document.cookie}`;\n            let parts = value.split(`; ${name}=`);\n            if (parts.length === 2) return parts.pop().split(';').shift();\n        }\n\n        let barStatus = getCookie('apg-notification-bar');\n\n        if ( barStatus == 'offed' ) {\n            jQuery(\"#notification-alert\").hide();\n        }\n        else {\n            jQuery(\"#notification-alert\").show();\n        }\n\n        // close function\n        jQuery(\".notification__close\").on('click', function() {\n            jQuery(\"#notification-alert\").slideUp(260);\n\n            // set cookie to hide notification bar for one day\n            let cookieExp = new Date(Date.now() + 86400e3);\n            cookieExp = cookieExp.toUTCString();\n            document.cookie = 'apg-notification-bar=offed; path=/; expires=' + cookieExp;\n        });\n    }\n});\n\njQuery(window).on('resize',function () {\n    // reposition mega menu dropdown on window resize\n    mainNav();\n});\n\n// adjust content top padding on templates which previously had absolute-positioned headers (new header as of Mar 2024 is relative positioned)\njQuery(window).on('resize load', function() {\n    if ( jQuery(\".home\")[0] || jQuery(\".single-service\")[0] ){\n\n        let headerHeight = (parseInt(jQuery(\".o-header\").outerHeight())) / 2;\n\n        if ( jQuery(\".home\")[0] ) {\n            jQuery(\"main\").css(\"margin-top\", \"-\" + headerHeight + \"px\");\n        } \n        if ( jQuery(\".single-service\")[0] ) {\n            jQuery(\".single-service-header\").css(\"margin-top\", \"-\" + headerHeight + \"px\");\n        }\n    \n    }\n});","function init() {\n    document.addEventListener('DOMContentLoaded', () => {\n      /** init gtm after 3500 seconds - this could be adjusted */\n      setTimeout(initGTM, 3500);\n    });\n    document.addEventListener('scroll', initGTMOnEvent);\n    document.addEventListener('mousemove', initGTMOnEvent);\n    document.addEventListener('touchstart', initGTMOnEvent);\n    function initGTMOnEvent(event) {\n      initGTM();\n      event.currentTarget.removeEventListener(event.type, initGTMOnEvent); // remove the event listener that got triggered\n    }\n    function initGTM() {\n      if (window.gtmDidInit) {\n        return false;\n      }\n      window.gtmDidInit = true; // flag to ensure script does not get added to DOM more than once.\n      const script = document.createElement('script');\n      script.type = 'text/javascript';\n      script.async = true;\n      // ensure PageViews is always tracked (on script load)\n      script.onload = () => {\n        dataLayer.push({ event: 'gtm.js', 'gtm.start': new Date().getTime(), 'gtm.uniqueEventId': 0 });\n      };\n      script.src = 'https://www.googletagmanager.com/gtm.js?id=GTM-NKP2B3D';\n      document.head.appendChild(script);\n    }\n  }\n\n  export { init as default };\n","function init() {\n\n    // monthly listing on events archive\n    if ( jQuery('.post-type-archive-event').length ) {\n\n        // insert month headers\n        let thrice = '';\n        jQuery('.article-block-grid .m-event-card__vertical').each(function() {\n            let start = jQuery(this).data('start');\n            if ( thrice != start ) {\n                thrice = start;\n                jQuery('<h2>' + start + '</h2>').insertBefore(this);\n            }\n        });\n\n        // show ten hidden events and their month headers\n        function showEvents() {\n            jQuery('.article-block-grid .m-event-card__vertical:hidden:lt(10)').slideDown(260);\n            jQuery('.article-block-grid h2').each(function() {\n                if ( jQuery(this).next('.m-event-card__vertical').is(':visible') ) {\n                    jQuery(this).show();\n                }\n            });\n            const count = jQuery('.m-event-card__vertical:hidden').length; // count remaining hidden events\n            if ( count > 0 ) { // show load more button if hidden events remain\n                jQuery('#loadMoreEvents').css('display', 'inline-block');\n            }\n            else {\n                jQuery('#loadMoreEvents').hide();\n            }\n        }\n        // show first ten events\n        showEvents();        \n\n        // load more \n        jQuery('#loadMoreEvents').on('click', function() {\n            showEvents();\n        });\n    }\n}\n\nexport { init as default } "],"sourceRoot":""}