PageSourceSearch

https://www.income.com.sg/assets/js/widgets/enquiry/enquiry.js?v=GCKlCUDSoeMk0-o3C3ipgB7d4jvxxeYQdIgKS7GdXoQ

js income.com.sg collected 2026-09-24 09:16:13 UTC 36,281 bytes, 1 lines download raw bytes

1import{R as Rt}from"../../../../vendor/react-mount.js";import{r as a,j as e}from"../../../../vendor/react-vendors.js";import{S as Ke}from"../../../../vendor/section-container.js";import{C as Gt}from"../../../../vendor/card-selector.js";import{S as Wt}from"../../../../vendor/separator.js";import{F as i}from"../../../../vendor/form-field.js";import{D as s}from"../../../../vendor/dropdown.js";import{B as et}from"../../../../vendor/button.js";import{I as Vt}from"../../../../vendor/icon.js";import{I as F}from"../../../../vendor/input-number.js";import{C as Yt}from"../../../../vendor/checkbox.js";import{s as L,v as ue,a as me,h as E,b as O}from"../../../../vendor/helper.js";import{D as z}from"../../../../vendor/datepicker.js";import{t as Ut}from"../../../../vendor/event-tag.js";import{c as zt}from"../../../../vendor/index.js";import{R as Qt}from"../../../../vendor/recaptcha-wrapper.js";import"../../../../vendor/purify.es.js";import"../../../../vendor/bootstrap.esm.js";import"../../../../vendor/DayPicker.js";const Jt=({title:tt="Send an enquiry",description:at="For suspicious activity reporting, we will respond to you within 24 hours. For all other enquiries, we will respond to you within 3 working days.",baseUrl:he,token:nt,errorUrl:st,hospitalOptions:it,incomeHospitalOptions:rt,topicOptions:lt,insurerOptions:ot,wardTypeOptions:ct,thankYouImage:dt="assets/images/widgets/advisor-connect/thank-you-page.svg",isReadOnly:ut="false",reCaptchaSiteKey:mt})=>{const Q=["Product-Policy-Enquiry","My-Account-and-Personal-Data","Rewards-Apps-Services","Feedback-Compliment"],ht=["IncomeShield Insurance","Domestic Helper Insurance"],pt=["Feedback","Compliment"],pe=["Yes","No"],yt=["A","B","C"],ft=["NA","1","2","3","4","5","6","7"],xt=L(ot,"array",["Ace Insurance","AIA Singapore","Aviva Ltd","AXA Life Insurance","Great Eastern Life Assurance","HSBC Insurance","Income Insurance Limited","Liberty Insurance","Manulife Financial","MSIG Insurance","Prudential","QBE Insurance","Raffles Health Insurance","Tokio Marine Life Insurance","Zurich Life Insurance","Others"]),gt=L(ct,"array",["Private (Inpatient)","A","B1","B2","C","Private (Day Surgery)","Restructured (Day Surgery Subsidised)","Restructured (Day Surgery Non-subsidised)"]),bt=["Day Surgery","Class C ward","Class B2 ward","Class B1 ward (pro-rated, Income pays 70%)","Class A2 ward (pro-rated, Income pays 60%)","Class A1 ward (pro-rated, Income pays 50%)"],vt=L(ut,"boolean",!1),ye=a.useRef(null),[jt,fe]=a.useState(""),[_t,xe]=a.useState(""),[ge,be]=a.useState([]),[ve,Nt]=a.useState([]),[je,St]=a.useState([]),[wt,qt]=a.useState([]),[kt,_e]=a.useState(!1),[Ne,Se]=a.useState(!1),[o,we]=a.useState(""),[j,J]=a.useState(""),[H,qe]=a.useState(""),[p,X]=a.useState(""),[f,Z]=a.useState(""),[$,ke]=a.useState(""),[_,Ce]=a.useState(""),[N,Ie]=a.useState(""),[h,Ee]=a.useState(""),[b,De]=a.useState(""),[D,Te]=a.useState(""),[T,Me]=a.useState(""),[x,R]=a.useState([{surgicalTable:"",abcTable:""}]),[Ae,Fe]=a.useState(!1),[M,K]=a.useState(""),[S,Le]=a.useState(""),[w,He]=a.useState(""),[G,Be]=a.useState(""),[v,ee]=a.useState(""),[q,Pe]=a.useState(""),[k,Oe]=a.useState(""),[C,te]=a.useState(),[$e,Re]=a.useState(),[Ge,We]=a.useState(),[y,ae]=a.useState(""),[I,ne]=a.useState(1),[g,se]=a.useState(""),[W,Ve]=a.useState(""),[V,Ye]=a.useState(""),[ie,Ue]=a.useState(""),[re,ze]=a.useState(!1),[B,le]=a.useState(),[Y,Qe]=a.useState(),[U,Je]=a.useState(),[Ct,Xe]=a.useState({}),oe=t=>{Xe(r=>({...r,[t]:!0}))},A=(t,r,c)=>{if(Ct[t]){if(!r||!r.trim())return"Enter a value";if(c&&r.length>=c)return`This field exceeds the maximum character limit of ${c} characters. Shorten your entry and try again.`}},Ze=(t,r,c)=>{R(d=>d.map((l,m)=>m===t?{...l,[r]:c}:l))},It=()=>{we(""),J(""),qe(""),X(""),Z(""),ke(""),Ce(""),Ie(""),Ee(""),De(""),Te(""),Me(""),R([{surgicalTable:"",abcTable:""}]),Fe(!1),K(""),Le(""),He(""),Be(""),ee(""),Pe(""),Oe(""),te(void 0),Re(void 0),We(void 0),ae(""),ne(1),se(""),Ve(""),Ye(""),Ue(""),ze(!1),le(void 0),Qe(void 0),Je(void 0),Xe({})},Et=()=>{var l,m,de;const t={topic:o,is_log:o==="Request-for-Letter-of-Guarantee-LOG",product:h==="IncomeShield Insurance"?"IncomeShield":"DomesticHelper"};if(o!=="Request-for-Letter-of-Guarantee-LOG")return{...t,enquiry_form:{concern:((l=ge.find(P=>P.name===j))==null?void 0:l.code)||"",policy_number:p,name:f,email:_,ph
1one_number:N,message:$,feedback:o==="Feedback-Compliment"?H:""}};const r=h==="IncomeShield Insurance",c={what_will_be_the_field_label:b,patient_full_name:f,patient_nric_fin:D,not_employed_or_with_no_hospital_plan:re?"true":"false",name_of_employer:M,select_insurer:ie,hospital_name:((m=je.find(P=>P.value===v))==null?void 0:m.key)||"",date_of_admission:O(B),ward_type:g,length_of_stay:(I??"").toString(),medical_condition_detail:y,will_you_go_under_surgery:T,estimated_total_bill:(C??"").toString(),implant_cost:(Ge??"").toString(),medi_save_amount_that_can_be_deducted:($e??"").toString(),name_of_attending_doctor:G,hospital_telephone_number:k,hospital_email_address:q,surgical_tables:x,policy_number:p},d={policy_number:p,domestic_helper_name:W,fin_passport_no:V,date_of_first_employment_in_singapore:O(Y),hospital_name:((de=ve.find(P=>P.value===v))==null?void 0:de.key)||"",date_of_admission:O(B),ward_type:g,length_of_stay:(I??"").toString(),medical_condition_details:y,date_when_symptoms_first_occurred:O(U),estimate_total_bill:(C??"").toString(),name_of_requester:M,contact_number:S,email_address:w};return{...t,...r?{income_shield_form:c}:{domestic_helper_form:d}}},Dt=async t=>{t.preventDefault(),n({user_action:"CTA Click",current_section:"Send an enquiry",click_text:"Submit enquiry"});const r=await ye.current.executeAsync(),c={...Et(),recaptcha:r};try{Se(!0);const d=await fetch(`${he}/api/enquiries/submit`,{method:"POST",headers:{"Content-Type":"application/json",RequestVerificationToken:nt},body:JSON.stringify(c)});if(!d.ok)throw new Error("Failed to submit feedback");if(!await d.json())throw Error;_e(!0),It(),window.scrollTo({top:0,left:0,behavior:"smooth"})}catch(d){window.location=st,console.error("Error:",d)}finally{Se(!1)}},Tt=t=>{R(r=>r.filter((c,d)=>d!==t))},Mt=()=>{R(t=>[...t,{surgicalTable:"",abcTable:""}])};async function At(){try{const t=await fetch(`${he}/api/enquiries/concerns?type=${o}`);if(!t.ok)throw new Error("Failed to fetch area concerns");const r=await t.json();be(r)}catch(t){console.error(t),be([])}}function Ft(){const t=new Date;return t.setDate(t.getDate()+30),t}function Lt(){const t=new Date;return t.setDate(t.getDate()-1),t}function n(t){Ut({event_type:"Engagement",target_url:"",hashed_nric:"-",hashed_email:"-",hashed_phone_number:"-",...t})}const u=a.useMemo(()=>({phoneNumber:me(N),email:ue(_),hospitalEmail:ue(q),hospitalNumber:me(k),employerNumber:me(S),employerEmail:ue(w)}),[N,_,q,k,S,w]),ce=a.useMemo(()=>{const t=(()=>{const l=o==="Feedback-Compliment"?H:!0,m=Q.includes(o)?j:!0;return l&&m&&(j==="Motor Insurance"?p:!0)&&N&&_&&f&&$&&u.email&&u.phoneNumber})(),r=T==="Yes"?x.every(l=>l.surgicalTable&&l.abcTable):!0,c=p&&g&&T&&r&&q&&u.hospitalEmail&&G&&C&&I&&D&&f&&b&&(k?u.hospitalNumber:!0),d=p&&W&&V&&Y&&v&&g&&I&&y&&U&&C&&B&&M&&S&&u.employerNumber&&w&&u.employerEmail;return{enquiry:t,incomeShield:c,domesticHelper:d,surgery:r}},[o,H,j,N,_,f,$,T,x,q,G,C,I,D,b,k,p,W,V,Y,v,g,y,U,M,S,w,u,p]),Ht=()=>e.jsxs("div",{className:"rest-enquiry-form",children:[o==="Feedback-Compliment"&&e.jsxs("div",{className:"provide",children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"You may provide your:"}),e.jsx(i,{variant:"no-float",label:"Feedback/Compliment",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:H||"Feedback/Compliment"}),e.jsx(s.Menu,{children:pt.map(t=>e.jsx(s.Menu.Item,{onClick:()=>{qe(t),n({user_action:"Select",current_section:"Send an enquiry-What do you need help with?",click_text:t})},isActive:H===t,children:t}))})]})})]}),Q.includes(o)&&e.jsxs("div",{className:"area-concern",children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"What is your area of concern?"}),e.jsx(i,{variant:"no-float",label:"Select your area of concern",infoMessageHTML:jt,children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:j||"Select your area of concern"}),e.jsx(s.Menu,{children:ge.map(t=>e.jsx(s.Menu.Item,{onClick:()=>{J(t.name),fe(t.concernDisclaimer||""),xe(t.leaveUsAMessageDisclaimer||""),n({user_action:"Select",current_section:"Send an enquiry-What is your area of concern?",click_text:`Select your area of concern-${t.name}`})},isActive:j===t.name,children:t.name},t.code))})]})})]}),e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:j==="Motor Insurance"?"What is your policy number / vehicle number?":"What is your policy number? (Optional)"}),e.jsx(i,{variant:"no-float",label:"Enter your policy number/s",id:"policy-number",infoMessage:"Ex: 000123456, 000234567, 000345678",children:e.jsx("input",{value:p,onChange:t=>X(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-What is your policy number? (Optional)",click_text:`Enter your policy number/s-${t.target.value}`}),type:"text",className:"form-control",id:"policy-number",placeholder:" "})})]}),e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"How can we address you?"}),e.jsx(i,{variant:"no-float",label:"Enter your name as per NRIC",id:"your-name",children:e.jsx("input",{value:f,onChange:t=>Z(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-How can we address you?",click_text:"Enter your name as per NRIC",hashed_nric:E(t.target.value)}),type:"text",className:"form-control",id:"your-name",placeholder:" "})})]}),e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"Let us know how to contact you"}),e.jsxs("div",{className:"enquiry-form-pair",children:[e.jsx(i,{className:"w-100 email",variant:"no-float",label:"Email address",id:"email-address",errorMessage:"Please fill in a valid email",isError:_&&!u.email,children:e.jsx("input",{value:_,onCh
1ange:t=>Ce(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-Let us know how to contact you",click_text:"Email address",hashed_email:E(t.target.value)}),type:"email",className:"form-control",id:"email-address",placeholder:" "})}),e.jsx(i,{className:"w-100 mobile",variant:"no-float",label:"Phone number",id:"phone-number",errorMessage:"Please fill in a valid number",isError:N&&!u.phoneNumber,children:e.jsx("input",{value:N,onChange:t=>Ie(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-Let us know how to contact you",click_text:"Phone number",hashed_phone_number:E(t.target.value)}),type:"tel",className:"form-control",id:"phone-number",pattern:"^(6|8|9)\\d{7}$",placeholder:" "})})]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"Leave us a message"}),e.jsx(i,{variant:"no-float",label:"Enter your message here",id:"message",infoMessageHTML:_t,children:e.jsx("textarea",{value:$,onChange:t=>ke(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-Leave us a message",click_text:`Enter your message here-${t.target.value}`}),className:"form-control",id:"message",placeholder:" "})})]}),e.jsx("button",{className:"btn btn-primary btn-default enquiry-form-submit-button",type:"submit",disabled:!ce.enquiry||Ne,children:"Submit enquiry"})]}),Bt=()=>e.jsxs("div",{children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Letter of Guarantee (LOG)"})," is to help with the upfront cash deposit required for hospitalisation or day surgery, subject to the acceptance of the hospital. You may approach the participating hospitals' administrators for assistance to request for IncomeShield LOG on your behalf."]}),e.jsx("p",{children:"Alternatively, you may gather and provide the required details for us to process your request."}),e.jsxs("p",{children:["a. Patient's NRIC/FIN",e.jsx("br",{}),"b. Patient's full name",e.jsx("br",{}),"c. Length of stay",e.jsx("br",{}),"d. Will you undergo surgery? If yes, provide your surgical table.",e.jsx("br",{}),"e. Implant cost",e.jsx("br",{}),"f. Date of admission",e.jsx("br",{}),"g. Ward type",e.jsx("br",{}),"h. Estimated total bill",e.jsx("br",{}),"i. Deductible MediSave amount",e.jsx("br",{}),"j. Medical condition",e.jsx("br",{}),"k. Hospital name",e.jsx("br",{}),"l. Name of attending doctor",e.jsx("br",{}),"m. Hospital telephone number",e.jsx("br",{}),"n. Hospital email address",e.jsx("br",{})]}),e.jsxs("p",{children:[e.jsx("div",{className:"text-color-secondary pt-3",children:"If available:"}),"o. Name of employer",e.jsx("br",{}),"p. Name of employer's insurer",e.jsx("br",{})]})]}),Pt=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"A. Particulars of domestic helper"}),e.jsxs("div",{className:"enquiry-form-pair",children:[e.jsx(i,{className:"w-100",label:"Domestic helper name*",infoMessage:"Enter name as per Work permit/Passport",id:"domestic-helper-name",children:e.jsx("input",{value:W,onChange:t=>Ve(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-A. Particulars of domestic helper",click_text:"Domestic helper name"}),type:"text",className:"form-control",id:"domestic-helper-name",placeholder:" ",maxLength:100})}),e.jsx(i,{className:"w-100",label:"FIN No. / Passport No.*",id:"passport-fin",infoMessage:"Enter as per Work permit/Passport",children:e.jsx("input",{value:V,onChange:t=>Ye(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-A. Particulars of domestic helper",click_text:"FIN No. / Passport No.*",hashed_nric:E(t.target.value)}),type:"text",className:"form-control",id:"passport-fin",placeholder:" ",maxLength:20})})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"enquiry-form-label font-subsection",children:[e.jsx("div",{children:"B. Employment status"}),e.jsxs("div",{className:"font-body fw-normal",children:["Information can be retrieved from ",e.jsx("a",{role:"button",onClick:()=>n({user_action:"Link Click",current_section:"Send an enquiry-B. Employment status",click_text:"MOM WP Online",target_url:" https://www.mom.gov.sg/faq/work-permit-for-fdw/how-do-i-check-an-fdws-employment-history"}),href:" https://www.mom.gov.sg/faq/work-permit-for-fdw/how-do-i-check-an-fdws-employment-history",children:"MOM WP Online"})]})]}),e.jsx(i,{className:"w-100 date-first-employement",label:"Date of first employment in Singapore*",id:"date-first-employement",children:e.jsx(z,{disabledDates:{after:new Date(Date.now()-365*24*60*60*1e3)},defaultMonth:new Date(Date.now()-365*24*60*60*1e3),value:Y,onChange:t=>{Qe(t),n({user_action:"Input Text",current_section:"Send an enquiry-B. Employment status",click_text:`Date of first employment in Singapore*-${O(t)}`})}})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"enquiry-form-label font-subsection",children:[e.jsx("div",{children:"C. Admission details"}),e.jsx("div",{className:"font-body fw-normal",children:"The LOG can only be issued within 7 days from the admission date for patients admitted to a Singapore Restructured Hospital and cannot be issued if the patient has already been discharged."})]}),e.jsxs("div",{className:"enquiry-form-pair enquiry-form-wrapper",children:[e.jsx(i,{className:"w-100 hospital-name",label:"Hospital name*",id:"hospital-name",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:v||"Hospital name"}),e.jsx(s.Menu,{children:ve.map(t=>e.jsx(s.Menu.Item,{onClick:()=>{ee(t.value),n({user_action:"Input Text",current_section:"Send an enquiry-C. Admission details",click_text:`Hospital name-${t.value}`})},isActive:v===t.value,children:t.value},t.key))})]})}),e.jsx(i,{className:"w-100",label:"Date of admission*",id:"date-of-admission",children:e.jsx(z,{disabledDates:{after:new Date(Date.now()+10080*60*1e3),before:new Date},value:B,onChange:t=>{le(t),n({user_action:"Select",current_section:"Send an enquiry-C. Admission details",click_text:`Date of admission-${t}`})}})})]}),e.jsxs("div",{className:"enquiry-form-pair",children:[e.jsx(i,{className:"w-100 ward-type",label:"Ward type*",id:"ward-type",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:g||"Ward type"}),e.jsx(s.Menu,{children:bt.map(t=>e.jsx(s.Menu.Item,{onClick:()=>{se(t),n({user_action:"Select",current_section:"Send an enquiry-C. Admission details",click_text:`Ward type-${t}`})},isActive:g===t,children:t},t))})]})}),e.jsx(i,{className:"w-100",variant:"always-float",label:"Length of stay*",id:"length-of-stay",children:e.jsxs("div",{className:"length-of-stay-form",children:[e.jsx(F,{maxLength:3,value:I,onChange:ne,onBlur:t=>t!==null&&n({user_action:"Input Text",current_section:"Send an enquiry-C. Admission details",click_text:`Length of stay*-${t}`}),id:"length-of-stay",integerOnly:!0}),"day(s)"]})})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"enquiry-form-label font-subsection",children:[e.jsx("div",{children:"D. Details of patient's medical condition"}),e.jsx("div",{className:"font-body fw-normal",children:"This refers to the Doctor's Diagnosis. (eg. Gastroenteritis, Hypertension)."})]}),e.jsx(i,{label:"Enter medical condition details*",id:"medical-condition",infoMessage:`${y.length}/260`,className:"enquiry-form-wrapper",children:e.jsx("textarea",{maxLength:260,value:y,onChange:t=>ae(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-D. Details of patient’s medical condition",click_text:`Enter medical condition details*-${t.target.value}`}),className:"form-control",id:"medical-condition",placeholder:" "})}),e.jsx(i,{className:"w-100",label:"Date when symptoms first occured*",id:"date-symptoms-first-occured",children:e.jsx(z,{disabledDates:{after:Lt()},value:U,onChange:t=>{Je(t),n({user_action:"Select",current_section:"Send an enquiry-D. Details of patient’s medical condition",click_text:`Date when symptoms first occured*-${t}`})}})})]}),e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"E. Cost estimation"}),e.jsxs("div",{className:"d-flex gap-1 align-items-center enquiry-form-max-width w-100",children:[e.jsx("div",{className:"fw-bold",children:"$"}),e.jsx(i,{className:"w-100 position-relative",label:"Estimated total bill*",i
1d:"estimated-total-bill",children:e.jsx(F,{value:C,onChange:te,onBlur:t=>t!==null&&n({user_action:"Input Text",current_section:"Send an enquiry-E. Cost estimation",click_text:`Estimated total bill*-${t}`}),id:"estimated-total-bill",integerOnly:!0})})]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"F. Employer details"}),e.jsxs("div",{className:"enquiry-form-pair enquiry-form-wrapper",children:[e.jsx(i,{className:"w-100",infoMessage:"Enter name as per your NRIC",label:"Name of requester*",id:"name-per-nric",children:e.jsx("input",{value:M,onChange:t=>K(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-F. Employer details",click_text:"Name of requester*"}),type:"text",className:"form-control",id:"name-per-nric",placeholder:" "})}),e.jsx(i,{className:"w-100",label:"Contact number*",id:"Contact number*",errorMessage:"Please fill in a valid number",isError:S&&!u.employerNumber,children:e.jsx("input",{value:S,onChange:t=>Le(t.target.value),onBlur:t=>n({user_action:"Input Text",current_section:"Send an enquiry-F. Employer details",click_text:"Contact number*",hashed_phone_number:E(t.target.value)}),type:"text",className:"form-control",id:"contact-number",placeholder:" "})})]}),e.jsx(i,{className:"w-100",label:"Email address*",id:"email-address",errorMessage:"Please fill in a valid email",isError:w&&!u.employerEmail,children:e.jsx("input",{value:w,onChange:t=>He(t.target.value),onBlur:t=>n({user_action:"Input Text",current_section:"Send an enquiry-F. Employer details",click_text:"Email address*",hashed_email:E(t.target.value)}),type:"email",className:"form-control",id:"email-address",placeholder:" "})})]})]}),Ot=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"A. Particulars of patient"}),e.jsxs("div",{className:"enquiry-form-pair",children:[e.jsx(i,{className:"w-100",label:"Patient’s full name*",infoMessage:"Enter patient’s name as per NRIC/FIN",id:"patient-name",errorMessage:A("userName",f,100),isError:!!A("userName",f,100),children:e.jsx("input",{value:f,onChange:t=>Z(t.target.value),onBlur:t=>{oe("userName"),t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-A. Particulars of patient",click_text:"Patient’s full name"})},type:"text",className:"form-control",id:"patient-name",placeholder:" ",maxLength:100})}),e.jsx(i,{className:"w-100",label:"Patients’s NRIC/FIN*",id:"passport-fin",infoMessage:"Enter the last 4 digits of your NRIC/FIN",errorMessage:A("fin",D,20),isError:!!A("fin",D,20),children:e.jsx("input",{value:D,onChange:t=>Te(t.target.value),onBlur:t=>{oe("fin"),t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-F. Employer details",click_text:"Patients’s NRIC/FIN*",hashed_nric:E(t.target.value)})},type:"text",className:"form-control",id:"passport-fin",placeholder:" ",maxLength:20})})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"enquiry-form-label font-subsection",children:[e.jsx("div",{className:"enquiry-form-label-main",children:"B. Employment details"}),e.jsx("div",{className:"font-body fw-normal",children:e.jsx(Yt,{checked:re,onChecked:t=>{ze(t),n({user_action:`Checkbox-${t?"Checked":"Unchecked"}`,current_section:"Send an enquiry-B. Employment details",click_text:"Not employed/self-employed OR with no other hospital plan"})},children:"Not employed/self-employed OR with no other hospital plan"})})]}),!re&&e.jsxs("div",{className:"enquiry-form-pair employement-details",children:[e.jsx(i,{className:"w-100",label:"Name of employer",id:"employer-name",children:e.jsx("input",{value:M,onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-B. Employment details",click_text:"Name of employer"}),onChange:t=>K(t.target.value),type:"text",className:"form-control",id:"employer-name",placeholder:" "})}),e.jsx(i,{className:"w-100",label:"Select insurer",id:"insurer",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:ie||"Select insurer"}),e.jsx(s.Menu,{children:xt.map(t=>e.jsx(s.Menu.Item,{onClick:()=>{Ue(t),n({user_action:"Select",current_section:"Send an enquiry-B. Employment details",click_text:`Select insurer-${t}`})},isActive:ie===t,children:t},t))})]})})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"enquiry-form-label font-subsection",children:[e.jsx("div",{children:"C. Admission details"}),e.jsx("div",{className:"font-body fw-normal",children:"LOG is issued for hospital
1isation happening within the next 30 days. No LOG can be issued if the patient has been discharged."})]}),e.jsxs("div",{className:"enquiry-form-pair enquiry-form-wrapper",children:[e.jsx(i,{className:"w-100 hospital-name",label:"Hospital name*",id:"hospital-name",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:v||"Hospital name*"}),e.jsx(s.Menu,{children:je.map(t=>e.jsx(s.Menu.Item,{onClick:()=>{ee(t.value),n({user_action:"Input Text",current_section:"Send an enquiry-C. Admission details",click_text:`Hospital name-${t.value}`})},isActive:v===t.value,children:t.value},t.key))})]})}),e.jsx(i,{className:"w-100",label:"Date of admission*",id:"date-of-admission",children:e.jsx(z,{disabledDates:{before:new Date,after:Ft()},value:B,onChange:t=>{le(t),n({user_action:"Select",current_section:"Send an enquiry-C. Admission details",click_text:`Date of admission-${t}`})}})})]}),e.jsxs("div",{className:"enquiry-form-pair",children:[e.jsx(i,{className:"w-100",label:"Ward type*",id:"ward-type",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:g||"Ward type*"}),e.jsx(s.Menu,{children:gt.map(t=>e.jsx(s.Menu.Item,{onClick:()=>{se(t),n({user_action:"Select",current_section:"Send an enquiry-C. Admission details",click_text:`Ward type-${t}`})},isActive:g===t,children:t},t))})]})}),e.jsx(i,{className:"w-100",variant:"always-float",label:"Length of stay*",id:"length-of-stay",children:e.jsxs("div",{className:"length-of-stay-form",children:[e.jsx(F,{maxLength:3,value:I,onChange:ne,onBlur:t=>t!==null&&n({user_action:"Input Text",current_section:"Send an enquiry-C. Admission details",click_text:`Length of stay*-${t}`}),id:"length-of-stay",integerOnly:!0}),"day(s)"]})})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"enquiry-form-label font-subsection",children:[e.jsx("div",{children:"D. Details of patient's medical condition"}),e.jsx("div",{className:"font-body fw-normal",children:"This refers to the Doctor's Diagnosis. (eg. Gastroenteritis, Hypertension)."})]}),e.jsx(i,{label:"Enter medical condition details*",id:"medical-condition",infoMessage:`${y.length}/260`,className:"enquiry-form-wrapper",errorMessage:A("medicalConditionDetails",y,260),isError:!!A("medicalConditionDetails",y,260),children:e.jsx("textarea",{maxLength:260,value:y,onChange:t=>ae(t.target.value),onBlur:t=>{oe("medicalConditionDetails"),t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-D. Details of patient’s medical condition",click_text:`Enter medical condition details*-${t.target.value}`})},className:"form-control",id:"medical-condition",placeholder:" "})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"enquiry-form-label font-subsection",children:[e.jsx("div",{className:"enquiry-form-label-main",children:"E. Surgery details"}),e.jsxs("div",{className:"enquiry-form-surgery",children:[e.jsx("div",{className:"font-group",children:"Will you undergo surgery?*"}),e.jsx("div",{className:"d-flex align-items-center gap-3",children:pe.map(t=>e.jsxs("div",{className:"form-check mb-0",children:[e.jsx("input",{className:"form-check-input",type:"radio",name:"surgery",value:t,checked:T===t,onChange:r=>{Me(r.target.value),n({user_action:"Select",current_section:"Send an enquiry-E. Surgery details-Will you undergo surgery?*",click_text:r.target.value})},id:`surgery-${t}`}),e.jsx("label",{className:"form-check-label font-body",htmlFor:`surgery-${t}`,children:t})]},t))})]})]}),T==="Yes"&&e.jsxs(e.Fragment,{children:[" ",x.map((t,r)=>{var c,d;return e.jsxs("div",{className:"enquiry-form-wrapper enquiry-form-surgery-details",children:[e.jsxs("div",{className:"fw-bold surgery-order",children:[r+1,"."]}),e.jsx(i,{className:"w-100 surgery-first-input",label:"Surgical table",id:"estimated-total-bill",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:(c=x[r])==null?void 0:c.surgicalTable}),e.jsx(s.Menu,{children:ft.map(l=>{var m;return e.jsx(s.Menu.Item,{onClick:()=>{Ze(r,"surgicalTable",l),n({user_action:"Select",current_section:`Send an enquiry-E. Surgery details-${r+1}`,click_text:`Surgical table-${l}`})},isActive:((m=x[r])==null?void 0:m.surgicalTable)===l,children:l},l)})})]})}),e.jsx(i,{className:"w-100 surgery-second-input",label:"Table A/B/C",id:"implant-cost",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:(d=x[r])==null?void 0:d.abcTable}),e.jsx(s.Menu,{children:yt.map(l=>{var m;return e.jsx(s.Menu.Item,{onClick:()=>{Ze(r,"abcTable",l),n({user_action:"Select",current_section:`Send an enquiry-E. Surgery details-${r+1}`,click_text:`Table A/B/C-${l}`})},isActive:((m=x[r])==null?void 0:m.abcTable)===l,children:l},l)})})]})}),r>0&&e.jsx("a",{onClick:()=>{Tt(r),n({user_action:"Select",current_section:"Send an enquiry-E. Surgery details",click_text:"Remove"})},className:"surgery-remove fw-bold text-color-secondary cursor-pointer font-body-sm",children:"Remove"})]},r)}),e.jsx("div",{className:"enquiry-form-surgery-add-more",children:e.jsxs(et,{style:"link",disabled:x.length>4,size:"default",onClick:()=>{Mt(),n({user_action:"Select",current_section:"Send an enquiry-E. Surgery details",click_text:"Add more"})},children:[e.jsx(Vt,{iconName:"plus"}),"Add more"]})})]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"F. Cost estimation"}),e.jsxs("div",{className:"enquiry-form-pair enquiry-form-wrapper",children:[e.jsxs("div",{className:"d-flex gap-1 align-items-center enquiry-form-max-width w-100",children:[e.jsx("div",{className:"fw-bold",children:"$"}),e.jsx(i,{className:"w-100 position-relative",label:"Estimated total bill*",i
1d:"estimated-total-bill",children:e.jsx(F,{value:C,onChange:te,onBlur:t=>t!=null&&n({user_action:"Input Text",current_section:"Send an enquiry-F. Cost estimation",click_text:`Estimated total bill*-${t}`}),id:"estimated-total-bill",integerOnly:!0})})]}),e.jsxs("div",{className:"d-flex gap-1 align-items-center enquiry-form-max-width w-100",children:[e.jsx("div",{className:"fw-bold",children:"$"}),e.jsx(i,{className:"w-100 position-relative",label:"Implant cost (if applicable)",id:"implant-cost",children:e.jsx(F,{value:Ge,onChange:We,onBlur:t=>t!=null&&n({user_action:"Input Text",current_section:"Send an enquiry-F. Cost estimation",click_text:`Implant cost (if applicable)-${t}`}),id:"implant-cost",integerOnly:!0})})]})]}),e.jsxs("div",{className:"d-flex gap-1 align-items-center enquiry-form-max-width",children:[e.jsx("div",{className:"fw-bold",children:"$"}),e.jsx(i,{className:"w-100 position-relative",label:"MediSave amount that can be deducted",id:"medisave-amount",children:e.jsx(F,{value:$e,onChange:Re,onBlur:t=>t!==null&&n({user_action:"Input Text",current_section:"Send an enquiry-F. Cost estimation",click_text:`MediSave amount that can be deducted-${t}`}),id:"medisave-amount",integerOnly:!0})})]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"G. Attending doctor details"}),e.jsxs("div",{className:"enquiry-form-pair enquiry-form-wrapper",children:[e.jsx(i,{className:"w-100",infoMessage:"Enter name as per Singapore Medical Council registration",label:"Name of attending doctor*",id:"doctor-name",children:e.jsx("input",{value:G,onChange:t=>Be(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-G. Attending doctor details",click_text:"Name of attending doctor*"}),type:"text",className:"form-control",id:"doctor-name",placeholder:" "})}),e.jsx(i,{className:"w-100",label:"Hospital telephone number",id:"Hospital telephone number",errorMessage:"Please fill in a valid number",isError:k&&!u.hospitalNumber,children:e.jsx("input",{value:k,onChange:t=>{Oe(t.target.value)},onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-G. Attending doctor details",click_text:"Hospital telephone number"}),type:"tel",className:"form-control",id:"hospital-number",placeholder:" "})})]}),e.jsx(i,{className:"w-100",label:"Hospital email address*",infoMessage:"LOG will be sent to the provided email address",id:"hotel-email-address",errorMessage:"Please fill in a valid email",isError:q&&!u.hospitalEmail,children:e.jsx("input",{value:q,onChange:t=>Pe(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-G. Attending doctor details",click_text:"Hospital email address"}),type:"email",className:"form-control",id:"hotel-email-address",placeholder:" "})})]})]}),$t=()=>e.jsxs("div",{className:"enquiry-form-thank-you",children:[e.jsx("div",{className:"enquiry-form-thank-you-image",children:e.jsx("img",{alt:"thankyou-image",src:dt})}),e.jsxs("div",{className:"enquiry-form-thank-you-content",children:[e.jsx("div",{className:"font-title",children:" Thank you for your submission"}),e.jsx("div",{children:"We will respond to you in 3 working days. "}),e.jsx(et,{onClick:()=>{_e(!1),n({user_action:"Link Click",current_section:"Thank you for your enquiry",click_text:"Send another enquiry"})},style:"link",size:"default",children:"Send another enquiry"})]})]});return a.useEffect(()=>{var t;Q.includes(o)&&At(),(t=document.querySelector(".rest-enquiry-form"))==null||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[o]),a.useEffect(()=>{Nt(L(it,"array",[])),St(L(rt,"array",[])),qt(L(lt,"array",[]))},[]),kt?e.jsx(Ke,{containerType:"normal",children:$t()}):e.jsx(Ke,{headingAlign:"left",heading:{title:tt,descriptionHTML:at},children:e.jsxs("form",{className:zt("enquiry-form",{"pointer-events-none":vt}),onSubmit:Dt,children:[e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"What do you need help with?"}),e.jsx("div",{className:"enquiry-form-help-type",children:wt.map(t=>e.jsx(Gt,{type:"radio",name:"topic",value:t.value,content:t.label,checked:o===t.value,onChange:()=>{we(t.value),J(""),fe(""),xe(""),n({user_action:"Select",current_section:"Send an enquiry-What do you need help with?",click_text:t.label})},icon:e.jsx("img",{src:t.icon,alt:"icon-help-type"})},t.value))})]}),e.jsx(Wt,{}),o?o==="Request-for-Letter-of-Guarantee-LOG"?e.jsxs("div",{className:"rest-enquiry-form log-form",children:[e.jsxs("div",{className:"product-type",children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"Select a product"}),e.jsxs("div",{className:"enquiry-form-pair",children:[e.jsx(i,{className:"w-100",variant:"no-float",label:"Select product",id:"product-type",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:h||"Select product"}),e.jsx(s.Menu,{children:ht.map(t=>e.jsx(s.Menu.Item,{onClick:()=>{Ee(t),n({user_action:"Select",current_section:"Send an enquiry-Select a product",click_text:t})},isActive:t===h,children:t},t))})]})}),e.jsx(i,{className:"w-100 policy-number",label:"Policy Number*",id:"policy-number",children:e.jsx("input",{value:p,onChange:t=>X(t.target.value),onBlur:t=>t.target.value.trim()&&n({user_action:"Input Text",current_section:"Send an enquiry-Select a product",click_text:`Policy Number*-${t.target.value}`}),type:"text",className:"form-control",id:"policy-number",placeholder:" "})})]})]}),h==="IncomeShield Insurance"&&e.jsxs("div",{children:[e.jsx("div",{className:"enquiry-form-label font-subsection",children:"Have you completed pre-hospitalisation financial counselling with the hospital and was informed of the deposit required by the hospital?"}),e.jsx(i,{className:"w-100",variant:"no-float",label:"Select",id:"product-type",children:e.jsxs(s,{variant:"underline",children:[e.jsx(s.Toggle,{children:b||"Select"}),e.jsx(s.Menu,{children:pe.map(t=>e.jsx(s.Menu.Item,{onClick:()=>De(t),isActive:t===b,children:t},t))})]})})]}),h==="Domestic Helper Insurance"&&Pt(),h==="IncomeShield Insurance"&&(b==="Yes"?Ot():b==="No"?Bt():null),h!==""&&(h==="IncomeShield Insurance"?b==="Yes":!0)&&e.jsxs("div",{children:[h==="Domestic Helper Insurance"?e.jsx("div",{className:"mb-4",children:"Please note the issuance of the Letter of Guarantee does not replace or alter the terms and conditions of the patient's Domestic Helper policy."}):e.jsx("div",{className:"mb-4",children:e.jsxs("label",{className:"form-check d-flex align-items-start gap-2",children:[e.jsx("input",{type:"checkbox",className:"form-check-input mt-1",checked:Ae,onChange:t=>Fe(t.target.checked)}),e.jsx("span",{className:"form-check-label",children:"I have read and agree that the issuance of a Letter of Guarantee (LOG) is not an admission of claim and is subject to policy terms, conditions, and exclusions. Your policy advisor/agent will be notified on generated LOGs."})]})}),e.jsx("button",{type:"submit",disabled:Ne||(h==="IncomeShield Insurance"?!ce.incomeShield||!Ae:!ce.domesticHelper),className:"btn btn-primary btn-default enquiry-form-submit-button",children:"Submit request"})]})]}):Ht():null,e.jsx(Qt,{ref:ye,sitekey:mt,size:"invisible",className:"d-none"})]})})};document.addEventListener("DOMContentLoaded",()=>{Rt({id:"#enquiry-form",Component:Jt})});

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.