"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4306],{48683:function(e,t,n){var r=n(85893),i=n(36465),o=n.n(i),a=n(2232),s=n(52107),l=n(45697),d=n.n(l),c=n(67294),u=n(94184),m=n.n(u),y=n(97236),v=n(69692),b=n(41664),f=n.n(b);let x=c.forwardRef(function(e,t){let n,i,l,d,{children:c,className:u="",disabled:b=!1,href:x=null,icon:p,iconOnRight:_=!1,isReversed:h=!1,size:g="",type:w="button",postfixIcon:N=!1,...j}=e,E=(0,v.Z)(),S=g;g===s.i.RESPONSIVE&&(S=E<(0,y.Zg)(a.Bs.MEDIUM)?s.i.SMALL:s.i.LARGE);let{className:B,styles:T}=(S===s.i.LARGE?(n=18,i=43,l=3,d=18):(n=16,i=28,l=2,d=16),{styles:(0,r.jsx)(o(),{id:"9bdc39f76710d5c5",dynamic:[i,n,i,l,d],children:".tertiaryButton.__jsx-style-dynamic-selector{text-decoration:none;font-weight:normal;color:var(--btnTert-text);display:inline-block;height:".concat(i,"px;font-size:").concat(n,"px;line-height:").concat(i,"px;text-align:left;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.tertiaryButton.__jsx-style-dynamic-selector .underline.__jsx-style-dynamic-selector{padding-bottom:").concat(l,"px}.tertiaryButton.__jsx-style-dynamic-selector .icon.__jsx-style-dynamic-selector{font-size:").concat(d,'px;vertical-align:middle;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;padding-right:6px}.tertiaryButton.postfixIcon.__jsx-style-dynamic-selector .icon.__jsx-style-dynamic-selector{padding-right:0;padding-left:6px}.tertiaryButton.__jsx-style-dynamic-selector:hover{text-decoration:none;color:var(--btnTert-text-hover)}.tertiaryButton.__jsx-style-dynamic-selector:focus .underline.__jsx-style-dynamic-selector,.tertiaryButton.__jsx-style-dynamic-selector:hover .underline.__jsx-style-dynamic-selector{border-bottom:2px solid var(--btnTert-text-hover)}.tertiaryButton.withoutIcon.__jsx-style-dynamic-selector::before,.tertiaryButton.withoutIcon.__jsx-style-dynamic-selector::after{content:"";display:inline-block}.tertiaryButton--isReversed.__jsx-style-dynamic-selector{color:var(--btnTert-reversed-text)}.tertiaryButton--isReversed.__jsx-style-dynamic-selector:focus .underline.__jsx-style-dynamic-selector{border-bottom:2px solid var(--btnTert-reversed-text-hover)}.tertiaryButton--isReversed.__jsx-style-dynamic-selector:hover{color:var(--btnTert-reversed-text-hover)}.tertiaryButton--isReversed.__jsx-style-dynamic-selector:hover .underline.__jsx-style-dynamic-selector{border-bottom:2px solid var(--btnTert-reversed-text-hover)}.tertiaryButton.tertiaryButton--disabled.__jsx-style-dynamic-selector,.tertiaryButton.tertiaryButton--disabled.__jsx-style-dynamic-selector:hover{color:var(--btnTert-text-disabled)}.tertiaryButton.tertiaryButton--disabled.tertiaryButton--isReversed.__jsx-style-dynamic-selector,.tertiaryButton.tertiaryButton--disabled.tertiaryButton--isReversed.__jsx-style-dynamic-selector:hover{color:var(--btnTert-reversed-text-disabled)}.tertiaryButton.tertiaryButton--disabled.__jsx-style-dynamic-selector:hover .underline.__jsx-style-dynamic-selector{border-bottom:none}[data-whatinput="mouse"] .tertiaryButton.__jsx-style-dynamic-selector:focus:not(:hover) .underline.__jsx-style-dynamic-selector{border-bottom:none}.flexOrder.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.postfixIcon.__jsx-style-dynamic-selector .flexOrder.__jsx-style-dynamic-selector{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-moz-box-orient:horizontal;-moz-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.underline.__jsx-style-dynamic-selector{border-bottom:none!important}')}),className:o().dynamic([["9bdc39f76710d5c5",[i,n,i,l,d]]])}),L={className:m()("tertiaryButton","button--isClear","hideOutlineForMouse","noPrint",B,u,{withoutIcon:!p,"tertiaryButton--isReversed":h,"tertiaryButton--disabled":b,postfixIcon:N}),tabIndex:0,...j},R=null;return(p&&(R=(0,r.jsx)("span",{className:"icon ".concat(B),children:p})),x&&!b)?(0,r.jsxs)(f(),{href:x,ref:t,...L,children:[(0,r.jsxs)("span",{className:"".concat(B," flexOrder"),children:[R,(0,r.jsx)("span",{className:"".concat(B," underline"),children:c})]}),T]}):(0,r.jsxs)("button",{...L,ref:t,type:w,disabled:b,children:[(0,r.jsxs)("span",{className:"".concat(B," flexOrder"),children:[!_&&R,(0,r.jsx)("span",{className:"".concat(B," underline"),children:c}),"\xa0\xa0",_&&R]}),T]})});x.propTypes={children:d().node.isRequired,className:d().string,"data-qa":d().string.isRequired,disabled:d().bool,href:d().string,icon:d().element,isReversed:d().bool,size:d().string,type:d().oneOf(["submit","reset","button",void 0])},t.Z=x},64306:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(85893),i=n(45697),o=n.n(i),a=n(54303),s=n(48683),l=n(52107),d=n(17279);function c(e){let{button:t,isReversed:n}=e,i=t.text.replaceAll(" ","-"),o=(0,d.ew)(t.splitCode,void 0,t.page.slugUrl);t.splitCode||"Page"!==t.page.__typename||(o=t.page.path);let c=!1;return(c=void 0===n?"Yes"===t.reversed:n,"tertiary"===t.variant)?(0,r.jsx)(s.Z,{size:l.i.RESPONSIVE,"data-qa":"btn-".concat(i),href:o,isReversed:c,children:(0,r.jsx)("span",{"data-contentful-entry-id":t.sys.id,"data-contentful-field-id":"text",children:t.text})}):(0,r.jsx)(a.Z,{size:t.size,"data-qa":"btn-".concat(i),href:o,variant:t.variant,isReversed:c,children:(0,r.jsx)("span",{"data-contentful-entry-id":t.sys.id,"data-contentful-field-id":"text",children:t.text})})}c.propTypes={button:o().object.isRequired,isReversed:o().bool}},17279:function(e,t,n){n.d(t,{iq:function(){return y},lM:function(){return _},nm:function(){return b},Jo:function(){return g},eG:function(){return v},zW:function(){return h},PG:function(){return f},ew:function(){return x}});var r=n(85893),i=n(45697),o=n.n(i),a=n(90669);function s(e){let{section:t}=e;return t.code?(0,r.jsx)(a.Z,{html:t.code}):null}s.propTypes={section:o().object},n(47380),n(76882);var l=n(79545),d=n(67294),c=n(50178),u=n(9779),m=n(67304);let y={NOW:"now",TRIBUTE:"tribute"};function v(){let e=new MutationObserver(t=>{t.forEach(()=>{let t=document.querySelector(".k_button");t&&(t.classList.add("legacyPrimaryButton"),e.disconnect())})});e.observe(document.body,{childList:!0,subtree:!0});let t=document.querySelector(".k_button");t&&(t.classList.add("legacyPrimaryButton"),e.disconnect())}function b(e){let{section:t,rules:n={}}=e,i={...n,alignment:t.alignment};switch(null==t?void 0:t.__typename){case"RichTextSection":return(0,r.jsx)(l.Nq,{json:t.content.json,rules:i});case"HtmlCode":return(0,r.jsx)(s,{section:t});default:return null}}function f(e,t,n){let r=(0,d.useRef)(""),i=(0,d.useRef)(""),o=(0,d.useRef)(!1),a=(0,d.useRef)(!1),{isSignedIn:s}=(0,u.SE)();(0,d.useEffect)(()=>{let l=()=>{let e="Submit Secure Donation",t=document.querySelector('[data-fieldid="ggePaymentPlan--ongoingOption"]').checked;t&&(e+=" Each ".concat(i.current)),document.querySelector("#ggeForm1 button[type='submit']").innerHTML=e,document.querySelector(".ggeSection--payment h1").innerHTML='<i class="fa-regular fa-lock"></i> Your information is secure',o.current&&!a.current&&(e=>{let t=document.querySelectorAll('div[data-answername="DonationLevel"] .ggePrompts > .ggePrompt');t.forEach((t,n)=>{e?n<3?t.classList.remove("hiddenAmount"):t.classList.add("hiddenAmount"):n>1?t.classList.remove("hiddenAmount"):t.classList.add("hiddenAmount")})})(t)},d=t=>{var n,d,u,m;let y=document.querySelector('[data-answername="Tribute Message"]');y&&(o.current=!0),document.querySelector("main").setAttribute("data-formType",o.current?"tribute":"non-tribute");let v=document.querySelector("button.ggeButton[type='submit']");v&&v.classList.add("cbPrimaryButton"),r.current=v.innerHTML;let b=null===(n=t.detail.definition.pages[0].columns[0].sections.find(e=>"_kimbia.donation"===e.name))||void 0===n?void 0:n.questions.find(e=>"DonationLevel"===e.answerName);a.current=!(null==b?void 0:null===(d=b.paymentPlan)||void 0===d?void 0:d.oneTimeOption),document.querySelector('[data-sectionname="_payment"]').classList.add("clearfix");let f=null===(u=null===(m=t.detail.definition.pages[0].columns[0].sections.find(e=>"_kimbia.donation"===e.name))||void 0===m?void 0:m.questions.find(e=>"DonationLevel"===e.answerName))||void 0===u?void 0:u.paymentPlan.ongoingOptions[0].interval;i.current="MONTHLY"===f?"Month":"Period";let x=document.querySelector('label[for="_payment.verification__ggid1"]');x.innerHTML="CVC";let p=document.querySelector('[data-answername="DonationLevel"]'),_=document.createElement("div");_.setAttribute("id","planPortal"),p.parentNode.insertBefore(_,p);let h=(0,c.Ph)("tFirstName"),g=document.querySelector('[data-answername="hidden_TributeeFirstName"] input');h&&g&&(g.value=h);let w=(0,c.Ph)("tLastName"),N=document.querySelector('[data-answername="hidden_TributeeLastName"] input');w&&N&&(N.value=w);let j=(0,c.Ph)("siteLink"),E=document.querySelector('[data-answername="hidden_SiteUrl"] input');j&&E&&(E.value=j);let S=(0,c.Ph)("siteName"),B=document.querySelector('[data-answername="hidden_SiteName"] input');if(S&&B&&(B.value=S),l(),o.current){let e=document.querySelector('[data-answername="Name of Donor"]'),t=document.querySelector('div[data-answername="Anonymous"] input[type="checkbox"]'),n=document.querySelector('[data-answername="Name of Donor"] input'),r=(0,c.Ph)("firstName"),i=(0,c.Ph)("lastName"),o="".concat(r," ").concat(i);n&&r&&i&&(n.value=o),t&&t.addEventListener("change",t=>{n&&(t.target.checked?(e.style.display="none",n.value="Anonymous",n.setAttribute("disabled","true")):(e.style.display="block",n.value=o,n.removeAttribute("disabled")))})}if(s){let e=document.querySelector('[data-answername="Email Opt-In"]');e&&e.setAttribute("hidden","true")}e(a.current)},u=()=>{l()},m=()=>{var e,t,r;let i=document.querySelector('[data-answername="Name of Donor"] input'),o=document.querySelector('[data-answername="Tribute Message"] textarea'),a=document.querySelector('[data-answername="Anonymous"] input[type="checkbox"]');n.current={signature:null!==(e=null==i?void 0:i.value)&&void 0!==e?e:"",message:null!==(t=null==o?void 0:o.value)&&void 0!==t?t:"",anonymousTribute:null!==(r=null==a?void 0:a.checked)&&void 0!==r&&r}},y=e=>{t(e)};return window.addEventListener("widgetRenderEnd",d),window.addEventListener("widgetRecalculate",u),window.addEventListener("widgetSubmit",m),window.addEventListener("widgetComplete",y),()=>{window.removeEventListener("widgetRenderEnd",d),window.removeEventListener("widgetRecalculate",u),window.removeEventListener("widgetSubmit",m),window.removeEventListener("widgetComplete",y)}},[])}function x(e,t,n){var r,i,o;let{id:a,firstName:s,lastName:l,emailAddress:d}=(0,u.SE)(),v=(0,c.Ph)("siteId"),{data:b}=(0,m.Z)(v),f={splitCode:e,campaign:n,siteId:v,userId:a,firstName:s,lastName:l,emailAddress:d,tributeeFirstName:null==b?void 0:null===(r=b.getSite)||void 0===r?void 0:r.firstName,tributeeLastName:null==b?void 0:null===(i=b.getSite)||void 0===i?void 0:i.lastName,siteUrl:v?(0,c.G3)(c.Z6.SITE_HOME_PAGE,v):void 0,siteName:null==b?void 0:null===(o=b.getSite)||void 0===o?void 0:o.title};return t&&(f.tributeMessage=t),(0,c.G3)(c.Z6.GIVE_DONATION,function(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e,i=p.get(n);i&&r&&(t[i]=r)}),t.campaign||(t.campaign=e.siteId?y.TRIBUTE:y.NOW),t}(f))}b.propTypes={section:o().object.isRequired,rules:o().object};let p=new Map([["firstName","firstName"],["lastName","lastName"],["splitCode","split"],["emailAddress","email"],["userId","user_id"],["tributeMessage","msg"],["tributeeFirstName","tFirstName"],["tributeeLastName","tLastName"],["siteUrl","siteLink"],["siteName","siteName"],["campaign","campaign"],["siteId","siteId"]]),_={HEADER_DONATE:"1100",HEADER_TRIBUTE:"12000",FOOTER_DONATE:"1019",FOOTER_TRIBUTE:"12003"},h=()=>{let e=(0,c.Ph)("siteId");return e?y.TRIBUTE:y.NOW},g=e=>"".concat(e,"B")},69692:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(67294);function i(){let[e,t]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let e=()=>{requestAnimationFrame(()=>t(window.innerWidth))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}},97236:function(e,t,n){function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?"number"==typeof e&&null!==e&&isFinite(e):!(String(e).search(/[^0-9e.-]+/)>-1)&&!isNaN(parseFloat(e))}function i(e){let t=String(e).match(/[\d.]+/);return Array.isArray(t)?Number(t[0]):NaN}function o(e){return"number"!=typeof e?"NaN":e>999999999?"1B+":e>999999?(Math.floor(e/1e5)/10).toString()+"M":e>999?(Math.floor(e/100)/10).toString()+"K":e<1e3?e.toString():void 0}n.d(t,{Zg:function(){return i},eQ:function(){return o},kE:function(){return r}})}}]);