"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8509],{93599:function(e,n,t){t.d(n,{Z:function(){return l}});var a=t(85893),i=t(36465),r=t.n(i);t(67294);var s=t(45697),o=t.n(s);function l(e){let{autoComplete:n="off",className:t="",domRef:i=null,type:s="text",width:o="100%",onChange:l,...d}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{autoComplete:n,type:s,ref:i,onChange:e=>{e.target&&l(e.target.value)},...d,className:r().dynamic([["b8a1149a63701aea",[o]]])+" "+(d&&null!=d.className&&d.className||"marginBottom--6 hideOutlineForMouse ".concat(t))}),(0,a.jsx)(r(),{id:"b8a1149a63701aea",dynamic:[o],children:"input.__jsx-style-dynamic-selector{display:block;width:".concat(o,"}")})]})}l.propTypes={autoComplete:o().string,className:o().string,"data-qa":o().string.isRequired,domRef:o().oneOfType([o().func,o().object]),onChange:o().func.isRequired,value:o().any.isRequired,type:o().string,width:o().string}},74769:function(e,n,t){t.d(n,{Z:function(){return u}});var a=t(85893),i=t(45697),r=t.n(i),s=t(67294),o=t(43221),l=t(93599),d=t(70504);function u(e){let{errorText:n="",label:t,onChange:i,...r}=e,u=(0,s.useId)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.Z,{htmlFor:u,children:t}),(0,a.jsx)(l.Z,{id:u,...r,onChange:i}),(0,a.jsx)(o.Z,{children:n})]})}u.propTypes={errorText:r().string,label:r().node.isRequired,onChange:r().func.isRequired,"data-qa":r().string.isRequired}},1706:function(e,n,t){t.d(n,{P:function(){return d},Z:function(){return u}});var a=t(85893),i=t(36465),r=t.n(i),s=t(67294),o=t(45697),l=t.n(o);let d={BLOCK:"--block",INLINE:"--inline"};function u(e){let{"data-qa":n,isChecked:t=!1,onChange:i,disabled:o=!1,isLoading:l=!1,label:u,display:c=d.BLOCK}=e,b=(0,s.useId)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{checked:t,"data-qa":n,disabled:o,id:b,onChange:e=>{i(e.target.checked)},type:"checkbox",className:"jsx-9b2be7a9b0e6437d sr-only"}),(0,a.jsxs)("label",{"data-qa":"".concat(n,"-label"),htmlFor:b,className:"jsx-9b2be7a9b0e6437d "+"display".concat(c),children:[(0,a.jsx)("span",{className:"jsx-9b2be7a9b0e6437d labelText",children:u}),(0,a.jsx)("span",{"data-qa":"".concat(n,"-frame"),className:"jsx-9b2be7a9b0e6437d "+"frame ".concat(l?"isLoading":""),children:(0,a.jsx)("span",{className:"jsx-9b2be7a9b0e6437d slider"})})]}),(0,a.jsx)(r(),{id:"9b2be7a9b0e6437d",children:'input.jsx-9b2be7a9b0e6437d:disabled+label.jsx-9b2be7a9b0e6437d{cursor:default}input.jsx-9b2be7a9b0e6437d:disabled+label.jsx-9b2be7a9b0e6437d .frame.jsx-9b2be7a9b0e6437d{opacity:.4}label.jsx-9b2be7a9b0e6437d{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;cursor:pointer;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:12px}.display--inline.jsx-9b2be7a9b0e6437d{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-moz-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin-bottom:0}.labelText.jsx-9b2be7a9b0e6437d{margin-right:12px;-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.frame.jsx-9b2be7a9b0e6437d{-webkit-box-flex:0;-webkit-flex:0 0 auto;-moz-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;display:inline-block;background-color:var(--gray-600);-webkit-border-radius:35px;-moz-border-radius:35px;border-radius:35px;width:35px;height:20px;text-align:center;-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}.isLoading.jsx-9b2be7a9b0e6437d{-webkit-background-size:10px 10px;-moz-background-size:10px 10px;-o-background-size:10px 10px;background-size:10px 10px;background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.3)25%,transparent 25%,transparent 50%,rgba(255,255,255,.3)50%,rgba(255,255,255,.3)75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.3)25%,transparent 25%,transparent 50%,rgba(255,255,255,.3)50%,rgba(255,255,255,.3)75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.3)25%,transparent 25%,transparent 50%,rgba(255,255,255,.3)50%,rgba(255,255,255,.3)75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.3)25%,transparent 25%,transparent 50%,rgba(255,255,255,.3)50%,rgba(255,255,255,.3)75%,transparent 75%,transparent);-webkit-animation:is-loading-stripes 2s linear infinite;-moz-animation:is-loading-stripes 2s linear infinite;-o-animation:is-loading-stripes 2s linear infinite;animation:is-loading-stripes 2s linear infinite}input.jsx-9b2be7a9b0e6437d:checked+label.jsx-9b2be7a9b0e6437d .frame.jsx-9b2be7a9b0e6437d{background-color:var(--berry-bridge-500);animation-direction:reverse}input.jsx-9b2be7a9b0e6437d:focus+label.jsx-9b2be7a9b0e6437d .frame.jsx-9b2be7a9b0e6437d{outline-width:2px;outline-style:solid;outline-color:Highlight;outline-color:-webkit-focus-ring-color}[data-whatinput="mouse"] input.jsx-9b2be7a9b0e6437d:focus+label.jsx-9b2be7a9b0e6437d .frame.jsx-9b2be7a9b0e6437d,[data-whatinput="touch"] input.jsx-9b2be7a9b0e6437d:focus+label.jsx-9b2be7a9b0e6437d .frame.jsx-9b2be7a9b0e6437d{outline:none}@-webkit-keyframes is-loading-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes is-loading-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes is-loading-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes is-loading-stripes{from{background-position:40px 0}to{background-position:0 0}}.slider.jsx-9b2be7a9b0e6437d{background-color:white;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:16px;margin-right:3px;-webkit-transform:translate(0,2px);-moz-transform:translate(0,2px);-ms-transform:translate(0,2px);-o-transform:translate(0,2px);transform:translate(0,2px);-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;width:16px}input.jsx-9b2be7a9b0e6437d:checked+label.jsx-9b2be7a9b0e6437d .slider.jsx-9b2be7a9b0e6437d{-webkit-transform:translate(9px,2px);-moz-transform:translate(9px,2px);-ms-transform:translate(9px,2px);-o-transform:translate(9px,2px);transform:translate(9px,2px);-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}input.jsx-9b2be7a9b0e6437d:not(:checked)+label.jsx-9b2be7a9b0e6437d .slider.jsx-9b2be7a9b0e6437d{-webkit-transform:translate(-6px,2px);-moz-transform:translate(-6px,2px);-ms-transform:translate(-6px,2px);-o-transform:translate(-6px,2px);transform:translate(-6px,2px);-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}'})]})}u.propTypes={"data-qa":l().string.isRequired,onChange:l().func.isRequired,isChecked:l().bool,disabled:l().bool,isLoading:l().bool,label:l().string,display:l().string}},72831:function(e,n,t){t.d(n,{Z:function(){return l}});var a=t(85893),i=t(9143),r=t(54303),s=t(3214),o=t(50178);function l(){return(0,a.jsx)(s.Z,{title:"Blocked",children:(0,a.jsx)("div",{className:"standardLayout marginTop--84 center",children:(0,a.jsxs)(i.Z,{children:[(0,a.jsx)("h1",{className:"h4",children:"The author of this site has chosen extra privacy"}),(0,a.jsx)("p",{children:"At this time, invitations to visit this website are being extended by the author only."}),(0,a.jsx)("div",{className:"marginTop--48",children:(0,a.jsx)(r.Z,{"data-qa":"privacyPolicy",href:o.Z6.LEGAL_PRIVACY_POLICY,children:"CaringBridge Privacy Policy"})})]})})})}},41548:function(e,n,t){t.d(n,{Z:function(){return f}});var a=t(82729),i=t(85893),r=t(81621),s=t(50319),o=t(9143),l=t(78604),d=t(74769),u=t(49638),c=t(54303),b=t(3214),p=t(67294),g=t(58172),x=t(50178);function m(){let e=(0,a._)(["\n mutation REQUEST_ACCESS($siteId: String!, $message: String) {\n requestAccess(input: { siteId: $siteId, message: $message })\n }\n"]);return m=function(){return e},e}let h=(0,r.Ps)(m());function f(){let[e,n]=(0,p.useState)(""),t=(0,x.Ph)("siteId"),[a,{data:r,error:m,loading:f}]=(0,s.D)(h,{variables:{siteId:t,message:e},onError(){}});return(0,i.jsx)(b.Z,{title:"Blocked",children:(0,i.jsx)("div",{className:"standardLayout marginTop--84 center",children:(0,i.jsxs)(o.Z,{style:{maxWidth:"37em"},children:[!r&&!m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"h4",children:"The author of this CaringBridge has chosen extra privacy"}),(0,i.jsx)("p",{children:"To request access, submit a request to the author."}),(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),a()},children:[(0,i.jsx)(d.Z,{label:"Message (optional)",onChange:n,value:e,"data-qa":"message"}),(0,i.jsx)("div",{className:"marginTop--24",children:(0,i.jsx)(c.Z,{"data-qa":"sendRequest",type:"submit",disabled:f,children:f?(0,i.jsx)(u.ZP,{}):"Send Request"})})]})]}),(null==r?void 0:r.requestAccess)==="success"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"h4",children:"Access request has been received"}),(0,i.jsx)("p",{children:"You will receive an email invitation from the author if you are approved."}),(0,i.jsx)("p",{children:(0,i.jsx)(c.Z,{"data-qa":"back",onClick:()=>{(0,x.Eh)(x.Z6.HOME)},children:"Back"})})]}),m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"h4",children:"There was a problem"}),(0,i.jsx)("p",{children:(console.log(JSON.stringify(m)),(0,g.QP)(m.graphQLErrors,["requestAccess"],void 0,"PendingAccessRequestAlreadyExists"))?"It looks like you have already requested access to this page. You will receive an email when the author grants you access.":(0,i.jsx)(l.Z,{})}),(0,i.jsx)("p",{children:(0,i.jsx)(c.Z,{"data-qa":"back",onClick:()=>{(0,x.Eh)(x.Z6.HOME)},children:"Back"})})]})]})})})}},91992:function(e,n,t){t.d(n,{NT:function(){return x},OU:function(){return _},Zn:function(){return g},b:function(){return h},dU:function(){return m},gI:function(){return f},m$:function(){return p}});var a=t(82729),i=t(81621);function r(){let e=(0,a._)(["\n query GET_SITE_WAYS_TO_HELP($siteId: String!) {\n getSite(query: { id: $siteId }) {\n id\n isAuthor @client\n firstName\n hideWaysToHelpWidget\n mainSitePhoto {\n publicId\n legacyPath\n width\n height\n }\n waysToHelps {\n showOnSite\n type\n item {\n ... on GoFundMe {\n id\n fundUrl\n siteId\n createdAt\n updatedAt\n initializedPostShared\n campaign {\n url\n name\n organizer\n goalAmount\n amountRaised\n fundUrl\n publishedAt\n status\n recentDonations {\n amount\n createdAt\n currency\n donorName\n isAnonymous\n }\n }\n }\n ... on MealTrain {\n id\n siteId\n shareLink\n createdAt\n updatedAt\n initializedPostShared\n }\n }\n }\n }\n }\n"]);return r=function(){return e},e}function s(){let e=(0,a._)(["\n mutation CONNECT_EXISTING_GO_FUND_ME($siteId: String!, $shareLink: String!) {\n connectExistingGoFundMe(input: { siteId: $siteId, shareLink: $shareLink })\n }\n"]);return s=function(){return e},e}function o(){let e=(0,a._)(["\n mutation DELETE_GO_FUND_ME($siteId: String!) {\n deleteGoFundMe(input: { siteId: $siteId })\n }\n"]);return o=function(){return e},e}function l(){let e=(0,a._)(["\n mutation INIT_GO_FUND_ME($siteId: String!) {\n initGoFundMe(input: { siteId: $siteId }) {\n partnerUrl\n }\n }\n"]);return l=function(){return e},e}function d(){let e=(0,a._)(["\n mutation UPDATE_WAYS_TO_HELP_POST(\n $siteId: String!\n $initializedPostShared: InitializedPostSharedStatus!\n $postType: WaysToHelpType!\n ) {\n updateWaysToHelpPost(\n input: {\n siteId: $siteId\n initializedPostShared: $initializedPostShared\n postType: $postType\n }\n ) {\n initializedPostShared\n }\n }\n"]);return d=function(){return e},e}function u(){let e=(0,a._)(["\n mutation CONNECT_MEALTRAIN($siteId: String!, $shareLink: String!) {\n connectMealTrain(input: { siteId: $siteId, shareLink: $shareLink }) {\n shareLink\n createdAt\n updatedAt\n initializedPostShared\n }\n }\n"]);return u=function(){return e},e}function c(){let e=(0,a._)(["\n mutation UPDATE_HIDE_WAYS_TO_HELP_WIDGET($siteId: String!, $hideWaysToHelpWidget: Boolean) {\n updateSite(input: { siteId: $siteId, hideWaysToHelpWidget: $hideWaysToHelpWidget }) {\n id\n hideWaysToHelpWidget\n }\n }\n"]);return c=function(){return e},e}function b(){let e=(0,a._)(["\n mutation UPDATE_WAYS_TO_HELPS($siteId: String!, $waysToHelpSettings: WaysToHelpSettings!) {\n updateWaysToHelps(input: { siteId: $siteId, waysToHelpSettings: $waysToHelpSettings }) {\n id\n hideWaysToHelpWidget\n waysToHelps {\n showOnSite\n type\n }\n }\n }\n"]);return b=function(){return e},e}let p=(0,i.Ps)(r()),g=(0,i.Ps)(s()),x=(0,i.Ps)(o()),m=(0,i.Ps)(l()),h=(0,i.Ps)(d()),f=(0,i.Ps)(u());(0,i.Ps)(c());let _=(0,i.Ps)(b())},81537:function(e,n,t){t.d(n,{T:function(){return a},c:function(){return i}});let a={GO_FUND_ME:"NEXT_PUBLIC_FF_GO_FUND_ME",MEAL_TRAIN:"NEXT_PUBLIC_FF_MEAL_TRAIN",SOCIAL_SIGN_ON:"NEXT_PUBLIC_FF_SOCIAL_SIGN_ON",IRB_SURVEY:"NEXT_PUBLIC_FF_IRB_SURVEY",UCLA_SURVEY:"NEXT_PUBLIC_FF_UCLA_SURVEY",FB_SHARE:"NEXT_PUBLIC_FF_FB_SHARE",GIFT_CARDS:"NEXT_PUBLIC_FF_GIFT_CARDS"};function i(e){return Object.values(a).includes(e)?"true"===({NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_INSTACART:"true",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_IRB_SURVEY:"true"})[e]:(console.error("The passed in flag: ",e,", is not included in the FeatureFlags list."),null)}}}]);