PageSourceSearch

https://www.dacbeachcroft.com/scripts/FeaturedAccordion-chunk.js?6917ae655cee8f99b4fc

js dacbeachcroft.com collected 2026-09-25 03:51:18 UTC 4,739 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5163],{1725:(t,e,r)=>{r.r(e),r.d(e,{default:()=>s});r(5374),r(3238),r(5849),r(2077),r(2482),r(6252),r(9785),r(3023),r(5901),r(2189),r(1047),r(5769),r(7460),r(4078),r(2410),r(3352),r(5610);function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,l=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){l=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(l)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l=function(){function t(e){var r,i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"init",(function(){i.applyLayoutPartition(),i.bindAccordion(),i.bindViewMore(),i.bindLayoutSwitcher()})),a(this,"bindAccordion",(function(){i.headers.forEach((function(t){t.addEventListener("click",(function(){i.toggleItem(t)}))}))})),a(this,"toggleItem",(function(t){var e=t.closest(".faq-item");null==e||e.classList.toggle("open")})),a(this,"bindViewMore",(function(){i.$el.addEventListener("click",(function(t){var e=t.target.closest(".view-more-btn");e&&i.toggleMore(e)}))})),a(this,"toggleMore",(function(t){var e=i.$el.querySelectorAll(".extra-item"),r=t.classList.toggle("is-expanded");e.forEach((function(t){t.classList.toggle("hidden",!r)})),i.extraWrapper&&i.extraWrapper.classList.toggle("is-expanded",r);var n=t.querySelector(".btn-text");n&&(n.textContent=r?t.dataset.less:t.dataset.more)})),a(this,"bindLayoutSwitcher",(function(){document.querySelectorAll(".layout-btn").forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.layout;i.switchLayout(t,e)}))}))})),a(this,"switchLayout",(function(t,e){if(i.grid&&e){document.querySelectorAll(".layout-btn").forEach((function(t){return t.classList.remove("active")})),t.classList.add("active");var r=n(e.split("-"),2),o=r[0],a=r[1];i.grid.style.setProperty("--grid-left","".concat(o/100,"fr")),i.grid.style.setProperty("--grid-right","".concat(a/100,"fr"))}})),a(this,"applyLayoutPartition",(function(){if(i.grid&&i.partition){var t=n(i.partition.split("-"),2),e=t[0],r=t[1];i.grid.style.setProperty("--grid-left","".concat(e/100,"fr")),i.grid.style.setProperty("--grid-right","".concat(r/100,"fr"))}})),this.$el=e,console.log("feature acc"),this.items=this.$el.querySelectorAll(".faq-item"),this.headers=this.$el.querySelectorAll(".accordion-header"),this.toggleBtn=this.$el.querySelector(".view-more-btn"),this.extraWrapper=this.$el.querySelector("#extra-items-wrapper"),this.toggleBtn=this.$el.querySelector(".toggle-btn"),this.hiddenItems=this.$el.querySelectorAll(".hidden-item"),this.moreText=this.$el.dataset.moreText||"View more",this.lessText=this.$el.dataset.lessText||"View less",this.isExpanded=!1,this.grid=this.$el.querySelector("#mainGrid"),this.partition=(null===(r=this.grid)||void 0===r?void 0:r.dataset.layout)||"50-50",this.init()}var e,r,i;return e=t,(r=[{key:"bindViewToggle",value:function(){var t=this;this.toggleBtn&&this.toggleBtn.addEventListener("click",(function(){t.isExpanded=!t.isExpanded,t.hiddenItems.forEach((function(e){t.isExpanded?(e.style.display="block",setTimeout((function(){return e.style.opacity="1"}),10)):(e.style.opacity="0",setTimeout((function(){return e.style.display="none"}),400))})),t.toggleBtn.innerHTML=t.isExpanded?"".concat(t.lessText,' <span class="toggle-arrow"></span>'):"".concat(t.moreText,' <span class="toggle-arrow"></span>'),t.toggleBtn.classList.toggle("expanded",t.isExpanded)}))}}])&&o(e.prototype,r),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".featured-accordion").forEach((function(t){new l(t)}))}
1));const s=l}}]);

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.