PageSourceSearch

https://eservices.healthhub.sg/assets/index-Bc3z4LhQ.js

js healthhub.sg collected 2026-09-24 09:17:11 UTC 2,255 bytes, 1 lines download raw bytes

1import{g as u,u as h,w,F as n,bQ as U,aN as M,hj as F,gY as I,j as e,t as T,n as V,e7 as E,B as R,ar as d,hk as S,gZ as L,s as k,p as B,I as D,V as H}from"./index-Ba5x2QVK.js";import{M as A}from"./MobileStickyFooter-B4125FCe.js";import{a as Q}from"./addClassToBoldTag-ClyyjMwx.js";const{Text:m}=T,q=({title:c})=>{const{isPortalView:l}=u(),{t}=h(),a=w(),[r]=n.useForm(),{getSearchString:g}=U(),{clearUserProfile:p,userProfile:f}=M(),x=g("redirectPath")??"",[b,{isLoading:N}]=F(),y={contact:I(f?.ContactNumber)},C=()=>{a(D(decodeURIComponent(x),{fillMyInfo:!0}),{replace:!0})},P=async s=>{try{await b({ContactNumber:L(s.contact??""),UpdateMode:S.ContactNo}),p(),C()}catch(i){const o=i;k({btnText:t("button.close"),content:B(Q(o?.message??"","font-bold text-base")),errorCode:o.code})}};return e.jsxs("div",{className:"flex h-full flex-col gap-y-4 bg-white p-4",children:[e.jsxs("div",{className:"flex flex-col gap-y-2.5",children:[e.jsx(m,{className:"text-base font-semibold",children:"Update your contact details"}),e.jsx(m,{className:"text-sm text-functional-iron",children:c})]}),e.jsxs(n,{className:"flex flex-col gap-y-4",form:r,initialValues:y,onFinish:P,children:[e.jsx(n.Item,{className:"mb-0",name:"contact",rules:[E(!0,t("personalHealth.myProfile.incorrectPhoneNumber"))],validateFirst:!0,children:e.jsx(V,{className:"lg:w-1/2",onChange:s=>{s?.trim()||r.setFields([{errors:[],name:"contact"}])},placeholder:t("personalHealth.myProfile.contactNumber"),required:!0})}),e.jsx(A,{className:d("bg-white shadow-none text-center",{"mt-8":l}),children:e.jsx(n.Item,{shouldUpdate:!0,children:({getFieldsError:s,getFieldValue:i})=>{const o=s().some(j=>j.errors.length>0),v=!i("contact");return e.jsx(R,{className:"json-checked w-full",disabled:o||v,htmlType:"submit",loading:N,children:"Next"})}})})]})]})},G=()=>{const{isMobileView:c,isPortalView:l,isSharedServiceView:t}=u(),{t:a}=h(),r=[{title:a("caregivers.addCaregivers.title")}];return e.jsx(H,{breadcrumbs:{portal:{breadcrumbsDetails:r,isIncludedDefaultNav:!1}},className:d({"p-4":l}),title:a("caregivers.addCaregivers.title"),children:e.jsx("div",{className:d({"h-screen":c||t}),children:e.jsx(q,{title:a("caregivers.addCaregivers.acceptCaregiverFillMyInfoDescription")})})})};export{G as default};

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.