1"use strict";(self.webpackChunkwe_remember=self.webpackChunkwe_remember||[]).push([[1681],{1681:(lt,l,n)=>{n.r(l),n.d(l,{MemoryModule:()=>ot});var c=n(8583),u=n(1228),y=n(8970),f=n(9467),v=n(6205),x=n(3321),M=n(9523),C=n(3420),O=n(4967),h=n(3159),a=n(8168),P=n(4483),d=n(3611),t=n(7716),S=n(8426),g=n(7391),b=n(6817),_=n(7593),T=n(7936),Z=n(4220),k=n(914),I=n(3810),A=n(448),L=n(1090),Y=n(9744),z=n(337),J=n(477),R=n(7925),Q=n(6391),U=n(6942),F=n(4098),w=n(7061),E=n(6064),N=n(8392);function j(o,i){if(1&o&&(t.TgZ(0,"div",15),t._UZ(1,"mem-media-carousel",16),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("collection",e.memoryStore.memory.media)("audio",e.memoryStore.memory.audioMemory)("guest",e.memoryStore.memory.guest)}}function D(o,i){if(1&o&&(t.TgZ(0,"div",17),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(' Response to "',e.question.content,'" ')}}function B(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",18),t.TgZ(1,"mem-button-cta",19),t.NdJ("finished",function(m){t.CHM(e);const s=t.oxw(2);return s.like(m,!s.memoryStore.details.hasLiked)}),t._uU(2),t.qZA(),t.TgZ(3,"mem-button-cta",20),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).share()}),t._uU(4,"SHARE MEMORY"),t.qZA(),t.qZA()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("iconLeft",e.memoryStore.details.hasLiked?"icon-liked":"icon-like")("width",e.memoryStore.details.hasLiked?"84":"74"),t.xp6(1),t.hij(" LIKE",e.memoryStore.details.hasLiked?"D":"","")}}function H(o,i){if(1&o&&(t.TgZ(0,"div",26),t.TgZ(1,"span",27),t._uU(2),t.qZA(),t.qZA()),2&o){const e=t.oxw(3);t.xp6(2),t.hij("",e.memoryStore.memory.likes.length," LIKES")}}function $(o,i){if(1&o&&t._UZ(0,"mem-comment",30),2&o){const e=t.oxw(),r=e.$implicit,m=e.index;t.Q6J("comment",r)("index",m)("status",r.status)("attributionSize","menu")}}function W(o,i){if(1&o&&(t.TgZ(0,"div",28),t.YNc(1,$,1,4,"mem-comment",29),t.qZA()),2&o){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",!(e.contentType&&"listItem"===e.contentType||e.type&&"listItem"===e.type))}}function K(o,i){if(1&o&&t._UZ(0,"mem-comment-form",31),2&o){const e=t.oxw(3);t.Q6J("memoryPending","pending"===e.memoryStore.memory.status)}}function G(o,i){if(1&o&&(t.TgZ(0,"div",21),t.YNc(1,H,3,1,"div",22),t.TgZ(2,"div",23),t._uU(3,"COMMENTS"),t.qZA(),t.YNc(4,W,2,1,"div",24),t.YNc(5,K,1,1,"mem-comment-form",25),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(null==e.memoryStore.memory||null==e.memoryStore.memory.likes?null:e.memoryStore.memory.likes.length)>0),t.xp6(3),t.Q6J("ngForOf",e.comments),t.xp6(1),t.Q6J("ngIf","pending"!==e.memoryStore.memory.status&&"blocked"!==e.memoryStore.memory.status&&"reported"!==e.memoryStore.memory.status)}}const X=function(o,i){return[o,i,"memories"]};function V(o,i){if(1&o&&(t.TgZ(0,"div",4),t.TgZ(1,"div",5),t.TgZ(2,"a",6),t.TgZ(3,"button",7),t._uU(4,"Back to Memorial"),t.qZA(),t.qZA(),t.qZA(),t.YNc(5,j,2,3,"div",8),t.TgZ(6,"div",9),t._UZ(7,"mem-attribution",10),t.YNc(8,D,2,1,"div",11),t._UZ(9,"div",12),t.ALo(10,"newLine"),t.YNc(11,B,5,3,"div",13),t.qZA(),t.YNc(12,G,6,3,"div",14),t.qZA()),2&o){const e=t.oxw();
1t.xp6(2),t.Q6J("routerLink",t.WLB(19,X,"/"+e.store.memorialRoute.memorial,e.store.memorialRoute.shortId)),t.xp6(1),t.Q6J("white",!0),t.xp6(2),t.Q6J("ngIf",null==e.memoryStore.memory?null:e.memoryStore.memory.media),t.xp6(1),t.ekj("media",null==e.memoryStore.memory?null:e.memoryStore.memory.media)("single-image",(null==e.memoryStore.memory||null==e.memoryStore.memory.media?null:e.memoryStore.memory.media.length)<2),t.xp6(1),t.Q6J("fullRelationship",!0)("userId",e.memoryStore.memory.userId)("created",e.memoryStore.memory.createdAt)("guest",e.memoryStore.memory.guest)("size","menu"),t.xp6(1),t.Q6J("ngIf",e.question&&e.question.content),t.xp6(1),t.Q6J("innerHTML",t.xi3(10,16,e.memoryStore.memory.content,2),t.oJD),t.xp6(2),t.Q6J("ngIf",e.memoryStore.details),t.xp6(1),t.Q6J("ngIf",e.memoryStore.details)}}const tt=g.Bz.forChild([{path:"",component:(()=>{class o extends P.n{constructor(e,r,m,s,nt,it,rt,mt,st,ct,at,dt,gt){super(),this.store=e,this.route=r,this.memoryService=m,this.memoryStore=s,this.initService=nt,this.userStore=it,this.analyticsService=rt,this.toastService=mt,this.raygun=st,this.shareService=ct,this.componentRef=at,this.loaderService=dt,this.helperService=gt,this.liking=!1,this.hasLiked=!1,this.helperService.isBrowser()&&!this.memoryStore.memory&&this.loaderService.open()}ngOnInit(){this.subs.sink=this.route.params.pipe((0,h.z)(e=>this.initService.init(e)),(0,h.z)(()=>(0,O.D)([this.memoryService.getSingleMemory(this.route.snapshot.params.id).pipe((0,a.b)(e=>{this.memoryStore.tagMemory(e),this.memoryStore.memory.questionId&&(this.question=(0,C.Z)(this.store.questions,{id:this.memoryStore.memory.questionId})[0],this.question&&this.question.question&&(this.question.content=this.question.question)),this.componentRef.markForCheck(),this.loaderService.close()})),this.memoryService.getMemoryDetails(this.route.snapshot.params.id),this.memoryStore.detailsObservable.pipe((0,a.b)(e=>{this.comments=null==e?void 0:e.comments,this.componentRef.markForCheck()}))]))).subscribe()}ngOnDestroy(){this.memoryStore.clear()}like(e,r){if("signedIn"===e&&!this.liking){this.liking=!0,this.componentRef.markForCheck();let m={contentType:M.z.like,componentType:"iconButton",parentComponentType:"tile-toolbar"};this.subs.sink=this.memoryService.likeOrUnlikeMemory(this.memoryStore.memory.contentId,this.userStore.user.id,r).pipe((0,a.b)(()=>{r?(this.hasLiked=!0,this.analyticsService.sendTrackingEvent(d.z.AddContent,m)):(this.hasLiked=!1,this.analyticsService.sendTrackingEvent(d.z.DeleteContent,m)),this.liking=!1,this.componentRef.markForCheck()})).subscribe({next:()=>{},error:s=>{403===s.status&&this.toastService.openToast("Unable to save content. An editor has restricted your privileges for this memorial. Contact the owner or an editor directly to resolve the issue.",["red"]),this.analyticsService.sendTrackingEvent(d.z.AbandonContent,Object.assign(Object.assign({},m),{error:!0,errorText:s,errorCode:s.status})),this.raygun.sendError(new Error("error saving content"),{error:this.raygun.stringifyError(s)})}})}this.componentRef.markForCheck()}share(){this.subs.sink=this.shareService.share({url:`https://${window.location.hostname}/${this.store.memorialRoute.memorial}/${this.store.memorialRoute.shortId}/memory/${this.memoryStore.memory.contentId}`,tracking:{parentComponentType:"full-page-memory",shareTarget:"memory"}}).subscribe(),this.componentRef.markForCheck()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(S.F),t.Y36(g.gz),t.Y36(b.S),t.Y36(_.O),t.Y36(T.U),t.Y36(Z.U6),t.Y36(k.y),t.Y36(I.k),t.Y36(A.b),t.Y36(L.t),t.Y36(t.sBO),t.Y36(Y.D),t.Y36(z.W))},o.\u0275cmp=t.Xpm({type:o,selectors:[["mem-memory"]],features:[t.qOj],decls:4,vars:1,consts:[[1,"banner-background"],[1,"photo-overlay"],[1,"photo-gradient"],["class","memory",4,"ngIf"],[1,"memory"],[1,"header"],[3,"routerLink"],["tabindex","-1","buttonIcon","","iconLeft","icon-arrow-left",3,"white"],["class","media-wrapper",4,"ngIf"],[1,"content"],[1,"pointer",3,"fullRelationship","userId","created","guest","size"],["class","question",4,"ngIf"],[1,"text",3,"innerHTML"],["class","cta",4,"ngIf"],["class","comments",4,"ngIf"],[1,"media-wrapper"],[3,"collection","audio","guest"],[1,"question"],[1,"cta"],["mem-sign-in-button","",2,"margin-right","8px",3,"iconLeft","width","finished"],["iconLeft","icon-share","mobileWidth","160",3,"click"],[1,"comments"],["class","counts",4,"ngIf"],[1,"title"],["class","comment",4,"ngFor","ngForOf"],[3,"memoryPending",4,"ngIf"],[1,"counts"],["buttonIcon","","iconLeft","icon-like"],[1,"comment"],[3,"comment","index","status","attributionSize",4,"ngIf"],[3,"comment","index","status","attributionSize"],[3,"memoryPending"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t._UZ(2,"div",2),t.qZA(),t.YNc(3,V,13,22,"div",3)),2&e&&(t.xp6(3),t.Q6J("ngIf",r.memoryStore.memory))},directives:[c.O5,g.yS,J._,R.c,Q.B,U.N,F.a,c.sg,w.L,E.p],pipes:[N.M],styles:['[_nghost-%COMP%]{width:100%;margin-top:114px;background-color:#fafafa;display:flex;justify-content:center}@media (max-width: 767px){[_nghost-%COMP%]{margin-top:16px}}[_nghost-%COMP%] .banner-background[_ngcontent-%COMP%]{background-image:url(https://assets.weremember.com/image/upload/f_auto,q_auto:eco/v1578585417/weremember-images/bannerHomeGrayFaded.png);background-size:cover;position:absolute;width:100%;height:406px;left:0;top:0;z-index:0;margin-top:114px;background-position:center;background-attachment:fixed}@media (max-width: 767px){[_nghost-%COMP%] .banner-background[_ngcontent-%COMP%]{margin-top:50px}}[_nghost-%COMP%] .banner-background[_ngcontent-%COMP%] .photo-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:var(--primary);mix-blend-mode:hard-light}[_nghost-%COMP%] .banner-background[_ngcontent-%COMP%] .photo-gradient[_ng
1content-%COMP%]{background:linear-gradient(180deg,rgba(248,248,248,.0001) 0%,#fafafa 82.06%);height:338px;position:relative;top:68px}[_nghost-%COMP%] .memory[_ngcontent-%COMP%]{margin-top:40px;position:relative;z-index:1;width:602px;box-shadow:0 0 15px #43403633;border-radius:0 0 5px 5px;margin-bottom:80px;overflow:hidden}@media (max-width: 767px){[_nghost-%COMP%] .memory[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{background-color:var(--primary);width:100%;border-top-left-radius:5px;border-top-right-radius:5px;padding:0 15px;position:relative;height:40px;display:flex;align-items:center;color:#fff;font-weight:bold;font-size:14px}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:5px}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus-visible{outline:none}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus-visible button[_ngcontent-%COMP%]{outline:none;background-color:#0000004d}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-weight:bold;font-size:14px;margin-right:4px}@media (max-width: 767px){[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .media-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;background-color:#fff;color:#474747;padding:0 16px 8px;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:24px;background-color:#fff}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .question[_ngcontent-%COMP%]{margin-top:28px;margin-bottom:-4px;font-size:14px;line-height:20px;color:#868686;text-align:center}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin-top:16px;font-size:20px;line-height:25px;font-family:"Source Serif Pro",serif;letter-spacing:-.25px}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .content.media[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .content.single-image[_ngcontent-%COMP%]{padding-top:12px}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .cta[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:20px}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .comments[_ngcontent-%COMP%]{padding:24px;background-color:#fafafa}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .comments[_ngcontent-%COMP%] .counts[_ngcontent-%COMP%]{margin-bottom:24px}[_nghost-%COMP%] .memory[_ngcontent-%COMP%] .comments[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px;font-weight:bold;color:#474747;margin-bottom:4px}'],changeDetection:0}),o})()}]);var et=n(4586);let ot=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({providers:[u.e],imports:[[c.ez,tt,x.x,f.C,v.h,y.L,et.D]]}),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.