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://carbon-to-sea/./src/js/blocks/accordion.js","webpack://carbon-to-sea/./src/js/blocks/card-slider.js","webpack://carbon-to-sea/./src/js/blocks/event-card.js","webpack://carbon-to-sea/./src/js/blocks/flip-card.js","webpack://carbon-to-sea/./src/js/blocks/video-lightbox.js","webpack://carbon-to-sea/./src/js/faq.js","webpack://carbon-to-sea/./src/js/header.js","webpack://carbon-to-sea/./src/js/image-gallery.js","webpack://carbon-to-sea/./src/js/modal.js","webpack://carbon-to-sea/./src/js/nav.js","webpack://carbon-to-sea/./src/js/password-protection.js","webpack://carbon-to-sea/./src/js/subscribe.js","webpack://carbon-to-sea/./src/js/writing.js","webpack://carbon-to-sea/webpack/bootstrap","webpack://carbon-to-sea/webpack/runtime/compat get default export","webpack://carbon-to-sea/webpack/runtime/define property getters","webpack://carbon-to-sea/webpack/runtime/hasOwnProperty shorthand"],"sourcesContent":["window.archivePage = class {\n /**\n * Archive page\n * @param {string} permalink\n */\n constructor(permalink) {\n this.permalink = permalink;\n this.searchInput = document.getElementById('search-input');\n this.searchForm = this.searchInput ? this.searchInput.closest('form') : false;\n this.possibleTaxonomiesCheckboxes = document.querySelectorAll('.categories-bar[data-archive-taxonomy]');\n this.possibleTaxonomiesSelects = document.querySelectorAll('.categories-bar[data-archive-taxonomy-select]');\n this.checkboxes = [];\n this.selects = [];\n this.possibleTaxonomiesCheckboxes.forEach((taxonomy) => {\n this.checkboxes[taxonomy.dataset.archiveTaxonomy] = taxonomy.querySelectorAll('input[type=\"checkbox\"]');\n });\n this.possibleTaxonomiesSelects.forEach((taxonomy) => {\n this.selects[taxonomy.dataset.archiveTaxonomySelect] = taxonomy.querySelectorAll('select');\n });\n this.mainContainer = document.querySelector('.main-news-container');\n this.resultsHolder = document.querySelector('.results-holder');\n this.pagination = document.querySelector('.pagination-holder');\n this.isLoading = false;\n this.loading = document.getElementById('loading');\n this.loading.style.display = 'none';\n this.ajaxifyLinks();\n if (this.checkboxes) {\n this.addTaxonomyCheckboxListeners();\n }\n if (this.selects) {\n this.addTaxonomySelectListeners();\n }\n if (this.searchForm) {\n this.searchInput.addEventListener('keyup', (e) => {\n if ('Enter' === e.key || 13 === e.keyCode) {\n e.preventDefault();\n this.eventLoad();\n }\n });\n this.searchForm.addEventListener('submit', (e) => {\n e.preventDefault();\n this.eventLoad();\n });\n }\n }\n\n /**\n * Adjust loading\n * @param {Boolean} show\n */\n adjustLoading(show) {\n if (show) {\n this.loading.style.display = 'flex';\n this.mainContainer.classList.add('loading');\n this.isLoading = true;\n } else {\n this.loading.style.display = 'none';\n this.mainContainer.classList.remove('loading');\n this.isLoading = false;\n }\n }\n\n /**\n * Setup click event listeners for links\n */\n ajaxifyLinks() {\n const links = document.querySelectorAll('.pagination-holder a');\n links.forEach((link) => {\n link.addEventListener('click', (event) => {\n event.preventDefault();\n this.resultsHolder.scrollIntoView({ behavior: 'smooth' });\n const ajaxLink = this.addUrlParams(event.target.href);\n this.makeRequest(ajaxLink, {}, this.loadNewEntries);\n return false;\n });\n });\n }\n\n /**\n * Handles link url parameters\n * @return {void}\n */\n eventLoad() {\n if (this.isLoading) {\n return false;\n }\n const ajaxLink = this.addUrlParams(this.permalink);\n this.makeRequest(ajaxLink, {}, this.loadNewEntries);\n }\n\n /**\n * Add checkbox listeners\n */\n addTaxonomyCheckboxListeners() {\n Object.entries(this.checkboxes).forEach(([taxonomy, checkboxes]) => {\n checkboxes.forEach((checkbox) => {\n checkbox.addEventListener('change', (event) => {\n event.preventDefault();\n if (this.isLoading) {\n return false;\n }\n const ajaxLink = this.addUrlParams(this.permalink);\n this.makeRequest(ajaxLink, {}, this.loadNewEntries);\n return false;\n });\n });\n });\n }\n\n /**\n * Add select listeners\n */\n addTaxonomySelectListeners() {\n Object.entries(this.selects).forEach(([taxonomy, selects]) => {\n selects.forEach((select) => {\n select.addEventListener('change', (event) => {\n event.preventDefault();\n if (this.isLoading) {\n return false;\n }\n const ajaxLink = this.addUrlParams(this.permalink);\n this.makeRequest(ajaxLink, {}, this.loadNewEntries);\n return false;\n });\n });\n });\n }\n\n /**\n * Add Url parameters.\n * @param {string} url\n * @return {string} | The new Url with parameters.\n */\n addUrlParams(url) {\n const search = this.searchInput ? this.searchInput.value : '';\n let newUrl = this.updateQueryStringParameter(url, 's', search);\n\n if (this.checkboxes) {\n Object.entries(this.checkboxes).forEach(([taxonomy, checkboxes]) => {\n const terms = Array.from(checkboxes)\n .filter((cb) => cb.checked)\n .map((cb) => cb.value);\n newUrl = this.updateQueryStringParameter(newUrl, taxonomy, terms.join(','));\n });\n }\n if (this.selects) {\n Object.entries(this.selects).forEach(([taxonomy, selects]) => {\n const terms = Array.from(selects)\n .filter((s) => s.value)\n .map((s) => s.value);\n newUrl = this.updateQueryStringParameter(newUrl, taxonomy, terms.join(','));\n });\n }\n return newUrl;\n }\n\n /**\n * Update query string parameter\n * @param {string} uri\n * @param {string} key\n * @param {string} value\n * @return {string}\n */\n updateQueryStringParameter(uri, key, value) {\n uri = uri.replace('&', '&');\n const re = new RegExp('([?&])' + key + '=.*?(&|#|$)', 'i');\n if (value === undefined || value === null || value === '') {\n if (uri.match(re)) {\n return uri\n .replace(re, '$1$2')\n .replace(/[?&]$/, '')\n .replaceAll(/([?&])&+/g, '$1')\n .replace(/[?&]#/, '#');\n } else {\n return uri;\n }\n } else {\n if (uri.match(re)) {\n return uri.replace(re, '$1' + key + '=' + value + '$2');\n } else {\n let hash = '';\n if (-1 !== uri.indexOf('#')) {\n hash = uri.replace(/.*#/, '#');\n uri = uri.replace(/#.*/, '');\n }\n const separator = -1 !== uri.indexOf('?') ? '&' : '?';\n return uri + separator + key + '=' + value + hash;\n }\n }\n }\n\n /**\n * Remove query string parameter\n * @param {string} uri\n * @param {string} key\n * @return {string}\n */\n removeQueryStringParameter(uri, key) {\n uri = uri.replace('&', '&');\n const re = new RegExp('([?&])' + key + '=.*?(&|#|$)', 'i');\n if (uri.match(re)) {\n return uri\n .replace(re, '$1$2')\n .replace(/[?&]$/, '')\n .replaceAll(/([?&])&+/g, '$1')\n .replace(/[?&]#/, '#');\n } else {\n return uri;\n }\n }\n\n /**\n * Make request, sets request headers.\n * @param {string} url\n * @param {string} data\n * @param {function} callback\n */\n makeRequest(url, data = {}, callback) {\n this.adjustLoading(true);\n const xhr = new XMLHttpRequest();\n xhr.open('POST', url, true);\n xhr.setRequestHeader('Content-Type', 'application/json');\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n xhr.onreadystatechange = () => {\n if (xhr.readyState === 4 && xhr.status === 200) {\n const responseJson = JSON.parse(xhr.responseText);\n callback(this, responseJson, url);\n }\n };\n xhr.send(data);\n }\n\n /**\n * Load new entries\n * @param {object} ap\n * @param {object} response\n * @param {string} url\n */\n loadNewEntries(ap, response, url = false) {\n ap.adjustLoading(false);\n window.history.pushState({ path: url }, response.title, url);\n ap.resultsHolder.innerHTML = response.results;\n ap.ajaxifyLinks();\n if (ap.searchInput) {\n ap.searchInput.value = response.search ? response.search : '';\n }\n if (ap.checkboxes) {\n Object.entries(ap.checkboxes).forEach(([taxonomy, checkboxes]) => {\n checkboxes.forEach((checkbox) => {\n checkbox.checked = response[taxonomy].includes(checkbox.value);\n });\n });\n }\n if (ap.selects) {\n Object.entries(ap.selects).forEach(([taxonomy, selects]) => {\n selects.forEach((select) => {\n select.value = response[taxonomy].includes(select.value) ? select.value : '';\n });\n });\n }\n ap.pagination.innerHTML = response.pagination;\n ap.ajaxifyLinks();\n document.body.scrollTop = document.documentElement.scrollTop = 0;\n }\n};\n","document.addEventListener('DOMContentLoaded', () => {\n const accordions = document.querySelectorAll('.accordion');\n\n accordions.forEach((accordion) => {\n const button = accordion.querySelector('.accordion-button');\n const content = accordion.querySelector('.expanded-content');\n const contentInner = accordion.querySelector('.expanded-content-inner');\n button.addEventListener('click', () => {\n if (accordion.classList.contains('expanded')) {\n accordion.classList.remove('expanded');\n content.style.height = '0px';\n } else {\n accordion.classList.add('expanded');\n content.style.height = contentInner.offsetHeight + 'px';\n }\n });\n });\n});\n","document.addEventListener('DOMContentLoaded', function() {\n const cardSliderBlocks = document.querySelectorAll('.card-slider-block');\n cardSliderBlocks.forEach(function(cardSliderBlock) {\n let slidePageCount = null;\n let currentSlide = 0;\n\n slidePageCount = setSlidePages(cardSliderBlock);\n window.addEventListener('resize', function() {\n slidePageCount = setSlidePages(cardSliderBlock);\n });\n\n const prevControl = cardSliderBlock.querySelector('.slider-control.prev');\n const nextControl = cardSliderBlock.querySelector('.slider-control.next');\n\n prevControl.addEventListener('click', function() {\n currentSlide = updateSlide(Math.max(0, currentSlide - 1), cardSliderBlock, slidePageCount);\n });\n nextControl.addEventListener('click', function() {\n currentSlide = updateSlide(Math.min(currentSlide + 1, slidePageCount - 1), cardSliderBlock, slidePageCount);\n });\n });\n});\n\n/**\n * Update Slide\n * @param {number} index\n * @param {HTMLElement} cardSliderBlock\n * @param {number} slidePageCount\n * @return {number}\n */\nfunction updateSlide(index, cardSliderBlock, slidePageCount) {\n const cardSlider = cardSliderBlock.querySelector('.card-slider');\n const firstSlide = cardSlider.children[0];\n firstSlide.style.marginLeft = `calc(${index * -100}% - calc(32px * ${index}))`;\n\n cardSliderBlock.querySelectorAll('.pagination-btn').forEach(function(btn) {\n btn.classList.remove('active');\n });\n cardSliderBlock.querySelector(`.pagination-btn[data-index=\"${index}\"]`).classList.add('active');\n\n const prevControl = cardSliderBlock.querySelector('.slider-control.prev');\n const nextControl = cardSliderBlock.querySelector('.slider-control.next');\n prevControl.classList.remove('disabled');\n nextControl.classList.remove('disabled');\n\n if (index == 0) {\n prevControl.classList.add('disabled');\n }\n if (index == slidePageCount - 1) {\n nextControl.classList.add('disabled');\n }\n\n // Not sure why we are returning an index that looks like it was never update...\n return index;\n}\n\n/**\n * Set slide pages\n * @param {HTMLElement} cardSliderBlock\n * @return {number} | Returns slidePageCount\n */\nfunction setSlidePages(cardSliderBlock) {\n const cardSlider = cardSliderBlock.querySelector('.card-slider');\n const slides = Array.from(cardSlider.querySelectorAll('.slider-card'));\n const slideClones = slides.map((slide) => slide.cloneNode(true));\n\n cardSlider.innerHTML = '';\n\n const slidePageColumns = getSlidePageColumns(cardSliderBlock);\n const slidePageRows = getSlidePageRows(cardSliderBlock);\n const slidePageCount = Math.ceil(slides.length / (slidePageColumns * slidePageRows));\n const slideCount = slidePageColumns * slidePageRows;\n\n let slideIndex = 0;\n for (let i = 0; i < slidePageCount; i++) {\n const slidePage = document.createElement('div');\n slidePage.className = `slider-page grid col-gap-l row-gap-m ${slidePageColumns > 1 ? 'sm:grid-cols-2 ' : ''} md:grid-cols-${slidePageColumns}`;\n for (let j = 0; j < slideCount; j++) {\n const slide = slideClones[slideIndex];\n if (slide) {\n slidePage.appendChild(slide);\n }\n slideIndex++;\n }\n cardSlider.appendChild(slidePage);\n }\n\n const sliderControls = cardSliderBlock.querySelector('.card-slider-controls');\n const prevControl = cardSliderBlock.querySelector('.slider-control.prev');\n const pagination = cardSliderBlock.querySelector('.slider-pagination');\n\n if (slidePageCount == 1) {\n sliderControls.classList.add('hidden');\n } else {\n sliderControls.classList.remove('hidden');\n prevControl.classList.add('disabled');\n\n pagination.innerHTML = '';\n for (let index = 0; index < slidePageCount; index++) {\n const li = document.createElement('li');\n li.innerHTML = `<button class=\"pagination-btn\" data-index=\"${index}\">${index + 1}</button>`;\n const btn = li.querySelector('button');\n btn.addEventListener('click', function() {\n updateSlide(index, cardSliderBlock, slidePageCount);\n });\n if (index == 0) {\n btn.classList.add('active');\n }\n pagination.appendChild(li);\n }\n }\n\n return slidePageCount;\n}\n\n/**\n * Get slide page columms\n * @param {HTMLElement} cardSliderBlock\n * @return {number}\n */\nfunction getSlidePageColumns(cardSliderBlock) {\n const col = parseInt(cardSliderBlock.dataset.columnNumber);\n if (window.innerWidth < 768) {\n return 1;\n }\n if (window.innerWidth < 960) {\n return col > 1 ? 2 : 1;\n }\n return col;\n}\n\n/**\n * Get slider page rows\n * @param {HTMLElement} cardSliderBlock\n * @return {number}\n */\nfunction getSlidePageRows(cardSliderBlock) {\n const row = parseInt(cardSliderBlock.dataset.rowNumber);\n if (window.innerWidth < 768) {\n return 3;\n }\n return row;\n}\n","document.addEventListener('DOMContentLoaded', () => {\n const eventLists = document.querySelectorAll('.event-list');\n\n eventLists.forEach((eventList) => {\n const minRows = parseInt(eventList.dataset.minrows);\n if (isNaN(minRows)) return;\n for (const [i, row] of Object.entries(eventList.children)) {\n if (i < minRows) {\n row.classList.add('event-row-min'); // All rows up to the minimum set are always on.\n }\n }\n const button = eventList.querySelector('.event-list-toggle-btn'); // Then use CSS to set the container eventlist height\n button.addEventListener('click', () => {\n if (eventList.classList.contains('collapsed')) {\n eventList.classList.remove('collapsed');\n button.textContent = 'Show less';\n } else {\n eventList.classList.add('collapsed');\n button.textContent = 'Show more';\n scrollIntoViewWithOffset(eventList, 200); // 200px, magic number but seems to work\n }\n });\n });\n});\n\n/**\n * @description Sets a scrolling animation for an element, with an offset\n * @param {Element} selector - The Element to scroll to\n * @param {number} offset - Offset from the top, in px\n */\nfunction scrollIntoViewWithOffset(selector, offset) {\n window.scrollTo({\n behavior: 'instant',\n top:\n selector.getBoundingClientRect().top -\n document.body.getBoundingClientRect().top -\n offset,\n });\n}\n","document.addEventListener('DOMContentLoaded', () => {\n const flipCards = document.querySelectorAll('.flip-card');\n if (flipCards.length < 1) return;\n flipCards.forEach((flipCard) => {\n flipCard.addEventListener('click', () => {\n flipCard.classList.toggle('flipped');\n });\n });\n});\n","document.addEventListener('DOMContentLoaded', function() {\n const videoLightboxHolders = document.querySelectorAll('.video-lightbox-holder');\n videoLightboxHolders.forEach(function(holder) {\n const openVideoDialog = holder.querySelector('.open-video-dialog');\n const videoLightbox = holder.querySelector('.video-lightbox');\n const video = videoLightbox.querySelector('video');\n const closeVideoDialog = videoLightbox.querySelector('.close-video');\n const closeBtn = videoLightbox.querySelector('.button-close-video');\n\n openVideoDialog.addEventListener('click', function() {\n videoLightbox.showModal();\n video.play();\n });\n\n closeVideoDialog.addEventListener('click', function() {\n videoLightbox.close();\n });\n closeBtn.addEventListener('click', function() {\n videoLightbox.close();\n });\n\n videoLightbox.addEventListener('close', function() {\n video.pause();\n });\n });\n});\n","document.addEventListener('DOMContentLoaded', function() {\n const faqItems = document.querySelectorAll('.faq-item');\n faqItems.forEach(function(item) {\n item.addEventListener('click', function() {\n faqItems.forEach(function(item) {\n item.classList.remove('open');\n });\n item.classList.toggle('open');\n });\n });\n});\n","document.addEventListener('DOMContentLoaded', function() {\n // Grab main elements\n const siteHeader = document.getElementById('site-header');\n const navToggle = document.getElementById('main-navigation-toggle');\n // Get the main nav links for both the left and right navigation\n const navLinks = document.querySelectorAll('.main-navigation > div > ul > li.menu-item-has-children');\n\n // Check if the menu card exists, duplicate it and insert it after the right nav for mobile\n const menuCard = document.querySelector('.menu-card');\n if (menuCard) {\n const mobileMenuCard = menuCard.cloneNode(true);\n mobileMenuCard.classList.add('mobile-menu-card');\n document.querySelector('.header-nav').appendChild(mobileMenuCard);\n }\n\n /* Mobile Menu Toggle */\n if (navToggle) {\n navToggle.addEventListener('click', () => {\n const scrollTop = window.scrollY !== undefined ? window.scrollY : (document.documentElement || document.body.parentNode || document.body).scrollTop;\n if (siteHeader.classList.contains('toggled')) {\n siteHeader.classList.remove('toggled');\n document.body.style.top = 'unset';\n document.body.classList.remove('mobile-stop-scroll');\n if (document.body.dataset.scrollAmount) window.scrollBy(0, document.body.dataset.scrollAmount);\n } else {\n siteHeader.classList.add('toggled');\n document.body.style.top = '-' + (80 + scrollTop) + 'px';\n document.body.dataset.scrollAmount = scrollTop;\n document.body.classList.add('mobile-stop-scroll');\n }\n });\n }\n\n navLinks.forEach((link) => {\n // Remove the anchor tag from the parent link if it's a menu expand link\n const aTag = link.querySelector('a');\n if (aTag.getAttribute('href') === '#') aTag.removeAttribute('href');\n\n const expandButton = document.createElement('button');\n expandButton.classList.add('nav-expand-button');\n expandButton.innerHTML = '<span class=\"first-expand\"></span><span class=\"second-expand\"></span>';\n expandButton.addEventListener('click', () => link.classList.toggle('expanded'));\n\n link.insertBefore(expandButton, aTag.nextSibling);\n });\n\n // Observer for accent dividers\n const accentDividers = document.querySelectorAll('.accent-divider');\n if (accentDividers) {\n const dividerObserever = new IntersectionObserver((entries, observer) => {\n if (document.body.classList.contains('preloader-hidden')) {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n entry.target.classList.add('animated');\n }\n });\n }\n });\n accentDividers.forEach((accent) => dividerObserever.observe(accent));\n }\n\n // Smooth scroll to anchor links\n siteHeader.querySelectorAll('a[href*=\"#\"]').forEach((anchor) => {\n const anchorId = `#${anchor.getAttribute('href').split('#')[1]}`;\n const elementInPage = document.querySelector(anchorId);\n if (elementInPage) {\n anchor.addEventListener('click', function(e) {\n e.preventDefault();\n // Add the timeout, sometimes in mobile it doesn't work without it ¯\\_(ツ)_/¯\n setTimeout(() => {\n elementInPage.scrollIntoView({\n behavior: 'smooth',\n alignTop: true,\n\n });\n }, 10);\n // close menu if open\n if (siteHeader.classList.contains('mega-menu-active') || siteHeader.classList.contains('toggled')) {\n document.querySelector('.mega-menu-back-button').click();\n navToggle.click();\n siteHeader.classList.remove('toggled');\n }\n });\n } else {\n // go to the page if the anchor link is not in the page\n anchor.addEventListener('click', function(e) {\n window.location.href = anchor.getAttribute('href');\n });\n }\n });\n\n // mega menus\n let clickOutsideMegaMenu = null;\n const megaMenus = document.querySelectorAll('.mega-menu');\n megaMenus.forEach((menu) => {\n menu.firstElementChild.addEventListener('click', (e) => {\n menu.classList.toggle('active');\n\n // toggle mega menu class on site header to disable hover menus\n siteHeader.classList.toggle('mega-menu-active');\n\n // close other mega menus if open\n megaMenus.forEach((otherMenu) => {\n if (otherMenu != menu) {\n otherMenu.classList.remove('active');\n }\n });\n\n // if menu is open, close it when clicking outside of it\n if (clickOutsideMegaMenu == null) {\n clickOutsideMegaMenu = function(e) {\n if (e.target.closest('.mega-menu') != menu) {\n menu.classList.remove('active');\n siteHeader.classList.remove('mega-menu-active');\n document.removeEventListener('click', clickOutsideMegaMenu);\n }\n };\n }\n if (menu.classList.contains('active')) {\n document.addEventListener('click', clickOutsideMegaMenu);\n } else {\n document.removeEventListener('click', clickOutsideMegaMenu);\n }\n });\n });\n // Add the back button on the mega menu it opens on mobile\n const megaMenuBackButton = document.createElement('button');\n megaMenuBackButton.classList.add('mega-menu-back-button');\n megaMenuBackButton.innerHTML = `<span class=\"icon back-button-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\">\n<path d=\"M15.41 16.59L10.83 12L15.41 7.41L14 6L8.00003 12L14 18L15.41 16.59Z\" fill=\"#162326\"/>\n</svg></span><span>Back</span>`;\n siteHeader.appendChild(megaMenuBackButton);\n\n megaMenuBackButton.addEventListener('click', () => {\n // remove the expanded class from the parent menu item\n const menuToClose = document.querySelector('.mega-menu.expanded');\n if (menuToClose) {\n menuToClose.querySelector('.sub-menu').closest('.menu-item-has-children').classList.remove('expanded');\n }\n });\n // add swipe right to close mega menu when expanded on mobile\n let touchstartX = 0;\n let touchendX = 0;\n\n /**\n * Handle touch gestures\n */\n function handleGesture() {\n if (touchendX < touchstartX - 50) {\n // Swipe left\n }\n if (touchendX > touchstartX + 50) {\n // Swipe right\n document.querySelector('.sub-menu').closest('.menu-item-has-children').classList.remove('expanded');\n }\n }\n\n document.addEventListener('touchstart', (event) => {\n touchstartX = event.changedTouches[0].screenX;\n });\n\n document.addEventListener('touchend', (event) => {\n touchendX = event.changedTouches[0].screenX;\n handleGesture();\n });\n});\n","document.addEventListener('DOMContentLoaded', () => {\n const galleries = document.querySelectorAll('.wp-block-gallery');\n if (!galleries.length) return;\n galleries.forEach((gallery) => {\n const images = gallery.querySelectorAll('.wp-block-image');\n if (!images.length) return;\n const slider = document.createElement('div');\n slider.classList.add('gallery-slider');\n gallery.appendChild(slider);\n\n // Create the active image container\n const activeFigure = document.createElement('figure');\n activeFigure.classList.add('active-image');\n const activeImg = document.createElement('img');\n const activeCaption = document.createElement('figcaption');\n activeFigure.appendChild(activeImg);\n activeFigure.appendChild(activeCaption);\n gallery.insertBefore(activeFigure, slider);\n\n images.forEach((image, i) => {\n // Set active image on page load\n if (i === 0) {\n image.classList.add('active');\n activeImg.src = image.querySelector('img').src;\n activeCaption.textContent = image.querySelector('figcaption')?.textContent || '';\n }\n slider.appendChild(image);\n\n // Check if there's a caption, or create an empty one if not for consistency\n let imgCaption = image.querySelector('figcaption'); // grab the caption element\n if (!imgCaption) { // if there's no caption, create one\n imgCaption = document.createElement('figcaption');\n image.appendChild(imgCaption);\n }\n\n // Update the active image's src and caption on click\n image.addEventListener('click', () => {\n if (image.classList.contains('active')) return;\n\n // Remove 'active' class from currently active image\n const activeImage = gallery.querySelector('.wp-block-image.active');\n if (activeImage) {\n activeImage.classList.remove('active');\n }\n\n image.classList.add('active');\n activeImg.src = image.querySelector('img').src;\n activeCaption.textContent = image.querySelector('figcaption')?.textContent || '';\n });\n });\n\n // If there's only 1 image, don't show the gallery slider\n if (images.length === 1) {\n slider.style.display = 'none';\n return;\n }\n\n // Arrow controls for the gallery only if there's more than 4 images\n if (images.length <= 4) {\n slider.classList.add('few-images');\n return;\n }\n\n const buttonControls = document.createElement('div');\n buttonControls.classList.add('button-controls');\n const prev = document.createElement('button');\n prev.classList.add('gallery-prev', 'arrow');\n prev.disabled = true; // Disable the previous button on page load since it's scrolled to the left already\n buttonControls.appendChild(prev);\n const next = document.createElement('button');\n next.classList.add('gallery-next', 'arrow');\n buttonControls.appendChild(next);\n gallery.appendChild(buttonControls);\n const card = slider.querySelector('.wp-block-image');\n const cardWidth = card.offsetWidth;\n\n // Arrow control functionality\n prev.addEventListener('click', () => {\n slider.scrollBy({\n left: -cardWidth,\n behavior: 'smooth',\n });\n });\n\n next.addEventListener('click', () => {\n slider.scrollBy({\n left: cardWidth,\n behavior: 'smooth',\n });\n });\n\n slider.addEventListener('scroll', () => {\n // Disable buttons when at the end of the slider\n const maxScrollLeft = slider.scrollWidth - slider.clientWidth;\n prev.disabled = slider.scrollLeft === 0;\n next.disabled = slider.scrollLeft === maxScrollLeft;\n });\n });\n});\n","document.addEventListener('DOMContentLoaded', function() {\n const setupModals = () => {\n const modalTriggers = document.querySelectorAll('.modal-trigger');\n const modal = document.querySelector('.modal');\n const modalClose = document.querySelector('.modal-close');\n if (!modalTriggers || !modal || !modalClose) return;\n modalTriggers.forEach(function(trigger) {\n trigger.addEventListener('click', function() {\n document.body.classList.add('modal-open');\n modal.classList.remove('hidden');\n });\n });\n modalClose.addEventListener('click', function() {\n document.body.classList.remove('modal-open');\n modal.classList.add('hidden');\n });\n };\n setupModals();\n});\n","document.addEventListener('DOMContentLoaded', function() {\n // Navigation\n const setupNav = () => {\n const subNav = document.querySelector('.sub-navigation');\n if (!subNav) return;\n const subNavLabel = subNav.querySelector('#current_section');\n const subNavToggle = document.querySelector('.sub-navigation__toggle');\n subNavToggle.addEventListener('click', function() {\n subNav.classList.toggle('open');\n });\n const anchorElements = document.querySelectorAll('.anchor-section[id]');\n const navItems = document.querySelectorAll(\n '.sub-navigation-dropdown ul.menu > li > a',\n );\n const desktopNavItems = document.querySelectorAll(\n '#site-navigation ul.menu > li > a',\n );\n // Map nav items to anchor elements\n const anchorMap = {}; // Map of anchor elements to nav items (string)\n const desktopAnchorMap = {}; // Map of anchor elements to nav items (element)\n anchorElements.forEach((element) => {\n const id = element.getAttribute('id');\n const navItem = document.querySelector(\n `.sub-navigation-dropdown ul li a[href=\"/#${id}\"]`,\n );\n const desktopNavItem = document.querySelector(\n `#site-navigation ul li a[href=\"/#${id}\"]`,\n );\n anchorMap[id] = navItem.innerText;\n desktopAnchorMap[id] = desktopNavItem;\n });\n // Setup IntersectionObserver for anchorElements\n const observer = new IntersectionObserver(\n (entries) => {\n entries.forEach((entry) => {\n const id = entry.target.getAttribute('id');\n if (entry.intersectionRatio > 0 && anchorMap[id]) {\n subNavLabel.innerHTML = anchorMap[id];\n desktopNavItems.forEach((element) => {\n element.parentNode.classList.remove('in--view');\n });\n desktopAnchorMap[id].parentNode.classList.add('in--view');\n }\n });\n },\n { rootMargin: '0px 0px -50% 0px' },\n );\n anchorElements.forEach((element) => {\n observer.observe(element);\n });\n // Close dropdown on nav item clicks\n navItems.forEach((element) => {\n element.addEventListener('click', function() {\n subNav.classList.remove('open');\n });\n });\n };\n setupNav();\n\n // Share event listener\n const setupEventShare = () => {\n const eventShare = document.querySelector('.event-share-cp');\n if (!eventShare) return;\n eventShare.addEventListener('click', function() {\n navigator.clipboard.writeText(window.location.href).then(function() {\n eventShare.innerText = 'Link Copied';\n setTimeout(() => {\n eventShare.innerText = 'Share Event';\n }, 2000);\n });\n });\n };\n setupEventShare();\n});\n\n","document.addEventListener('DOMContentLoaded', function() {\n const isPasswordProtected = document.querySelector(\n '.page.post-password-required',\n );\n if (!isPasswordProtected) return;\n\n const passwordForm = document.querySelector('form.post-password-form');\n if (!passwordForm) return;\n\n isPasswordProtected.classList.add('locked', 'alignfull', 'pvxl');\n\n const entryContent = document.querySelector('.entry-content');\n entryContent.classList.add('container');\n const passwordText = passwordForm.querySelector('p');\n\n // Overrides\n if (window.password_heading) {\n const passwordHeading = document.createElement('h2');\n passwordHeading.innerHTML = window.password_heading;\n entryContent.insertBefore(passwordHeading, entryContent.firstChild);\n }\n if (window.password_text) {\n passwordText.classList.add('type-l');\n passwordText.innerHTML = window.password_text;\n }\n if (window.password_hint) {\n const passwordHint = document.createElement('p');\n passwordHint.innerHTML = window.password_hint;\n passwordForm.appendChild(passwordHint);\n }\n});\n","document.addEventListener('DOMContentLoaded', function() {\n // Subscribe form\n const setupSubscribeForm = () => {\n const subscribeForm = document.querySelector('.subscribe-form');\n const formResult = document.querySelector('#form-result');\n if (!subscribeForm) return;\n subscribeForm.addEventListener('submit', function(e) {\n e.preventDefault();\n const email = subscribeForm.querySelector('input[name=\"email\"]').value;\n const name = subscribeForm.querySelector('input[name=\"name\"]').value;\n const organization = subscribeForm.querySelector('input[name=\"organization\"]').value;\n if (!email || !name || !organization) return;\n if (email.length < 3 || name.length < 3) return;\n if (!email.includes('@')) return;\n fetch(\n `https://script.google.com/macros/s/AKfycbyn6AAGdn0Ib78uLl3aedjae1F5kxVvQhfuAoBhnGasGkhBQFF-I-hJ-rvaNpRzZGpM/exec?email=${email}&name=${name}&organization=${organization}`,\n {\n method: 'POST',\n redirect: 'follow',\n },\n )\n .then((response) => response.json())\n .then((data) => console.log(data))\n .catch((error) => {\n console.error('Error:', error);\n });\n formResult.innerHTML =\n '<p class=\"mtn type-l\" style=\"color: #85C084\"><b>Thank you for subscribing!</b></p>';\n formResult.classList.remove('hidden');\n subscribeForm.classList.add('hidden');\n });\n };\n setupSubscribeForm();\n});\n","document.addEventListener('DOMContentLoaded', () => {\n // Check if slug contains writing\n if (!window.location.pathname.includes('/writing')) return;\n const authorCards = document.querySelectorAll('.author-card');\n if (authorCards.length < 1) return;\n const showMoreButton = document.querySelector('.author-cards button');\n if (!showMoreButton) return;\n const authorCardArray = Array.from(authorCards);\n const authorCardLength = authorCardArray.length;\n const authorCardLimit = 2;\n\n if (authorCardLength > authorCardLimit) {\n authorCardArray.slice(authorCardLimit).forEach((card) => {\n card.style.display = 'none';\n });\n showMoreButton.addEventListener('click', () => {\n const btnText = showMoreButton.querySelector('.btn-content');\n const btnIcon = showMoreButton.querySelector('svg');\n const hiddenCards = authorCardArray.slice(authorCardLimit).filter((card) => card.style.display === 'none');\n if (hiddenCards.length > 0) {\n authorCardArray.slice(authorCardLimit).forEach((card) => {\n card.style.display = 'block';\n card.style.visibility = 'visible';\n });\n btnText.textContent = 'Show Less Authors';\n btnIcon.style.transform = 'rotate(180deg)';\n } else {\n authorCardArray.slice(authorCardLimit).forEach((card) => {\n card.style.display = 'none';\n card.style.visibility = 'hidden';\n });\n btnText.textContent = 'Show More Authors';\n btnIcon.style.transform = 'rotate(0deg)';\n }\n });\n } else {\n showMoreButton.style.display = 'none';\n }\n});\n","// 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","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\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))"],"names":["window","archivePage","_class","permalink","_this","_classCallCheck","this","searchInput","document","getElementById","searchForm","closest","possibleTaxonomiesCheckboxes","querySelectorAll","possibleTaxonomiesSelects","checkboxes","selects","forEach","taxonomy","dataset","archiveTaxonomy","archiveTaxonomySelect","mainContainer","querySelector","resultsHolder","pagination","isLoading","loading","style","display","ajaxifyLinks","addTaxonomyCheckboxListeners","addTaxonomySelectListeners","addEventListener","e","key","keyCode","preventDefault","eventLoad","value","show","classList","add","remove","_this2","link","event","scrollIntoView","behavior","ajaxLink","addUrlParams","target","href","makeRequest","loadNewEntries","_this3","Object","entries","_ref","_ref2","_slicedToArray","checkbox","_this4","_ref3","_ref4","select","url","_this5","search","newUrl","updateQueryStringParameter","_ref5","_ref6","terms","Array","from","filter","cb","checked","map","join","_ref7","_ref8","s","uri","replace","re","RegExp","match","replaceAll","hash","indexOf","separator","_this6","data","arguments","length","undefined","callback","adjustLoading","xhr","XMLHttpRequest","open","setRequestHeader","onreadystatechange","readyState","status","responseJson","JSON","parse","responseText","send","ap","response","history","pushState","path","title","innerHTML","results","_ref9","_ref10","includes","_ref11","_ref12","body","scrollTop","documentElement","accordion","button","content","contentInner","contains","height","offsetHeight","updateSlide","index","cardSliderBlock","slidePageCount","children","marginLeft","concat","btn","prevControl","nextControl","setSlidePages","cardSlider","slides","slideClones","slide","cloneNode","slidePageColumns","col","parseInt","columnNumber","innerWidth","getSlidePageColumns","slidePageRows","row","rowNumber","getSlidePageRows","Math","ceil","slideCount","slideIndex","i","slidePage","createElement","className","j","appendChild","sliderControls","_loop","li","currentSlide","max","min","eventList","minRows","minrows","isNaN","_i","_Object$entries","_Object$entries$_i","selector","offset","textContent","scrollTo","top","getBoundingClientRect","flipCards","flipCard","toggle","holder","openVideoDialog","videoLightbox","video","closeVideoDialog","closeBtn","showModal","play","close","pause","faqItems","item","siteHeader","navToggle","navLinks","menuCard","mobileMenuCard","scrollY","parentNode","scrollAmount","scrollBy","aTag","getAttribute","removeAttribute","expandButton","insertBefore","nextSibling","accentDividers","dividerObserever","IntersectionObserver","observer","entry","isIntersecting","accent","observe","anchor","anchorId","split","elementInPage","setTimeout","alignTop","click","location","clickOutsideMegaMenu","megaMenus","menu","firstElementChild","otherMenu","removeEventListener","megaMenuBackButton","menuToClose","touchstartX","changedTouches","screenX","galleries","gallery","images","slider","activeFigure","activeImg","activeCaption","image","_image$querySelector","src","imgCaption","_image$querySelector2","activeImage","buttonControls","prev","disabled","next","cardWidth","offsetWidth","left","maxScrollLeft","scrollWidth","clientWidth","scrollLeft","modalTriggers","modal","modalClose","trigger","subNav","subNavLabel","anchorElements","navItems","desktopNavItems","anchorMap","desktopAnchorMap","element","id","navItem","desktopNavItem","innerText","intersectionRatio","rootMargin","setupNav","eventShare","navigator","clipboard","writeText","then","isPasswordProtected","passwordForm","entryContent","passwordText","password_heading","passwordHeading","firstChild","password_text","password_hint","passwordHint","subscribeForm","formResult","email","name","organization","fetch","method","redirect","json","console","log","error","pathname","authorCards","showMoreButton","authorCardArray","authorCardLength","slice","card","btnText","btnIcon","visibility","transform","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call"],"sourceRoot":""}