PageSourceSearch

https://www.retailtechinc.com/hubfs/hub_generated/module_assets/1/…/module_BW-Accordion-FAQ.min.js

js retailtechinc.com collected 2026-10-06 16:55:29 UTC 2,039 bytes, 2 lines download raw bytes

1var module_208249197998=void function(){function initFaqAccordion(){document.querySelectorAll(".bw-faq-accordion").forEach(function(accordion){var startOpen="true"===accordion.getAttribute("data-start-open");function getPanel(id){try{return accordion.querySelector("#"+CSS.escape(id))}catch(e){return accordion.querySelector("#"+id)}}function openPanel(panel){var reduced=window.matchMedia("(prefers-reduced-motion: reduce)").matches;panel.setAttribute("aria-hidden","false"),panel.classList.add("is-open"),reduced||(panel.style.maxHeight=panel.scrollHeight+"px",panel.addEventListener("transitionend",function onEnd(e){"max-height"===e.propertyName&&(panel.style.maxHeight="",panel.removeEventListener("transitionend",onEnd))}))}function closePanel(panel){var reduced=window.matchMedia("(prefers-reduced-motion: reduce)").matches;panel.setAttribute("aria-hidden","true"),reduced?panel.classList.remove("is-open"):(panel.style.maxHeight=panel.scrollHeight+"px",requestAnimationFrame(function(){panel.classList.remove("is-open"),panel.style.maxHeight="0px"}))}accordion.querySelectorAll(".bw-faq__toggle").forEach(function(btn){var panel=getPanel(btn.getAttribute("data-accordion-target"));panel&&(startOpen&&"true"===btn.getAttribute("aria-expanded")?openPanel(panel):closePanel(panel))}),accordion.addEventListener("click",function(e){var trigger=e.target.closest(".bw-faq__toggle");if(trigger&&accordion.contains(trigger)){var willExpand="true"!==trigger.getAttribute("aria-expanded");accordion.querySelectorAll(".bw-faq__toggle").forEach(function(btn){var next=!(btn!==trigger)&&willExpand,panel=getPanel(btn.getAttribute("data-accordion-target"));btn.setAttribute("aria-expanded",next?"true":"false"),panel&&(next?openPanel(panel):closePanel(panel))})}})})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",initFaqAccordion):initFaqAccordion()}();
2//# sourceURL=https://43896029.fs1.hubspotusercontent-na1.net/hubfs/43896029/hub_generated/module_assets/1/216275651861/1782925749360/module_BW-Accordion-FAQ.js

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.