PageSourceSearch

https://www.caringbridge.org/_next/static/chunks/6310.46f33e83d2b3e3f7.js

js caringbridge.org collected 2026-09-24 08:42:06 UTC 118,539 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6310],{26310:function(e,i,t){t.r(i),t.d(i,{default:function(){return i3}});var n=t(85893),o=t(45697),a=t.n(o),s=t(67294),l=t(11163),r=t(40645),d=t.n(r),c=t(31445),u=t(4162),m=t(87036),p=t(61082),x=t(29457),b=t(44170),g=t(76935),v=t(63168),h=t(43287),f=t(57107),y=t(35677),j=t(91047),w=t(35691),S=t(56983),T=t(13433),I=t(91067),k=t(63476),E=t(90331),C=t(99392),N=t(57640),_=t(37887),M=t(61922),A=t(5241),D=t(22878),B=t(25675),R=t.n(B),P=t(41664),U=t.n(P),z=t(50319),O=t(61755),L=t(14e3),q=t(95027);let F={header:"Ways to Get Help",body:"Allow friends and family to send you a virtual or physical gift card. Whether it's a cup of coffee, or a Mastercard debit for flexibility, it's another way your friends and family can support you.",buttonText:"Accept Gift Cards",closeButton:"Close",icon:{classNames:"fa-heart-circle-plus fa-solid",colors:{color:"berryBridge.500",bgColor:"berryBridge.200"}},buttonAction:{}};var G=t(73167),H=t(73775),W=t(49357);function Z(e){var i;if(e)return"string"==typeof e?e:null!==(i=e.value)&&void 0!==i?i:void 0}function V(e){var i,t,n,o,a,s,l,r,d,c,u,m;return e?{sysId:null!==(n=null===(i=e.sys)||void 0===i?void 0:i.id)&&void 0!==n?n:void 0,headline:null!==(o=e.headline)&&void 0!==o?o:void 0,body:null!==(a=null===(t=e.body)||void 0===t?void 0:t.json)&&void 0!==a?a:void 0,icon:null!==(s=e.icon)&&void 0!==s?s:void 0,badge:null!==(l=e.badge)&&void 0!==l?l:void 0,image:function(e){var i,t,n,o;if(!e)return;let a=null===(i=e.asset)||void 0===i?void 0:i[0],s=null!==(n=null!==(t=null==a?void 0:a.secure_url)&&void 0!==t?t:null==a?void 0:a.url)&&void 0!==n?n:void 0;if(s)return{url:s,altText:null!==(o=e.altText)&&void 0!==o?o:void 0}}(e.image),button:null!==(r=e.button)&&void 0!==r?r:void 0,ctaText:null!==(d=e.ctaText)&&void 0!==d?d:void 0,ctaHref:null!==(c=e.ctaHref)&&void 0!==c?c:void 0,ctaBackgroundColor:Z(e.ctaBackgroundColor),ctaTextColor:Z(e.ctaTextColor),dismissible:!1!==e.dismissible,dismissalKey:null!==(u=e.dismissalKey)&&void 0!==u?u:void 0,rules:null!==(m=e.rules)&&void 0!==m?m:void 0}:null}function Q(){var e,i,t;let n=function(){var e,i;let t=(0,H.bh)();return(null!==(i=null==t?void 0:null===(e=t.page)||void 0===e?void 0:e.sidebarTips)&&void 0!==i?i:[]).map(V).filter(Boolean)}(),{isSignedIn:o}=(0,h.SE)(),a=(0,u.Ph)("siteId"),{loading:s,data:l}=(0,E.Z)(a);if(a&&s)return{tip:null,matchedRule:null};let r=a&&!s&&null!==(e=null==l?void 0:l.getSite)&&void 0!==e?e:null,d=null!==(i=n.find(e=>{var i;return(0,W.yg)(null!==(i=e.rules)&&void 0!==i?i:null,{isSignedIn:o,siteData:r})}))&&void 0!==i?i:null;return{tip:d,matchedRule:null!==(t=null==d?void 0:d.rules)&&void 0!==t?t:null}}let Y="INACTIVE";function K(){var e,i,t,o,a,s,l,r,d;let c=(0,u.Ph)("siteId"),m=(0,C.c)(C.T.GO_FUND_ME),p=(0,C.c)(C.T.MEAL_TRAIN),{data:x,loading:b}=(0,E.Z)(c),{data:g,loading:v}=(0,_.a)(N.m$,{variables:{siteId:c},fetchPolicy:"network-only"}),h=null!==(l=null==g?void 0:null===(e=g.getSite)||void 0===e?void 0:e.waysToHelps)&&void 0!==l?l:[],f=h.find(e=>e.type===A._Q.GO_FUND_ME),y=(null==f?void 0:null===(i=f.item)||void 0===i?void 0:i.fundUrl)?f.item:null,j=null!==(r=null==f?void 0:f.showOnSite)&&void 0!==r?r:null,w=h.find(e=>e.type===A._Q.MEAL_TRAIN),S=(null==w?void 0:null===(t=w.item)||void 0===t?void 0:t.shareLink)?w.item:null,T=null!==(d=null==w?void 0:w.showOnSite)&&void 0!==d?d:null,I=h.find(e=>e.type===A._Q.GIFT_CARD),k=(null==I?void 0:null===(o=I.item)||void 0===o?void 0:o.emailAddress)?I.item:null,D=(null==y?void 0:null===(a=y.campaign)||void 0===a?void 0:a.status)===Y,B=null==x?void 0:null===(s=x.getSite)||void 0===s?void 0:s.isAuthor,R="".concat((0,u.G3)(u.Z6.SITE_WAYS_TO_HELP,c)),P=function(){var e;let{tip:i,matchedRule:t}=Q();return!!(i&&(null==t?void 0:null===(e=t.roles)||void 0===e?void 0:e.includes("Author")))}();return(m||p)&&B&&(!D||S)?b||v?(0,n.jsx)("div",{className:" center",children:(0,n.jsx)(M.ZP,{})}):(0,n.jsxs)(n.Fragment,{children:[!k&&!P&&(0,n.jsx)($,{waysToHelpUrl:R,siteId:c}),(0,n.jsx)(J,{mealTrainItem:S,showOnSite:T}),(0,n.jsx)(X,{goFundMeItem:y,showOnSite:j})]}):null}let $=e=>{let{waysToHelpUrl:i,siteId:t}
1=e,[o,a]=(0,s.useState)(!1),{launchEditorFor:l}=(0,q.K)(),{latestFeature:r}=(0,O.D)(),c=(null==r?void 0:r.releasedAt)||"",{wthSettings:u}=(0,h.SE)(),p=(null==u?void 0:u.ctaDismissedAt)||"",[x]=(0,z.D)(N.z9),b=!p||new Date(p)<new Date(c),g=(0,s.useMemo)(()=>{var e,n;return(null===(e=F.buttonAction)||void 0===e?void 0:e.onClick)?{onClick:()=>F.buttonAction.onClick(l,t)}:(null===(n=F.buttonAction)||void 0===n?void 0:n.href)?{href:F.buttonAction.href}:{href:i}},[l,t,i]);return o||!b?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:d().dynamic([["73cc075af4eae99",[m.Bs.MEDIUM]]])+" largeViewOnly marginTop--48",children:[(0,n.jsxs)("div",{className:d().dynamic([["73cc075af4eae99",[m.Bs.MEDIUM]]])+" row",children:[(0,n.jsx)(L.x,{as:"span",w:"32px",h:"32px",borderRadius:"full",fontSize:"16px",display:"flex",justifyContent:"center",alignItems:"center",marginRight:"8px",...F.icon.colors,children:(0,n.jsx)("i",{className:d().dynamic([["73cc075af4eae99",[m.Bs.MEDIUM]]])+" "+(F.icon.classNames||"")})}),(0,n.jsx)("h6",{"data-qa":"waysToGetHelpWidgetTitle",className:d().dynamic([["73cc075af4eae99",[m.Bs.MEDIUM]]])+" navHeadline",children:F.header})]}),(0,n.jsx)("p",{"data-qa":"waysToGetHelpWidgetText",className:d().dynamic([["73cc075af4eae99",[m.Bs.MEDIUM]]]),children:F.body}),(0,n.jsx)(D.Z,{className:"center","data-qa":"gfmGetStartedButton",fullWidth:!0,...g,children:F.buttonText}),(0,n.jsx)("button",{"data-qa":"gfmCloseButton",onClick:()=>{a(!0),x()},className:d().dynamic([["73cc075af4eae99",[m.Bs.MEDIUM]]])+" marginTop--12 button--isClear button--asLink",children:F.closeButton})]}),(0,n.jsx)(d(),{id:"73cc075af4eae99",dynamic:[m.Bs.MEDIUM],children:".row.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-moz-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.waysToHelpIconWrapper.__jsx-style-dynamic-selector{width:32px;height:32px;-webkit-border-radius:16px;-moz-border-radius:16px;border-radius:16px;background-color:var(--berry-bridge-200);font-size:16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;color:var(--color-primary);margin-right:8px}.navHeadline.__jsx-style-dynamic-selector{font-size:16px}@media(max-width:".concat(m.Bs.MEDIUM,"){.largeViewOnly.__jsx-style-dynamic-selector{display:none}}")})]})};$.propTypes={waysToHelpUrl:a().string.isRequired,siteId:a().string.isRequired};let X=e=>{var i,t,o,a,s,l,r,c,u,p,x,b,g,v,h,f,y,j,w,S,T,I,k,E,C,N,_,M,A,D,B,P,z,O,L,q,F,H,W;let{goFundMeItem:Z,showOnSite:V}=e;if(!V||!Z||(null==Z?void 0:null===(i=Z.campaign)||void 0===i?void 0:i.status)===Y)return null;let Q=(0,G.jR)(null==Z?void 0:Z.fundUrl,null==Z?void 0:Z.isIntegrated);return(0,n.jsxs)("div",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(t=Z.campaign)||void 0===t?void 0:t.amountRaised)/(null==Z?void 0:null===(o=Z.campaign)||void 0===o?void 0:o.goalAmount)*100,m.Bs.MEDIUM]]])+" largeViewOnly marginTop--48",children:[(0,n.jsx)(R(),{src:"/logos/goFundMeLogo2.svg",alt:"",width:155,height:50,style:{width:"80%"}}),(0,n.jsxs)("p",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(a=Z.campaign)||void 0===a?void 0:a.amountRaised)/(null==Z?void 0:null===(s=Z.campaign)||void 0===s?void 0:s.goalAmount)*100,m.Bs.MEDIUM]]]),children:[(0,n.jsxs)("span",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(l=Z.campaign)||void 0===l?void 0:l.amountRaised)/(null==Z?void 0:null===(r=Z.campaign)||void 0===r?void 0:r.goalAmount)*100,m.Bs.MEDIUM]]])+" callout",children:["$",null==Z?void 0:null===(c=Z.campaign)||void 0===c?void 0:c.amountRaised]})," raised of"," ",(0,n.jsxs)("span",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(u=Z.campaign)||void 0===u?void 0:u.amountRaised)/(null==Z?void 0:null===(p=Z.campaign)||void 0===p?void 0:p.goalAmount)*100,m.Bs.MEDIUM]]])+" callout",children:["$",null==Z?void 0:null===(x=Z.campaign)||void 0===x?void 0:x.goalAmount]})," goal"]}),(0,n.jsx)("div",{"data-qa":"siteActionsGoFundMeGoalBar",className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(b=Z.campaign)||void 0===b?void 0:b.amountRaised)/(null==Z?void 0:null===(g=Z.campaign)||void 0===g?void 0:g.goalAmount)*100,m.Bs.MEDIUM]]])+" goalBarOuter",children:(0,n.jsx)("div",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(v=Z.campaign)||void 0===v?void 0:v.amountRaised)/(null==Z?void 0:null===(h=Z.campaign)||void 0===h?void 0:h.goalAmount)*100,m.Bs.MEDIUM]]])+" goalBarInner"})}),(0,n.jsx)("p",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(f=Z.campaign)||void 0===f?void 0:f.amountRaised)/(null==Z?void 0:null===(y=Z.campaign)||void 0===y?void 0:y.goalAmount)*100,m.Bs.MEDIUM]]])+" amountUpdateDiscalimer",children:"*Amount updated hourly"}),(null==Z?void 0:null===(w=Z.campaign)||void 0===w?void 0:null===(j=w.recentDonations)||void 0===j?void 0:j.length)?(0,n.jsxs)("div",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(S=Z.campaign)||void 0===S?void 0:S.amountRaised)/(null==Z?void 0:null===(T=Z.campaign)||void 0===T?void 0:T.goalAmount)*100,m.Bs.MEDIUM]]])+" donationsSection",children:[(0,n.jsx)("p",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(I=Z.campaign)||void 0===I?void 0:I.amountRaised)/(null==Z?void 0:null===(k=Z.campaign)||void 0===k?void 0:k.goalAmount)*100,m.Bs.MEDIUM]]])+" donatorRow callout",children:"Recent Donations:"}),(null==Z?void 0:null===(E=Z.campaign)||void 0===E?void 0:E.recentDonations.length)&&(null===(C=Object.keys(Z.campaign.recentDonations[0]))||void 0===C?void 0:C.length)?(0,n.jsxs)("p",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(N=Z.campaign)||void 0===N?void 0:N.amountRaised)/(null==Z?void 0:null===(_=Z.campaign)||void 0===_?void 0:_.goalAmount)*100,m.Bs.MEDIUM]]])+" donatorRow",children:[(0,n.jsxs)("span",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(M=Z.campaign)||void 0===M?void 0:M.amountRaised)/(null==Z?void 0:null===(A=Z.campaign)||void 0===A?void 0:A.goalAmount)*100,m.Bs.MEDIUM]]])+" callout",children:["$",Z.campaign.recentDonations[0].amount]})," ","from ",Z.campaign.recentDonations[0].donorName]}):null,(null==Z?void 0:null===(D=Z.campaign)||void 0===D?void 0:D.recentDonations.length)>1&&(null===(B=Object.keys(Z.campaign.recentDonations[1]))||void 0===B?void 0:B.length)?(0,n.jsxs)("p",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(P=Z.campaign)||void 0===P?void 0:P.amountRaised)/(null==Z?void 0:null===(z=Z.campaign)||void 0===z?void 0:z.goalAmount)*100,m.Bs.MEDIUM]]])+" donatorRow",children:[(0,n.jsxs)("span",{className:d().dynamic([["ea43c545d3622137",[(null==Z?void 0:null===(O=Z.campaign)||void 0===O?void 0:O.amountRaised)/(null==Z?void 0:null===(L=Z.campaign)||void 0===L?void 0:L.goalAmount)*100,m.Bs.MEDIUM]]])+" callout",children:["$",Z.campaign.recentDonations[1].amount]})," ","from ",Z.campaign.recentDonations[1].donorName]}):null]}):null,(0,n.jsx)(U(),{href:Q,target:"_blank","data-qa":"siteActionsViewGoFundMeCTA",children:"View my GoFundMe"}),(0,n.jsx)(d(),{id:"ea43c545d3622137",dynamic:[(null==Z?void 0:null===(q=Z.campaign)||void 0===q?void 0:q.amountRaised)/(null==Z?void 0:null===(F=Z.campaign)||void 0===F?void 0:F.goalAmount)*100,m.Bs.MEDIUM],children:".goalBarOuter.__jsx-style-dynamic-selector{width:100%;height:20px;border:1px solid var(--gray-300);-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;overflow:hidden}.goalBarInner.__jsx-style-dynamic-selector{height:20px;width:".concat((null==Z?void 0:null===(H=Z.campaign)||void 0===H?void 0:H.amountRaised)/(null==Z?void 0:null===(W=Z.campaign)||void 0===W?void 0:W.goalAmount)*100,"%;background-color:#4a9d44}.amountUpdateDiscalimer.__jsx-style-dynamic-selector{color:var(--btnTert-text-disabled);font-style:italic}.callout.__jsx-style-dynamic-selector{font-weight:600;font-size:16px}.donationsSection.__jsx-style-dynamic-selector{margin-bottom:16px}.donatorRow.__jsx-style-dynamic-selector{margin:0}@media(max-width:").concat(m.Bs.MEDIUM,"){.largeViewOnly.__jsx-style-dynamic-selector{display:none}}")})]})};X.propTypes={goFundMeItem:a().object,showOnSite:a().bool};let J=e=>{let{mealTrainItem:i,showOnSite:t}=e;return t&&i?(0,n.jsxs)("div",{className:d().dynamic([["f061578053ad3ea7",[m.Bs.MEDIUM]]])+" largeViewOnly flexColumn marginTop--48",children:[(0,n.jsx)(R(),{src:"/logos/mealTrainLogo.svg",alt:"",width:155,height:54,style:{width:"80%"}}
1),(0,n.jsx)(U(),{href:i.shareLink,target:"_blank",children:"View my Meal Train"}),(0,n.jsx)(d(),{id:"f061578053ad3ea7",dynamic:[m.Bs.MEDIUM],children:".flexColumn.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.goalBarOuter.__jsx-style-dynamic-selector{width:100%;height:20px;border:1px solid var(--gray-300);-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;overflow:hidden}.donationsSection.__jsx-style-dynamic-selector{margin-bottom:16px}.donatorRow.__jsx-style-dynamic-selector{margin:0}@media(max-width:".concat(m.Bs.MEDIUM,"){.largeViewOnly.__jsx-style-dynamic-selector{display:none}}")})]}):null};J.propTypes={mealTrainItem:a().object,showOnSite:a().bool};var ee=t(12284),ei=t(25351);function et(e){var i,t,o,a;let{placement:l="desktop"}=e,{tip:r}=Q(),c=(0,u.Ph)("siteId"),p=function(e){var i,t,n,o;let{data:a}=(0,_.a)(ei.li,{variables:{siteId:e},skip:!e}),s=null==a?void 0:null===(o=a.getSite)||void 0===o?void 0:null===(n=o.postConnection)||void 0===n?void 0:null===(t=n.posts)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.id;return e&&s?(0,u.G3)(u.Z6.SITE_SINGLE_POST,{siteId:e,postId:s}
1):null}(c),{id:x}=(0,h.SE)(),b=null==r?void 0:r.dismissalKey,g=(null==r?void 0:r.dismissible)!==!1,v=b?"".concat("cb-sidebar-tip-dismissed-").concat(b,"-").concat(x||"anon"):null,[f,y]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{var e;if(!g||!v){y(!1);return}let i=parseInt(null!==(e=localStorage.getItem(v))&&void 0!==e?e:"",10);y(Number.isFinite(i)&&Date.now()-i<2592e6)},[g,v]),!r||g&&f)return null;let j=(null===(i=r.image)||void 0===i?void 0:i.url)?(0,ee.O)(r.image.url,300):"",w=c?"/site/".concat(c):"",S="";return(null===(t=r.ctaHref)||void 0===t?void 0:t.includes("[latestPostId]"))?S=null!=p?p:w:r.ctaHref&&(S=r.ctaHref.replace("[siteId]",null!=c?c:"")),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{"data-qa":"sidebarTip",className:d().dynamic([["430e8a29f5c6511d",[m.Bs.MEDIUM,m.Bs.MEDIUM]]])+" "+"".concat("mobile"===l?"smallViewOnly":"largeViewOnly"," sidebarTip marginTop--48"),children:[r.badge&&(0,n.jsx)("span",{"data-qa":"sidebarTipBadge",className:d().dynamic([["430e8a29f5c6511d",[m.Bs.MEDIUM,m.Bs.MEDIUM]]])+" badge",children:r.badge}),(0,n.jsxs)("div",{className:d().dynamic([["430e8a29f5c6511d",[m.Bs.MEDIUM,m.Bs.MEDIUM]]])+" contentGroup",children:[j&&(0,n.jsx)("img",{src:j,alt:null!==(a=null===(o=r.image)||void 0===o?void 0:o.altText)&&void 0!==a?a:"","data-qa":"sidebarTipImage",className:d().dynamic([["430e8a29f5c6511d",[m.Bs.MEDIUM,m.Bs.MEDIUM]]])+" tipImage"}),r.headline&&(0,n.jsx)("h6",{"data-qa":"sidebarTipTitle",className:d().dynamic([["430e8a29f5c6511d",[m.Bs.MEDIUM,m.Bs.MEDIUM]]])+" tipHeadline",children:r.headline}),r.body&&(0,n.jsx)("div",{"data-qa":"sidebarTipBody",className:d().dynamic([["430e8a29f5c6511d",[m.Bs.MEDIUM,m.Bs.MEDIUM]]])+" tipBody",children:(0,n.jsx)(W.Nq,{json:r.body})})]}),r.ctaText&&(0,n.jsx)(D.Z,{className:"center",href:S||void 0,backgroundColor:r.ctaBackgroundColor,textColor:r.ctaTextColor,fullWidth:!0,"data-qa":"sidebarTipCta",children:r.ctaText}),g&&(0,n.jsx)("button",{"data-qa":"sidebarTipDismiss",onClick:()=>{v&&localStorage.setItem(v,String(Date.now())),y(!0)},className:d().dynamic([["430e8a29f5c6511d",[m.Bs.MEDIUM,m.Bs.MEDIUM]]])+" button--isClear button--asLink",children:"Close"})]}),(0,n.jsx)(d(),{id:"430e8a29f5c6511d",dynamic:[m.Bs.MEDIUM,m.Bs.MEDIUM],children:".sidebarTip.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;gap:18px;width:245px;max-width:100%}.contentGroup.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:14px;width:100%}.badge.__jsx-style-dynamic-selector{padding:2px 10px;-webkit-border-radius:24px;-moz-border-radius:24px;border-radius:24px;font-size:14px;font-weight:500;line-height:20px;color:var(--color-primary);background-color:var(--berry-bridge-200)}.tipHeadline.__jsx-style-dynamic-selector{margin:0;color:var(--color-primary);font-size:18px;font-weight:500;line-height:22px}.tipBody.__jsx-style-dynamic-selector{color:var(--indigo);font-size:16px;line-height:20px}.tipImage.__jsx-style-dynamic-selector{max-width:100%;height:auto;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.smallViewOnly.__jsx-style-dynamic-selector{width:100%;-webkit-box-ordinal-group:6;-webkit-order:5;-moz-box-ordinal-group:6;-ms-flex-order:5;order:5}@media(max-width:".concat(m.Bs.MEDIUM,"){.largeViewOnly.__jsx-style-dynamic-selector{display:none}}@media(min-width:").concat(m.Bs.MEDIUM,"){.smallViewOnly.__jsx-style-dynamic-selector{display:none}}")})]})}et.propTypes={placement:a().oneOf(["desktop","mobile"])};var en=t(5152),eo=t.n(en),ea=t(26210),es=t(66693),el=t(28420),er=t(57747),ed=t(57199),ec=t(60453),eu=t(31165),em=()=>{let{activeSurveys:e,refetchSurveys:i}
1=(0,es.y)(),[t,o]=(0,s.useState)([]),[a,l]=(0,s.useState)(!1),r=(0,u.Ph)("siteId"),[d]=(0,z.D)(el.Z,{onCompleted:i}),[c]=(0,z.D)(el.RR,{onCompleted:i}),m=(0,C.c)(C.T.IRB_SURVEY),p=(0,ec.Pe)(),x=(0,s.useCallback)((e,i,t)=>{p({event:ec.kM.SURVEY_ACTION,siteId:r,surveyType:e,action:i,surveyPhase:t})},[p,r]),b=(0,s.useCallback)((i,t)=>{if(i.surveyType===eu.rv.IRB)d({variables:{input:{id:i.id,action:t,siteId:r}}}),t===eu.z9.COMPLETE&&o(e),x(i.surveyType,t);else if(i.surveyType===eu.rv.UCLA){let e=t===eu.z9.DISMISS?eu.z9.DISMISS:eu.z9.UCLA.INITIATE,n=i.surveyCompletedCount+1;x(i.surveyType,t===eu.z9.DISMISS?eu.z9.DISMISS:eu.z9.UCLA.PARTICIPATE,n),c({variables:{input:{id:i.id,action:e,siteId:r,surveyPhase:n}}})}},[r,d,c,e,x]);return((0,s.useEffect)(()=>{e&&e.length&&!a&&(l(!0),o(e))},[e,t,a]),t&&t.length)?(0,n.jsx)(ed.J,{children:(0,n.jsx)(er.xu,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",children:t.map(e=>e.surveyType===eu.rv.IRB&&m||e.surveyType===eu.rv.UCLA?(0,n.jsx)(ea.Z,{survey:e,onInteraction:b,siteId:r},e.id):null)})}):null},ep=t(23918),ex=t(94086),eb=t(24880),eg=t(77030),ev=t(98303),eh=t(7634),ef=t(56714),ey=t(44461),ej=t(24124),ew=t(70959),eS=t(34292),eT=t(93108),eI=t(84028),ek=t(80438),eE=t(90889),eC=t(77672),eN=e=>{let{indicatorStyles:i,bgColorHexes:t,tabIndexes:o}=e,a=t[o.prev],s=t[o.curr],l={type:"tween",ease:"easeInOut",duration:"0.5s"},r={initial:{left:i.prev.left,width:i.prev.width,top:i.prev.top,height:i.prev.height,backgroundColor:a},animate:{left:i.curr.left,width:i.curr.width,top:i.curr.top,height:i.curr.height,backgroundColor:s},transition:l};return(0,n.jsx)(er.xu,{as:eC.E.div,"data-qa":"contentTabsSelectionIndicator","data-testid":"contentTabsSelectionIndicator",position:"absolute",borderRadius:"md",...i.curr,...r,children:(0,n.jsx)(er.xu,{as:eC.E.div,display:"block",position:"absolute",bottom:"-10px",left:"50%",transform:"translateX(-50%)",width:"0",height:"0",borderLeft:"10px solid transparent",borderRight:"10px solid transparent",borderTop:"10px solid",initial:{borderTopColor:a},animate:{borderTopColor:s},transition:l})})};let e_=new Map,eM=e=>{let{id:i,count:t,...o}=e,a=t>=100,l=function(e,i){let t="".concat(e,":").concat(i),[n,o]=(0,s.useState)(()=>{var e;return null!==(e=e_.get(t))&&void 0!==e?e:0});return(0,s.useEffect)(()=>{let e;if(i<=0){o(0);return}let n=e_.get(t);if(void 0!==n){o(n);return}let a=Math.min(i,99);if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){e_.set(t,a),o(a);return}let s=null,l=i=>{null===s&&(s=i);let n=Math.min((i-s)/2400,1);o(Math.floor((n<.5?4*n**3:1-(-2*n+2)**3/2)*a)),n<1?e=requestAnimationFrame(l):e_.set(t,a)};return e=requestAnimationFrame(l),()=>cancelAnimationFrame(e)},[t,i]),n}(i,a?0:t),r=a?"99+":l.toString(),d=a?"99+":t.toString();return(0,n.jsx)(eb.C,{variant:"notificationCount",height:{base:"22px",md:"26px"},width:{base:1===d.length?"22px":"fit-content",md:1===d.length?"26px":"fit-content"},fontSize:{base:"12px",md:"14px"},padding:1===d.length?0:"2px 4px",...o,children:r})};var eA=e=>{let{tabs:i,activeIndex:t=0,onChange:o=e=>void 0,dividerColor:a="gray.300",variant:l="filter",colorScheme:r,size:d}=e,c=(0,eg.jC)("ContentTabs",{variant:l,colorScheme:r,size:d}),u=(0,ev.S)({base:"mobile",lg:"desktop"}),[m,p]=s.useState(t),[x,b]=(0,s.useState)(t),[g,v]=(0,s.useState)(!1);(0,s.useEffect)(()=>{p(e=>e===t?e:(b(e),t))},[t]);let h=(0,s.useRef)(null),f=(0,s.useRef)([]),y=(0,s.useRef)(null),j=(0,eh.dQ)("colors",i.map(e=>e.bgColor)),[w,S]=(0,s.useState)("DESCENDING"),T={left:0,width:0,top:0,height:0},I=(0,s.useRef)(T),k=(0,s.useRef)(T),[,E]=(0,s.useState)(0),C=(0,s.useCallback)(e=>{e!==m&&(b(m),p(e),v(!1),o(e))},[o,m]);(0,ef.O)({ref:h,handler:e=>{var i;!g||(null===(i=y.current)||void 0===i?void 0:i.contains(e.target))||v(!1)}}),(0,s.useLayoutEffect)(()=>{let e=f.current[m],i=h.current;if(!e||!i)return;let t=e.getBoundingClientRect(),n=i.getBoundingClientRect();k.current=I.current,I.current={left:t.left-n.left,width:t.width,top:t.top-n.top,height:t.height},E(e=>e+1)},[m,u,g]);let N=s.memo(()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(ey.t,{zIndex:1,sx:c.tabList,children:i.map((e,t)=>{let o=m===t,l=(0,n.jsx)(ej.O,{id:"contentTabsTab-".concat(e.id),"data-qa":"contentTabsTab-".concat(e.id),color:o?e.color:"inherit",_selected:{color:e.color},zIndex:2,ref:e=>{f.current[t]=e},cursor:"pointer",fontSize:{base:"14px",md:"18px"},sx:c.tab,children:(0,n.jsxs)(er.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",width:"auto",gap:{base:1,lg:2},children:[e.icon&&(0,n.jsx)(er.xu,{as:"span",color:o?e.color:e.bgColor,children:e.icon}),(0,n.jsx)(er.xu,{as:"span",whiteSpace:"nowrap",children:"All Activity"===e.title&&"mobile"===u?"All":e.title}),void 0!==e.notificationBadgeCount&&e.notificationBadgeCount>0?(0,n.jsx)(eM,{id:e.id,count:e.notificationBadgeCount,"data-qa":"contentTabsNotificationBadge-".concat(e.id),marginLeft:"auto"}):e.notificationBadgeText?(0,n.jsx)(eb.C,{variant:"notificationCount","data-qa":"contentTabsNotificationBadge-".concat(e.id),marginLeft:"auto",height:{base:"22px",md:"26px"},width:{base:1===e.notificationBadgeText.length?"22px":"fit-content",md:1===e.notificationBadgeText.length?"26px":"fit-content"},fontSize:{base:"12px",md:"14px"},padding:1===e.notificationBadgeText.length?0:"2px 4px",children:e.notificationBadgeText}):null]})}),r=t===i.length-1;return(0,n.jsxs)(s.Fragment,{children:[l,!r&&"mobile"!==u&&(0,n.jsx)(er.xu,{"data-qa":"contentTabsDivider",width:"1px",height:"12px",marginY:"0",alignSelf:"center",borderRadius:"0.5px",bgColor:a,sx:c.divider,zIndex:2})]},"tabSlider-".concat(e.id,"-").concat(t))})})}));return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(ew.m,{variant:"contentTabs",index:m,isManual:!0,isLazy:!0,onChange:e=>C(e),sx:c.tabs,children:[(0,n.jsxs)(eS.U,{flexDir:"row",flexWrap:"wrap",spacing:{base:2,md:5},alignItems:"center",justifyContent:"space-between",position:"relative",zIndex:0,children:[(0,n.jsx)(er.xu,{display:"flex",flexDir:"column",gap:1,alignItems:"flex-start",position:"relative",children:(0,n.jsxs)(er.xu,{ref:h,position:"relative",top:"100%",display:"flex",flexDir:"row",alignItems:"center",justifyContent:"flex-start",bg:"gray.0",borderRadius:"md",width:"auto",boxShadow:"0px 1px 5px 0px rgba(0, 0, 0, 0.05)",zIndex:{base:2,lg:1},children:[(0,n.jsx)(N,{}),(0,n.jsx)(eN,{indicatorStyles:{curr:I.current,prev:k.current},tabIndexes:{prev:x,curr:m},bgColorHexes:j})]})}),(0,n.jsx)(eT.z,{id:"contentTabsSortButton","data-qa":"contentTabsSortButton",variant:"link",display:"block",leftIcon:(0,n.jsx)("i",{className:"fa-regular fa-sort"}),maxWidth:"fit-content",_hover:{color:"berryBridge.500"},fontSize:{base:"14px",md:"16px"},onClick:()=>"DESCENDING"===w?S("ASCENDING"):S("DESCENDING"),children:"Sort by: ".concat("DESCENDING"===w?"Newest":"Oldest")})]}),i.some(e=>e.content)&&(0,n.jsx)(eI.n,{sx:c.tabPanels,children:i.map(e=>(0,n.jsx)(ek.R,{in:m===i.indexOf(e),offsetY:"2em",children:(0,n.jsx)(eE.x,{sx:c.tabPanel,children:(0,n.jsx)(e.content,{sortDirection:w,setActiveTab:C})},"panel-".concat(e.id))},"fade-".concat(e.id)))})]})})},eD=t(85385),eB=t(3949),eR=t(22757);let eP="cb-slideout-";function eU(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return i?"".concat(eP).concat(e,"-v").concat(i):"".concat(eP).concat(e)}function ez(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{let t=eU(e,i),n=localStorage.getItem(t);return n?JSON.parse(n):{events:[]}}catch(e){return{events:[]}}}
1function eO(e,i){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;try{let n=eU(e,t);localStorage.setItem(n,JSON.stringify(i))}catch(e){console.error("Failed to save slideout data:",e)}}function eL(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ez(e,i).events.filter(e=>"POPUP_DISMISSED"===e.type).length}function eq(e,i,t){let n=ez(e,i).events.filter(e=>e.type===t);return 0===n.length?null:n[n.length-1].timestamp}function eF(e,i,t){let n=ez(e,i);n.completion={isCompleted:!0,reason:t,timestamp:Date.now()},eO(e,n,i)}let eG='{"data":"site.firstName"}',eH=e=>({nodeType:"document",data:{},content:[{nodeType:"paragraph",data:{},content:[{nodeType:"text",value:e,marks:[],data:{}}]}]}),eW={headline:"Did you know?",bodyZeroTributes:eH("A tribute gift is a donation to CaringBridge that is made in honor of ".concat(eG,". It’s a powerful way that donors from this community can help keep CaringBridge free for you and others.")),bodyFewTributes:eH("A tribute gift is a donation to CaringBridge that is made in honor of ".concat(eG,". It’s a powerful way that ").concat('{"data":"site.tributeCount"}'," other donors from this community have chosen to help keep CaringBridge free for you and others.")),bodyManyTributes:eH("A tribute gift is a donation to CaringBridge that is made in honor of ".concat(eG,". It’s a powerful way that 10+ other donors from this community have chosen to help keep CaringBridge free for you and others.")),ctaText:"View ".concat(eG,"’s Latest Tributes \xbb"),ctaHref:"/site/[siteId]/tributes",version:"1",buttonColorOverride:"#ff7c6f",backgroundColorOverride:"#617bd6",rules:null},eZ="every_n_visits:1";function eV(e){var i;if(e)return"string"==typeof e?e:null!==(i=e.value)&&void 0!==i?i:void 0}var eQ=e=>{var i,t,o,a,r,d,c,u,m,p,x,b,g,v,h,f;let{siteId:y,activeTabId:j,isAuthor:w,isSingleContentPage:S,onCTAClick:T}=e,I=function(){var e,i,t,n,o,a,s,l,r,d,c,u,m,p;let{page:x}=(0,H.bh)();return(e=null==x?void 0:x.educationSlideout)?{sysId:null!==(a=null===(i=e.sys)||void 0===i?void 0:i.id)&&void 0!==a?a:void 0,headline:null!==(s=e.headline)&&void 0!==s?s:void 0,bodyZeroTributes:null!==(l=null===(t=e.bodyZeroTributes)||void 0===t?void 0:t.json)&&void 0!==l?l:void 0,bodyFewTributes:null!==(r=null===(n=e.bodyFewTributes)||void 0===n?void 0:n.json)&&void 0!==r?r:void 0,bodyManyTributes:null!==(d=null===(o=e.bodyManyTributes)||void 0===o?void 0:o.json)&&void 0!==d?d:void 0,ctaText:null!==(c=e.ctaText)&&void 0!==c?c:void 0,ctaHref:null!==(u=e.ctaHref)&&void 0!==u?u:void 0,version:null!==(m=e.version)&&void 0!==m?m:void 0,buttonColorOverride:eV(e.buttonColorOverride),backgroundColorOverride:eV(e.backgroundColorOverride),rules:null!==(p=e.rules)&&void 0!==p?p:void 0}:null}(),k=I?{sysId:null!==(r=I.sysId)&&void 0!==r?r:eW.sysId,headline:null!==(d=I.headline)&&void 0!==d?d:eW.headline,bodyZeroTributes:null!==(c=I.bodyZeroTributes)&&void 0!==c?c:eW.bodyZeroTributes,bodyFewTributes:null!==(u=I.bodyFewTributes)&&void 0!==u?u:eW.bodyFewTributes,bodyManyTributes:null!==(m=I.bodyManyTributes)&&void 0!==m?m:eW.bodyManyTributes,ctaText:null!==(p=I.ctaText)&&void 0!==p?p:eW.ctaText,ctaHref:null!==(x=I.ctaHref)&&void 0!==x?x:eW.ctaHref,version:null!==(b=I.version)&&void 0!==b?b:eW.version,buttonColorOverride:null!==(g=I.buttonColorOverride)&&void 0!==g?g:eW.buttonColorOverride,backgroundColorOverride:null!==(v=I.backgroundColorOverride)&&void 0!==v?v:eW.backgroundColorOverride,rules:null!==(h=I.rules)&&void 0!==h?h:eW.rules}:eW,C=(0,l.useRouter)(),N=(0,ec.Pe)(),_=null!==(t=k.sysId)&&void 0!==t?t:"education-slideout-default",M=k.version,A=(0,W.Fb)(null!==(o=k.rules)&&void 0!==o?o:null),[D,B]=(0,s.useState)(!1),[R,P]=(0,s.useState)(!1),U=(0,s.useRef)(!1),z=(0,s.useRef)(!1),O=(0,s.useRef)(!1),q=(0,s.useRef)(!1),F=(0,s.useRef)(C.asPath);(0,s.useEffect)(()=>{C.asPath!==F.current&&(F.current=C.asPath,z.current=!1,O.current=!1),U.current||(function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{let t=eU(e,i),n=[];for(let i=0;i<localStorage.length;i++){let o=localStorage.key(i);o&&o.startsWith(eP)&&function(e,i){let t="".concat(eP).concat(i),n="".concat(eP).concat(i,"-v");return e===t||e.startsWith(n)}(o,e)&&o!==t&&n.push(o)}
1n.forEach(e=>{localStorage.removeItem(e)})}catch(e){console.error("Failed to cleanup old slideout campaigns:",e)}}(_,M),U.current=!0),z.current||(function(e){var i;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=ez(e,t);null!==(i=n.completion)&&void 0!==i&&i.isCompleted||(n.events.push({timestamp:Date.now(),type:"PAGE_VISIT"}),eO(e,n,t))}(_,M),z.current=!0),B(function(e,i){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=function(e){var i;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!==(i=ez(e,t).completion)&&void 0!==i?i:null}(i,a);if(null==s?void 0:s.isCompleted)return!1;let l=eL(i,a);if(n>0&&l>=n)return eF(i,a,"maxDismissalsMet"),!1;let r=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ez(e,i).events.filter(e=>"POPUP_SHOWN"===e.type).length}(i,a);if(o>0&&r>=o)return eF(i,a,"maxShownMet"),!1;let d=eq(i,a,"POPUP_SHOWN"),c=eq(i,a,"POPUP_DISMISSED"),u=Math.max(null!=d?d:0,null!=c?c:0);if(u>0&&t>0&&(Date.now()-u)/6e4<t)return!1;let m=e||"skip_first_visit",p=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ez(e,i).events.filter(e=>"PAGE_VISIT"===e.type).length}(i,a);if("skip_first_visit"===m)return p>1;if(m.includes(":")){let[e,i]=m.split(":"),t=parseInt(i,10);if("visit_number"===e)return p===t;if("every_n_visits"===e)return p>0&&p%t==0}return p>1}(eZ,_,0,1,0,M))},[_,M,C.asPath]);let{data:G}=(0,E.Z)(y),Z="number"!=typeof(f=null==G?void 0:null===(i=G.getSite)||void 0===i?void 0:i.numTributes)||!Number.isFinite(f)||f<1?k.bodyZeroTributes:f<10?k.bodyFewTributes:k.bodyManyTributes,V=k.ctaHref.replace("[siteId]",y),Q=!!I&&"ALL"===j&&!w&&!S&&!R&&D&&A;(0,s.useEffect)(()=>{Q&&!O.current&&(!function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=ez(e,i);t.events.push({timestamp:Date.now(),type:"POPUP_SHOWN"}),eO(e,t,i)}(_,M),O.current=!0,q.current=!1,N({event:ec.kM.POPUP_SHOWN,popup_id:_,popup_version:M,popup_headline:k.headline,frequency_rule:eZ}))},[Q,_,M,k.headline,N]);let Y=(0,ev.S)({base:"bottom",lg:"right"},{fallback:"right"});return(0,n.jsx)(eD.M,{in:Q,direction:Y,unmountOnExit:!0,style:{zIndex:10,pointerEvents:"none"},children:(0,n.jsxs)(er.xu,{"data-qa":"tributeEducationSlideout","data-testid":"tributeEducationSlideout",position:"absolute",bottom:{base:72,lg:20},right:0,width:{base:"75%",lg:"360px"},maxWidth:"360px",bg:null!==(a=k.backgroundColorOverride)&&void 0!==a?a:"gray.0",color:"white",borderTopLeftRadius:"md",borderBottomLeftRadius:"md",borderTopRightRadius:0,borderBottomRightRadius:0,boxShadow:"-4px 4px 16px rgba(0, 0, 0, 0.15)",padding:5,paddingRight:8,pointerEvents:"auto",children:[(0,n.jsx)(eB.P,{"data-qa":"tributeEducationSlideoutClose","data-testid":"tributeEducationSlideoutClose",position:"absolute",top:2,right:2,size:"sm",color:"white",bg:"transparent",border:"none",outline:"none",boxShadow:"none",_hover:{bg:"transparent",border:"none",boxShadow:"none"},_active:{bg:"transparent",border:"none",boxShadow:"none"},_focus:{bg:"transparent",border:"none",outline:"none",boxShadow:"none"},_focusVisible:{bg:"transparent",border:"none",outline:"none",boxShadow:"none"},sx:{"&, &:hover, &:focus, &:focus-visible, &:active":{background:"transparent",border:"none",outline:"none",boxShadow:"none"}},onClick:()=>{if(P(!0),q.current)return;q.current=!0,function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=ez(e,i);t.events.push({timestamp:Date.now(),type:"POPUP_DISMISSED"}),eO(e,t,i)}(_,M),N({event:ec.kM.POPUP_DISMISSED,popup_id:_,popup_version:M,popup_headline:k.headline});let e=eL(_,M);e>=1&&(eF(_,M,"maxDismissalsMet"),N({event:ec.kM.POPUP_COMPLETED,popup_id:_,popup_version:M,completion_reason:"maxDismissalsMet",dismiss_count:e}))},"aria-label":"Dismiss tribute education"}),(0,n.jsx)(eR.X,{as:"h3",size:"sm",marginBottom:2,color:"white",children:(0,W.C9)(k.headline,{})}),(0,n.jsx)(L.x,{as:"div",fontSize:"sm",marginBottom:4,color:"white",children:(0,n.jsx)(W.Nq,{json:Z})}),(0,n.jsx)(eT.z,{as:"a",href:V,"data-qa":"tributeEducationSlideoutCta","data-testid":"tributeEducationSlideoutCta",size:"sm",bg:k.buttonColorOverride,color:"white",textDecoration:"none",_hover:{bg:k.buttonColorOverride,opacity:.9,color:"white",textDecoration:"none"},_visited:{color:"white"},_focus:{color:"white"},_active:{color:"white"},onClick:e=>{e.preventDefault(),function(e){let i=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:null,t=ez(e,i);t.events.push({timestamp:Date.now(),type:"POPUP_ENGAGED"}),eO(e,t,i)}(_,M),eF(_,M,"engaged"),N({event:ec.kM.POPUP_ENGAGED,popup_id:_,popup_version:M,popup_headline:k.headline,cta_text:k.ctaText}),N({event:ec.kM.POPUP_COMPLETED,popup_id:_,popup_version:M,completion_reason:"engaged"}),P(!0),T?T():C.push(V)},children:(0,W.C9)(k.ctaText,{})})]})})},eY=t(19472),eK=t(21486),e$=t(79885),eX=t(86921),eJ=t(56310);function e0(e){var i,t;let{donor:o,createdAt:a,signature:s,message:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("header",{className:"jsx-50a7abfcbb14ee96 marginTop--0 marginBottom--12",children:[(0,n.jsx)(eJ.Z,{width:56,photoId:null==o?void 0:null===(i=o.photo)||void 0===i?void 0:i.publicId,legacyPath:null==o?void 0:null===(t=o.photo)||void 0===t?void 0:t.legacyPath,buttonLocation:eJ.e.topLeft,iconCenteredOnCircumference:!0,children:(0,n.jsx)("img",{src:"/img/icons/posts/Tribute.svg",width:32,height:32,alt:"tribute","aria-hidden":!0,className:"jsx-50a7abfcbb14ee96"})}),(0,n.jsxs)("div",{className:"jsx-50a7abfcbb14ee96 tributeTitle",children:[(0,n.jsx)("div",{className:"jsx-50a7abfcbb14ee96 tributeSignature",children:s}),(0,n.jsx)("div",{className:"jsx-50a7abfcbb14ee96 tributeDate",children:(0,eX.p6)(eX.yi.LONG,new Date(a))})]})]}),(0,n.jsx)("div",{"data-qa":"tribute-summary-message",className:"jsx-50a7abfcbb14ee96 tributeMessage",children:l}),(0,n.jsx)(d(),{id:"50a7abfcbb14ee96",children:"header.jsx-50a7abfcbb14ee96{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:20px}header.jsx-50a7abfcbb14ee96>*.jsx-50a7abfcbb14ee96{-webkit-box-flex:0;-webkit-flex:0 0 auto;-moz-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.tributeTitle.jsx-50a7abfcbb14ee96{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.tributeSignature.jsx-50a7abfcbb14ee96{color:var(--body-text);font-weight:600;font-size:18px;line-height:24px}.tributeDate.jsx-50a7abfcbb14ee96{color:var(--gray-500);font-size:16px}.tributeMessage.jsx-50a7abfcbb14ee96{margin-bottom:12px;font-size:18px;color:var(--body-text)}"})]})}e0.propTypes={donor:a().object.isRequired,createdAt:a().string,signature:a().string,message:a().string};var e1=t(71434),e2=t(48783),e4=t(28618);let e5=()=>"Create your first post to share";function e6(e){let{onClick:i}=e;return(0,n.jsx)(e3,{heading:e5(),paragraph:"This is a great time to inform family and friends the page is now live.",buttonText:"Create a Post",onClick:i})}function e3(e){let{heading:i,paragraph:t,buttonText:o,onClick:a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e4.Z,{isForModal:!0,className:"ctaCard",children:(0,n.jsxs)("div",{className:d().dynamic([["d5c8216503e38602",[44,-44,88,88,44]]])+" content paddingTopBottom--48",children:[(0,n.jsx)("div",{className:d().dynamic([["d5c8216503e38602",[44,-44,88,88,44]]])+" iconContainer",children:(0,n.jsx)("i",{className:d().dynamic([["d5c8216503e38602",[44,-44,88,88,44]]])+" fa-pen fa-light"})}),(0,n.jsx)("h1",{className:d().dynamic([["d5c8216503e38602",[44,-44,88,88,44]]])+" h4 marginTop--0",children:i}),(0,n.jsx)("p",{className:d().dynamic([["d5c8216503e38602",[44,-44,88,88,44]]]),children:t}),(0,n.jsx)(D.Z,{"data-qa":"create-post",onClick:a,children:o})]})}),(0,n.jsx)(d(),{id:"d5c8216503e38602",dynamic:[44,-44,88,88,44],children:".ctaCard{margin-left:".concat(44,"px}.iconContainer.__jsx-style-dynamic-selector{position:absolute;top:50%;left:").concat(-44,"px;-webkit-transform:translatey(-50%);-moz-transform:translatey(-50%);-ms-transform:translatey(-50%);-o-transform:translatey(-50%);transform:translatey(-50%);width:").concat(88,"px;height:").concat(88,"px;background-color:var(--button-blue-500);color:white;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;border:12px solid var(--body-bg);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;
1-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}i.__jsx-style-dynamic-selector{font-size:24px}.content.__jsx-style-dynamic-selector{padding-left:").concat(44,"px}")})]})}e6.propTypes={onClick:a().func.isRequired},a().string.isRequired,a().arrayOf(a().string).isRequired,a().string.isRequired,a().func.isRequired,a().oneOf(["request"]).isRequired,a().func.isRequired,a().string.isRequired,e3.propTypes={heading:a().string.isRequired,paragraph:a().string.isRequired,buttonText:a().string.isRequired,onClick:a().func.isRequired};var e8=t(54503),e7=t(65540);function e9(e){var i,t,o;let{className:a="",...l}=e,r=(0,u.Ph)("siteId"),d=(0,C.c)(C.T.GO_FUND_ME),c=(0,C.c)(C.T.MEAL_TRAIN),{data:m,loading:p}=(0,E.Z)(r),{data:x,loading:b}=(0,_.a)(N.m$,{variables:{siteId:r},fetchPolicy:"network-only"}),[g,v]=(0,s.useState)(null),[f,y]=(0,s.useState)(null),[j,w]=(0,s.useState)(null),[S,T]=(0,s.useState)(null),[I,k]=(0,s.useState)(null),[D,B]=(0,s.useState)(!1),{latestFeature:R}=(0,O.D)(),P=(null==R?void 0:R.releasedAt)||"",{wthSettings:U}=(0,h.SE)(),z=(null==U?void 0:U.ctaDismissedAt)||"",L=!z||new Date(z)<new Date(P),q=(null==g?void 0:null===(i=g.campaign)||void 0===i?void 0:i.status)==="INACTIVE",F=null==m?void 0:null===(t=m.getSite)||void 0===t?void 0:t.isAuthor,G="".concat((0,u.G3)(u.Z6.SITE_WAYS_TO_HELP,r)),H=null!==(o=D||L)&&void 0!==o&&o;return((0,s.useEffect)(()=>{if(!p&&x){var e,i;null==x||null===(i=x.getSite)||void 0===i||null===(e=i.waysToHelps)||void 0===e||e.forEach(e=>{var i,t,n;e.type===A._Q.GO_FUND_ME&&((null===(i=e.item)||void 0===i?void 0:i.fundUrl)&&v(e.item),T(e.showOnSite)),e.type===A._Q.MEAL_TRAIN&&((null===(t=e.item)||void 0===t?void 0:t.shareLink)&&y(e.item),k(e.showOnSite)),e.type===A._Q.GIFT_CARD&&(null===(n=e.item)||void 0===n?void 0:n.emailAddress)&&w(e.item)})}},[p,x]),(0,s.useEffect)(()=>{(null==l?void 0:l.setIsShowing)&&(null==l||l.setIsShowing((d||c)&&!F&&q&&(g||f)&&!H))},[d,c,q,g,f,H,F,l]),(d||c)&&F&&(!q||f))?p||b?(0,n.jsx)("div",{className:" center",children:(0,n.jsx)(M.ZP,{})}):(0,n.jsxs)(n.Fragment,{children:[!j&&(0,n.jsx)(ie,{className:a,waysToHelpUrl:G,userHidWaysToHelpWidget:D,setUserHidWaysToHelpWidget:B,showAuthorCTA:L,siteId:r}),(0,n.jsx)(it,{className:a,mealTrainItem:f,showOnSite:I}),(0,n.jsx)(ii,{className:a,goFundMeItem:g,showOnSite:S})]}):null}e9.propTypes={className:a().string,setIsShowing:a().func};let ie=e=>{let{className:i,waysToHelpUrl:t,userHidWaysToHelpWidget:o,setUserHidWaysToHelpWidget:a,showAuthorCTA:l,siteId:r}=e,[c]=(0,z.D)(N.z9),{launchEditorFor:u}=(0,q.K)(),p=(0,s.useMemo)(()=>{var e,i;return(null===(e=F.buttonAction)||void 0===e?void 0:e.onClick)?{onClick:()=>F.buttonAction.onClick(u,r)}:(null===(i=F.buttonAction)||void 0===i?void 0:i.href)?{href:F.buttonAction.href}:{href:t}},[u,r,t]);return o||!l?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:d().dynamic([["559fd6345015485a",[m.Bs.MEDIUM]]])+" "+"".concat(i," smallViewOnly marginBottom--6"),children:[(0,n.jsxs)("div",{className:d().dynamic([["559fd6345015485a",[m.Bs.MEDIUM]]])+" row",children:[(0,n.jsx)(L.x,{as:"span",w:"32px",h:"32px",borderRadius:"full",fontSize:"16px",display:"flex",justifyContent:"center",alignItems:"center",marginRight:"8px",...F.icon.colors,children:(0,n.jsx)("i",{className:d().dynamic([["559fd6345015485a",[m.Bs.MEDIUM]]])+" "+(F.icon.classNames||"")})}),(0,n.jsx)("h6",{className:d().dynamic([["559fd6345015485a",[m.Bs.MEDIUM]]])+" navHeadline",children:F.header})]}),(0,n.jsx)("p",{className:d().dynamic([["559fd6345015485a",[m.Bs.MEDIUM]]]),children:F.body}),(0,n.jsxs)(e2.g,{spacing:1,alignItems:"center",children:[(0,n.jsx)(D.Z,{className:"center","data-qa":"gfmGetStartedButton",fullWidth:!0,...p,children:F.buttonText}),(0,n.jsx)("button",{"data-qa":"gfmCloseButton",onClick:()=>{a(!0),c()},className:d().dynamic([["559fd6345015485a",[m.Bs.MEDIUM]]])+" marginTop--12 button--isClear button--asLink",children:F.closeButton})]})]}),(0,n.jsx)(d(),{id:"559fd6345015485a",dynamic:[m.Bs.MEDIUM],children:".row.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;
1-webkit-justify-content:flex-start;-moz-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.waysToHelpIconWrapper.__jsx-style-dynamic-selector{width:36px;height:36px;-webkit-border-radius:18px;-moz-border-radius:18px;border-radius:18px;background-color:var(--berry-bridge-200);font-size:18px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;color:var(--color-primary);margin-right:8px}.navHeadline.__jsx-style-dynamic-selector{font-size:18px}@media(min-width:".concat(m.Bs.MEDIUM,"){.smallViewOnly.__jsx-style-dynamic-selector{display:none}}")})]})};ie.propTypes={className:a().string,waysToHelpUrl:a().string,userHidWaysToHelpWidget:a().bool,setUserHidWaysToHelpWidget:a().func,showAuthorCTA:a().bool,siteId:a().string.isRequired};let ii=e=>{var i,t,o,a,s,l,r,c,u,p,x,b,g,v,h,f,y,j,w,S,T,I,k,E,C,N,_,M,A,D,B,P,z,O,L,q,F,H,W,Z;let{className:V,goFundMeItem:Q,showOnSite:Y}=e;if(!Y||!Q)return null;let K=(0,G.jR)(null==Q?void 0:Q.fundUrl,null==Q?void 0:Q.isIntegrated);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(i=Q.campaign)||void 0===i?void 0:i.amountRaised)/(null==Q?void 0:null===(t=Q.campaign)||void 0===t?void 0:t.goalAmount)*100,m.Bs.MEDIUM]]])+" "+"".concat(V," smallViewOnly"),children:(0,n.jsxs)("div",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(o=Q.campaign)||void 0===o?void 0:o.amountRaised)/(null==Q?void 0:null===(a=Q.campaign)||void 0===a?void 0:a.goalAmount)*100,m.Bs.MEDIUM]]])+" mealTrainSection marginBottom--6",children:[(0,n.jsx)(R(),{src:"/logos/goFundMeLogo2.svg",alt:"",width:155,height:54,style:{width:"80%"}}),(0,n.jsxs)("p",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(s=Q.campaign)||void 0===s?void 0:s.amountRaised)/(null==Q?void 0:null===(l=Q.campaign)||void 0===l?void 0:l.goalAmount)*100,m.Bs.MEDIUM]]])+" marginTop--6 marginBottom--6",children:[(0,n.jsxs)("span",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(r=Q.campaign)||void 0===r?void 0:r.amountRaised)/(null==Q?void 0:null===(c=Q.campaign)||void 0===c?void 0:c.goalAmount)*100,m.Bs.MEDIUM]]])+" callout",children:["$",null==Q?void 0:null===(u=Q.campaign)||void 0===u?void 0:u.amountRaised]})," ","raised of"," ",(0,n.jsxs)("span",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(p=Q.campaign)||void 0===p?void 0:p.amountRaised)/(null==Q?void 0:null===(x=Q.campaign)||void 0===x?void 0:x.goalAmount)*100,m.Bs.MEDIUM]]])+" callout",children:["$",null==Q?void 0:null===(b=Q.campaign)||void 0===b?void 0:b.goalAmount]})," goal"]}),(0,n.jsx)("div",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(g=Q.campaign)||void 0===g?void 0:g.amountRaised)/(null==Q?void 0:null===(v=Q.campaign)||void 0===v?void 0:v.goalAmount)*100,m.Bs.MEDIUM]]])+" goalBarOuter",children:(0,n.jsx)("div",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(h=Q.campaign)||void 0===h?void 0:h.amountRaised)/(null==Q?void 0:null===(f=Q.campaign)||void 0===f?void 0:f.goalAmount)*100,m.Bs.MEDIUM]]])+" goalBarInner"})}),(null==Q?void 0:null===(j=Q.campaign)||void 0===j?void 0:null===(y=j.recentDonations)||void 0===y?void 0:y.length)?(0,n.jsxs)("div",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(w=Q.campaign)||void 0===w?void 0:w.amountRaised)/(null==Q?void 0:null===(S=Q.campaign)||void 0===S?void 0:S.goalAmount)*100,m.Bs.MEDIUM]]])+" donationsSection",children:[(0,n.jsx)("p",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(T=Q.campaign)||void 0===T?void 0:T.amountRaised)/(null==Q?void 0:null===(I=Q.campaign)||void 0===I?void 0:I.goalAmount)*100,m.Bs.MEDIUM]]])+" donatorRow callout",children:"Recent Donations:"}),(null==Q?void 0:null===(k=Q.campaign)||void 0===k?void 0:k.recentDonations.length)&&(null===(E=Object.keys(Q.campaign.recentDonations[0]))||void 0===E?void 0:E.length)?(0,n.jsxs)("p",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(C=Q.campaign)||void 0===C?void 0:C.amountRaised)/(null==Q?void 0:null===(N=Q.campaign)||void 0===N?void 0:N.goalAmount)*100,m.Bs.MEDIUM]]])+" donatorRow",children:[(0,n.jsxs)("span",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(_=Q.campaign)||void 0===_?void 0:_.amountRaised)/(null==Q?void 0:null===(M=Q.campaign)||void 0===M?void 0:M.goalAmount)*100,m.Bs.MEDIUM]]])+" callout",children:["$",Q.campaign.recentDonations[0].amount]})," ","from ",Q.campaign.recentDonations[0].donorName]}):null,(null==Q?void 0:null===(A=Q.campaign)||void 0===A?void 0:A.recentDonations.length)>1&&(null===(D=Object.keys(Q.campaign.recentDonations[1]))||void 0===D?void 0:D.length)?(0,n.jsxs)("p",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(B=Q.campaign)||void 0===B?void 0:B.amountRaised)/(null==Q?void 0:null===(P=Q.campaign)||void 0===P?void 0:P.goalAmount)*100,m.Bs.MEDIUM]]])+" donatorRow",children:[(0,n.jsxs)("span",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(z=Q.campaign)||void 0===z?void 0:z.amountRaised)/(null==Q?void 0:null===(O=Q.campaign)||void 0===O?void 0:O.goalAmount)*100,m.Bs.MEDIUM]]])+" callout",children:["$",Q.campaign.recentDonations[1].amount]})," ","from ",Q.campaign.recentDonations[1].donorName]}):null]}):null,(0,n.jsx)("p",{className:d().dynamic([["bc2bccb3114c6ccc",[(null==Q?void 0:null===(L=Q.campaign)||void 0===L?void 0:L.amountRaised)/(null==Q?void 0:null===(q=Q.campaign)||void 0===q?void 0:q.goalAmount)*100,m.Bs.MEDIUM]]])+" amountUpdateDiscalimer",children:"*Amount updated hourly"}),(0,n.jsx)(U(),{href:K,children:"View my GoFundMe"})]})}),(0,n.jsx)(d(),{id:"bc2bccb3114c6ccc",dynamic:[(null==Q?void 0:null===(F=Q.campaign)||void 0===F?void 0:F.amountRaised)/(null==Q?void 0:null===(H=Q.campaign)||void 0===H?void 0:H.goalAmount)*100,m.Bs.MEDIUM],children:".mealTrainSection.__jsx-style-dynamic-selector{width:50%}.goalBarOuter.__jsx-style-dynamic-selector{width:100%;height:20px;border:1px solid var(--gray-300);-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;overflow:hidden;margin-bottom:8px}.goalBarInner.__jsx-style-dynamic-selector{height:20px;width:".concat((null==Q?void 0:null===(W=Q.campaign)||void 0===W?void 0:W.amountRaised)/(null==Q?void 0:null===(Z=Q.campaign)||void 0===Z?void 0:Z.goalAmount)*100,"%;background-color:#02a95c}.amountUpdateDiscalimer.__jsx-style-dynamic-selector{color:var(--btnTert-text-disabled);font-style:italic;margin:0}.callout.__jsx-style-dynamic-selector{font-weight:600;font-size:16px}.donationsSection.__jsx-style-dynamic-selector{margin-top:0px;margin-bottom:0px}.donatorRow.__jsx-style-dynamic-selector{margin:0}@media(min-width:").concat(m.Bs.MEDIUM,"){.smallViewOnly.__jsx-style-dynamic-selector{display:none}}")})]})};ii.propTypes={className:a().string,goFundMeItem:a().object,showOnSite:a().bool};let it=e=>{let{className:i,mealTrainItem:t,showOnSite:o}=e;return o&&t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:d().dynamic([["31a66cac1674f9d",[m.Bs.MEDIUM]]])+" "+"".concat(i," smallViewOnly mealTrainSection marginBottom--6"),children:[(0,n.jsx)(R(),{src:"/logos/mealTrainLogo.svg",alt:"",width:275,height:54}),(0,n.jsx)(U(),{href:t.shareLink,children:"View my Meal Train"})]}),(0,n.jsx)(d(),{id:"31a66cac1674f9d",dynamic:[m.Bs.MEDIUM],children:".mealTrainSection.__jsx-style-dynamic-selector{width:100%;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media(min-width:".concat(m.Bs.MEDIUM,"){.smallViewOnly.__jsx-style-dynamic-selector{display:none}}")})]}):null};it.propTypes={className:a().string,mealTrainItem:a().object,showOnSite:a().bool};var io=t(93717),ia=t(41420);let is=e=>{let{config:i,updateWthLoading:t,updateWthError:o,dismissPostPreview:a,type:l,postPreview:r,title:d,body:c}
1=e,[u,m]=(0,s.useState)(!1),p=t||u;return(0,s.useEffect)(()=>{o&&m(!1)},[o]),(0,n.jsx)(er.xu,{zIndex:10,position:"absolute",top:0,right:"50%",transform:"translate(0,-75%)",children:(0,n.jsxs)(er.xu,{bgColor:"white",borderRadius:"6px",boxShadow:"base",p:"16px",w:"fit-content",position:"relative",children:[(0,n.jsxs)(L.x,{fontWeight:500,fontSize:"18px",color:"#02A95C","data-qa":"".concat(i.qaTag,"-post-preview-success"),children:[(0,n.jsx)("i",{className:"fa-sharp fa-solid fa-circle-check",style:{marginRight:"8px"}}),"Success!"]}),(0,n.jsx)(L.x,{children:i.successMessage}),(0,n.jsxs)(io.k,{justifyContent:"space-between",alignItems:"baseline",children:[(0,n.jsx)("button",{className:"marginTop--12 button--isClear ".concat(p?"button--diminishedLink":"button--asLink"),onClick:()=>{m(!0),a(l)},disabled:p,"data-testid":"post-preview-dismiss-button","data-qa":"".concat(i.qaTag,"-post-preview-dont-post-button"),children:"Don't Post"}),(0,n.jsx)(D.Z,{onClick:()=>{m(!0),r(l,d,c)},size:ia.i.EXTRA_SMALL,disabled:p,"data-testid":"post-preview-post-button","data-qa":"".concat(i.qaTag,"-post-preview-post-button"),children:"Post"})]})]})})};function il(e){let i,t,{type:o,className:a="",setIsShowing:l,postItems:r={},initializedPostsShared:d={},dismissPostPreview:c,postPreview:m,loading:p,updateWthLoading:x,updateWthError:b,isAuthor:g}=e,v=(0,u.Ph)("siteId"),{data:f}=(0,E.Z)(v),y=(0,h.SE)(),j=ir(o),w=G.d6[o],S=r[o],T=d[o],I=w.isInactive(S),k=null==w?void 0:w.getShareLink(S),C=f.getSite.firstName,N=null==S?void 0:S.campaign,_={firstName:y.firstName,id:y.id,lastName:y.lastName,photo:y.photo};"GO_FUND_ME"===o&&(null==S?void 0:S.isIntegrated)&&(i=null==N?void 0:N.title,t="<p>".concat(N.description,"</p>"));let{title:D,body:B}=(0,G.NU)(o,C,k,v);if(i=i||D,t=t||B,(0,s.useEffect)(()=>{l&&l(T===A.NS.PENDING)},[T,l]),!g||!j||T!==A.NS.PENDING||I)return null;if(p)return(0,n.jsx)(M.ZP,{});let R={id:"preview",createdAt:new Date,title:i,body:t,author:_,commentCount:{totalDescendentCount:0},reactionGroupSummary:[],fundUrlForGfmLogoAndLink:(null==S?void 0:S.campaign)&&(null==S?void 0:S.isIntegrated)?N.fundUrl:""};return(0,n.jsxs)(er.xu,{className:a,position:"relative","data-qa":"".concat(w.qaTag,"-post-preview"),children:[(0,n.jsx)(er.xu,{pointerEvents:"none",children:(0,n.jsx)(eK.Z,{post:R,isAuthor:g,canShare:!1,isPinned:!0,sharePost:()=>{},enablePinning:!0,showCommentField:!1,onCommentSuccess:void 0,"data-qa":"".concat(w.qaTag,"-post-preview-post-summary")})}),(0,n.jsx)(is,{config:w,updateWthLoading:x,updateWthError:b,dismissPostPreview:c,type:o,postPreview:m,title:N&&(null==S?void 0:S.isIntegrated)?i:"",body:N&&(null==S?void 0:S.isIntegrated)?t:""})]})}is.propTypes={config:a().object,updateWthLoading:a().bool,updateWthError:a().object,dismissPostPreview:a().func,type:a().string,postPreview:a().func,title:a().string,body:a().string},il.propTypes={type:a().string.isRequired,className:a().string,setIsShowing:a().func,postItems:a().object,initializedPostsShared:a().object,dismissPostPreview:a().func,postPreview:a().func,loading:a().bool,updateWthLoading:a().bool,updateWthError:a().object,isAuthor:a().bool};let ir=e=>({GO_FUND_ME:(0,C.c)(C.T.GO_FUND_ME),MEAL_TRAIN:(0,C.c)(C.T.MEAL_TRAIN),GIFT_CARD:(0,C.c)(C.T.GIFT_CARDS_PHASE_2)})[e]||!1;var id=t(93726),ic=t(24974),iu=t(53523),im=t(50646),ip=t(35541),ix=t(19778),ib=t(49163),ig=t(66205),iv=t(54346),ih=t(78590),iy=t(5674),ij=t(25017);let iw={bg:"white",color:"gray.700",border:"1px solid",borderColor:"gray.300",_hover:{bg:"gray.50"},_active:{bg:"gray.100"}},iS={...iw,bg:"quickCommentLightBerry"},iT={...iw,borderColor:"#CCCCCC",color:"black",fontWeight:700};function iI(e,i){return e.replace(/\{authorName\}/g,i||"them")}var ik=e=>{var i;let{isShowing:t,setIsShowing:o,authorName:a,headline:l,body:r,giftAmountsOneTime:d,giftAmountsMonthly:c,ctaText:m,onDismiss:p,onDonate:x}=e,{id:b,firstName:g,lastName:v,emailAddress:f}=(0,h.SE)(),[y,j]=(0,s.useState)("once"),[w,S]=(0,s.useState)(Math.max(...d)),T="once"===y?d:c,I=e=>{j(e),S(Math.max(..."once"===e?d:c))},k=(0,ev.S)({base:"sm",md:"md",lg:"lg"}),E=(0,u.Ph)("siteId"),C=E?"FUNEYXBWWHM":"FUNXHFWHCEA",N=!!C,_=(0,ij.Jo)(ij.lM.FEED_COMMENT_OVERLAY_DONATE),M=(0,ij.ew)(_,"",void 0,!1),A=N&&null!==(i=(e=>{if(!C)return null;let i=new URLSearchParams;return e.amount&&i.set("amount",String(e.amount)),e.recurring&&i.set("recurring",e.re
1curring),i.set("split",_),i.set("src","comment_overlay"),g&&i.set("firstName",g),v&&i.set("lastName",v),f&&i.set("email",f),E&&i.set("siteId",E),b&&i.set("userId",b),"".concat("https://caringbridge.donorsupport.co/page","/").concat(C,"?").concat(i.toString())})({amount:w,recurring:y}))&&void 0!==i?i:M;return(0,n.jsxs)(ip.u_,{isOpen:t,onClose:()=>{t&&(p(),o(!1))},size:k,isCentered:!0,children:[(0,n.jsx)(ix.Z,{bg:"blackAlpha.600"}),(0,n.jsx)(ib.h,{maxW:{base:"92vw",md:"540px"},bg:"transparent",boxShadow:"none","data-qa":"feedCommentDonationOverlay",children:(0,n.jsxs)(er.xu,{bg:"white",borderRadius:"32px",boxShadow:"rgba(0, 0, 0, 0.3) 0px 4px 16px 6px, rgba(0, 0, 0, 0.3) 0px 2px 6px 2px",w:"100%",p:6,position:"relative",children:[(0,n.jsx)(ig.o,{"data-qa":"closeModal",size:"sm",top:2,right:2,fontSize:"14px",w:"24px",h:"24px",color:"#737373",_hover:{bg:"gray.100"},_focus:{boxShadow:"none"}}),(0,n.jsx)(iv.f,{p:0,children:(0,n.jsxs)(e2.g,{spacing:5,align:"center",children:[(0,n.jsxs)(e2.g,{spacing:0,align:"center",width:"100%",children:[(0,n.jsx)(L.x,{fontSize:"24px",lineHeight:"32px",fontWeight:"500",letterSpacing:"-0.42px",textAlign:"center",color:"berryBridge.500",mb:2,"data-qa":"feedCommentDonationOverlayHeadline",children:iI(l,a)}),(0,n.jsx)(L.x,{fontSize:"18px",lineHeight:"24px",fontWeight:"400",color:"#111111",textAlign:"left","data-qa":"feedCommentDonationOverlayBody",children:iI(r,a)})]}),(0,n.jsxs)(ih.h,{isAttached:!0,width:"100%",spacing:0,"data-qa":"feedCommentDonationOverlayFrequencyToggle",children:[(0,n.jsx)(eT.z,{flex:1,"aria-pressed":"once"===y,borderLeftRadius:"md",borderRightRadius:0,..."once"===y?{}:iw,onClick:()=>I("once"),"data-qa":"feedCommentDonationOverlayOneTime",children:"One-Time Gift"}),(0,n.jsx)(eT.z,{flex:1,"aria-pressed":"monthly"===y,borderLeftRadius:0,borderRightRadius:"md",..."monthly"===y?{}:iS,onClick:()=>I("monthly"),"data-qa":"feedCommentDonationOverlayMonthly",children:"Monthly Gift"})]}),(0,n.jsx)(iy.M,{columns:T.length,spacing:2,width:"100%","data-qa":"feedCommentDonationOverlayAmounts",children:T.map(e=>(0,n.jsxs)(eT.z,{"aria-pressed":w===e,...w===e?{}:iT,onClick:()=>S(e),"data-qa":"feedCommentDonationOverlayAmount-".concat(e),children:["$",e]},e))}),(0,n.jsx)(eT.z,{as:"a",href:A,target:N?"_blank":void 0,rel:N?"noopener noreferrer":void 0,variant:"primary",width:"100%","data-qa":"feedCommentDonationOverlayDonateButton",onClick:()=>{x({amount:w,recurring:y})},_visited:{color:"white"},_hover:{color:"white"},_focus:{color:"white"},_active:{color:"white"},children:m})]})})]})})]})},iE=t(84310);let iC=[10,25,50],iN=[10,25,50],i_={headline:"Thank you for showing up for {authorName}",body:"A gift to CaringBridge helps us keep this space free for families like {authorName}’s.",ctaText:"Donate to CaringBridge"};function iM(e,i){let t=Array.isArray(e)?e.filter(e=>"number"==typeof e&&e>0):[];return t.length>0?t:i}let iA={INITIAL:10,SUBSEQUENT:30};function iD(e){var i,t,o,a,l,r,c,m,p,b,g;let{sortDirection:f}=e,j=(0,u.Ph)("siteId"),{isSignedIn:S}=(0,h.SE)(),T=(0,id.q)();(0,ic.n)(T.postItems[A._Q.GO_FUND_ME]);let[I,k]=(0,s.useState)([]),[E,C]=(0,s.useState)(!1),[N,D]=(0,s.useState)(!1),[B,R]=(0,s.useState)(!1),[P,U]=(0,s.useState)(!1),[z,O]=(0,s.useState)(!1),L=0,{isDirtyFeed:q}=(0,w.Ei)(),F=(0,w.fm)(),G=(0,v.Z)(),[Z,V]=(0,s.useState)(null),Q=e=>{V(e),G.setIsShowing(!0)},{data:Y,loading:K,fetchMore:$}=(0,_.a)(ei._u,{variables:{siteId:j,nextToken:"",sortDirection:f,limit:iA.INITIAL},fetchPolicy:q?"cache-and-network":"cache-first",onCompleted(){q&&F({type:w.Ir.SET_VALUE,isDirtyFeed:!1}),O(!1)}}),{draftsData:X}=(0,iu.f)(),J=null==Y?void 0:null===(t=Y.getSite)||void 0===t?void 0:null===(i=t.feedConnection)||void 0===i?void 0:i.pinnedFeeds,ee=null==Y?void 0:null===(a=Y.getSite)||void 0===a?void 0:null===(o=a.feedConnection)||void 0===o?void 0:o.feeds,et=!!(null==Y?void 0:null===(r=Y.getSite)||void 0===r?void 0:null===(l=r.feedConnection)||void 0===l?void 0:l.nextToken),en=null!==(b=null==Y?void 0:null===(c=Y.getSite)||void 0===c?void 0:c.isAuthor)&&void 0!==b&&b,{modal:eo,overlay:ea,handleCommentSuccess:es,handleDismiss:el,handleDonateClick:er}=function(e){var i;let{isFollower:t=!1,isAuthor:n=!1,isSignedIn:o=!1}=e,a=(0,v.Z)(),l=(0,ec.Pe)(),r=function(){var e,i,t,n,o,a,s,l,r;let d=(0,H.bh)();return(t=null!==(i=null==d?void 0:null===(e=d.page)||void 0===e?void 0:e.feedOverlay)&&void 0!==i?i:null)?{sysId:null!==(o=null===(n=t.sys)||void 0===n?void 0:n.id)&&void 0!==o?o:void 0,headline:null!==(a=t.headline)&&void 0!==a?a:i_.headline,body:null!==(s=t.body)&&void 0!==s?s:i_.body,giftAmountsOneTime:iM(t.giftAmountsOneTime,iC),giftAmountsMonthly:iM(t.giftAmountsMonthly,iN),ctaText:null!==(l=t.ctaText)&&void 0!==l?l:i_.ctaText,rules:null!==(r=t.rules)&&void 0!==r?r:null}:null}(),d=(0,W.yg)(null!==(i=null==r?void 0:r.rules)&&void 0!==i?i:null,{isSignedIn:o,siteData:{isFollower:t,isAuthor:n}}),c=!!r&&d,u=(0,s.useCallback)(function(){let{didAutoFollowSite:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c&&!e&&((0,iE.I9)()||(a.setIsShowing(!0),l({event:ec.kM.FEED_COMMENT_DONATION_OVERLAY_SHOWN}
1)))},[c,a,l]),m=(0,s.useCallback)(()=>{a.setIsShowing(!1),l({event:ec.kM.FEED_COMMENT_DONATION_OVERLAY_DISMISSED})},[a,l]),p=(0,s.useCallback)(e=>{l({event:ec.kM.FEED_COMMENT_DONATION_OVERLAY_DONATE_CLICKED,donation_amount:e.amount,donation_recurring:e.recurring}),a.setIsShowing(!1)},[a,l]);return{modal:a,overlay:r,canShow:c,handleCommentSuccess:u,handleDismiss:m,handleDonateClick:p}}({isFollower:null!==(g=null==Y?void 0:null===(m=Y.getSite)||void 0===m?void 0:m.isFollower)&&void 0!==g&&g,isAuthor:en,isSignedIn:S});if((0,s.useEffect)(()=>{J&&k(J.slice().sort((e,i)=>{let t=new Date(e.item.createdAt).getTime();return new Date(i.item.createdAt).getTime()-t}))},[J]),K||T.loading)return(0,n.jsx)("div",{className:"center marginTop--84",children:(0,n.jsx)(M.ZP,{})});let ed=e=>{let i;return"GO_FUND_ME"===e&&(i=C),"MEAL_TRAIN"===e&&(i=D),"GIFT_CARD"===e&&(i=R),(0,n.jsx)(il,{className:"feedList",type:e,setIsShowing:i,postItems:T.postItems,initializedPostsShared:T.initializedPostsShared,dismissPostPreview:T.dismissPostPreview,postPreview:T.postPreview,loading:T.loading,updateWthLoading:T.updateWthLoading,updateWthError:T.updateWthError,isAuthor:en})};return(null==ee?void 0:ee.length)||(null==J?void 0:J.length)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e8.Z,{tab:"feed"}),ed("GO_FUND_ME"),ed("MEAL_TRAIN"),ed("GIFT_CARD"),[...I,...ee].map((e,i)=>{var t,o,a,s,l,r;let d;if(e.type===A.u5.POST)(null==e?void 0:e.isPinned)||(L+=1),d=(0,n.jsx)("div",{className:"jsx-830875141b1ad3a3 feedList",children:(0,n.jsx)(eK.Z,{post:e.item,isAuthor:null==Y?void 0:null===(t=Y.getSite)||void 0===t?void 0:t.isAuthor,canShare:null==Y?void 0:null===(o=Y.getSite)||void 0===o?void 0:o.isShareableByVisitor,sharePost:Q,isPinned:null==e?void 0:e.isPinned,feedId:e.id,showCommentField:1===L,onCommentSuccess:es})},"".concat(e.id,"-postSummary-").concat(i));else if(e.type===A.u5.TRIBUTE){let{id:t,donor:o,createdAt:a,signature:s,message:l}=e.item;d=(0,n.jsx)("div",{className:"jsx-830875141b1ad3a3 feedList",children:(0,n.jsx)(e0,{donor:o,createdAt:a,signature:s,message:l},t)},"".concat(e.id,"-tributeSummary-").concat(i))}else e.type===A.u5.WAYS_TO_HELP_POST?((null==e?void 0:e.isPinned)||(L+=1),d=(0,n.jsx)("div",{className:"jsx-830875141b1ad3a3 feedList",children:(0,n.jsx)(e$.Z,{post:e.item,postItems:T.postItems,isAuthor:null==Y?void 0:null===(a=Y.getSite)||void 0===a?void 0:a.isAuthor,canShare:null==Y?void 0:null===(s=Y.getSite)||void 0===s?void 0:s.isShareableByVisitor,sharePost:Q,isPinned:null==e?void 0:e.isPinned,feedId:e.id,showCommentField:1===L,onCommentSuccess:es})},"".concat(e.id,"-").concat(e.type,"-").concat(i))):e.type===A.u5.REQUEST&&((null==e?void 0:e.isPinned)||(L+=1),d=(0,n.jsx)("div",{className:"jsx-830875141b1ad3a3 feedList",children:(0,n.jsx)(im.Z,{request:e.item,isAuthor:null==Y?void 0:null===(l=Y.getSite)||void 0===l?void 0:l.isAuthor,canShare:null==Y?void 0:null===(r=Y.getSite)||void 0===r?void 0:r.isShareableByVisitor,sharePost:Q,isPinned:null==e?void 0:e.isPinned,feedId:e.id,showCommentField:1===L,onCommentSuccess:es})},"".concat(e.id,"-").concat(e.type,"-").concat(i)));return(0,n.jsxs)(n.Fragment,{children:[d,1===i?(0,n.jsx)(e9,{className:"feedList"}):null,4===i?(0,n.jsx)(e7.Z,{className:"feedList",tab:"feed"},"".concat(e.id,"-inlineTribute-").concat(i)):null]})}),[...I,...ee].length<2?(0,n.jsx)(e9,{className:"feedList"}):null,et&&(0,n.jsxs)("div",{className:"jsx-830875141b1ad3a3 right marginTop--48",children:[(0,n.jsx)(e1.Z,{"data-qa":"showMoreBtn",className:"viewMore",icon:(0,n.jsx)("i",{className:"jsx-830875141b1ad3a3 fa fa-angle-double-down"}),iconOnRight:"true",onClick:()=>{et&&!K&&(O(!0),$({variables:{siteId:j,nextToken:Y.getSite.feedConnection.nextToken,limit:iA.SUBSEQUENT,sortDirection:f},updateQuery:(e,i)=>{let{fetchMoreResult:t}=i;if(!t)return e;let n=[...e.getSite.feedConnection.pinnedFeeds,...t.getSite.feedConnection.pinnedFeeds],o=new Map;return n.forEach(e=>o.set(e.id,e)),{...t,getSite:{...t.getSite,feedConnection:{...t.getSite.feedConnection,feeds:[...e.getSite.feedConnection.feeds,...t.getSite.feedConnection.feeds],pinnedFeeds:Array.from(o.values())}}}}}))},disabled:z,children:"View More"}),z&&(0,n.jsx)("div",{className:"jsx-830875141b1ad3a3 marginTop--12",children:(0,n.jsx)(M.ZP,{})})]}),(0,n.jsx)(x.Z,{modalController:G,siteId:j,postDetails:Z,origin:(null==Z?void 0:Z.postType)==="REQUEST"?y.Yt.REQUEST:y.Yt.POST}
1),ea&&(0,n.jsx)(ik,{isShowing:eo.isShowing,setIsShowing:eo.setIsShowing,authorName:null==Y?void 0:null===(p=Y.getSite)||void 0===p?void 0:p.firstName,headline:ea.headline,body:ea.body,giftAmountsOneTime:ea.giftAmountsOneTime,giftAmountsMonthly:ea.giftAmountsMonthly,ctaText:ea.ctaText,onDismiss:el,onDonate:er}),(0,n.jsx)(d(),{id:"830875141b1ad3a3",children:".feedList{padding-top:max(30px,min((100vw*.0192 + 23.1px),48px));padding-top:clamp(30px,(100vw*.0192 + 23.1px),48px);padding-bottom:12px}.feedList+.feedList{border-top:thin solid var(--gray-300)}.tertiaryButton.viewMore{color:#495dba}.tertiaryButton.viewMore .underline{color:#495dba}.tertiaryButton.viewMore .underline:hover{color:#963862}"})]}):(0,n.jsxs)(n.Fragment,{children:[(!E||!N||!B)&&!P&&(0,n.jsxs)(n.Fragment,{children:[en&&(0,n.jsx)(e6,{onClick:()=>{var e,i;let t=null==X?void 0:null===(i=X.getDrafts)||void 0===i?void 0:null===(e=i.drafts)||void 0===e?void 0:e[0];F({type:w.Ir.SET_VALUE,mode:w.oS.DRAFT,post:t})}}),en||(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{className:"jsx-c872217fec59c4e0 h3",children:"Hi. We’re glad you are here."}),(0,n.jsx)("p",{className:"jsx-c872217fec59c4e0",children:"The author of this site is just getting started so there are no posts quite yet. Please check back later."})]})]}),(0,n.jsxs)("div",{className:"jsx-c872217fec59c4e0 marginTop--36 paddingLeftRight--48",children:[ed("GO_FUND_ME"),ed("MEAL_TRAIN"),ed("GIFT_CARD"),(0,n.jsx)(e9,{className:"feedList",setIsShowing:U})]}),(0,n.jsx)(d(),{id:"c872217fec59c4e0",children:".feedList{padding-top:max(24px,min((100vw*.0192 + 23.1px),36px));padding-top:clamp(24px,(100vw*.0192 + 23.1px),36px);padding-bottom:12px}.feedList+.feedList{border-top:thin solid var(--gray-300)}"})]})}iD.propTypes={sortDirection:a().oneOf(["ASCENDING","DESCENDING"]).isRequired};let iB={INITIAL:20,SUBSEQUENT:30};function iR(e){var i,t,o,a,l,r,c;let{sortDirection:m}=e,p=(0,u.Ph)("siteId"),{isDirtyPosts:b}=(0,w.Ei)(),g=(0,w.fm)(),{draftsData:h}
1=(0,iu.f)(),f=(0,v.Z)(),[j,S]=(0,s.useState)(),[T,I]=(0,s.useState)(!1),k=e=>{S(e),f.setIsShowing(!0)},{data:E,loading:C,fetchMore:N}=(0,_.a)(ei.ug,{variables:{siteId:p,nextToken:"",sortDirection:m,limit:iB.INITIAL},fetchPolicy:b?"cache-and-network":"cache-first",onCompleted(){b&&g({type:w.Ir.SET_VALUE,isDirtyPosts:!1}),I(!1)}}),A=null==E?void 0:null===(t=E.getSite)||void 0===t?void 0:null===(i=t.postConnection)||void 0===i?void 0:i.posts,D=null!==(r=null==E?void 0:null===(a=E.getSite)||void 0===a?void 0:null===(o=a.postConnection)||void 0===o?void 0:o.nextToken)&&void 0!==r&&r,B=null!==(c=null==E?void 0:null===(l=E.getSite)||void 0===l?void 0:l.isAuthor)&&void 0!==c&&c;return C?(0,n.jsx)("div",{className:"center marginTop--84",children:(0,n.jsx)(M.ZP,{})}):(null==A?void 0:A.length)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e8.Z,{tab:"posts"}),A.map((e,i)=>{var t,o;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"jsx-88be641eb2be555f postsList",children:(0,n.jsx)(eK.Z,{post:e,isAuthor:null==E?void 0:null===(t=E.getSite)||void 0===t?void 0:t.isAuthor,canShare:null==E?void 0:null===(o=E.getSite)||void 0===o?void 0:o.isShareableByVisitor,sharePost:k,enablePinning:!1,showCommentField:0===i,onCommentSuccess:void 0})},e.id),4===i?(0,n.jsx)(e7.Z,{className:"postsList",tab:"posts"},"inlineTribute"):null]})}),D&&(0,n.jsxs)("div",{className:"jsx-88be641eb2be555f center marginTop--48",children:[(0,n.jsxs)(e1.Z,{"data-qa":"showMoreBtn",onClick:()=>{D&&!C&&(I(!0),N({variables:{siteId:p,nextToken:E.getSite.postConnection.nextToken,limit:iB.SUBSEQUENT,sortDirection:m}}))},disabled:T,children:["Read more posts\xa0\xa0",(0,n.jsx)("i",{className:"jsx-88be641eb2be555f pi-chevron-down icon-6"})]}),T&&(0,n.jsx)("div",{className:"jsx-88be641eb2be555f marginTop--12",children:(0,n.jsx)(M.ZP,{})})]}),(0,n.jsx)(x.Z,{modalController:f,siteId:p,postDetails:j,origin:y.Yt.POST}),(0,n.jsx)(d(),{id:"88be641eb2be555f",children:".postsList{padding-top:max(30px,min((100vw*.0192 + 23.1px),48px));padding-top:clamp(30px,(100vw*.0192 + 23.1px),48px);padding-bottom:12px}.postsList+.postsList{border-top:thin solid var(--gray-300)}"})]}):(0,n.jsxs)(n.Fragment,{children:[B&&(0,n.jsx)(e6,{onClick:()=>{var e,i;let t=null==h?void 0:null===(i=h.getDrafts)||void 0===i?void 0:null===(e=i.drafts)||void 0===e?void 0:e[0];g({type:w.Ir.SET_VALUE,mode:w.oS.DRAFT,post:t})}}),B||(0,n.jsx)("div",{children:"No posts yet"})]})}iR.propTypes={sortDirection:a().oneOf(["ASCENDING","DESCENDING"]).isRequired};let iP={INITIAL:20,SUBSEQUENT:30};function iU(e){var i,t,o,a,l,r,c,m,p;let{sortDirection:x}=e,{activeTab:b}=(0,w.Ei)(),g=(0,u.Ph)("siteId"),[v,h]=(0,s.useState)(!1),{data:f,loading:y,fetchMore:j}=(0,_.a)(ei.L8,{variables:{siteId:g,nextToken:"",sortDirection:x,limit:iP.INITIAL},fetchPolicy:"cache-and-network",onCompleted(){h(!1)}}),S=null==f?void 0:null===(t=f.getSite)||void 0===t?void 0:null===(i=t.tributeConnection)||void 0===i?void 0:i.tributes,T=null==f?void 0:null===(a=f.getSite)||void 0===a?void 0:null===(o=a.tributeConnection)||void 0===o?void 0:o.totalCount,I=null==f?void 0:null===(l=f.getSite)||void 0===l?void 0:l.isAuthor,k=null==f?void 0:null===(r=f.getSite)||void 0===r?void 0:r.firstName,E=null!==(p=null==f?void 0:null===(m=f.getSite)||void 0===m?void 0:null===(c=m.tributeConnection)||void 0===c?void 0:c.nextToken)&&void 0!==p&&p;if(y)return(0,n.jsx)("div",{className:"center marginTop--84",children:(0,n.jsx)(M.ZP,{})});let C=!S||0===S.length;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e8.Z,{tab:b}),I&&(0,n.jsxs)("div",{"data-qa":"tributeEducation",className:"jsx-472e31fa2758d729 "+((C?"education":"education educationLeft")||""),children:[(0,n.jsx)("h2",{"data-qa":"tributeEducationHeading",className:"jsx-472e31fa2758d729 educationHeading",children:C?"There Are No Tributes Yet":"Tributes Made in Honor of ".concat(k)}),(0,n.jsx)("p",{"data-qa":"tributeEducationBody",className:"jsx-472e31fa2758d729 educationBody",children:C?"Tributes are donations made by your visitors to CaringBridge in honor of your health journey. As a donor-funded 501(c)(3) nonprofit, CaringBridge relies on these tax-deductible gifts to keep the platform free of charge. Nearly 90% come from families and communities like yours who’ve used the service. CaringBridge is always here for anyone, through any health condition, anytime and anywhere.":(0,n.jsxs)(n.Fragment,{children:["A Tribute gift is a donation to CaringBridge that is made in honor of ",k,". It’s a powerful way that ",T," other donor",1===T?"":"s"," have chosen to help keep CaringBridge free for you and others."]})})]}),!I&&C&&(0,n.jsxs)("div",{"data-qa":"tributeEducation",className:"jsx-472e31fa2758d729 education",children:[(0,n.jsx)("h2",{"data-qa":"tributeEducationHeading",className:"jsx-472e31fa2758d729 educationHeading",children:"There Are No Tributes Yet"}),(0,n.jsx)("p",{"data-qa":"tributeEducationBody",className:"jsx-472e31fa2758d729 educationBody",children:"A Tribute donation is a heartfelt contribution to CaringBridge, dedicated to a friend or loved one."})]}),S.map(e=>{let{id:i,donor:t,createdAt:o,signature:a,message:s}=e;return(0,n.jsx)("div",{className:"jsx-472e31fa2758d729 list",children:(0,n.jsx)(e0,{donor:t,createdAt:o,signature:a,message:s})},i)}),E&&(0,n.jsxs)("div",{className:"jsx-472e31fa2758d729 center marginTop--48",children:[(0,n.jsxs)(e1.Z,{"data-qa":"showMoreBtn",onClick:()=>{E&&!y&&(h(!0),j({variables:{siteId:g,nextToken:f.getSite.tributeConnection.nextToken,limit:iP.SUBSEQUENT,sortDirection:x}}))},disabled:v,children:["See more tributes\xa0\xa0",(0,n.jsx)("i",{className:"jsx-472e31fa2758d729 pi-chevron-down icon-6"})]}),v&&(0,n.jsx)("div",{className:"jsx-472e31fa2758d729 marginTop--12",children:(0,n.jsx)(M.ZP,{})})]}),(0,n.jsx)(d(),{id:"472e31fa2758d729",children:".education.jsx-472e31fa2758d729{text-align:center;padding:48px 0 36px;max-width:902px;margin:0 auto}.educationLeft.jsx-472e31fa2758d729{text-align:left;margin:0}.educationHeading.jsx-472e31fa2758d729{color:var(--color-primary);font-size:24px;font-weight:var(--font-weight-medium);letter-spacing:-.02em;margin-bottom:10px}.educationBody.jsx-472e31fa2758d729{color:var(--body-text);font-size:16px;line-height:1.25;margin:0}.list.jsx-472e31fa2758d729{padding-top:max(30px,min((100vw*.0192 + 23.1px),48px));padding-top:clamp(30px,(100vw*.0192 + 23.1px),48px)}.list.jsx-472e31fa2758d729+.list.jsx-472e31fa2758d729{border-top:thin solid var(--gray-300)}"})]})}function iz(e){let{siteId:i}=e,{launchEditorFor:t}=(0,q.K)();return(0,n.jsx)(io.k,{w:"100%",h:"100%",flexDir:"column",justify:"flex-start",align:"center",gap:"21px",mt:"40px",children:(0,n.jsxs)(io.k,{w:"100%",maxW:"858px",flexDir:"column",justify:"center",align:"center",gap:{base:"32px",md:"10px"},px:{base:"20px",md:"0"},py:{base:"32px",md:"0"},children:[(0,n.jsxs)(io.k,{flexDir:"column",justify:"center",align:"center",gap:"10px",textAlign:"center",children:[(0,n.jsx)(eR.X,{as:"h2",color:"#963862",fontSize:{base:"20px",md:"24px"},fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:"500",lineHeight:{base:"28px",md:"32px"},wordBreak:"break-word",m:"0",children:"Turn Caring Hearts Into Helping Hands"}),(0,n.jsx)(L.x,{color:"#24384c",fontSize:{base:"16px",md:"18px"},fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:"400",lineHeight:{base:"22px",md:"24px"},wordBreak:"break-word",m:"0",maxW:"790px",children:"Requests and Ways to Get Help make it easy to ask for and receive support. Share specific needs like meals, rides, or set up support options like Meal Train, GoFundMe, Gift Cards, and more."})]}
1),(0,n.jsxs)(io.k,{justify:"flex-start",align:"flex-start",gap:{base:"16px",md:"21px"},flexDir:{base:"column",md:"row"},alignItems:{base:"center",md:"flex-start"},children:[(0,n.jsx)(eT.z,{"data-qa":"create-request-button",onClick:()=>{t({type:"request"},i)},bg:"#963862",color:"white",size:"md",h:"44px",w:"200px",borderRadius:"6px",fontWeight:"500",fontSize:"18px",fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",_hover:{bg:"#7d2d52"},_active:{bg:"#6b253f"},children:"Create a Request"}),(0,n.jsx)(eT.z,{"data-qa":"ways-to-get-help-button",onClick:()=>{(0,u.Eh)((0,u.G3)(u.Z6.SITE_WAYS_TO_HELP,i))},bg:"#4D69D1",color:"white",size:"md",h:"44px",w:"200px",borderRadius:"6px",fontWeight:"500",fontSize:"18px",fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",_hover:{bg:"#3d5bb7"},_active:{bg:"#2a4a9e"},children:"Ways to Get Help"})]})]})})}function iO(e){let{siteId:i,firstName:t=""}=e;return(0,n.jsxs)("div",{className:"jsx-8cec626f58a566fa requests-empty-state-visitor",children:[(0,n.jsxs)("div",{className:"jsx-8cec626f58a566fa content-container",children:[(0,n.jsxs)("div",{className:"jsx-8cec626f58a566fa text-content",children:[(0,n.jsxs)("h2",{className:"jsx-8cec626f58a566fa title",children:["Looking to support ",t||"them","?"]}),(0,n.jsxs)("p",{className:"jsx-8cec626f58a566fa description",children:[t||"They"," hasn't posted any requests yet. In the meantime, explore Ways to Help to show your support, whether that's sending a gift card, contributing a meal, or offering a hand. Be sure to follow"," ",t?"".concat(t,"'s"):"their"," CaringBridge to be notified when new requests are posted."]})]}),(0,n.jsx)(eT.z,{"data-qa":"ways-to-help-visitor-button",onClick:()=>{(0,u.Eh)((0,u.G3)(u.Z6.SITE_WAYS_TO_HELP,i))},bg:"#963862",color:"white",size:"md",h:"44px",w:"200px",borderRadius:"6px",fontWeight:"500",fontSize:"18px",fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",_hover:{bg:"#7d2d52"},_active:{bg:"#6b253f"},children:"Ways to Help"})]}),(0,n.jsx)(d(),{id:"8cec626f58a566fa",children:'.requests-empty-state-visitor.jsx-8cec626f58a566fa{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-moz-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-top:40px}.content-container.jsx-8cec626f58a566fa{width:100%;max-width:900px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:24px;text-align:center}.text-content.jsx-8cec626f58a566fa{-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.title.jsx-8cec626f58a566fa{width:100%;max-width:858px;text-align:center;color:#963862;font-size:24px;font-family:"Figtree",-apple-system,BlinkMacSystemFont,sans-serif;font-weight:500;line-height:32px;word-wrap:break-word;margin:0}.description.jsx-8cec626f58a566fa{width:100%;max-width:782px;text-align:center;color:#24384c;font-size:18px;font-family:"Figtree",-apple-system,BlinkMacSystemFont,sans-serif;font-weight:400;line-height:24px;word-wrap:break-word;margin:0}@media(max-width:768px){.title.jsx-8cec626f58a566fa{font-size:20px;line-height:28px}.description.jsx-8cec626f58a566fa{font-size:16px;line-height:22px}}'})]})}function iL(e){let{isAuthor:i,siteId:t,firstName:o="",setActiveTab:a}=e;return i?(0,n.jsx)(iz,{siteId:t}):(0,n.jsx)(iO,{siteId:t,firstName:o})}function iq(e){let{isAuthor:i,siteId:t,firstName:o=""}=e,a=()=>{(0,u.Eh)((0,u.G3)(u.Z6.SITE_WAYS_TO_HELP,t))};return i?(0,n.jsx)(er.xu,{w:"100%",h:"100%",position:"relative",boxShadow:"0px 1px 5px rgba(0, 0, 0, 0.05)",borderRadius:"12px",children:(0,n.jsxs)(io.k,{w:"100%",h:{base:"auto",md:"106px"},minH:{base:"120px",md:"106px"},position:"relative",bg:"white",borderRadius:"12px",align:"center",p:{base:"20px",md:"0 26px"},gap:{base:"16px",md:"0"}
1,flexDir:{base:"column",md:"row"},boxSizing:"border-box",children:[(0,n.jsxs)(io.k,{flex:"1",flexDir:"column",justify:"flex-start",align:{base:"center",md:"flex-start"},gap:"4px",pr:{base:"0",md:"20px"},minW:"0",textAlign:{base:"center",md:"left"},w:"100%",maxW:"100%",px:{base:"20px",md:"0"},children:[(0,n.jsxs)(io.k,{justify:{base:"center",md:"flex-start"},align:"center",gap:"8px",flexDir:{base:"column",md:"row"},children:[(0,n.jsx)(er.xu,{as:"i",className:"fa-heart-circle-plus fa-duotone",fontSize:"20px",display:"inline-block",flexShrink:"0",color:"#963862",sx:{"--fa-primary-color":"#963862","--fa-secondary-color":"#b06486","--fa-secondary-opacity":"1"}}),(0,n.jsx)(eR.X,{as:"h3",color:"#963862",fontSize:{base:"18px",md:"20px"},fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:"500",lineHeight:{base:"24px",md:"28px"},wordBreak:"break-word",m:"0",maxW:{base:"200px",md:"100%"},whiteSpace:{base:"normal",md:"nowrap"},overflow:{base:"visible",md:"hidden"},textOverflow:{base:"unset",md:"ellipsis"},textAlign:"center",w:{base:"100%",md:"auto"},sx:{wordSpacing:{base:"-0.1em",md:"normal"},hyphens:{base:"auto",md:"none"}},children:"Turn Caring Hearts Into Helping Hands"})]}),(0,n.jsx)(L.x,{color:"#24384c",fontSize:{base:"16px",md:"18px"},fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:"400",lineHeight:{base:"20px",md:"24px"},wordBreak:"break-word",m:"0",maxW:"674px",textAlign:{base:"center",md:"left"},sx:{display:{base:"block",md:"-webkit-box"},WebkitLineClamp:{base:"unset",md:"2"},WebkitBoxOrient:{base:"unset",md:"vertical"},overflow:{base:"visible",md:"hidden"}},children:"Set up support options like Meal Train, GoFundMe, Gift Cards, and more."})]}),(0,n.jsx)(eT.z,{"data-qa":"ways-to-get-help-filled-author",onClick:a,bg:"#963862",color:"white",size:"md",h:"44px",w:"200px",borderRadius:"6px",fontWeight:"500",fontSize:"18px",fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",_hover:{bg:"#7d2d52"},_active:{bg:"#6b253f"},flexShrink:0,alignSelf:"center",mx:"auto",children:"Ways to Get Help"})]})}):(0,n.jsx)(er.xu,{w:"100%",h:"100%",position:"relative",boxShadow:"0px 1px 5px rgba(0, 0, 0, 0.05)",borderRadius:"12px",children:(0,n.jsxs)(io.k,{w:"100%",h:{base:"auto",md:"106px"},minH:{base:"120px",md:"106px"},position:"relative",bg:"white",borderRadius:"12px",align:"center",p:{base:"20px",md:"0 26px"},gap:{base:"16px",md:"0"},flexDir:{base:"column",md:"row"},boxSizing:"border-box",children:[(0,n.jsxs)(io.k,{flex:"1",flexDir:"column",justify:"flex-start",align:{base:"center",md:"flex-start"},gap:"4px",pr:{base:"0",md:"20px"},minW:"0",textAlign:{base:"center",md:"left"},w:"100%",maxW:"100%",px:{base:"20px",md:"0"},children:[(0,n.jsxs)(io.k,{justify:{base:"center",md:"flex-start"},align:"center",gap:"8px",flexDir:{base:"column",md:"row"},children:[(0,n.jsx)(er.xu,{as:"i",className:"fa-heart-circle-plus fa-duotone",fontSize:"20px",display:"inline-block",flexShrink:"0",color:"#963862",sx:{"--fa-primary-color":"#963862","--fa-secondary-color":"#b06486","--fa-secondary-opacity":"1"}}),(0,n.jsxs)(eR.X,{as:"h3",color:"#963862",fontSize:{base:"18px",md:"20px"},fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:"500",lineHeight:{base:"24px",md:"28px"},wordBreak:"break-word",m:"0",maxW:{base:"200px",md:"100%"},whiteSpace:{base:"normal",md:"nowrap"},overflow:{base:"visible",md:"hidden"},textOverflow:{base:"unset",md:"ellipsis"},textAlign:"center",w:{base:"100%",md:"auto"},sx:{wordSpacing:{base:"-0.1em",md:"normal"},hyphens:{base:"auto",md:"none"}},children:["Looking to support ",o||"them","?"]})]}),(0,n.jsx)(L.x,{color:"#24384c",fontSize:{base:"16px",md:"18px"},fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",fontWeight:"400",lineHeight:{base:"20px",md:"24px"},wordBreak:"break-word",m:"0",maxW:"658px",textAlign:{base:"center",md:"left"},sx:{display:{base:"block",md:"-webkit-box"},WebkitLineClamp:{base:"unset",md:"2"},WebkitBoxOrient:{base:"unset",md:"vertical"},overflow:{base:"visible",md:"hidden"}},children:"Explore Ways to Help to show your support, whether that's sending a gift card, contributing a meal, or offering a hand."})]}),(0,n.jsx)(eT.z,{"data-qa":"ways-to-help-filled-visitor",onClick:a,bg:"#963862",color:"white",size:"md",h:"44px",w:"200px",borderRadius:"6px",fontWeight:"500",fontSize:"18px",fontFamily:"'Figtree', -apple-system, BlinkMacSystemFont, sans-serif",_hover:{bg:"#7d2d52"},_active:{bg:"#6b253f"},flexShrink:0,alignSelf:"center",mx:"auto",children:"Ways to Help"})]})})}iU.propTypes={sortDirection:a().oneOf(["ASCENDING","DESCENDING"]).isRequired};let iF={INITIAL:20,SUBSEQUENT:30};function iG(e){var i,t,o,a,l,r,c,m,p,b,g;let{sortDirection:h,setActiveTab:f}=e,j=(0,u.Ph)("siteId"),{data:w,loading:S}
1=(0,E.Z)(j),T=null!==(m=null==w?void 0:null===(i=w.getSite)||void 0===i?void 0:i.isAuthor)&&void 0!==m&&m,I=null!==(p=null==w?void 0:null===(t=w.getSite)||void 0===t?void 0:t.isShareableByVisitor)&&void 0!==p&&p,k=(0,v.Z)(),[C,N]=(0,s.useState)(),A=e=>{N(e),k.setIsShowing(!0)},[D,B]=(0,s.useState)(!1),{data:R,loading:P,fetchMore:U}=(0,_.a)(ei.mh,{variables:{siteId:j,nextToken:"",sortDirection:h,limit:iF.INITIAL},onCompleted(){B(!1)}}),z=null==R?void 0:null===(a=R.getSite)||void 0===a?void 0:null===(o=a.requestConnection)||void 0===o?void 0:o.requests,O=null!==(b=null==R?void 0:null===(r=R.getSite)||void 0===r?void 0:null===(l=r.requestConnection)||void 0===l?void 0:l.nextToken)&&void 0!==b&&b;return P||S?(0,n.jsx)("div",{className:"center marginTop--84",children:(0,n.jsx)(M.ZP,{})}):(null==z?void 0:z.length)?(0,n.jsxs)(io.k,{flexDir:"column",gap:4,children:[z.map((e,i)=>(0,n.jsx)("div",{className:"jsx-4040899e505f926 list",children:(0,n.jsx)(im.Z,{request:e,isAuthor:T,canShare:I,sharePost:A,enablePinning:!1,showCommentField:0===i})},e.id)),O&&(0,n.jsxs)("div",{className:"jsx-4040899e505f926 center marginTop--48",children:[(0,n.jsxs)(e1.Z,{"data-qa":"showMoreBtn",onClick:()=>{O&&!P&&(B(!0),U({variables:{siteId:j,nextToken:R.getSite.requestConnection.nextToken,limit:iF.SUBSEQUENT,sortDirection:h},updateQuery:(e,i)=>{let{fetchMoreResult:t}=i;return t?{...e,getSite:{...e.getSite,requestConnection:{...t.getSite.requestConnection,requests:[...e.getSite.requestConnection.requests,...t.getSite.requestConnection.requests],nextToken:t.getSite.requestConnection.nextToken||null}}}:e}}))},disabled:D,children:["See more Requests\xa0\xa0",(0,n.jsx)("i",{className:"jsx-4040899e505f926 fa-double-chevron-down icon-6"})]}),D&&(0,n.jsx)("div",{className:"jsx-4040899e505f926 marginTop--12",children:(0,n.jsx)(M.ZP,{})})]}),(0,n.jsx)("div",{className:"jsx-4040899e505f926 ways-to-help-section",children:(0,n.jsx)(iq,{isAuthor:T,siteId:j,firstName:null==w?void 0:null===(c=w.getSite)||void 0===c?void 0:c.firstName})}),(0,n.jsx)(x.Z,{modalController:k,siteId:j,postDetails:C,origin:y.Yt.REQUEST}),(0,n.jsx)(d(),{id:"4040899e505f926",children:".list.jsx-4040899e505f926{padding-top:max(30px,min((100vw*.0192 + 23.1px),48px));padding-top:clamp(30px,(100vw*.0192 + 23.1px),48px)}.list.jsx-4040899e505f926+.list.jsx-4040899e505f926{border-top:thin solid var(--gray-300)}.ways-to-help-section.jsx-4040899e505f926{margin-top:max(12px,min((100vw*.01 + 8px),20px));margin-top:clamp(12px,(100vw*.01 + 8px),20px)}"})]}):(0,n.jsx)(iL,{isAuthor:T,siteId:j,firstName:null==w?void 0:null===(g=w.getSite)||void 0===g?void 0:g.firstName,setActiveTab:f})}iG.propTypes={sortDirection:a().string.isRequired,setActiveTab:a().func.isRequired};let iH=[{id:"ALL",title:"All Activity",icon:(0,n.jsx)(eY.Z,{width:"1.25em",marginBottom:1}),bgColor:"berryBridge.500",color:"gray.0",content:iD},{id:"POST",title:"Updates",icon:(0,n.jsx)("i",{className:"fa-solid fa-quote-left"}),bgColor:"coral",color:"gray.0",content:iR},{id:"TRIBUTE",title:"Tributes",icon:(0,n.jsx)("i",{className:"fa-solid fa-hand-holding-heart"}),bgColor:"berryBridge.400",color:"gray.0",content:iU},{id:"REQUEST",title:"Requests",icon:(0,n.jsx)("i",{className:"fa-solid fa-calendar-check"}),bgColor:"navy",color:"gray.0",content:iG}];var iW=t(77594);let iZ=eo()(()=>t.e(6431).then(t.bind(t,86431)),{loadableGenerated:{webpack:()=>[86431]},ssr:!1}),iV=eo()(()=>t.e(9080).then(t.bind(t,99080)),{loadableGenerated:{webpack:()=>[99080]}});function iQ(e){var i,t,o,a,l,r,C,N,M,A,D,B;let{initialActiveTab:R}=e,P=(0,w.fm)(),U=iH.findIndex(e=>e.id===R),[z,O]=(0,s.useState)(U),L=(0,u.Ph)("siteId"),F=!!parseInt((0,u.Ph)(u.Tx.SHARE_MODAL)),G=(0,u.Ph)(u.Tx.POST_ID),H=(0,u.Ph)(u.Tx.REQUEST_ID),W=(0,u.Ph)(u.Tx.ADD_NEW),Z="true"===(0,u.Ph)(u.Tx.COAUTHOR_ACCEPT),[V,Q]=(0,s.use
1State)(!1),[Y,$]=(0,s.useState)(null),[X,J]=(0,s.useState)(!1),{launchEditorFor:ee}=(0,q.K)(),en=(0,v.Z)(!1),eo=(0,v.Z)(Z),{data:ea}=(0,E.Z)(L),{id:es,firstName:el}=(0,h.SE)();(0,f._q)(null==ea?void 0:null===(i=ea.getSite)||void 0===i?void 0:i.isAuthor);let er=(null==ea?void 0:null===(t=ea.getSite)||void 0===t?void 0:t.patientId)===es?"your":(null==ea?void 0:null===(o=ea.getSite)||void 0===o?void 0:o.firstName)?"".concat(ea.getSite.firstName,"'s"):"";(0,s.useEffect)(()=>{R&&!V&&(P({type:w.Ir.SET_VALUE,activeTab:R}),Q(!0))},[P,R,V,U]),(0,s.useEffect)(()=>{let e=iH.findIndex(e=>e.id===R);e>=0&&e!==z&&O(e)},[R]),(0,s.useEffect)(()=>{var e;W&&(null==ea?void 0:null===(e=ea.getSite)||void 0===e?void 0:e.isAuthor)&&("post"===W&&P({type:w.Ir.SET_VALUE,mode:w.oS.DRAFT}),"request"===W&&ee({type:"request"},L),(0,u.aX)())},[W,null==ea?void 0:null===(a=ea.getSite)||void 0===a?void 0:a.isAuthor,P,ee,L]);let ed=(0,T.l)(I.hG);(0,s.useEffect)(()=>{var e;if(!(null==ea?void 0:null===(e=ea.getSite)||void 0===e?void 0:e.isAuthor))return;if(F&&!G&&!H&&!ed&&!X){en.setIsShowing(!0),J(!0);return}if(!ed)return;let i="REQUEST"===ed.contentType?"".concat((0,u.Hn)()).concat((0,u.G3)(u.Z6.SITE_SINGLE_REQUEST,{siteId:L,requestId:ed.contentId})):"".concat((0,u.Hn)()).concat((0,u.G3)(u.Z6.SITE_SINGLE_POST,{siteId:L,postId:ed.contentId}));$({id:ed.contentId,postType:ed.contentType,isPostPublishSuccess:ed.isPostPublishSuccess,singlePostUrl:i,postTitle:ed.contentTitle||"",authorId:es,authorFirstName:el||""}),en.setIsShowing(!0),(0,I.MY)()},[ed,F,G,H,null==ea?void 0:null===(l=ea.getSite)||void 0===l?void 0:l.isAuthor,L,es,el,en,X]);let{data:ec,loading:eu}=(0,_.a)(ei.L8,{variables:{siteId:L,nextToken:"",sortDirection:"DESCENDING",limit:20},fetchPolicy:"cache-first"}),eb=null!==(A=null==ec?void 0:null===(C=ec.getSite)||void 0===C?void 0:null===(r=C.tributeConnection)||void 0===r?void 0:r.totalCount)&&void 0!==A?A:0,eg=(0,s.useMemo)(()=>iH.map(e=>"TRIBUTE"===e.id?{...e,notificationBadgeCount:eb}:e),[eb]),ev=e=>{let i=iH[e];O(e),P({type:w.Ir.SET_VALUE,activeTab:i.id})};return(0,n.jsxs)(ep.Z,{children:[(0,n.jsxs)("div",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]])+" standardLayout wider",children:[(0,n.jsx)(g.Z,{}),(0,n.jsxs)("div",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]])+" siteLayout marginTop--84",children:[(0,n.jsxs)("div",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]])+" siteActionsWrapper",children:[(0,n.jsx)(b.Z,{}),(0,n.jsx)(K,{}),(0,n.jsx)(et,{})]}),(0,n.jsx)("div",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]])+" site-page-ad-header-mobile",children:(0,n.jsx)(iZ,{zoneId:ex.I9.SITE_PAGE_HEADER.id,size:ex.I9.SITE_PAGE_HEADER.size,placementId:"site-page-header-ad-mobile"})}),(0,n.jsxs)("div",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]])+" mainContent",children:[(0,n.jsx)("div",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]])+" site-page-ad-header",children:(0,n.jsx)(iZ,{zoneId:ex.I9.SITE_PAGE_HEADER.id,size:ex.I9.SITE_PAGE_HEADER.size,placementId:"site-page-header-ad"})}),!eu&&z>=0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eA,{tabs:eg,activeIndex:null!=z?z:0,onChange:e=>ev(e),"data-qa":"filterTabs"}),(0,n.jsx)(eQ,{siteId:L,activeTabId:null!==(D=null===(N=eg[z])||void 0===N?void 0:N.id)&&void 0!==D?D:"",isAuthor:null!==(B=null==ea?void 0:null===(M=ea.getSite)||void 0===M?void 0:M.isAuthor)&&void 0!==B&&B,isSingleContentPage:!1,onCTAClick:()=>{let e=eg.findIndex(e=>"TRIBUTE"===e.id);e>=0&&ev(e)}})]})]}),(0,n.jsxs)("div",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]])+" tributeThanksWidgetWrapper",children:[(0,n.jsx)(k.Z,{}),(null==ea?void 0:ea.getSite.isAuthor)&&(0,n.jsx)(em,{})]}),(0,n.jsx)(et,{placement:"mobile"})]})]}),(0,n.jsx)(p.Z,{}),(0,n.jsx)(x.Z,{modalController:en,siteId:L,origin:Y?y.Yt.POST:y.Yt.START,postDetails:Y,children:!Y&&(0,n.jsxs)("div",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]])+" center shareContent",children:[(0,n.jsx)(c.Z,{variant:c.P.STACKED,width:213}),(0,n.jsxs)("h1",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]])+" h5",children:[(0,S.G8)(er)," CaringBridge has been created"]}),(0,n.jsxs)("p",{className:d().dynamic([["ff6e77eac7286826",[m.Bs.MEDIUM,m.Bs.SMALL]]]),children:["Share ",er," CaringBridge with family and friends to keep everyone updated in a safe and private space."]})]})}),(0,n.jsx)(iV,{modalController:eo,siteId:L,isAccepted:!0}),(0,n.jsx)(j.Z,{}),(0,n.jsx)(iW.Z,{siteData:null==ea?void 0:ea.getSite,siteId:L}
1),(0,n.jsx)(d(),{id:"ff6e77eac7286826",dynamic:[m.Bs.MEDIUM,m.Bs.SMALL],children:".site-page-ad-header.__jsx-style-dynamic-selector{margin-bottom:24px}.site-page-ad-header-mobile.__jsx-style-dynamic-selector{display:block;margin-bottom:24px;-webkit-box-ordinal-group:3;-webkit-order:2;-moz-box-ordinal-group:3;-ms-flex-order:2;order:2}.siteLayout.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:6vw}.siteLayout.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:first-child{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.siteActionsWrapper.__jsx-style-dynamic-selector{-webkit-box-flex:0;-webkit-flex:0 1 auto;-moz-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-ordinal-group:2;-webkit-order:1;-moz-box-ordinal-group:2;-ms-flex-order:1;order:1}.mainContent.__jsx-style-dynamic-selector{-webkit-box-flex:9;-webkit-flex:9 1 auto;-moz-box-flex:9;-ms-flex:9 1 auto;flex:9 1 auto;-webkit-box-ordinal-group:5;-webkit-order:4;-moz-box-ordinal-group:5;-ms-flex-order:4;order:4}.mainContent.__jsx-style-dynamic-selector .site-page-ad-header.__jsx-style-dynamic-selector{display:none}.tributeThanksWidgetWrapper.__jsx-style-dynamic-selector{-webkit-box-flex:3;-webkit-flex:3 1 auto;-moz-box-flex:3;-ms-flex:3 1 auto;flex:3 1 auto;-webkit-box-ordinal-group:4;-webkit-order:3;-moz-box-ordinal-group:4;-ms-flex-order:3;order:3}.shareContent.__jsx-style-dynamic-selector{padding-top:44px}.shareContent.__jsx-style-dynamic-selector>.h5{margin-top:21px}@media(min-width:".concat(m.Bs.MEDIUM,"){.siteLayout.__jsx-style-dynamic-selector{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:4vw}.siteLayout.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:first-child{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}.siteActionsWrapper.__jsx-style-dynamic-selector{-webkit-box-ordinal-group:2;-webkit-order:1;-moz-box-ordinal-group:2;-ms-flex-order:1;order:1;-webkit-box-flex:0;-webkit-flex:0 0 168px;-moz-box-flex:0;-ms-flex:0 0 168px;flex:0 0 168px}.mainContent.__jsx-style-dynamic-selector{-webkit-box-ordinal-group:3;-webkit-order:2;-moz-box-ordinal-group:3;-ms-flex-order:2;order:2;-webkit-box-flex:9;-webkit-flex:9 1 auto;-moz-box-flex:9;-ms-flex:9 1 auto;flex:9 1 auto}.mainContent.__jsx-style-dynamic-selector .site-page-ad-header.__jsx-style-dynamic-selector{display:block}.site-page-ad-header-mobile.__jsx-style-dynamic-selector{display:none}.tributeThanksWidgetWrapper.__jsx-style-dynamic-selector{-webkit-box-ordinal-group:4;-webkit-order:3;-moz-box-ordinal-group:4;-ms-flex-order:3;order:3;-webkit-box-flex:0;-webkit-flex:0 0 275px;-moz-box-flex:0;-ms-flex:0 0 275px;flex:0 0 275px}}@media(max-width:").concat(m.Bs.SMALL,"){.siteLayout.__jsx-style-dynamic-selector{gap:2vw;margin-top:0}}")})]})}iQ.propTypes={initialActiveTab:a().string};var iY=t(20348),iK=t(14474),i$=t(816),iX=t(35297);function iJ(){let e=(0,w.fm)(),i=(0,w.Ei)(),t=i.mode,[o,a]=(0,s.useState)(!1),[l,r]=(0,s.useState)(!1),[c,u]=(0,s.useState)(""),m=(0,ec.Pe)(),p=(0,s.useCallback)(()=>{e({type:w.Ir.RESET}),a(!1),r(!1)},[e]),[x]=(0,z.D)(ei.Qp,{onCompleted:()=>{m({event:ec.kM.POST_PINNED}),a(!0)},onError:e=>{u(e.message)},refetchQueries:[ei.fo.GET_FEED]}),[b]=(0,z.D)(ei.BP,{onCompleted:()=>{m({event:ec.kM.POST_UNPINNED}),r(!0)},onError:e=>{u(e.message)},refetchQueries:[ei.fo.GET_FEED]});return(0,s.useEffect)(()=>{o||t!==w.oS.PIN||x({variables:{input:{id:i.feedId}}}),l||t!==w.oS.UNPIN||b({variables:{input:{id:i.feedId}}})},[o,l,t,i,x,b]),(0,s.useEffect)(()=>{if(o&&t===w.oS.PIN||l&&t===w.oS.UNPIN||c.length){let e=setTimeout(()=>{u(""),p()},5e3);return()=>clearTimeout(e)}},[o,l,t,c,p]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"jsx-c05704330d19e2e1 notificationWrapper",children:(0,n.jsx)(iK.N,{style:{bottom:"8px",right:"185px"},children:(0,n.jsxs)(iX.p,{children:[o&&t===w.oS.PIN&&(0,n.jsx)(i$.P,{type:{style:"success",icon:!0},closable:!0,onClose:()=>p(),children:(0,n.jsx)("span",{className:"jsx-c05704330d19e2e1",children:"Your post has been pinned."})}),l&&t===w.oS.UNPIN&&(0,n.jsx)(i$.P,{type:{style:"success",icon:!0},closable:!0,onClose:()=>p(),children:(0,n.jsx)("span",{className:"jsx-c05704330d19e2e1",children:"Your post has been unpinned."})}),c&&(0,n.jsx)(i$.P,{type:{style:"error",icon:!0},closable:!0,onClose:()=>p(),children:(0,n.jsx)("span",{className:"jsx-c05704330d19e2e1",children:c})})]})})}),(0,n.jsx)(d(),{id:"c05704330d19e2e1",children:".notificationWrapper.jsx-c05704330d19e2e1{position:fixed;bottom:8px;right:8px;z-index:999;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"})]})}var i0=t(39232),i1=t(37354),i2=t(68740),i4=t(86392);let i5={all:"ALL",updates:"POST",tributes:"TRIBUTE",requests:"REQUEST"};function i6(e){var i;let{page:t}=e,o=(0,u.Ph)("siteId"),a=!!(0,u.Ph)(u.Tx.FOLLOW),[r,d]=(0,s.use
1State)(null),c=(0,l.useRouter)();(0,s.useEffect)(()=>{if(c.pathname){var e;d(null!==(e=i5[(0,u.Ph)(u.Tx.TAB)])&&void 0!==e?e:"/site/[siteId]/tributes"===c.pathname?A.u5.TRIBUTE:"ALL")}},[c.pathname]);let{data:m,error:p,loading:x,refetch:b}=(0,E.Z)(o),{siteAccessCheckComponent:g}=(0,i1.Z)({siteDataError:p});return((0,i2.Z)(m,[{function:b,variables:{siteId:o}}]),(0,s.useEffect)(()=>{var e;(null==m?void 0:null===(e=m.getSite)||void 0===e?void 0:e.isAuthor)&&a&&(0,u.aX)()},[a,null==m?void 0:null===(i=m.getSite)||void 0===i?void 0:i.isAuthor]),x||!m)?(0,n.jsx)("div",{children:(0,n.jsx)(M.ZP,{centerIn:"viewport"})}):g||(0,n.jsx)(H.fc,{value:{page:t},children:(0,n.jsxs)(iY.ZN,{children:[(0,n.jsx)(iQ,{initialActiveTab:r}),(0,n.jsx)(iJ,{}),(0,n.jsx)(i0.Z,{siteId:o})]})})}i6.propTypes={page:a().object.isRequired};var i3=(0,i4.Z)(i6)},65540:function(e,i,t){t.d(i,{Z:function(){return T}});var n=t(85893),o=t(40645),a=t.n(o),s=t(67294),l=t(45697),r=t.n(l),d=t(73775),c=t(28618),u=t(49357),m=t(22878),p=t(41664),x=t.n(p),b=t(4162),g=t(43287),v=t(37887),h=t(83314),f=t(41420),y=t(25017),j=t(87036),w=t(28819),S=t(65870);function T(e){var i,t,o;let{tributeInlineJson:l,className:r="",preview:p=!1,tab:T}=e,I=(0,b.Ph)("siteId"),{isSignedIn:k,id:E,firstName:C,lastName:N,emailAddress:_}=(0,g.SE)(),{data:M,loading:A}=(0,v.a)(h.j,{skip:!k}),{page:D}=(0,d.bh)(),B=null!==(t=null==D?void 0:D.tributeInline)&&void 0!==t?t:l,R=(0,u.Fb)(null==B?void 0:B.rules)||p,P=null!==(o=null==B?void 0:B.fruFormId)&&void 0!==o?o:null,U=!!P,z={feed:"splitCodeFeed",posts:"splitCodePosts"}[null==T?void 0:T.toLowerCase()],O=(null==B?void 0:B[z])||(null==B?void 0:B.splitCode)||null,L=(0,y.ew)(O,""),[q,F]=(0,s.useState)(!1);if(!B||!R||A)return null;let{headline:G,body:H,buttonText:W,rules:Z,daysSinceDonation:V}=B;return(0,w.$)(V,null==M?void 0:null===(i=M.me)||void 0===i?void 0:i.mySites,I,k)?null:(0,n.jsxs)("div",{className:"".concat(r),children:[(0,n.jsxs)(c.Z,{className:"tributeInlineCard paddingTopBottom--24 marginBottom--12 paddingLeftRight--48",isForModal:!0,children:[(0,n.jsxs)("section",{className:a().dynamic([["c02bcb57e133d3be",[j.Bs.MEDIUM]]])+" ",children:[(0,n.jsxs)("div",{className:a().dynamic([["c02bcb57e133d3be",[j.Bs.MEDIUM]]])+" textColumn",children:[(0,n.jsx)("h1",{className:a().dynamic([["c02bcb57e133d3be",[j.Bs.MEDIUM]]])+" h6 marginTop--0 marginBottom--6",children:(0,u.C9)(G)}),(0,n.jsx)(u.Nq,{json:H.json,rules:Z||void 0})]}),U?(0,n.jsx)(m.Z,{className:"tributeInlineDonateButton",size:f.i.SMALL,"data-qa":"tributeAction",onClick:()=>F(!0),children:W}):(0,n.jsx)(x(),{href:L,legacyBehavior:!0,children:(0,n.jsx)(m.Z,{className:"tributeInlineDonateButton",size:f.i.SMALL,"data-qa":"tributeAction",children:W})})]}),(0,n.jsx)(a(),{id:"c02bcb57e133d3be",dynamic:[j.Bs.MEDIUM],children:".tributeInlineCard{margin-bottom:24px}section.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.textColumn.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.tributeInlineDonateButton{height:44px;background-color:var(--yellow)!important;color:var(--body-text)!important}.tributeInlineDonateButton:hover{background-color:var(--yellow-hover)!important}@media(max-width:".concat(j.Bs.MEDIUM,"){section.__jsx-style-dynamic-selector{text-align:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.tributeInlineDonateButton{margin-top:12px}}")})]}),U&&(0,n.jsx)(S.Z,{isOpen:q,onClose:()=>F(!1),initialMessage:"",initialSignature:"".concat(C||""," ").concat(N||"").trim(),siteId:I,userId:E,formId:P,splitCode:O,supporter:{firstName:C,lastName:N,email:_},source:"tribute-inline-widget"})]})}
1T.propTypes={tributeInlineJson:r().object,className:r().string,preview:r().bool,previewTributeCount:r().number,tab:r().string}},12284:function(e,i,t){t.d(i,{O:function(){return n}});function n(e,i){if(!e)return"";let t=e.includes("cloudinary.com"),n=e.includes("ctfassets.net");return t?e.includes("/upload/f_auto")?e.replace(/w_\d+/,"w_".concat(i)):e.replace("/upload/","/upload/f_auto,q_auto,w_".concat(i,"/")):n&&e.includes("?")?"".concat(e,"&w=").concat(i):"".concat(e,"?w=").concat(i)}},50646:function(e,i,t){t.d(i,{Z:function(){return N}});var n=t(85893),o=t(5241),a=t(4162),s=t(45697),l=t.n(s),r=t(67294),d=t(33069),c=t(45114),u=t(57747),m=t(43287),p=t(50319),x=t(25351),b=t(63168),g=t(14e3),v=t(47526),h=t(61922),f=t(22878),y=t(98303);let j=e=>{let{requestSlotId:i,isLoading:t,updateAssignmentHandler:a}=e,s=(0,y.S)({base:"mobile",lg:"desktop"});return(0,n.jsx)(f.Z,{onClick:()=>a(o._B.ASSIGN),disabled:t,position:"relative","aria-label":t?"Loading, please wait":"Offer to Help","data-qa":"assignRequestSlot-".concat(i),fullWidth:"mobile"===s,children:(0,n.jsxs)(u.xu,{position:"relative",children:[(0,n.jsx)(g.x,{visibility:t?"hidden":"visible","aria-hidden":"true",as:"span",children:"Offer to Help"}),t&&(0,n.jsx)(u.xu,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","aria-hidden":"true",children:(0,n.jsx)(h.ZP,{})})]})})};j.propTypes={updateAssignmentHandler:l().func.isRequired,requestSlotId:l().string.isRequired,isLoading:l().bool.isRequired};let w=e=>{var i,t;let{requestSlot:o,viewerData:a,assignmentLoading:s,updateAssignmentHandler:l}=e,r=null==o?void 0:o.helper,d=null==r?void 0:r.firstName,c=(null==r?void 0:r.id)===a.id,m="";m=c?"You are helping":"".concat(d," is helping");let p="";return(c?p="Unassign myself":a.isSiteAuthor&&(p="Unassign"),r)?(0,n.jsxs)(u.xu,{display:"flex",flexDirection:"row",gap:2,alignItems:"center",children:[(0,n.jsx)(v.Z,{width:34,publicId:null===(i=r.photo)||void 0===i?void 0:i.publicId,legacyPath:null===(t=r.photo)||void 0===t?void 0:t.legacyPath}),(0,n.jsx)(g.x,{color:"navy","data-qa":"slotAssignmentMessage",children:"".concat(m).concat(p?" |":"")}),(0,n.jsx)("button",{"data-qa":"unassignRequestSlotSummaryButton-".concat(o.id),onClick:()=>{l("UNASSIGN")},className:"button--isClear button--asLink",disabled:s,"aria-label":s?"Loading":p,children:(0,n.jsxs)(u.xu,{position:"relative",children:[(0,n.jsx)(g.x,{visibility:s?"hidden":"visible","aria-hidden":"true",as:"span",children:p}),s&&(0,n.jsx)(u.xu,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","aria-hidden":"true",children:(0,n.jsx)(h.ZP,{})})]})})]}):(0,n.jsx)(j,{requestSlotId:o.id,isLoading:s,updateAssignmentHandler:l})};w.propTypes={requestSlot:l().object.isRequired,viewerData:l().shape({id:l().string.isRequired,isSiteAuthor:l().bool}).isRequired,assignmentLoading:l().bool.isRequired,updateAssignmentHandler:l().func.isRequired};var S=t(28618),T=t(76248);let I=e=>{let{currentUserIsAuthor:i,authorName:t,helperName:a,assignmentAction:s,actionIsForSelf:l,isShowing:r,setIsShowing:d,onConfirm:c}=e;if(!r)return null;let m={};return s===o._B.ASSIGN?m={title:"Thank you for offering your support!",body:"You have been assigned to help with this Request. Please confirm below.",confirmButtonText:"Confirm Offer"}:s===o._B.UNASSIGN&&i?m={title:"Unassign helper from this Request",body:"Are you sure you would like to unassign ".concat(i&&l?"yourself":a," from this Request? Once unassigned, the Request will be set to open."),confirmButtonText:"Yes - Please Unassign"}:s===o._B.UNASSIGN&&l?m={title:"Are you sure you want to be unassigned from this Request?",body:"Be sure to let ".concat(t," know that you are no longer able to assist with this Request."),confirmButtonText:"Yes - Please Unassign"}:d(!1),(0,n.jsx)(T.Z,{isShowing:r,setIsShowing:d,shouldCloseOnEscape:!1,children:(0,n.jsxs)(S.Z,{isForModal:!0,onDismiss:()=>d(!1),style:{maxWidth:"480px",paddingBottom:"55px"},children:[(0,n.jsx)(g.x,{as:"h5",className:"center",children:m.title}),(0,n.jsx)(g.x,{as:"p",className:"center",children:m.body}),(0,n.jsxs)(u.xu,{className:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,paddingTop:4,children:[(0,n.jsx)(f.Z,{"data-qa":"confirmRequestSlotAssignment",onClick:()=>{c(s)},children:m.confirmButtonText}),(0,n.jsx)("button",{"data-qa":"cancelRequestSlotAction",onClick:()=>{d(!1)},className:"button--isClear button--asLink",children:"Cancel"})]})]})})};I.propTypes={currentUserIsAuthor:l().bool.isRequired,authorName:l().string.isRequired,helperName:l().string,assignmentAction:l().oneOf(["ASSIGN","UNASSIGN"]).isRequired,actionIsForSelf:l().bool.isRequired,isS
1howing:l().bool.isRequired,setIsShowing:l().func.isRequired,onConfirm:l().func.isRequired};var k=t(43871),E=t(60453);let C=e=>{let{request:i,...t}=e,s=(0,a.Ph)("siteId"),l=o.xU.REQUEST,g=(0,m.SE)(),[v,h]=(0,r.useState)(null),{isShowing:f,setIsShowing:y}=(0,b.Z)(),j=(0,E.Pe)(),S=k.s[i.requestType]||k.s.OTHER,T={iconID:S.iconName,badgeColor:S.bgColor},C=(0,r.useMemo)(()=>(0,a.G3)(a.Z6.SITE_SINGLE_REQUEST,{siteId:s,requestId:i.id}),[s,i.id]),[N,{loading:_}]=(0,p.D)(x.W7),M=e=>{if(!g.isSignedIn){(0,a.Eu)({},!1,(0,a.$C)(s),(0,a.G3)(a.Z6.SITE_SINGLE_REQUEST,{siteId:s,requestId:i.id}));return}h(e),y(!0)},A=(e,t)=>{N({variables:{requestId:i.id,requestSlotId:t,action:e}}),j({event:"ASSIGN"===v?E.kM.REQUEST_SLOT_ASSIGNED:E.kM.REQUEST_SLOT_UNASSIGNED}),y(!1)};return(0,n.jsx)(c.Z,{isAuthor:t.isAuthor,canShare:t.canShare,loadExpandedComments:t.loadExpandedComments,sharePost:t.sharePost,isPinned:t.isPinned,onSinglePostPage:t.onSinglePostPage,feedId:t.feedId,enablePinning:!1,showCommentField:t.showCommentField,post:i,postType:o.xU.REQUEST,renderContent:()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Z,{contentData:{type:"request",html:i.body,id:i.id},maxLines:8,enableReadMore:!t.onSinglePostPage}),(0,n.jsx)(u.xu,{paddingTop:4,display:"flex",flexDirection:"row",gap:2,children:i.requestSlots.map(e=>{var o,a,s;return(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(w,{requestSlot:e,viewerData:{id:g.id,isSiteAuthor:t.isAuthor},assignmentLoading:_,updateAssignmentHandler:e=>M(e)},e.id),(0,n.jsx)(I,{currentUserIsAuthor:t.isAuthor,authorName:(null===(o=i.author)||void 0===o?void 0:o.firstName)||"them",helperName:null===(a=e.helper)||void 0===a?void 0:a.firstName,assignmentAction:v,actionIsForSelf:(null===(s=e.helper)||void 0===s?void 0:s.id)===g.id,isShowing:f,setIsShowing:y,onConfirm:i=>A(i,e.id)})]},e.id)})})]}),postTitle:i.title,postTitleIcon:T,singlePagePath:C,reactionType:l,dataQa:t.dataQa,disableFeatures:[c.C.REACTIONS],isUsingOtpvToken:t.isUsingOtpvToken,onCommentSuccess:t.onCommentSuccess})};var N=C;C.propTypes={request:l().object.isRequired,isAuthor:l().bool.isRequired,canShare:l().bool.isRequired,loadExpandedComments:l().bool,sharePost:l().func.isRequired,isPinned:l().bool,feedId:l().string,enablePinning:l().bool,showCommentField:l().bool,onSinglePostPage:l().bool,isUsingOtpvToken:l().bool,onCommentSuccess:l().func}},79885:function(e,i,t){t.d(i,{Z:function(){return p}});var n=t(85893),o=t(5241),a=t(4162),s=t(45697),l=t.n(s),r=t(67294),d=t(90331),c=t(45114),u=t(73167),m=t(33069);function p(e){let i,t,s,{post:l,postItems:p,isAuthor:x,canShare:b,loadExpandedComments:g,sharePost:v,isPinned:h,feedId:f,enablePinning:y,showCommentField:j,dataQa:w,onSinglePostPage:S,isUsingOtpvToken:T,onCommentSuccess:I}=e,k=(0,a.Ph)("siteId"),{data:E}=(0,d.Z)(k),C=E.getSite.firstName,N=u.d6[l.type],_=l.type,M=p[_];M&&"GO_FUND_ME"!==_&&(i=null==N?void 0:N.getShareLink(M));let A="GO_FUND_ME"===_&&(null==l?void 0:l.body)&&(null==l?void 0:l.title);if(i||"GO_FUND_ME"!==_||(i=(0,u.jR)(null==l?void 0:l.url,A)),A&&(t=l.title,s=l.body,i=(0,u.jR)(null==l?void 0:l.url,A)),!t||!s){let{title:e,body:n}=(0,u.NU)(_,C,i,k);t=t||e,s=s||n}let D=(0,r.useMemo)(()=>(0,a.G3)(a.Z6.SITE_SINGLE_WAYS_TO_HELP_POST,{siteId:k,waysToHelpPostId:l.id}),[k,l.id]),B=o.xU.WAYS_TO_HELP_POST;return(0,n.jsx)("div",{"data-testid":"waysToHelpSummary",children:(0,n.jsx)(c.Z,{isAuthor:x,canShare:b,loadExpandedComments:g,sharePost:v,isPinned:h,feedId:f,enablePinning:y,showCommentField:j,post:l,postType:"WAYS_TO_HELP_POST",renderContent:()=>(0,n.jsx)(m.Z,{contentData:{type:"post",html:s,id:l.id},maxLines:8,enableReadMore:!S,isWaysToHelpPost:!0}),postTitle:t,singlePagePath:D,reactionType:B,dataQa:w,onSinglePostPage:S,isUsingOtpvToken:T,fundUrlForGfmLogoAndLink:A?i:"",onCommentSuccess:I})})}p.propTypes={post:l().object.isRequired,postItems:l().object.isRequired,isAuthor:l().bool.isRequired,canShare:l().bool.isRequired,loadExpandedComments:l().bool,sharePost:l().func.isRequired,isPinned:l().bool,feedId:l().string,enablePinning:l().bool,showCommentField:l().bool,onSinglePostPage:l().bool,dataQa:l().string,isUsingOtpvToken:l().bool,onCommentSuccess:l().func}},26210:function(e,i,t){var n=t(85893),o=t(40645),a=t.n(o),s=t(45697),l=t.n(s),r=t(67294),d=t(31165),c=t(13990),u=t(40607),m=t(55281),p=t(22757),x=t(14e3),b=t(22878),g=t(41420),v=t(31445),h=t(62464),f=t(87036),y=t(11163),j=t(4162),w=t(43287),S=t(25675),T=t.n(S),I=t(8250);let k=e=>{let{survey:i,onInteraction:t,siteId:o}=e,{suggestions:s,matches:l}=(0,I.d)(),[p,x]=(0,r.useState)((0,d.m3)(i,!1,s,l)),b=(0,h.Z)(),g=(0,y.useRouter)(),[v,S]=(0,r.useState)(!1),{firstName:k}=(0,w.SE)();(0,r.useEffect)(()=>{x((0,d.m3)(i,!1,s,l))},[i,s,l]);let M=e=>{if(i.surveyType===d.rv.UCLA){if(e===d.z9.UCLA.PARTICIPATE)t(i,e);else if(e===d.z9.DISMISS){setTimeout(()=>{t(i,e),S(!0)},500);return}let n=new URLSearchParams({siteId:o,surveyId:i.id,surveyPhase:i.surveyCompletedCount+1});g.push("".concat(j.Z6.SURVEYS,"/ucla?").concat(n))}else if(i.surveyType===d.rv.MATCHING){if(e===d.z9.MATCHING.INITIATE){t(i,e);let n=new URLSearchParams({surveyId:i.id});g.push("".concat(j.Z6.SURVEYS,"/matching?").concat(n))}else if(e===d.z9.MATCHING.VIEW_HUB)g.push(j.Z6.CONNECT_HOME);else if(e===d.z9.DISMISS){setTimeout(()=>{t(i,e),S(!0)},500);return}}else e===d.z9.IRB.COMPLETE&&x((0,d.m3)(i,!0)),e===d.z9.DISMISS&&x(null),t(i,e)},A=e=>{switch(e){case d.rv.UCLA:return"uclaCardImage";case d.rv.MATCHING:return"matchingCardImage";default:return""}},D=()=>{var e,t;return i.surveyType===d.rv.MATCHING&&(null===(t=p.actions)||void 0===t?void 0:null===(e=t.button)||void 0===e?void 0:e.buttonAction)===d.z9.MATCHING.INITIATE},B=()=>"/img/caringbridge-connect.svg"===p.image;
1return!p||v?null:(0,n.jsxs)(c.Z,{minWidth:(e=>{switch(e){case d.rv.IRB:case d.rv.UCLA:return 275;case d.rv.MATCHING:return 301;default:return""}})(i.surveyType),width:"90%",direction:"column",alignItems:"center",justifyContent:"center",textAlign:"center",className:"survey-card ".concat((e=>{switch(e){case d.rv.UCLA:return"uclaCard";case d.rv.MATCHING:return"matchingCard";default:return""}})(i.surveyType)),style:{marginBottom:"10px"},children:[(0,n.jsx)(u.e,{paddingBottom:"image"===p.order.at(-1)?0:4,paddingTop:D()?0:"",width:"100%",children:(0,n.jsx)(m.K,{spacing:4,direction:"column",alignItems:"center",children:p.order.map(e=>{switch(e){case"image":if(i.surveyType!==d.rv.IRB)return(0,n.jsx)("div",{style:{backgroundImage:"url(".concat(p.image,")")},className:a().dynamic([["dda3000e429a55d0",["NEW_SUGGESTIONS"===p.key?"#F1E0E8":"NEW_ACCEPTED_CONNECTIONS"===p.key?"#EAEFF2":"var(--gray-0)",D()?301:B()?141:191,D()?154:B()?70:110]]])+" "+"".concat(A(i.surveyType))},e);if(!(b>f.aV.MEDIUM))return;if(i.surveyType!==d.rv.IRB)return(0,n.jsx)("div",{className:a().dynamic([["dda3000e429a55d0",["NEW_SUGGESTIONS"===p.key?"#F1E0E8":"NEW_ACCEPTED_CONNECTIONS"===p.key?"#EAEFF2":"var(--gray-0)",D()?301:B()?141:191,D()?154:B()?70:110]]])+" "+"".concat(A(i.surveyType)),children:(0,n.jsx)(T(),{src:p.image,width:210,height:145,alt:"survey"},"{surveyType}-image")},e);return(0,n.jsx)(C,{image:p.image},"{surveyType}-image");case"content":return(0,n.jsx)(N,{surveyType:i.surveyType,headline:E(i,p,k),body:p.content.body},"{surveyType}-content");case"actions":return(0,n.jsx)(_,{surveyType:i.surveyType,buttonData:p.actions.button,dismissData:p.actions.dismiss,handleClick:M},"{surveyType}-actions");default:return null}})})}),(0,n.jsx)(a(),{id:"dda3000e429a55d0",dynamic:["NEW_SUGGESTIONS"===p.key?"#F1E0E8":"NEW_ACCEPTED_CONNECTIONS"===p.key?"#EAEFF2":"var(--gray-0)",D()?301:B()?141:191,D()?154:B()?70:110],children:".uclaCard{-webkit-transition:opacity.5s ease-in-out,visibility.9s ease-in-out;-moz-transition:opacity.5s ease-in-out,visibility.9s ease-in-out;-o-transition:opacity.5s ease-in-out,visibility.9s ease-in-out;transition:opacity.5s ease-in-out,visibility.9s ease-in-out;padding-top:15px}.matchingCard{-webkit-transition:opacity.5s ease-in-out,visibility.9s ease-in-out;-moz-transition:opacity.5s ease-in-out,visibility.9s ease-in-out;-o-transition:opacity.5s ease-in-out,visibility.9s ease-in-out;transition:opacity.5s ease-in-out,visibility.9s ease-in-out;background-color:".concat("NEW_SUGGESTIONS"===p.key?"#F1E0E8":"NEW_ACCEPTED_CONNECTIONS"===p.key?"#EAEFF2":"var(--gray-0)","}.uclaCardImage.__jsx-style-dynamic-selector{width:100%;max-width:200px;height:100px;min-height:100px;-webkit-background-size:contain;-moz-background-size:contain;-o-background-size:contain;background-size:contain;background-repeat:no-repeat;background-position:bottom;margin:0 auto}.matchingCardImage.__jsx-style-dynamic-selector{width:").concat(D()?301:B()?141:191,"px;height:").concat(D()?154:B()?70:110,"px;background-repeat:no-repeat;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover}")})]})};k.propTypes={survey:l().object.isRequired,onInteraction:l().func.isRequired,siteId:l().string},i.Z=k;let E=(e,i,t)=>{let{surveyType:n}=e;if(n===d.rv.UCLA){let{surveyCompletedCount:n}=e;if(0===n)return i.content.headline+" "+t+"!"}return i.content.headline},C=e=>{let{image:i}=e;return i?(0,n.jsx)(T(),{src:i,alt:"survey",width:150,height:150}):(0,n.jsx)(v.Z,{variant:v.P.STACKED,width:180})};C.propTypes={image:l().string};let N=e=>{let{surveyType:i,headline:t,body:o}=e;return(0,n.jsxs)(m.K,{direction:"column",children:[t&&(0,n.jsx)(p.X,{size:"md",fontFamily:"Figtree",fontWeight:"medium",margin:0,"data-qa":"survey-".concat(i,"-prompt-heading"),children:t}),o&&(0,n.jsx)(x.x,{margin:0,"data-qa":"survey-".concat(i,"-prompt-body"),children:o})]})};N.propTypes={surveyType:l().string.isRequired,headline:l().string,body:l().string};let _=e=>{let{surveyType:i,buttonData:t,dismissData:o,handleClick:a}=e,{emailAddress:s}=(0,w.SE)();return(0,n.jsxs)(m.K,{spacing:2,direction:"column",marginBlockStart:"4px",width:"100%",children:[t&&(0,n.jsx)(b.Z,{size:g.i.MEDIUM,onClick:()=>a(t.buttonAction),"data-qa":"survey-".concat(i,"-button"),...i===d.rv.IRB&&{href:"".concat(t.buttonTarget,"?email=").concat(s),target:"_blank"},className:i===d.rv.MATCHING?"alternative":"",children:t.buttonText}),o&&(0,n.jsx)("button",{className:"button--asLink button--isClear displayBlock","data-qa":"survey-".concat(i,"-dismiss"),onClick:()=>a(d.z9.DISMISS),children:o.dismissText})]})};_.propTypes={surveyType:l().string.isRequired,buttonData:l().object,dismissData:l().object,handleClick:l().func.isRequired}}}]);

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.