PageSourceSearch

https://www.caringbridge.org/_next/static/chunks/9357-69397d0dd8c98e60.js

js caringbridge.org collected 2026-09-24 08:39:39 UTC 9,502 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9357],{49357:function(e,t,n){n.d(t,{Nq:function(){return C},C9:function(){return S},yg:function(){return w},Fb:function(){return y}});var i=n(85893),a=n(40645),r=n.n(a),o=n(74129),s=n(86437),l=n(43287),u=n(90331),d=n(4162),c=n(45697),h=n.n(c),f=n(41664),g=n.n(f),m=n(67294),x=n(86921);function b(e){let{iso8601dateTime:t,prefix:n,suffix:a}=e,[r,o]=(0,m.useState)(""),[s,l]=(0,m.useState)(1e3);return(!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(0,m.useRef)();(0,m.useEffect)(()=>{n&&e&&e()},[]),(0,m.useEffect)(()=>{i.current=e},[e]),(0,m.useEffect)(()=>{if(null!==t){let e=setInterval(function(){i.current()},t);return()=>clearInterval(e)}},[t])}(()=>{let e=new Date(t),n=(0,x.Vd)(e);o(n),n||l(null)},s,!0),s)?(0,i.jsxs)(i.Fragment,{children:[n,r,a]}):null}function j(e){let{fieldName:t}=e,n=(0,d.Ph)("siteId"),{loading:i,data:a}=(0,u.Z)(n);if(i||!a)return null;switch(t){case"site.firstName":return a.getSite.firstName;case"site.lastName":return a.getSite.lastName;case"site.title":return a.getSite.title;case"site.tributeCount":return a.getSite.numTributes;case"site.donorCount":var r,o;return null===(o=a.getSite)||void 0===o?void 0:null===(r=o.tributeConnection)||void 0===r?void 0:r.totalDonorCount;default:return null}}b.propTypes={iso8601dateTime:h().string.isRequired,prefix:h().node,suffix:h().node},j.propTypes={fieldName:h().string.isRequired};let p=e=>{let t,{defaultFirstName:n="this person",tabContext:a="default",headerText:o,zeroTributesText:s,oneTributeText:l,multipleTributesText:c}=e,h=(0,d.Ph)("siteId"),{loading:f,data:g,error:m}=(0,u.Z)(h);if(f)return(0,i.jsx)("span",{children:"Loading..."});if(m||!g)return null;let x=g.getSite.numTributes||0,b=g.getSite.firstName||n,j={default:{header:"Tributes",zero:"Be the first donor to make a donation in honor of ".concat(b,"."),one:"Join the ".concat(x," donor who has made a donation in honor of ").concat(b,"."),multiple:"Join the ".concat(x," donors who have made a donation in honor of ").concat(b,".")},all:{header:"Tributes",zero:"Be the first donor to make a tribute gift in honor of ".concat(b,"."),one:"Join the ".concat(x," donor who has made a donation in honor of ").concat(b,"."),multiple:"Join the ".concat(x," donors who have made tribute gifts in honor of ").concat(b,".")},updates:{header:"Tributes",zero:"Be the first donor to make a tribute gift for this update.",one:"Join the ".concat(x," donor who has made a donation in honor of ").concat(b,"."),multiple:"Join the ".concat(x," donors who have made tribute gifts for this update.")},tributes:{header:"Tributes Wall",zero:"Be the first donor to make a tribute gift in honor of ".concat(b,"."),one:"Join the ".concat(x," donor who has made a donation in honor of ").concat(b,"."),multiple:"Join the ".concat(x," donors who have made tribute gifts in honor of ").concat(b,".")},singlePost:{header:"Tributes for this Update",zero:"Be the first donor to make a tribute gift for this update.",one:"Join the ".concat(x," donor who has made a donation in honor of ").concat(b,"."),multiple:"Join the ".concat(x," donors who have made tribute gifts for this update.")}},p=j[a]||j.default;return(t=0===x?s||p.zero:1===x?l||p.one:c||p.multiple,void 0!==o)?(0,i.jsxs)("div",{className:"jsx-3dbeef4facedebc3 tribute-text-container",children:[(0,i.jsx)("p",{className:"jsx-3dbeef4facedebc3 tribute-message",children:t}),(0,i.jsx)(r(),{id:"3dbeef4facedebc3",children:".tribute-text-container.jsx-3dbeef4facedebc3{margin-bottom:16px}.tribute-header.jsx-3dbeef4facedebc3{margin-bottom:8px}.tribute-message.jsx-3dbeef4facedebc3{margin:0}"})]}):(0,i.jsx)("span",{children:t})};function w(e){let{isSignedIn:t=!1,siteData:n=null,homepageIsAuthor:i=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!e||!((null==e?void 0:e.__typename)!=="Rule"||function(e){if(!e)return!1;let t=new Date(e);return!t||t.valueOf()>Date.now()}(e.startDate)||function(e){if(!e)return!1;let t=new Date(e);return!t||t.valueOf()<Date.now()}(e.endDate))&&(null!=n?!!(e.roles.includes("Author")&&n.isAuthor||e.roles.includes("Visitor")&&("Both"===e.visitorType&&!n.isAuthor||"Follower"===e.visitorType&&n.isFollower&&!n.isAuthor||"Not following"===e.visitorType&&!n.isFollower&&!n.isAuthor)):!!e.roles.includes("Signed-out")&&!t||(null!==i&&(e.roles.includes("Author")||e.roles.includes("Visitor"))?!!(e.roles.includes("Author")&&i||e.roles.includes("Visitor")&&!i):!!e.roles.includes("Signed-in")&&!!t))}function y(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{isSignedIn:i}=(0,l.SE)(),a=(0,d.Ph)("siteId"),{loading:r,data:o}=(0,u.Z)(a);return!!a&&!!r||w(e,{isSignedIn:i,siteData:a&&!r&&null!==(t=null==o?void 0:o.getSite)&&void 0!==t?t:null,homepageIsAuthor:n.homepageIsAuthor})}p.propTypes={defaultFirstName:h().string,tabContext:h().oneOf(["default","all","updates","tributes","singlePost"]),headerText:h().string,zeroTributesText:h().string,oneTributeText:h().string,multipleTributesText:h().string};var T={};function C(e){let{json:t,rules:n={}}=e;return T=n&&"object"==typeof n?n:{},(0,i.jsxs)("div",{className:"jsx-d0c77a77b6600257 richText",children:[(0,o.h)(t,L),(0,i.jsx)(r(),{id:"d0c77a77b6600257",children:".richText.jsx-d0c77a77b6600257>*:first-child{margin-top:0}.richText.jsx-d0c77a77b6600257>*:last-child{margin-bottom:0}"})]})}C.propTypes={json:h().object.isRequired,rules:h().object,tab:h().string};let L={renderText:e=>S(e,T),renderNode:{[s.BLOCKS.HR]:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{className:"jsx-53531e39b1c4dfa7 marginTop--24 marginBottom--24"}),(0,i.jsx)(r(),{id:"53531e39b1c4dfa7",children:"hr.jsx-53531e39b1c4dfa7{border-color:var(--berry-bridge-900)}"})]}),[s.BLOCKS.HEADING_1]:(e,t)=>(0,i.jsxs)("h1",{className:r().dynamic([["ebd12f8aefbc9a7d",[String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase()]]]),children:[t,(0,i.jsx)(r(),{id:"ebd12f8aefbc9a7d",dynamic:[String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase()],children:"h1.__jsx-style-dynamic-selector{text-align:".concat(String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase(),"}")})]}),[s.BLOCKS.HEADING_2]:(e,t)=>
1(0,i.jsxs)("h2",{className:r().dynamic([["e81a0c8a110830ac",[String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase()]]]),children:[t,(0,i.jsx)(r(),{id:"e81a0c8a110830ac",dynamic:[String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase()],children:"h2.__jsx-style-dynamic-selector{text-align:".concat(String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase(),"}")})]}),[s.BLOCKS.HEADING_3]:(e,t)=>(0,i.jsxs)("h3",{className:r().dynamic([["da4357181d4f0e11",[String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase()]]]),children:[t,(0,i.jsx)(r(),{id:"da4357181d4f0e11",dynamic:[String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase()],children:"h3.__jsx-style-dynamic-selector{text-align:".concat(String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase(),"}")})]}),[s.BLOCKS.HEADING_4]:(e,t)=>(0,i.jsxs)("h4",{className:r().dynamic([["7822277014fe75c3",[String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase()]]]),children:[t,(0,i.jsx)(r(),{id:"7822277014fe75c3",dynamic:[String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase()],children:"h4.__jsx-style-dynamic-selector{text-align:".concat(String(T.alignment&&"justify"!==T.alignment.toLowerCase()?T.alignment:"unset").toLowerCase(),"}")})]}),[s.BLOCKS.PARAGRAPH]:(e,t)=>{var n,a,o;return""==t[0][0]?null:(0,i.jsxs)("p",{className:r().dynamic([["abd8ae960a3f516d",[String(null!==(n=T.alignment)&&void 0!==n?n:"unset").toLowerCase()]]]),children:[t,(0,i.jsx)(r(),{id:"abd8ae960a3f516d",dynamic:[String(null!==(a=T.alignment)&&void 0!==a?a:"unset").toLowerCase()],children:"p.__jsx-style-dynamic-selector{text-align:".concat(String(null!==(o=T.alignment)&&void 0!==o?o:"unset").toLowerCase(),";margin:0;min-height:1em}")})]})},[s.BLOCKS.UL_LIST]:(e,t)=>(0,i.jsxs)("ul",{className:"jsx-7f22f60fa5751165",children:[t,(0,i.jsx)(r(),{id:"7f22f60fa5751165",children:"ul.jsx-7f22f60fa5751165 p{margin:0}"})]}),[s.INLINES.HYPERLINK]:(e,t)=>String(e.data.uri).startsWith("http")?(0,i.jsx)("a",{href:e.data.uri,children:t}):(0,i.jsx)(g(),{href:e.data.uri,children:t})}};function S(e,t){if(""===e)return[" "];if("string"!=typeof e)return e;let n=0,a=[...e.matchAll(/{.+?}/g)].reduce((a,r)=>{try{var o;let s=(o=JSON.parse(r[0]),Object.hasOwn(o,"dynamicText")&&"tributeTab"===o.dynamicText?(0,i.jsx)(p,{tabContext:o.context||"tributes",headerText:o.headerText||"Tributes Wall",zeroTributesText:o.zeroText,oneTributeText:o.oneText,multipleTributesText:o.manyText}):"countdown"===o.widget?(0,i.jsx)(b,{iso8601dateTime:t.endDate},"countdown"):Object.hasOwn(o,"data")?(0,i.jsx)(j,{fieldName:o.data},o.data):null);s?(a.push(v(e.substring(n,r.index))),a.push(s)):a.push(v(e.substring(n,r.index+r[0].length)))}catch(t){a.push(v(e.substring(n,r.index+r[0].length)))}return n=r.index+r[0].length,a},[]);return a.push(v(e.substring(n))),a}function v(e){return e.replace(/'s/g,"’s").replace(/n't/g,"n’t").replace(/'re/g,"’re").replace(/'d/g,"’d").replace(/'ll/g,"’ll").replace(/I'm/g,"I’m")}}}]);

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.