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,IAAI,CAACoB,EAAE,CAAE,qCAAoC,EAAE;UAACC,MAAM,EAAE,MAAM;UAAEC,SAAS,EAAE;QAAC,CAAC,CAAC;MAEhF,CAAC,MAAM;QACLzB,OAAO,CAACkB,SAAS,CAACQ,MAAM,CAAC,UAAU,CAAC;QAEpCzB,aAAa,CAACmB,OAAO,CAACC,GAAG,IAAI;UAC3BA,GAAG,CAACC,YAAY,CAAC,YAAY,EAAE,iBAAiB,CAAC;QACnD,CAAC,CAAC;QAEFnB,IAAI,CAACoB,EAAE,CAAC,qCAAqC,EAAE;UAACE,SAAS,EAAC;QAAE,CAAC,CAAC;QAC9DtB,IAAI,CAACoB,EAAE,CAAC,qCAAqC,EAAE;UAACC,MAAM,EAAE,CAAC;UAAEG,KAAK,EAAE;QAAI,CAAC,CAAC;MAC1E;IAEF,CAAC;IAED1B,aAAa,CAACmB,OAAO,CAACQ,KAAK,IAAI;MAC7BA,KAAK,CAACjC,gBAAgB,CAAC,OAAO,EAAEqB,WAAW,CAAC;IAC9C,CAAC,CAAC;EACJ,CAAC;EAEDpB,YAAY,CAACwB,OAAO,CAACpB,OAAO,IAAI;IAC9BD,QAAQ,CAACC,OAAO,CAAC;EACnB,CAAC,CAAC;AAEJ,CAAC,CAAC,C","sources":["webpack://wp-scripts-starter-theme/./blocks/team/index.scss?34b4","webpack://wp-scripts-starter-theme/webpack/bootstrap","webpack://wp-scripts-starter-theme/webpack/runtime/make namespace object","webpack://wp-scripts-starter-theme/./blocks/team/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","// 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 __esModule on exports\n__webpack_require__.r = function(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};","import './index.scss';\n\nwindow.addEventListener('load', function(){\n \n const teamSections = document.querySelectorAll('.pd-block-team')\n\n const initTeam = (section) => {\n const expandButtons = section.querySelectorAll('button.single-team-card_headshot-container')\n\n\n var mm = gsap.matchMedia()\n\n mm.add('(min-width: 992px)', () => {\n gsap.from(section.querySelectorAll('.single-team-card '), {\n scrollTrigger: {\n trigger: section,\n pin: false, // pin the trigger element while active\n start: \"top 90%\", // when the top of the trigger hits the top of the viewport\n },\n opacity: 0,\n y: 20,\n stagger: {\n each: 0.25,\n ease: \"linear\"\n }\n });\n })\n\n\n const handleClick = (e) => {\n if(!section.classList.contains('expanded')){\n section.classList.add('expanded')\n\n expandButtons.forEach(btn => {\n btn.setAttribute('aria-label', 'Collapse all bios')\n })\n gsap.to(`.team-grid-desktop .single-team-bio`, {height: \"auto\", autoAlpha: 1})\n\n } else {\n section.classList.remove('expanded')\n\n expandButtons.forEach(btn => {\n btn.setAttribute('aria-label', 'Expand all bios')\n })\n \n gsap.to('.team-grid-desktop .single-team-bio', {autoAlpha:0 })\n gsap.to('.team-grid-desktop .single-team-bio', {height: 0, delay: 0.4 })\n }\n\n }\n\n expandButtons.forEach(image => {\n image.addEventListener('click', handleClick)\n })\n }\n\n teamSections.forEach(section => {\n initTeam(section)\n })\n\n})"],"names":["window","addEventListener","teamSections","document","querySelectorAll","initTeam","section","expandButtons","mm","gsap","matchMedia","add","from","scrollTrigger","trigger","pin","start","opacity","y","stagger","each","ease","handleClick","e","classList","contains","forEach","btn","setAttribute","to","height","autoAlpha","remove","delay","image"],"sourceRoot":""}