PageSourceSearch

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

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

1import{g as u,u as f,w as j,F as l,aN as w,j as e,t as T,f as I,cS as C,B as v,ar as h,s as M,p as P,I as R,gA as E,V}from"./index-Ba5x2QVK.js";import{M as D}from"./MobileStickyFooter-B4125FCe.js";import{a as H}from"./addClassToBoldTag-ClyyjMwx.js";const{Text:m}=T,S=({title:r})=>{const{isPortalView:i}=u(),{t:a}=f(),o=j(),[n]=l.useForm(),{clearUserProfile:x,hasFilledMyInfo:c,userProfile:d}=w(),p={fullName:c?d?.Name:""},y=()=>{o(R(E,{fillMyInfo:!0,fullName:n.getFieldValue("fullName").trim()}),{replace:!0})},N=async()=>{try{x(),y()}catch(s){const t=s;M({btnText:a("button.close"),content:P(H(t?.message??"","font-bold text-base")),errorCode:t.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:r})]}),e.jsxs(l,{className:"flex flex-col gap-y-4",form:n,initialValues:p,onFinish:N,children:[e.jsx(l.Item,{className:"mb-0",name:"fullName",rules:[C()],validateFirst:!0,children:e.jsx(I,{className:"lg:w-1/2",disabled:!!c&&!!d?.Name,isShowBottomRequiredText:!0,onChange:s=>{s.target.value.trim()||n.setFields([{errors:[],name:"fullName"}])},placeholder:a("personalHealth.myProfile.fullName"),required:!0})}),e.jsx(D,{className:h("bg-white shadow-none text-center",{"mt-8":i}),children:e.jsx(l.Item,{shouldUpdate:!0,children:({getFieldsError:s,getFieldValue:t})=>{const b=!t("fullName"),g=s().some(({errors:F})=>F.length>0);return e.jsx(v,{className:"json-checked w-full",disabled:b||g,htmlType:"submit",children:a("button.next")})}})})]})]})},_=()=>{const{isMobileView:r,isSharedServiceView:i}=u(),{t:a}=f(),o=[{title:a("familyFriend.familyFriendHealth.addNewTitle")}];return e.jsx(V,{breadcrumbs:{portal:{breadcrumbsDetails:o,isIncludedDefaultNav:!1}},title:a("familyFriend.familyFriendHealth.addNewTitle"),children:e.jsx("div",{className:h({"h-screen":r||i}),children:e.jsx(S,{title:a("familyFriend.addFamilyFriends.carerecipientFillMyInfoDescription")})})})};export{_ 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.