`);
return calloutContainer;
})();
const tabsContainer = buttons[0].parentElement;
tabsContainer.before(calloutElement);
const callout = tabsContainer.previousElementSibling || tabsContainer.parentElement.querySelector('.callout') || document.querySelector('.callout'),
calloutBubble = callout.querySelector('.callout-bubble'),
calloutTail = callout.querySelector('.callout-tail'),
calloutContainer = callout.parentElement || tabsContainer.parentElement.querySelector('.callout-container');
const buttonIndex = buttons.indexOf(button);
calloutBubble.classList.add(buttonIndex + 1 <= buttons.length / 2 ? "pull-left" : "pull-right");
let lastScreenWidth = window.innerWidth;
const updateTailPosition = function (calloutTarget) {
console.log('resize');
const tail = this;
const targetRect = calloutTarget.getBoundingClientRect(),
tailRect = tail.getBoundingClientRect();
let targetPosition = {
width: targetRect.width,
height: targetRect.height,
x: targetRect.x,
y: targetRect.y,
xCenter: targetRect.x + (targetRect.width / 2),
yCenter: targetRect.y + (targetRect.height / 2),
};
let tailPosition = {
width: tailRect.width,
height: tailRect.height,
x: tailRect.x,
y: tailRect.y,
};
// console.log('target:', calloutTarget, targetPosition);
// console.log('tail:', tail, tailPosition);
let calloutBubbleOffsetX = calloutBubble.getBoundingClientRect().x - callout.getBoundingClientRect().x;
let deltaX = targetPosition.xCenter -
tailPosition.x -
(tailPosition.width / 2),
deltaY = targetPosition.y -
tailPosition.y;
// if (deltaX <= 2)
// return;
deltaX = (tailPosition.x - callout.getBoundingClientRect().x) + deltaX;
let calloutBubbleStartX = calloutBubble.getBoundingClientRect().x - callout.getBoundingClientRect().x,
calloutBubbleEndX = calloutBubbleStartX + calloutBubble.getBoundingClientRect().width;
/*if (window.innerWidth <= 480 && (deltaX < calloutBubbleStartX + 16 || deltaX > calloutBubbleEndX - 16))
return;*/
//console.log(`delta: (${deltaX}, ${deltaY})`);
this.style.setProperty('--x', `${deltaX}px`);
this.style.setProperty('height', `${deltaY}px`);
setTimeout(() => {
if (lastScreenWidth > 480 && window.innerWidth <= 480) { // desktop to mobile
calloutTarget.parentElement.before(callout); // move callout in between buttons before the target button
document.dispatchEvent(new Event('resize'));
} else if (lastScreenWidth <= 480 && window.innerWidth > 480) { // mobile to desktop
tabsContainer.before(callout); // move callout before all gift array buttons in full row
document.dispatchEvent(new Event('resize'));
}
if (!lastScreenWidth && window.innerWidth > 480) {
if (!buttons[0].parentElement.previousElementSibling) {
tabsContainer.before(callout); // move callout before all gift array buttons in full row
document.dispatchEvent(new Event('resize'));
}
}
lastScreenWidth = window.innerWidth;
}, 50);
};
setTimeout(() => {
document.addEventListener('resize', updateTailPosition.bind(calloutTail, button)),
(new ResizeObserver(updateTailPosition.bind(calloutTail, button))).observe(document.body);
}, 250);
updateTailPosition.call(calloutTail, button);
}
function main () {
const c_donate_community_staff_information = document.shadowQuerySelector('c-donate-community-staff-information');
const c_donate_community_donate_buttons = document.shadowQuerySelector('c-donate-community-donate-buttons');
const donationPage = c_donate_community_staff_information.parentElement;
const donationPageContent = donationPage.shadowQuerySelectorAll('c-donate-community-staff-information > div > .slds-col')[1];
const donationFormWidget = c_donate_community_donate_buttons.parentElement || ([...donationPageContent.children].find((child) => child.shadowQuerySelector('button[value]')) || donationPageContent.children[2]) || null;
if (!donationFormWidget || !donationFormWidget.shadowQuerySelector('button'))
return setTimeout(main, 50);
const donationFormGiftArrayButtons = donationFormWidget.shadowQuerySelectorAll('button[value]') ?? null;
if (donationFormWidget.querySelector('.callout') || donationFormWidget.shadowQuerySelector('.callout'))
return console.warn("Callout already added.");
const btn = addCircle(donationFormGiftArrayButtons, CALLOUT_ON_BUTTON_WITH_AMOUNT);
donationFormGiftArrayButtons[0].parentElement && addCallout(CALLOUT_BUBBLE_TEXT, btn, donationFormGiftArrayButtons);
}
(async function(){
try {
console.group("Callout: Init");
asyncWaitForCustomElements(['c-donate-community-staff-information', 'c-donate-community-donate-buttons'/*, 'lightning-formatted-rich-text'*/], () => {
setTimeout(main, 100);
});
} catch (error) {
console.error(error);
} finally {
console.groupEnd();
}
})();
}catch(e) {VWO._.vAEH(e);}
return vwo_$('head')[0] && vwo_$('head')[0].lastChild;})("head")}}, R_722072_160_1_2_1:{ fn:function(log,nonce=''){return (function(x) {
try{
var ctx=vwo_$(x),el;
/*vwo_debug log("Revert","content",""); vwo_debug*/;
el=vwo_$('[vwo-element-id="1743792965156"]');
el.revertContentOp().remove();
} catch(e) {VWO._.vAEH(e);}
try{
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","addElement","body"); vwo_debug*/(el=vwo_$('[vwo-element-id="1743792965157"]')).remove();
} catch(e) {VWO._.vAEH(e);}
return vwo_$('head')[0] && vwo_$('head')[0].lastChild;})("head")}}, C_722072_70_1_2_0:{ fn:function(log,nonce=''){return (function(x) {try{const MAX_ONETIME_AMOUNT=500,RECURRING_ASK=t=>{let e;return e=t>=400&&t<500?50:t>=300&&t<400?40:t>=200&&t<300?30:t>=100&&t<200?15:10,e};function waitForElement(t,e,o=(t=>{}),n=30){return t?(o(t),!0):setTimeout(e,n)}function vwoCustomEvent(t){window.VWO=window.VWO||[],VWO.event=VWO.event||function(){VWO.push(["event"].concat([].slice.call(arguments)))},VWO.event("customEvent",{label:t.toString()})}function entangleElements(t,e,o="innerHTML",n={attributes:!0,childList:!0,subtree:!0}){if(!t||!e)return console.error(`entangleElements: ${!t&&"element1"}${t||e?" ":" and "} ${!e&&"element2"} ${t||e?"is":"are"} undefined.`);console.log("Entangling:\n",t," ",e,"\nElement 2 will mirror Element 1's values.");const i=new MutationObserver((n,i)=>{for(const i of n)switch(i.type){case"attributes":const{attributeName:n,oldValue:r}=i;if("style"!==n){const o=t.getAttribute(n);null===o?e.removeAttribute(n):e.setAttribute(n,o)}break;default:e[o]=t[o]}});return i.observe(t,n),i}function init(){customElements.whenDefined("c-donate-community-giving-options").then(()=>{customElements.whenDefined("lightning-card").then(()=>{customElements.whenDefined("c-donate-community-donate-buttons").then(()=>{customElements.whenDefined("lightning-input").then(()=>{const t=[...document.querySelector("c-donate-community-giving-options").shadowRoot.querySelectorAll("lightning-card")][1].shadowRoot.querySelector(".slds-card__body").getSlotNodes(1).querySelector("c-donate-community-donate-buttons").shadowChildren(0),e={getGiftArrayButtons:function(){let e=t;return Array.from(e.children).slice(0,Array.from(e.children).indexOf(e.querySelector(".slds-form-element"))).map(t=>t.querySelector("button"))},getAmount:function(){const e=t=>t.replace(/[\$\,]/gm,"");let o=this.getGiftArrayButtons().filter(t=>t.classList.contains("donate-selected"))[0];return o||(o=t.querySelector("lightning-input").shadowChildren(0).shadowChildren(0).querySelector("input")),parseFloat(e(o.value))},setAmount:function(e){const o=t.querySelector("lightning-input").shadowChildren(0).shadowChildren(0).querySelector("input");for(const t of this.getGiftArrayButtons())if(parseFloat(t.value)===parseFloat(e))return o.value="",t.click(),this.getAmount()===parseFloat(e);return o.value=parseFloat(e),o.dispatchEvent(new Event("change",{bubbles:!0})),this.getAmount()===parseFloat(e)},getRecurring:function(){return[...t.querySelector(".slds-grid").querySelectorAll("lightning-input")][0].shadowChildren(0).shadowChildren(0).querySelector('input[type="checkbox"]').checked},setRecurring:function(e=!0){const o=[...t.querySelector(".slds-grid").querySelectorAll("lightning-input")][0].shadowChildren(0).shadowChildren(0).querySelector('input[type="checkbox"]'),n=this.getRecurring();return(!n&&e||n&&!e)&&o.click(),this.getRecurring()===e},submit:function(t=this.buttons["Donate Now"]){return t.click()}};e.giftArrayButtons=e.getGiftArrayButtons(),window.NA=window.NA||{},window.NA.MiniDonationForm=e,waitForElement(t.querySelector("button"),init,e=>{window.NA.MiniDonationForm.buttons={"Donate Now":Array.from(t.children).slice(Array.from(t.children).indexOf(t.querySelector(".slds-form-element"))).map(t=>t.querySelector("button")).filter(t=>t)[0],"Add to Basket":Array.from(t.children).slice(Array.from(t.children).indexOf(t.querySelector(".slds-form-element"))).map(t=>t.querySelector("button")).filter(t=>t)[1]},window.NA.MiniDonationForm.cloneSubmitButton=function(t=this.buttons["Donate Now"]){const e=t.cloneNode(!0);return e.attributes=t.attributes,e.style&&(e.style=t.style),t.after(e),e},waitForElement(document.querySelector("dialog.donation-interrupter"),init,t=>{console.log("dialog found:",t);try{const e={dialog:t||document.querySelector("dialog.donation-interrupter"),_tokenName:"DonationInterrupter_",_memoryMode:sessionStorage,status:"ready",getStatus:function(){return this._memoryMode.getItem(this._tokenName+"_status")||void 0},setStatus:function(t){return this._memoryMode.setItem(this._tokenName+"_status",t),this.status=t,this.getStatus()},conditions:!0,newAmount:function(t){return t/12},onShow:function(t){},onHide:function(t){},show:function(t){this.dialog.showModal(),this.dialog.addEventListener("keydown",t=>{"Escape"===t.key&&(t.preventDefault(),t.stopImmediatePropagation())}),this.setStatus("shown"),"function"==typeof this.onShow&&this.onShow.call(null,t)},hide:function(t){this.setStatus("dismissed"),this.dialog.close(),"function"==typeof this.onHide&&this.onHide.call(null,t)},updateDialogData:function(){if(this.dialog){let t=window.NA.MiniDonationForm.getAmount(),e=this.newAmount(t);[...this.dialog.querySelectorAll('span[data="amount_original"]')].forEach(e=>e.textContent=t.toString()),[...this.dialog.querySelectorAll('span[data="amount_suggested"]')].forEach(t=>t.textContent=e.toString())}}};window.NA=window.NA||{},window.NA.DonationInterrupter=e||window.NA.DonationInterrupter,window.NA.MiniDonationForm&&window.NA.DonationInterrupter&&main(window.NA.MiniDonationForm,window.NA.DonationInterrupter)}catch(t){console.error("Failed to interface with donation interrupter.")}},100)},100)})})})})}function main(t,e,o=0){if(!t.buttons)return setTimeout(init,100);if(!e.buttons)return e.buttons={yes:[...e.dialog.querySelectorAll("button")][0],no:[...e.dialog.querySelectorAll("button")][1]},main(t,e,o);window.NA.DonationInterrupter.setStatus(window.NA.DonationInterrupter._memoryMode.getItem(window.NA.DonationInterrupter._tokenName+"_status")||"ready"),window.NA.DonationInterrupter.newAmount=RECURRING_ASK;try{for(const n of Object.values(t.buttons)){const i=n,r=t.cloneSubmitButton(i);i.style.display="none",r.style.setProperty("margin-left","0","important"),setInterval(()=>r.disabled=i.disabled,50),r.addEventListener("click",n=>{let i=t.getAmount(),r=t.getRecurring(),s="shown"===e.status||"dismissed"===e.status;o&&(console.groupCollapsed("Check conditions"),console.info(i,"< 500",i<500),console.info(r,"=== false",!1===r),console.info(s,"=== false",!1===s),console.groupEnd("Check conditions"));const l=[i<500,!1===r,!1===s].every(t=>!!t);o&&console.info("showPopup?",l),n.srcElement.textContent===t.buttons["Add to Basket"].textContent?l?e.show(n):t.submit(t.buttons["Add to Basket"]):l?e.show(n):t.submit()})}}catch(t){console.error("Failed to clone submit button and add event listener.",t)}window.NA.DonationInterrupter.onShow=n=>{window.NA.DonationInterrupter.updateDialogData(),vwoCustomEvent("donationInterrupterShown");try{const i=window.NA.DonationInterrupter.buttons,{yes:r,no:s}=i;n.srcElement.textContent===t.buttons["Add to Basket"].textContent?(r.addEventListener("click",n=>{o&&console.groupCollapsed('"Yes" clicked'),vwoCustomEvent("yes");const i=t.getAmount(),r=window.NA.DonationInterrupter.newAmount(i);o&&console.log(i,"->",r),t.setRecurring(!0),t.setAmount(r),e.hide(),t.submit(t.buttons["Add to Basket"]),o&&console.groupEnd('"Yes" clicked')}),s.addEventListener("click",n=>{o&&console.groupCollapsed('"No" clicked'),vwoCustomEvent("no"),e.hide(),t.submit(t.buttons["Add to Basket"]),o&&console.groupEnd('"No" clicked')})):(r.addEventListener("click",n=>{o&&console.groupCollapsed('"Yes" clicked'),vwoCustomEvent("yes");const i=t.getAmount(),r=window.NA.DonationInterrupter.newAmount(i);o&&console.log(i,"->",r),t.setRecurring(!0),t.setAmount(r),e.hide(),t.submit(),o&&console.groupEnd('"Yes" clicked')}),s.addEventListener("click",n=>{o&&console.groupCollapsed('"No" clicked'),vwoCustomEvent("no"),e.hide(),t.submit(),o&&console.groupEnd('"No" clicked')})),o&&console.log("added handlers to buttons",i)}catch(t){console.error("Failed to attach event listeners to dialog buttons.",t)}}}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(t){return"NaN"!==parseInt(t)&&t>=0?Array.from(this.getSlot().assignedNodes({flatten:!0})).at(t):Array.from(this.getSlot().assignedNodes({flatten:!0}))},window.HTMLElement.prototype.shadowChildren=window.HTMLElement.prototype.shadowChildren||function(t){return"NaN"!==parseInt(t)&&t>=0?Array.from(this.shadowRoot.children).at(t):Array.from(this.shadowRoot.children)},setTimeout(init,500);}catch(e){} ;var _vwo_sel=vwo_$("");vwo_$('head').append(_vwo_sel);return vwo_$('head')[0] && vwo_$('head')[0].lastChild;})("HEAD")}}, C_722072_70_1_2_1:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("addElement","body"); vwo_debug*/!(el=vwo_$("body")).find('[vwo-op-1715610703351=""]').length&&el.vwoElement({html:'',position:"append"});})("body")}}, ce121_4_1:{ fn:function(executeTrigger, vwo_$) {
(// Example Code: This code will stop polling after 5 sec of dom ready (on calling executeTrigger() method)
function() {
vwo_$(document).ready(function () {
// Waiting for 5 more seconds
setTimeout(function () {
// Call this method to stop the polling
executeTrigger();
}, 5000);
});
}
)()
}}, js_3390e077c52956459a51fd91b769cbc3:{ fn:function() { return window.window.Navigators.donationPageType }}, C_722072_121_1_2_0:{ fn:function(log,nonce=''){return (function(x) {
try{
var _vwo_sel = vwo_$("`);
!vwo_$("head").find('#1734023482004').length && vwo_$('head').append(_vwo_sel);}catch(e) {console.error(e)}
try{}catch(e) {console.error(e)}
try{const DEFAULT_DONATION_FREQUENCY="One-Time";function getQueryParam(e){let t=window.location.search.match(e+"=([^&]*)");return t?t[1]:void 0}function initOnElement(e,t,n){const i=e.getElementsByTagName(t);return i.length?n(i):setTimeout(initOnElement,500,e,t,n)}window.DonationForm=window.DonationForm||{recurring_checkbox:null,submit_button:null,other_amt:null,gift_array_elements:[],onetime_gift_array:[],recurring_gift_array:[10,20,30,40],setRecurring:function(e){console.log("setRecurring",e,this.recurring_checkbox),(!this.recurring_checkbox.checked&&e||this.recurring_checkbox.checked&&!e)&&(console.log("checked",this.recurring_checkbox.checked,"(before click)"),this.recurring_checkbox.click(),console.log("checked",this.recurring_checkbox.checked,"(after click)"))},selectGiftArray:function(e){this.gift_array_elements[e].click()},modifyGiftArray:function(e){this.gift_array_elements.forEach((t,n)=>{t.value=e[n],t.textContent="$"+e[n]})},setOneTimeGiftArrayValues:function(){let e=this;this.gift_array_elements.forEach(t=>{e.onetime_gift_array.push(parseInt(t.value))})},setFirstNamePersonalization:function(e){const t=void 0===getQueryParam("first_name")||""===getQueryParam("first_name")?"Friend":getQueryParam("first_name");for(let n=0;n<=e.length-1;n++)e[n].innerHTML.includes("[Name]")&&(e[n].innerHTML=e[n].innerHTML.replace(/\[[^\]]*]/,t)),e[n].innerHTML.includes("Friend")&&(e[n].innerHTML=e[n].innerHTML.replace("Friend",t))},init:function(){document.querySelectorAll(".tab").forEach(e=>{e.addEventListener("click",(function(e){this.classList.add("selected"),this.classList.contains("recurring")?(document.querySelector(".tab.onetime").classList.remove("selected"),DonationForm.setRecurring(!0)):(document.querySelector(".tab.recurring").classList.remove("selected"),DonationForm.setRecurring(!1))}))}),this.hasOwnProperty("setOneTimeGiftArrayValues")&&this.setOneTimeGiftArrayValues(),this.setRecurring(!1),this.hasOwnProperty("selectGiftArray")&&this.selectGiftArray(0)}},initOnElement(document,"c-donate-community-staff-information",(function(e){initOnElement(e[0],"div",(function(e){e[0].querySelectorAll("div.slds-col")[0].classList.add("page-image");const t=e[0].querySelectorAll("div.slds-col")[1];if(t.classList.add("donation-form-content"),t.querySelector(".tabs"))return;const n=t.querySelectorAll("div,lightning-formatted-rich-text");for(let e=0;e<=n.length-1;e++)0==e&&n[e].classList.add("page-title"),1==e&&n[e].classList.add("page-action-text"),2==e&&n[e].classList.add("donation-form"),3==e&&n[e].classList.add("bottom-title"),4==e&&n[e].classList.add("page-text");n[4]&&n[4].shadowRoot&&n[4].shadowRoot.querySelectorAll("div p")&&DonationForm.setFirstNamePersonalization(n[4].shadowRoot.querySelectorAll("div p")),n[1].before(n[4]);const i=document.createElement("div");i.classList.add("tabs"),i.innerHTML='
One-Time Gift
Recurring Gift
',n[2].before(i),initOnElement(n[2],"c-donate-community-donate-buttons",(function(e){initOnElement(e[0].shadowRoot.querySelector("div"),"div",(function(e){for(let t=0;t const TOKEN_NAME = \"apr25_el_pushdown\";\nconst DELAY = 1 /* seconds */;\nconst storageApi = sessionStorage /* permanent: localStorage, session: sessionStorage*/;\n(function init() {\n if (typeof window.jQuery === 'undefined')\n return console.warn(\"jQuery not defined yet.\"), setTimeout(init, 50);\n //\n jQuery(function() {\n (function pushdown($) {\n //console.log('pushdown', $('.na-pushdown-wrapper').length);\n if (!$('.na-pushdown-wrapper').length) return setTimeout(pushdown, 500);\n \n var pushdown = {\n element: $('.na-pushdown-wrapper'),\n\n open: function () {\n\n var self = this;\n var height = this.element.outerHeight();\n \n /* HANDLE SEMI-STICKY DONATE BUTTON */\n const pushdownDOMElement = this.element.get(0);\n const stickybar = document.querySelector('.na-pushdown-wrapper'),\n masthead = document.querySelector(\"header#masthead\"),\n wrapperDonateBtn = document.querySelector(\".menu-donate-container\");\n \n function scrollspy () {\n const stickybar = /*pushdownDOMElement || */document.querySelector('.na-pushdown-wrapper'),\n masthead = document.querySelector(\"header#masthead\");\n function scrollTriggerAction (scrollTrigger, el, gt = (el, sd = 0, st = 0) => { console.log(\"gt\"); }, lt = (el, sd = 0, st = 0) => { console.log(\"lt\"); }) {\n let mobile = window.innerWidth < 768,\n scrollDepth = window.scrollY;\n return scrollDepth > scrollTrigger ? gt(el, scrollDepth, scrollTrigger): lt(el, scrollDepth, scrollTrigger);\n }\n const scrollActions = {\n lt: (k, s = 0, t = 0) => { // scroll depth not past a certain amount\n //console.log(\"lt\", s, t);\n let wrapperDonateBtn = k,\n scrollY = s;\n if (window.innerWidth >= 992) { // larger screens\n if ( storageApi.getItem(TOKEN_NAME) === \"shown\" ) { // stickybar visible\n const stickybarHeight = () => stickybar.offsetHeight;\n wrapperDonateBtn.style.setProperty(\"position\", \"absolute\");\n wrapperDonateBtn.style.setProperty(\"top\", \"20px\");\n masthead.style.setProperty(\"position\", \"fixed\");\n masthead.style.setProperty(\"top\", (stickybarHeight() - s) + 'px', \"important\"); // set the margin-top to the stickybar height\n masthead.style.setProperty(\"margin-top\", \"unset\", \"important\");\n /*masthead.style.setProperty(\"transform\", `translateY(${stickybarHeight()}px)`);\n if (stickybarHeight() - scrollY < 0) {*/\n //wrapperDonateBtn.style.setProperty(\"position\", \"fixed\");\n /*wrapperDonateBtn.style.setProperty(\"top\", \"0px\");/*\n wrapperDonateBtn.style.setProperty(\"transform\", `translateY(${scrollY - stickybarHeight()}px)`);\n }*/\n } else { // stickybar not visible\n wrapperDonateBtn.style.setProperty(\"position\", \"absolute\");\n wrapperDonateBtn.style.setProperty(\"top\", \"20px\");\n masthead.style.setProperty(\"position\", \"absolute\");\n masthead.style.setProperty(\"top\", 0 + 'px', \"important\");\n if (s > 20) {\n wrapperDonateBtn.style.setProperty(\"position\", \"fixed\");\n wrapperDonateBtn.style.setProperty(\"top\", \"0px\");\n }\n }\n } else { // smaller screens\n const stickybarHeight = () => stickybar.offsetHeight;\n wrapperDonateBtn.style.setProperty(\"position\", \"absolute\", \"important\");\n wrapperDonateBtn.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px');\n //masthead.style.setProperty(\"margin-top\", \"unset\", \"important\");\n if ( stickybarHeight() - scrollY > 0) { // scroll depth not past stickybar\n masthead.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px', \"important\"); // set the margin-top to the stickybar height\n masthead.style.setProperty(\"margin-top\", \"unset\", \"important\");\n //masthead.style.setProperty(\"transform\", `translateY(${stickybarHeight() - scrollY}px)`);\n wrapperDonateBtn.style.setProperty(\"position\", \"absolute\", \"important\");\n wrapperDonateBtn.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px');\n } else if (stickybarHeight() - scrollY < 0) { // scroll depth past stickybar\n masthead.style.setProperty(\"position\", \"fixed\", \"important\");\n masthead.style.setProperty(\"top\", \"0\", \"important\");\n //masthead.style.setProperty(\"transform\", `translateY(${0}px)`);\n wrapperDonateBtn.style.setProperty(\"top\", '0');\n } else { // scroll depth at stickybar\n masthead.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px', \"important\"); // set the top to the stickybar height\n //masthead.style.setProperty(\"transform\", `translateY(${stickybarHeight() - scrollY}px)`);\n masthead.style.setProperty(\"margin-top\", \"unset\", \"important\");\n wrapperDonateBtn.style.setProperty(\"position\", \"absolute\", \"important\");\n wrapperDonateBtn.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px');\n }\n }\n },\n gt: (k, s = 0, t = 0) => { // scroll depth is past a certain amount\n //console.log(\"gt\", s, t);\n let wrapperDonateBtn = k,\n scrollY = s;\n if (window.innerWidth >= 992) { // larger screens\n if ( storageApi.getItem(TOKEN_NAME) === \"shown\" ) { // stickybar visible\n const stickybarHeight = () => stickybar.offsetHeight;\n wrapperDonateBtn.style.setProperty(\"position\", \"fixed\");\n wrapperDonateBtn.style.setProperty(\"top\", \"0\");\n masthead.style.setProperty(\"position\", \"fixed\");\n masthead.style.setProperty(\"top\", (stickybarHeight() - s) + 'px', \"important\"); // set the margin-top to the stickybar height\n masthead.style.setProperty(\"margin-top\", \"unset\", \"important\");\n /*masthead.style.setProperty(\"transform\", `translateY(${stickybarHeight()}px)`);\n if (stickybarHeight() - scrollY < 0) {*/\n //wrapperDonateBtn.style.setProperty(\"position\", \"fixed\");\n /*wrapperDonateBtn.style.setProperty(\"top\", \"0px\");/*\n wrapperDonateBtn.style.setProperty(\"transform\", `translateY(${scrollY - stickybarHeight()}px)`);\n }*/\n } else { // stickybar not visible\n wrapperDonateBtn.style.setProperty(\"position\", \"fixed\");\n wrapperDonateBtn.style.setProperty(\"top\", \"20px\");\n masthead.style.setProperty(\"position\", \"absolute\");\n masthead.style.setProperty(\"top\", 0 + 'px', \"important\");\n if (s > 20) {\n wrapperDonateBtn.style.setProperty(\"position\", \"fixed\");\n wrapperDonateBtn.style.setProperty(\"top\", \"0px\");\n }\n }\n } else { // smaller screens\n const stickybarHeight = () => stickybar.offsetHeight;\n wrapperDonateBtn.style.setProperty(\"position\", \"absolute\", \"important\");\n wrapperDonateBtn.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px');\n //masthead.style.setProperty(\"margin-top\", \"unset\", \"important\");\n if ( stickybarHeight() - scrollY > 0) { // scroll depth not past stickybar\n masthead.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px', \"important\"); // set the margin-top to the stickybar height\n //masthead.style.setProperty(\"transform\", `translateY(${stickybarHeight() - scrollY}px)`);\n masthead.style.setProperty(\"margin-top\", \"unset\", \"important\");\n wrapperDonateBtn.style.setProperty(\"position\", \"absolute\", \"important\");\n wrapperDonateBtn.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px');\n } else if (stickybarHeight() - scrollY < 0) { // scroll depth past stickybar\n masthead.style.setProperty(\"position\", \"fixed\", \"important\");\n masthead.style.setProperty(\"top\", \"0\", \"important\");\n //masthead.style.setProperty(\"transform\", `translateY(${0}px)`);\n wrapperDonateBtn.style.setProperty(\"top\", '0');\n } else { // scroll depth at stickybar\n masthead.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px', \"important\"); // set the top to the stickybar height\n //masthead.style.setProperty(\"transform\", `translateY(${stickybarHeight() - scrollY}px)`);\n masthead.style.setProperty(\"margin-top\", \"unset\", \"important\");\n wrapperDonateBtn.style.setProperty(\"position\", \"absolute\", \"important\");\n wrapperDonateBtn.style.setProperty(\"top\", (stickybarHeight() - scrollY) + 'px');\n }\n }\n }\n };\n const triggerDepth = () => pushdownDOMElement.offsetHeight + /*masthead.offsetHeight*/ 16;\n scrollTriggerAction(triggerDepth(), document.querySelector(\".menu-donate-container\"), scrollActions.gt, scrollActions.lt);\n window.addEventListener('scroll', scrollTriggerAction.bind(null, triggerDepth(), document.querySelector(\".menu-donate-container\"), scrollActions.gt, scrollActions.lt ));\n window.addEventListener('resize', scrollTriggerAction.bind(null, triggerDepth(), document.querySelector(\".menu-donate-container\"), scrollActions.gt, scrollActions.lt ));\n window.addEventListener('resize', (e) => {\n window.dispatchEvent(new Event('scroll', { bubbles: true }));\n }); // trigger the update by scrolling 1px\n }\n \n if (window.scrollY <= pushdownDOMElement.offsetHeight)\n window.scrollTo(0,0);\n \n $('.na-pushdown-wrapper').slideDown({\n duration: 'fast',\n step: function () {\n if (window.scrollY < pushdown.element.outerHeight()) {\n masthead.style.setProperty(\"top\", pushdown.element.outerHeight() + 'px', \"important\");\n window.innerWidth < 992 && wrapperDonateBtn.style.setProperty(\"top\", pushdown.element.outerHeight() + 'px', \"important\");\n }\n if (window.scrollY <= pushdownDOMElement.offsetHeight)\n window.scrollTo(0,0);\n },\n complete: function () {\n /*console.log(pushdownDOMElement.offsetHeight + 'px');\n masthead.removeAttribute(\"style\");\n masthead.style.setProperty(\"top\", pushdownDOMElement.offsetHeight + 'px', \"important\");*/\n storageApi.setItem(TOKEN_NAME, \"shown\"); // remember \"shown\" state\n scrollspy(); // active the scrollspy code\n window.dispatchEvent(new Event('resize'));\n if (window.scrollY <= pushdownDOMElement.offsetHeight)\n window.scrollTo(0,0);\n }\n });\n this.element.find('.close').html('×');\n },\n\n close: function () {\n\n const stickybar = document.querySelector('.na-pushdown-wrapper'),\n masthead = document.querySelector(\"header#masthead\"),\n wrapperDonateBtn = document.querySelector(\".menu-donate-container\");\n $('.na-pushdown-wrapper').slideUp({\n duration: 'fast',\n step: function () {\n masthead.style.setProperty(\"top\", pushdown.element.outerHeight() + 'px', \"important\");\n window.innerWidth < 992 && wrapperDonateBtn.style.setProperty(\"top\", pushdown.element.outerHeight() + 'px', \"important\");\n },\n complete: function () {\n masthead.style.setProperty(\"margin-top\", \"unset\", \"important\");\n masthead.style.setProperty(\"position\", \"fixed\", \"important\");\n masthead.style.setProperty(\"top\", \"0\", \"important\");\n wrapperDonateBtn.style.setProperty(\"position\", \"absolute\");\n window.innerWidth >= 992 ? wrapperDonateBtn.style.setProperty(\"top\", \"20px\") : wrapperDonateBtn.style.setProperty(\"top\", \"0\");\n }\n });\n\n //$('.na-pushdown-wrapper .close').html('');\n \n $(window).off(\"resize\", this.resize);\n storageApi.setItem(TOKEN_NAME, \"dismissed\"); // remember \"dismissed\" state\n\n },\n\n resize: function () {\n var height = pushdown.element.outerHeight();\n },\n\n init: function () {\n\n if (storageApi.getItem(TOKEN_NAME) === \"shown\" )\n return; // do not shown if shown this session\n\n if (storageApi.getItem(TOKEN_NAME) === \"dismissed\" )\n return; // do not shown if dismissed this session\n\n this.open();\n \n const pushdownDOMElement = document.querySelector('.na-pushdown-wrapper'),\n masthead = document.getElementById(\"masthead\");\n pushdownDOMElement.style.position = \"relative\";\n masthead.before(pushdownDOMElement);\n document.getElementById(\"donate-menu\").style.top = '0';\n $('.menu-donate-container').css('position', \"absolute\");\n $('.menu-donate-container').css('top', \"0px\");\n \n /*[...document.querySelectorAll('[data-action=\"dismiss\"]')].forEach((btn) => {\n let target = btn.getAttribute(\"data-target\");\n if (target)\n btn.addEventListener('click', this.close);\n });*/\n this.element.find(\".btn-dismiss\").on('click', this.close);\n // const [ btnYes, btnNo ] = [...document.querySelector(\".div-block-15\").children];\n // btnYes.onclick = (e) => { storageApi.setItem(TOKEN_NAME, \"dismissed\"); };\n // btnNo.onclick = this.close;\n $(window).resize(this.resize);\n\n }\n }\n\n //var run = parseInt(window.localStorage.getItem('na-show-pushdown') || 1);\n //if (run < 3) {\n setTimeout(function () {\n //window.localStorage.setItem('na-show-pushdown', run+1);\n pushdown.init();\n }, DELAY * 1000);\n //}\n })(jQuery);\n });\n})();\n \n");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_157_1_2_1:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("addElement","body"); vwo_debug*/!(el=vwo_$("body")).find('[vwo-op-1744062793557=""]').length&&el.vwoElement({html:'
\n \x3c!--
\n
\n \n
\n
--\x3e\n
\n
\n \n
\n
\n
\n
\n \n \x3c!--
\n If you have a moment...\n
--\x3e\n
\nYou 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
',position:"append"});})("body")}}, R_722072_157_1_2_1:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","addElement","body"); vwo_debug*/(el=vwo_$('[vwo-element-id="1744048814304"]')).remove();})("body")}}, C_722072_157_1_2_2:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("content",".pushdown-copy > p:nth-of-type(1)"); vwo_debug*/el=vwo_$(".pushdown-copy > p:nth-of-type(1)"),vwo_$(".pushdown-copy > p:nth-of-type(1)").each((function(){this.__vwoControlOuterHTML=this.__vwoControlOuterHTML||this.outerHTML,!vwo_$(this).find('[vwo-op-1744062807509-0=""]').length&&vwo_$(this).append('Will you help a kid get to Eagle Lake Camps of The Navigators this summer?'),vwo_$(this).nonEmptyContents().eq(0).replaceWith2(document.createTextNode("You can be the difference in a child making a decision to follow Jesus at camp this summer. "))})),el=vwo_$(".pushdown-copy > p:nth-of-type(1)");})(".pushdown-copy > p:nth-of-type(1)")}}, R_722072_157_1_2_2:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","content",".pushdown-copy > p:nth-of-type(1)"); vwo_debug*/(el=vwo_$(".pushdown-copy > p:nth-of-type(1)")).revertContentOp(),el=vwo_$(".pushdown-copy > p:nth-of-type(1)");})(".pushdown-copy > p:nth-of-type(1)")}}, C_722072_157_1_2_3:{ fn:function(log,nonce=''){return (function(x) {})(".na-pushdown-wrapper,.mw-w-button,input.mw-w-button,#page,.pushdownbar,.div-block-16,.pushdownheadline,.pushdown,.div-block-7,.div-block-8,.paragraph-2,.div-block-15,.mw-btn,.mw-btn:visited,.mw-white,.mw-btn.mw-white,.mw-btn.mw-whitemw-btn:link,.na-pushdown-wrapper .close span,.na-pushdown-wrapper .close,.fa-angle-down:before,/*#donate-menu,.close-wrapper,.btn-dismiss,#masthead .close-menu,.pushdown .pushdown__row,.pushdown .pushdown__col,.pushdown .pushdown__content,.pushdown .pushdown-copy > *:last-child,.pushdown .grid-area,.pushdown .grid-card,.pushdown .grid-card div > p,.pushdown .grid-card div > p > span,.pushdown .grid-card .flex-col,.pushdown .grid-card div > p > b,.pushdown .grid-card button,.pushdown div div.centered,.pushdown div a.other-link,.pushdown .pushdown__close,.pushdown .grid-card p:nth-of-type(3),.pushdown .grid-card p > b")}}, R_722072_157_1_2_3:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
})(".na-pushdown-wrapper,.mw-w-button,input.mw-w-button,#page,.pushdownbar,.div-block-16,.pushdownheadline,.pushdown,.div-block-7,.div-block-8,.paragraph-2,.div-block-15,.mw-btn,.mw-btn:visited,.mw-white,.mw-btn.mw-white,.mw-btn.mw-whitemw-btn:link,.na-pushdown-wrapper .close span,.na-pushdown-wrapper .close,.fa-angle-down:before,/*#donate-menu,.close-wrapper,.btn-dismiss,#masthead .close-menu,.pushdown .pushdown__row,.pushdown .pushdown__col,.pushdown .pushdown__content,.pushdown .pushdown-copy > *:last-child,.pushdown .grid-area,.pushdown .grid-card,.pushdown .grid-card div > p,.pushdown .grid-card div > p > span,.pushdown .grid-card .flex-col,.pushdown .grid-card div > p > b,.pushdown .grid-card button,.pushdown div div.centered,.pushdown div a.other-link,.pushdown .pushdown__close,.pushdown .grid-card p:nth-of-type(3),.pushdown .grid-card p > b")}}, C_722072_157_1_3_0:{ fn:function(log,nonce=''){return (function(x) {;var _vwo_sel=vwo_$("");vwo_$('head').append(_vwo_sel);return vwo_$('head')[0] && vwo_$('head')[0].lastChild;})("HEAD")}}, R_722072_157_1_3_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="1744062807520"]');
el.revertContentOp().remove();})("HEAD")}}, C_722072_157_1_3_1:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("addElement","body"); vwo_debug*/!(el=vwo_$("body")).find('[vwo-op-1744062806872=""]').length&&el.vwoElement({html:'
\n \x3c!--
\n
\n \n
\n
--\x3e\n
\n
\n \n
\n
\n
\n
\n \n \x3c!--
\n If you have a moment...\n
--\x3e\n
\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
I:58’s name is sourced from Isaiah 58. Central to this passage is God’s heart for those who are yoked by chains of injustice. As a mission, I:58’s values and beliefs are catalyzed by this calling as it aligns with The Navigators mission to make disciples of all nations. We view our calling as a mission of The Navigators, to make disciples of men, women, and youth of all races, classes, and people groups, with a specific sensitivity to those affected by systemic injustice. Believing in the power of presence, Navigators in I:58 labor alongside local leaders seeking to renew hope, restore justice, and rebuild communities.
Our local staff and stakeholders seek to love God and love our neighbors in ways ranging from racial reconciliation to housing rehab projects, from long-term mentoring relationships to youth outreach programs. We want to invest in our communities across the divides of age, race, and economics in partnership with local leaders with a special eye toward those society has put on the margins. Whatever form our ministry takes, the heart is the same as ever: we are passing on the living gospel of Jesus’ Kingdom, from one generation to the next, so that Jesus can bring transformation and wholeness.
Explore how your perspective of the power of the cross changes as you deepen your understanding of God’s holiness and the extent of your sin. Continue Reading
Jim and Jodi Bartels have created a thriving ministry to youth in Grand Rapids, Michigan — all through opening up their home and backyard. Continue Reading
What does discipleship in prison look like? Navigators in Boston are coming alongside inmates to mentor them in their personal journeys and … Continue Reading