PageSourceSearch

https://www.dacbeachcroft.com/scripts/OurService-chunk.js?dd3d1a326bfc862a3aaa

js dacbeachcroft.com collected 2026-09-25 03:51:17 UTC 5,963 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5038],{6378:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});r(2327),r(3238),r(5610),r(7460),r(3512),r(5374),r(5849),r(6252),r(9785);function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=i((function e(t){var r,n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"syncL1TitleWidth",(function(){var e=window.innerWidth>=1024,t=n.$el.querySelectorAll(".our-services__container__maincontent__mainListWrapper__mainList"),r=null,i=Array.from(t).find((function(e){return e.querySelector(".our-services__list--l2.columns-2")}));if(e&&i){var o=i.querySelector(".our-services__list--l2.columns-2"),a=(o.getBoundingClientRect().width-(parseFloat(getComputedStyle(o).columnGap)||0))/2,s=o.querySelector(".our-services__item--l2");r=s?s.getBoundingClientRect().width:a}t.forEach((function(t){var n=t.querySelector(".our-services__list--l2.columns-2"),i=t.querySelectorAll(".our-services__list--l1.has-children"),o=t.querySelectorAll(".our-services__list--l1.no-children");if(e&&n){var a=(n.getBoundingClientRect().width-(parseFloat(getComputedStyle(n).columnGap)||0))/2,s=n.querySelector(".our-services__item--l2"),c=s?s.getBoundingClientRect().width:a;i.forEach((function(e){var t=e.querySelector(".our-services__item--l1__title");if(t){var r="".concat(Math.floor(c),"px");t.style.width=r,t.style.maxWidth=r,t.style.display="flex",t.style.justifyContent="space-between",t.style.alignItems="center"}}))}else if(i.forEach((function(e){var t=e.querySelector(".our-services__item--l1");t&&(t.style.width="",t.style.maxWidth="")})),e||o.forEach((function(e){var t=e.querySelector(".our-services__item--l1");t&&(t.style.width="",t.style.maxWidth="")})),!n&&e&&null!=r){var l="".concat(Math.floor(r),"px");i.forEach((function(e){var t=e.querySelector(".our-services__list--l2");if(1===(t?t.querySelectorAll(".our-services__item--l2"):[]).length){var r=e.querySelector(".our-services__item--l1");r&&(r.style.width=l,r.style.maxWidth=l)}})),o.forEach((function(e){var t=e.querySelector(".our-services__item--l1");t&&(t.style.width=l,t.style.maxWidth=l)}))}}))})),o(this,"onNavClick",(function(e){e.preventDefault();var t=e.currentTarget.dataset.id;t&&(n.updateActiveState(e.currentTarget),n.scrollToTarget(t))})),o(this,"onNavKeyDown",(function(e){if("Enter"===e.key||" "===e.key){e.preventDefault();var t=e.currentTarget.dataset.id;t&&(n.updateActiveState(e.currentTarget),n.scrollToTarget(t))}})),o(this,"updateActiveState",(function(e){n.jumpnavItems.forEach((function(e){return e.classList.remove("active")})),e.classList.add("active")})),o(this,"scrollToTarget",(function(e){var t=n.$el.querySelector('.our-services__list--l1[data-id="'.concat(e,'"]'));if(t){var r=window.innerWidth<1024,i=n.$el.querySelector(".our-services__container__jumpnavcontainer__items"),o=n.$el.querySelector(".our-services__container__jumpnavcontainer__items__mobilesection");r&&null!=i&&i.classList.contains("is-open")?(i.classList.remove("is-open"),null==o||o.setAttribute("aria-expanded","false"),requestAnimationFrame((function(){setTimeout((function(){return n.performScroll(t)}),50)}))):n.performScroll(t)}})),o(this,"performScroll",(function(e){var t=document.querySelector(".sitenav2--sticky")||document.querySelector(".sitenav2"),r=t?t.offsetHeight:0,n=e.getBoundingClientRect().top+window.scrollY-r;window.scrollTo({top:n,behavior:"smooth"})})),o(this,"initMobileDropdown",(function(){var e=n.$el.querySelector(".our-services__container__jumpnavcontainer__items"),t=n.$el.querySelector(".our-services__container__jumpnavcontainer__items__mobilesection");if(e&&t&&"true"!==e.getAttribute("data-jumpnav-inited")){e.setAttribute("data-jumpnav-inited","true");var r=function(r){r&&(r.preventDefault(),r.stopPropagation());var n=e.classList.toggle("is-open");t.setAttribute("aria-expanded",n?"true":"false")};e.addEventListener("click",(function(e){t.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),r(e))})),t.addEventListener("keydown",(function(n){"Enter"===n.key||" "===n.key?(n.preventDefault(),r(n)):"Escape"===n.key&&(e.classList.remove("is-open"),t.setAttribute("aria-expanded","fal
1se"))}))}})),this.$el=t,this.jumpnavItems=this.$el.querySelectorAll(".our-services__container__jumpnavcontainer__items__item[data-id]"),this.jumpnavItems.length>0&&this.jumpnavItems.forEach((function(e){e.addEventListener("click",n.onNavClick),e.addEventListener("keydown",n.onNavKeyDown)})),requestAnimationFrame((function(){return n.initMobileDropdown()})),setTimeout((function(){n.syncL1TitleWidth()}),150),window.addEventListener("resize",(function(){clearTimeout(r),r=setTimeout((function(){n.syncL1TitleWidth()}),100)}))}));function s(){var e=document.querySelector('.our-services[data-module="OurService"]');if(e){var t=e.querySelector(".our-services__container__jumpnavcontainer__items"),r=e.querySelector(".our-services__container__jumpnavcontainer__items__mobilesection");if(t&&r&&"true"!==t.getAttribute("data-jumpnav-inited")){t.setAttribute("data-jumpnav-inited","true");var n=function(e){e&&(e.preventDefault(),e.stopPropagation());var n=t.classList.toggle("is-open");r.setAttribute("aria-expanded",n?"true":"false")};t.addEventListener("click",(function(e){r.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),n(e))})),r.addEventListener("keydown",(function(e){"Enter"===e.key||" "===e.key?(e.preventDefault(),n(e)):"Escape"===e.key&&(t.classList.remove("is-open"),r.setAttribute("aria-expanded","false"))}))}}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",s):s();const c=a}}]);

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.