1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4911],{90669:function(e,t,n){"use strict";var i=n(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var o=["html","dangerouslySetInnerHTML"];t.Z=function(e){var t=e.html,n=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,o),l=(0,i.useRef)(null),a=(0,i.useRef)(!0);return(0,i.useEffect)(function(){if(!t||!l.current)throw Error("html prop cant't be null");if(a.current){a.current=!1;var e=document.createRange().createContextualFragment(t);l.current.innerHTML="",l.current.appendChild(e)}},[t,l]),i.createElement("div",r({},n,{ref:l}))}},49955:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cms-preview/tributeInline/[id]",function(){return n(33023)}])},26487:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(85893),r=n(37887),o=n(29579),l=n(61922),a=n(4162),s=n(28953),c=n(64682);function u(e,t){return n=>{let u;let d=(0,a.Ph)("id"),{data:f,loading:m,error:b}=(0,r.a)(t,{variables:{id:d},client:s.S9}),{sectionLoading:x,sectionData:p}=(0,c.aq)(f,t);return m||x?(0,i.jsx)(l.ZP,{}):b?(0,i.jsx)(o.Z,{children:b.message}):f?(u=p?{...f,page:{...f.page,sectionsCollection:{...f.page.sectionsCollection,items:p}}}:f,(0,i.jsx)(e,{previewData:u,...n})):(0,i.jsx)(o.Z,{children:"No data found for this component."})}}},65540:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var i=n(85893),r=n(40645),o=n.n(r),l=n(67294),a=n(45697),s=n.n(a),c=n(73775),u=n(28618),d=n(49357),f=n(22878),m=n(41664),b=n.n(m),x=n(4162),p=n(43287),h=n(37887),v=n(83314),g=n(41420),w=n(25017),j=n(87036),y=n(28819),k=n(65870);function I(e){var t,n,r;let{tributeInlineJson:a,className:s="",preview:m=!1,tab:I}=e,N=(0,x.Ph)("siteId"),{isSignedIn:_,id:C,firstName:E,lastName:M,emailAddress:z}=(0,p.SE)(),{data:D,loading:S}=(0,h.a)(v.j,{skip:!_}),{page:O}=(0,c.bh)(),B=null!==(n=null==O?void 0:O.tributeInline)&&void 0!==n?n:a,L=(0,d.Fb)(null==B?void 0:B.rules)||m,T=null!==(r=null==B?void 0:B.fruFormId)&&void 0!==r?r:null,Z=!!T,P={feed:"splitCodeFeed",posts:"splitCodePosts"}[null==I?void 0:I.toLowerCase()],A=(null==B?void 0:B[P])||(null==B?void 0:B.splitCode)||null,F=(0,w.ew)(A,""),[U,q]=(0,l.useState)(!1);if(!B||!L||S)return null;let{headline:R,body:G,buttonText:H,rules:X,daysSinceDonation:Y}=B;return(0,y.$)(Y,null==D?void 0:null===(t=D.me)||void 0===t?void 0:t.mySites,N,_)?null:(0,i.jsxs)("div",{className:"".concat(s),children:[(0,i.jsxs)(u.Z,{className:"tributeInlineCard paddingTopBottom--24 marginBottom--12 paddingLeftRight--48",isForModal:!0,children:[(0,i.jsxs)("section",{className:o().dynamic([["c02bcb57e133d3be",[j.Bs.MEDIUM]]])+" ",children:[(0,i.jsxs)("div",{className:o().dynamic([["c02bcb57e133d3be",[j.Bs.MEDIUM]]])+" textColumn",children:[(0,i.jsx)("h1",{className:o().dynamic([["c02bcb57e133d3be",[j.Bs.MEDIUM]]])+" h6 marginTop--0 marginBottom--6",children:(0,d.C9)(R)}),(0,i.jsx)(d.Nq,{json:G.json,rules:X||void 0})]}),Z?(0,i.jsx)(f.Z,{className:"tributeInlineDonateButton",size:g.i.SMALL,"data-qa":"tributeAction",onClick:()=>q(!0),children:H}):(0,i.jsx)(b(),{href:F,legacyBehavior:!0,children:(0,i.jsx)(f.Z,{className:"tributeInlineDonateButton",size:g.i.SMALL,"data-qa":"tributeAction",children:H})})]}),(0,i.jsx)(o(),{id:"c02bcb57e133d3be",dynamic:[j.Bs.MEDIUM],children:".tributeInlineCard{margin-bottom:24px}section.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.textColumn.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.tributeInlineDonateButton{height:44px;background-color:var(--yellow)!important;color:var(--body-text)!important}.tributeInlineDonateButton:hover{background-color:var(--yellow-hover)!important}@media(max-width:".concat(j.Bs.MEDIUM,"){section.__jsx-style-dynamic-selector{text-align:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.tributeInlineDonateButton{margin-top:12px}}")})]}),Z&&(0,i.jsx)(k.Z,{isOpen:U,onClose:()=>q(!1),initialMessage:"",initialSignature:"".concat(E||""," ").concat(M||"").trim(),siteId:N,userId:C,formId:T,splitCode:A,supporter:{firstName:E,lastName:M,email:z},source:"tribute-inline-widget"})]})}
1I.propTypes={tributeInlineJson:s().object,className:s().string,preview:s().bool,previewTributeCount:s().number,tab:s().string}},28819:function(e,t,n){"use strict";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}n.d(t,{$:function(){return i}})},83314:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var i=n(82729);function r(){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 r=function(){return e},e}let o=(0,n(17283).Ps)(r())},33023:function(e,t,n){"use strict";n.r(t);var i=n(85893),r=n(45697),o=n.n(r),l=n(67598);n(27121);var a=n(26487),s=n(23028),c=n(65540),u=n(28618);function d(e){let{previewData:t}=e,n=(0,l.pc)(null==t?void 0:t.tribute);return(0,i.jsxs)(l.Dk,{locale:"en-US",children:[(0,i.jsx)(u.Z,{children:(0,i.jsxs)("p",{className:"callout",children:["FYI: For these previews, we are unable to retrieve Site data, therefore if your text contains replacements such as ",(0,i.jsx)("code",{children:'{"data": "site.firstName"}'}),", that part shows up blank."]})}),(0,i.jsx)(c.Z,{tributeInlineJson:n,preview:!0,previewTributeCount:0})]})}d.propTypes={previewData:o().object.isRequired},t.default=(0,a.Z)(d,s.Uo)},5460:function(e,t,n){"use strict";n.d(t,{E:function(){return s}});var i=n(16554),r=n(85893),o=(0,i.G)(function(e,t){let{htmlWidth:n,htmlHeight:i,alt:o,...l}=e;return(0,r.jsx)("img",{width:n,height:i,ref:t,alt:o,...l})});o.displayName="NativeImage";var l=n(47630),a=n(59235),s=(0,i.G)(function(e,t){let{fallbackSrc:n,fallback:i,src:s,srcSet:c,align:u,fit:d,loading:f,ignoreFallback:m,crossOrigin:b,fallbackStrategy:x="beforeLoadOrError",referrerPolicy:p,...h}=e,v=void 0!==n||void 0!==i,g=null!=f||m||!v,w=(0,l.d)({...e,crossOrigin:b,ignoreFallback:g}),j=(0,l.z)(w,x),y={ref:t,objectFit:d,objectPosition:u,...g?h:function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(h,["onError","onLoad"])};return j?i||(0,r.jsx)(a.m.img,{as:o,className:"chakra-image__placeholder",src:n,...y}):(0,r.jsx)(a.m.img,{as:o,src:s,srcSet:c,crossOrigin:b,loading:f,referrerPolicy:p,className:"chakra-image",...y})});s.displayName="Image"},47630:function(e,t,n){"use strict";n.d(t,{d:function(){return o},z:function(){return l}});var i=n(26245),r=n(67294);function o(e){let{loading:t,src:n,srcSet:o,onLoad:l,onError:a,crossOrigin:s,sizes:c,ignoreFallback:u}=e,[d,f]=(0,r.useState)("pending");(0,r.useEffect)(()=>{f(n?"loading":"pending")},[n]);let m=(0,r.useRef)(),b=(0,r.useCallback)(()=>{if(!n)return;x();let e=new Image;e.src=n,s&&(e.crossOrigin=s),o&&(e.srcset=o),c&&(e.sizes=c),t&&(e.loading=t),e.onload=e=>{x(),f("loaded"),null==l||l(e)},e.onerror=e=>{x(),f("failed"),null==a||a(e)},m.current=e},[n,s,o,c,l,a,t]),x=()=>{m.current&&(m.current.onload=null,m.current.onerror=null,m.current=null)};return(0,i.G)(()=>{if(!u)return"loading"===d&&b(),()=>{x()}},[d,b,u]),u?"loaded":d}var l=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t},57169:function(e,t,n){"use strict";n.d(t,{g:function(){return d}});var i=n(28912),r=n(16554),o=n(77030),l=n(33179),a=n(59235),s=n(25432),c=n(85893),u=["h","minH","height","minHeight"],d=(0,r.G)((e,t)=>{let n=(0,o.mq)("Textarea",e),{className:r,rows:d,...f}=(0,l.Lr)(e),m=(0,i.Y)(f),b=d?function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(n,u):n;return(0,c.jsx)(a.m.textarea,{ref:t,rows:d,...m,className:(0,s.cx)("chakra-textarea",r),__css:b})});d.displayName="Textarea"},7963:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var i=n(21089),r=n(937),o=n(7634),l=n(67294);function a(e){let{theme:t}=(0,o.uP)(),n=(0,i.OX)();return(0,l.useMemo)(()=>(0,r.Cj)(t.direction,{...n,...e}),[e,t.direction,n])}}},function(e){e.O(0,[5680,5717,4389,9357,5017,5870,4682,2888,9774,179],function(){return e(e.s=49955)}),_N_E=e.O()}]);
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.