PageSourceSearch

https://www.pdpglobal.com/hubfs/hub_generated/template_assets/1/17…/1789487081370/template_global.min.js

js pdpglobal.com collected 2026-10-06 11:16:38 UTC 5,263 bytes, 2 lines download raw bytes

1function getFocusableElements(container){return Array.from(container.querySelectorAll('summary, a[href], button:enabled, [tabindex]:not([tabindex^="-"]), [draggable], area, input:not([type=hidden]):enabled, select:enabled, textarea:enabled, object, iframe:not([style="display: none;"])'))}const trapFocusHandlers={};function trapFocus(container,elementToFocus=container){var elements=getFocusableElements(container),first=elements[0],last=elements[elements.length-1];removeTrapFocus(),trapFocusHandlers.focusin=event=>{event.target!==container&&event.target!==last&&event.target!==first||document.addEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.focusout=function(){document.removeEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.keydown=function(event){"TAB"===event.code.toUpperCase()&&(event.target!==last||event.shiftKey||(event.preventDefault(),first.focus()),event.target!==container&&event.target!==first||!event.shiftKey||(event.preventDefault(),last.focus()))},document.addEventListener("focusout",trapFocusHandlers.focusout),document.addEventListener("focusin",trapFocusHandlers.focusin),elementToFocus.focus()}try{document.querySelector(":focus-visible")}catch{focusVisiblePolyfill()}function focusVisiblePolyfill(){const navKeys=["ARROWUP","ARROWDOWN","ARROWLEFT","ARROWRIGHT","TAB","ENTER","SPACE","ESCAPE","HOME","END","PAGEUP","PAGEDOWN"];let currentFocusedElement=null,mouseClick=null;window.addEventListener("keydown",event=>{navKeys.includes(event.code.toUpperCase())&&(mouseClick=!1)}),window.addEventListener("mousedown",event=>{mouseClick=!0}),window.addEventListener("focus",()=>{currentFocusedElement&&currentFocusedElement.classList.remove("focused"),mouseClick||(currentFocusedElement=document.activeElement,currentFocusedElement.classList.add("focused"))},!0)}function pauseAllMedia(){document.querySelectorAll(".js-youtube").forEach(video=>{video.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),document.querySelectorAll(".js-vimeo, .js-wistia, .wistia_embed").forEach(video=>{video.contentWindow.postMessage('{"method":"pause"}',"*")}),document.querySelectorAll("video").forEach(video=>video.pause())}function removeTrapFocus(elementToFocus=null){document.removeEventListener("focusin",trapFocusHandlers.focusin),document.removeEventListener("focusout",trapFocusHandlers.focusout),document.removeEventListener("keydown",trapFocusHandlers.keydown),elementToFocus&&elementToFocus.focus()}function onKeyUpEscape(event){if("ESCAPE"!==event.code.toUpperCase())return;const openDetailsElement=event.target.closest("details[open]");if(!openDetailsElement)return;const summaryElement=openDetailsElement.querySelector("summary");openDetailsElement.removeAttribute("open"),summaryElement.focus()}function debounce(fn,wait){let t;return(...args)=>{clearTimeout(t),t=setTimeout(()=>fn.apply(this,args),wait)}}window.addEventListener("message",event=>{if("hsFormCallback"!==event.data.type||"onFormReady"!==event.data.eventName)return;document.querySelectorAll(".hs-fieldtype-textarea").forEach(grower=>{const textarea=grower.querySelector("textarea");if(!textarea)return;const textareaParent=textarea.parentElement;textarea.addEventListener("input",()=>{textareaParent.dataset.replicatedValue=textarea.value})})});class ModalDialog extends HTMLElement{constructor(){super(),this.querySelector('[id^="ModalClose-"]').addEventListener("click",this.hide.bind(this)),this.addEventListener("keyup",event=>{"ESCAPE"===event.code.toUpperCase()&&this.hide()}),this.classList.contains("media-modal")?this.addEventListener("pointerup",event=>{"mouse"!==event.pointerType||event.target.closest("deferred-media")||this.hide()}):this.addEventListener("click",event=>{"MODAL-DIALOG"===event.target.nodeName&&this.hide()})}show(opener){this.openedBy=opener,document.body.style.overflow="hidden",this.setAttribute("open",""),this.querySelector("deferred-media")?.loadContent(),trapFocus(this,this.querySelector('[role="dialog"]'))}hide(){document.body.style.removeProperty("overflow"),this.removeAttribute("open"),removeTrapFocus(this.openedBy),window.pauseAllMedia()}}customElements.define("modal-dialog",ModalDialog);class ModalOpener extends HTMLElement{constructor(){super();const button=this.querySelector("button");button&&button.addEventListener("click",()=>{const modal=document.querySelector(this.getAttribute("data-modal"));modal&&modal.show(button)})}}customElements.define("modal-opener",ModalOpener);class DeferredMedia extends HTMLElement{constructor(){super();const poster=this.querySelector('[id^="Deferred-Poster-"], button');poster&&poster.addEventListener("click",this.loadContent.bind(this))}loadContent(){if(window.pauseAllMedia(),!this.getAttribute("loaded")){const content=document.createElement("div");content.appendChild(this.querySelector("template").content.firstElementChild.cloneNode(!0)),this.setAttribute("loaded",!0),this.appendChild(content),content.querySelector("video, model-viewer, iframe").focus(),this.querySelector("video")?.play()}}}customElements.define("deferred-media",DeferredMedia);
2//# sourceURL=https://3787722.fs1.hubspotusercontent-na2.net/hubfs/3787722/hub_generated/template_assets/1/173239934868/1789487081370/template_global.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.