PageSourceSearch

https://www.findmypast.com.au/titan/dist/evidence-of-death.6779071cd52bd035.js

js findmypast.com.au collected 2026-10-01 12:12:17 UTC 29,587 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([["2304"],{797325(e,t,r){r.d(t,{_:()=>f});var n=r(775641),a=r(271221),o=r(86554),i=r.n(o),s=r(745697),l=r(600001);function c(){var e,t,r=(e=["\n  query GetRecordsFreeFields($recordId: ID!) {\n    root {\n      id\n      record(id: $recordId) {\n        id\n        fields {\n          displayLabel\n          fieldId\n          value\n        }\n      }\n    }\n  }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return c=function(){return r},r}var u=r.n(l)()(c());function d(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}var f=function(e){var t,r,o=e.isOpen,l=e.fields,c=e.recordId,f=e.parentId,m=!i()(l),h=(0,a.useQuery)(u,{variables:{recordId:f||c},skip:m||!o}),p=h.data,y=h.loading,b=h.error,v=h.refetch,g=null==p||null==(r=p.root)||null==(t=r.record)?void 0:t.fields;return{recordFields:g&&(0,s.A)(g)||l,loadingRecordFields:!m&&y,recordFieldsError:b,refetchRecordFields:(0,n.useCallback)(function(){var e;return(e=function(){return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var c=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){return[2,v()]})},function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){d(o,n,a,i,s,"next",e)}function s(e){d(o,n,a,i,s,"throw",e)}i(void 0)})})()},[v])}}},37603(e,t,r){r.d(t,{B:()=>n});var n={TRANSCRIPT:"transcript",IMAGE:"image",PDF:"pdf"}},745697(e,t,r){r.d(t,{A:()=>a});var n=r(978785),a=(0,n.flow)((0,n.keyBy)("fieldId"),(0,n.mapValues)((0,n.get)("value")))},327866(e,t,r){r.r(t),r.d(t,{default:()=>eo});var n=r(629901),a=r(775641),o=r(387858),i=r(839490),s=r(619455),l=r(755342),c=r(75300),u=r(483588),d=r(65423),f=r(234900),m=r(503231),h=r(953240);let p=function(){return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("h1",{className:"text-3xl",children:"Evidence of Death Form"}),(0,n.jsx)("p",{children:"For individual people, records remain closed for a century after their birth (the 100-year rule), unless it can be proven that they passed away before this milestone. Findmypast members can request these records be opened for free."}),(0,n.jsx)("p",{children:(0,n.jsx)("b",{children:"Request a search of closed records within the 1939 Register"})}),(0,n.jsx)("p",{children:"You can use the form below if you would like to request a search of closed records from the 1939 Register. If the record can be opened, we will let you know 
1when it has been done. You will need to conduct a search for that person on the site to find the record. This is likely to include the following details – name, address, date of birth, and occupation, as well as household schedule numbers."}),(0,n.jsx)("p",{children:"You need proof that the person is no longer living in order to submit your request to us. We can only accept a copy of an official death certificate (issued by the General Register Office or overseas equivalent) so please ensure you have this documentation before proceeding."}),(0,n.jsx)("p",{children:"If you are trying to find information about yourself in the 1939 Register, you can make a request under the Data Protection Act. Please click on the Back To Transcription button and, once back on the transcription page, click on the Request Record button and follow the on-screen instructions."}),(0,n.jsxs)("p",{children:["Please provide us with information about the 1939 Register ",(0,n.jsx)("b",{children:"person"})," ","that you want us to search for. We will use this information to search our systems for the closed record."]})]})};var y=r(271221),b=r(995089),v=r(600001),g=r(459934),j=r.n(g),x=r(405910),w=r(922026),O=r(749854),C=r(21150),N=r(886957),T=r(902746);function A(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}var P=function(e){var t=e.name,r=e.onFileSelect,a=e.errorMessage;return(0,n.jsxs)("div",{className:"text-justify",children:[(0,n.jsx)("label",{htmlFor:t,className:"mb-1 flex font-bold",children:"Upload evidence of death *"}),(0,n.jsx)("p",{children:"The only suitable form of evidence is an official death certificate. If we do not receive this valid proof of death, we will be unable to proceed with a search. (Files supported: .jpg, .png, .gif)"}),(0,n.jsx)("input",{"data-testid":"evidence-of-death-file-input",required:!0,type:"file",id:t,name:t,accept:".gif,.jpg,.jpeg,.png",onChange:function(e){var t;return(t=function(){var t,n;return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var c=[s,l];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(a){switch(a.label){case 0:var o;if(!e.target.files.length)return r(null),[2];return[4,(o=t=e.target.files[0],new Promise(function(e,t){var r=new FileReader;r.onload=function(){e(r.result.toString().split(",")[1])},r.onerror=function(e){t(e)},r.readAsDataURL(o)}))];case 1:return n=a.sent(),r({fileName:t.name,content:n}),[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function i(e){A(o,n,a,i,s,"next",e)}function s(e){A(o,n,a,i,s,"throw",e)}i(void 0)})})()},className:"my-3 file:min-h-9 file:rounded-full file:border-none file:bg-indigo file:px-4 file:text-white"}),a&&(0,n.jsx)(T.y,{children:a})]})},I=r(351229),k=r(263867);function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var F=function(e){return(0,n.jsx)(M,S({type:"text"},e))},q=function(e){return(0,n.jsx)(U,S({type:"select",optionList:["Male","Female"],placeholder:"Gender",name:"gender"},e))},E=function(e){return(0,n.jsx)($,S({type:"text",placeholder:"Date of birth",name:"dateOfBirth",majorText:"Date of birth *",minorText:"(Please provide full date of birth dd/mm/yyyy)"},e))},D=function(e){return(0,n.jsx)(M,S({type:"email",label:""},e))},R=function(e){return(0,n.jsx)(M,S({type:"tel",placeholder:"Telephone Number",name:"contactTelephoneNumber"},e))},_=function(e){return(0,n.jsx)(L,S({type:"textarea",placeholder:"Additional information",name:"additionalInformation"},e))},M=function(e){var t=e.majorText,r=e.minorText,a=function(e,t){if(null==e)return{};var r,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,r=Reflect.ownKeys(Object(e));a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["majorText","minorText"]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("label",{htmlFor:a.name,className:"flex gap-1",children:[t?(0,n.jsx)("p",{className:"font-bold",id:"".concat(a.name,"-label"),children:t}):null,r?(0,n.jsx)("em",{children:r}):null]}),(0,n.jsx)(B,S({id:a.name,label:""},a))]})},L=(0,I.default)(M).withConfig({displayName:"_StyledEvidenceOfDeathFormInput3",componentId:"sc-6593af1c-0"})(["width:50%;@media (min-width:768px){width:30%;}"]),$=(0,I.default)(M).withConfig({displayName:"_StyledEvidenceOfDeathFormInput2",componentId:"sc-6593af1c-1"})(["max-width:8rem;"]),U=(0,I.default)(M).withConfig({displayName:"_StyledEvidenceOfDeathFormInput",componentId:"sc-6593af1c-2"})(["max-width:8rem;"]),B=(0,I.default)(k.p).withConfig({displayName:"_StyledInput",componentId:"sc-6593af1c-3"})(["@media (min-width:768px){width:30%;}"]);function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var H=function(e){var t=e.values,r=e.handleChange,o=e.errors,i=e.setFieldValue,s=e.validateForm,l=e.wasFormSubmitted,c=G((0,a.useState)(1e3),2),u=c[0],d=c[1],f=G((0,a.useState)(!1),2),m=f[0],h=f[1];(0,a.useEffect)(function(){l&&(s(),h(!1))},[m,l,s]);var p=function(e){h(!0),r(e)};return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-2xl font-normal",children:"Deceased person's details"}),(0,n.jsx)("p",{children:"* Mandatory fields"})]}),(0,n.jsx)(F,{placeholder:"First names",name:"firstNames",errorMessage:o.firstNames,value:t.firstNames,onChange:p,majorText:"First names *"}),(0,n.jsx)(F,{placeholder:"First names other",name:"firstNamesOther",value:t.firstNamesOther,onChange:p,majorText:"First names other"}),(0,n.jsx)(F,{"data-testid":"last-name-testid",placeholder:"Last name",name:"lastName",errorMessage:o.lastName,value:t.lastName,onChange:p,majorText:"Last name *"}),(0,n.jsx)(F,{placeholder:"Last name other",name:"lastNameOther",value:t.lastNameOther,onChange:p,majorText:"Last name other",minorText:"(e.g. maiden name, change of name)"}),(0,n.jsx)(q,{errorMessage:o.gender,value:t.gender,onChange:r,"data-testid":"evidence-of-death-form-gender-ctrl",majorText:"Gender *",minorText:"(male and female were the only gender options on the 1939 Register)"}),(0,n.jsx)(E,{errorMessage:o.dateOfBirth,value:t.dateOfBirth,onChange:p}),(0,n.jsx)("h3",{className:"mt-10 text-2xl font-normal",children:"Their address within the Register"}),(0,n.jsx)("p",{children:"Please note we require the address as of 29 September 1939 (the date the Register was taken) for the person about whom you are enquiring."}),(0,n.jsx)(F,{placeholder:"House number/name",name:"houseNumberOrName",errorMessage:o.houseNumberOrName,value:t.houseNumberOrName,onChange:p,majorText:"House number/name *"}),(0,n.jsx)(F,{placeholder:"Street name",name:"streetName",errorMessage:o.streetName,value:t.streetName,onChange:p,majorText:"Street name *"}),(0,n.jsx)(F,{placeholder:"Registration district",name:"registrationDistrict",value:t.registrationDistrict,majorText:"Registration district",disabled:!0}),(0,n.jsx)(F,{placeholder:"County",name:"county",value:t.county,majorText:"County",disabled:!0}),(0,n.jsx)(P,{name:"evidenceUpload",errorMessage:o.evidenceUpload,onFileSelect:function(e){i("evidenceUpload",e),p()}}),(0,n.jsx)(_,{value:t.additionalInformation,maxLength:1e3,onChange:function(e){i("additionalInformation",e.target.value),d(1e3-e.target.value.length)},majorText:"Additional information",minorText:"(for example, siblings, occupation, evacuee, any other relevant information which may help us to search the data)"}),(0,n.jsxs)("p",{className:"text-sm",children:[u," characters remaining"]}),(0,n.jsx)("h3",{className:"text-2xl font-normal",children:"Your contact details"}),(0,n.jsx)("p",{children:"* Mandatory fields"}),(0,n.jsx)(F,{type:"text",placeholder:"First name",name:"contactFirstName",errorMessage:o.contactFirstName,value:t.contactFirstName,onChange:p,majorText:"Your first name *"}),(0,n.jsx)(F,{placeholder:"Last name",name:"contactLastName",errorMessage:o.contactLastName,value:t.contactLastName,onChange:p,majorText:"Your last name *"}),(0,n.jsx)(D,{placeholder:"Email address",name:"contactEmailAddress",errorMessage:o.contactEmailAddress,value:t.contactEmailAddress,onChange:p,majorText:"Your email address *"}),(0,n.jsx)(D,{placeholder:"Confirm email address",name:"confirmContactEmailAddress",errorMessage:o.confirmContactEmailAddress,value:t.confirmContactEmailAddress,onChange:p,majorText:"Confirm email address *"}),(0,n.jsx)(F,{placeholder:"Address 1",name:"contactAddress1",errorMessage:o.contactAddress1,value:t.contactAddress1,onChange:p,majorText:"Your Address 1 *"}),(0,n.jsx)(F,{placeholder:"Address 2",name:"contactAddress2",value:t.contactAddress2,onChange:p,majorText:"Your Address 2"}),(0,n.jsx)(F,{placeholder:"Town/City",name:"contactTown",errorMessage:o.contactTown,value:t.contactTown,onChange:p,majorText:"Your Town/City *"}),(0,n.jsx)(F,{placeholder:"Postcode",name:"contactPostcode",errorMessage:o.contactPostcode,value:t.contactPostcode,onChange:p,majorText:"Your Postcode *",minorText:"(or ZIP code, etc.)"}),(0,n.jsx)(F,{placeholder:"County",name:"contactCounty",value:t.contactCounty,onChange:p,majorText:"Your County"}),(0,n.jsx)(F,{placeholder:"Country",name:"contactCountry",value:t.contactCountry,onChange:p,majorText:"Your Country"}),(0,n.jsx)("div",{className:"mb-10",children:(0,n.jsx)(R,{value:t.contactTelephoneNumber,onChange:p,majorText:"Your Contact telephone number "})})]})},V=r(648962);function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function z(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,a)}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(){var e,t,r=(e=["\n  mutation CreateEvidenceOfDeathZendeskTicket(\n    $subject: String!\n    $content: EvidenceOfDeathRequestData!\n    $attachment: TicketAttachment!\n    $brand: ZendeskBrand\n  ) {\n    zendeskCreateEvidenceOfDeathTicket(\n      subject: $subject\n      content: $content\n      attachment: $attachment\n      brand: $brand\n    )\n  }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Q=function(){return r},r}var J={firstNames:"",firstNamesOther:"",gender:"",lastName:"",lastNameOther:"",dateOfBirth:"",houseNumberOrName:"",streetName:"",registrationDistrict:"",county:"",additionalInformation:"",contactFirstName:"",contactLastName:"",contactEmailAddress:"",confirmContactEmailAddress:"",contactAddress1:"",contactAddress2:"",contactTown:"",contactPostcode:"",contactCounty:"",contactCountry:"",contactTelephoneNumber:"",confirmation:"",evidenceUpload:null},X=(0,v.gql)(Q()),ee=function(e){var t=document.getElementById("nav-bar"),r=t?t.offsetHeight:0,a=function(e,t){e.preventDefault();var n=document.getElementById(t).getBoundingClientRect().top+window.scrollY;window.scrollTo(0,n-1.5*r)},o=Object.keys(e.errors).map(function(e){var t="",r=document.getElementById("".concat(e,"-label"));if(r)t=r.textContent.replace(/[*\s:]+$/,"");else{var n=e.replace(/([A-Z])/g," $1").toLowerCase();t=n.charAt(0).toUpperCase()+n.slice(1)}return{name:t,id:e}});return(0,n.jsxs)(n.Fragment,{children:["The"," ",o.map(function(e,t){return(0,n.jsxs)("span",{children:[" ",(0,n.jsx)("button",{tabIndex:0,onClick:function(t){return a(t,e.id)},onKeyUp:function(t){return a(t,e.id)},className:"cursor-pointer border-none bg-transparent p-0 underline",children:e.name}),t!==o.length-1&&", "]},e.id)})," ","information doesn't look right. Please correct it and submit the form again."]})};let et=function(e){var t,r,i=e.onCancel,s=void 0===i?function(){}:i,l=e.onSubmit,c=void 0===l?function(){}:l,u=e.fields,d=u.County,f=u.RegistrationDistrict,m=u.Id,h=W((0,a.useState)(!1),2),p=h[0],v=h[1],g=W((0,a.useState)(!1),2),T=g[0],A=g[1],P="Failed Zendesk ticket creation in evidence of death form",I=W((0,y.useMutation)(X,{onCompleted:function(e){e.zendeskCreateEvidenceOfDeathTicket?c():((0,x.A)("titan_client_evidence_of_death_form_errors"),(0,w.c)(P),v(!0))},onError:function(e){(0,x.A)("titan_client_evidence_of_death_form_errors"),(0,w.c)("".concat(P,": ").concat(e)),v(!0)}}),2),k=I[0],S=I[1].loading,F=(0,a.useContext)(o.w).brand;return(0,n.jsx)(b.Formik,{initialValues:(t=Z({},J),r=r={county:d,registrationDistrict:f},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),onSubmit:function(e){var t;return(t=function(){var t;return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:l(0)}),s(i,"throw",{value:l(1)}),s(i,"return",{value:l(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function l(s){return function(l){var c=[s,l];if(r)throw TypeError("Generator is already executing.");for(;
1i&&(i=0,c[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:return t=e.evidenceUpload,[4,k({variables:{subject:"Evidence of Death Request",content:Z({recordId:m},j()(e,["confirmContactEmailAddress","confirmation","evidenceUpload"])),attachment:t,brand:F}})];case 1:return r.sent(),[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,a){var o=t.apply(e,r);function i(e){z(o,n,a,i,s,"next",e)}function s(e){z(o,n,a,i,s,"throw",e)}i(void 0)})})()},validateOnChange:!1,validationSchema:V.object({firstNames:V.string().required("First names is required"),lastName:V.string().required("Last name is required"),gender:V.string().required("Gender is required"),houseNumberOrName:V.string().required("House number/name is required"),streetName:V.string().required("Street name is required"),contactFirstName:V.string().required("Contact first name is required"),contactLastName:V.string().required("Contact last name is required"),contactEmailAddress:V.string().required("Contact email address is required"),confirmContactEmailAddress:V.string().oneOf([V.ref("contactEmailAddress")],"Contact email addresses do not match").required("Contact email addresses do not match"),contactAddress1:V.string().required("Contact address line 1 is required"),contactTown:V.string().required("Contact town/city is required"),contactPostcode:V.string().required("Contact postcode is required"),evidenceUpload:V.object({fileName:V.string().required(),content:V.string().required()}).nullable().required("Evidence of death is required"),dateOfBirth:V.string().matches(/^\d{4}$|^\d{2}\/\d{2}\/\d{4}$/i,"Please enter their year or date of birth").required("Date of birth is required")}),isInitialValid:!0,children:function(e){var t=e.values,r=e.handleChange,a=e.errors,o=e.dirty,i=e.isValid,l=e.setFieldValue,c=e.validateForm;return(0,n.jsxs)(b.Form,{children:[(0,n.jsx)("div",{className:"p-4",children:(0,n.jsx)(H,{wasFormSubmitted:T,validateForm:c,values:t,handleChange:r,errors:a,setFieldValue:l})}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2 bg-white p-4",children:[(0,n.jsx)(O.$n,{loading:S,type:"submit",disabled:!o,onClick:function(){A(!0)},children:"Submit"}),(0,n.jsx)(O.$n,{variant:"secondary",disabled:S,onClick:s,children:"Cancel"}),!i&&(0,n.jsxs)(C.F.Root,{"aria-live":"assertive",variant:"error",className:"w-auto",children:[(0,n.jsx)(N.I,{className:"text-3xl leading-none",name:"error"}),(0,n.jsx)(C.F.Text,{children:(0,n.jsx)(ee,{errors:a})})]}),p&&(0,n.jsxs)(C.F.Root,{"aria-live":"assertive",variant:"error",className:"w-auto",children:[(0,n.jsx)(N.I,{className:"text-3xl leading-none",name:"error"}),(0,n.jsx)(C.F.Text,{children:"Sorry, there was an issue while submitting the request. Please try again."})]})]})]})}})};var er=r(90754);let en=function(){return window.scrollTo(0,0),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("h1",{className:"text-3xl",children:"Thank you"}),(0,n.jsx)("h2",{className:"text-2xl",children:"You have successfully submitted the evidence of death form"}),(0,n.jsx)("p",{children:"Thank you for submitting your request for this officially closed record to be opened."}),(0,n.jsxs)("p",{children:["If successful, the record will be opened and made public. Your request will now be reviewed by our dedicated evidence-checking team."," "]}),(0,n.jsx)("p",{children:"We aim to process all requests and send you confirmation of the outcome, or to obtain further information or evidence, within 10 working days, starting the working day after your request being submitted."}),(0,n.jsxs)("p",{children:["We are unable to provide updates on the progress of a request. In the unlikely event you haven't received an email after 10 working days, please email"," ",(0,n.jsx)(er.A,{to:"mailto:[email protected]",children:"[email protected]"})]}),(0,n.jsxs)("p",{children:["Please visit our ",(0,n.jsx)(er.A,{to:"/help",children:"Frequently Asked Questions"})," page for more information."]}),(0,n.jsx)("p",{children:"Please print this page for your records."})]})};function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}let eo=function(){var e,t=(0,a.useContext)(o.w).rootDomain,r=(0,i.l)().id,y=(0,f.A)(r),b=y.isLoading,v=y.transcript,g=y.action,j=y.actionCode,x=y.transcriptMutationResult,w=function(e){if(Array.isArray(e))return e}(e=(0,a.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(a.push(t.value),2!==a.length);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw r}}return a}}(e)||function(e){if(e){if("string"==typeof e)return ea(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ea(e,2)}}
1(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),O=w[0],C=w[1];return b?(0,n.jsx)("div",{className:"flex justify-center py-20",children:(0,n.jsx)(l.I,{className:"h-16 w-16"})}):v?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.s,{children:"Evidence of Death"}),(0,n.jsx)(m.A,{children:(0,n.jsx)("div",{className:"p-4",children:O?(0,n.jsxs)("div",{className:"bg-white p-4",children:[(0,n.jsx)(en,{}),r&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(u.P,{onClick:function(){return(0,d.A)({recordId:r,rootDomain:t,scrollToTop:!0})}})})]}):(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsx)(u.P,{onClick:function(){return(0,d.A)({recordId:r,rootDomain:t,scrollToTop:!0})}}),(0,n.jsx)("div",{className:"my-6 bg-white p-4",children:(0,n.jsx)(p,{})}),(0,n.jsx)(et,{onSubmit:function(){return C(!0)},onCancel:function(){return(0,d.A)({recordId:r,rootDomain:t,scrollToTop:!0})},fields:(0,h.H)(v.fields)})]})})})]}):(0,n.jsx)(c.U,{action:g,actionCode:j,suitablePlans:null==x?void 0:x.fulfillTranscript.suitablePlans,fulfillmentTypeKey:null==x?void 0:x.fulfillTranscript.fulfillmentTypeKey,recordId:r,recordMetadataId:null==x?void 0:x.fulfillTranscript.record.transcript.recordMetadataId})}},483588(e,t,r){r.d(t,{P:()=>i});var n=r(629901);r(775641);var a=r(749854),o=r(886957),i=function(e){var t=e.onClick;return(0,n.jsxs)(a.$n,{"aria-label":"Back to transcription",variant:"secondary",onClick:t,className:"gap-1",children:[(0,n.jsx)(o.I,{name:"arrow_back"}),"Back to transcription"]})}},953240(e,t,r){r.d(t,{H:()=>u,r:()=>d});var n=r(978785),a=r(499974);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var s=["FirstName","LastName"],l=["Occupation","Relationship","RelationToHead"],c=function(e){var t=e.value,r=e.fieldId;if(!t)return t;var n=t.replace(/[\u0000-\u001F\u007F-\u009F]/g,"").trim();return n.length>0&&s.includes(r)?n[0].toUpperCase()+n.slice(1):l.includes(r)?(0,a.A)(n):n},u=(0,n.flow)((0,n.keyBy)("fieldId"),(0,n.mapValues)(c)),d=function(e){return(null==e?void 0:e.records)?i(o({},e),{records:e.records.map(f)}):e},f=function(e){return(null==e?void 0:e.fields)?i(o({},e),{fields:e.fields.map(m)}):e},m=function(e){return i(o({},e),{value:c(e)})}},499974(e,t,r){r.d(t,{A:()=>n});let n=function(e){return e?"".concat(e[0].toUpperCase()).concat(e.slice(1).toLowerCase()):""}}}]);
2//# sourceMappingURL=evidence-of-death.6779071cd52bd035.js.map

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.