PageSourceSearch

https://www.enchantingtravels.com/wp-content/themes/enchanting/dist/vendor/tpmodalelement.js?ver=2026.09.28.01

js enchantingtravels.com collected 2026-10-02 05:53:38 UTC 3,349 bytes, 1 lines download raw bytes

1(()=>{var e={993:()=>{(()=>{"use strict";class e extends HTMLElement{constructor(){var e;super(),this.previouslyFocusedElement=null,this.inertedElements=[],this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.boundHandleKeyDown=this.handleKeyDown.bind(this),null===(e=document.querySelector("body"))||void 0===e||e.appendChild(this),this.addEventListener("click",this.handleClick.bind(this))}open(){this.previouslyFocusedElement=this.ownerDocument.activeElement,this.dispatchEvent(new CustomEvent("before-open",{bubbles:!0})),this.setAttribute("open","yes"),this.setSiblingsInert(!0),document.addEventListener("keydown",this.boundHandleKeyDown),"no"!==this.getAttribute("manage-focus")&&this.setInitialFocus(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0}))}close(){document.removeEventListener("keydown",this.boundHandleKeyDown),this.dispatchEvent(new CustomEvent("before-close",{bubbles:!0})),this.removeAttribute("open"),this.setSiblingsInert(!1),"no"!==this.getAttribute("manage-focus")&&this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null),this.dispatchEvent(new CustomEvent("close",{bubbles:!0}))}setInitialFocus(){const e=this.querySelector("[autofocus]");e?e.focus():this.focus()}setSiblingsInert(e){const t=document.body.children;if(e){this.inertedElements=[];for(let e=0;e<t.length;e++){const s=t[e];s!==this&&"SCRIPT"!==s.tagName&&"STYLE"!==s.tagName&&(s.setAttribute("inert",""),s.setAttribute("aria-hidden","true"),this.inertedElements.push(s))}}else{for(const e of this.inertedElements)e.removeAttribute("inert"),e.removeAttribute("aria-hidden");this.inertedElements=[]}}handleKeyDown(e){if("Escape"===e.key)return e.preventDefault(),void this.close();"Tab"===e.key&&"no"!==this.getAttribute("focus-trap")&&this.trapFocus(e)}trapFocus(e){const t=this.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');if(0===t.length)return void e.preventDefault();const s=t[0],n=t[t.length-1],o=this.ownerDocument.activeElement;if(e.shiftKey&&o===s)return e.preventDefault(),void n.focus();e.shiftKey||o!==n||(e.preventDefault(),s.focus())}handleClick(e){e.target===this&&"yes"===this.getAttribute("overlay-click-close")&&(e.preventDefault(),e.stopPropagation(),this.close())}}class t extends HTMLElement{constructor(){super();const e=this.querySelector("button");null==e||e.addEventListener("click",this.closeModal.bind(this))}closeModal(){const e=this.closest("tp-modal");null==e||e.close()}}customElements.define("tp-modal",e),customElements.define("tp-modal-close",t)})()}};const t={};function s(n){const o=t[n];if(void 0!==o)return o.exports;const i=t[n]={exports:{}};return e[n](i,i.exports,s),i.exports}s.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],i=t[n++];s.o(e,o)?0===i&&n++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let n={};(()=>{"use strict";const e=s(993).TPModalElement;s.d(n,["default",0,e])})(),window.TPModalElement=n.default})();

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.