");vwo_$('head').append(_vwo_sel);return vwo_$('head')[0] && vwo_$('head')[0].lastChild;})("HEAD")}}, R_722072_157_1_2_0:{ fn:function(log,nonce=''){return (function(x) { if(!vwo_$.fn.vwoRevertHtml){ return; }; var ctx=vwo_$(x),el; /*vwo_debug log("Revert","content",""); vwo_debug*/; el=vwo_$('[vwo-element-id="1744062807510"]'); el.revertContentOp().remove();})("HEAD")}}, C_722072_160_1_2_1:{ fn:function(log,nonce=''){return (function(x) { try{ var _vwo_sel = vwo_$("`); !vwo_$("head").find('#1743792965156').length && vwo_$('head').append(_vwo_sel);}catch(e) {VWO._.vAEH(e);} try{}catch(e) {VWO._.vAEH(e);} try{const CALLOUT_ON_BUTTON_WITH_AMOUNT = 150; const CALLOUT_BUBBLE_TEXT = "$150 provides 1 camp scholarship"; // // // // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // // // // window.HTMLElement.prototype.getSlot = window.HTMLElement.prototype.getSlot || function () { return this.querySelector('slot') || this.shadowRoot.querySelector('slot'); }; window.HTMLElement.prototype.getSlotNodes = window.HTMLElement.prototype.getSlotNodes || function (n) { return (parseInt(n) !== 'NaN' && n >= 0) ? Array.from(this.getSlot().assignedNodes({ flatten: true }))[n] : Array.from(this.getSlot().assignedNodes({ flatten: true })); }; window.HTMLElement.prototype.shadowChildren = window.HTMLElement.prototype.shadowChildren || function (n) { return (parseInt(n) !== 'NaN' && n >= 0) ? Array.from(this.shadowRoot.children)[n] : Array.from(this.shadowRoot.children); }; function shadowQuerySelectorAll (selector) { let matches = []; const isSlot = (element) => element.tagName.toLowerCase() === 'slot'; function traverse(element) { // Helper function to recursively traverse elements if (element instanceof HTMLElement && element.matches(selector) /*&& element !== this*/) // Check if element matches the selector matches.push(element); if (customElements.get(element.tagName.toLowerCase())) { // Traverse through shadow DOM children if element is a custom element with shadow DOM const children = element.shadowRoot ? Array.from(element.shadowRoot.children) : []; children.forEach((child) => traverse(child)); } else { Array.from(element.children).forEach((child) => traverse(child)); // traverse through regular element children } if (isSlot(element)) { // handle traversing slot nodes const slotNodes = element.assignedNodes({ flatten: true }); slotNodes.forEach((slotNode) => { if (slotNode.nodeType === Node.ELEMENT_NODE) traverse(slotNode); }); } } this instanceof Document ? traverse(this.documentElement) : traverse(this); // Start traversal from the root element as long as it's not the Document return matches.length > 0 ? matches : undefined; } function shadowQuerySelector (selector) { let matches = this.shadowQuerySelectorAll(selector) || []; return matches.length > 0 ? matches[0] : undefined; } if (!HTMLElement.prototype.shadowQuerySelectorAll) { Object.defineProperties(HTMLElement.prototype, { shadowQuerySelectorAll: { value: shadowQuerySelectorAll, writable: false, configurable: false, enumerable: true, }, shadowQuerySelector: { value: shadowQuerySelector, writable: false, configurable: false, enumerable: true, } }); Object.defineProperties(Document.prototype, { shadowQuerySelectorAll: { value: shadowQuerySelectorAll, writable: false, configurable: false, enumerable: true, }, shadowQuerySelector: { value: shadowQuerySelector, writable: false, configurable: false, enumerable: true, } }); Object.defineProperties(Document, { shadowQuerySelectorAll: { value: shadowQuerySelectorAll, writable: false, configurable: false, enumerable: true, }, shadowQuerySelector: { value: shadowQuerySelector, writable: false, configurable: false, enumerable: true, } }); } async function asyncWaitForCustomElements (customElementsArray, onCustomElementsDefined = () => {}) { customElementsArray.length === 0 ? onCustomElementsDefined() : customElements.whenDefined(customElementsArray.shift()).then(() => asyncWaitForCustomElements(customElementsArray, onCustomElementsDefined)); } function addCircle (buttons, onWhichAmountButton = CALLOUT_ON_BUTTON_WITH_AMOUNT) { let buttonWithCircle; buttons.forEach((giftArrayButton) => { let text = giftArrayButton.textContent.trim().replace(/[^\d\.]/, ''); text = !Number.isNaN(parseInt(text)) ? parseInt(text) : text; if (text == onWhichAmountButton || text == 150) { giftArrayButton.insertAdjacentHTML('afterend', `
`); buttonWithCircle = giftArrayButton; } }); return buttonWithCircle; } function addCallout (text, button, buttons = window.NA.DonationForm.elements.GiftArrayButtons) { const TAIL_SVG = ``; const calloutElement = (function(){ const calloutContainer = document.createElement('div'); calloutContainer.classList.add("callout-container"); calloutContainer.innerHTML = (`${text}
\n You can be the difference in a child making a decision to follow Jesus at camp this summer. Will you help a kid get to Eagle Lake Camps of The Navigators this summer? Give here ยป\n
\n