PageSourceSearch

https://www.dacbeachcroft.com/scripts/accordion-chunk.js?925fc7c77fb38ec8db48

js dacbeachcroft.com collected 2026-10-02 16:25:50 UTC 3,138 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8209],{1616:(e,t,i)=>{i.r(t),i.d(t,{default:()=>l});i(5374),i(3238),i(5849),i(6252),i(266),i(9785);function s(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}const l=function(){function e(t){var i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),console.log("acc"),this.$el=t,this.buttons=this.$el.querySelectorAll(".accordion-btn"),this.toggleBtn=this.$el.querySelector("#viewToggleBtn"),this.hiddenItems=this.$el.querySelectorAll(".hidden-item"),this.styles={qBg:this.getFieldValue("faqQBg","#ff1111"),qText:this.getFieldValue("faqQText","#000000"),qHover:this.getFieldValue("faqQHover","#dd3838"),qActive:this.getFieldValue("faqQActive","#4e46df"),aBg:this.getFieldValue("faqABg","#f8f8f8"),qTextHover:this.getFieldValue("faqQTextHover",this.getFieldValue("faqQHover","#dd3838")),qTextActive:this.getFieldValue("faqQTextActive",this.getFieldValue("faqQActive","#4e46df"))},this.moreText=(null===(i=this.toggleBtn)||void 0===i?void 0:i.getAttribute("data-more"))||"",this.lessText=(null===(s=this.toggleBtn)||void 0===s?void 0:s.getAttribute("data-less"))||"",this.isExpanded=!1,this.init()}var t,i,l;return t=e,(i=[{key:"init",value:function(){this.applySitecoreStyles(),this.bindAccordion(),this.bindViewToggle()}},{key:"applySitecoreStyles",value:function(){this.$el.style.setProperty("--faq-qBg",this.styles.qBg),this.$el.style.setProperty("--faq-qText",this.styles.qText),this.$el.style.setProperty("--faq-qHover",this.styles.qHover),this.$el.style.setProperty("--faq-qActive",this.styles.qActive),this.$el.style.setProperty("--faq-aBg",this.styles.aBg),this.$el.style.setProperty("--faq-qTextHover",this.styles.qTextHover),this.$el.style.setProperty("--faq-qTextActive",this.styles.qTextActive)}},{key:"bindAccordion",value:function(){var e=this;this.buttons.forEach((function(t){t.addEventListener("click",(function(){var i=t.classList.contains("active");if(e.buttons.forEach((function(e){e.classList.remove("active");var t=e.nextElementSibling;t&&(t.style.maxHeight=null)})),!i){t.classList.add("active");var s=t.nextElementSibling;s&&(s.style.maxHeight=s.scrollHeight+"px")}}))}))}},{key:"bindViewToggle",value:function(){var e=this;this.toggleBtn&&this.toggleBtn.addEventListener("click",(function(){e.isExpanded=!e.isExpanded,e.hiddenItems.forEach((function(t){e.isExpanded?(t.style.display="block",setTimeout((function(){return t.style.opacity="1"}),10)):(t.style.opacity="0",setTimeout((function(){return t.style.display="none"}),400))})),e.toggleBtn.innerHTML=e.isExpanded?"".concat(e.lessText,' <span class="toggle-arrow"></span>'):"".concat(e.moreText,' <span class="toggle-arrow"></span>'),e.toggleBtn.classList.toggle("expanded",e.isExpanded)}))}},{key:"getFieldValue",value:function(e,t){var i,s=this.$el.querySelector("#".concat(e));return(null==s||null===(i=s.value)||void 0===i?void 0:i.trim())||t}}])&&s(t.prototype,i),l&&s(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}]);

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.