PageSourceSearch

https://www.risevision.com/hubfs/hub_generated/module_assets/1/198…/1769025911073/module_Hardware-G.min.js

js risevision.com collected 2026-09-24 08:55:12 UTC 4,493 bytes, 2 lines download raw bytes

1var module_198272926641=function(){function syncWrapperHeights(){const wrappers=document.querySelectorAll(".hardware-sync-height");let maxHeight=0;wrappers.forEach(el=>{el.style.height="auto"}),wrappers.forEach(el=>{maxHeight=Math.max(maxHeight,el.offsetHeight)}),wrappers.forEach(el=>{el.style.height=maxHeight+"px"})}window.addEventListener("load",syncWrapperHeights),window.addEventListener("resize",function(fn,delay){let timeout;return function(){clearTimeout(timeout),timeout=setTimeout(fn,delay)}}(syncWrapperHeights,200)),function(){const qs=(root,sel)=>(root||document).querySelector(sel),qsa=(root,sel)=>Array.from((root||document).querySelectorAll(sel));function createModalController(root){const state={active:null,lastFocus:null,escHandler:null,trapHandler:null,transitionMs:200};function trapFocus(modal){const panel=qs(modal,'[data-role="modal-panel"]'),focusables=(container=panel)?qsa(container,['a[href]:not([tabindex="-1"]):not([inert])','button:not([disabled]):not([tabindex="-1"]):not([inert])','textarea:not([disabled]):not([tabindex="-1"]):not([inert])','input:not([disabled]):not([type="hidden"]):not([tabindex="-1"]):not([inert])','select:not([disabled]):not([tabindex="-1"]):not([inert])','[tabindex]:not([tabindex="-1"]):not([inert])'].join(",")):[];var container;const first=focusables[0]||panel,last=focusables[focusables.length-1]||panel;state.trapHandler=e=>{if("Tab"===e.key)return panel.contains(document.activeElement)?void(e.shiftKey&&document.activeElement===first?(e.preventDefault(),last.focus({preventScroll:!0})):e.shiftKey||document.activeElement!==last||(e.preventDefault(),first.focus({preventScroll:!0}))):(e.preventDefault(),void first.focus({preventScroll:!0}))},document.addEventListener("keydown",state.trapHandler,!0),first?.focus({preventScroll:!0})}function onEsc(e){"Escape"===e.key&&state.active&&(e.preventDefault(),close(state.active))}function openById(id){const modal=document.getElementById(id);if(!modal||state.active===modal)return;const overlay=qs(modal,'[data-role="modal-overlay"]'),panel=qs(modal,'[data-role="modal-panel"]');if(!overlay||!panel)return;state.lastFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,modal.classList.remove("hidden"),modal.setAttribute("aria-hidden","false"),overlay.classList.remove("pointer-events-none","opacity-0"),overlay.classList.add("opacity-100"),panel.classList.remove("opacity-0","scale-95"),document.documentElement.classList.add("overflow-hidden");const closeBtns=qsa(modal,'[data-role="modal-close"]'),closeActive=()=>state.active&&close(state.active);closeBtns.forEach(btn=>btn.addEventListener("click",closeActive)),overlay.addEventListener("click",closeActive),state.escHandler=onEsc,document.addEventListener("keydown",state.escHandler,!0),trapFocus(modal),state.active=modal}function close(modal){const overlay=qs(modal,'[data-role="modal-overlay"]'),panel=qs(modal,'[data-role="modal-panel"]');overlay&&panel&&(overlay.classList.add("opacity-0","pointer-events-none"),overlay.classList.remove("opacity-100"),panel.classList.add("opacity-0","scale-95"),state.escHandler&&(document.removeEventListener("keydown",state.escHandler,!0),state.escHandler=null),state.trapHandler&&(document.removeEventListener("keydown",state.trapHandler,!0),state.trapHandler=null),window.setTimeout(()=>{modal.classList.add("hidden"),modal.setAttribute("aria-hidden","true"),document.documentElement.classList.remove("overflow-hidden");qsa(modal,'[data-role="modal-close"]').forEach(btn=>btn.replaceWith(btn.cloneNode(!0))),overlay.replaceWith(overlay.cloneNode(!0)),state.lastFocus&&"function"==typeof state.lastFocus.focus&&state.lastFocus.focus({preventScroll:!0}),state.active=null,state.lastFocus=null},state.transitionMs))}return root.addEventListener("click",e=>{const btn=e.target.closest('[data-role="modal-open"][data-target]');if(!btn||!root.contains(btn))return;const id=btn.getAttribute("data-target");id&&(e.preventDefault(),openById(id))},!0),{openById:openById,closeActive:()=>state.active&&close(state.active)}}function initAll(){qsa(document,".hardware[id]").forEach(root=>{try{root._hardwareModal=createModalController(root)}catch(err){console.warn("[hardware] modal init error:",err)}})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",initAll,{once:!0}):initAll()}()}();
2//# sourceURL=https://2700250.fs1.hubspotusercontent-na1.net/hubfs/2700250/hub_generated/module_assets/1/198272926641/1769025911073/module_Hardware-G.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.