1class SectionAsync extends window.BAOv2.CustomElement{static observedAttributes=["data-url"];connectedCallback(){super.connectedCallback(),this.sectionId&&(this.loadWhenNeeded?this.observer.observe(this):this.initialise())}attributeChangedCallback(){this.initialise()}async initialise(){this.isBusy=!0;const html=this.processData(await window.BAOv2.utils.sectionRenderer.fetchSingle(this.sectionId,this.sectionsUrl));this.sectionHTML=window.BAOv2.utils.sectionRenderer.getInnerHtml(html),this.isBusy=!1,this.isInitialised=!0}processData(html){return Object.keys(this.data).forEach(key=>{[new RegExp(`{{ ${key} }}`,"g")].forEach(replacer=>{html=html.replace(replacer,this.data[key])})}),html}removeParentElement(){(this.parentIdentifier?this.closest(this.parentIdentifier):this).remove()}intersectionObserverCallback(entries){!(entries?.[0]).isIntersecting||this.isInitialised||this.initialise()}get observer(){return this.intersectionObserverCallback=this.intersectionObserverCallback.bind(this),new IntersectionObserver(this.intersectionObserverCallback)}get sectionId(){return this.dataset?.sectionId}set sectionHTML(html){if(!html){this.removeParentElement();return}this.innerHTML=html}get sectionHTML(){return this.innerHTML}set isBusy(boolean){this.setAttribute("aria-busy",boolean)}get isBusy(){return this.getAttribute("aria-busy")==="true"}get sectionRenderer(){return window.BAOv2.sectionRenderer}get dataEl(){return this.els?.data?.element}get data(){return this.dataEl?JSON.parse(this.dataEl.textContent):{}}get url(){return this.dataset?.url}get parentIdentifier(){return this?.dataset?.parentIdentifier}get sectionsUrl(){return this.url||`${window.location.pathname}${window.location.search}`}get loadWhenNeeded(){return this.dataset?.loadWhenNeeded==="true"}}customElements.get("section-async")||customElements.define("section-async",SectionAsync); 2//# sourceMappingURL=/cdn/shop/t/1041/assets/section-async.js.map?v=176824107879426408011778661985
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.