PageSourceSearch

https://www.caringbridge.org/_next/static/chunks/687-270b1a281f01d56b.js

js caringbridge.org collected 2026-09-24 08:41:51 UTC 181,762 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[687],{19472:function(e,t,n){var i=n(85893);n(67294);var o=n(36948);let a=e=>(0,i.jsx)(o.J,{viewBox:"0 0 28 14",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M7.48493 9.60548C6.68219 7.74795 7.49863 5.49315 9.39452 4.7863C10.5836 4.34521 13.0164 4.34521 14 7.5589C14.9836 4.34795 17.4164 4.34521 18.6055 4.7863C20.5014 5.49315 21.3178 7.74795 20.5151 9.60548C19.6274 11.6575 18.1178 13.0767 16.7726 14H28C28 6.26849 21.7315 0 14 0C6.26849 0 0 6.26849 0 14H11.2493C9.89589 13.0685 8.36712 11.6466 7.48493 9.60548Z"})});a.displayName="LogoNoText",t.Z=a},44316:function(e,t,n){n.d(t,{Z:function(){return d}});var i=n(85893),o=n(40645),a=n.n(o),s=n(45697),r=n.n(s);let l="form {\n    display: flex;\n    flex-flow: column nowrap;\n    gap: 1rem;\n}";function d(e){let{className:t,onSubmit:n,children:o,styles:s="",useDefaultStyling:r=!0}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("form",{onSubmit:n,autoComplete:"off",className:a().dynamic([["e1379c394ee0fa70",[r?l:"",s]]])+" "+"".concat(null!=t?t:""),children:o}),(0,i.jsx)(a(),{id:"e1379c394ee0fa70",dynamic:[r?l:"",s],children:"".concat(r?l:"","\n                ").concat(s,"\n            ")})]})}d.propTypes={className:r().string,onSubmit:r().func.isRequired,children:r().node.isRequired,styles:r().string,useDefaultStyling:r().bool}},39738:function(e,t,n){n.d(t,{Z:function(){return c}});var i=n(85893),o=n(40645),a=n.n(o),s=n(45697),r=n.n(s),l=n(17352);function d(e){let{item:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:t.icon,style:{padding:"2px"}}),(0,i.jsx)("span",{children:t.text})]})}function c(e){let{items:t,onItemClick:n,id:o,...s}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{"data-testid":"button-ellipsis-".concat(o),"data-qa":"button-ellipsis-".concat(o," ").concat(s["data-qa"]),className:"jsx-9e84e8eb00e79a40 ellipsis",children:[(0,i.jsx)(l.u,{id:o,className:"noPrint ellipsis",onItemClick:n,items:t,itemRender:e=>{let{item:t}=e;return(0,i.jsx)(d,{item:t})},fillMode:"flat",rounded:"full",iconClass:"fa-ellipsis fa-light icon-30",popupSettings:{anchorAlign:{horizontal:"center",vertical:"bottom"},popupAlign:{horizontal:"right",vertical:"top"},popupClass:"ellipsis"}}),(0,i.jsx)(a(),{id:"9e84e8eb00e79a40",children:".k-popup.k-menu-popup{padding:14px 4px;border:0;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2);-moz-box-shadow:0 1px 2px rgba(0,0,0,.2);box-shadow:0 1px 2px rgba(0,0,0,.2);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.k-link:hover{background-color:transparent!important}"})]})})}d.propTypes={item:r().object.isRequired},c.propTypes={items:r().array.isRequired,onItemClick:r().func.isRequired,id:r().string.isRequired}},52909:function(e,t,n){n.d(t,{$o:function(){return s},Ei:function(){return o},o3:function(){return a}});var i=n(5241);let o=[{src:"/img/emojis/emoji-heart.svg",alt:"Heart icon",text:"Heart",reactionType:i.lo.AMP_HEART},{src:"/img/emojis/emoji-pray.svg",alt:"Folded hands icon",text:"Prayer",reactionType:i.lo.FOLDED_HANDS},{src:"/img/emojis/emoji-smile.svg",alt:"Happy face icon",text:"Happy",reactionType:i.lo.HAPPY},{src:"/img/emojis/emoji-cry.svg",alt:"Sad face icon",text:"Sad",reactionType:i.lo.SAD}],a={text:"React",reactionType:null},s=200},71312:function(e,t,n){n.d(t,{W_:function(){return d},_w:function(){return p},j4:function(){return c},z4:function(){return u}});var i=n(82729),o=n(17283);function a(){let e=(0,i._)(["\n    mutation ADD_REACTION($input: AddReactionInput!) {\n        addReaction(input: $input) {\n            id\n            type\n            totalCount\n            contextualUserHasReacted\n            didAutoFollowSite\n        }\n    }\n"]);return a=function(){return e},e}function s(){let e=(0,i._)(["\n    mutation REMOVE_REACTION($input: RemoveReactionInput!) {\n        removeReaction(input: $input) {\n            id\n            type\n            totalCount\n            contextualUserHasReacted\n        }\n    }\n"]);return s=function(){return e},e}function r(){let e=(0,i._)(["\n    fragment NewReaction on ReactionGroupSummary {\n        contextualUserHasReacted\n        id\n        totalCount\n        type\n    }\n"]);return r=function(){return e},e}function l(){let e=(0,i._)(["\n    query GET_REACTORS_LIST($id: ID!, $type: ReactableType!) {\n        reactionsByParent(query: { id: $id, type: $type }) {\n            reactionGroups {\n                type\n                reactors {\n                    firstName\n                    lastName\n                    id\n                    photo {\n                        publicId\n                        legacyPath\n                    }\n                }\n                contextualUserHasReacted\n                totalCount\n            }\n        }\n    }\n"]);return l=function(){return e},e}let d=(0,o.Ps)(a()),c=(0,o.Ps)(s()),u=(0,o.Ps)(r()),p=(0,o.Ps)(l())},29457:function(e,t,n){n.d(t,{Z:function(){return _}});var i=n(85893),o=n(40645),a=n.n(o),s=n(67294),r=n(24418),l=n(28618),d=n(76248),c=n(45697),u=n.n(c),p=n(78744),m=n(35677);function x(e){let{target:t,onClick:n=()=>{},children:o,...r}=e,l=(0,s.useId)(),d=null,c="shareBtn button--isClear",u={};switch(t){case m.j.FACEBOOK:d=(0,p.Z)("fa-facebook fa-brands"),c+=" facebook",u={round:!0,"data-qa":"share-facebook-icon",style:{color:"#1877F2"}};break;case m.j.COPY_LINK:d=(0,p.Z)("fa-link fa-light"),c+=" copyLink";break;case m.j.EMAIL:d=(0,p.Z)("fa-envelope fa-light"),c+=" email";break;default:throw Error("Invalid value “".concat(t,"” was passed to component ButtonShare"))}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{onClick:n,"aria-labelledby":l,...r,className:"jsx-f63019c281b4518f "+(r&&null!=r.className&&r.className||c||""),children:[(0,i.jsx)("span",{"data-qa":"".concat(r["data-qa"],"-icon-span"),className:"jsx-f63019c281b4518f circledIcon",children:(0,i.jsx)(d,{...u,className:"jsx-f63019c281b4518f "+(u&&null!=u.className&&u.className||"")})}),(0,i.jsx)("span",{id:l,"data-qa":"".concat(r["data-qa"],"-text-span"),className:"jsx-f63019c281b4518f textStyle",children:o})]}),(0,i.jsx)(a(),{id:"f63019c281b4518f",children:".shareBtn.jsx-f63019c281b4518f{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-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:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:6px;min-width:85px}.circledIcon.jsx-f63019c281b4518f{width:57px;height:57px;display:inline-grid;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;justify-items:center;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.facebook.jsx-f63019c281b4518f .circledIcon.jsx-f63019c281b4518f{background-color:#fff;font-size:56px;color:#1877f2}.email.jsx-f63019c281b4518f .circledIcon.jsx-f63019c281b4518f{background-color:var(--sky);color:var(--navy);font-size:20px}.copyLink.jsx-f63019c281b4518f .circledIcon.jsx-f63019c281b4518f{background-color:var(--berry-bridge-200);color:var(--berry-bridge-500)}.textStyle.jsx-f63019c281b4518f{color:var(--link-text);text-decoration:underline;font-size:16px}.shareBtn.jsx-f63019c281b4518f:hover .textStyle.jsx-f63019c281b4518f{color:var(--link-hover-text)}"})]})}x.propTypes={target:u().string.isRequired,onClick:u().func,"data-qa":u().string.isRequired,children:u().node.isRequired};var f=n(50319),h=n(4162),g=n(90331),b=n(43287),y=n(82729);function v(){let e=(0,y._)(["\n    mutation SHORTEN_URL($input: ShortenUrlInput!) {\n        shortenUrl(input: $input) {\n            shortUrl\n            provider\n        }\n    }\n"]);return v=function(){return e},e}let j=(0,n(17283).Ps)(v());var w=n(99392),S=n(60453);function E(e){let{facebookShareUrl:t}=e,n=(0,w.c)(w.T.FB_SHARE),o=(0,S.Pe)();(0,s.useEffect)(()=>{let e;return e=setInterval(()=>{window.FB&&e&&clearInterval(e)},500),()=>{e&&clearInterval(e)}},[]);let r=async()=>{window.FB?window.FB.ui({display:"popup",method:"feed",link:t},e=>{e&&e.error_message?o({event:S.kM.FACEBOOK_SHARE_ERROR}):o({event:S.kM.FACEBOOK_SHARE})}):(console.error("Facebook SDK not loaded"),o({event:S.kM.FACEBOOK_SHARE_ERROR}))};return(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)("div",{onClick:r,className:"jsx-f01f100323a1b21f facebookShareControlFlowContainer",children:(0,i.jsx)(x,{target:m.j.FACEBOOK,"data-qa":"share-facebook",children:"Facebook"})}),(0,i.jsx)(a(),{id:"f01f100323a1b21f",children:".facebookShareControlFlowContainer.jsx-f01f100323a1b21f{background-color:transparent;border:none}"})]})}function T(e){var t,n;let{siteId:o,postDetails:r,origin:l,isUsingOtpvToken:d}
1=e,[c,u]=(0,s.useState)("Copy Link"),[p,y]=(0,s.useState)(null),[v]=(0,f.D)(j),{data:w,error:S,loading:T}=(0,g.Z)(o),{id:I}=(0,b.SE)();if(S||T)return null;let _=null==r?void 0:r.singlePostUrl,C=w.getSite.patientId,k="".concat((0,h.Hn)()).concat((0,h.G3)(h.Z6.SITE_HOME_PAGE,o)),N=null!==(n=null==w?void 0:null===(t=w.getSite)||void 0===t?void 0:t.firstName)&&void 0!==n?n:"",A=(0,h.Ph)("otpv_token"),P="".concat(null!=_?_:k,"?utm_source=website_share&utm_medium=share_button&utm_term=&utm_content=link_share_button&utm_campaign=").concat(l).concat(A?"&otpv_token=".concat(A):""),{subject:M,body:L}=function(e,t,n,i,o,a){let s,r,l;let d="Hello,",c="We believe in a world where no one goes through a health journey alone. CaringBridge offers tools to share and document a health journey, simplify care coordination, and connect caregivers with their supportive community. Please continue to show your support: visit, stay updated, and share messages of encouragement and compassion.";if(null==i?void 0:i.postType){if("POST"===i.postType||"WAYS_TO_HELP_POST"===i.postType)return l="Read the post here: ".concat(o),e===i.authorId?i.authorId===t?(s="Journal Post on my CaringBridge",r="I've added a new post to my CaringBridge, \"".concat(i.postTitle,'".')):(s="Journal Post on ".concat(n,"'s CaringBridge"),r="I've added a new post to ".concat(n,"'s CaringBridge, \"").concat(i.postTitle,'".')):e!==t||a?(s="Journal Post on ".concat(n,"'s CaringBridge"),r="".concat(i.authorFirstName,' has added a new post on CaringBridge, "').concat(i.postTitle,'".')):(s="Journal Post on my CaringBridge",r="".concat(i.authorFirstName,' has added a new post to my CaringBridge, "').concat(i.postTitle,'".')),{subject:s,body:"".concat(d,"\n\n").concat(r,"\n\n").concat(l,"\n\n").concat(c)};if("REQUEST"===i.postType)return l="Find out more here: ".concat(o),e===i.authorId?i.authorId===t?(s="A Request on my CaringBridge",r="I've added a new Request to my CaringBridge, \"".concat(i.postTitle,'".')):(s="A Request on ".concat(n,"'s CaringBridge"),r="I've added a new Request to ".concat(n,"'s CaringBridge, \"").concat(i.postTitle,'".')):e!==t||a?(s="A Request on ".concat(n,"'s CaringBridge"),r="".concat(i.authorFirstName,' has added a new Request on CaringBridge, "').concat(i.postTitle,'".')):(s="A Request on my CaringBridge",r="".concat(i.authorFirstName,' has added a new Request to my CaringBridge, "').concat(i.postTitle,'".')),{subject:s,body:"".concat(d,"\n\n").concat(r,"\n\n").concat(l,"\n\n").concat(c)}}else{let i,a;return e===t?(s="Visit My CaringBridge",i="To keep you updated on my health journey, I created a CaringBridge. CaringBridge is a health platform that offers tools to share and document a health journey, simplify care coordination, and connect caregivers with their supportive community.",a="Please visit my CaringBridge to stay updated and share messages of encouragement and support.",l="Visit my CaringBridge page: ".concat(o)):(s="Visit ".concat(n,"'s CaringBridge"),i="A CaringBridge has been created on behalf of ".concat(n,". CaringBridge is a health platform that offers tools to share and document a health journey, simplify care coordination, and connect caregivers with their supportive community."),a="Please visit ".concat(n,"'s site often to stay updated and share messages of encouragement and support."),l="Visit ".concat(n,"'s CaringBridge: ").concat(o)),{subject:s,body:"".concat(d,"\n\n").concat(i,"\n\n").concat(a,"\n\n").concat(l)}}}(I,C,N,r,P,d),R="mailto:?subject=".concat(encodeURIComponent(M),"&body=").concat(encodeURIComponent(L)),B="".concat(null!=_?_:k,"?utm_source=website_share&utm_medium=share_button&utm_term=&utm_content=facebook_share_button&utm_campaign=").concat(l),O=async()=>{if(!(l===m.Yt.PRIVATE_HOME_PAGE&&!r))return P;if(p)return p;try{var e;let{data:t}=await v({variables:{input:{canonicalUrl:P}}}),n=null==t?void 0:null===(e=t.shortenUrl)||void 0===e?void 0:e.shortUrl;if(n)return y(n),n}catch(e){console.error("Error shortening share URL:",e)}return P};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"jsx-553da5ff801f4e62 shareGroup marginTop--48",children:[(0,i.jsx)(x,{target:m.j.COPY_LINK,onClick:async()=>{let e=await O();navigator.clipboard.writeText(e).then(()=>{u("Copied"),setTimeout(()=>{u("Copy Link")},2500)})},"data-qa":"share-copy-link",children:c}),(0,i.jsx)("a",{href:R,className:"jsx-553da5ff801f4e62",children:(0,i.jsx)(x,{target:m.j.EMAIL,"data-qa":"share-email",children:"Email"})}),(0,i.jsx)(E,{facebookShareUrl:B})]}),(0,i.jsxs)("div",{className:"jsx-553da5ff801f4e62 copyLink marginTop--48",children:[(0,i.jsx)("input",{type:"url","data-qa":"copyUrlText",readOnly:!0,value:P,className:"jsx-553da5ff801f4e62"}),(0,i.jsx)("i",{className:"jsx-553da5ff801f4e62 fa-link fa-light copyIcon"})]}),(0,i.jsx)(a(),{id:"553da5ff801f4e62",children:".shareGroup.jsx-553da5ff801f4e62{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:24px;-webkit-box-pack:center;
1-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.copyLink.jsx-553da5ff801f4e62{position:relative;display:none}input.jsx-553da5ff801f4e62{width:100%;padding-right:2em}.copyIcon{position:absolute;right:10px;top:13px}"})]})}E.propTypes={facebookShareUrl:u().string.isRequired},T.propTypes={siteId:u().string.isRequired,postDetails:u().object,origin:u().string,isUsingOtpvToken:u().bool};let I=s.memo(function(e){let{siteId:t,modalController:n,children:o,postDetails:s,origin:c,isUsingOtpvToken:u=!1}=e,p=m.g4.site;p=(null==s?void 0:s.isPostPublishSuccess)?(null==s?void 0:s.postType)==="REQUEST"?m.g4.requestPublishSuccess:m.g4.postPublishSuccess:(null==s?void 0:s.postType)==="REQUEST"?m.g4.request:["POST","WAYS_TO_HELP_POST"].includes(null==s?void 0:s.postType)?m.g4.post:m.g4.site;let x=o||(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"center h4",children:p.heading}),(0,i.jsx)("p",{className:"center",children:p.message})]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{isShowing:n.isShowing,setIsShowing:n.setIsShowing,onClickOverlay:n.toggleModal,children:(0,i.jsxs)(l.Z,{isForModal:!0,className:"shareModalWidth",children:[(0,i.jsx)(r.Z,{"data-qa":"closeModal",onClick:n.toggleModal}),x,(0,i.jsx)(T,{siteId:t,postDetails:s,origin:c,isUsingOtpvToken:u}),(0,i.jsx)("div",{className:"jsx-a4668ed811c007dc spacer"})]})}),(0,i.jsx)(a(),{id:"a4668ed811c007dc",children:".shareModalWidth{max-width:700px}.spacer.jsx-a4668ed811c007dc{height:44px}"})]})},(e,t)=>{var n,i,o,a;return e.modalController.isShowing===t.modalController.isShowing&&e.siteId===t.siteId&&(null===(n=e.postDetails)||void 0===n?void 0:n.id)===(null===(i=t.postDetails)||void 0===i?void 0:i.id)&&(null===(o=e.postDetails)||void 0===o?void 0:o.postType)===(null===(a=t.postDetails)||void 0===a?void 0:a.postType)});I.propTypes={siteId:u().string.isRequired,modalController:u().object.isRequired,children:u().node,postDetails:u().object,origin:u().string,isUsingOtpvToken:u().bool};var _=I},35677:function(e,t,n){n.d(t,{Yt:function(){return i},g4:function(){return a},j:function(){return o}});let i={START:"sitestart",PAGE_ACTIONS:"leftmenu_php",PRIVATE_HOME_PAGE:"private_home_page",POST:"post_php",REQUEST:"request_php"},o={FACEBOOK:"FACEBOOK",COPY_LINK:"LINK",EMAIL:"EMAIL"},a={post:{heading:"Share this post",message:"Share this post with your community."},postPublishSuccess:{heading:"Success! Would you also like to share your post with family and friends using the options below?",message:""},request:{heading:"Share this Request",message:"Share this Request with your community."},requestPublishSuccess:{heading:"Success! Would you also like to share your request with family and friends using the options below?",message:""},site:{heading:"Share this page",message:"Share your CaringBridge with your community."}}},77594:function(e,t,n){n.d(t,{Z:function(){return H}});var i=n(85893),o=n(40645),a=n.n(o),s=n(67294),r=n(57747),l=n(93108),d=n(32883),c=n(93717),u=n(87036),p=n(4162),m=n(63168),x=n(29457),f=n(50319),h=n(45697),g=n.n(h),b=n(25351),y=n(83314),v=n(5241),j=n(43287),w=n(8329),S=n(82730),E=n(35541),T=n(19778),I=n(49163),_=n(54346),C=n(52186),k=n(17069),N=n(12384),A=n(62464),P=n(63351);function M(e){var t;let{page:n,menuBtnRef:o}=e,{isSignedIn:a,notificationSetting:r}=(0,j.SE)(),l=(0,A.Z)(),[d,c]=(0,s.useState)((null==n?void 0:n.isFollower)||!1),[x,h]=(0,s.use
1State)(!1),[g,M]=(0,s.useState)(null),L=null==n?void 0:null===(t=n.tooltips)||void 0===t?void 0:t.some(e=>"ACTIVE"===e.status),[R,B]=(0,s.useState)(L),O=(0,s.useRef)(null),D=(0,m.Z)(),F=(0,S.q)(),q=(0,C.mb)(r);(0,s.useEffect)(()=>{c((null==n?void 0:n.isFollower)||!1)},[null==n?void 0:n.isFollower]);let[U]=(0,f.D)(b.Gi,{refetchQueries:[{query:y.j},{query:b.EF,variables:{siteId:null==n?void 0:n.id}}],onCompleted:e=>{var t;(null==e?void 0:null===(t=e.followSite)||void 0===t?void 0:t.isFollowing)&&(c(!0),h(!1))},onError:()=>{h(!1)}}),[z]=(0,f.D)(b.P7,{refetchQueries:[{query:y.j},{query:b.EF,variables:{siteId:null==n?void 0:n.id}}],onCompleted:e=>{(null==e?void 0:e.unfollowSite)&&!e.unfollowSite.isFollowing&&(c(!1),h(!1))},onError:()=>{h(!1)}}),Z=async()=>{if(!a){(0,p.Eu)({[p.Tx.FOLLOW]:!0},!1,(0,p.$C)(null==n?void 0:n.id));return}if(B(!1),d)M("unfollow"),F.onOpen();else if("OFF"===q)M("follow"),F.onOpen();else{h(!0);try{var e,t;let i=await U({variables:{input:{context:v.Ie.FOLLOW_BUTTON,siteId:null==n?void 0:n.id}}});(null==i?void 0:null===(t=i.data)||void 0===t?void 0:null===(e=t.followSite)||void 0===e?void 0:e.isFollowing)&&(c(!0),D.toggleModal()),h(!1)}catch(e){h(!1)}}},H=async()=>{h(!0);try{var e,t;let i=await U({variables:{input:{context:v.Ie.FOLLOW_BUTTON,siteId:null==n?void 0:n.id}}});(null==i?void 0:null===(t=i.data)||void 0===t?void 0:null===(e=t.followSite)||void 0===e?void 0:e.isFollowing)&&(F.onClose(),D.toggleModal()),h(!1)}catch(e){h(!1)}},W=d?"fa-circle-check":"fa-user-plus",$=async()=>{h(!0);try{var e;let t=await z({variables:{input:{context:v.Ie.FOLLOW_BUTTON,siteId:null==n?void 0:n.id}}});(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.unfollowSite)&&!t.data.unfollowSite.isFollowing&&c(!1),h(!1),F.onClose()}catch(e){h(!1)}};return(0,i.jsxs)("div",{className:"followBtnContainer",children:[R&&(0,i.jsx)(P.default,{tooltip:{status:"ACTIVE",type:"FOLLOW_TOOLTIP"}
1,siteId:null==n?void 0:n.id,targetRef:O,onAction:e=>{e.following?(c(!0),D.toggleModal()):c(!1)},vpWidth:l}),(0,i.jsxs)("button",{id:"SafeFollowButton",ref:e=>{O.current=e,o&&(o.current=e)},className:"button--isClear menuLink",onClick:Z,disabled:x,"data-qa":d?"mobile-menu-unfollow-btn":"mobile-menu-follow-btn",children:[(0,i.jsx)("i",{className:"".concat(W," fa-solid sideNavIcon")}),(0,i.jsx)("span",{className:"menuText",children:x?d?"Unfollowing...":"Following...":d?"Following":"Follow this Page"})]}),(0,i.jsx)(w.Z,{modal:D,action:u.Uc.FOLLOW}),(0,i.jsxs)(E.u_,{isOpen:F.isOpen,onClose:F.onClose,isCentered:!0,children:[(0,i.jsx)(T.Z,{}),(0,i.jsx)(I.h,{maxWidth:"350px",children:(0,i.jsx)(_.f,{p:0,children:"follow"===g?(0,i.jsx)(k.Z,{notificationPreference:q,vpWidth:l,onClose:()=>{M(null),F.onClose()},setIsFollower:c,handleNotificationChanges:H}):(0,i.jsx)(N.Z,{onClose:()=>{M(null),F.onClose()},handleClick:$})})})]})]})}function L(e){let{type:t,isVisible:n}=e;if(!n)return null;let o="new"===t,a=o?"New":"Draft",s=o?"var(--berry-bridge-200)":"var(--sky)";return(0,i.jsx)(r.xu,{className:"".concat(t,"-badge-container"),position:"absolute",top:"-37px",left:"50%",transform:"translateX(-50%)",zIndex:1002,pointerEvents:"none",children:(0,i.jsxs)(r.xu,{"data-layer":"".concat(a," Badge"),className:"".concat(a,"Badge"),width:"100%",height:"100%",position:"relative",children:[(0,i.jsx)(r.xu,{"data-layer":"Badge/Pinned",className:"BadgePinned".concat(o?"":"Draft"),paddingLeft:"15px",paddingRight:"15px",paddingTop:"2px",paddingBottom:"2px",left:"50%",top:"5px",position:"absolute",transform:"translateX(-50%)",bg:s,borderRadius:"24px",justifyContent:"center",alignItems:"center",gap:"4px",display:"inline-flex",children:(0,i.jsx)(r.xu,{"data-layer":a,className:a,textAlign:"center",justifyContent:"center",display:"flex",flexDirection:"column",color:o?"var(--berry-bridge-500)":"var(--navy)",fontSize:"14px",fontFamily:"'Figtree'",fontWeight:500,lineHeight:"20px",children:a})}),(0,i.jsx)(r.xu,{"data-layer":"Group ".concat(o?"1000005632":"1000005633"),className:"Group".concat(o?"1000005632":"1000005633"),position:"absolute",top:o?"29px":"28px",left:"50%",transform:"translateX(-50%)",width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"6px solid ".concat(s),zIndex:1001})]})})}M.propTypes={page:g().object,menuBtnRef:g().object};var R=n(35677),B=n(35691),O=n(95027),D=n(53523),F=n(27892),q=n(61755),U=n(25017),z=n(65870),Z=n(79056);function H(e){var t,n,o,f,h,g,b;let{siteData:y,siteId:v,isVisible:w=!0}=e,S=(0,m.Z)(),E=(0,s.useRef)(null),T=(0,B.Ff)(),{launchEditorFor:I}=(0,O.K)(),{draftsData:_}=(0,D.f)(),{userSeenFeatures:C,setUserSeenFeatures:k}=(0,q.D)(),N=(0,j.SE)(),A=window.location.search.includes("otpv_token="),P=(null==y?void 0:y.isUsingOtpvToken)||A,H=!0!==N.isSignedIn,W=(0,U.ew)((0,U.Jo)(U.lM.MOBILE_MENU_DONATE),"",U.iq.NOW),{useFruFlow:$,isTributePath:G,handleDonateClick:V,tributeModalProps:Y}=(0,Z.Z)({tributeSplitCode:U.lM.MOBILE_MENU_DONATE,donateSplitCode:U.lM.MOBILE_MENU_DONATE,siteId:v,source:"mobile-menu"});if(!y||!w||P&&H||!v||!y.id&&!v)return null;let X=y.isAuthor,Q=y.isShareableByVisitor,K=(null==_?void 0:null===(t=_.getDrafts)||void 0===t?void 0:t.drafts)||[],J=K.length>0,{userSeenFeaturesData:ee}=C,et=(null==ee?void 0:null===(f=ee.getUserSeenFeatures)||void 0===f?void 0:null===(o=f.userSeenFeatures)||void 0===o?void 0:null===(n=o.find(e=>e.featureName===F.e.REQUEST))||void 0===n?void 0:n.isNew)||!1,en=(null==ee?void 0:null===(b=ee.getUserSeenFeatures)||void 0===b?void 0:null===(g=b.userSeenFeatures)||void 0===g?void 0:null===(h=g.find(e=>e.featureName===F.e.GIFT_CARD_3||e.featureName===F.e.INSTACART))||void 0===h?void 0:h.isNew)||!1,ei=e=>{e.preventDefault(),S.toggleModal()},eo=y?{...y,tooltips:y.tooltips||[],id:y.id||v}:null;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.xu,{className:"mobile-menu bleed ".concat(X?"mobile-author-menu":"mobile-visitor-menu"),display:"block",position:"fixed",bottom:0,left:0,right:0,zIndex:1e3,sx:{"@media (min-width: 1024px)":{display:"none"}},bg:"var(--gray-50)",borderTop:"0.5px solid var(--gray-300)",children:(0,i.jsx)(c.k,{className:"menu-container",justify:X?"space-between":"space-around",align:"flex-start",width:"100%",margin:"0",padding:"9px 16px",gap:X?"18px":"9px",children:X?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.xu,{className:"menu-item",flex:1,display:"flex",justifyContent:"center",position:"relative",children:(0,i.jsxs)(l.z,{className:"menu-button",onClick:e=>{e.preventDefault(),e.stopPropagation();let t=null==K?void 0:K[0];T({type:B.Ir.SET_VALUE,mode:B.oS.DRAFT,post:t})},variant:"ghost",display:"flex",flexDirection:"column",alignItems:"center",bg:"none",border:"none",cursor:"pointer",padding:"2px 4px",minHeight:"44px",justifyContent:"flex-start",position:"relative",_hover:{bg:"none"},_active:{transform:"scale(0.95)"},"data-qa":"mobile-menu-create-post-btn",children:[(0,i.jsx)(L,{type:"draft",isVisible:J}),(0,i.jsx)(r.xu,{className:"icon-container",width:"25px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"4px",children:(0,i.jsx)("i",{className:"fa-pen fa-duotone menu-icon"})}),(0,i.jsx)(r.xu,{className:"menu-label",fontSize:"11px",fontFamily:"'Figtree', sans-serif",fontWeight:500,textAlign:"center",lineHeight:"normal",letterSpacing:"-0.24px",maxWidth:"70px",whiteSpace:"nowrap",children:"Post"})]})}),(0,i.jsx)(r.xu,{className:"menu-item",flex:1,display:"flex",justifyContent:"center",position:"relative",left:"-3px",children:(0,i.jsxs)(l.z,{className:"menu-button",onClick:e=>{e.preventDefault(),et&&k({variables:{input:{featureNames:[F.e.REQUEST]}},refetchQueries:["GET_RELEASED_FEATURES"]}),I({type:"request"},v)},variant:"ghost",display:"flex",flexDirection:"column",alignItems:"center",bg:"none",border:"none",cursor:"pointer",padding:"2px 4px",minHeight:"44px",justifyContent:"flex-start",position:"relative",_hover:{bg:"none"},_active:{transform:"scale(0.95)"},"data-qa":"mobile-menu-create-request-btn",children:[(0,i.jsx)(L,{type:"new",isVisible:et}),(0,i.jsx)(r.xu,{className:"icon-container",width:"25px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"4px",children:(0,i.jsx)("i",{className:"fa-calendar-check fa-duotone menu-icon"})}),(0,i.jsx)(r.xu,{className:"menu-label",fontSize:"11px",fontFamily:"'Figtree', sans-serif",fontWeight:500,textAlign:"center",lineHeight:"normal",letterSpacing:"-0.24px",maxWidth:"70px",whiteSpace:"nowrap",children:"Request"})]})}),(0,i.jsx)(r.xu,{className:"menu-item",flex:1,display:"flex",justifyContent:"center",position:"relative",children:(0,i.jsxs)(d.r,{href:(0,p.G3)(p.Z6.SITE_WAYS_TO_HELP,v),className:"menu-button",display:"flex",flexDirection:"column",alignItems:"center",bg:"none",border:"none",cursor:"pointer",textDecoration:"none",padding:"2px 4px",minHeight:"44px",justifyContent:"flex-start",position:"relative",_hover:{opacity:.8},_active:{transform:"scale(0.95)"},"data-qa":"mobile-menu-author-ways-to-help-btn",children:[(0,i.jsx)(L,{type:"new",isVisible:en}),(0,i.jsx)(r.xu,{className:"icon-container",width:"25px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"4px",children:(0,i.jsx)("i",{className:"fa-heart-circle-plus fa-duotone menu-icon"})}),(0,i.jsx)(r.xu,{className:"menu-label",fontSize:"11px",fontFamily:"'Figtree', sans-serif",fontWeight:500,textAlign:"center",lineHeight:"normal",letterSpacing:"-0.24px",maxWidth:"70px",whiteSpace:"nowrap",children:"Ways to Get Help"})]})}),(0,i.jsx)(r.xu,{className:"menu-item",flex:1,display:"flex",justifyContent:"center",position:"relative",children:(0,i.jsxs)(l.z,{className:"menu-button",onClick:ei,variant:"ghost",display:"flex",flexDirection:"column",alignItems:"center",bg:"none",border:"none",cursor:"pointer",padding:"2px 4px",minHeight:"44px",justifyContent:"flex-start",position:"relative",_hover:{bg:"none"},_active:{transform:"scale(0.95)"},"data-qa":"mobile-menu-author-share-btn",children:[(0,i.jsx)(r.xu,{className:"icon-container",width:"25px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"4px",children:(0,i.jsx)("i",{className:"fa-share fa-duotone menu-icon"})}),(0,i.jsx)(r.xu,{className:"menu-label",fontSize:"11px",fontFamily:"'Figtree', sans-serif",fontWeight:500,textAlign:"center",lineHeight:"normal",letterSpacing:"-0.24px",maxWidth:"70px",whiteSpace:"nowrap",children:"Share"})]})}),(0,i.jsx)(r.xu,{className:"menu-item",flex:1,display:"flex",justifyContent:"center",position:"relative",left:"-4px",children:(0,i.jsxs)(d.r,{href:(0,p.G3)(p.Z6.SITE_SETTINGS_AUTHORS,v),className:"menu-button",display:"flex",flexDirection:"column",alignItems:"center",bg:"none",border:"none",cursor:"pointer",textDecoration:"none",padding:"2px 4px",minHeight:"44px",justifyContent:"flex-start",position:"relative",_hover:{opacity:.8},_active:{transform:"scale(0.95)"},"data-qa":"mobile-menu-co-author-btn",children:[(0,i.jsx)(r.xu,{className:"icon-container",width:"25px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"4px",children:(0,i.jsx)("i",{className:"fa-users fa-duotone menu-icon"})}),(0,i.jsx)(r.xu,{className:"menu-label",fontSize:"11px",fontFamily:"'Figtree', sans-serif",fontWeight:500,textAlign:"center",lineHeight:"normal",letterSpacing:"-0.24px",maxWidth:"70px",whiteSpace:"nowrap",children:"Add Co-Author"})]})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.xu,{className:"menu-item",flex:1,display:"flex",justifyContent:"center",children:(0,i.jsx)(r.xu,{className:"follow-wrapper",display:"flex",flexDirection:"column",alignItems:"center",width:"100%",children:eo&&(0,i.jsx)(M,{page:eo,menuBtnRef:E})})}),Q&&(0,i.jsx)(r.xu,{className:"menu-item",flex:1,position:"relative",left:"6px",justifyContent:"center",children:(0,i.jsxs)(l.z,{className:"menu-button",onClick:ei,variant:"ghost",display:"flex",flexDirection:"column",alignItems:"center",bg:"none",border:"none",cursor:"pointer",padding:"2px 4px",minHeight:"44px",justifyContent:"flex-start",_hover:{bg:"none"},_active:{transform:"scale(0.95)"},"data-qa":"mobile-menu-share-btn",children:[(0,i.jsx)(r.xu,{className:"icon-container",width:"25px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"4px",children:(0,i.jsx)("i",{className:"fa-share fa-duotone menu-icon"})}),(0,i.jsx)(r.xu,{className:"menu-label",fontSize:"11px",fontFamily:"'Figtree', sans-serif",fontWeight:500,textAlign:"center",lineHeight:"normal",letterSpacing:"-0.24px",maxWidth:"65px",whiteSpace:"nowrap",children:"Share this Page"})]})}),(0,i.jsx)(r.xu,{className:"menu-item",flex:1,display:"flex",justifyContent:"center",position:"relative",children:(0,i.jsxs)(d.r,{href:(0,p.G3)(p.Z6.SITE_WAYS_TO_HELP,v),className:"menu-button",display:"flex",flexDirection:"column",alignItems:"center",bg:"none",border:"none",cursor:"pointer",textDecoration:"none",padding:"2px 4px",minHeight:"44px",justifyContent:"flex-start",_hover:{opacity:.8},"data-qa":"mobile-menu-ways-to-help-btn",children:[(0,i.jsx)(L,{type:"new",isVisible:en}),(0,i.jsx)(r.xu,{className:"icon-container",width:"25px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"4px",children:(0,i.jsx)("i",{className:"fa-heart-circle-plus fa-duotone menu-icon"})}),(0,i.jsx)(r.xu,{className:"menu-label",fontSize:"11px",fontFamily:"'Figtree', sans-serif",fontWeight:500,textAlign:"center",lineHeight:"normal",letterSpacing:"-0.24px",maxWidth:"75px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:"Ways to Help"})]})}),(0,i.jsx)(r.xu,{className:"menu-item donate-item",flex:1,display:"flex",justifyContent:"center",position:"relative",children:(0,i.jsxs)(d.r,{as:$?"button":void 0,href:$?void 0:W,onClick:$?V:void 0,className:"menu-button donate-button",display:"flex",flexDirection:"column",alignItems:"center",bg:"none",border:"none",cursor:"pointer",textDecoration:"none",padding:"2px 4px",minHeight:"44px",justifyContent:"flex-start",_hover:{opacity:.8},_active:{transform:"scale(0.95)"},"data-qa":"mobile-menu-donate-btn",children:[(0,i.jsx)(r.xu,{className:"icon-container",width:"25px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"4px",children:(0,i.jsx)("i",{className:"fa-hand-holding-heart fa-duotone menu-icon"})}),(0,i.jsx)(r.xu,{className:"menu-label",fontSize:"11px",fontFamily:"'Figtree', sans-serif",fontWeight:500,textAlign:"center",lineHeight:"normal",letterSpacing:"-0.24px",maxWidth:"65px",whiteSpace:"nowrap",children:"Donate"})]})})]})})}),(0,i.jsx)(x.Z,{modalController:S,siteId:v,origin:R.Yt.PRIVATE_HOME_PAGE}),$&&G&&(0,i.jsx)(z.Z,{...Y}),(0,i.jsx)(a(),{id:"567e971fc5606c4c",dynamic:[u.Bs.LARGE],children:'.fa-duotone,.fad{position:relative!important;font-weight:900!important;letter-spacing:normal!important;color:var(--berry-bridge-500)!important}.mobile-menu .fa-duotone,.mobile-menu .fad,.mobile-menu i.fa-duotone,.mobile-menu i.fad{position:relative!important;font-weight:900!important;letter-spacing:normal!important;color:var(--berry-bridge-500)!important;font-size:22px!important;--fa-primary-color:var(--berry-bridge-300)!important;--fa-secondary-color:var(--berry-bridge-500)!important;--fa-secondary-opacity:1!important}.mobile-menu .menu-icon{position:relative!important;font-weight:900!important;letter-spacing:normal!important;color:var(--berry-bridge-500)!important;font-size:22px!important}.menu-label{color:var(--indigo)!important}.follow-wrapper .followBtnContainer{width:100%}
1.follow-wrapper .menuLink{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:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;background:none;border:none;cursor:pointer;text-decoration:none;color:inherit;padding:2px 4px;min-height:44px;-webkit-box-pack:start;-webkit-justify-content:flex-start;-moz-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;width:100%}.follow-wrapper .sideNavIcon{font-size:22px;color:var(--berry-bridge-500);width:25px;height:22px;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;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:4px;vertical-align:unset;--fa-primary-color:var(--berry-bridge-500);--fa-secondary-color:var(--berry-bridge-300);--fa-secondary-opacity:1}.follow-wrapper .menuText{font-size:11px;font-family:"Figtree",sans-serif;font-weight:500;color:var(--indigo);text-align:center;line-height:1.1;max-width:85px;padding-left:0;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}@media(max-width:'.concat(u.Bs.LARGE,'px){.mobile-menu{display:block!important}.menu-toggle,button[aria-label*="Builder"],button[aria-label*="Toggle"],.builder-editor-widget,[data-builder-widget],.builder-widget,.builder-floating-button,.builder-editor,.builder-overlay,[class*="builder"]:not(.mobile-author-menu):not(.mobile-visitor-menu):not(.mobile-menu){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;position:absolute!important;left:-9999px!important;top:-9999px!important;z-index:-1!important}.standardLayout.wider{padding-bottom:70px}}')})]})}},63476:function(e,t,n){n.d(t,{Z:function(){return y}});var i=n(85893),o=n(40645),a=n.n(o),s=n(45697),r=n.n(s),l=n(73775),d=n(28618),c=n(49357),u=n(4162),p=n(43287),m=n(37887),x=n(83314),f=n(25675),h=n.n(f),g=n(28819),b=n(22878);function y(e){var t,n,o;let{tributeThanksJson:s,className:r="",preview:f=!1}=e,y=(0,u.Ph)("siteId"),{isSignedIn:v}=(0,p.SE)(),{data:j,loading:w}=(0,m.a)(x.j,{skip:!v}),{page:S}=(0,l.bh)(),E=null!==(o=null==S?void 0:S.tributeThanks)&&void 0!==o?o:s,T=(0,c.Fb)(null==E?void 0:E.rules)||f;if(!E||!T||w)return null;let{headline:I,body:_,rules:C,daysSinceDonation:k,image:N,button:A}=E;return(0,g.$)(k,null==j?void 0:null===(t=j.me)||void 0===t?void 0:t.mySites,y,v)?(0,i.jsxs)(d.Z,{className:" ".concat(r," tributeThanksCard paddingTopBottom--24 paddingLeftRight--24 "),isForModal:!0,children:[N&&(0,i.jsx)(h(),{className:"tributeThanksImage","data-qa":"tributeThanksImage",src:N.asset[0].secure_url,width:240,height:185,alt:"",unoptimized:!0}),(0,i.jsxs)("section",{className:"jsx-9fd95a6d68c73cba",children:[(0,i.jsx)("h1",{"data-qa":"tributeThanksHeadline",className:"jsx-9fd95a6d68c73cba h6 marginTop--0 marginBottom--6",children:(0,c.C9)(I)}),(0,i.jsxs)("div",{"data-qa":"tributeThanksBody",className:"jsx-9fd95a6d68c73cba tributeThanksBody",children:[(0,i.jsx)(c.Nq,{json:_.json,rules:C||void 0}),A&&(0,i.jsx)("div",{className:"jsx-9fd95a6d68c73cba tributeThanksButtonWrapper",children:(0,i.jsx)(b.Z,{variant:A.variant||"primary",size:A.size||"default",reversed:"Automatic"===A.reversed,href:A.href||{pathname:null===(n=A.page)||void 0===n?void 0:n.path,query:{siteId:y}},"data-qa":"tributeThanksButton",children:A.text},A.sys.id)})]})]}),(0,i.jsx)(a(),{id:"9fd95a6d68c73cba",children:".tributeThanksCard{min-width:275px;max-width:500px;width:90%;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:12px;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;margin:0 auto}@media screen and (min-width:768px){.tributeThanksCard{max-width:600px}}.tributeThanksBody.jsx-9fd95a6d68c73cba{font-size:16px}.tributeThanksButtonWrapper.jsx-9fd95a6d68c73cba{margin-top:16px}.tributeThanksImage.jsx-9fd95a6d68c73cba{width:auto;height:auto;max-width:100%;max-height:200px;-o-object-fit:contain;object-fit:contain;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}"})]}):null}
1y.propTypes={tributeThanksJson:r().object,className:r().string,preview:r().bool}},54503:function(e,t,n){n.d(t,{Z:function(){return C}});var i=n(85893),o=n(40645),a=n.n(o),s=n(67294),r=n(45697),l=n.n(r),d=n(73775),c=n(28618),u=n(63005),p=n(49357),m=n(22878),x=n(41664),f=n.n(x),h=n(4162),g=n(43287),b=n(37887),y=n(83314),v=n(90331),j=n(41420),w=n(25675),S=n.n(w),E=n(25017),T=n(87036),I=n(28819),_=n(65870);function C(e){var t,n,o,r,l;let{tributeJson:x,className:w="",preview:C=!1,previewTributeCount:k=0,tab:N}=e,A=(0,h.Ph)("siteId"),{isSignedIn:P,id:M,firstName:L,lastName:R,emailAddress:B}=(0,g.SE)(),{data:O,loading:D}=(0,b.a)(y.j,{skip:!P}),{data:F,loading:q}=(0,v.Z)(A),{page:U}=(0,d.bh)(),z=null!==(o=null==U?void 0:U.tribute)&&void 0!==o?o:x,[Z,H]=(0,s.useState)(""),[W,$]=(0,s.useState)(!1),G=(0,p.Fb)(null==z?void 0:z.rules)||C,V=null!==(r=null==z?void 0:z.fruFormId)&&void 0!==r?r:null,Y=!!V,X={feed:"splitCodeFeed",posts:"splitCodePosts",tributes:"splitCodeTributes",tribute:"splitCodeTributes",singlepost:"splitCodeSinglePost"}[N.toLowerCase()],Q=(null==z?void 0:z[X])||(null==z?void 0:z.splitCode)||null,K=(0,E.ew)(Q,Z);if(!z||!G||D||q)return null;let{headline:J,bodyTributesZero:ee,bodyTributesOne:et,bodyTributesMultiple:en,placeholder:ei,buttonText:eo,rules:ea,daysSinceDonation:es}=z,er=null!==(l=null==U?void 0:null===(t=U.tabsCollection)||void 0===t?void 0:t.items)&&void 0!==l?l:[],el=e=>{var t,n,i;return er[0]?0===e?null===(t=er[0])||void 0===t?void 0:t.headline:1===e?null===(n=er[0])||void 0===n?void 0:n.headlineTributeOne:null===(i=er[0])||void 0===i?void 0:i.headlineTributeMultiple:null},ed=e=>{var t,n,i;return er[0]?0===e?null===(t=er[0])||void 0===t?void 0:t.singlePostHeadline:1===e?null===(n=er[0])||void 0===n?void 0:n.singlePostHeadlineOne:null===(i=er[0])||void 0===i?void 0:i.singlePostHeadlineMultiple:null},ec=e=>{var t,n,i,o,a,s;return er[0]?0===e?(null===(o=er[0])||void 0===o?void 0:null===(i=o.bodyTributesZero)||void 0===i?void 0:i.json)||null:1===e?(null===(s=er[0])||void 0===s?void 0:null===(a=s.bodyTributesOne)||void 0===a?void 0:a.json)||null:(null===(n=er[0])||void 0===n?void 0:null===(t=n.bodyTributesMultiple)||void 0===t?void 0:t.json)||null:null},eu=e=>{var t,n,i;return er[0]?0===e?null===(n=er[0].singlePostBodyTributesZero)||void 0===n?void 0:n.json:1===e?null===(i=er[0].singlePostBodyTributesOne)||void 0===i?void 0:i.json:null===(t=er[0].singlePostBodyTributesMultiple)||void 0===t?void 0:t.json:null},ep=(0,I.$)(es,null==O?void 0:null===(n=O.me)||void 0===n?void 0:n.mySites,A,P),em=k;C||(em=F.getSite.numTributes);let ex=en;return(1===em?ex=et:0===em&&(ex=ee),ep)?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.Z,{className:" ".concat(w," tributeCard paddingTopBottom--0 paddingLeftRight--24 "),isForModal:!0,children:[(null==z?void 0:z.image)?(0,i.jsx)(S(),{className:"tributeImage",src:z.image.asset[0].secure_url,width:240,height:185,alt:"",unoptimized:!0}):null,(0,i.jsxs)("section",{className:a().dynamic([["2a565abec2733458",[T.Bs.SMALL]]])+" paddingTopBottom--24",children:[(0,i.jsx)("h1",{className:a().dynamic([["2a565abec2733458",[T.Bs.SMALL]]])+" h6 marginTop--0 marginBottom--6",children:"TRIBUTE"===N&&el(em)?(0,p.C9)(el(em)):"singlePost"===N&&ed(em)?(0,p.C9)(ed(em)):(0,p.C9)(J)}),"TRIBUTE"===N&&ec(em)?(0,i.jsx)(p.Nq,{json:ec(em),rules:ea||void 0}):"singlePost"===N&&eu(em)?(0,i.jsx)(p.Nq,{json:eu(em),rules:ea||void 0}):(null==ex?void 0:ex.json)?(0,i.jsx)(p.Nq,{json:ex.json,rules:ea||void 0}):null,(0,i.jsxs)("div",{className:a().dynamic([["2a565abec2733458",[T.Bs.SMALL]]])+" inputRow marginTop--12",children:[(0,i.jsx)(u.Z,{className:"tributeTextInput","data-qa":"tributeText",value:Z,onChange:e=>{H(e)},placeholder:ei,maxLength:700,style:{":placeholder-shown":{fontStyle:"bold"}}}),Y?(0,i.jsx)(m.Z,{className:"donateButton",size:j.i.SMALL,"data-qa":"tributeAction",onClick:()=>$(!0),children:eo}):(0,i.jsx)(f(),{href:K,legacyBehavior:!0,children:(0,i.jsx)(m.Z,{className:"donateButton",size:j.i.SMALL,"data-qa":"tributeAction",children:eo})})]})]}),(0,i.jsx)(a(),{id:"2a565abec2733458",dynamic:[T.Bs.SMALL],children:".badgeContainer{display:block!important}.tributeCard{margin-top:36px!important;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:12px;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.tributeImage{-webkit-align-self:end;-ms-flex-item-align:end;align-self:end;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end}.tributeTextInput::-webkit-input-placeholder{font-style:normal}.tributeTextInput:-moz-placeholder{font-style:normal}.tributeTextInput::-moz-placeholder{font-style:normal}.tributeTextInput:-ms-input-placeholder{font-style:normal}.tributeTextInput::-ms-input-placeholder{font-style:normal}.tributeTextInput::placeholder{font-style:normal}.inputRow.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:10px}.donateButton{height:44px}@media(max-width:".concat(T.Bs.SMALL,"){.tributeImage{display:none}.inputRow.__jsx-style-dynamic-selector{-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:6px}}")})]}),Y&&(0,i.jsx)(_.Z,{isOpen:W,onClose:()=>$(!1),initialMessage:Z,initialSignature:"".concat(L||""," ").concat(R||"").trim(),siteId:A,userId:M,formId:V,supporter:{firstName:L,lastName:R,email:B},splitCode:Q,source:"tribute-widget"})]})}C.propTypes={tributeJson:l().object,className:l().string,preview:l().bool,previewTributeCount:l().number,tab:l().string}},28819:function(e,t,n){n.d(t,{$:function(){return i}});function i(e,t,n,i){if(!i)return!1;if(Array.isArray(t)){let i=t.find(e=>e.id===n);if(i){let t=new Date(i.lastDonatedAt).valueOf();if(t)return Date.now()-t<864e5*e}}return!1}},83314:function(e,t,n){n.d(t,{j:function(){return a}});var i=n(82729);function o(){let e=(0,i._)(["\n    query MY_SITES {\n        me {\n            id\n            unconfirmedSocialSignUp\n            mySites {\n                id\n                isAuthor\n                isFollowing\n                lastVisitedAt\n                lastDonatedAt\n                mainSitePhoto {\n                    width\n                    height\n                    publicId\n                    legacyPath\n                }\n                title\n                firstName\n                lastName\n                notificationList {\n                    type\n                    count\n                }\n            }\n        }\n    }\n"]);return o=function(){return e},e}let a=(0,n(17283).Ps)(o())},57167:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(85893),o=n(45697),a=n.n(o),s=n(18216),r=n(11774),l=n(38411),d=n(95568),c=n(56310),u=n(53235),p=n(67294),m=n(61922),x=n(21214),f=n(29579),h=n(64091),g=n(52765),b=n(57747),y=n(93717),v=n(14e3);function j(e){let{selectedPhoto:t,setSelectedPhoto:n,onUploadingChange:o}=e,[a,j]=(0,p.useState)(!1),[w,S]=(0,p.useState)(null),E=(0,g.t)(t),T=e=>{j(e),null==o||o(e)},I=async e=>{var t,o;if(null==e?void 0:null===(o=e.target)||void 0===o?void 0:null===(t=o.files)||void 0===t?void 0:t.length){let t=e.target.files[0];if(!(0,g.f)(t,d.C1)){S("Your profile photo must be ".concat(d.C1," MB or smaller. Please choose a smaller image and try again."));return}try{S(null),T(!0);let e=await (0,r.Ix)(t);T(!1),e?n({publicId:e.public_id,legacyPath:e.legacyPath,width:e.width,height:e.height}):S((0,i.jsxs)(i.Fragment,{children:["There was a server error during your image upload.",(0,i.jsx)(h.Z,{})]}))}catch(e){switch(e.type){case s.uY.CORRUPT_IMAGE:S((0,i.jsx)(i.Fragment,{children:"The image is invali
1d or corrupt. Try a different one."}));break;case s.uY.RATE_LIMITED:S((0,i.jsxs)(i.Fragment,{children:["Your photo could not be uploaded because"," ",(0,l.mL)(s.uY.RATE_LIMITED)]}));break;default:S((0,i.jsxs)(i.Fragment,{children:["There was a server error during your image upload.",(0,i.jsx)(h.Z,{})]}))}T(!1)}}};return(0,p.useEffect)(()=>{(0,g.t)(t)&&S(null)},[t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("input",{id:"filesInput",type:"file",accept:s.Ef.MIME_TYPES.join(", "),onChange:I,multiple:!1,hidden:!0,"data-qa":"fileInput"}),(0,i.jsx)(b.xu,{border:"1px solid var(--gray-300)",borderRadius:"6px",p:6,display:"flex",justifyContent:"center",alignItems:"center",minH:"268px",w:"100%",children:a?(0,i.jsx)(x.Z,{width:"100px",children:(0,i.jsx)(b.xu,{position:"absolute",top:"50%",transform:"translateY(-50%)",w:"100%",textAlign:"center",children:(0,i.jsx)(m.ZP,{})})}):(0,i.jsxs)(y.k,{flexDirection:"column",alignItems:"center",gap:3,children:[(0,i.jsx)(b.xu,{as:"label",htmlFor:"filesInput",cursor:"pointer","data-qa":"uploadSitePhotoIcon","aria-label":"Upload profile photo",children:(0,i.jsx)(c.Z,{photoId:null==t?void 0:t.publicId,legacyPath:null==t?void 0:t.legacyPath,width:100,buttonLocation:c.e.bottomRight,children:(0,i.jsx)(u.Z,{iconID:"fa-camera",size:26,includeBorder:!0,"data-qa":"cameraIcon"})})}),(0,i.jsx)(v.x,{as:"label",htmlFor:"filesInput",cursor:"pointer",color:"var(--link-text)",fontSize:"14px",textDecoration:"underline",_hover:{color:"var(--link-hover-text)"},"data-qa":"uploadSitePhoto",children:E?"Choose a different photo":"Upload a photo"})]})}),w&&(0,i.jsx)("p",{children:(0,i.jsx)(f.Z,{children:w})})]})}j.propTypes={selectedPhoto:a().object.isRequired,setSelectedPhoto:a().func.isRequired,onUploadingChange:a().func}},26142:function(e,t,n){n.d(t,{AX:function(){return m},Ex:function(){return f},Hs:function(){return c},Is:function(){return u},Lx:function(){return x},oj:function(){return p}});var i=n(82729),o=n(17283);function a(){let e=(0,i._)(["\n    mutation UPDATE_EMAIL_ADDRESS($input: UpdateEmailInput!) {\n        updateEmailAddress(input: $input)\n    }\n"]);return a=function(){return e},e}function s(){let e=(0,i._)(["\n    mutation VERIFY_EMAIL_UPDATE($input: VerifyEmailUpdateInput!) {\n        verifyEmailUpdate(input: $input)\n    }\n"]);return s=function(){return e},e}function r(){let e=(0,i._)(["\n    mutation CHANGE_PASSWORD($new: String!, $old: String!) {\n        changePassword(new: $new, old: $old)\n    }\n"]);return r=function(){return e},e}function l(){let e=(0,i._)(["\n    mutation UPDATE_USER($input: updateUserInput!) {\n        updateUser(input: $input) {\n            id\n        }\n    }\n"]);return l=function(){return e},e}function d(){let e=(0,i._)(["\n    query GET_FEDERATED_IDENTITIES_FOR_USER {\n        getFederatedIdentitiesForUser {\n            facebook\n            google\n            apple\n        }\n    }\n"]);return d=function(){return e},e}let c=(0,o.Ps)(a()),u=(0,o.Ps)(s()),p=(0,o.Ps)(r()),m=(0,o.Ps)(l()),x=(0,o.Ps)(d());function f(e){let t="",n="";e.forEach(e=>{let[[i,o]]=Object.entries(e);t+=", $".concat(i,": ").concat(o),n+=", ".concat(i,": $").concat(i)});let i="mutation UNSUBSCRIBE(".concat(h(t),") {\n    updateNotificationSetting(input: { ").concat(h(n)," }) {\n        jen\n        dailyEmail\n    }\n}");return(0,o.Ps)(i)}function h(e){return e.substring(2)}},45114:function(e,t,n){n.d(t,{C:function(){return eY},Z:function(){return eX}});var i=n(85893),o=n(40645),a=n.n(o),s=n(5241),r=n(87036),l=n(45697),d=n.n(l),c=n(20348),u=n(14333),p=n(20099);function m(e){let{id:t,legacyPath:n,width:o,onClick:a,responsive:s,...r}=e;return(0,i.jsx)("button",{className:"button--isClear",onClick:e=>a(),...r,"aria-label":"View a larger version of this picture",children:(0,i.jsx)(p.Z,{id:t,legacyPath:n,width:o,responsive:s})})}m.propTypes={id:d().string,legacyPath:d().string,width:d().number.isRequired,onClick:d().func.isRequired,"data-qa":d().string.isRequired,responsive:d().bool};var x=n(84094);function f(e){let{thumbnailWidth:t,photos:n=[]}=e,o=(0,c.Yx)(),s=(0,x.Z)();if(!n.length)return null;let r=[...n],l=n.map(e=>()=>(0,i.jsx)(u.Z,{id:e.publicId,legacyPath:e.legacyPath,width:e.width,height:e.height,maxHeight:s})),d=e=>()=>{o({type:c.w7.LOAD_MEDIA_VIEWER,mediaList:l,mediaIndex:e})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"jsx-e2ca6fe0b2622f6b quadLayout",children:r.map((e,n)=>(0,i.jsx)(m,{id:e.publicId,legacyPath:e.legacyPath,width:t,onClick:d(n),"data-qa":"thumb-".concat(n)},e.publicId))}),(0,i.jsx)(a(),{id:"e2ca6fe0b2622f6b",children:".quadLayout.jsx-e2ca6fe0b2622f6b{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;gap:12px;padding-bottom:20px}"})]})}f.propTypes={thumbnailWidth:d().number.isRequired,photos:d().arrayOf(d().object)};var h=n(52909),g=n(67294),b=n(71434),y=n(33953),v=n(37455),j=n(56983);function w(e){if(Array.isArray(e)&&e.length){let t=e.reduce((e,t)=>
1(t.contextualUserHasReacted&&e.push(t.type),e),[]);return t.length?t[0]:null}return null}var S=n(50319),E=n(71312),T=n(60453),I=n(83314),_=n(25351),C=n(4162),k=n(86871),N=n(43287);function A(e){let t,{currentButton:n,isUsingOtpvToken:o}=e,{isSignedIn:s}=(0,N.SE)();return t=n.reactionType&&(!o||s)?n.src?(0,i.jsx)("img",{className:"reactionIcon",src:n.src,alt:n.alt}):(0,i.jsx)("span",{className:"heartIcon colorFill",children:(0,i.jsx)("i",{className:"fa-solid fa-heart"})}):(0,i.jsx)("span",{className:"heartIcon",children:(0,i.jsx)("i",{className:"fa-regular fa-heart"})}),(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsx)(a(),{id:"a1747f837cb11d57",children:".reactionIcon{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:18px;width:18px}.heartIcon{font-size:16px}.heartIcon .fa-heart{font-weight:300}.colorFill{color:var(--berry-bridge-400)}"})]})}function P(e){let{reactableType:t,parent:n,handleReactionSuccess:o,isUsingOtpvToken:l}=e,d=(0,g.useRef)(null),c=(0,g.useRef)(null),[u,p]=(0,g.useState)(!1),[m,x]=(0,g.useState)(null),f=function(e,t,n){let i=(0,T.Pe)(),o=(0,C.Ph)("siteId"),[a,{client:s}]=(0,S.D)(E.W_,{onError:e=>{console.log("addReaction error: ",e)},update:(t,n)=>{let{data:i}=n;t.modify({id:t.identify(e),fields:{reactionGroupSummary(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{readField:n}=arguments.length>1?arguments[1]:void 0,o=t.writeFragment({data:i.addReaction,fragment:E.z4});return e.some(e=>n("id",e)===i.addReaction.id)?e:[...e,o]}}})},onCompleted:e=>{var t,o;i({event:T.kM.REACTED}),n({didAutoFollowSite:null==e?void 0:null===(t=e.addReaction)||void 0===t?void 0:t.didAutoFollowSite}),(null==e?void 0:null===(o=e.addReaction)||void 0===o?void 0:o.didAutoFollowSite)&&s.refetchQueries({include:[I.j]})},refetchQueries:[{query:_.EF,variables:{siteId:o}}]}),[r]=(0,S.D)(E.j4,{onError:e=>{console.log("removeReaction error: ",e)},update:(t,n)=>{let{data:i}=n;t.modify({id:t.identify(e),fields:{reactionGroupSummary(e,t){let{readField:n}=t;return e.filter(e=>n("id",e)!==i.removeReaction.id)}}})}});return n=>{let i=w(e.reactionGroupSummary);(!i||(r({variables:{input:{parentId:e.id,parentType:t,type:i}}}),n&&i!==n))&&a({variables:{input:{parentId:e.id,parentType:t,type:n}}})}}(n,t,o),{isSignedIn:v}=(0,N.SE)(),j=(0,C.Ph)(C.Tx.SITE_ID),P=(0,k.TA)(e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),p(!0)},{threshold:500,onStart:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e)},onCancel:()=>{p(!1)},cancelOnMovement:!0}),M=m?h.Ei.find(e=>e.reactionType===m):h.o3;(0,g.useEffect)(()=>{x(w(n.reactionGroupSummary))},[n.reactionGroupSummary]),(0,g.useEffect)(()=>{let e=e=>{d.current&&!d.current.contains(e.target)&&u&&p(!1)};return u&&(document.addEventListener("touchstart",e),document.addEventListener("mousedown",e)),()=>{document.removeEventListener("touchstart",e),document.removeEventListener("mousedown",e)}},[u]);let L=()=>{c.current=!0,p(!0)},R=()=>{c.current=!1,setTimeout(()=>{c.current||p(!1)},h.$o)},B=e=>()=>{if(!v){l&&(sessionStorage.removeItem(r.P_.OTPV_TOKEN_ID),sessionStorage.removeItem(r.P_.OTPV_RESOURCE_ID)),(0,C.Eu)({[C.Tx.REACTION]:e,[C.Tx.PARENT]:n.id,[C.Tx.OTPV_TOKEN]:""},!1,(0,C.$C)(j));return}f(e),p(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.Z,{ref:d,"data-qa":"reactionButton-".concat(t,"-").concat(n.id),id:"reactionButton-".concat(t,"-").concat(n.id),onClick:()=>{if(u)return;let e=m?null:s.lo.AMP_HEART;if(!v){l&&(sessionStorage.removeItem(r.P_.OTPV_TOKEN_ID),sessionStorage.removeItem(r.P_.OTPV_RESOURCE_ID)),(0,C.Eu)({[C.Tx.REACTION]:e,[C.Tx.PARENT]:n.id,[C.Tx.OTPV_TOKEN]:""},!1,(0,C.$C)(j));return}f(e)},onMouseEnter:L,onMouseLeave:R,onTouchStart:e=>{e.target.style.webkitUserSelect="none",e.target.style.userSelect="none"},onTouchEnd:e=>{e.target.style.webkitUserSelect="",e.target.style.userSelect=""},style:{touchAction:"manipulation",WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none",minHeight:"44px"},...P(),icon:(0,i.jsx)(A,{currentButton:M,isUsingOtpvToken:l}),children:l&&!v?"React":M.text}),(0,i.jsx)(y.G,{anchor:d.current,show:u,anchorAlign:{horizontal:"center",vertical:"top"},popupAlign:{horizontal:"center",vertical:"bottom"},popupClass:"popover",children:(0,i.jsx)("div",{onMouseEnter:L,onMouseLeave:R,className:a().dynamic([["1a72ce92405c690f",[t,n.id,t,n.id]]])+" popoverContent",children:h.Ei.map(e=>(0,i.jsx)("button",{onClick:B(e.reactionType),"data-qa":"react-".concat(e.reactionType),className:a().dynamic([["1a72ce92405c690f",[t,n.id,t,n.id]]])+" button--isClear",children:(0,i.jsx)("div",{className:a().dynamic([["1a72ce92405c690f",[t,n.id,t,n.id]]])+" imgContainer",children:(0,i.jsx)("img",{src:e.src,alt:e.alt,className:a().dynamic([["1a72ce92405c690f",[t,n.id,t,n.id]]])})})},e.reactionType))})}),(0,i.jsx)(a(),{id:"1a72ce92405c690f",dynamic:[t,n.id,t,n.id],children:".popover{-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;margin-bottom:4px}.popoverContent.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:2px;padding:6px}.imgContainer.__jsx-style-dynamic-selector{height:44px;width:44px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;-webkit-transition:background-color var(--speed-on-hover)ease-out;-moz-transition:background-color var(--speed-on-hover)ease-out;-o-transition:background-color var(--speed-on-hover)ease-out;transition:background-color var(--speed-on-hover)ease-out;min-height:44px;min-width:44px}.imgContainer.__jsx-style-dynamic-selector:hover,.imgContainer.__jsx-style-dynamic-selector:active{background-color:var(--gray-50)}img.__jsx-style-dynamic-selector{height:30px;width:30px;margin:auto;display:block}#reactionButton-".concat(t,"-").concat(n.id,"{min-height:44px;padding-top:4px;padding-bottom:4px}#reactionButton-").concat(t,"-").concat(n.id," *.__jsx-style-dynamic-selector{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}@media(max-width:768px){.popoverContent.__jsx-style-dynamic-selector{gap:4px;padding:8px}.imgContainer.__jsx-style-dynamic-selector{height:48px;width:48px;min-height:48px;min-width:48px}img.__jsx-style-dynamic-selector{height:32px;width:32px}}")})]})}
1A.propTypes={currentButton:d().object.isRequired,isUsingOtpvToken:d().bool},P.propTypes={reactableType:d().string.isRequired,parent:d().object.isRequired,handleReactionSuccess:d().func,isUsingOtpvToken:d().bool};var M=n(29179),L=n(6418),R=n(24418),B=n(28618),O=n(76248),D=n(47526),F=n(73359),q=n(61922);function U(e){var t;let{data:n,loading:o,selectedIndex:s,setSelectedIndex:r}=e,l=null==n?void 0:null===(t=n.reactionsByParent)||void 0===t?void 0:t.reactionGroups;if(o||!l)return(0,i.jsx)("div",{className:"center",children:(0,i.jsx)(q.ZP,{})});let d=function(e,t){if(!e)return[];let n=e.find(e=>e.type===t);return n?n.reactors:[]}(l,h.Ei[s].reactionType);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(M.h,{children:h.Ei.map((e,t)=>(0,i.jsx)(L.z,{"data-qa":"reactionTab-".concat(e.reactionType),imageUrl:e.src,onClick:()=>r(t),togglable:!0,selected:t===s,fillMode:"flat",rounded:null,children:function(e,t){if(!e)return 0;let n=e.find(e=>e.type===t);return n?n.totalCount:0}(l,e.reactionType)},e.reactionType))}),(0,i.jsx)("ul",{className:"jsx-9401ac3578b733f2 plainList",children:d.map(e=>{var t,n;return(0,i.jsxs)("li",{className:"jsx-9401ac3578b733f2 reactorItem",children:[(0,i.jsx)(D.Z,{publicId:null===(t=e.photo)||void 0===t?void 0:t.publicId,legacyPath:null===(n=e.photo)||void 0===n?void 0:n.legacyPath,width:34}),(0,i.jsx)("span",{"data-qa":"reactorName",className:"jsx-9401ac3578b733f2 reactorName",children:"".concat(e.firstName," ").concat(e.lastName)})]},e.id)})}),(0,i.jsx)(a(),{id:"9401ac3578b733f2",children:"ul.jsx-9401ac3578b733f2{width:100%;border-top:1px solid var(--gray-300)}.reactorItem.jsx-9401ac3578b733f2{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:12px;padding:10px}.reactorName.jsx-9401ac3578b733f2{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}"})]})}function z(e){let{isShowing:t,setIsShowing:n,toggleModal:o,reactableId:s,reactableType:r}=e,[l,d]=(0,g.useState)(0),[c,{data:u,loading:p}]=(0,F.t)(E._w,{variables:{id:s,type:r},fetchPolicy:"cache-and-network"});return(0,g.useEffect)(()=>{t&&c()},[t,c]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(O.Z,{isShowing:t,setIsShowing:n,onClickOverlay:o,children:(0,i.jsxs)(B.Z,{isForModal:!0,className:"reactorsModalContent",children:[(0,i.jsx)(R.Z,{"data-qa":"closeModal",onClick:o}),(0,i.jsx)(U,{data:u,loading:p,selectedIndex:l,setSelectedIndex:d})]})}),(0,i.jsx)(a(),{id:"a1aa2ff8db9d9fa2",children:".reactorsModalContent{max-width:480px}"})]})}U.propTypes={data:d().object,loading:d().bool,selectedIndex:d().number,setSelectedIndex:d().func},z.propTypes={isShowing:d().bool.isRequired,setIsShowing:d().func.isRequired,toggleModal:d().func.isRequired,reactableId:d().string.isRequired,reactableType:d().string.isRequired};var Z=n(63168);function H(e){var t;let n,o,s,l,{reactableId:d,reactableType:c,reactionGroupSummary:u,isUsingOtpvToken:p=!1}=e,m=(0,Z.Z)(),{isSignedIn:x}=(0,N.SE)(),{hasCurrentUserReacted:f,reactionCount:b,reactionTypes:y}=(n=!1,o=0,s=[],Array.isArray(u)&&u.forEach(e=>{n=n||(null==e?void 0:e.contextualUserHasReacted),o+=null==e?void 0:e.totalCount,s.push(e.type)}),{hasCurrentUserReacted:n,reactionCount:o,reactionTypes:s}),w=(0,C.Ph)("open_reaction_modal"),S=(0,C.Ph)(C.Tx.PARENT),E=1===y.length&&f;if((0,g.useEffect)(()=>{"true"===w&&x&&S===d&&(m.setIsShowing(!0),(0,C.aX)())},[w,x,m,S,d]),b<1)return null;let T=h.Ei.reduce((e,t)=>(y.includes(t.reactionType)&&e.push(t),e),[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{"data-qa":"reactionCounter-".concat(d),onClick:()=>{p&&!x?(p&&(sessionStorage.removeItem(r.P_.OTPV_TOKEN_ID),sessionStorage.removeItem(r.P_.OTPV_RESOURCE_ID)),(0,C.Eu)({[C.Tx.OPEN_REACTION_MODAL]:"true",[C.Tx.PARENT]:d,otpv_token:""},!1,void 0)):m.setIsShowing(!0)},className:"jsx-1378e3855087140a reactionCounter button--isClear",children:[T.map(e=>(0,i.jsx)("div",{"data-qa":"rc-icon-".concat(e.text),className:"jsx-1378e3855087140a reactionCounter__emoji",children:(0,i.jsx)("img",{src:e.src,alt:e.alt,className:"jsx-1378e3855087140a"})},e.reactionType)),(0,i.jsxs)("span",{"data-qa":"rc-count",className:"jsx-1378e3855087140a reactionCounter__count",children:[(0,i.jsx)("span",{className:"jsx-1378e3855087140a sr-only",children:f?"Reacted to by ":"Reactions count: "}),(t=b,l="",E&&x?(l+=" You",--t>0&&(l+=" and ".concat((0,v.eQ)(t)," other").concat((0,j.Ho)(t)))):t>0&&(l+=" ".concat((0,v.eQ)(t))),l.substring(1))]})]}),x&&(0,i.jsx)(z,{reactableId:d,reactableType:c,isShowing:m.isShowing,setIsShowing:m.setIsShowing,toggleModal:m.toggleModal}),(0,i.jsx)(a(),{id:"1378e3855087140a",children:".reactionCounter.jsx-1378e3855087140a{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:var(--body-text)}.reactionCounter__emoji.jsx-1378e3855087140a{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.reactionCounter__count.jsx-1378e3855087140a{padding:0 6px;font-size:16px}img.jsx-1378e3855087140a{height:18px;width:18px}"})]})}H.propTypes={reactableId:d().string.isRequired,reactableType:d().string.isRequired,reactionGroupSummary:d().arrayOf(d().object).isRequired,isUsingOtpvToken:d().bool};var W=n(66252),$=n(82729),G=n(17283);function V(){let e=(0,$._)(["\n    query GET_COMMENTS(\n        $parentId: String!\n        $parentType: CommentParentType!\n        $limit: Int\n        $sortDirection: SortDirection!\n        $nextToken: String\n    ) {\n        commentByParent(\n            query: {\n                parentId: $parentId\n                parentType: $parentType\n                paginationInput: {\n                    limit: $limit\n                    sortDirection: $sortDirection\n                    nextToken: $nextToken\n                }\n            }\n        ) {\n            comments {\n                id\n                author {\n                    id\n                    firstName\n                    lastName\n                    photo {\n                        publicId\n                        legacyPath\n                        width\n                        height\n                    }\n                }\n                comment\n                photos {\n                    publicId\n                    legacyPath\n                    width\n                    height\n                }\n                createdAt\n                parentId\n                parentType\n                replyCount\n                privileges\n                reactionGroupSummary {\n                    id\n                    type\n                    totalCount\n                    contextualUserHasReacted\n                }\n            }\n            nextToken\n            totalCount\n        }\n    }\n"]);return V=function(){return e},e}function Y(){let e=(0,$._)(["\n    mutation CREATE_COMMENT($input: CreateCommentInput!) {\n        createComment(input: $input) {\n            comment {\n                id\n                author {\n                    id\n                    firstName\n                    lastName\n                    photo {\n                        publicId\n                        legacyPath\n                        width\n                        height\n                    }\n                }\n                comment\n                photos {\n                    publicId\n                    legacyPath\n                    width\n                    height\n                }\n                createdAt\n                parentId\n                parentType\n                replyCount\n                privileges\n                reactionGroupSummary {\n                    id\n                    type\n                    totalCount\n                    contextualUserHasReacted\n                }\n            }\n            didAutoFollowSite\n        }\n    }\n"]);return Y=function(){return e},e}function X(){let e=(0,$._)(["\n    mutation UPDATE_COMMENT($input: UpdateCommentInput!) {\n        updateComment(input: $input) {\n            id\n            author {\n                id\n                firstName\n                lastName\n                photo {\n                    publicId\n                    legacyPath\n                    width\n                    height\n                }\n            }\n            comment\n            photos {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            createdAt\n            parentId\n            parentType\n            replyCount\n            privileges\n            reactionGroupSummary {\n                id\n                type\n                totalCount\n                contextualUserHasReacted\n            }\n        }\n    }\n"]);return X=function(){return e},e}function Q(){let e=(0,$._)(["\n    mutation DELETE_COMMENT($input: DeleteCommentInput!) {\n        deleteComment(input: $input)\n    }\n"]);return Q=function(){return e},e}let K=(0,G.Ps)(V()),J=(0,G.Ps)(Y()),ee=(0,G.Ps)(X()),et=(0,G.Ps)(Q());var en=n(44316),ei=n(37887),eo=n(34889),ea=n(57747),es=n(14e3),er=n(93108),el=n(5674),ed=n(31508),ec=n(92206),eu=n(44678),ep=n(20346),em=n(38411),ex=n(95568);let ef={CREATE:"CREATE",EDIT:"EDIT"};function eh(e){var t;let{commentInstance:n,commentText:o="",id:r,existingPhotos:l=[],onSuccess:d,focus:c=!1}=e,[u,p]=(0,g.useState)(o),[m,x]=(0,g.useState)(u),[f,h]=(0,g.useState)(!1),b=(0,g.useRef)(null),y=(0,ed.XX)(),v=(0,ed.zW)(),j=(0,em.hX)(y.photoFiles),w=(0,em.Kh)(y.photoFiles);(0,g.useEffect)(()=>{l.length>0&&v({type:ed.yx.HYDRATE,photos:l})},[]),(0,g.useEffect)(()=>
1{if(c){var e;null===(e=b.current)||void 0===e||e.focus()}},[]);let E=(0,C.Ph)("siteId"),{data:k}=(0,ei.a)(_.EF,{variables:{siteId:E}}),A=n.parentType===s.L8.COMMENT,P=r?ef.EDIT:ef.CREATE,M=null==k?void 0:null===(t=k.getSite)||void 0===t?void 0:t.firstName,{isSignedIn:L}=(0,N.SE)(),R=A?""!==m||j.length>0:""!==m,B=P!==ef.EDIT||0===l.length||y.isHydrated;""===u||L||(0,C.Eu)(void 0,void 0,(0,C.$C)(E));let[O,{client:D}]=(0,S.D)(J),[F]=(0,S.D)(ee),q=(0,T.Pe)(),U=e=>{e.preventDefault(),h(e=>!e),P===ef.CREATE&&O({variables:{input:{parentId:n.parentObject.id,parentType:n.parentType,comment:m,photos:j}},onError(e){console.log("mutation createComment failed because ".concat(JSON.stringify(e))),h(!1)},onCompleted(e){var t;let{createComment:i}=e;n.updateCommentCount(1),null===(t=n.refetch)||void 0===t||t.call(n),h(!1),p(""),v({type:ed.yx.CLEAR_ALL}),q({event:T.kM.COMMENTED}),d({didAutoFollowSite:i.didAutoFollowSite}),i.didAutoFollowSite&&D.refetchQueries({include:[I.j]})},refetchQueries:[{query:_.EF,variables:{siteId:E}}]}),P===ef.EDIT&&F({variables:{input:{id:r,comment:m,photos:j}},onError(e){console.log("mutation editComment failed because ".concat(JSON.stringify(e))),h(!1)},onCompleted(){n.refetch(),h(e=>!e),d()}})},z=e=>{var t;p(e.target.getAttribute("aria-label")||""),null===(t=b.current)||void 0===t||t.focus()};(0,g.useEffect)(()=>{x(u.trim())},[u]);let Z=(0,i.jsx)("i",{className:"fa-solid fa-image","aria-hidden":"true"});return(0,i.jsxs)(ea.xu,{bg:"white",mt:"12px",pl:"27px",pt:"0px",pr:"27px",pb:"28px",borderRadius:"6px",children:[!A&&P===ef.CREATE&&(0,i.jsxs)(es.x,{mb:2,pt:"20px","data-qa":"quickCommentHeader",children:[(0,i.jsx)(es.x,{as:"span",fontWeight:"700",color:"berryBridge.500",children:"Let ".concat(M," know you were here:")})," ","Leave a comment or start with a quick option below. Even a few words can bring comfort and connection."]}),(0,i.jsx)(en.Z,{className:"addComment marginBottom--12",onSubmit:U,useDefaultStyling:!1,styles:".addComment { display: flex; }",children:(0,i.jsxs)("div",{className:"jsx-17fa8c61ce2a20da inputContainer",children:[(0,i.jsxs)("div",{className:"jsx-17fa8c61ce2a20da textareaRow",children:[(0,i.jsx)(eo.Z,{domRef:b,id:"commentField",value:u,label:A?"Reply to this Comment":void 0,onChange:e=>p(e.target.value),"data-qa":"addCommentField",className:"commentField",onSubmit:U,placeholder:A?"Write a reply":"Write a comment"}),(0,i.jsxs)(ea.xu,{display:"flex",alignItems:"flex-end",gap:2,mb:"6px",children:[L?(0,i.jsx)(ep.Z,{arePhotosUploading:y.isUploading,onChange:e=>{let t=Array.from(e.target.files);v({type:ed.yx.APPEND,data:t})},id:"commentPhotoInput",shouldFocusOnMount:!1,shouldShowInput:!0,isDisabled:w.length>=y.maxFileCount,children:Z}):(0,i.jsx)(er.z,{variant:"secondary",p:"10px 12px",fontSize:"24px","aria-label":"Add photo",onClick:()=>(0,C.Eu)(void 0,void 0,(0,C.$C)(E)),"data-qa":"commentPhotoSignInBtn",children:Z}),(0,i.jsx)(er.z,{variant:"primary",p:"9px 15px",fontSize:"22px","data-qa":"commentBtn",onClick:e=>{if(!L){(0,C.Eu)(void 0,void 0,(0,C.$C)(E));return}U(e)},isDisabled:!R||f||!B||y.isUploading,children:(0,i.jsx)("i",{"aria-hidden":"true",className:"jsx-17fa8c61ce2a20da fa-solid fa-paper-plane"})})]})]}),w.length>0?(0,i.jsx)(ea.xu,{mt:2,children:(0,i.jsx)(ec.Z,{displayInput:!0,thumbnailSize:60,disableScroll:!1})}):(0,i.jsx)(eu.Z,{})]})}),!A&&P===ef.CREATE&&(0,i.jsxs)(el.M,{columns:{base:2,md:4},spacing:2,mt:2,children:[(0,i.jsx)(er.z,{isDisabled:f,variant:"lightBlue",onClick:z,"aria-label":"Thanks For Sharing",fontSize:{base:"14px",xl:"16px"},"data-qa":"quickCommentThanksForSharing",children:"Thanks For Sharing"}),(0,i.jsx)(er.z,{isDisabled:f,variant:"lightBerry",onClick:z,"aria-label":"Thinking of You",fontSize:{base:"14px",xl:"16px"},"data-qa":"quickCommentThinkingOfYou",children:"Thinking of You"}),(0,i.jsx)(er.z,{isDisabled:f,variant:"lightYellow",onClick:z,"aria-label":"Sending Love",fontSize:{base:"14px",xl:"16px"},"data-qa":"quickCommentSendingLove",children:"Sending Love"}),(0,i.jsx)(er.z,{isDisabled:f,variant:"lightCoral",onClick:z,"aria-label":"Praying For You",fontSize:{base:"14px",xl:"16px"},"data-qa":"quickCommentPrayingForYou",children:"Praying For You"})]}),(0,i.jsx)(a(),{id:"17fa8c61ce2a20da",children:".addComment.jsx-17fa8c61ce2a20da>input{margin-bottom:0}.inputContainer.jsx-17fa8c61ce2a20da{width:100%}.textareaRow.jsx-17fa8c61ce2a20da{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:12px;-webkit-box-align:end;-webkit-align-items:flex-end;-moz-box-align:end;-ms-flex-align:end;align-items:flex-end}.inputContainer>label{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;margin-top:0;font-weight:500}.light{color:var(--gray-500)}.commentField::placeholder{font-style:normal;color:#737373}"})]})}function eg(e){return(0,i.jsx)(ed.TV,{value:{uploadType:ex.mu.COMMENT,maxFileC
1ount:3},children:(0,i.jsx)(eh,{...e})})}eh.propTypes={commentInstance:d().object.isRequired,commentText:d().string,id:d().string,existingPhotos:d().array,onSuccess:d().func,focus:d().bool},eg.propTypes={commentInstance:d().object.isRequired,commentText:d().string,id:d().string,existingPhotos:d().array,onSuccess:d().func,focus:d().bool};var eb=n(90331);function ey(e){var t,n,o;let{commentInstance:s,className:l}=e;l||(l=null);let d=null==s?void 0:null===(n=s.parentObject)||void 0===n?void 0:null===(t=n.commentCount)||void 0===t?void 0:t.totalDescendentCount,c=(0,C.Ph)("siteId"),{data:u}=(0,eb.Z)(c),p=null==u?void 0:null===(o=u.getSite)||void 0===o?void 0:o.isAuthor;if(0===d&&p)return null;let m="".concat(l||""," ").concat(0!==d||p?"":"first-comment-prompt").trim();return(0,i.jsxs)("span",{className:a().dynamic([["6ee111b3d7c85261",[r.Bs.SMALL]]])+" "+(m||""),children:[0!==d||p?(0,i.jsxs)(i.Fragment,{children:[d," comment",(0,j.Ho)(d)]}):"Be the first to comment",(0,i.jsx)(a(),{id:"6ee111b3d7c85261",dynamic:[r.Bs.SMALL],children:"span.__jsx-style-dynamic-selector{font-size:16px}.first-comment-prompt.__jsx-style-dynamic-selector{color:var(--brave-blue-600);font-weight:400;text-decoration:underline}@media(max-width:".concat(r.Bs.SMALL,"){.first-comment-prompt.__jsx-style-dynamic-selector{float:right;display:block;margin-left:auto;margin:0}}")})]})}function ev(e){var t;let{commentInstance:n,expandedCommentThreadState:o,className:a,onClick:s,...r}=e;a||(a=null);let[l,d]=o,c=l?(0,i.jsx)("i",{className:"fa-chevron-up fa-light"}):(0,i.jsx)("i",{className:"fa-chevron-down fa-light"}),u=null==n?void 0:null===(t=n.parentObject)||void 0===t?void 0:t.commentCount.totalDescendentCount;return(0,i.jsxs)(b.Z,{onClick:()=>{if(s){s();return}d(e=>!e)},className:a,...r,children:[(0,i.jsx)(ey,{commentInstance:n}),u>0&&c]})}ey.propTypes={commentInstance:d().object.isRequired,className:d().string},ev.propTypes={commentInstance:d().object.isRequired,expandedCommentThreadState:d().array.isRequired,"data-qa":d().string.isRequired,className:d().string,onClick:d().func};let ej=parseInt({NEXT_PUBLIC_FF_IRB_SURVEY:"false",NEXT_PUBLIC_FF_INSTACART:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_GIFT_CARDS_PHASE_2:"true",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_KIMBIA_DONATION_FORM_LOAD_THRESHOLD:"2000",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_BEST_BUY:"true",NEXT_PUBLIC_FF_MATCHING_SURVEY:"false",NEXT_PUBLIC_FF_NOTIFICATION_TOGGLES:"false",NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"false"}.NEXT_PUBLIC_COMMENT_INITIAL_LIMIT)||10,ew=parseInt("10")||10,eS=parseInt("3")||3,eE=parseInt("10")||5;function eT(e){var t,n,o,r;let l,{commentInstance:d,expandedCommentThreadState:c,level:u=1,onSinglePostPage:p,onSuccess:m,isUsingOtpvToken:x}=e,[f]=c,h=d.View;l=1===u?!(null===(r=d.primogenitor.commentCount)||void 0===r?void 0:r.totalDescendentCount):!d.parentObject.replyCount,(!f||u>d.levelsAllowed)&&(l=!0);let{data:g,loading:y,refetch:v,fetchMore:j}=(0,ei.a)(K,{variables:{parentId:d.parentObject.id,parentType:d.parentType,sortDirection:s.Sr.DESCENDING,limit:"COMMENT"===d.parentType?eS:ej},skip:l});if(y)return(0,i.jsx)("p",{className:"centered",children:(0,i.jsx)(q.ZP,{})});if(!g)return null;let w=(null==g?void 0:null===(t=g.commentByParent)||void 0===t?void 0:t.comments)||[],S=!!(null==g?void 0:null===(n=g.commentByParent)||void 0===n?void 0:n.nextToken),E=null==g?void 0:null===(o=g.commentByParent)||void 0===o?void 0:o.nextToken;return d.refetch=v,(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"jsx-a92a6789e88cdd98 marginTop--24 thread",children:w.map(e=>(0,i.jsx)(h,{commentObject:e,level:u,onSinglePostPage:p,onSuccess:m,isUsingOtpvToken:x},e.id))}),S&&(0,i.jsx)(b.Z,{"data-qa":"showMoreBtn-".concat(d.parentType,"-").concat(d.parentId),className:"viewMore",icon:(0,i.jsx)("i",{className:"jsx-a92a6789e88cdd98 fa fa-angle-double-down"}),iconOnRight:"true",onClick:()=>{S&&!y&&j({variables:{parentId:d.parentObject.id,parentType:d.parentType,sortDirection:s.Sr.DESCENDING,limit:"COMMENT"===d.parentType?eE:ew,nextToken:E},updateQuery:(e,t)=>{let{fetchMoreResult:n}=t;return n&&n.commentByParent?{commentByParent:{...e.commentByParent,comments:[...e.commentByParent.comments,...n.commentByParent.comments],nextToken:n.
1commentByParent.nextToken||null}}:e}})},children:"COMMENT"===d.parentType?"View more replies":"View more comments"}),(0,i.jsx)(a(),{id:"a92a6789e88cdd98",children:".thread.jsx-a92a6789e88cdd98{border-left:solid 1px var(--gray-300)}"})]})}eT.propTypes={commentInstance:d().object.isRequired,expandedCommentThreadState:d().array.isRequired,onSinglePostPage:d().bool.isRequired,level:d().number,onSuccess:d().func,isUsingOtpvToken:d().bool};var eI=n(22878),e_=n(86921),eC=n(39738),ek=n(33069),eN=n(8329);function eA(e){var t,n,o,l;let{commentObject:d,level:p,commentInstance:f,onSinglePostPage:h,onSuccess:y,isUsingOtpvToken:v}=e,w=(0,Z.Z)(),E=(0,c.Yx)(),I=(0,x.Z)(),[_,k]=(0,g.useState)(!1),[A,M]=(0,g.useState)(!1),{cache:L}=(0,W.x)(),{isSignedIn:F,photo:q,notificationSetting:U}=(0,N.SE)(),z=(0,C.Ph)(C.Tx.SITE_ID),$=(0,Z.Z)(),{dailyEmail:G}=U,V=(0,N.O_)(),Y=(0,T.Pe)(),X=(0,g.useMemo)(()=>({__html:(0,j.Bc)(d.comment).replace(/\n/g,"<br />")}),[d.comment]),[Q]=(0,S.D)(et),K=f.AddEdit,{Comment:J,expandedCommentThreadState:ee}=eM(L,d,s.L8.COMMENT,f.primogenitor,!0),[en,ei]=ee,eo=[];d.privileges.includes(s.xP.EDIT)&&eo.push({text:"Edit",icon:"fa-light fa-pen",callback:()=>k(!0)}),d.privileges.includes(s.xP.DELETE)&&eo.push({text:"Delete",icon:"fa-light fa-trash",callback:w.toggleModal});let es=e=>{let{didAutoFollowSite:t}=e;t&&(V({type:N.xf.SET_VALUE,notificationSetting:{jen:!0,dailyEmail:G},photo:q}),$.toggleModal(),Y({event:T.kM.FOLLOW_SITE,autoFollow:!0}))};return(0,i.jsxs)("div",{"data-id":d.id,"data-qa":1===p?"comment":"reply",className:a().dynamic([["3a13d13eb831a53c",[40]]])+" viewComment marginTop--12",children:[(0,i.jsx)(D.Z,{publicId:null===(t=d.author.photo)||void 0===t?void 0:t.publicId,legacyPath:null===(n=d.author.photo)||void 0===n?void 0:n.legacyPath,width:40}),(0,i.jsxs)("div",{className:a().dynamic([["3a13d13eb831a53c",[40]]])+" textColumn",children:[(0,i.jsxs)("span",{"data-qa":"commenter-".concat(d.id),className:a().dynamic([["3a13d13eb831a53c",[40]]])+" commentHeader",children:[(0,i.jsxs)("span",{className:a().dynamic([["3a13d13eb831a53c",[40]]]),children:[(0,i.jsxs)("strong",{className:a().dynamic([["3a13d13eb831a53c",[40]]]),children:[d.author.firstName," ",d.author.lastName]})," ","—"," ",(0,e_.p6)(e_.yi.SHORT,new Date(d.createdAt))]}),!!eo.length&&F&&(0,i.jsx)(eC.Z,{onItemClick:e=>(e.item.callback(),!1),items:eo,id:"commentActions-".concat(d.id)})]}),_||(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ek.Z,{contentData:{type:"comment",html:X.__html,id:d.id},enableReadMore:!h}),(null===(o=d.photos)||void 0===o?void 0:o.length)>0&&(()=>{let e=d.photos.map(e=>()=>(0,i.jsx)(u.Z,{id:e.publicId,legacyPath:e.legacyPath,width:e.width,height:e.height,maxHeight:I}));return(0,i.jsx)(ea.xu,{display:"flex",flexWrap:"wrap",gap:2,mt:2,children:d.photos.map((t,n)=>(0,i.jsx)(m,{id:t.publicId,legacyPath:t.legacyPath,width:120,onClick:()=>E({type:c.w7.LOAD_MEDIA_VIEWER,mediaList:e,mediaIndex:n})},t.publicId))})})()]}),_&&(0,i.jsx)(K,{commentText:d.comment,id:d.id,existingPhotos:null!==(l=d.photos)&&void 0!==l?l:[],onSuccess:()=>k(!1),className:a().dynamic([["3a13d13eb831a53c",[40]]])}),(0,i.jsxs)("div",{className:a().dynamic([["3a13d13eb831a53c",[40]]])+" actionButtons testButton marginBottom--12 marginTop--12 noPrint",children:[(0,i.jsx)(P,{reactableType:s.xU.COMMENT,parent:d,handleReactionSuccess:e=>{let{didAutoFollowSite:t}=e;es({didAutoFollowSite:t})},isUsingOtpvToken:v}),p!==J.levelsAllowed&&(0,i.jsx)(b.Z,{"data-qa":"replyBtn",icon:(0,i.jsx)("i",{className:a().dynamic([["3a13d13eb831a53c",[40]]])+" fa-comment fa-light"}),onClick:()=>{if(!F){(0,C.Eu)(void 0,void 0,(0,C.$C)(z));return}en||ei(e=>!e),M(e=>!e)},children:"Reply"}),(0,i.jsx)("div",{className:a().dynamic([["3a13d13eb831a53c",[40]]])+" spacer"}),(0,i.jsx)(H,{reactableId:d.id,reactableType:s.xU.COMMENT,reactionGroupSummary:d.reactionGroupSummary,isUsingOtpvToken:v})]}),A&&(0,i.jsx)("div",{className:a().dynamic([["3a13d13eb831a53c",[40]]])+" marginBottom--24",children:(0,i.jsx)(J.AddEdit,{onSuccess:e=>{let{didAutoFollowSite:t}=e;y({didAutoFollowSite:t})}})}),(0,i.jsx)(J.Thread,{level:++p,expandedCommentThreadState:ee,onSinglePostPage:h,isUsingOtpvToken:v})]}),(0,i.jsx)(eN.Z,{modal:$,action:r.Uc.REACTION}),(0,i.jsx)(O.Z,{isShowing:w.isShowing,setIsShowing:w.setIsShowing,onClickOverlay:w.toggleModal,children:(0,i.jsxs)(B.Z,{isForModal:!0,children:[(0,i.jsx)(R.Z,{"data-qa":"closeModal",onClick:w.toggleModal}),(0,i.jsx)("p",{className:a().dynamic([["3a13d13eb831a53c",[40]]])+" h3 center",children:"Are you sure you want to delete this comment?"}),(0,i.jsx)("p",{className:a().dynamic([["3a13d13eb831a53c",[40]]])+" center",children:"Your comment and any related replies will be removed permanently. This action cannot be undone."}),(0,i.jsxs)("p",{className:a().dynamic([["3a13d13eb831a53c",[40]]])+" buttonGroup center",children:[(0,i.jsx)(eI.Z,{"data-qa":"deleteComment",onClick:()=>{Q({variables:{input:{id:d.id}},onCompleted(){w.toggleModal(),f.updateCommentCount(-1-d.replyCount),f.refetch()}})},children:"Delete"}),(0,i.jsx)(eI.Z,{variant:eI.c.SECONDARY,"data-qa":"cancelDelete",onClick:w.toggleModal,children:"Cancel"})]})]})}),(0,i.jsx)(a(),{id:"3a13d13eb831a53c",dynamic:[40],children:".viewComment.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:3px;font-size:14px;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;page-break-inside:avoid;padding-left:15px}.viewComment.__jsx-style-dynamic-selector>:first-child{-webkit-box-flex:0;-webkit-flex:0 0 ".concat(40,"px;-moz-box-flex:0;-ms-flex:0 0 ").concat(40,"px;flex:0 0 ").concat(40,"px}.textColumn.__jsx-style-dynamic-selector{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;padding-left:7px}.commentHeader.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;
1-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:32px}.textColumn.__jsx-style-dynamic-selector a{word-break:break-all}.commentBody.__jsx-style-dynamic-selector{font-size:16px}.actionButtons.__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-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:36px}.spacer.__jsx-style-dynamic-selector{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}")})]})}eA.propTypes={commentObject:d().object.isRequired,level:d().number.isRequired,commentInstance:d().object.isRequired,onSinglePostPage:d().bool.isRequired,onSuccess:d().func,isUsingOtpvToken:d().bool};class eP{updateCommentCount(e){this.cache.modify({id:this.cache.identify(this.primogenitor),fields:{commentCount:t=>({...t,totalDescendentCount:t.totalDescendentCount+e})}}),this.parentType===s.L8.COMMENT&&this.cache.modify({id:this.cache.identify(this.parentObject),fields:{replyCount:t=>t+e}})}buildComponents(){this.AddEdit=this.withCommentData(eg),this.Counter=this.withCommentData(ey),this.CounterToggle=this.withCommentData(ev),this.Thread=this.withCommentData(eT),this.View=this.withCommentData(eA)}
1withCommentData(e){return t=>(0,i.jsx)(e,{...t,commentInstance:this})}constructor(e,t,n,i){this.cache=e,this.parentObject=t,this.parentType=n,this.primogenitor=null!=i?i:t,this.levelsAllowed=eP.COMMENT_LEVELS_ALLOWED}}function eM(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=(0,g.useState)(o);return{Comment:(0,g.useMemo)(()=>{let o=new eP(e,t,n,i);return o.buildComponents(),o},[e,t,n,i]),expandedCommentThreadState:a}}eP.COMMENT_LEVELS_ALLOWED=2;var eL=n(54503),eR=n(25350),eB=n(35691),eO=n(95027);function eD(e){let{post:t,feedId:n,showUnpin:o=!1,showPin:a=!1,disableEdit:s=!1}=e,r=(0,eB.fm)(),{launchEditorFor:l}=(0,eO.K)(),d=(null==t?void 0:t.__typename)==="Request"?"Request":"Post",c=[];return s||c.push({mode:eB.oS.EDIT,text:"Edit"}),o&&c.push({mode:eB.oS.UNPIN,text:"Unpin ".concat(d)}),a&&c.push({mode:eB.oS.PIN,text:"Pin ".concat(d)}),c.push({mode:eB.oS.DELETE,text:"Delete"}),(0,i.jsx)(eC.Z,{items:c,onItemClick:e=>{let{mode:i}=e.item;return"requestType"in t&&i===eB.oS.EDIT?l({type:"request",id:t.id,content:{title:t.title||"",body:t.body||"",requestType:t.requestType,requestSlots:t.requestSlots||[],photos:t.photos||[]}},t.siteId):r({type:eB.Ir.SET_VALUE,mode:i,post:t,feedId:n}),!1},id:"authorActions-".concat(null==t?void 0:t.id),"data-qa":"author-ellipsis-button"})}eD.propTypes={post:d().object.isRequired,feedId:d().string,showUnpin:d().bool,showPin:d().bool,disableEdit:d().bool};var eF=n(56310),eq=n(53235);let eU={[s.xU.POST]:{iconName:"fa-quote-left",badgeColor:"--coral"},[s.xU.WAYS_TO_HELP_POST]:{iconName:"fa-quote-left",badgeColor:"--coral"},[s.xU.REQUEST]:{iconName:"fa-calendar-check",badgeColor:"--navy"}};function ez(e){var t,n,o,s;let{post:r,postType:l,showPin:d,showUnpin:c,showPinVisitor:u,isAuthor:p,feedId:m="",isUsingOtpvToken:x=!1}=e,f=(0,eB.fm)(),{isSignedIn:h}=(0,N.SE)(),g=eU[l];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("header",{className:"jsx-145e72c7529e8da0 marginTop--0 marginBottom--12",children:[(0,i.jsx)(eF.Z,{width:56,photoId:null===(n=r.author)||void 0===n?void 0:null===(t=n.photo)||void 0===t?void 0:t.publicId,legacyPath:null===(s=r.author)||void 0===s?void 0:null===(o=s.photo)||void 0===o?void 0:o.legacyPath,buttonLocation:eF.e.topLeft,iconCenteredOnCircumference:!0,children:(0,i.jsx)(eq.Z,{iconID:g.iconName,badgeColor:g.badgeColor,includeBorder:!0})}),(0,i.jsxs)("div",{className:"jsx-145e72c7529e8da0 authorDateWrapper",children:[(0,i.jsxs)("div",{"data-qa":"postAuthor-".concat(r.id),className:"jsx-145e72c7529e8da0 postAuthor",children:[r.author.firstName," ",r.author.lastName]}),(0,i.jsx)("div",{"data-qa":"postDate-".concat(r.id),className:"jsx-145e72c7529e8da0 postDate",children:(0,e_.p6)(e_.yi.MEDIUM,new Date(r.createdAt))})]}),c&&(0,i.jsxs)(b.Z,{"data-qa":"unpinPost-".concat(r.id),style:{display:"flex",alignItems:"center",textDecoration:"none",color:"black"},onClick:()=>{f({type:eB.Ir.SET_VALUE,mode:eB.oS.UNPIN,post:r,feedId:m})},children:[(0,i.jsx)("span",{className:"jsx-145e72c7529e8da0",children:"Pinned"}),(0,i.jsx)("img",{src:"/img/pin.svg",width:16,height:16,alt:"pin","aria-hidden":!0,className:"jsx-145e72c7529e8da0"})]}),u&&(0,i.jsx)("img",{src:"/img/pin.svg",width:16,height:16,alt:"pin","aria-hidden":!0,className:"jsx-145e72c7529e8da0"}),p&&(!x||h)&&(0,i.jsx)(eD,{post:r,feedId:m,showUnpin:c,showPin:d,disableEdit:"WAYS_TO_HELP_POST"===l})]}),(0,i.jsx)(a(),{id:"145e72c7529e8da0",children:"header.jsx-145e72c7529e8da0{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:10px}header.jsx-145e72c7529e8da0>*.jsx-145e72c7529e8da0{-webkit-box-flex:0;-webkit-flex:0 0 auto;-moz-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}header.jsx-145e72c7529e8da0>.authorDateWrapper.jsx-145e72c7529e8da0{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.postAuthor.jsx-145e72c7529e8da0{font-weight:600;font-size:18px;line-height:24px}.postDate.jsx-145e72c7529e8da0{color:var(--gray-500)}"})]})}ez.propTypes={post:d().object.isRequired,postType:d().string.isRequired,showUnpin:d().bool.isRequired,showPinVisitor:d().bool.isRequired,showPin:d().bool.isRequired,isAuthor:d().bool.isRequired,feedId:d().string.isRequired,isUsingOtpvToken:d().string.isRequired};var eZ=n(93717);function eH(e){let{postId:t,postTitle:n,postTitleIcon:o,titleHref:s,onSinglePostPage:r}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("a",{href:!r&&s,className:"jsx-3f96b837d12a1465 "+(!r&&"singlePostPage"||""),children:(0,i.jsx)("div",{className:"jsx-3f96b837d12a1465 postTitleContainer",children:(0,i.jsx)("h1",{"data-qa":"postTitle-".concat(t),className:"jsx-3f96b837d12a1465 "+"h6 postTitle ".concat(!r&&"titleHover"," marginTop--0 marginBottom--0"),children:(0,i.jsxs)(eZ.k,{flexDirection:"row",alignItems:"flex-start",ga
1p:1,children:[o&&(0,i.jsx)(eq.Z,{...o,size:24,includeBorder:!0}),n]})})})}),(0,i.jsx)(a(),{id:"3f96b837d12a1465",children:".postTitleContainer.jsx-3f96b837d12a1465{display:inline-block}.postTitle.jsx-3f96b837d12a1465{font-family:Figtree,sans-serif;font-size:18px;font-weight:var(--font-weight-medium);text-decoration:underline}.singlePostPage.jsx-3f96b837d12a1465{cursor:default}.titleHover.jsx-3f96b837d12a1465:hover{color:var(--berry-bridge-400);cursor:pointer}"})]})}function eW(e){let{postId:t,setIsCommentThreadExpanded:n,setShowAddComment:o,setIsInitialLoad:a}=e,{isSignedIn:s}=(0,N.SE)(),r=(0,C.Ph)(C.Tx.SITE_ID);return(0,i.jsx)(b.Z,{"data-qa":"commentBtn-".concat(t),className:"actionButton",icon:(0,i.jsx)("i",{className:"fa-comment fa-light"}),onClick:()=>{if(!s){(0,C.Eu)(void 0,void 0,(0,C.$C)(r));return}n(!0),o(e=>!e),a(!1)},children:"Comment"})}function e$(e){let{postId:t,postTitle:n,postType:o,sharePost:a,authorFirstName:s,singlePostUrl:r,authorId:l}=e;return(0,i.jsx)(b.Z,{"data-qa":"shareBtn-".concat(t),className:"actionButton",icon:(0,i.jsx)("i",{className:"fa-share fa-light"}),onClick:()=>{a({authorFirstName:s,postTitle:n,singlePostUrl:r,authorId:l,postType:o})},children:"Share"})}eH.propTypes={postId:d().string.isRequired,postTitle:d().string.isRequired,postTitleIcon:d().objectOf(d().string),titleHref:d().string.isRequired,onSinglePostPage:d().bool},eW.propTypes={postId:d().string.isRequired,setIsCommentThreadExpanded:d().func.isRequired,setShowAddComment:d().func.isRequired,setIsInitialLoad:d().func.isRequired}
1,e$.propTypes={postId:d().string.isRequired,postTitle:d().string.isRequired,postType:d().oneOf(["POST","WAYS_TO_HELP_POST","REQUEST"]).isRequired,authorFirstName:d().string.isRequired,singlePostUrl:d().string.isRequired,sharePost:d().func.isRequired,authorId:d().string.isRequired};var eG=n(32883),eV=n(5460);let eY={REACTIONS:"REACTIONS"};function eX(e){var t;let{post:n,postTitle:o,postTitleIcon:l=null,singlePagePath:d,postType:c,isAuthor:u,canShare:p,loadExpandedComments:m=!1,sharePost:x,isPinned:h=!1,feedId:b="",enablePinning:y=!0,showCommentField:v=!1,onSinglePostPage:j=!1,renderContent:w,reactionType:S,disableFeatures:E=[],dataQa:I,isUsingOtpvToken:_=!1,fundUrlForGfmLogoAndLink:k="",onCommentSuccess:A}=e,[M,L]=(0,g.useState)(v),[R,B]=(0,g.useState)(!0),[O,D]=(0,g.useState)({open:!1,action:null}),F=e=>D({open:!0,action:e}),{cache:q}=(0,W.x)();(0,eR.Z)(S);let U=(0,T.Pe)(),{Comment:z,expandedCommentThreadState:Z}=eM(q,n,s.L8[c],void 0,m),[,$]=Z,{photo:G,notificationSetting:V}=(0,N.SE)(),{dailyEmail:Y}=V,X=(0,N.O_)(),Q=(0,C.Hn)()+d,K=(e,t)=>{let{didAutoFollowSite:n}=e;n&&(X({type:N.xf.SET_VALUE,notificationSetting:{jen:!0,dailyEmail:Y},photo:G}),F(t),U({event:T.kM.FOLLOW_SITE,autoFollow:!0}))};(0,g.useEffect)(()=>{let e=()=>{L(!0),B(!1),setTimeout(()=>{let e=document.querySelector('[data-qa="addCommentField"]');e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),e.focus())},100)};return window.addEventListener("focusCommentField",e),()=>window.removeEventListener("focusCommentField",e)},[]);let J=n.author.firstName,ee=n.author.id,et=h&&u&&y,en=h&&!u,ei=!h&&y;return(0,i.jsxs)("article",{id:n.id,"data-qa":"journalPost ".concat(I||""),"data-testid":"basePostSummary",className:a().dynamic([["f9f27d39bfe0cc66",[r.Bs.SMALL,r.Bs.SMALL,r.Bs.SMALL]]]),children:[(0,i.jsx)(ez,{post:n,postType:c,showUnpin:et,showPinVisitor:en,showPin:ei,isAuthor:u,feedId:b,isUsingOtpvToken:_}),(0,i.jsx)(f,{photos:n.photos,thumbnailWidth:145}),(0,i.jsx)(eH,{postId:n.id,postTitle:o,postTitleIcon:l,titleHref:d,onSinglePostPage:j}),w(),k&&(0,i.jsxs)(eZ.k,{align:"center",gap:"12px",my:"16px",mb:"8px",children:[(0,i.jsx)(eG.r,{href:k,isExternal:!0,"data-testid":"wth-logo-share-link",children:(0,i.jsx)(eV.E,{src:"/logos/goFundMeLogo2.svg",alt:"GoFundMe",width:"112px"})}),(0,i.jsxs)(es.x,{alignSelf:"center",mb:"9px",children:["Visit"," ",(0,i.jsx)(eG.r,{href:k,isExternal:!0,"data-testid":"wth-share-link",color:"#495dba",textDecor:"underline",fontSize:"1rem",ml:0,transition:"color 0.2s",children:"GoFundMe"})]})]}),"POST"===c&&j&&(0,i.jsx)(eL.Z,{tab:"singlePost",className:"tributeWidget"}),(0,i.jsxs)("div",{className:a().dynamic([["f9f27d39bfe0cc66",[r.Bs.SMALL,r.Bs.SMALL,r.Bs.SMALL]]])+" actionButtons noPrint",children:[!E.includes(eY.REACTIONS)&&(0,i.jsx)(P,{reactableType:S,parent:n,handleReactionSuccess:e=>{let{didAutoFollowSite:t}=e;K({didAutoFollowSite:t},r.Uc.REACTION)},isUsingOtpvToken:_}),(0,i.jsx)(eW,{postId:n.id,setIsCommentThreadExpanded:$,setShowAddComment:L,setIsInitialLoad:B}),(p||u)&&(0,i.jsx)(e$,{postId:n.id,postTitle:o,sharePost:x,authorFirstName:J,singlePostUrl:Q,authorId:ee,postType:c}),(0,i.jsx)("div",{className:a().dynamic([["f9f27d39bfe0cc66",[r.Bs.SMALL,r.Bs.SMALL,r.Bs.SMALL]]])+" spacer"}),(0,i.jsxs)("div",{"data-qa":"commentCountButtons",className:a().dynamic([["f9f27d39bfe0cc66",[r.Bs.SMALL,r.Bs.SMALL,r.Bs.SMALL]]])+" countButtons",children:[(0,i.jsx)(H,{reactableId:n.id,reactableType:S,reactionGroupSummary:n.reactionGroupSummary,isUsingOtpvToken:_}),(0,i.jsx)(z.CounterToggle,{expandedCommentThreadState:Z,className:"commentCounter ".concat("WAYS_TO_HELP_POST"===c?"wthPost":""),"data-qa":"toggleComments-".concat(n.id),onClick:u||(null==n?void 0:null===(t=n.commentCount)||void 0===t?void 0:t.totalDescendentCount)?null:()=>{L(!0),B(!1)}})]})]}),M&&(0,i.jsx)(z.AddEdit,{focus:!R,onSuccess:e=>{let{didAutoFollowSite:t}=e;t&&K({didAutoFollowSite:t},r.Uc.COMMENT),$(!0),L(!1),B(!1),A&&A({isNewComment:!0,didAutoFollowSite:t})}}),(0,i.jsx)(z.Thread,{expandedCommentThreadState:Z,onSinglePostPage:j,onSuccess:e=>{let{didAutoFollowSite:t}=e;K({didAutoFollowSite:t},r.Uc.COMMENT),A&&A({isNewComment:!0,didAutoFollowSite:t})},isUsingOtpvToken:_}),"WAYS_TO_HELP_POST"===c&&j&&(0,i.jsx)(eL.Z,{tab:"singlePost"}),(0,i.jsx)(eN.Z,{modal:{isShowing:O.open,setIsShowing:e=>D(t=>({...t,open:e})),toggleModal:()=>D(e=>({...e,open:!e.open}))},action:O.action}),(0,i.jsx)(a(),{id:"f9f27d39bfe0cc66",dynamic:[r.Bs.SMALL,r.Bs.SMALL,r.Bs.SMALL],children:".actionButtons.__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-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-top:1em}.actionButtons.__jsx-style-dynamic-selector>*:not(:last-child){margin-right:24px}.postBody>p{margin:15px 0}.spacer.__jsx-style-dynamic-selector{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.countButtons.__jsx-style-dynamic-selector{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}@media(max-width:".concat(r.Bs.SMALL,"){.countButtons.__jsx-style-dynamic-selector{width:100%;-webkit-box-pack:justify;
1-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}}.countButtons.__jsx-style-dynamic-selector .commentCounter{padding-left:6px}@media(max-width:").concat(r.Bs.SMALL,"){.countButtons.__jsx-style-dynamic-selector .commentCounter{margin-left:auto}}@media(min-width:").concat(r.Bs.SMALL,"){.actionButtons.__jsx-style-dynamic-selector>*:not(:last-child){margin-right:24px}}.tributeCard{margin-bottom:24px;margin-top:0px}")})]})}eX.propTypes={post:d().object.isRequired,postType:d().oneOf(["POST","WAYS_TO_HELP_POST","REQUEST"]).isRequired,postTitle:d().oneOfType([d().string,d().node]).isRequired,postTitleIcon:d().objectOf(d().string),singlePostUrl:d().string.isRequired,singlePagePath:d().string.isRequired,isAuthor:d().bool.isRequired,canShare:d().bool.isRequired,loadExpandedComments:d().bool,sharePost:d().func.isRequired,isPinned:d().bool,feedId:d().string,enablePinning:d().bool,showCommentField:d().bool,onSinglePostPage:d().bool,renderContent:d().func.isRequired,dataQa:d().string,reactionType:d().string.isRequired,disableFeatures:d().array,isUsingOtpvToken:d().bool,fundUrlForGfmLogoAndLink:d().string,onCommentSuccess:d().func}},8329:function(e,t,n){var i=n(85893),o=n(40645),a=n.n(o),s=n(76248),r=n(28618),l=n(24418),d=n(45697),c=n.n(d),u=n(87036),p=n(43287),m=n(67294),x=n(50319),f=n(26142),h=n(57167),g=n(52765),b=n(57747),y=n(22757),v=n(14e3),j=n(93717),w=n(93108);let S=e=>{let{modal:t,action:n}=e,{notificationSetting:{dailyEmail:o,jen:d},photo:c}=(0,p.SE)(),S=(0,p.O_)(),[E,T]=(0,m.useState)({}),[I,_]=(0,m.useState)(!1),[C,{loading:k}]=(0,x.D)(f.AX,{onCompleted:()=>{S({type:p.xf.SET_VALUE,photo:E}),t.toggleModal()}}),N=!(0,g.t)(c),A="You'll be notified of new posts and page activity.";d&&!o&&(A="You'll be notified of new posts.");let P=()=>{t.isShowing&&t.toggleModal()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{isShowing:t.isShowing,setIsShowing:t.setIsShowing,onClickOverlay:I?void 0:t.toggleModal,className:"thank-you-modal",children:(0,i.jsx)(r.Z,{isForModal:!0,className:"autoFollowModalCard",role:"dialog","aria-modal":"true",children:(0,i.jsxs)(b.xu,{maxW:"431px",mx:"auto",w:"100%",children:[(0,i.jsx)(y.X,{color:"var(--color-primary)",textAlign:"center",fontFamily:"Figtree, sans-serif",fontWeight:"500","data-qa":"autoFollowModalHeader",fontSize:"28px",lineHeight:"36px",letterSpacing:"-0.56px",children:n===u.Uc.FOLLOW?"You're Now Following":"Thank you for ".concat(n)}),(0,i.jsx)(l.Z,{"data-qa":"closeModal",onClick:P,"data-testid":"closeModal",disabled:I}),(0,i.jsx)(v.x,{fontFamily:"Figtree, sans-serif",fontSize:"16px",fontStyle:"normal",lineHeight:"20px",textAlign:"center",color:"var(--body-text)",fontWeight:"400","data-qa":"autoFollowModalText",children:A}),N?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(j.k,{alignItems:"center",justifyContent:"center",gap:3,my:6,mb:4,children:[(0,i.jsx)(b.xu,{w:"75px",h:"1px",bg:"gray.300"}),(0,i.jsx)(v.x,{fontFamily:"Figtree, sans-serif",fontSize:"18px",lineHeight:"24px",letterSpacing:"1px",textTransform:"uppercase",color:"gray.500",whiteSpace:"nowrap",children:"While you're here"}),(0,i.jsx)(b.xu,{w:"75px",h:"1px",bg:"gray.300"})]}),(0,i.jsx)(y.X,{as:"h5",color:"var(--color-primary)",textAlign:"center",fontFamily:"Figtree, sans-serif",fontWeight:"500",fontSize:"28px",lineHeight:"28px",letterSpacing:"-0.4px",mb:2,mt:0,children:"Add a Profile Photo"}),(0,i.jsx)(v.x,{fontFamily:"Figtree, sans-serif",fontSize:"16px",fontStyle:"normal",lineHeight:"20px",textAlign:"center",color:"var(--body-text)",fontWeight:"400","data-qa":"photoEncouragementText",children:"Having a profile photo helps make your support more personal and meaningful."}),(0,i.jsx)(b.xu,{mt:6,children:(0,i.jsx)(h.Z,{selectedPhoto:E,setSelectedPhoto:T,onUploadingChange:_})}),(0,i.jsx)(w.z,{"data-qa":"addPhotoButton",onClick:()=>{(null==E?void 0:E.publicId)&&C({variables:{input:{photo:{publicId:E.publicId,width:E.width,height:E.height},photoContext:"FOLLOW_MODAL"}}})},isDisabled:!(0,g.t)(E)||k,bg:"berryBridge.500",color:"white",w:"100%",mt:6,_hover:{bg:"berryBridge.400"},_disabled:{bg:"gray.200",cursor:"not-allowed",_hover:{bg:"gray.200"}},children:"Save"})]}):(0,i.jsx)(w.z,{"data-qa":"followConfirmButton","data-testid":"modalCloseButton",onClick:P,bg:"berryBridge.500",color:"white",w:"100%",mt:6,_hover:{bg:"berryBridge.400"},children:"Close"})]})})}
1),(0,i.jsx)(a(),{id:"ed22633b5c29d115",children:".autoFollowModalCard{width:initial!important;padding-top:72px!important;padding-bottom:56px!important;padding-left:72px!important;padding-right:72px!important;height:auto;text-align:center;overflow:hidden}@media(max-width:420px){.autoFollowModalCard{padding-top:48px!important;padding-bottom:24px!important;padding-left:36px!important;padding-right:36px!important}}"})]})};t.Z=S,S.propTypes={modal:c().object.isRequired,action:c().string.isRequired}},33069:function(e,t,n){n.d(t,{Z:function(){return h}});var i=n(85893),o=n(40645),a=n.n(o),s=n(67294),r=n(45697),l=n.n(r),d=n(57747),c=n(32883);let u=e=>{let{html:t,fontSize:n=16,maxLines:o=4,maxHeight:a=300}=e,[r,l]=(0,s.useState)(o),[u,p]=(0,s.useState)(!1),m=(0,s.useRef)(null);return(0,s.useLayoutEffect)(()=>{if(m.current){let{scrollHeight:e,clientHeight:t}=m.current;p(e>t||e>a)}},[t,a]),(0,i.jsxs)(d.xu,{children:[(0,i.jsx)(d.xu,{ref:m,noOfLines:r,dangerouslySetInnerHTML:{__html:t},style:{maxHeight:r?"".concat(a,"px"):"none",overflow:r?"hidden":"visible"}}),u&&(0,i.jsx)(c.r,{className:"readMoreToggle",textDecoration:"underline",as:"span",_hover:{color:"var(--link-hover-text)"},color:"var(--link-text)",fontSize:"".concat(n,"px"),onClick:()=>{l(r?void 0:o)},mt:"2",children:r?"Show more":"Show less"})]})};u.propTypes={html:l().string.isRequired,fontSize:l().number,maxLines:l().number,maxHeight:l().number};var p=n(27856),m=n.n(p);m().addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))});let x={FORBID_ATTR:["onerror","onload","onclick"],ALLOWED_TAGS:["p","b","i","em","strong","br","img","a"],ALLOWED_ATTR:["src","alt","title","href","target","rel"],ALLOWED_URI_REGEXP:/^https?:\/\//i},f=e=>{let{contentData:t,maxLines:n=4,enableReadMore:o=!1,isWaysToHelpPost:s=!1}=e,r="comment"===t.type?m().sanitize(t.html,x):t.html;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{"data-qa":"".concat(t.type,"Body-").concat(t.id),className:"jsx-5f4f7e8cb6c49110 "+"".concat(t.type,"Body ").concat("comment"===t.type?"test":""," ").concat(s?"waysToHelpPostBody":""),children:o?(0,i.jsx)(u,{html:r,maxLines:n}):(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:r},className:"jsx-5f4f7e8cb6c49110"})}),(0,i.jsx)(a(),{id:"5f4f7e8cb6c49110",children:".waysToHelpPostBody.jsx-5f4f7e8cb6c49110{font-size:18px}"})]})};f.propTypes={contentData:l().object.isRequired,maxLines:l().number,enableReadMore:l().bool,isWaysToHelpPost:l().bool};var h=f},17069:function(e,t,n){n.d(t,{Z:function(){return w}});var i=n(85893),o=n(40645),a=n.n(o),s=n(67294),r=n(45697),l=n.n(r),d=n(50319),c=n(41664),u=n.n(c),p=n(22878),m=n(37106),x=n(72349),f=n(87036),h=n(60453),g=n(43287),b=n(4162),y=n(26142),v=n(50828),j=n(52186);function w(e){let{notificationPreference:t,vpWidth:n,onClose:o,setIsFollower:r,setCurrentAction:l,handleNotificationChanges:c}=e,{photo:w,notificationSetting:S}=(0,g.SE)(),{jen:E,dailyEmail:T}=S,[I,_]=(0,s.useState)(E),[C,k]=(0,s.useState)(T),N=(0,g.O_)(),A=(0,h.Pe)(),[P,{loading:M,error:L}]=(0,d.D)(y.AX,{onCompleted:()=>{let e={jen:I,dailyEmail:C};N({type:g.xf.SET_VALUE,notificationSetting:e,photo:w}
1),(I||C)&&(c(),r(!0),A({event:h.kM.EMAIL_SUBSCRIPTION,event_action:h.RC[(0,j.mb)({jen:I,dailyEmail:C})],subscription:h.RC[(0,j.mb)(e)]})),I&&C||(A({event:h.kM.EMAIL_UNSUBSCRIPTION,event_action:h.RC[(0,j.mb)({jen:I,dailyEmail:C})],subscription:h.RC[(0,j.mb)(e)]}),I||C||l("unfollow"))},onError:e=>{console.log("Error occurred when attempting to call mutation UPDATE_USER from FollowPopover.js\n".concat(JSON.stringify(e)))}}),R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C,n=w.publicId||w.legacyPath?w:null;n?Object.hasOwn(n,"legacyPath")?n.legacyPath&&!n.publicId?P({variables:{input:{notificationSetting:{jen:e,dailyEmail:t}}}}):n.publicId?(delete n.legacyPath,P({variables:{input:{notificationSetting:{jen:e,dailyEmail:t},photo:n,photoContext:"FOLLOW_MODAL"}}})):P({variables:{input:{notificationSetting:{jen:e,dailyEmail:t}}}}):(null==n?void 0:n.publicId)?P({variables:{input:{notificationSetting:{jen:e,dailyEmail:t},photo:n,photoContext:"FOLLOW_MODAL"}}}):P({variables:{input:{notificationSetting:{jen:e,dailyEmail:t}}}}):P({variables:{input:{notificationSetting:{jen:e,dailyEmail:t}}}})},B=j.R_[t];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]])+" popoverContainer",children:[(0,i.jsx)("div",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]])+" message",children:(0,i.jsx)(v.Z,{title:B.title,message:B.message,status:B.status})}),n<f.aV.MEDIUM&&t===j.ue.OFF&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]])+" flexbox-space-between small toggleRow",children:[(0,i.jsx)("p",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]]),children:"New journal post created"}),(0,i.jsx)(x.Z,{display:x.P.INLINE,isChecked:I,onChange:e=>{_(e),R(e)},"data-qa":"newJournalUpdate",disabled:M||!!L})]}),(0,i.jsxs)("div",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]])+" flexbox-space-between small toggleRow",children:[(0,i.jsx)("p",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]]),children:"Daily summary of visitor activity"}),(0,i.jsx)(x.Z,{display:x.P.INLINE,isChecked:C,onChange:e=>{k(e),R(I,e)},"data-qa":"activitySummaryUpdate",disabled:M||!!L})]})]}),n>=f.aV.MEDIUM&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]])+" flexbox-space-between small toggleRow",children:[(0,i.jsx)("p",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]]),children:"New journal post created"}),(0,i.jsx)(x.Z,{display:x.P.INLINE,isChecked:I,onChange:e=>{_(e),R(e)},"data-qa":"newJournalUpdate",disabled:M||!!L})]}),(0,i.jsxs)("div",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]])+" flexbox-space-between small toggleRow",children:[(0,i.jsx)("p",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]]),children:"Daily summary of visitor activity"}),(0,i.jsx)(x.Z,{display:x.P.INLINE,isChecked:C,onChange:e=>{k(e),R(I,e)},"data-qa":"activitySummaryUpdate",disabled:M||!!L})]})]}),n<f.aV.MEDIUM?(0,i.jsxs)("div",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]])+" btnContainer",children:[(0,i.jsx)(u(),{href:b.Z6.PROFILE_SETTINGS_NOTIFICATIONS,"data-qa":"notificationPref",children:"Notification Preferences"}),(0,i.jsx)(p.Z,{"data-qa":"followBtn",onClick:o,children:"Close"}),L&&(0,i.jsx)(m.Z,{})]}):(0,i.jsxs)("div",{className:a().dynamic([["92e1b91ee7faa33d",[f.Bs.MEDIUM]]])+" btnContainer",children:[(0,i.jsx)(p.Z,{variant:p.c.SECONDARY,"data-qa":"closeFollowBtn",onClick:o,children:B.status===j.EV.SUCCESS?"Close":"Cancel"}),L&&(0,i.jsx)(m.Z,{})]})]}),(0,i.jsx)(a(),{id:"92e1b91ee7faa33d",dynamic:[f.Bs.MEDIUM],children:".popoverContainer.__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}.btnContainer.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;
1-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:end;-webkit-align-items:flex-end;-moz-box-align:end;-ms-flex-align:end;align-items:flex-end;gap:20px}.toggleRow.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-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;gap:24px}.message.__jsx-style-dynamic-selector{width:240px}@media(min-width:".concat(f.Bs.MEDIUM,"){.popoverContainer.__jsx-style-dynamic-selector{width:100%;-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}.message.__jsx-style-dynamic-selector{text-align:center;max-width:350px}.btnContainer.__jsx-style-dynamic-selector{margin-top:16px;margin-bottom:10px;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.contentContainer.__jsx-style-dynamic-selector{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.toggleRow.__jsx-style-dynamic-selector{width:350px}.toggleRow.__jsx-style-dynamic-selector+.toggleRow.__jsx-style-dynamic-selector{border-top:thin solid var(--gray-300)}.toggleRow.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector{width:248px}}")})]})}w.propTypes={notificationPreference:l().string.isRequired,vpWidth:l().number.isRequired,onClose:l().func.isRequired,setIsFollower:l().func.isRequired,setCurrentAction:l().func.isRequired,handleNotificationChanges:l().func.isRequired}},50828:function(e,t,n){n.d(t,{Z:function(){return c}});var i=n(85893),o=n(40645),a=n.n(o),s=n(45697),r=n.n(s),l=n(52186);let d={[l.EV.ERROR]:{icon:"fa-circle-info",status:"error"},[l.EV.SUCCESS]:{icon:"fa-circle-check",status:"success"},[l.EV.WARNING]:{icon:"fa-message-question ",status:"warning"}};function c(e){let{title:t,message:n,status:o}=e,s=d[o];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"jsx-12519261f1e44c78 "+"".concat(s.status," title"),children:[(0,i.jsx)("i",{className:"jsx-12519261f1e44c78 "+"".concat(s.icon," fa-light")}),t]}),(0,i.jsx)("div",{className:"jsx-12519261f1e44c78 message",children:n}),(0,i.jsx)(a(),{id:"12519261f1e44c78",children:"i.jsx-12519261f1e44c78{margin-right:12px}.title.jsx-12519261f1e44c78{font-size:20px;margin-bottom:10px}.message.jsx-12519261f1e44c78{font-size:16px}.error.jsx-12519261f1e44c78{color:var(--error-500)}.success.jsx-12519261f1e44c78{color:var(--success-500)}.warning.jsx-12519261f1e44c78{color:var(--warning-500)}"})]})}c.propTypes={title:r().string.isRequired,message:r().string.isRequired,status:r().string.isRequired}},12384:function(e,t,n){n.d(t,{Z:function(){return p}});var i=n(85893),o=n(40645),a=n.n(o),s=n(45697),r=n.n(s),l=n(22878),d=n(50828),c=n(52186),u=n(87036);function p(e){let{onClose:t,handleClick:n}=e;return(0,i.jsxs)("div",{className:a().dynamic([["5858606a2ae33765",[u.Bs.MEDIUM]]])+" popoverContainer",children:[(0,i.jsx)("div",{className:a().dynamic([["5858606a2ae33765",[u.Bs.MEDIUM]]])+" message",children:(0,i.jsx)(d.Z,{title:"Are you sure?",message:"You will no longer receive updates if you unfollow.",status:c.EV.WARNING})}),(0,i.jsxs)("div",{className:a().dynamic([["5858606a2ae33765",[u.Bs.MEDIUM]]])+" btnContainer",children:[(0,i.jsx)(l.Z,{variant:l.c.SECONDARY,"data-qa":"unfollowBtn",onClick:n,children:"Unfollow"}),(0,i.jsx)(l.Z,{variant:l.c.PRIMARY,"data-qa":"closeFollowBtn",onClick:t,children:"Cancel"})]}),(0,i.jsx)(a(),{id:"5858606a2ae33765",dynamic:[u.Bs.MEDIUM],children:".popoverContainer.__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}.btnContainer.__jsx-style-dynamic-selector{margin-top:14px;margin-bottom:10px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:20px;-webkit-box-pack:end;
1-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:end;-webkit-align-items:flex-end;-moz-box-align:end;-ms-flex-align:end;align-items:flex-end}.message.__jsx-style-dynamic-selector{width:250px;margin-left:12px}@media(min-width:".concat(u.Bs.MEDIUM,"){.popoverContainer.__jsx-style-dynamic-selector{-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}.message.__jsx-style-dynamic-selector{text-align:center;max-width:100%}.btnContainer.__jsx-style-dynamic-selector{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}}")})]})}p.propTypes={onClose:r().func.isRequired,handleClick:r().func.isRequired}},52186:function(e,t,n){n.d(t,{EV:function(){return i},R_:function(){return a},mb:function(){return s},ue:function(){return o}});let i={ERROR:"ERROR",SUCCESS:"SUCCESS",WARNING:"WARNING"},o={OFF:"OFF",JEN_ONLY:"JEN_ONLY",DAS_ONLY:"DAS_ONLY",JEN_DAS:"JEN_DAS"},a={[o.OFF]:{title:"Enable Notifications",message:"To follow this page, you need to turn on either or both of your profile’s email notification settings.",status:i.WARNING},[o.JEN_ONLY]:{title:"You’re Now Following!",message:"You'll get a notification email when a new post is created.",status:i.SUCCESS},[o.DAS_ONLY]:{title:"You’re Now Following!",message:"You’ll get a daily summary email when there is new activity.",status:i.SUCCESS},[o.JEN_DAS]:{title:"You’re Now Following!",message:"You'll get an email when an update is posted or when there is new activity.",status:i.SUCCESS}};function s(e){let t=!!(null==e?void 0:e.jen),n=!!(null==e?void 0:e.dailyEmail);return t?n?o.JEN_DAS:o.JEN_ONLY:n?o.DAS_ONLY:o.OFF}},91047:function(e,t,n){n.d(t,{Z:function(){return U}});var i=n(85893),o=n(40645),a=n.n(o),s=n(86921),r=n(25351),l=n(31508),d=n(35691),c=n(67294),u=n(22878),p=n(34292),m=n(93108),x=n(28618),f=n(29579),h=n(66573),g=n(76248),b=n(95568),y=n(45697),v=n.n(y),j=n(92206),w=n(61922),S=n(5152),E=n.n(S),T=n(4162),I=n(38411),_=n(50319),C=n(71434),k=n(5241),N=n(60453),A=n(56983),P=n(90331);let M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15e3,i=(0,c.useRef)(null),o=(0,c.useRef)(null),a=(0,c.useCallback)(async()=>{await e(),clearTimeout(i.current),clearTimeout(o.current),i.current=null,o.current=null},[e]),s=(0,c.useCallback)(()=>{clearTimeout(i.current),clearTimeout(o.current),i.current=null,o.current=null},[]),r=(0,c.useCallback)(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(a,t),o.current||(o.current=setTimeout(a,n))},[a,t,n]);return(0,c.useEffect)(()=>()=>{i.current&&clearTimeout(i.current)},[a]),{setAutoSaveTimeout:r,cancelAutoSave:s}};var L=n(80507),R=n(53523),B=n(98303),O=n(57747),D=n(26290),F=n(91067);let q=E()(()=>Promise.all([n.e(9774),n.e(253),n.e(6911),n.e(5311),n.e(5297),n.e(2292),n.e(9165)]).then(n.bind(n,19165)),{loadableGenerated:{webpack:()=>[19165]},ssr:!1});function U(){let{mode:e,post:t}=(0,d.Ei)();if([d.oS.ADD,d.oS.EDIT,d.oS.DRAFT].includes(e))return(0,i.jsx)(l.TV,{value:{uploadType:b.mu.JOURNAL_POST,maxFileCount:6},children:(0,i.jsx)(z,{mode:e,post:t})})}function z(e){var t,n,o,b,y,v;let{mode:S,post:E}=e,[U,z]=(0,c.useState)(null!==(n=null==E?void 0:E.id)&&void 0!==n?n:null),[Z,H]=(0,c.useState)(null!==(o=null==E?void 0:E.title)&&void 0!==o?o:(0,s.p6)(s.yi.FULL)),[W,$]=(0,c.useState)(null!==(b=null==E?void 0:E.body)&&void 0!==b?b:""),[G,V]=(0,c.useState)(null!==(y=null==E?void 0:E.photos.map(e=>e.publicId))&&void 0!==y?y:[]),[Y,X]=(0,c.useState)(null!==(v=null==E?void 0:E.savedAsDraftAt)&&void 0!==v?v:null),[Q,K]=(0,c.useState)(S===d.oS.DRAFT&&(null==E?void 0:E.savedAsDraftAt)),[J,ee]=(0,c.useState)(""),et=(0,l.XX)(),en=(0,l.zW)(),ei=(0,d.fm)(),eo=(0,N.Pe)(),[ea,es]=(0,c.useState)(null),[er,el]=(0,c.useState)(!1),[ed,ec]=(0,c.useState)(!1),[eu,ep]=(0,c.useState)(!1),em=(0,c.useRef)(null),ex=(0,B.S)({base:"mobile",md:"desktop"}),ef=(0,T.Ph)("siteId"),{data:eh}=(0,P.Z)(ef),{activeTab:eg}=(0,d.Ei)(),eb=(0,d.fm)(),{refetchDrafts:ey}=(0,R.f)(),ev=[];"ALL"===eg&&ev.push("GET_FEED"),eg===k.u5.POST&&ev.push("GET_SITE_PAGE");let ej=(0,c.useCallback)(()=>
1{let e=(0,I.Kh)(et.photoFiles),t={content:{body:W,title:Z}};t.content.body=t.content.body.replace(/<p><\/p>/g,"<br/>");let n=[],i=e.reduce((e,t)=>(t.upload&&(t.upload.legacyPath&&!t.upload.public_id?n.includes(t.upload.legacyPath)||n.push(t.upload.legacyPath):t.upload.public_id&&e.push({publicId:t.upload.public_id,width:t.upload.width,height:t.upload.height})),e),[]);return t.content.photos=i,S===d.oS.ADD?t.siteId=ef:S===d.oS.EDIT?(t.id=U,n.length>0&&(t.legacyPhotoPaths=n.filter(e=>!t.content.photos.some(t=>t.legacyPath===e)))):S===d.oS.DRAFT&&(U?t.id=U:t.siteId=ef),t},[W,et.photoFiles,U,ef,Z,S]),ew=()=>{"ALL"===eg?eb({type:d.Ir.SET_VALUE,isDirtyPosts:!0}):eb({type:d.Ir.SET_VALUE,isDirtyFeed:!0})},eS=(e,t)=>{eo({event:N.kM.JOURNAL_ENTRY,event_action:(0,I.Kh)(et.photoFiles).length>0?"media":"text"}),eo({posts_on_site:eh.getSite.postConnection.totalCount+1}),(0,F.y)({contentId:e,contentType:"POST",contentTitle:t||Z,isPostPublishSuccess:!0}),ek(),ew(),(0,T.Eh)((0,T.G3)(T.Z6.SITE_HOME_PAGE,{siteId:ef}))},[eE,eT]=(0,_.D)(r.Sx,{onCompleted:e=>{if(S===d.oS.DRAFT&&!er){z(e.createPost.id),X(e.createPost.savedAsDraftAt),K(!1),ey(),eo({event:N.kM.DRAFT_POST_CREATED});return}eS(e.createPost.id,e.createPost.title)},onError:e=>{ee(e.message)},refetchQueries:ev,update:e=>{e.modify({id:e.identify({__typename:"Site",id:ef}),fields:{postConnection(e){if(e)return{posts:e.posts,totalCount:e.totalCount+1}}}})}}),[eI,e_]=(0,_.D)(r.vG,{onCompleted:e=>{if(S===d.oS.DRAFT){if(er)eS(e.updatePost.id,e.updatePost.title);else{X(e.updatePost.savedAsDraftAt),K(!1),eo({event:N.kM.DRAFT_POST_UPDATED});return}}ek(),ew(),eo({event:N.kM.JOURNAL_ENTRY_EDITED})},onError:e=>{ee(e.message)},refetchQueries:ev}),[eC]=(0,_.D)(r.Xv,{onCompleted:()=>{ek(),eo({event:N.kM.DRAFT_POST_DELETED})},onError:e=>{ee(e.message)},refetchQueries:ev});(0,c.useEffect)(()=>{S===d.oS.DRAFT&&eN()&&ed?eP():eM(),ec(!0)},[W,Z]),(0,c.useEffect)(()=>{if(S!==d.oS.DRAFT||!eN())return;let e=(0,I.Kh)(et.photoFiles).map(e=>{var t;return null===(t=e.upload)||void 0===t?void 0:t.public_id}).filter(e=>!!e);JSON.stringify(e)!==JSON.stringify(G)&&(V(e),eP())},[JSON.stringify(et.photoFiles)]),(0,c.useEffect)(()=>{if([d.oS.EDIT,d.oS.DRAFT].includes(S)){var e;en({type:l.yx.HYDRATE,photos:null!==(e=null==E?void 0:E.photos)&&void 0!==e?e:[]})}},[S,en,E]);let ek=async()=>{eM(),ei({type:d.Ir.RESET}),ey()},eN=(0,c.useCallback)(()=>{let e=(0,I.Kh)(et.photoFiles).length>0,t=(0,A.tL)(W);return!(0,A.fp)(Z)&&et.isHydrated&&!et.isUploading&&(e||!t)},[et.photoFiles,et.isUploading,et.isHydrated,W,Z]),eA=(0,c.useCallback)(async()=>{if(!eN())return;let e=ej(),t=e.content!==(null==ea?void 0:ea.content),n=eT.loading||e_.loading;if(t&&!n)try{(U?eI:eE)({variables:{input:{...e,isDraft:!0}}}),es(e)}catch(e){ee("Failed to save the draft.")}},[ej,eT.loading,e_.loading,U,eI,eE,ea,eN]),{setAutoSaveTimeout:eP,cancelAutoSave:eM}=M(eA),eL=()=>{S===d.oS.DRAFT&&eN()?(eM(),ep(!0)):ek()},eR=eT.loading||e_.loading||!eN();if(eu){let e="draftConfirm";return(0,i.jsx)(g.Z,{isShowing:!0,setIsShowing:()=>{},shouldCloseOnEscape:!1,children:(0,i.jsxs)(x.Z,{isForModal:!0,onDismiss:()=>ep(!1),style:{maxWidth:"480px",paddingBottom:"55px"},children:[(0,i.jsx)("h5",{className:"center","data-qa":"".concat(e,"Title"),children:"Save this post as a draft?"}),(0,i.jsx)("p",{className:"center","data-qa":"".concat(e,"Description"),children:"You will be able to resume where you left off the next time you create a post."}),(0,i.jsxs)("div",{className:"center buttonGroup",children:[(0,i.jsx)(u.Z,{"data-qa":"".concat(e,"Save"),onClick:()=>{eA(),ek()},children:"Save as Draft"}),(0,i.jsx)(u.Z,{"data-qa":"".concat(e,"KeepEditing"),variant:u.c.SECONDARY,onClick:()=>ep(!1),children:"Keep Editing"})]}),(0,i.jsx)("div",{className:"center",children:(0,i.jsx)("button",{"data-qa":"".concat(e,"Discard"),className:"button--asLink button--isClear marginTop--24",onClick:()=>{U&&eC({variables:{input:{id:U}}}),ek()},children:"Discard"})})]})})}return(0,i.jsxs)(g.Z,{isShowing:!eu,setIsShowing:eL,children:[(0,i.jsx)("div",{className:"jsx-cfbc1f96dcd824f cardWidth",children:(0,i.jsxs)(x.Z,{isForModal:!0,onDismiss:eL,children:[(0,i.jsx)("h1",{className:"jsx-cfbc1f96dcd824f h5",children:S===d.oS.EDIT?"Edit Post":"Create a Post"}),(0,i.jsx)(h.Z,{label:"Title",required:!0,"data-qa":"postTitle",value:Z,maxLength:50,onChange:e=>{H(e)}}),(0,i.jsx)("div",{"data-qa":"postBody",className:"jsx-cfbc1f96dcd824f",children:(0,i.jsx)(q,{postHtml:W,setPostHtml:e=>{e!==W&&$(e)},infoMessage:S===d.oS.DRAFT&&!er&&(eT.loading||e_.loading)?"Autosaving...":Y?"".concat(Q?"Restored from a draft saved":"Autosaved"," ").concat((0,L.Q)(Y,{addSuffix:!0})):null})}),(0,i.jsx)("div",{className:"jsx-cfbc1f96dcd824f editorFooter marginTop--24",children:(0,i.jsxs)(p.U,{spacing:{base:2,lg:4},justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(O.xu,{width:"calc(100% - ".concat((null===(t=em.current)||void 0===t?void 0:t.offsetWidth)||0,"px)"),children:(0,i.jsx)(j.Z,{uploadButtonContent:(0,D.xb)((0,I.Kh)(et.photo
1Files).length)})}),(0,i.jsx)("div",{ref:em,className:"jsx-cfbc1f96dcd824f buttonContainer",children:(0,i.jsxs)(i.Fragment,{children:["desktop"===ex&&(0,i.jsx)(C.Z,{"data-qa":"publishPostCancel",onClick:eL,children:"Cancel"}),(0,i.jsx)(m.z,{variant:"primary",p:"10px 13px",fontSize:"22px",isLoading:er,spinner:(0,i.jsx)(w.ZP,{spotSize:8}),isDisabled:eR,onClick:()=>{el(!0),ee("");let e=ej(),t=null;S!==d.oS.ADD&&(S!==d.oS.DRAFT||U)?t=eI:(eM(),t=eE),S===d.oS.DRAFT&&(e.isDraft=!1),t({variables:{input:e}})},"data-qa":"publishPost",children:(0,i.jsx)("i",{className:"jsx-cfbc1f96dcd824f fa-paper-plane fa-solid"})})]})})]})}),J&&(0,i.jsx)(f.Z,{children:J})]})}),(0,i.jsx)(a(),{id:"cfbc1f96dcd824f",children:".postBody>p{margin:15px 0!important;display:flow-root}h1.jsx-cfbc1f96dcd824f{margin-top:0}.editorFooter.jsx-cfbc1f96dcd824f{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cardWidth.jsx-cfbc1f96dcd824f{max-width:720px}.buttonContainer.jsx-cfbc1f96dcd824f{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:24px;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;min-height:40px}.spacer.jsx-cfbc1f96dcd824f{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.autosaveText.jsx-cfbc1f96dcd824f{font-size:10px}"})]})}z.propTypes={mode:v().string.isRequired,post:v().object}},39232:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(85893),o=n(25351),a=n(35691),s=n(45697),r=n.n(s),l=n(61922),d=n(50319),c=n(60453),u=n(4162),p=n(35541),m=n(19778),x=n(49163),f=n(66205),h=n(64859),g=n(54346),b=n(14e3),y=n(14253),v=n(93108);function j(e){var t,n;let{siteId:s}=e,r=(0,a.Ei)(),j=(0,a.fm)(),w=(0,c.Pe)(),[S,{loading:E}]=(0,d.D)(o.Xv,{onCompleted:()=>{w({event:c.kM.JOURNAL_ENTRY_DELETED}),N(),(0,u.Eh)((0,u.G3)(u.Z6.SITE_HOME_PAGE,{siteId:r.post.siteId}))},onError:e=>{console.log(e.message)},refetchQueries:[o.fo.GET_SITE_PAGE,o.fo.GET_FEED],awaitRefetchQueries:!0,update:(e,t)=>{e.evict({id:r.feedId}),e.evict({id:"Post:".concat(t.data.deletePost)})}}),[T,{loading:I}]=(0,d.D)(o.QW,{onCompleted:()=>{w({event:c.kM.JOURNAL_ENTRY_DELETED}),N(),(0,u.Eh)((0,u.G3)(u.Z6.SITE_HOME_PAGE,{siteId:r.post.siteId}))},onError:e=>{console.log(e.message)},refetchQueries:[o.fo.GET_SITE_PAGE,o.fo.GET_FEED],awaitRefetchQueries:!0,update:e=>{e.evict({id:r.feedId})}}),[_,{loading:C}]=(0,d.D)(o.zj,{onCompleted:()=>{w({event:c.kM.REQUEST_DELETED}),N(),(0,u.Eh)((0,u.G3)(u.Z6.SITE_HOME_PAGE,{siteId:r.post.siteId}))},onError:e=>{console.log(e.message)},refetchQueries:[o.fo.GET_REQUESTS,o.fo.GET_FEED],update:(e,t)=>{e.evict({id:r.feedId}),e.evict({id:"Feed:".concat(s,"#REQUEST#").concat(t.data.deleteRequest.id)})}}),k=()=>{j({type:a.Ir.RESET})},N=()=>{k()},A=(null==r?void 0:null===(t=r.post)||void 0===t?void 0:t.__typename)==="Request",P=A&&(null==r?void 0:null===(n=r.post)||void 0===n?void 0:n.requestSlots.some(e=>null!==e.helper)),M=A?"request":"post",L="";L=A&&P?"Since someone was helping, it’s a good idea to let them know you no longer need their help.":A&&!P?"":"Your post and any related comments will be removed permanently.";let R="Deleting a ".concat(M," is permanent.");return(0,i.jsxs)(p.u_,{variant:"classic",isOpen:r.mode===a.oS.DELETE,onClose:()=>{},children:[(0,i.jsx)(m.Z,{}),(0,i.jsxs)(x.h,{children:[(0,i.jsx)(f.o,{onClick:N,children:(0,i.jsx)("i",{className:"fa-thin fa-times"})}),(0,i.jsx)(h.x,{children:"Are you sure you want to delete this ".concat(M,"?")}),(0,i.jsxs)(g.f,{children:[L&&(0,i.jsx)(b.x,{as:"p",children:L}),R&&(0,i.jsx)(b.x,{as:"p",color:"red.500",children:R})]}),(0,i.jsxs)(y.m,{children:[(0,i.jsx)(v.z,{variant:"primary",onClick:()=>{"WaysToHelpPost"===r.post.__typename?T({variables:{input:{id:r.post.id,feedId:r.feedId}}}):"Request"===r.post.__typename?_({variables:{input:{id:r.post.id}}}):S({variables:{input:{id:r.post.id}}})},"data-qa":"deleteContentModalButton",children:I||E||C?(0,i.jsx)(l.ZP,{}):"Yes - Please delete"}),(0,i.jsx)(v.z,{variant:"link",onClick:N,"data-qa":"deleteContentModalCancelButton",children:"Cancel"})]})]})]})}j.propTypes={siteId:r().string.isRequired}},44170:function(e,t,n){n.d(t,{Z:function(){return V}});var i=n(85893),o=n(40645),a=n.n(o),s=n(45697),r=n.n(s),l=n(35691),d=n(4162),c=n(87036),u=n(41664),p=n.n(u),m=n(39332),x=n(29457),f=n(63168),h=n(50319),g=n(43287),b=n(25675),y=n.n(b),v=n(67294),j=n(26142),w=n(60453),S=n(7438),E=n(5241),T=n(62464),I=n(25351),_=n(52186),C=n(61922),k=n(17069),N=n(12384),A=n(8329),P=n(29579),M=n(83314),L=n(63351);function R(e){let{page:t,menuBtnRef:n}=e,o=(0,w.Pe)(),{photo:s,notificationSetting:r,isSignedIn:l}=(0,g.SE)(),u=(0,T.Z)(),p=(0,f.Z)(),[m,x]=(0,v.useState)(null==t?void 0:t.isFollower),[b,R]=(0,v.useState)(""),[B,O]=(0,v.useState)(!1),[D,F]=(0,v.useState)(m?"unfollow":"follow"),q=null==t?void 0:t.tooltips.some(e=>"ACTIVE"===e.status),[U,z]=(0,v.useState)(q),Z=(0,v.useRef)(null),H=(0,_.mb)(r),W=H===_.ue.OFF,$=(0,g.O_)(),G=!!(0,d.Ph)(d.Tx.FOLLOW),V=m?"fa-circle-check":"fa-user-plus",[Y]=(0,h.D)(j.AX,{refetchQueries:[{query:M.j},{query:I.EF,variables:{siteId:null==t?void 0:t.id}}],onCompleted:()=>{$({type:g.xf.SET_VALUE,notificationSetting:{jen:!0,dailyEmail:!0},photo:s}),x(!0)},onError:e=>{R(e.message)}}),[X,{error:Q,called:K,loading:J}]=(0,h.D)(I.Gi,{refetchQueries:[{query:M.j},{query:I.EF,variables:{siteId:null==t?void 0:t.id}}]}),[ee,{error:et,loading:en}]=(0,h.D)(I.P7,{refetchQueries:[{query:M.j},{query:I.EF,variables:{siteId:null==t?void 0:t.id}}]});(0,v.useEffect)(()=>{x(null==t?void 0:t.isFollower)},[null==t?void 0:t.isFollower]),(0,v.useEffect)(()=>{let e=async()=>
1{if(!m&&(O(!0),!W)){var e,n;let i=await X({variables:{input:{context:E.Ie.FOLLOW_BUTTON,siteId:null==t?void 0:t.id}}});(null==i?void 0:null===(n=i.data)||void 0===n?void 0:null===(e=n.followSite)||void 0===e?void 0:e.isFollowing)&&p.toggleModal()}(0,d.aX)()};!G||K||J||e()},[K,G,X,W,m,J,null==t?void 0:t.id]);let ei=(0,v.useCallback)(async(e,n,i)=>{try{let a=await n({variables:{input:{context:E.Ie.FOLLOW_BUTTON,siteId:null==t?void 0:t.id}}}),s="follow"===e?null==a?void 0:a.data.followSite.isFollowing:!(null==a?void 0:a.data.unfollowSite.isFollowing);F(e),s&&("follow"===e?(o({event:i,autoFollow:!1}),p.toggleModal()):(o({event:i}),O(!1))),x("follow"===e),b&&R("")}catch(e){R(e.message),O(!0)}},[o,b,null==t?void 0:t.id]),eo=(0,v.useCallback)(async()=>{if(!l){(0,d.Eu)({[d.Tx.FOLLOW]:!0},!1,(0,d.$C)(null==t?void 0:t.id));return}if(await z(!1),ea(),W){F(m?"unfollow":"follow"),O(!0),b&&R("");return}if(m)O(e=>!e);else try{F("follow");let e=await X({variables:{input:{context:E.Ie.FOLLOW_BUTTON,siteId:null==t?void 0:t.id}}});(null==e?void 0:e.data.followSite.isFollowing)&&(p.toggleModal(),o({event:w.kM.FOLLOW_SITE,autoFollow:!1}),x(!0)),b&&R("")}catch(e){R(e)}},[l,null==t?void 0:t.id,m,b,o,W,X]),ea=()=>{null===Z.current&&(Z.current=document.getElementById("FollowButton"))},es=(0,v.useCallback)(()=>{O(!1)},[]);return(0,i.jsxs)("div",{className:"jsx-23e7a6ae40389e89 followBtnContainer",children:[U&&(0,i.jsx)(L.default,{tooltip:{status:"ACTIVE",type:"FOLLOW_TOOLTIP"}
1,siteId:null==t?void 0:t.id,targetRef:Z,onAction:e=>{if(e.following){if(x(!0),F("follow"),p.toggleModal(),W){Y({variables:{input:{notificationSetting:{jen:!0,dailyEmail:!0}}}}),b&&R("");return}}else x(!1)}}),(0,i.jsxs)("button",{id:"FollowButton",ref:Z,"data-qa":"followPageBtn",onClick:eo,disabled:B,className:"jsx-23e7a6ae40389e89 button--isClear menuLink",children:[(0,i.jsx)("i",{className:"jsx-23e7a6ae40389e89 "+"".concat(V," fa-solid sideNavIcon")}),(0,i.jsx)("span",{className:"jsx-23e7a6ae40389e89 menuText",children:m?"Following":"Follow this Page"})]}),(n||Z)&&(0,i.jsx)(S.J,{anchor:u<c.aV.MEDIUM&&null!=n?n:Z.current,show:B,position:u<c.aV.MEDIUM?"bottom":"right",positionMode:"absolute",children:(0,i.jsxs)("div",{className:"jsx-23e7a6ae40389e89 popoverContent",children:[Q?(0,i.jsxs)(P.Z,{children:["Follow failed: ",b]}):et?(0,i.jsxs)(P.Z,{children:["Unfollow failed: ",b]}):J||en?(0,i.jsx)("div",{className:"center",children:(0,i.jsx)(C.ZP,{})}):"follow"!==D&&(m||"unfollow"===D)?"unfollow"===D||m&&"follow"!==D?(0,i.jsx)(N.Z,{onClose:es,handleClick:()=>ei("unfollow",ee,w.kM.UNFOLLOW_SITE)}):(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(k.Z,{notificationPreference:H,vpWidth:u,onClose:es,setIsFollower:x,setCurrentAction:F,handleNotificationChanges:()=>ei("follow",X,w.kM.FOLLOW_SITE)}),(0,i.jsx)("div",{className:"jsx-23e7a6ae40389e89",children:(0,i.jsx)(y(),{src:"/img/followClose.svg",width:14,height:14,alt:"",onClick:()=>es()})})]})}),(0,i.jsx)(A.Z,{modal:p,action:c.Uc.FOLLOW}),(0,i.jsx)(a(),{id:"23e7a6ae40389e89",children:"button.jsx-23e7a6ae40389e89{width:100%;text-align:inherit;line-height:inherit}.popoverContent.jsx-23e7a6ae40389e89{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}.k-animation-container:has(.popoverContent){z-index:var(--zindex-popover)!important}"})]})}R.propTypes={page:r().object,menuBtnRef:r().object};var B=n(35677),O=n(26475),D=n(94184),F=n.n(D),q=n(99392),U=n(90331),z=n(53523),Z=n(24880),H=n(36948),W=n(27892),$=n(19472),G=n(95027);function V(e){var t,n,o;let{isUsingOtpvToken:s,isSingleContentPage:r}=e,u=(0,f.Z)(),h=(0,d.Ph)("siteId"),b=(0,l.fm)(),{data:y}=(0,U.Z)(h),{draftsData:j}=(0,z.f)(),w=(0,q.c)(q.T.GO_FUND_ME),S=(0,q.c)(q.T.MEAL_TRAIN),{isSignedIn:E}=(0,g.SE)(),T=null==y?void 0:null===(t=y.getSite)||void 0===t?void 0:t.isAuthor,I=(0,d.G3)(d.Z6.SITE_HOME_PAGE,{siteId:h}),_=null==y?void 0:null===(n=y.getSite)||void 0===n?void 0:n.isShareableByVisitor,C=(0,m.usePathname)(),[k,N]=(0,v.useState)(!0),A=(0,v.useRef)(null),P=(0,v.useRef)(null),M=()=>N(e=>!e),L=(0,v.useId)(),D=F()({open:k,closed:!k}),V=(null==j?void 0:null===(o=j.getDrafts)||void 0===o?void 0:o.drafts)||[],{launchEditorFor:Y}=(0,G.K)();return((0,O.K)(k,[P,A],M),r&&!T||r&&T&&s&&!E)?null:(0,i.jsxs)("div",{id:"siteActions",className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" "+(D||""),children:[(0,i.jsxs)("div",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:[(0,i.jsx)("h6",{"data-testid":"siteActionsHeadline",style:{whiteSpace:"pre-wrap"},className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" navHeadline",children:T?"Manage my page":"Show your support for ".concat(null==y?void 0:y.getSite.firstName)}),(0,i.jsx)("button",{onClick:M,ref:e=>(P&&(P.current=e),P),"aria-expanded":k,"aria-controls":L,"data-qa":"settingsDropdownMenu",className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" button--isClear navBtn ddmCenterIcon",children:(0,i.jsxs)("p",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:[T?"Manage my page":"Show your support for ".concat(null==y?void 0:y.getSite.firstName)," ",k?(0,i.jsx)("i",{"data-qa":"settingsDropdownMenuUpArrow",className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" fa-chevron-up fa-solid"}):(0,i.jsx)("i",{"data-qa":"settingsDropdownMenuDownArrow",className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" fa-chevron-down fa-solid"})," "]})})]}),(0,i.jsxs)("ul",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" plainList",children:[T&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("li",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:(0,i.jsxs)("button",{id:"CreatePostButton","data-qa":"createPostBtn",onClick:e=>{e.stopPropagation();let t=null==V?void 0:V[0];b({type:l.Ir.SET_VALUE,mode:l.oS.DRAFT,post:t})},className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" button--isClear menuLink",children:[(0,i.jsx)("i",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" fa-pen fa-solid sideNavIcon"}),(0,i.jsx)("span",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" menuText",children:"Create a Post"}),V.length>0&&(0,i.jsx)(Z.C,{variant:"secondary",children:"Draft"})]})}),(0,i.jsx)("li",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:(0,i.jsxs)("button",{id:"CreateRequestButton","data-qa":"createRequestBtn",onClick:e=>{Y({type:"request"},h)},className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" button--isClear menuLink",children:[(0,i.jsx)("i",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" fa-calendar-check fa-solid sideNavIcon"}),(0,i.jsxs)("span",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" menuText",children:["Create a Request"," ",(0,i.jsx)(W.Z,{featureNames:[W.e.REQUEST],shouldCheckMutation:!0})]})]})}),(0,i.jsx)("li",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:(0,i.jsxs)(p(),{"data-qa":"addCoAuthorBtn",href:(0,d.G3)(d.Z6.SITE_SETTINGS_AUTHORS,h),className:"a--isClear menuLink ",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("i",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" fa-users fa-solid sideNavIcon"}),(0,i.jsx)("span",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" menuText",children:"Add a Co-Author"})]})})]}),T||(0,i.jsxs)("li",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:[" ",(0,i.jsx)(R,{page:null==y?void 0:y.getSite,menuBtnRef:P.current})]}),(_||T)&&(0,i.jsx)("li",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:(0,i.jsxs)("button",{"data-qa":"sharePageBtn",onClick:e=>{e.stopPropagation(),u.toggleModal()},className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" button--isClear menuLink",children:[(0,i.jsx)("i",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" fa-share fa-solid sideNavIcon"}),(0,i.jsx)("span",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" menuText",children:T?"Share my Page":"Share this Page"})]})}),(w||S)&&(0,i.jsx)("li",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:(0,i.jsxs)(p(),{"data-qa":"waysToHelpPageLinkButton",href:(0,d.G3)(d.Z6.SITE_WAYS_TO_HELP,h),className:"a--isClear menuLink ",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("i",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" fa-heart-circle-plus fa-solid sideNavIcon"}),(0,i.jsxs)("span",{"data-qa":"waysToHelpPageLinkButtonText",className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" menuText",children:[T?"Ways to Get Help":"Ways to Help"," ",(0,i.jsx)(W.Z,{shouldCheckMutation:!1,featureNames:[W.e.GIFT_CARD_3,W.e.INSTACART]})]})]})}),T&&(0,i.jsx)("li",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:(0,i.jsxs)(p(),{"data-qa":"pageSettingsBtn",href:(0,d.G3)(d.Z6.SITE_SETTINGS_GENERAL,h),className:"a--isClear menuLink ",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("i",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" fa-gear fa-solid sideNavIcon"}),(0,i.jsx)("span",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" menuText",children:"Page Settings"})]})}),I!==C&&(0,i.jsx)("li",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]]),children:(0,i.jsxs)("a",{href:I,"data-qa":"menuLinkHomePage",onClick:e=>e.stopPropagation(),className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" a--isClear menuLink ",children:[(0,i.jsx)(H.J,{as:$.Z,color:"berryBridge.500",width:"1.5em",marginBottom:1}),(0,i.jsx)("span",{className:a().dynamic([["67efa1fced8daf99",[c.Bs.SMALL,c.Bs.MEDIUM]]])+" menuText",children:"View all Posts"})]})})]}),(0,i.jsx)(x.Z,{modalController:u,siteId:h,origin:B.Yt.PRIVATE_HOME_PAGE}),(0,i.jsx)(a(),{id:"67efa1fced8daf99",dynamic:[c.Bs.SMALL,c.Bs.MEDIUM],children:"#siteActions.__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:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}h6.__jsx-style-dynamic-selector{white-space:nowrap}ul.__jsx-style-dynamic-selector{display:inline-block;color:var(--body-text);-webkit-border-radius:var(--border-radius);-moz-border-radius:var(--border-radius);border-radius:var(--border-radius)}li.__jsx-style-dynamic-selector:hover{color:var(--berry-bridge-500)}button.__jsx-style-dynamic-selector{width:100%;text-align:inherit;line-height:inherit;font-weight:var(--font-weight-medium)}.navHeadline.__jsx-style-dynamic-selector{margin-top:0px}.menuLogo{padding-right:4px}.menuLink{height:100%;display:block;padding:6px 0px;white-space:nowrap;-webkit-border-radius:inherit;-moz-border-radius:inherit;border-radius:inherit;-webkit-transition:all var(--speed-on-hover)linear;-moz-transition:all var(--speed-on-hover)linear;-o-transition:all var(--speed-on-hover)linear;transition:all var(--speed-on-hover)linear;font-weight:var(--font-weight-medium)}.menuLink:hover{background-color:var(--body-bg);color:var(--berry-bridge-500)}.sideNavIcon{vertical-align:-2px;width:24px}.menuText{white-space:nowrap;padding-left:3px;font-weight:var(--font-weight-medium)}@media(max-width:".concat(c.Bs.SMALL,"){.open.__jsx-style-dynamic-selector>ul.__jsx-style-dynamic-selector{min-width:100vw;background-color:white;margin-top:0px}}@media(max-width:1023px){#siteActions.__jsx-style-dynamic-selector{display:none}}@media(min-width:").concat(c.Bs.MEDIUM,"){#siteActions.__jsx-style-dynamic-selector{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}.menuLink{padding:6px 0px}.navHeadline.__jsx-style-dynamic-selector{display:block}.navBtn.__jsx-style-dynamic-selector{display:none}.closed.__jsx-style-dynamic-selector>ul.__jsx-style-dynamic-selector{display:inline-block}li.__jsx-style-dynamic-selector i.__jsx-style-dynamic-selector{display:inline-block}}")})]})}V.propTypes={isSingleContentPage:r().bool,isUsingOtpvToken:r().bool}},76935:function(e,t,n){n.d(t,{Z:function(){return z}});var i=n(85893),o=n(40645),a=n.n(o),s=n(87036),r=n(47526),l=n(35541),d=n(19778),c=n(49163),u=n(66205),p=n(64859),m=n(54346),x=n(34292),f=n(14e3),h=n(14253),g=n(93108),b=n(31508),y=n(67294),v=n(37106),j=n(95568),w=n(9189),S=n(45697),E=n.n(S),T=n(92206),I=n(4162),_=n(20139),C=n(63168),k=n(50319),N=n(61922);function A(e){let{width:t,photo:n}=e,o=(0,I.Ph)("siteId"),[s,r]=(0,y.useState)(!1),[S,E]=(0,y.useState)(!1),A=(0,C.Z)(),P=(0,b.XX)(),M=(0,b.zW)();(0,y.useEffect)(()=>{A.isShowing&&(n&&M({type:b.yx.HYDRATE,photos:[n]}),r(!1))},[A.isShowing,n,M]);let[L]=(0,k.D)((0,_.Xo)([{mainSitePhoto:"PhotoInput"}]),{onCompleted:A.toggleModal,onError:()=>{E(!0)}});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{"data-qa":"profilePhotoEdit",onClick:A.toggleModal,className:a().dynamic([["7e9f5c5d61ab8a1c",[t,t,t,t]]])+" button--isClear",children:(0,i.jsx)("i",{className:a().dynamic([["7e9f5c5d61ab8a1c",[t,t,t,t]]])+" fa-camera fa-solid"})}),(0,i.jsxs)(l.u_,{isOpen:A.isShowing,closeOnOverlayClick:!0,onClose:A.toggleModal,children:[(0,i.jsx)(d.Z,{}),(0,i.jsxs)(c.h,{gap:4,children:[(0,i.jsx)(u.o,{"data-qa":"closeModal",children:(0,i.jsx)("i",{className:a().dynamic([["7e9f5c5d61ab8a1c",[t,t,t,t]]])+" fa-thin fa-times"})}),(0,i.jsx)(p.x,{alignSelf:"flex-start",children:"Page photo"}),(0,i.jsxs)(m.f,{children:[(0,i.jsx)(T.Z,{displayInput:P.photoFiles.filter(e=>e.lifecycle===j.TE.FINISHED).length>0,thumbnailSize:120,disableScroll:!0,uploadButtonContent:(0,i.jsxs)(x.U,{spacing:2,alignItems:"center",children:[(0,i.jsx)("i",{className:a().dynamic([["7e9f5c5d61ab8a1c",[t,t,t,t]]])+" fa-image fa-solid"}),(0,i.jsx)(f.x,{as:"span",fontSize:"16px",children:"Add Photo"})]})}),(0,i.jsxs)(h.m,{paddingX:0,alignItems:"flex-start",children:[(0,i.jsxs)(x.U,{spacing:2,alignItems:"flex-start",children:[(0,i.jsx)(g.z,{variant:"primary",width:"".concat(120,"px"),"data-qa":"saveMainPhoto",onClick:()=>{r(!0);let e=new w.Z(P).getValidPhotos(),t=[],n=null;if(e.length>0){var i;let o=null===(i=e[0])||void 0===i?void 0:i.upload;o&&(o.legacyPath&&!o.public_id?t.push(o.legacyPath):o.public_id&&(n={publicId:o.public_id,width:o.width,height:o.height}))}t.length>0?L({variables:{siteId:o,mainSitePhoto:n,legacyPhotoPaths:t}}):L({variables:{siteId:o,mainSitePhoto:n}})},spinner:(0,i.jsx)(N.ZP,{spotSize:8}),isLoading:s,isDisabled:s,children:"Save"}),(0,i.jsx)(g.z,{variant:"link","data-qa":"cancelMainPhoto",onClick:A.toggleModal,children:"Cancel"})]}),S&&(0,i.jsx)(v.Z,{})]})]})]})]}),(0,i.jsx)(a(),{id:"7e9f5c5d61ab8a1c",dynamic:[t,t,t,t],children:"button.__jsx-style-dynamic-selector{width:".concat(t,"px;height:").concat(t,"px;-webkit-border-radius:-webkit-calc(").concat(t,"px / 2);-moz-border-radius:-moz-calc(").concat(t,"px / 2);border-radius:-webkit-calc(").concat(t,"px / 2);border-radius:-moz-calc(").concat(t,"px / 2);border-radius:calc(").concat(t,"px / 2);background-color:var(--button-blue-500);color:white;font-size:-webkit-calc(").concat(t,"px - 14px);font-size:-moz-calc(").concat(t,"px - 14px);font-size:calc(").concat(t,"px - 14px)}")})]})}function P(e){return(0,i.jsx)(b.TV,{value:{uploadType:j.mu.SITE_PROFILE,maxFileC
1ount:1},children:(0,i.jsx)(A,{...e})})}A.propTypes={width:E().number.isRequired,photo:E().object},P.propTypes={width:E().number.isRequired,photo:E().object};var M=n(90331),L=n(25351),R=n(37887),B=n(39332),O=n(43287),D=n(32883),F=n(48783),q=n(57747);function U(e){let{siteId:t}=e;return(0,i.jsx)(D.r,{href:(0,I.G3)(I.Z6.SITE_SETTINGS_GENERAL,{siteId:t}),textDecoration:"none",cursor:"pointer",_hover:{textDecoration:"none"},children:(0,i.jsxs)(F.g,{spacing:1,align:"center",position:"relative",children:[(0,i.jsx)(q.xu,{width:"24px",height:"24px",bg:"var(--gray-100)",borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"14px",top:"0",children:(0,i.jsx)(q.xu,{as:"i",className:"fa-duotone fa-solid fa-gear-complex",fontSize:"16.36px","data-qa":"settings-icon",sx:{"--fa-primary-color":"var(--button-blue-400)","--fa-secondary-color":"var(--button-blue-500)","--fa-primary-opacity":"1","--fa-secondary-opacity":"1"},"aria-hidden":"true"})}),(0,i.jsx)(f.x,{position:"absolute",left:"0",top:"21px",textAlign:"center",color:"var(--brave-blue-600)",fontSize:"14px",fontFamily:"Figtree, sans-serif",fontWeight:"400",textDecoration:"underline",lineHeight:"20px",wordBreak:"break-word",margin:"0",padding:"0",_groupHover:{color:"var(--berry-bridge-500)"},sx:{"a:hover &":{color:"var(--berry-bridge-500)"}},children:"Settings"})]})})}function z(){var e,t,n,o,l,d,c,u,p,m,x,f,h,g,b,y,v,j,w,S,E,T,_,C;let k=(0,I.Ph)("siteId"),{data:N}=(0,M.Z)(k),A=null!==(_=null==N?void 0:null===(e=N.getSite)||void 0===e?void 0:e.isAuthor)&&void 0!==_&&_,L=null!==(C=null==N?void 0:null===(t=N.getSite)||void 0===t?void 0:t.isUsingOtpvToken)&&void 0!==C&&C,{isSignedIn:R}=(0,O.SE)();return(0,i.jsxs)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" bleed",children:[(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" backgroundBanner",children:(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" standardLayout wider lv",children:(0,i.jsxs)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" content marginBottom--0",children:[(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" profilePhotoWrapper",children:(0,i.jsxs)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" profilePhotoBorder",children:[(0,i.jsx)(r.Z,{width:126,publicId:null==N?void 0:null===(o=N.getSite)||void 0===o?void 0:null===(n=o.mainSitePhoto)||void 0===n?void 0:n.publicId,legacyPath:null==N?void 0:null===(d=N.getSite)||void 0===d?void 0:null===(l=d.mainSitePhoto)||void 0===l?void 0:l.legacyPath,isResponsive:!0}),A&&(!L||R)&&(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" positionEdit",children:(0,i.jsx)(P,{photo:null==N?void 0:null===(c=N.getSite)||void 0===c?void 0:c.mainSitePhoto,width:32})})]})}),(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" siteInfo",children:(0,i.jsx)(Z,{title:null==N?void 0:null===(u=N.getSite)||void 0===u?void 0:u.title,firstName:null==N?void 0:null===(p=N.getSite)||void 0===p?void 0:p.firstName,lastName:null==N?void 0:null===(m=N.getSite)||void 0===m?void 0:m.lastName,isAuthor:A,numVisits:null==N?void 0:null===(x=N.getSite)||void 0===x?void 0:x.numVisits,siteId:k,isUsingOtpvToken:L,isSignedIn:R})})]})})}),(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" standardLayout sv",children:(0,i.jsxs)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" content marginBottom--0",children:[(0,i.jsxs)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" profilePhotoBorder",children:[(0,i.jsx)(r.Z,{width:126,publicId:null==N?void 0:null===(h=N.getSite)||void 0===h?void 0:null===(f=h.mainSitePhoto)||void 0===f?void 0:f.publicId,legacyPath:null==N?void 0:null===(b=N.getSite)||void 0===b?void 0:null===(g=b.mainSitePhoto)||void 0===g?void 0:g.legacyPath,isResponsive:!0}),A&&(!L||R)&&(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" positionEdit",children:(0,i.jsx)(P,{photo:null==N?void 0:null===(y=N.getSite)||void 0===y?void 0:y.mainSitePhoto,width:32})})]}),(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" siteInfo lv",children:(0,i.jsx)(Z,{firstName:null==N?void 0:null===(v=N.getSite)||void 0===v?void 0:v.firstName,lastName:null==N?void 0:null===(j=N.getSite)||void 0===j?void 0:j.lastName,isAuthor:A,numVisits:null==N?void 0:null===(w=N.getSite)||void 0===w?void 0:w.numVisits,isUsingOtpvToken:L,isSignedIn:R})}),(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" siteInfo sv center",children:(0,i.jsx)(Z,{firstName:null==N?void 0:null===(S=N.getSite)||void 0===S?void 0:S.firstName,lastName:null==N?void 0:null===(E=N.getSite)||void 0===E?void 0:E.lastName,isAuthor:A,numVisits:null==N?void 0:null===(T=N.getSite)||void 0===T?void 0:T.numVisits,siteId:k,isUsingOtpvToken:L,isSignedIn:R})}),A&&(!L||R)&&(0,i.jsx)("div",{className:a().dynamic([["8bf3dda950b26643",[32,32,s.Bs.MEDIUM,s.Bs.SMALL]]])+" settingsIcon",children:(0,i.jsx)(U,{siteId:k})})]})}),(0,i.jsx)(a(),{id:"8bf3dda950b26643",dynamic:[32,32,s.Bs.MEDIUM,s.Bs.SMALL],children:'.bleed.__jsx-style-dynamic-selector{position:relative}.standardLayout.__jsx-style-dynamic-selector{padding-bottom:0}.backgroundBanner.__jsx-style-dynamic-selector{position:absolute;top:0;left:0;right:0;min-height:80px;background-color:var(--gray-200);background-image:url("/img/bgProfile.svg");background-position:center bottom;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;background-repeat:no-repeat}.content.__jsx-style-dynamic-selector{position:relative;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:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding-top:18px;padding-bottom:24px;word-break:break-all}.profilePhotoWrapper.__jsx-style-dynamic-selector{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;width:-webkit-calc((290px - max(80px,min((100vw*.069 + 55.1px),126px)))/2 + max(80px,min((100vw*.069 + 55.1px),126px)));width:-moz-calc((290px - clamp(80px,(100vw*.069 + 55.1px),126px))/2 + clamp(80px,(100vw*.069 + 55.1px),126px));width:calc((290px - clamp(80px,(100vw*.069 + 55.1px),126px))/2 + clamp(80px,(100vw*.069 + 55.1px),126px))}.profilePhotoBorder.__jsx-style-dynamic-selector{-webkit-box-flex:0;-webkit-flex:0 0 auto;-moz-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;border:1.5px solid var(--gray-100);-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;width:max(80px,min((100vw*.069 + 55.1px),126px));width:clamp(80px,(100vw*.069 + 55.1px),126px);height:max(80px,min((100vw*.069 + 55.1px),126px));height:clamp(80px,(100vw*.069 + 55.1px),126px);position:relative}.positionEdit.__jsx-style-dynamic-selector{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;width:'.concat(32,"px;height:").concat(32,"px;position:absolute;bottom:0;right:0}.lv.__jsx-style-dynamic-selector{display:none}.settingsIcon.__jsx-style-dynamic-selector{position:absolute;right:-16px;top:45%;-webkit-transform:translatey(-50%);-moz-transform:translatey(-50%);-ms-transform:translatey(-50%);-o-transform:translatey(-50%);transform:translatey(-50%);width:58px;height:45px}@media(min-width:").concat(s.Bs.MEDIUM,"){.settingsIcon.__jsx-style-dynamic-selector{display:none}.backgroundBanner.__jsx-style-dynamic-selector{position:relative}.content.__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;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;gap:48px}.profilePhotoBorder.__jsx-style-dynamic-selector{margin-top:0;position:absolute;bottom:0;-webkit-transform:translatey(33%);-moz-transform:translatey(33%);-ms-transform:translatey(33%);-o-transform:translatey(33%);transform:translatey(33%)}.lv.__jsx-style-dynamic-selector{display:block}.sv.__jsx-style-dynamic-selector{display:none}.siteHeader.__jsx-style-dynamic-selector{margin-bottom:84px}.siteInfo.__jsx-style-dynamic-selector{color:var(--body-text);position:relative;
1left:-80px}}@media(max-width:").concat(s.Bs.SMALL,'){.content.__jsx-style-dynamic-selector{padding-bottom:10px}.backgroundBanner.__jsx-style-dynamic-selector{min-height:94px;background-image:url("/img/bgProfileMobile.svg")}}')})]})}function Z(e){let{title:t,firstName:n,lastName:o,isAuthor:r,numVisits:l,siteId:d,isUsingOtpvToken:c,isSignedIn:u}=e,p=null==n?void 0:n.trim(),m=null==o?void 0:o.trim(),x=(0,I.G3)(I.Z6.SITE_HOME_PAGE,{siteId:d}),f=x===(0,B.usePathname)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{"data-qa":"siteTitle",className:a().dynamic([["ff00e27efd077e58",[s.Bs.MEDIUM]]])+" siteTitle headerFont",children:[!f&&(0,i.jsx)("a",{href:x,"data-qa":"siteTitleHomeLink",className:a().dynamic([["ff00e27efd077e58",[s.Bs.MEDIUM]]])+" siteTitleLink",children:null!=t?t:" ".concat(p,"'s CaringBridge")}),f&&(null!=t?t:" ".concat(p,"'s CaringBridge"))]}),(0,i.jsx)("div",{"data-qa":"patientName",className:a().dynamic([["ff00e27efd077e58",[s.Bs.MEDIUM]]])+" patient siteInfoBoldText",children:"".concat(p," ").concat(m)}),(0,i.jsxs)("div",{className:a().dynamic([["ff00e27efd077e58",[s.Bs.MEDIUM]]])+" visitorInfo",children:[(0,i.jsx)("div",{"data-qa":"site-info-page-visits",className:a().dynamic([["ff00e27efd077e58",[s.Bs.MEDIUM]]])+" siteInfoBoldText",children:l}),r&&(!c||u)?(0,i.jsx)("a",{href:(0,I.G3)(I.Z6.SITE_SETTINGS_VISITORS,{siteId:d}),className:a().dynamic([["ff00e27efd077e58",[s.Bs.MEDIUM]]])+" siteInfoLightText",children:1===l?"visit":"visits"}):(0,i.jsx)("div",{className:a().dynamic([["ff00e27efd077e58",[s.Bs.MEDIUM]]])+" visitorCount",children:1===l?"visit":"visits"}),r&&(!c||u)&&(0,i.jsx)(H,{})]}),(0,i.jsx)(a(),{id:"ff00e27efd077e58",dynamic:[s.Bs.MEDIUM],children:".siteTitle.__jsx-style-dynamic-selector{color:var(--color-primary);font-size:24px}.patient.__jsx-style-dynamic-selector{font-size:20px;line-height:26px}.visitorInfo.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-size:16px;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:6px}.siteTitleLink{text-decoration:none;color:var(--color-primary)!important}.visitsCount{color:#24384c;padding-left:3px}.siteInfoBoldText{font-weight:500}.siteInfoLightText{font-weight:300;color:#24384c!important;text-decoration:underline;padding-left:3px}.visitorCount{padding-left:3px}.siteInfoLightText:hover{color:#963862!important;cursor:pointer;text-decoration:underline}@media(min-width:".concat(s.Bs.MEDIUM,"){.visitorInfo.__jsx-style-dynamic-selector{-webkit-box-pack:initial;-webkit-justify-content:initial;-moz-box-pack:initial;-ms-flex-pack:initial;justify-content:initial}}")})]})}function H(){var e,t,n,o;let s=(0,I.Ph)("siteId"),{data:r}=(0,R.a)(L.z7,{variables:{siteId:s}});return r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"jsx-a3182af8a1210f4e",children:"\xa0 | \xa0"}),(0,i.jsx)("div",{className:"jsx-a3182af8a1210f4e authorVisitors",children:(0,i.jsxs)("a",{href:(0,I.G3)(I.Z6.SITE_SETTINGS_VISITORS,{siteId:s}),className:"jsx-a3182af8a1210f4e a--isClear flexbox",children:[(0,i.jsx)("div",{"data-qa":"site-info-visitors",className:"jsx-a3182af8a1210f4e visitorCount",children:(null==r?void 0:null===(t=r.getSite)||void 0===t?void 0:null===(e=t.visitorConnection)||void 0===e?void 0:e.totalCount)||""}),(0,i.jsx)("div",{className:"jsx-a3182af8a1210f4e siteInfoLightText",children:(null==r?void 0:null===(o=r.getSite)||void 0===o?void 0:null===(n=o.visitorConnection)||void 0===n?void 0:n.totalCount)<=1?"visitor":"visitors"})]})}),(0,i.jsx)(a(),{id:"a3182af8a1210f4e",children:".authorVisitors.jsx-a3182af8a1210f4e{color:var(--color-primary);-webkit-transition:all var(--speed-on-toggle)linear;-moz-transition:all var(--speed-on-toggle)linear;-o-transition:all var(--speed-on-toggle)linear;transition:all var(--speed-on-toggle)linear}.authorVisitors.jsx-a3182af8a1210f4e:hover{color:var(--button-bg-hover)}.visitorCount.jsx-a3182af8a1210f4e{color:#24384c}"})]}):null}U.propTypes={siteId:E().string.isRequired},Z.propTypes={title:E().string,firstName:E().string.isRequired,lastName:E().string.isRequired,isAuthor:E().bool.isRequired,numVisits:E().number,siteId:E().string,isUsingOtpvToken:E().bool,isSignedIn:E().bool}},25350:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(67294),o=n(50319),a=n(71312),s=n(25351),r=n(4162);function l(e){let t=(0,r.Ph)(r.Tx.REACTION),[n,{data:l,loading:d,called:c}]=(0,o.D)(a.W_,{onError:e=>{console.log("addReaction error: ",e)}});(0,i.useEffect)(()=>
1{if(t){let i=(0,r.Ph)(r.Tx.PARENT);!i||l||d||c||(n({refetchQueries:[s.fo.GET_SITE_PAGE,"GET_SITE_CORE"],variables:{input:{parentId:i,parentType:e,type:t}}}),(0,r.aX)())}},[t,e])}},61082:function(e,t,n){n.d(t,{Z:function(){return x}});var i=n(85893),o=n(40645),a=n.n(o),s=n(24418),r=n(76248),l=n(20348),d=n(45697),c=n.n(d),u=n(86566),p=n(45338);function m(e){let{onNext:t,onPrev:n}=e,{mediaList:o,mediaIndex:s}=(0,l.j9)(),r=o[s];(0,u.Z)(["ArrowRight","ArrowDown"],t),(0,u.Z)(["ArrowLeft","ArrowUp"],n);let d=(0,p.QS)({onSwiped:e=>{let{dir:i}=e;switch(i){case"Left":t();break;case"Right":n()}}});return(0,i.jsxs)(i.Fragment,{children:[o.length>1&&(0,i.jsxs)("button",{"data-qa":"prev-photo-nav",onClick:e=>{n()},className:"jsx-1a83defda7ee904c navBtn navBtn--prev button--isClear hideOutlineForMouse",children:[(0,i.jsx)("i",{className:"jsx-1a83defda7ee904c fa-chevron-left fa-light"}),(0,i.jsx)("span",{className:"jsx-1a83defda7ee904c sr-only",children:"Show previous photo"})]}),o.length>1&&(0,i.jsxs)("button",{"data-qa":"next-photo-nav",onClick:e=>{t()},className:"jsx-1a83defda7ee904c navBtn navBtn--next button--isClear hideOutlineForMouse",children:[(0,i.jsx)("i",{className:"jsx-1a83defda7ee904c fa-chevron-right fa-light"}),(0,i.jsx)("span",{className:"jsx-1a83defda7ee904c sr-only",children:"Show next photo"})]}),(0,i.jsx)("div",{...d,className:"jsx-1a83defda7ee904c "+(d&&null!=d.className&&d.className||"detailImage"),children:(0,i.jsx)(r,{className:"jsx-1a83defda7ee904c"})}),(0,i.jsx)(a(),{id:"1a83defda7ee904c",children:".navBtn.jsx-1a83defda7ee904c{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;font-size:36px;width:64px;height:64px;position:absolute;top:50%;-webkit-transform:translatey(-50%);-moz-transform:translatey(-50%);-ms-transform:translatey(-50%);-o-transform:translatey(-50%);transform:translatey(-50%);opacity:.3;-webkit-transition:opacity linear var(--speed-on-hover);-moz-transition:opacity linear var(--speed-on-hover);-o-transition:opacity linear var(--speed-on-hover);transition:opacity linear var(--speed-on-hover);background-color:var(--gray-600);-webkit-border-radius:32px;-moz-border-radius:32px;border-radius:32px;z-index:1}.navBtn.jsx-1a83defda7ee904c:hover{opacity:1;-webkit-transition:opacity linear var(--speed-on-hover);-moz-transition:opacity linear var(--speed-on-hover);-o-transition:opacity linear var(--speed-on-hover);transition:opacity linear var(--speed-on-hover)}.navBtn.jsx-1a83defda7ee904c svg{margin:auto}.navBtn--prev.jsx-1a83defda7ee904c{left:6px}.navBtn--next.jsx-1a83defda7ee904c{right:6px}.detailImage.jsx-1a83defda7ee904c{height:-webkit-calc(100vh - 84px);height:-moz-calc(100vh - 84px);height:calc(100vh - 84px);width:100vw}"})]})}function x(){let{mediaModalShowing:e}=(0,l.j9)(),t=(0,l.Yx)(),n=()=>{t({type:l.w7.CLOSE_MEDIA_VIEWER})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.Z,{isShowing:e,setIsShowing:n,centerVertically:!1,children:(0,i.jsxs)("div",{className:"jsx-80834e2d9b9fa439 imageSection bleed",children:[(0,i.jsx)("div",{className:"jsx-80834e2d9b9fa439 closeBtn",children:(0,i.jsx)(s.Z,{"data-qa":"close-media-detail",onClick:n,isForModal:!1})}),(0,i.jsx)(m,{onNext:()=>{t({type:l.w7.SHOW_NEXT})},onPrev:()=>{t({type:l.w7.SHOW_PREV})}})]})}),(0,i.jsx)(a(),{id:"80834e2d9b9fa439",children:".closeBtn.jsx-80834e2d9b9fa439{text-align:right}.imageSection.jsx-80834e2d9b9fa439{height:100vh}"})]})}m.propTypes={onNext:c().func,onPrev:c().func}},20348:function(e,t,n){n.d(t,{w7:function(){return d},ZN:function(){return m},Yx:function(){return f},j9:function(){return x}});var i=n(85893),o=n(67294),a=n(45697),s=n.n(a);class r{setValue(e){for(let[t,n]of Object.entries(e))"type"!==t&&(this.state[t]=n);return this}showPrev(){return 0===this.state.mediaIndex?this.state.mediaIndex=this.state.mediaList.length-1:this.state.mediaIndex--,this}showNext(){return this.state.mediaIndex===this.state.mediaList.length-1?this.state.mediaIndex=0:this.state.mediaIndex++,this}setListenForEscape(e){return this.state.listenForEscape=e,this}loadMediaViewer(e,t){return this.state.mediaList=e,this.state.mediaIndex=t,this.state.mediaModalShowing=!0,this}closeMediaViewer(){return this.state.mediaList=[],this.state.mediaIndex=-1,this.state.mediaModalShowing=!1,this}getState(){return this.state}constructor(e){this.state={...e}}}let l={listenForEscape:!0,mediaModalShowing:!1,mediaList:[],mediaIndex:0},d={LOAD_MEDIA_VIEWER:"LOAD_MEDIA_VIEWER",CLOSE_MEDIA_VIEWER:"CLOSE_MEDIA_VIEWER",SET_VALUE:"SET_VALUE",SHOW_PREV:"SHOW_PREV",SHOW_NEXT:"SHOW_NEXT"},c=(0,o.createContext)(l),u=(0,o.createContext)(void 0);function p(e,t){switch(t.type){case d.SET_VALUE:return new r(e).setValue(t).getState();case d.SHOW_PREV:return new r(e).showPrev().getState();case d.SHOW_NEXT:return new r(e).showNext().getState();case d.LOAD_MEDIA_VIEWER:return new r(e).loadMediaViewer(t.mediaList,t.mediaIndex).getState();
1case d.CLOSE_MEDIA_VIEWER:return new r(e).closeMediaViewer().getState();default:throw Error("Invalid action type provided to the mediaReducer: “".concat(t.type,"”"))}}function m(e){let{value:t,children:n}=e,a={...l,...t},[s,r]=(0,o.useReducer)(p,a);return(0,i.jsx)(c.Provider,{value:s,children:(0,i.jsx)(u.Provider,{value:r,children:n})})}function x(){let e=(0,o.useContext)(c);if(void 0===e)throw Error("useMediaState must be used within <MediaProvider>");return e}function f(){let e=(0,o.useContext)(u);if(void 0===e)throw Error("useMediaDispatch must be used within <MediaProvider>");return e}m.propTypes={value:s().object,children:s().node.isRequired}},20139:function(e,t,n){n.d(t,{DV:function(){return T},G5:function(){return I},Ip:function(){return S},KN:function(){return N},Ko:function(){return P},Ky:function(){return O},Ln:function(){return _},QC:function(){return L},RO:function(){return D},Rt:function(){return k},UK:function(){return E},X8:function(){return F},Xo:function(){return q},Xq:function(){return A},ZY:function(){return R},hk:function(){return M},iS:function(){return B},pT:function(){return C}});var i=n(82729),o=n(17283);function a(){let e=(0,i._)(["\n    mutation UPDATE_AUTHOR_INVITE($action: InviteAction!, $id: String!) {\n        updateAuthorInvite(input: { action: $action, id: $id }) {\n            id\n            updatedAt\n            inviteStatus\n        }\n    }\n"]);return a=function(){return e},e}function s(){let e=(0,i._)(["\n    mutation UPDATE_SITE_AUTHOR(\n        $userId: ID!\n        $siteId: ID!\n        $isPrimaryCaregiver: Boolean\n        $relationshipToPatient: RelationshipToPatient\n    ) {\n        updateSiteUser(\n            input: {\n                userId: $userId\n                siteId: $siteId\n                isPrimaryCaregiver: $isPrimaryCaregiver\n                relationshipToPatient: $relationshipToPatient\n            }\n        ) {\n            siteId\n            userId\n            isPrimaryCaregiver\n            relationshipToPatient\n        }\n    }\n"]);return s=function(){return e},e}function r(){let e=(0,i._)(["\n    query GET_SITE_AUTHORS($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            authors {\n                id\n                firstName\n                lastName\n                email\n                authorAt\n                photo {\n                    publicId\n                    legacyPath\n                    width\n                    height\n                }\n                isPrimaryCaregiver\n                relationshipToPatient\n            }\n            context {\n                roles\n            }\n            isAuthor @client\n        }\n    }\n"]);return r=function(){return e},e}function l(){let e=(0,i._)(["\n    query GET_SITE_AUTHOR_INVITES($siteId: String!) {\n        authorInvites(query: { siteId: $siteId }) {\n            id\n            createdAt\n            firstName\n            lastName\n            inviteStatus\n            emailAddress\n            updatedAt\n        }\n    }\n"]);return l=function(){return e},e}function d(){let e=(0,i._)(["\n    mutation INVITE_AUTHOR(\n        $emailAddress: String!\n        $firstName: String!\n        $lastName: String!\n        $personalMessage: String\n        $sendInviterEmailCopy: Boolean\n        $sendOtherAuthorsEmailCopy: Boolean\n        $siteId: String!\n    ) {\n        createAuthorInvite(\n            input: {\n                emailAddress: $emailAddress\n                firstName: $firstName\n                lastName: $lastName\n                personalMessage: $personalMessage\n                sendInviterEmailCopy: $sendInviterEmailCopy\n                sendOtherAuthorsEmailCopy: $sendOtherAuthorsEmailCopy\n                siteId: $siteId\n            }\n        ) {\n            id\n            emailAddress\n            firstName\n            lastName\n            inviteStatus\n            siteId\n        }\n    }\n"]);return d=function(){return e},e}function c(){let e=(0,i._)(["\n    mutation DELETE_AUTHOR($siteId: String!, $userId: String!) {\n        deleteAuthor(input: { siteId: $siteId, userId: $userId })\n    }\n"]);return c=function(){return e},e}function u(){let e=(0,i._)(["\n    query GET_SITE_SETTINGS($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            firstName\n            lastName\n            numVisits\n            healthCondition\n            title\n            patientId\n            privacy\n            isSearchableInternally\n            isSearchablePublicly\n            allowAccessRequest\n            isShareableByVisitor\n            mainSitePhoto {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            context {\n                roles\n            }\n            isAuthor @client\n        }\n    }\n"]);return u=function(){return e},e}function p(){let e=(0,i._)(["\n    mutation UPDATE_SITE_GENERAL(\n        $siteId: String!\n        $firstName: String!\n        $lastName: String!\n        $healthCondition: HealthCondition\n        $title: String\n    ) {\n        updateSite(\n            input: {\n                siteId: $siteId\n                firstName: $firstName\n                lastName: $lastName\n                title: $title\n                healthCondition: $healthCondition\n            }\n        ) {\n            id\n            firstName\n            lastName\n            healthCondition\n            title\n        }\n    }\n"]);return p=function(){return e},e}function m(){let e=(0,i._)(["\n    query GET_SITE_BLOCK_LIST($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            blockList {\n                blockedAddress\n                blockedVisitor {\n                    firstName\n                    id\n                    lastName\n                    emailAddress\n                    lastVisitedAt\n                    photo {\n                        height\n                        publicId\n                        legacyPath\n                        width\n                    }\n                }\n            }\n        }\n    }\n"]);return m=function(){return e},e}function x(){let e=(0,i._)(["\n    mutation UPDATE_BLOCK_SITE_ACCESS($siteId: String!, $emailAddresses: [String!]!) {\n        blockSiteAccess(input: { siteId: $siteId, emailAddresses: $emailAddresses }
1) {\n            blockedAddresses\n        }\n    }\n"]);return x=function(){return e},e}function f(){let e=(0,i._)(["\n    mutation UPDATE_UNBLOCK_SITE_ACCESS($siteId: String!, $emailAddresses: [String!]!) {\n        unblockSiteAccess(input: { siteId: $siteId, emailAddresses: $emailAddresses }) {\n            unblockedAddresses\n        }\n    }\n"]);return f=function(){return e},e}function h(){let e=(0,i._)(["\n    query GET_SITE_ALLOW_LIST($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            allowList {\n                allowedAddress\n                allowedVisitor {\n                    firstName\n                    id\n                    lastName\n                    emailAddress\n                    lastVisitedAt\n                    photo {\n                        height\n                        publicId\n                        legacyPath\n                        width\n                    }\n                }\n            }\n        }\n    }\n"]);return h=function(){return e},e}function g(){let e=(0,i._)(["\n    query GET_SITE_REQUESTS($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            listAccessRequests {\n                id\n                createdAt\n                message\n                requestStatus\n                requester {\n                    emailAddress\n                    firstName\n                    photo {\n                        publicId\n                        legacyPath\n                    }\n                    lastName\n                    userId\n                }\n            }\n        }\n    }\n"]);return g=function(){return e},e}function b(){let e=(0,i._)(["\n    mutation UPDATE_ACCESS_REQUEST($id: String!, $action: AccessAction!) {\n        updateAccessRequest(input: { id: $id, action: $action }) {\n            id\n            requestStatus\n        }\n    }\n"]);return b=function(){return e},e}function y(){let e=(0,i._)(["\n    mutation UPDATE_ALLOW_SITE_ACCESS($siteId: String!, $emailAddresses: [String!]!) {\n        allowSiteAccess(input: { siteId: $siteId, emailAddresses: $emailAddresses }) {\n            allowedAddresses\n        }\n    }\n"]);return y=function(){return e},e}function v(){let e=(0,i._)(["\n    mutation UPDATE_REVOKE_SITE_ACCESS($siteId: String!, $emailAddresses: [String!]!) {\n        revokeSiteAccess(input: { siteId: $siteId, emailAddresses: $emailAddresses }) {\n            revokedAddresses\n        }\n    }\n"]);return v=function(){return e},e}function j(){let e=(0,i._)(["\n    query GET_SITE_VISITOR_CONNECTION(\n        $siteId: String!\n        $limit: Int\n        $nextToken: String\n        $sortDirection: SortDirection\n    ) {\n        getSite(query: { id: $siteId }) {\n            id\n            numVisits\n            privacy\n            visitorConnection(\n                query: {\n                    paginationInput: {\n                        limit: $limit\n                        nextToken: $nextToken\n                        sortDirection: $sortDirection\n                    }\n                }\n            ) {\n                nextToken\n                totalCount\n                visitors {\n                    emailAddress\n                    firstName\n                    id\n                    lastName\n                    lastVisitedAt\n                    photo {\n                        height\n                        publicId\n                        legacyPath\n                        width\n                    }\n                    status\n                }\n            }\n        }\n    }\n"]);return j=function(){return e},e}function w(){let e=(0,i._)(["\n        mutation UPDATE_SITE($siteId: String!",") {\n            updateSite(input: { siteId: $siteId"," }) {\n                id","\n            }\n        }\n    "]);return w=function(){return e},e}let S=(0,o.Ps)(a()),E=(0,o.Ps)(s()),T=(0,o.Ps)(r()),I=(0,o.Ps)(l()),_=(0,o.Ps)(d()),C=(0,o.Ps)(c()),k=(0,o.Ps)(u()),N=(0,o.Ps)(p()),A=(0,o.Ps)(m()),P=(0,o.Ps)(x()),M=(0,o.Ps)(f()),L=(0,o.Ps)(h()),R=(0,o.Ps)(g()),B=(0,o.Ps)(b()),O=(0,o.Ps)(y()),D=(0,o.Ps)(v()),F=(0,o.Ps)(j());function q(e){let t="",n="",i="";
1return e.forEach(e=>{let[[o,a]]=Object.entries(e);n+=", $".concat(o,": ").concat(a),i+=", ".concat(o,": $").concat(o),"PhotoInput"===a?t+=", ".concat(o," { width, height, publicId, legacyPath }"):t+=", "+o}),(0,o.Ps)(w(),n,i,t)}},63351:function(e,t,n){n.r(t),n.d(t,{default:function(){return E}});var i=n(85893),o=n(40645),a=n.n(o),s=n(67294),r=n(17191),l=n(50151),d=n(57747),c=n(64325),u=n(72303),p=n(13591),m=n(93717),x=n(14e3),f=n(93108),h=n(45697),g=n.n(h),b=n(50319);let y={FOLLOW_TOOLTIP:{header:"Follow This Page",body:"Receive notifications for new updates and support requests.",ctaText:"Follow",colorScheme:"#22538b",placement:"left",arrowSize:20,ctaPosition:"right"},DONATE_TOOLTIP:{header:"Support This Cause",body:"Your donation helps us continue to provide valuable resources to those in need.",ctaText:"Donate Now",colorScheme:"green",placement:"right",arrowSize:20},SHARE_TOOLTIP:{header:"Share This Page",body:"Spread the word by sharing this page with your friends and family.",ctaText:"Share",colorScheme:"purple",placement:"top",arrowSize:15},SIGNUP_TOOLTIP:{header:"Join Us Today",body:"Sign up to receive updates and special content tailored just for you.",ctaText:"Sign Up",colorScheme:"orange",placement:"bottom",arrowSize:25}};var v=n(25351),j=n(61922),w=n(98303);let S=e=>{let{tooltip:t,siteId:n,targetRef:o,onAction:h,vpWidth:g}
1=e,[S,E]=(0,s.useState)(!1),[T,I]=(0,s.useState)(!1),[_,C]=(0,s.useState)(!1),[k]=(0,b.D)(v.J$),[N]=(0,b.D)(v.Gi,{onCompleted:()=>{E(!1),C(!0)}}),A=(0,w.S)({base:"top",sm:"top",md:"right",lg:"right"})||"right",P=y[null==t?void 0:t.type]||y.FOLLOW_TOOLTIP;(0,s.useEffect)(()=>{(null==t?void 0:t.status)!=="ACTIVE"||_||E(!0)},[t,_]);let M=async()=>{I(!0),C(!0),await k({variables:{input:{siteId:n,type:"FOLLOW_TOOLTIP",action:"DISMISS"}}}),E(!1),I(!1)},L=async()=>{let e;I(!0);try{e=await N({variables:{input:{context:"FOLLOW_BUTTON",siteId:n}}})}catch(e){console.error("Error following page:",e)}finally{I(!1),e&&e.data.followSite.isFollowing?h({following:!0}):h({following:!1})}};return S&&(null==o?void 0:o.current)?(0,i.jsxs)(r.J,{isOpen:S,placement:g?g<1024?"top":"right":A,initialFocusRef:o,children:[(0,i.jsx)(l.x,{children:(0,i.jsx)(d.xu,{ref:o})}),(0,i.jsxs)(c.y,{zIndex:"1600",p:4,bg:"#22538b",color:"white",borderRadius:"md",className:"custom-popover","data-qa":"tooltip-content",children:[(0,i.jsx)(u.Q,{className:"custom-arrow"}),(0,i.jsx)(p.u,{color:"white",border:"0",_hover:{bg:"#1e4a76",cursor:"pointer"},_focus:{boxShadow:"none",outline:"none"},_active:{boxShadow:"none",outline:"none"},mt:1,cursor:"pointer",onClick:M,"data-qa":"tooltip-close-btn"}),(0,i.jsxs)(d.xu,{p:0,children:[(0,i.jsx)(m.k,{justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(x.x,{fontWeight:"semibold",fontSize:"18px",mb:2,"data-qa":"tooltip-header",children:P.header})}),(0,i.jsx)(x.x,{mb:2,mt:0,lineHeight:"1.4",fontWeight:"medium","data-qa":"tooltip-body",children:P.body}),(0,i.jsx)(m.k,{justifyContent:"flex-end",mt:2,children:(0,i.jsx)(f.z,{size:"sm",bg:"#22538b",color:"white",border:"1px solid white",borderRadius:"5",onClick:L,_hover:{bg:"#1e4a76"},_focus:{boxShadow:"none"},disabled:T,"data-qa":"tooltip-cta-btn",children:T?(0,i.jsx)(j.ZP,{spotSize:5,spotCount:3}):P.ctaText||"Follow"})})]})]}),(0,i.jsx)(a(),{id:"dbd137242805a9e1",children:".custom-popover{z-index:1600!important}.custom-popover .custom-arrow{background-color:#22538b!important;width:16px!important;height:16px!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;--popper-arrow-shadow-color:transparent!important;--popper-arrow-default-shadow:none!important}@media(max-width:767px){.custom-popover{-webkit-transform:translatey(-10px)!important;-moz-transform:translatey(-10px)!important;-ms-transform:translatey(-10px)!important;-o-transform:translatey(-10px)!important;transform:translatey(-10px)!important;margin-bottom:0px!important}.custom-popover .custom-arrow{bottom:-8px!important;top:auto!important;left:50%!important;-webkit-transform:rotate(45deg)translatex(-50%)!important;-moz-transform:rotate(45deg)translatex(-50%)!important;-ms-transform:rotate(45deg)translatex(-50%)!important;-o-transform:rotate(45deg)translatex(-50%)!important;transform:rotate(45deg)translatex(-50%)!important}}@media(min-width:768px)and (max-width:1023px){.custom-popover{-webkit-transform:translatey(-15px)!important;-moz-transform:translatey(-15px)!important;-ms-transform:translatey(-15px)!important;-o-transform:translatey(-15px)!important;transform:translatey(-15px)!important;margin-bottom:5px!important}.custom-popover .custom-arrow{bottom:-8px!important;top:auto!important;left:50%!important;-webkit-transform:rotate(45deg)translatex(-50%)!important;-moz-transform:rotate(45deg)translatex(-50%)!important;-ms-transform:rotate(45deg)translatex(-50%)!important;-o-transform:rotate(45deg)translatex(-50%)!important;transform:rotate(45deg)translatex(-50%)!important}}"})]}):null};S.propTypes={tooltip:g().shape({status:g().string,type:g().string}),siteId:g().string.isRequired,targetRef:g().object,onAction:g().func.isRequired,vpWidth:g().number};var E=S},14333:function(e,t,n){n.d(t,{Z:function(){return u}});var i=n(85893),o=n(25675),a=n.n(o),s=n(45697),r=n.n(s),l=n(61922),d=n(19502),c=n(67294);function u(e){let{id:t,legacyPath:n,width:o,height:s,maxWidth:r,maxHeight:d,responsive:u=!0}=e,[x,f]=(0,c.useState)(!1),[h,g]=(0,c.useState)(!1),b=()=>g(!0),{displayWidth:y,displayHeight:v}=m({width:o,height:s,maxWidth:r,maxHeight:d}),j=p(t,n,y,v);return(0,i.jsx)("span",{style:{position:"relative",display:"block",width:"100%",height:"100%"},children:h?(0,i.jsx)("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",minHeight:"48px",backgroundColor:"var(--body-bg)",color:"var(--gray-400)",fontSize:"24px"},"data-qa":"largeImage-errorFallback",children:(0,i.jsx)("i",{className:"fa-image fa-solid","aria-hidden":"true"})}):(0,i.jsxs)(i.Fragment,{children:[!x&&(0,i.jsx)(l.ZP,{centerIn:"parent"}),s?(0,i.jsx)(a(),{src:j,width:y,height:v,alt:"",style:u?{width:"100%",height:d?"100%":"auto",objectFit:"scale-down",visibility:x?"visible":"hidden"}:{visibility:x?"visible":"hidden"},onLoad:()=>f(!0),onError:b,unoptimized:!0}):(0,i.jsx)("img",{src:j,style:u?{width:"100%",height:d?"100%":"auto",objectFit:"scale-down",visibility:x?"visible":"hidden"}:{visibility:x?"visible":"hidden"},width:o,alt:"",loading:"lazy",decoding:"async",onLoad:()=>f(!0),onError:b})]})})}let p=(e,t,n,i)=>{let o=["c_limit","w_".concat(n),"q_auto:best"];return i&&o.push("h_".concat(i)),(0,d.h)(e,t,o)},m=e=>{let t,{width:n,height:i,maxWidth:o,maxHeight:a}=e,s=o||n||"auto";return i?(a?s=Math.round((t=a||i)*(n/i)):t=Math.round(i/n*s),{displayWidth:s,displayHeight:t}):{displayWidth:s,displayHeight:null}};u.propTypes={id:r().string,legacyPath:r().string,width:r().number,height:r().number,maxWidth:r().number,maxHeight:r().number,responsive:r().bool}},78744:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(85893);function o(e){return()=>(0,i.jsx)("i",{className:e})}n(67294)},26475:function(e,t,n){n.d(t,{K:function(){return o}});var i=n(67294);function o(e,t,n){(0,i.useEffect)(()=>{function i(e){let i;i=!0,Array.isArray(t)&&t.length&&(i=!t.some(t=>{var n;return!!t&&!!t.current&&!!e&&(null==e?void 0:e.composedPath())&&(null==e?void 0:null===(n=e.composedPath())||void 0===n?void 0:n.indexOf(t.current))>-1})),i&&n()}if(e)return window.addEventListener("click",i),()=>{window.removeEventListener("click",i)}},[e,t,n])}},68740:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(11163),o=n(67294),a=n(4162);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,[s,r]=(0,o.useState)((0,a.Ph)("siteId"));(0,o.useEffect)(()=>{let e=()=>{r((0,a.Ph)("siteId"))};return i.Router.events.on("routeChangeComplete",e),()=>{i.Router.events.off("routeChangeComplete",e)}},[]),(0,o.useEffect)(()=>
1{if(!s)return;let i=setTimeout(()=>{Array.isArray(t)&&t.length>0&&t.forEach(e=>{let{function:t,variables:n}=e;"function"==typeof t&&t(n)})},n);return e&&clearTimeout(i),()=>clearTimeout(i)},[e,s])}},37354:function(e,t,n){n.d(t,{Z:function(){return u}});var i=n(85893),o=n(67294),a=n(11163),s=n(43287),r=n(4162),l=n(75545),d=n(21598),c=n(13055);function u(e){let{siteDataError:t,handleAuthentication:n=!0,handle404:u=!0,isUsingOtpvToken:p=!1}=e,m=(0,a.useRouter)(),{isSignedIn:x}=(0,s.SE)(),f=(0,l.Jl)(null==t?void 0:t.graphQLErrors);(0,o.useEffect)(()=>{if(n&&t&&!x){let e;let t=(0,r.Ph)(r.Tx.FROM_URL),n=(0,r.Ph)(r.Tx.FIRST_NAME),i=t===r.Z6.SEARCH;i&&(e={[r.Tx.FROM_URL]:t,[r.Tx.FIRST_NAME]:n}),f===l.PX.HIGH_CAN_REQUEST||f===l.PX.HIGH_INVITE_ONLY||i||!m.query[r.Tx.SITE_ID]||(e={...e,[r.Tx.SITE_ID]:m.query[r.Tx.SITE_ID]}),p||(0,r.Eu)(void 0,!0,e,null,i)}},[t,x,n]),(0,o.useEffect)(()=>{u&&t&&!f&&x&&(0,r.Eh)((0,r.G3)(r.Z6.FOUR_04,{[r.Tx.FROM_URL]:m.pathname}),!0)},[t,f,x,u]);let h=null;return f&&(f===l.PX.ON_BLOCK_LIST||f===l.PX.HIGH_INVITE_ONLY?h=(0,i.jsx)(d.Z,{}):f===l.PX.HIGH_CAN_REQUEST&&(h=(0,i.jsx)(c.Z,{}))),{securityError:f,siteAccessCheckComponent:h}}}}]);

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.