PageSourceSearch

https://online.lsk.or.ke/static/js/90.d1249b7c.chunk.js

js lsk.or.ke collected 2026-09-26 05:40:18 UTC 32,457 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklsk=self.webpackChunklsk||[]).push([[90],{10090:(e,l,a)=>{a.r(l),a.d(l,{default:()=>b});var s=a(9950),o=a(24492),i=(a(55903),a(75162),a(22101)),t=a(1201),n=a(70431),d=a(74433),r=a(43898),c=a(98374),p=a(72360),m=a(10300),u=(a(73561),a(25108)),h=a(73283),x=a(14615),v=a(44414);const f=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/i,j=e=>f.test((e||"").trim()),b=()=>{var e,l,a;const f=(0,o.Zp)(),b=(new URLSearchParams(window.location.search),(0,m.d4)(e=>{var l;return null===e||void 0===e||null===(l=e.userData)||void 0===l?void 0:l.business_token})),[N,g]=(0,s.useState)(1),[y,_]=(0,s.useState)(1),[w,k]=(0,s.useState)({name_of_member:"",id_passport_no:"",lsk_member_branch:"",applied_by:"",applicant_id_no:"",relation:""}),[D,C]=(0,s.useState)(""),[A,L]=(0,s.useState)({data:[]}),R=(0,s.useRef)(null),[S,U]=(0,s.useState)(!1),[F,M]=(0,s.useState)(!1),[O,P]=(0,s.useState)(!1),[E,V]=(0,s.useState)(""),[H,T]=(0,s.useState)(""),[B,I]=(0,s.useState)(null),[q,Z]=(0,s.useState)(""),[Y,z]=(0,s.useState)(null),[K,$]=(0,s.useState)(null),[G,Q]=(0,s.useState)(null),[W,J]=(0,s.useState)(""),[X,ee]=(0,s.useState)(""),[le,ae]=(0,s.useState)(""),[se,oe]=(0,s.useState)([{attachment:null,attachment_value:""}]),[ie,te]=(0,s.useState)(""),[ne,de]=(0,s.useState)(""),[re,ce]=(0,s.useState)(!1),[pe,me]=(0,s.useState)(!1),[ue,he]=(0,s.useState)(!1),[xe,ve]=(0,s.useState)(!1),[fe,je]=(0,s.useState)(!1),be=()=>{ce(!1),de(""),he(!1)},Ne=(e,l)=>{var a;const s=[...se],o=null===(a=s[e])||void 0===a?void 0:a.attachment_value;if(o)try{URL.revokeObjectURL(o)}catch(i){}s[e].attachment=l,s[e].attachment_value=l?URL.createObjectURL(l):"",oe(s)},ge=(e,l,a)=>e?(0,v.jsx)("div",{className:" row mt-2",children:(0,v.jsxs)("div",{className:"col-12",children:[a&&(0,v.jsxs)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"link-primary font-18px font-semibold text-decoration-underline d-flex align-items-center gap-2",children:["View File",(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",children:(0,v.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.55547 5.55547L1.11094 10L0 8.88906L3.88906 5L0 1.11094L1.11094 0L5.55547 4.44453C5.70276 4.59187 5.7855 4.79167 5.7855 5C5.7855 5.20833 5.70276 5.40813 5.55547 5.55547Z",fill:"#00226F"})})]}),l&&(0,v.jsx)("div",{className:"mt-2",children:(0,v.jsx)("a",{className:"link-danger text-decoration-underline font-medium",onClick:e=>{e.preventDefault(),l()},children:"Remove"})})]})}):null,[ye,_e]=(0,s.useState)(""),we=async()=>{if(M(!0),fe){if(""!=D&&""!=(null===w||void 0===w?void 0:w.name_of_member)&&""!=(null===w||void 0===w?void 0:w.id_passport_no)&&""!=(null===w||void 0===w?void 0:w.lsk_member_branch)&&""!=(null===w||void 0===w?void 0:w.applied_by)&&""!=(null===w||void 0===w?void 0:w.applicant_id_no)&&""!=(null===w||void 0===w?void 0:w.relation)&&""!=ie.trim()&&""!=E&&""!=H&&null!=B&&null!=Y&&null!=K&&null!=G)try{var e=new FormData;e.append("business_token",b),D&&e.append("member_id",D),e.append("id_no",null===w||void 0===w?void 0:w.id_passport_no),e.append("date_of_admission",E),e.append("date_of_death",H),e.append("lsk_member_branch",null===w||void 0===w?void 0:w.lsk_member_branch),e.append("applied_by",null===w||void 0===w?void 0:w.applied_by),e.append("applicant_id_no",null===w||void 0===w?void 0:w.applicant_id_no),e.append("relationship",null===w||void 0===w?void 0:w.relation),e.append("next_of_kin_email",ie.trim()),e.append("burial_permit",Y),e.append("advocate_id",K),e.append("national_id",G),e.append("signature",B),null===se||void 0===se||se.forEach((l,a)=>{null!==l&&void 0!==l&&l.attachment&&e.append(`attachment[${a}]`,l.attachment)}),P(!0);let a=await i.A.request("post","last-expense-application",e);var l;if(null!==a&&void 0!==a&&a.status)t.oR.success(null===a||void 0===a?void 0:a.message),_e(null===a||void 0===a||null===(l=a.data)||void 0===l?void 0:l.refrence_no)}catch(F){t.oR.error("Failed")}finally{P(!1)}}else t.oR.error("Please verify your email with OTP before submitting")},[ke,De]=(0,s.useState)({}),Ce=e=>{R.current&&clearTimeout(R.current),R.current=setTimeout(async()=>{U(!0);try{const l=await i.A.request("post","search-deceased-advocates",{keyword:e||"",business_token:b});null!==l&&void 0!==l&&l.status?L(l||{data:[]}):L({data:[]})}catch(F){L({data:[]})}finally{U(!1)}},800)},Ae=async function(){let{resend:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(D)if(j(ie)){e?(he(!0),de("")):me(!0);try{const l=await i.A.request("post","check-next-of-kin-email-and-send-otp",{deceased_member_id:D,email:ie,business_token:b});null!==l&&void 0!==l&&l.status?(t.oR.success(null===l||void 0===l?void 0:l.message),de(""),e||ce(!0)):t.oR.error(null===l||void 0===l?void 0:l.message)}catch(F){console.log(F)}finally{e?he(!1):me(!1)}}else t.oR.error("Please enter a valid email address");else t.oR.error("Please select deceased advocate first")};(0,s.useEffect)(()=>{(async()=>{try{let e=await i.A.request("post","getRelationshipArray",{});null!==e&&void 0!==e&&e.status&&De(null===e||void 0===e?void 0:e.data)}catch(F){}})(),Ce("")},[]),(0,s.useEffect)(()=>()=>{R.current&&clearTimeout(R.current)},[]);const Le=()=>{var e,l;return""!==D&&""!==(null===w||void 0===w?void 0:w.name_of_member)&&""!==(null===w||void 0===w||null===(e=w.applied_by)||void 0===e?void 0:e.trim())&&j(ie)&&""!==(null===w||void 0===w||null===(l=w.applicant_id_no)||void 0===l?void 0:l.trim())&&fe},Re=()=>{switch(N){case 1:return Le();case 2:return""!==(null===w||void 0===w?void 0:w.relation)&&null!=G&&null!=B&&""!==(null===w||void 0===w?void 0:w.id_passport_no)&&""!==(null===w||void 0===w?void 0:w.lsk_member_branch)&&""!==E&&""!==H&&null!=Y&&null!=K;default:return!1}},Se=e=>1===e||2===e&&fe,Ue=(e,l)=>{null===l||void 0===l||l.preventDefault(),e!==N&&(2!==e||fe?e<N?g(e):2===e&&fe?g(2):e>N+1||(M(!0),Re()&&(g(e),_(l=>Math.max(l,e)))):t.oR.error("Please verify applicant email in Step 1 to unlock Step 2"))},Fe=()=>{M(!0),Le()?(g(2),_(2),window.scrollTo({top:0,behavior:"smooth"})):fe||t.oR.error("Please verify applicant email before continuing")};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("style",{children:"\n        .error {\n          color: red;\n          font-size: 14px;\n          padding-top: 8px !important;\n        }\n      "}),O&&(0,v.jsx)(n.A,{}),(0,v.jsxs)("div",{className:"bg-white",children:[(0,v.jsx)(c.A,{type:"service",subMenu:"last-expense"}),(0,v.jsx)("div",{className:"banner-section",children:(0,v.jsx)("div",{className:"FAQ-img text-white",children:(0,v.jsx)("div",{className:"banner-img-FAQ px-4",children:(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{className:"font-40 font-semibold",children:"Last Expense Application"}),(0,v.jsx)("div",{className:"pt-2 pt-md-3 line-height-130 font-20px",children:"Please complete the form below to apply for last expense assistance on behalf of a deceased advocate"})]})})})}),(0,v.jsxs)("div",{className:"pageContainer",children:[(0,v.jsx)("div",{className:"border-bottom BackBar",children:(0,v.jsx)("div",{className:"container py-3",children:(0,v.jsxs)("a",{className:"link-default",onClick:()=>{f("/")},children:[" ",(0,v.jsx)("span",{children:(0,v.jsx)("svg",{className:"svgFill",width:7,height:12,viewBox:"0 0 7 12",fill:"none",children:(0,v.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.848947 6.42605L5.73793 11.315L6.95996 10.093L2.68199 5.81503L6.95996 1.53706L5.73793 0.315033L0.848947 5.20402C0.686927 5.36609 0.59591 5.58587 0.59591 5.81503C0.59591 6.0442 0.686927 6.26398 0.848947 6.42605Z"})})})," ","Back"]})})}),(0,v.jsx)("div",{className:"container",children:(0,v.jsxs)("div",{className:"max-w-940 mx-auto",children:[""==ye&&(0,v.jsxs)("div",{className:"conatiner",onKeyDown:e=>{13===e.keyCode&&(N<2?1===N&&Fe():we())},children:[(0,v.jsxs)("div",{className:"row",children:[(0,v.jsx)(u.A,{size:"22",text:"The last expense application should be restricted to the next of kin of the mentioned deceased advocate"}),(0,v.jsx)("div",{className:"app_container_body",children:(0,v.jsx)("div",{className:"max-w-1060 mx-auto",children:(0,v.jsx)("form",{action:"register-step3-next-to-KIN.php",children:(0,v.jsx)("div",{className:"row",children:(0,v.jsxs)("div",{className:"col-xl-12 col-lg-12 col-md-12 col-12",children:[(0,v.jsxs)("div",{className:"tab-bar tab-bar-v2 pt-1",children:[(0,v.jsx)("a",{className:"font-16px font-semibold "+(1===N?"active":""),onClick:e=>Ue(1,e),style:{cursor:Se(1)?"pointer":"not-allowed",opacity:Se(1)?1:.5},children:(0,v.jsx)("span",{className:"tab",children:(0,v.jsx)("span",{className:"tab_text",children:"Step 1"})})}),(0,v.jsx)("a",{className:`font-16px font-semibold ${2===N?"active":""} ${fe?"":"pe-none"}`,onClick:e=>Ue(2,e),style:{cursor:Se(2)?"pointer":"not-allowed",opacity:Se(2)?1:.5},children:(0,v.jsx)("span",{className:"tab",children:(0,v.jsxs)("span",{className:"tab_text",children:["Step 2",!fe&&(0,v.jsx)("span",{className:"ms-1",title:"Complete Step 1 verification to unlock",children:"\ud83d\udd12"})]})})})]}),(0,v.jsxs)("div",{className:"layout_form_container border rounded-20px pb-2F",children:[1===N&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{className:"row px-3 px-md-4",children:[(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Deceased Advocate Name*"}),(0,v.jsx)(h.Ay,{options:null===A||void 0===A||null===(e=A.data)||void 0===e?void 0:e.map(e=>({value:null===e||void 0===e?void 0:e.id,label:((null===e||void 0===e?void 0:e.name)||"").trim(),id_passport_no:(null===e||void 0===e?void 0:e.id_passport_no)||"",join_date:(null===e||void 0===e?void 0:e.join_date)||"",branch:(null===e||void 0===e?void 0:e.branch)||""})),value:(null===A||void 0===A||null===(l=A.data)||void 0===l?void 0:l.map(e=>({value:null===e||void 0===e?void 0:e.id,label:((null===e||void 0===e?void 0:e.name)||"").trim(),id_passport_no:(null===e||void 0===e?void 0:e.id_passport_no)||"",join_date:(null===e||void 0===e?void 0:e.join_date)||"",branch:(null===e||void 0===e?void 0:e.branch)||""})).find(e=>e.value===D))||null,filterOption:()=>!0,onChange:e=>{const l=e?e.value:"",a=e?e.label:"",s=(null===e||void 0===e?void 0:e.id_passport_no)||"",o=(null===e||void 0===e?void 0:e.join_date)||"",i=(null===e||void 0===e?void 0:e.branch)||"";C(l),k({...w,name_of_member:a,id_passport_no:s,lsk_member_branch:i}),V(o),je(!1),te(""),de(""),_(1),be()},onInputChange:(e,l)=>{let{action:a}=l;"input-change"===a&&Ce(e)},placeholder:"Select Deceased Advocate",isSearchable:!0,isClearable:!0,isLoading:S,noOptionsMessage:()=>S?"Searching...":"No members found",menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:9999}),menu:e=>({...e,zIndex:9999})}}),F&&(""==D||""==(null===w||void 0===w?void 0:w.name_of_member))&&(0,v.jsx)("p",{className:"error mt-2 ",children:"Please select deceased advocate."})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Applicant Name*"}),(0,v.jsx)("input",{type:"text",className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px",value:null===w||void 0===w?void 0:w.applied_by,onChange:e=>{k({...w,applied_by:e.target.value})},placeholder:"Enter Applicant Name"}),F&&""==(null===w||void 0===w?void 0:w.applied_by)&&(0,v.jsx)("p",{className:"error mt-2",children:"Applicant name is required."})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group ",children:[(0,v.jsx)("label",{className:"form-label font-16px",children:"Next of Kin Email*"}),(0,v.jsxs)("div",{className:"d-flex gap-2 align-items-center",children:[(0,v.jsx)("input",{type:"email",className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px flex-grow-1",value:ie,onChange:e=>{te(e.target.value),fe&&(je(!1),_(1))},placeholder:"Enter Email",disabled:fe}),(0,v.jsx)("button",{type:"button",className:"btn btn-primary h-44px px-3 flex-shrink-0 text-nowrap",disabled:!j(ie)||pe||ue||fe,onClick:()=>Ae(),children:pe?"Sending...":"Send OTP"})]}),""!==ie.trim()&&!j(ie)&&(0,v.jsx)("p",{className:"error mt-2",children:"Please enter a valid email address"}),fe&&(0,v.jsx)("span",{className:"text-success d-block mt-2 font-16px",children:"\u2713 Email Verified"})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Applicant ID No.*"}),(0,v.jsx)("input",{type:"text",className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px",value:null===w||void 0===w?void 0:w.applicant_id_no,onChange:e=>{k({...w,applicant_id_no:e.target.value})},placeholder:"Enter Applicant ID No."}),F&&""==(null===w||void 0===w?void 0:w.applicant_id_no)&&(0,v.jsx)("p",{className:"error mt-2",children:"Applicant ID is required."})]})})]})}),2===N&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"font-20px font-semibold mb-3 px-3 px-md-4",children:"Applicant Details"}),(0,v.jsxs)("div",{className:"row px-3 px-md-4 border-bottom",children:[(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{className:"form-label font-16px",children:"Applicant Name"}),(0,v.jsx)("input",{type:"text",className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px bg-light",value:null===w||void 0===w?void 0:w.applied_by,readOnly:!0,disabled:!0})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{className:"form-label font-16px",children:"Applicant Email"}),(0,v.jsx)("input",{type:"email",className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px bg-light",value:ie,readOnly:!0,disabled:!0})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{className:"form-label font-16px",children:"Applicant ID No."}),(0,v.jsx)("input",{type:"text",className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px bg-light",value:null===w||void 0===w?void 0:w.applicant_id_no,readOnly:!0,disabled:!0})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Relation to the Deceased Advocate*"}),(0,v.jsxs)("select",{className:"form-select form-control h-44px form-control-default border-color-C4D5EA font-16px rounded-5px",value:null===w||void 0===w?void 0:w.relation,onChange:e=>{k({...w,relation:e.target.value})},children:[(0,v.jsx)("option",{value:"",children:"Select"}),null===ke||void 0===ke||null===(a=ke.data)||void 0===a?void 0:a.map((e,l)=>(0,v.jsx)("option",{value:null===e||void 0===e?void 0:e.key,children:null===e||void 0===e?void 0:e.title},l))]}),F&&""==(null===w||void 0===w?void 0:w.relation)&&(0,v.jsx)("p",{className:"error mt-2",children:"Please select relation."})]})}),(0,v.jsx)("div",{className:"col-12 col-lg-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{className:"form-label font-16px",children:"Certified Copy of National ID*"}),(0,v.jsxs)("div",{className:"input-group",children:[(0,v.jsxs)("div",{className:"upload-wrapper d-flex position-relative w-100",children:[(0,v.jsx)("input",{type:"file",accept:"application/pdf",className:"position-absolute start-0 top-0 w-100 h-100 opacity-0",onChange:e=>{var l;const a=null===(l=e.target.files)||void 0===l?void 0:l[0];if(a){if(le)try{URL.revokeObjectURL(le)}catch(s){}Q(a),ae(URL.createObjectURL(a)),e.target.value=""}}}),(0,v.jsx)("div",{className:"upload-label",children:"Upload "}),(0,v.jsxs)("label",{className:"upload-input mb-0",children:[(0,v.jsx)("span",{children:"Browse File to Upload"}),(0,v.jsx)("span",{className:"upload-icon",children:(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",children:(0,v.jsx)("path",{d:"M3.71429 12.2353H9.28571V6.58824H13L6.5 0L0 6.58824H3.71429V12.2353ZM0 14.1176H13V16H0V14.1176Z",fill:"#00226F"})})})]})]}),ge(G,()=>{if(l
1e)try{URL.revokeObjectURL(le)}catch(e){}Q(null),ae("")},le)]}),F&&null==G&&(0,v.jsx)("p",{className:"error mt-2",children:"Certified Copy of National ID is required."})]})}),(0,v.jsx)("div",{className:"col-12 col-lg-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{className:"form-label font-16px",children:"Upload Applicant Signature*"}),(0,v.jsxs)("div",{className:"input-group",children:[(0,v.jsxs)("div",{className:"upload-wrapper d-flex position-relative w-100",children:[(0,v.jsx)("input",{type:"file",accept:"image/png,image/jpeg,image/jpg",className:"position-absolute start-0 top-0 w-100 h-100 opacity-0",onChange:e=>{const l=e.target.files[0];if(!l)return;if(!["image/png","image/jpeg"].includes(l.type))return alert("Only PNG and JPG files are allowed"),void(e.target.value="");if(q)try{URL.revokeObjectURL(q)}catch(a){}I(l),Z(l?URL.createObjectURL(l):""),e.target.value=""}}),(0,v.jsx)("div",{className:"upload-label",children:"Upload "}),(0,v.jsxs)("label",{className:"upload-input mb-0",children:[(0,v.jsx)("span",{children:"Browse File to Upload"}),(0,v.jsx)("span",{className:"upload-icon",children:(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",children:(0,v.jsx)("path",{d:"M3.71429 12.2353H9.28571V6.58824H13L6.5 0L0 6.58824H3.71429V12.2353ZM0 14.1176H13V16H0V14.1176Z",fill:"#00226F"})})})]})]}),ge(B,()=>{if(q)try{URL.revokeObjectURL(q)}catch(e){}I(null),Z("")},q)]}),F&&null==B&&(0,v.jsx)("p",{className:"error mt-2",children:"Signature is required."})]})})]}),(0,v.jsx)("div",{className:"font-20px font-semibold mb-3 mt-4 px-3 px-md-4",children:"Deceased Advocate Details"}),(0,v.jsxs)("div",{className:"row px-3 px-md-4",children:[(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{className:"form-label font-16px",children:"Deceased Advocate Name"}),(0,v.jsx)("input",{type:"text",className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px bg-light",value:null===w||void 0===w?void 0:w.name_of_member,readOnly:!0,disabled:!0})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"ID / Passport No.*"}),(0,v.jsx)("input",{type:"text",className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px",id:"",value:null===w||void 0===w?void 0:w.id_passport_no,onChange:e=>{k({...w,id_passport_no:e.target.value})}}),F&&""==(null===w||void 0===w?void 0:w.id_passport_no)&&(0,v.jsx)("p",{className:"error mt-2 ",children:"ID / Passport number is required."})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Date of Admission*"}),(0,v.jsx)("div",{className:"input-group mb-3",children:(0,v.jsx)(d.A,{date:E,setDate:V,isEdit:!0,className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px",placeholder:"Select Date",maxDate:new Date})}),F&&""==E&&(0,v.jsx)("p",{className:"error mt-2 ",children:"Admission date is required."})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Lsk Member Branch*"}),(0,v.jsx)("input",{type:"text",className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px",id:"",value:null===w||void 0===w?void 0:w.lsk_member_branch,onChange:e=>{k({...w,lsk_member_branch:e.target.value})}}),F&&""==(null===w||void 0===w?void 0:w.lsk_member_branch)&&(0,v.jsx)("p",{className:"error mt-2 ",children:"LSK Member Branch is required."})]})}),(0,v.jsx)("div",{className:"col-12 col-md-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Date of Death*"}),(0,v.jsx)("div",{className:"input-group mb-3",children:(0,v.jsx)(d.A,{date:H,setDate:T,isEdit:!0,className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px",placeholder:"Select Date",maxDate:new Date})}),F&&""==H&&(0,v.jsx)("p",{className:"error mt-2 ",children:"Death date is required."})]})}),(0,v.jsx)("div",{className:"col-12 col-lg-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Certified Copy of Burial Permit / Death Certificate *"}),(0,v.jsxs)("div",{className:"input-group",children:[(0,v.jsxs)("div",{className:"upload-wrapper d-flex position-relative w-100",children:[(0,v.jsx)("input",{type:"file",accept:"application/pdf",className:"position-absolute start-0 top-0 w-100 h-100 opacity-0",onChange:e=>{var l;const a=null===(l=e.target.files)||void 0===l?void 0:l[0];if(a){if(W)try{URL.revokeObjectURL(W)}catch(s){}z(a),J(URL.createObjectURL(a)),e.target.value=""}}}),(0,v.jsxs)("div",{className:"upload-label",children:["Upload"," "]}),(0,v.jsxs)("label",{className:"upload-input mb-0",children:[(0,v.jsx)("span",{children:"Browse File to Upload"}),(0,v.jsx)("span",{className:"upload-icon",children:(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",children:(0,v.jsx)("path",{d:"M3.71429 12.2353H9.28571V6.58824H13L6.5 0L0 6.58824H3.71429V12.2353ZM0 14.1176H13V16H0V14.1176Z",fill:"#00226F"})})})]})]}),ge(Y,()=>{if(W)try{URL.revokeObjectURL(W)}catch(e){}z(null),J("")},W)]}),F&&null==Y&&(0,v.jsx)("p",{className:"error mt-2 ",children:"Certified Copy of Burial Permit / Death Certificate is required."})]})}),(0,v.jsx)("div",{className:"col-12 col-lg-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Certified Copy of Deceased National ID / Passport No. *"}),(0,v.jsxs)("div",{className:"input-group",children:[(0,v.jsxs)("div",{className:"upload-wrapper d-flex position-relative w-100",children:[(0,v.jsx)("input",{type:"file",accept:"application/pdf",className:"position-absolute start-0 top-0 w-100 h-100 opacity-0",onChange:e=>{var l;const a=null===(l=e.target.files)||void 0===l?void 0:l[0];if(a){if(X)try{URL.revokeObjectURL(X)}catch(s){}$(a),ee(URL.createObjectURL(a)),e.target.value=""}}}),(0,v.jsxs)("div",{className:"upload-label",children:["Upload"," "]}),(0,v.jsxs)("label",{className:"upload-input mb-0",children:[(0,v.jsx)("span",{children:"Browse File to Upload"}),(0,v.jsx)("span",{className:"upload-icon",children:(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",children:(0,v.jsx)("path",{d:"M3.71429 12.2353H9.28571V6.58824H13L6.5 0L0 6.58824H3.71429V12.2353ZM0 14.1176H13V16H0V14.1176Z",fill:"#00226F"})})})]})]}),ge(K,()=>{if(X)try{URL.revokeObjectURL(X)}catch(e){}$(null),ee("")},X)]}),F&&null==K&&(0,v.jsx)("p",{className:"error mt-2 ",children:"Certified Copy of Deceased National ID / Passport No. is required."})]})}),(0,v.jsx)("div",{className:"col-12 mt-2",children:(0,v.jsx)("h5",{className:"font-16px font-semibold mb-2",children:"Upload Additional Documents"})}),se.map((e,l)=>(0,v.jsx)("div",{className:"col-12 col-lg-6",children:(0,v.jsxs)("div",{className:"form-group",children:[(0,v.jsx)("label",{htmlFor:"",className:"form-label font-16px",children:"Attachments"}),(0,v.jsxs)("div",{className:"input-group",children:[(0,v.jsxs)("div",{className:"upload-wrapper d-flex position-relative w-100",children:[(0,v.jsx)("input",{type:"file",accept:"application/pdf",className:"position-absolute start-0 top-0 w-100 h-100 opacity-0",name:"attachment",onChange:e=>{var a;const s=null===(a=e.target.files)||void 0===a?void 0:a[0];s&&(Ne(l,s),e.target.value="")}}),(0,v.jsxs)("div",{className:"upload-label",children:["Upload"," "]}),(0,v.jsxs)("label",{className:"upload-input mb-0",children:[(0,v.jsx)("span",{children:"Browse File to Upload"}),(0,v.jsx)("span",{className:"upload-icon",children:(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",children:(0,v.jsx)("path",{d:"M3.71429 12.2353H9.28571V6.58824H13L6.5 0L0 6.58824H3.71429V12.2353ZM0 14.1176H13V16H0V14.1176Z",fill:"#00226F"})})})]})]}),ge(null===e||void 0===e?void 0:e.attachment,()=>Ne(l,null),null===e||void 0===e?void 0:e.attachment_value),se.length>1&&(0,v.jsx)("div",{className:"mt-1",children:(0,v.jsx)("a",{className:"link-danger text-decoration-underline font-medium DeleteFromList py-3 py-md-3",onClick:()=>(e=>{var l;if(se.length<=1)return void t.oR.error("Minimum one attachment row is required");const a=[...se],s=null===(l=a[e])||void 0===l?void 0:l.attachment_value;if(s)try{URL.revokeObjectURL(s)}catch(o){}a.splice(e,1),oe(a)})(l),children:"Delete"})})]})]})},l)),(0,v.jsx)("div",{className:"mb-4",children:(0,v.jsxs)("a",{className:"link-primary text-decoration-underline font-medium AddMoreKin",onClick:()=>{oe([...se,{attachment:null,attachment_value:""}])},children:[(0,v.jsx)("span",{className:"font-semibold",children:"+"})," ","Add More Attachment"]})})]})]}),(0,v.jsx)("div",{className:"col-12 mb-3",children:(0,v.jsx)("div",{className:"alert alert-info bg-theme-light border-0 rounded-10px p-3 p-md-4 mb-0",role:"alert",children:(0,v.jsxs)("div",{className:"d-flex align-items-start gap-2",children:[(0,v.jsx)("div",{className:"flex-shrink-0 pt-1",children:(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16",fill:"#00226F",children:(0,v.jsx)("path",{d:"M12,24A12,12,0,1,0,0,12,12.013,12.013,0,0,0,12,24ZM12,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12,5Zm-1,5h1a2,2,0,0,1,2,2v6a1,1,0,0,1-2,0V12H11a1,1,0,0,1,0-2Z"})})}),(0,v.jsxs)("div",{children:[(0,v.jsx)("h6",{className:"font-16px font-semibold mb-2",children:"Data Privacy Notice"}),(0,v.jsxs)("p",{className:"font-14px line-height-130 text-default mb-0",children:["The Advocates' Benevolent Association shall process the personal and sensitive personal data provided in this Claim Form, including supporting documents, in accordance with the Data Protection Act, 2019 and other applicable laws. Such information shall be used solely for the purposes of assessing, verifying, administering, and processing this claim, and for fulfilling any applicable legal or regulatory obligations",(0,v.jsx)("br",{}),(0,v.jsx)("br",{}),"By signing this Claim Form, you acknowledge that you have read and understood this Notice and consent to the processing of your personal data for the purposes set out above."]})]})]})})})]})]})})})})})]}),(0,v.jsx)("div",{className:"fotter-btn",children:(0,v.jsxs)("div",{className:"d-flex align-items-center justify-content-end gap-3",children:[N>1&&(0,v.jsx)("button",{type:"button",className:"btn btn-outline-secondary font-bold h-57px font-20px rounded-10px px-4",onClick:()=>{g(e=>e-1),window.scrollTo({top:0,behavior:"smooth"})},children:"Previous"}),(0,v.jsx)("button",{type:"button",className:"btn btn-primary font-bold h-57px font-20px rounded-10px px-4",disabled:1===N&&!Le(),onClick:()=>{N<2?Fe():we()},children:(0,v.jsx)("span",{className:"px-xl-2",children:2===N?"Submit":"Next"})})]})})]}),""!=ye&&(0,v.jsx)("div",{className:"app_container",children:(0,v.jsx)("div",{className:"appBodyWrapper appBodyWrapper_full",children:(0,v.jsx)("div",{className:"app_container_body pt-0 success_screen",children:(0,v.jsx)("div",{className:"success_card mx-auto max-w-550",children:(0,v.jsx)("div",{className:"dashboard_card dashboard_card_success rounded-15px border-top",children:(0,v.jsx)("div",{className:"dashboard_card_without_header rounded-15px h-auto p-4 p-md-5",children:(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{className:"success_img mb-3",children:(0,v.jsx)("img",{src:r.A})}),(0,v.jsx)("div",{className:"font-34px font-bold line-height-120 text-primary-dark mb-3",children:"Last Expense Application Submitted Successfully"}),(0,v.jsxs)("div",{className:"font-20 line-height-150",children:["Your Refrence Number : ",ye]})]})})})})})})})]})})]}),(0,v.jsx)(p.A,{})]}),re&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"modal-backdrop fade show"}),(0,v.jsx)("div",{className:"modal fade show d-block",tabIndex:"-1",role:"dialog",children:(0,v.jsx)("div",{className:"modal-dialog modal-dialog-centered",role:"document",children:(0,v.jsxs)("div",{className:"modal-content roun
1ded-10px",children:[(0,v.jsxs)("div",{className:"modal-header",children:[(0,v.jsx)("h5",{className:"modal-title",children:"Verify OTP"}),(0,v.jsx)("button",{type:"button",className:"btn-close",onClick:be})]}),(0,v.jsxs)("div",{className:"modal-body",children:[(0,v.jsx)("label",{className:"form-label font-16px",children:"Enter OTP"}),(0,v.jsx)("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:4,className:"form-control form-control-default border-color-C4D5EA font-16px h-44px rounded-5px",placeholder:"Enter 4-digit OTP",value:ne,onChange:e=>{return l=e.target.value,void de(l.replace(/\D/g,"").slice(0,4));var l}}),(0,v.jsxs)("p",{className:"font-16px text-muted mt-2 mb-2",children:["Enter the OTP sent to ",ie]}),ue?(0,v.jsx)("div",{className:"font-primary font-16px mb-3 pb-xl-1",children:"Resending OTP..."}):(0,v.jsx)(x.A,{callback:async()=>{ue||pe||await Ae({resend:!0})}})]}),(0,v.jsx)("div",{className:"modal-footer",children:(0,v.jsx)("button",{type:"button",className:"btn btn-primary",onClick:async()=>{try{ve(!0);const e=await i.A.request("post","next-of-kin-verify-otp",{email:ie,otp:ne,business_token:b});null!==e&&void 0!==e&&e.status?(t.oR.success("OTP Verified"),je(!0),be()):t.oR.error(null===e||void 0===e?void 0:e.message)}catch(F){console.log(F)}finally{ve(!1)}},disabled:4!==ne.length||xe||ue,children:xe?"Verifying...":"Verify OTP"})})]})})})]})]})}},14615:(e,l,a)=>{a.d(l,{A:()=>i});var s=a(9950),o=a(44414);const i=e=>
1{const[l,a]=(0,s.useState)(60);(0,s.useEffect)(()=>{const e=setInterval(()=>{l>0&&a(l-1)},1e3);return()=>{clearInterval(e)}},[l]);return(0,o.jsx)(o.Fragment,{children:l>0?(0,o.jsxs)("div",{className:"font-primary font-16px  mb-3 pb-xl-1",children:["Resend OTP in 00:",l>9?l:"0"+l]}):(0,o.jsx)("div",{className:"font-primary font-16px  mb-3 pb-xl-1",children:(0,o.jsx)("a",{className:"link-primary text-decoration-underline mb-3",style:{whiteSpace:"nowrap"},onClick:()=>{null===e||void 0===e||e.callback(),a(60)},children:"Resend OTP"})})})}},43898:(e,l,a)=>{a.d(l,{A:()=>s});a(9950);const s=a.p+"static/media/success.0c6c8140dda68cb4bd91ec880a18313f.svg"},74433:(e,l,a)=>{a.d(l,{A:()=>n});var s=a(9950),o=a(73286),i=(a(4434),a(81820)),t=a(44414);const n=e=>{const l=(0,s.useRef)(null),a=(0,s.forwardRef)((l,a)=>{let{value:s,onClick:o}=l;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("input",{onClick:o,type:"text",value:s,readOnly:!0,style:{backgroundColor:"white"},className:`${null===e||void 0===e?void 0:e.className}`,placeholder:null===e||void 0===e?void 0:e.placeholder})})});let n=null;if((null===e||void 0===e?void 0:e.date)instanceof Date)n=isNaN(e.date.getTime())?null:e.date;else if("string"===typeof(null===e||void 0===e?void 0:e.date)&&""!==e.date.trim()){const l=new Date(e.date);isNaN(l.getTime())||(n=l)}return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.Ay,{selected:n,className:null===e||void 0===e?void 0:e.className,onChange:l=>{null!==e&&void 0!==e&&e.setDate&&(null!==e&&void 0!==e&&e.rawDate?null===e||void 0===e||e.setDate(l):null!==e&&void 0!==e&&e.isEdit&&(null===e||void 0===e||e.setDate(i.A.dateFormat(l,null!==e&&void 0!==e&&e.showTime?"YYYY-MM-DD hh:mm a":"YYYY-MM-DD"))))},dateFormat:null!==e&&void 0!==e&&e.showTime?"dd-MMM-yyyy hh:mm a":"dd-MMM-yyyy",maxDate:null===e||void 0===e?void 0:e.maxDate,minDate:null===e||void 0===e?void 0:e.minDate,dropdownMode:"select",showMonthDropdown:!0,showYearDropdown:!0,adjustDateOnChange:!0,customInput:(0,t.jsx)(a,{}),ref:l,isClearable:!(null===e||void 0===e||!e.date),showTimeInput:!(null===e||void 0===e||!e.showTime)})})}}}]);

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.