1"use strict";(self.webpackChunkalnwickcastle_web=self.webpackChunkalnwickcastle_web||[]).push([[5141],{5141(e,t,a){a.d(t,{createFrom:()=>d});var o=a(56817);class n{constructor(e){this.el=e,this.productId=this.el.dataset.extrasProductId,this.modalTrigger=this.el.querySelector("button[data-extras-modal-btn]"),this.mode=this.modalTrigger.dataset.extrasModalBtn,this.modalTrigger.onclick=e=>{this.openModal(e)}}openModal(e){s.innerHTML=r,l.show();let t=window.extrasModalDataEndpoint;e.currentTarget.dataset.extrasUrl&&(t=e.currentTarget.dataset.extrasUrl),async function(e){let t=await(await window.fetch(e,{method:"POST"})).text();return t}(t).then(e=>{s.innerHTML=e;const t=document.querySelectorAll(".js-calendar-booking");t.length&&a.e(6452).then(a.bind(a,66452)).then(({default:e})=>{t.forEach(t=>{new e(t)})});const o=s.querySelectorAll("form");o.length&&o.forEach(e=>{e.action=location.pathname})})}closeModal(){l.hide()}}let l,s;const r='<div class="panel theme--white p-3 p-lg-4"><div class="checkout--extras--modal--header"><h1 class="h2 m-0"><i class="fa-solid fa-sync fa-fw fa-spin"></i> Loading...</h1><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div></div>';function d(e){let t=document.querySelector("#checkout-extras-modal");null!=t&&(l=o.aF.getOrCreateInstance(t),s=t.querySelector(".modal-body"),t.addEventListener("hidden.bs.modal",()=>{s.innerHTML=""}),e.forEach(e=>{if(1===e.nodeType){e.querySelector("button[data-extras-modal-btn]")&&new n(e)}}))}}}]); 2//# sourceMappingURL=5141.f676c2f16ebdb61606d8.js.map
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.