PageSourceSearch

https://www.joinsecret.com/assets/chunks/pricing_modal_controller-CXFBW45B.js

js joinsecret.com collected 2026-09-26 03:51:02 UTC 1,474 bytes, 1 lines download raw bytes

1import{b as a}from"/assets/chunks/chunk-KWI774O3.js";import"/assets/chunks/chunk-XDTPXY5K.js";var i=class extends a{static targets=["modal"];sync(){if(!this.hasModalTarget)return;let t=window.location.hash==="#pricing-modal",o=new URLSearchParams(window.location.search).get("open")==="pricing";o&&!t&&history.replaceState(null,document.title,window.location.pathname+window.location.search+"#pricing-modal"),t||o?this.open():this.modalTarget.classList.contains("modal-visible")&&this._closeWithoutUrl()}maybeOpenFromClick(t){t.target.closest("[data-pricing-open]")&&(t.preventDefault(),this.open(),window.location.hash!=="#pricing-modal"&&history.replaceState(null,document.title,window.location.pathname+window.location.search+"#pricing-modal"))}esc(t){(t.key==="Escape"||t.keyCode===27)&&this.close()}open(){this.hasModalTarget&&(this.modalTarget.classList.add("modal-visible"),document.body.style.overflow="hidden")}close(t){t&&!this._shouldClose(t)||(this._closeWithoutUrl(),window.location.hash==="#pricing-modal"&&history.replaceState(null,document.title,window.location.pathname+window.location.search))}_closeWithoutUrl(){this.hasModalTarget&&(this.modalTarget.classList.remove("modal-visible"),document.querySelector(".modal.modal-visible")||(document.body.style.overflow=""))}_shouldClose(t){return t.target.classList.contains("modal-overlay")||t.target.classList.contains("modal-close")||t.currentTarget.classList.contains("modal-close")}};export{i as 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.