1(self.webpackChunkheyholy_ss_theme=self.webpackChunkheyholy_ss_theme||[]).push([[6788],{6507(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n(r.key),r)}}function n(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function o(t,n,o){return n=l(n),function(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,i()?Reflect.construct(n,o||[],l(t).constructor):n.apply(t,o))}function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&c(r,n.prototype),r}(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},r(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var u=function(e){function n(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(e=o(this,n)).closeButton=e.querySelector(".calculator-modal__close"),e.overlay=e.querySelector(".calculator-modal__overlay"),e.modalWrapper=e.querySelector(".calculator-modal-wrapper"),e.type=e.dataset.type?e.dataset.type:null,e.body=document.body,e.pageurl=e.dataset.pageurl,e.innerContent=e.querySelector(".calculator-modal__inner-content"),e.section_id=e.dataset.sectionid,e.parentSection=document.querySelector("#shopify-section-".concat(e.section_id)),e.isLoaded=!1,e.onKeydown=e.onKeydown.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(n,e),r=n,i=[{key:"connectedCallback",value:function(){this.init(),document.addEventListener("keydown",this.onKeydown)}},{key:"disconnectedCallback",value:function(){document.removeEventListener("keydown",this.onKeydown)}},{key:"onKeydown",value:function(e){"Escape"===e.key&&this.closeModal()}},{key:"clearContent",value:function(){this.innerContent.innerHTML=""}},{key:"setEventListeners",value:function(){var e=this;this.overlay.onclick=function(t){t.target===t.currentTarget&&e.closeModal()},this.closeButton.onclick=function(){return e.closeModal()}}},{key:"pullContentFromUrl",value:function(e){var t=this;fetch(e).then(function(e){return e.text()}).then(function(n){var o=(new DOMParser).parseFromString(n,"text/html"),r=o.querySelector(".feed-calculator-script");
1if(r){var i=document.createElement("script");i.textContent=r.textContent,t.innerContent.prepend(i)}var c=o.querySelector(".feed-calculator__form");c?t.innerContent.insertAdjacentHTML("beforeend",c.innerHTML):(console.error("Calculator form (.feed-calculator__form) not found on page:",e),console.error("Available content:",o.body.innerHTML.substring(0,500)))}).catch(function(e){return console.error("Error fetching calculator content:",e)})}},{key:"init",value:function(){this.setEventListeners()}},{key:"openModal",value:function(e){e&&e.preventDefault();var t=document.querySelector("main");t&&this.parentNode!==t.parentNode&&(t.nextSibling?t.parentNode.insertBefore(this,t.nextSibling):t.parentNode.appendChild(this)),this.modalWrapper.style.display="flex",this.overlay.style.display="block",this.body.style.overflow="hidden",this.isLoaded||(this.pullContentFromUrl(this.pageurl),this.isLoaded=!0)}},{key:"closeModal",value:function(){this.modalWrapper.style.display="none",this.overlay.style.display="none",this.body.style.overflow="auto","referral"===this.type&&sessionStorage.setItem("has_closed_popup","true")}}],i&&t(r.prototype,i),l&&t(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,l}(r(HTMLElement));customElements.define("calculator-modal",u)}},e=>{var t;t=6507,e(e.s=t)}]);
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.