PageSourceSearch

https://broadgate.co.uk/wp-content/themes/blackbird-core/src/dist/mbl-nav-B8HZjrVn.js

js broadgate.co.uk collected 2026-09-24 09:58:12 UTC 2,554 bytes, 1 lines download raw bytes

1import{g as p}from"./script-CmWO8VI5.js";import{closeSearch as f}from"./search-C4fLnA5f.js";import"./scroll-C4ESJ3SR.js";import"./ajax-DvolzpoU.js";import"./jquery-D_-GSgyf.js";import"./location-map-9UYyQ5M2.js";import"./leasing-listing-popup-B7MdTU4Z.js";import"./listing-img-slider-JkjNx3Ks.js";import"./quote-block-BA21gxyB.js";import"./popup-BkkUNY6t.js";import"./functions-tnZFNeuN.js";import"./c-asset-BsDI4wab.js";import"./floorplan-slider-C10_FiMP.js";/* empty css               */import"./effect-fade--ONG1Z0u.js";import"./create-element-if-not-defined-CqU8NaII.js";import"./navigation-6Xf1KFtD.js";import"./footer-BbrGNE-c.js";import"./menu-DCs4fhxK.js";function O(){const n=document.querySelectorAll(".mbl-nav__trigger"),e=document.querySelector(".mbl-nav"),o=document.querySelector(".header--static"),t=document.querySelector(".header--fixed");if(!e||!t)return;let r=!1;const s=e.querySelectorAll(".mbl-nav__wrap");n.forEach(a=>{a.addEventListener("click",()=>{r?m(e,s,a,o,t):h(e,s,a,o,t),r=!r})}),e.querySelectorAll(".mbl-nav__wrap a").forEach(a=>{a.addEventListener("click",()=>{r&&(m(e,s,n[0],o,t),r=!1)})}),e.querySelectorAll(".mbl-nav__wrap button").forEach(a=>{var d;const l=(d=a.parentElement)==null?void 0:d.nextElementSibling;if(!l||!l.classList.contains("mbl-nav__sub"))return;a.addEventListener("click",()=>{l.show(),l.hidden=!1});const u=l.querySelector(".mbl-nav__sub__back");u&&u.addEventListener("click",()=>{l.close(),l.hidden=!0})})}function h(n,e,o,t,r){document.body.classList.add("no-scroll"),o.classList.remove("btn--white"),o.classList.add("btn--secondary"),t&&t.classList.add("header--focus"),r.classList.add("header--focus");const s=document.querySelectorAll(".mbl-nav__trigger__text");s&&(s.forEach(i=>{i.innerHTML="Close"}),p.timeline().set(n,{display:"flex",overwrite:!0}).to(n,{pointerEvents:"all",autoAlpha:1,duration:.3,ease:"ease-in-out"}).fromTo(e,{autoAlpha:0},{autoAlpha:1,opacity:1,stagger:.05,duration:1,ease:"power4.out"}))}function m(n,e,o,t,r){document.querySelector(".search-modal")&&f(),document.body.classList.remove("no-scroll"),o.classList.remove("btn--secondary"),o.classList.add("btn--white"),t&&t.classList.remove("header--focus"),r.classList.remove("header--focus");const i=document.querySelectorAll(".mbl-nav__trigger__text");i&&(i.forEach(c=>{c.innerHTML="Menu"}),p.timeline().fromTo(e,{autoAlpha:1},{autoAlpha:0,opacity:1,stagger:.05,duration:1,ease:"power4.out"}).to(n,{pointerEvents:"none",autoAlpha:0,duration:.3,ease:"ease-in-out"},"<=.3").set(n,{display:"none"}))}export{O 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.