"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3151],{8988:function(e,n,t){t.d(n,{Z:function(){return m}});var i=t(85893),o=t(36465),r=t.n(o),a=t(67294),s=t(45697),c=t.n(s),l=t(3682),d=t(94184),u=t.n(d),b=t(70504);function m(e){let{domRef:n,className:t="",value:o="",initialHeight:s="40px",characterLimit:c=1e4,label:d,onExceedLimit:m=()=>{},onSubmit:p=e=>{},...y}=e,h=(0,a.useId)(),f=(0,a.useRef)(null);n&&(f=n);let[x,g]=(0,a.useState)(!1);(0,a.useEffect)(()=>{(0,l.Z)(f.current)},[f]),(0,a.useEffect)(()=>{if(f.current){let e;"function"==typeof Event?e=new Event("input"):(e=document.createEvent("Event")).initEvent("input",!1,!1),f.current.dispatchEvent(e)}o.length>=c?(g(!0),m()):g(!1)},[o,c,m]);let v=u()(t,{"marginBottom--6":!0,hideOutlineForMouse:!0});return(0,i.jsxs)("div",{className:r().dynamic([["ba9cdc5d940b30a0",[s]]]),children:[d&&(0,i.jsx)(b.Z,{htmlFor:h,children:d}),(0,i.jsx)("textarea",{ref:f,value:o,maxLength:c,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),p(e))},...y,className:r().dynamic([["ba9cdc5d940b30a0",[s]]])+" "+(y&&null!=y.className&&y.className||v||"")}),x&&(0,i.jsxs)("div",{className:r().dynamic([["ba9cdc5d940b30a0",[s]]])+" errorMessage",children:["Comment cannot exceed ",c," characters."]}),(0,i.jsx)(r(),{id:"ba9cdc5d940b30a0",dynamic:[s],children:"div.__jsx-style-dynamic-selector{width:100%}textarea.__jsx-style-dynamic-selector{display:block;height:".concat(s,";-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;border:thin solid var(--component-border);-webkit-transition:border-color ease-in-out var(--speed-on-hover);-moz-transition:border-color ease-in-out var(--speed-on-hover);-o-transition:border-color ease-in-out var(--speed-on-hover);transition:border-color ease-in-out var(--speed-on-hover);background-color:white;-webkit-border-radius:var(--radius-medium);-moz-border-radius:var(--radius-medium);border-radius:var(--radius-medium);line-height:inherit;resize:none;padding:8px 15px 6px;font-size:16px}.errorMessage.__jsx-style-dynamic-selector{color:var(--color-error)}")})]})}m.propTypes={className:c().string,domRef:c().any,initialHeight:c().string,value:c().string,label:c().node,characterLimit:c().number,onExceedLimit:c().func,onSubmit:c().func}},55385:function(e,n,t){t.d(n,{Z:function(){return d}});var i=t(85893),o=t(36465),r=t.n(o),a=t(45697),s=t.n(a),c=t(70504),l=t(43221);function d(e){let{id:n,className:t="",register:o,rules:a={},label:s,type:d="text",errorMessage:u="",...b}=e;return(0,i.jsxs)("span",{className:"jsx-c2247284c5470cb8",children:[(0,i.jsx)(c.Z,{htmlFor:n,children:s}),(0,i.jsx)("input",{id:n,"data-qa":n,type:d,...o(n,a),...b,className:"jsx-c2247284c5470cb8 "+(b&&null!=b.className&&b.className||"marginBottom--6 hideOutlineForMouse ".concat(t))}),(0,i.jsx)(l.Z,{children:u}),(0,i.jsx)(r(),{id:"c2247284c5470cb8",children:"input.jsx-c2247284c5470cb8{display:block;width:100%}"})]})}d.propTypes={id:s().string.isRequired,className:s().string,register:s().func.isRequired,rules:s().object,label:s().node.isRequired,type:s().string,errorMessage:s().string}},70504:function(e,n,t){t.d(n,{Z:function(){return c}});var i=t(85893),o=t(36465),r=t.n(o),a=t(45697),s=t.n(a);function c(e){let{children:n,htmlFor:t,...o}=e;return(0,i.jsxs)("label",{htmlFor:t,...o,className:"jsx-ee5b04898a09b6f3 "+(o&&null!=o.className&&o.className||"marginTop--24"),children:[n,(0,i.jsx)(r(),{id:"ee5b04898a09b6f3",children:"label.jsx-ee5b04898a09b6f3{display:block;margin-bottom:5px}"})]})}c.propTypes={children:s().node.isRequired,className:s().string,htmlFor:s().string.isRequired}},27453:function(e,n,t){t.d(n,{Z:function(){return u}});var i=t(85893),o=t(36465),r=t.n(o),a=t(45697),s=t.n(a),c=t(50809),l=t(96970),d=t(67294);function u(e){let{isResponsive:n=!1,width:t,publicId:o,legacyPath:a}=e,[s,u]=(0,d.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z,{isCircle:!0,width:n?"100%":t+"px",border:"2px solid white","data-qa":"profile-photo",children:(o||a)&&!s?(0,i.jsx)("div",{className:"jsx-949504f22dc18149 bkgd",children:(0,i.jsx)(l.Z,{id:o,legacyPath:a,width:t,responsive:n,onError:()=>u(e=>!e)})}):(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"jsx-949504f22dc18149",children:(0,i.jsx)("path",{fill:"currentColor",d:"M320 128a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM32 480H416c-1.2-79.7-66.2-144-146.3-144H178.3c-80 0-145 64.3-146.3 144zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z",className:"jsx-949504f22dc18149"})})}),(0,i.jsx)(r(),{id:"949504f22dc18149",children:".bkgd.jsx-949504f22dc18149{background-color:var(--body-bg);width:100%;height:100%}svg.jsx-949504f22dc18149{color:white;background-color:var(--sky);padding:0 28%4%;width:100%;height:100%}"})]})}u.propTypes={isResponsive:s().bool,width:s().number.isRequired,publicId:s().string,legacyPath:s().string}},50809:function(e,n,t){t.d(n,{Z:function(){return d}});var i=t(85893),o=t(36465),r=t.n(o),a=t(45697),s=t.n(a);t(67294);var c=t(94184),l=t.n(c);function d(e){let{children:n,width:t="100%",centerVertically:o=!1,isCircle:a=!1,border:s="initial",...c}=e,d=l()("squareLayout",{alignTop:!o});return(0,i.jsxs)("span",{...c,className:r().dynamic([["cc4453a1d230a255",[t,a?"50%":"initial",s]]])+" "+(c&&null!=c.className&&c.className||d||""),children:[(0,i.jsx)("span",{className:r().dynamic([["cc4453a1d230a255",[t,a?"50%":"initial",s]]])+" squareContent",children:n}),(0,i.jsx)(r(),{id:"cc4453a1d230a255",dynamic:[t,a?"50%":"initial",s],children:".squareLayout.__jsx-style-dynamic-selector{position:relative;width:".concat(t,';display:block}.squareLayout.__jsx-style-dynamic-selector::after{content:"";display:block;padding-bottom:100%}.squareContent.__jsx-style-dynamic-selector{position:absolute;top:0;left:5px;width:100%;height:100%;overflow:hidden;-webkit-border-radius:').concat(a?"50%":"initial",";-moz-border-radius:").concat(a?"50%":"initial",";border-radius:").concat(a?"50%":"initial",";border:").concat(s,"}.squareContent.__jsx-style-dynamic-selector div{width:100%;height:100%}.squareContent.__jsx-style-dynamic-selector img{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.alignTop.__jsx-style-dynamic-selector .squareContent.__jsx-style-dynamic-selector img{-o-object-position:top;object-position:top}")})]})}d.propTypes={children:s().node,centerVertically:s().bool,width:s().string,isCircle:s().bool,border:s().string}},77386:function(e,n,t){t.d(n,{Z:function(){return d}});var i=t(85893),o=t(36465),r=t.n(o),a=t(45697),s=t.n(a),c=t(94184),l=t.n(c);function d(e){let{className:n="",isForModal:t=!0,...o}=e,a=l()("button--isClear",n,{forModal:t});return(0,i.jsxs)("button",{...o,className:"jsx-1a830e5446e5697a "+(o&&null!=o.className&&o.className||a||""),children:[(0,i.jsx)("i",{className:"jsx-1a830e5446e5697a fa-xmark fa-light"}),(0,i.jsx)("span",{className:"jsx-1a830e5446e5697a sr-only",children:"Close"}),(0,i.jsx)(r(),{id:"1a830e5446e5697a",children:"button.jsx-1a830e5446e5697a{font-size:18px;width:42px;height:42px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-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}.forModal.jsx-1a830e5446e5697a{position:absolute;top:13px;right:18px;font-size:34px;color:var(--gray-500)}"})]})}d.propTypes={className:s().string,isForModal:s().bool,onClick:s().func.isRequired,"data-qa":s().string.isRequired}},38183:function(e,n,t){t.d(n,{Z:function(){return x}});var i=t(85893),o=t(36465),r=t.n(o),a=t(67294),s=t(45697),c=t.n(s),l=t(24678),d=t(61852),u=t(10750),b=t(94184),m=t.n(b),p=t(73935),y=t(84730);function h(e){let{baseElements:n=".footerStick",blur:t="2px",canScroll:o=!0,children:s=null,color:c="black",isForModal:l=!0,isModalInModal:d=!1,isShowing:u=!1,opacity:b=.7,overlayRef:h,...f}=e,x=m()("overlayScreen",{isModalInModal:d,isForModal:l}),g=()=>{if(y.S_){let e=document.querySelector(n);e&&(e.removeAttribute("aria-hidden"),e.style.filter="none")}};return((0,a.useEffect)(()=>{if(y.S_){let e=document.querySelector(n);if(l&&e)return u?(e.setAttribute("aria-hidden","true"),t&&(e.style.filter="blur(".concat(t,")"))):g(),g}}),y.s$)?null:(0,p.createPortal)((0,i.jsxs)("div",{ref:h,className:r().dynamic([["ae5af57bb00a4d7a",[u?"block":"none",c,b,u&&l?"block":"none",o?"auto":"clip"]]])+" overlay",children:[(0,i.jsx)("div",{...f,className:r().dynamic([["ae5af57bb00a4d7a",[u?"block":"none",c,b,u&&l?"block":"none",o?"auto":"clip"]]])+" "+(f&&null!=f.className&&f.className||x||"")}),(0,i.jsx)("div",{role:"dialog",className:r().dynamic([["ae5af57bb00a4d7a",[u?"block":"none",c,b,u&&l?"block":"none",o?"auto":"clip"]]])+" overlayContents",children:s}),(0,i.jsx)(r(),{id:"ae5af57bb00a4d7a",dynamic:[u?"block":"none",c,b,u&&l?"block":"none",o?"auto":"clip"],children:".overlayScreen.__jsx-style-dynamic-selector{display:".concat(u?"block":"none",";position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:").concat(c,";opacity:").concat(b,"}.isForModal.__jsx-style-dynamic-selector{z-index:var(--zindex-overlay-standard)}.isForModal.__jsx-style-dynamic-selector+.overlayContents.__jsx-style-dynamic-selector{z-index:var(--zindex-contents-standard)}.isModalInModal.__jsx-style-dynamic-selector{z-index:var(--zindex-overlay-modal-in-modal)}.isModalInModal.__jsx-style-dynamic-selector+.overlayContents.__jsx-style-dynamic-selector{z-index:var(--zindex-contents-modal-in-modal)}.overlayContents.__jsx-style-dynamic-selector{display:").concat(u&&l?"block":"none",";position:fixed;width:100vw;height:100vh;height:-webkit-fill-available;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;top:0;left:0;overflow-y:").concat(o?"auto":"clip","}")})]}),document.getElementById("overlay-portal"))}h.propTypes={baseElements:c().string,blur:c().string,canScroll:c().bool,children:c().node,color:c().string,isModalInModal:c().bool,isShowing:c().bool,isForModal:c().bool,opacity:c().number,overlayRef:c().oneOfType([c().object,c().func])};var f=t(68481);function x(e){let{children:n,className:t="",isShowing:o,setIsShowing:s,centerVertically:c=!0,shouldCloseOnEscape:b=!0,onClickOverlay:p,baseElements:y,blur:x,canScroll:g,color:v,isModalInModal:j=!1,opacity:w}=e,k=(0,u.Z)(),_=(0,a.useRef)(null),E=(0,a.useCallback)(e=>{"Escape"===e.key&&b&&o&&(s(!1),"function"==typeof b&&b())},[o,s,b]);return((0,f.Z)("Escape",E),o)?(0,i.jsxs)(l.Z,{children:[(0,i.jsx)(h,{baseElements:y,blur:x,canScroll:g,color:v,isForModal:!0,isModalInModal:j,isShowing:o,opacity:w,children:(0,i.jsx)(d.ZP,{disabled:!o,returnFocus:!0,children:(0,i.jsx)("div",{onClick:e=>{p&&e.target===_.current&&p()},ref:_,className:r().dynamic([["c703189963e9b786",[k]]])+" "+(m()("modalContainer",{"modalContainer--isVerticallyCentered":c},t)||""),children:(0,i.jsx)("div",{className:r().dynamic([["c703189963e9b786",[k]]])+" standardLayout modalContent",children:n})})})}),(0,i.jsx)(r(),{id:"c703189963e9b786",dynamic:[k],children:".modalContainer.__jsx-style-dynamic-selector{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;min-height:".concat(k,"px;width:100vw;color:white}.modalContainer--isVerticallyCentered.__jsx-style-dynamic-selector{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.modalContent.__jsx-style-dynamic-selector{padding-bottom:0}")})]}):null}x.propTypes={children:c().node.isRequired,className:c().string,isModalInModal:c().bool,isShowing:c().bool.isRequired,setIsShowing:c().func.isRequired,centerVertically:c().bool,shouldCloseOnEscape:c().oneOfType([c().bool,c().func]),onClickOverlay:c().func,baseElements:c().string,blur:c().string,canScroll:c().bool,color:c().string,opacity:c().number}},96970:function(e,n,t){t.d(n,{Z:function(){return l}});var i=t(85893),o=t(25675),r=t.n(o),a=t(45697),s=t.n(a),c=t(90266);function l(e){let{id:n,legacyPath:t,width:o,responsive:a=!1,onError:s=()=>{}}=e,l=(0,c.h)(n,t,["c_fill","g_face","ar_1:1","w_".concat(o),"q_auto"]);return(0,i.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,i.jsx)(r(),{src:l,width:o,height:o,style:a?{width:"100%",display:"block",objectFit:"cover"}:{display:"block",objectFit:"cover"},alt:"",onError:s,unoptimized:!0})})}l.propTypes={id:s().string,legacyPath:s().string,width:s().number.isRequired,responsive:s().bool,onError:s().func}},10815:function(e,n,t){t.d(n,{$h:function(){return o},Ef:function(){return d},H:function(){return a},H_:function(){return i},To:function(){return c},uY:function(){return l},yR:function(){return s},zU:function(){return r}});let i="caringbridge-ugc",o="765774846952648",r="https://assets.caringbridge.org",a="https://api.cloudinary.com",s={UPLOAD:"upload",PRIVATE:"private",AUTHENTICATED:"authenticated",FETCH:"fetch"},c={IMAGE:"image",VIDEO:"video",RAW:"raw"},l={CORRUPT_IMAGE:"CORRUPT_IMAGE",SERVER_ERROR:"SERVER_ERROR"},d={EXTENSIONS:[".png",".jpg",".jpeg",".gif",".heic",".webp"],MIME_TYPES:["image/png","image/jpeg","image/gif","image/heic","image/webp"]}},90266:function(e,n,t){t.d(n,{h:function(){return a}});var i=t(10815),o=t(84730);function r(e){let n;let t=(0,o.o8)();return n=t===o.v1.PROD?"legacy-prod.caringbridge.org":o.ab[t],"https://".concat(n,"/assets/ugc/").concat(e)}function a(e,n,t){let o="";return n&&!e?o=r(n):e&&(o=e.startsWith("/")?r(e):function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.push("f_auto");let t=!n.some(e=>e.startsWith("q_"));t&&n.push("q_auto");let o=n.join(",");return"".concat(i.zU,"/").concat(i.To.IMAGE,"/").concat(i.yR.UPLOAD,"/").concat(o,"/").concat(e)}(e,t)),o}},68481:function(e,n,t){t.d(n,{Z:function(){return o}});var i=t(67294);function o(e,n,t){if(t&&!Array.isArray(t))throw Error("When passing effectDependencies into useKeystroke it must be an array.");(0,i.useEffect)(()=>{let t=t=>{!t.repeat&&[].concat(e).includes(t.key)&&n(t)};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[e,n,...null!=t?t:[]])}},10750:function(e,n,t){t.d(n,{Z:function(){return o}});var i=t(67294);function o(){let[e,n]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e=()=>{requestAnimationFrame(()=>n(window.innerHeight))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}}}]);