PageSourceSearch

https://www.marriage.gov.sg/assets/DownloadPostMarriageQuestionnaireWithoutSingpass-CFP3-34F.js

js marriage.gov.sg collected 2026-10-02 18:39:28 UTC 2,636 bytes, 1 lines download raw bytes

1import{$ as j,r as a,d as D,p as g,w as v,x as T,I as f,i as b,f as O,j as e,E,O as S,a0 as y,F as R}from"./index-Cbueqpev.js";import{v as M}from"./PostMarriageQuestionnaireController-BxQqdd36.js";import{v as q}from"./validateIdNumberByForm-CZB-H1WD.js";const w="_title_idqr9_45",B={title:w},_=[[{type:"select",id:"idType",title:"ID type",optionIdInReference:j.ID_TYPE,isRequired:!0},{id:"idNumber",title:"ID number",type:"text",isRequired:!0,rule:q("idType")}],[{id:"marriageCertNo",title:"Marriage certificate number",type:"text",isRequired:!0}]],k=[{sectionId:"question",sectionTitle:"",fields:_}],Q={idType:"",idNumber:"",marriageCertNo:""},Y=()=>{const[o,i]=a.useState(Q),[d,s]=a.useState(!1),[l,r]=a.useState(!1),u=D(),p=g(),{formSections:n,overrideFormFields:c}=v(k),{errors:h,setErrors:F,validateAllFields:C}=T(n,o),x=(t,m)=>{i(I=>({...I,[t]:m}))},N=()=>{s(!1)},P=()=>{r(!1)};return a.useEffect(()=>{c({idType:{options:p.ID_TYPE?.map(t=>({...t,hidden:![f.PinkIdCard,f.BlueIdCard,f.ForeignTravelDocument].includes(t.value)}))}})},[]),{formData:o,onChange:x,formSections:n,errors:h,setErrors:F,isLogin:b,openPopupFound:d,openPopupNotFound:l,setOpenPopupFound:s,setOpenPopupNotFound:r,handleClosePopupFound:N,handleClosePopupNotFound:P,handleContinue:async()=>{if(C())try{const t=await M({marriageCertNumber:o.marriageCertNo,respondentIdNumber:o.idNumber});if(t?.data?.result===!1)r(!0);else if(t?.data?.result===!0){const m=O.muslimPostMarriageQuestionnaireCompleted;u(m,{state:{marriageCert:o.marriageCertNo,respondentId:o.idNumber}})}}catch(t){console.error(t)}}}},U=()=>{const o=g(),{formData:i,onChange:d,formSections:s,errors:l,setErrors:r,openPopupNotFound:u,setOpenPopupNotFound:p,handleClosePopupNotFound:n,handleContinue:c}=Y();return e.jsxs("div",{children:[e.jsx("div",{style:{display:"flex",alignItems:"center",marginTop:"100px"},children:e.jsxs("div",{children:[e.jsx("p",{className:B.title,children:"Download post-solemnisation F2F Questionnaire"}),e.jsx("p",{children:"Please enter the identity or passport number that is used at the time of marriage."}),e.jsx("br",{}),e.jsx("p",{children:"Please select ID type as Foreign Travel Document, if you had previously used e.g."}),e.jsx("p",{children:"Malaysian Blue or Certificate of Identity, etc, to register for your marriage."})]})}),e.jsx(E,{formData:i,sections:s,onChange:d,errors:l,setErrors:r,optionStore:o}),e.jsx(S,{"aria-label":y,size:"large",onClick:c,children:y}),e.jsx(R,{open:u,title:"Please check your inputs",content:"Please check your inputs and try again.",onConfirm:n,onClose:()=>p(!1),hiddenBtn:"cancel",confirmText:"OK"})]})};export{U 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.