1"use strict";(self.webpackChunkbarratt_rebuild=self.webpackChunkbarratt_rebuild||[]).push([[7466],{56924(e,t,n){n.d(t,{default:()=>r});var o=n(37026);const r=e=>new o.A(e);(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0})},37026(e,t,n){n.d(t,{A:()=>a});var o=n(64467),r=n(98967),i=n(81628),c=n(2520);const a=class{constructor(e){(0,o.A)(this,"handleToggle",e=>{const t="active",n=e.container.classList.contains(t),o=this._context.querySelector(`.${t}`);!n&&o&&(o.classList.remove(t),o.querySelector("[data-accordion-body]").setAttribute("hidden",!0),o.querySelector("[data-accordion-toggle]").ariaExpanded="false"),e.toggleBtn.ariaExpanded=!n,e.body.hidden=n,e.container.classList.toggle(t);new IntersectionObserver((t,n)=>{const[o]=t;o?.boundingClientRect.top<0&&(0,c.A)(e.container),n.disconnect()},{threshold:.1}).observe(e.container)}),(0,o.A)(this,"getTotalChildrenHeight",e=>{let t=0;const n=e.querySelector("[data-accordion-body-content]");return n&&(t=n.offsetHeight),t}),(0,o.A)(this,"init",()=>{this._heading&&(0,i.A)(this._heading),this._description&&(0,i.A)(this._description);let e=null;this._accordionItems.forEach(t=>{(0,i.A)(t);const n=t.querySelector("[data-accordion-toggle]"),o=t.querySelector("[data-accordion-body]"),r={container:t,toggleBtn:n,body:o};if(o){const t=this.getTotalChildrenHeight(o);t>e&&(e=t)}n.addEventListener("click",()=>{this.handleToggle(r)})}),e&&this._context.style.setProperty("--maxHeight",`${e}px`)}),this._context=e,this._heading=this._context.querySelector("[data-accordion-heading]"),this._description=this._context.querySelector("[data-accordion-description]"),this._accordionItems=[...this._context.querySelectorAll("[data-accordion-item]")],(0,r.A)()||this.init()}}},2520(e,t,n){n.d(t,{A:()=>o});const o=(e,t="smooth",n=0)=>{window.scroll({behavior:t,left:0,top:e.offsetTop+n})}},81628(e,t,n){n.d(t,{A:()=>o});const o=e=>{try{let t=e;const n=document?.querySelector('meta[name="mortgageRate"]')?.content,o=/{{mortgageRate}}/gim,r=document.querySelector('meta[name="tokenReplacementDictionary"]'),i=r?JSON.parse(r.content):null,c=/{{dictionaryValue\(.*?\)}}/gim.exec(t.innerHTML?t.innerHTML:t),a=(e,n)=>{t.innerHTML?t.innerHTML=t.innerHTML.replace(e,n):t=t.replace(e,n)};if(t&&(n&&o||i&&c)&&(o&&a(o,n),c))for(let e in i){a(new RegExp(`{{dictionaryValue\\(${e}\\)}}`,"gmi"),i[e])}return t?.innerHTML||t}catch(e){console.error("Error in tokenReplacer",e)}};(Object.getOwnPropertyDescriptor(o,"name")||{}).writable||Object.defineProperty(o,"name",{value:"default",configurable:!0})}}]);
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.