PageSourceSearch

https://faireundon.maisondesjardins.com/build/5294.5b0666e0.js

js maisondesjardins.com collected 2026-10-04 13:15:53 UTC 3,788 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5294],{5294:function(e,t,s){var i=s(1132);t.default=class extends i.xI{static targets=["overlay","modal","closeButton"];connect(){this.isModalOpen=!1,this.previousActiveElement=null,this.boundHandleMouseLeave=this.handleMouseLeave.bind(this),this.boundResetTimer=this.resetTimer.bind(this),this.boundHandleVisibilityChange=this.handleVisibilityChange.bind(this),document.addEventListener("mouseleave",this.boundHandleMouseLeave),document.addEventListener("visibilitychange",this.boundHandleVisibilityChange),document.addEventListener("mousemove",this.boundResetTimer),document.addEventListener("keypress",this.boundResetTimer),document.addEventListener("click",this.boundResetTimer),document.addEventListener("scroll",this.boundResetTimer),document.addEventListener("touchstart",this.boundResetTimer),document.addEventListener("touchmove",this.boundResetTimer),document.addEventListener("touchend",this.boundResetTimer),this.startTimer()}disconnect(){document.removeEventListener("mouseleave",this.boundHandleMouseLeave),document.removeEventListener("visibilitychange",this.boundHandleVisibilityChange),document.removeEventListener("mousemove",this.boundResetTimer),document.removeEventListener("keypress",this.boundResetTimer),document.removeEventListener("click",this.boundResetTimer),document.removeEventListener("scroll",this.boundResetTimer),document.removeEventListener("touchstart",this.boundResetTimer),document.removeEventListener("touchmove",this.boundResetTimer),document.removeEventListener("touchend",this.boundResetTimer),this.timeoutId&&clearTimeout(this.timeoutId)}resetTimer(){this.timeoutId&&clearTimeout(this.timeoutId),this.isModalOpen||this.startTimer()}startTimer(){this.timeoutId=setTimeout(()=>{this.isModalOpen||this.openModal()},9e4)}handleMouseLeave(e){e.clientY<=0&&!this.isModalOpen&&this.openModal()}handleVisibilityChange(){"visible"!==document.visibilityState||this.isModalOpen||this.openModal()}openModal(){this.isModalOpen=!0,this.previousActiveElement=document.activeElement,this.overlayTarget.classList.contains("d-none")&&this.overlayTarget.classList.remove("d-none"),this.modalTarget.classList.contains("d-none")&&this.modalTarget.classList.remove("d-none"),this.overlayTarget.classList.add("d-block"),this.modalTarget.classList.add("d-block"),this.modalTarget.setAttribute("aria-hidden","false");const e=this.hasCloseButtonTarget?this.closeButtonTarget:this.getFocusableElements()[0];e&&e.focus()}stopPropagation(e){e.stopPropagation()}closeModal(e){e&&e.preventDefault(),this.overlayTarget.classList.contains("d-block")&&this.overlayTarget.classList.remove("d-block"),this.modalTarget.classList.contains("d-block")&&this.modalTarget.classList.remove("d-block"),this.overlayTarget.classList.add("d-none"),this.modalTarget.classList.add("d-none"),this.modalTarget.setAttribute("aria-hidden","true"),this.isModalOpen=!1,this.previousActiveElement&&"function"==typeof this.previousActiveElement.focus&&(this.previousActiveElement.focus(),this.previousActiveElement=null),this.startTimer()}handleKeydown(e){if(this.isModalOpen)return"Escape"===e.key?(e.preventDefault(),void this.closeModal()):void("Tab"===e.key&&this.trapFocus(e))}trapFocus(e){const t=this.getFocusableElements();if(0===t.length)return;const s=t[0],i=t[t.length-1],n=document.activeElement;e.shiftKey&&n===s?(e.preventDefault(),i.focus()):e.shiftKey||n!==i||(e.preventDefault(),s.focus())}getFocusableElements(){const e=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(this.modalTarget.querySelectorAll(e)).filter(e=>!e.hasAttribute("disabled")&&null!==e.offsetParent)}}}}]);

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.