1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5248],{13262:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/death-notice/condolences/add/[slug]",function(){return i(77697)}])},77697:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return k},default:function(){return O}});var n=i(6993),o=i(17161),a=i(84038),r=i(42035),d=i(6121),c=i.n(d),l=i(95388),s=i(58858),u=i(73668),v=i(39684),h=i(83077),m=i(73870),p=i(3574),N=i(90752),x=i(85172),f=i(59677),D=i(67240),w=i(32654),j=i(28350),E=i(79237),g=i(49598),b=i(49639),A=function(e){var t=e.item,i=e.viewState,o=e.setViewState,a=e.translationPrefix,r=void 0===a?"Condolences":a,d=(0,m.Z)("common").t,c=(0,w.Q)({noticeId:null===t||void 0===t?void 0:t.id,noticeType:"deathNotice",mutationDocument:x.jBq,getRedirectUrl:function(){return(0,h.gi)(t)},viewState:i,setViewState:o,translationPrefix:r}),l=c.control,s=c.handleSubmit,u=c.getValues,v=c.setValue,A=c.loading,_=c.successOpen,S=c.errorOpen,C=c.errorMessage,M=c.recaptchaRef,I=c.onSubmit,L=c.onReCAPTCHAChange,P=c.saveCondolence,F=c.closeSuccessModal,R=c.closeErrorModal,T=c.goBackToEdit,U=(0,D.fL)(null===t||void 0===t?void 0:t[f.Q.FIRSTNAME_FIELD],null===t||void 0===t?void 0:t[f.Q.SURNAME_FIELD],{title:null===t||void 0===t?void 0:t[f.Q.NEE_FIELD],prefix:d("DeathNotice.nee")});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Z,{ref:M,size:"invisible",sitekey:"6Ld3ZI0mAAAAANaEirHB_wx8WiKHtDF6l-dWSjk3",onChange:L}),i===N.M.ADDING&&(0,n.jsx)(j.O,{control:l,setValue:v,onSubmit:s(I),personData:U,translationPrefix:r}),i===N.M.PREVIEW&&(0,n.jsx)(E._,{getValues:u,loading:A,onBackToEdit:T,onSave:P,translationPrefix:r}),(0,n.jsx)(g.G,{open:_,onClose:F,personData:U,donateUrl:null===t||void 0===t?void 0:t.eventMasterPageDonateUrl,charity:null===t||void 0===t?void 0:t.eventMasterCharity}),(0,n.jsx)(b.G,{open:S,onClose:R,errorMessage:C})]})},_=i(35072),S=i(72800),C=i(34934),M=i(95566),I=i(61334),L=i(9713),P=i(11403),F=i.n(P),R=i(82083),T=i(36651),U=F()((function(){return Promise.all([i.e(9634),i.e(4511)]).then(i.bind(i,39634)).then((function(e){return e.FooterBar}))}),{loadableGenerated:{webpack:function(){return[39634]}}}),k=!0,O=function(e){var t,i,d,p,x,w,j,E=(0,m.Z)("common").t,g=(0,o.useState)(N.M.ADDING),b=g[0],P=g[1],F=((0,r.useRouter)(),e.previewDeathNotice),k=F.firstname,O=F.surname,V=(F.nee,F.county),y=F.town,G=null===V||void 0===V?void 0:V.name,Q=(null===y||void 0===y||y.name,(0,I.b)((0,M.xI)(E,null===e||void 0===e?void 0:e.previewDeathNotice,"deathNotices","condolenceAdd"))),W=(0,M.G8)(E,e.previewDeathNotice,"deathNotices","condolenceAdd"),Z=(0,D.fL)(null===(t=e.previewDeathNotice)||void 0===t?void 0:t[f.Q.FIRSTNAME_FIELD],null===(i=e.previewDeathNotice)||void 0===i?void 0:i[f.Q.SURNAME_FIELD],{title:null===(d=e.previewDeathNotice)||void 0===d?void 0:d[f.Q.NEE_FIELD],prefix:E("DeathNotice.nee")}),B=(null===e||void 0===e||null===(p=e.previewDeathNotice)||void 0===p?void 0:p.photoAttachment)?(0,u.n)((null===e||void 0===e||null===(x=e.previewDeathNotice)||void 0===x?void 0:x.photoAttachment)?null===e||void 0===e||null===(w=e.previewDeathNotice)||void 0===w||null===(j=w.photoAttachment)||void 0===j?void 0:j.file:"",v.D.substr,v.D.replacement,188):null;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"page",children:[(0,n.jsx)(C.Z,{metaData:{title:Q,description:W,imageUrl:B,imageWidth:188,imageHeight:282}}),(0,n.jsx)(a.h,{}),(0,n.jsx)("div",{className:"breadcrumbs-wrapper border-bottom",children:(0,n.jsx)(s.Z,{maxWidth:"md",children:(0,n.jsxs)(l.O,{children:[(0,n.jsx)("a",{href:L.b.LAYOUT.MENU.homepage,children:E("Header.homePage")}),(0,n.jsx)("a",{href:L.b.LAYOUT.MENU.deathNoticesRecent,children:E("Header.deathNotices")}),G&&(0,n.jsx)("a",{href:"".concat((0,T.R)("".concat(L.b.LAYOUT.MENU.deathNotices,"/s/").concat(G.toLowerCase()))),children:G}),(0,n.jsx)("a",{href:(0,h.Kw)(null===e||void 0===e?void 0:e.previewDeathNotice),children:"".concat(k," ").concat(O)}),(0,n.jsx)("a",{href:"".concat((0,h.gi)(null===e||void 0===e?void 0:e.previewDeathNotice)),children:E("Condolences.condolenceBook")}),(0,n.jsx)(c(),{prefetch:!1,href:"".concat((0,h.Pe)(null===e||void 0===e?void 0:e.previewDeathNotice)),children:E("
1Condolences.Add.add",{personData:Z})})]})})}),(0,n.jsx)("div",{children:(0,n.jsx)(s.Z,{maxWidth:"md",children:(0,n.jsxs)("div",{className:"flex justify-content-between pt-10 pb-10 pt-md-0 pb-md-0 flex-wrap",children:[(0,n.jsx)("div",{className:"wrapper-main",children:(0,n.jsx)(A,{item:null===e||void 0===e?void 0:e.previewDeathNotice,viewState:b,setViewState:P})}),(0,n.jsxs)("div",{className:"wrapper-aside pt-12 pt-md-4",children:[b===N.M.ADDING&&(0,n.jsx)("div",{className:"pb-md-4",children:(0,n.jsx)(_.P,{})}),b===N.M.PREVIEW&&(0,n.jsx)("div",{className:"mb-3 w-100 pb-md-10 text-without-breaks-md hide-md",children:(0,n.jsx)(S.Z,{severity:"info",children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:E("Condolences.Add.messageWillBeposted")}})})})]})]})})}),(0,n.jsx)(R.Q,{}),(0,n.jsx)(U,{counties:null===e||void 0===e?void 0:e.counties,ecommerceCategories:null===e||void 0===e?void 0:e.ecommerceCategories})]})})}},36651:function(e,t,i){"use strict";i.d(t,{R:function(){return n}});var n=function(e){return"".concat(e,"?page=1&sortField=a.createdAtCastToDate&sortDir=DESC&view=list")}}},function(e){e.O(0,[712,4799,2325,7861,469,9587,2448,4038,1966,9774,2888,179],(function(){return t=13262,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.