1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1140],{21763:(e,r,a)=>{"use strict";a.r(r),a.d(r,{__N_SSG:()=>T,default:()=>M});var l=a(37876),s=a(14232),o=a(53693),n=a(15039),i=a.n(n),d=a(54587),t=a.n(d),c=a(1155),m=a(62775),u=a(13737);let p=u.Ik().shape({fullName:u.Yj().trim().required("Please provide Insurer/Proposer name").matches(m.wk.USERNAME_REGEX,{message:"Please provide valid Insurer/Proposer name",excludeEmptyString:!0}),pan:u.Yj().trim().uppercase().required("Please enter your PAN number").matches(m.Ch.PAN_KYC,"Please enter a valid PAN number"),mobile:u.Yj().required("Please enter your mobile number").matches(m.Ch.MOBILE_NUMBER,"Please enter a valid 10-digit mobile number"),policyNumber:u.Yj().trim().required("Please provide Policy number").matches(m.Ch.POLICY_NUMBER,{message:"Please provide valid Policy number",excludeEmptyString:!0}),darpanID:u.Yj().trim().uppercase().required("Please provide Darpan ID").matches(m.Ch.DARPAN_ID,{message:"Please provide valid Darpan ID",excludeEmptyString:!0})});var h=a(86719),g=a(63822),x=a(70646),b=a(1005),v=a(71015),N=a(81767),_=a(26098),j=a(81445),f=a(30455),y=a(96315),I=a(13252),C=a(57513),D=a(59772),w=a(86156),P=a(70386),S=a(82549),A=a(27680),B=a(75375),X=a(75423),E=a.n(X),T=!0;let M=function(e){let{pageData:r}=e,{howToRegister:a}=r||{},n=(0,N.A)(),d=(0,s.useRef)(),[u,X]=(0,s.useState)(!1),[T,M]=(0,s.use
1State)(!1),[O,R]=(0,s.useState)(!1),[k,F]=(0,s.useState)(!1),[G,H]=(0,s.useState)(!1),[L,V]=(0,s.useState)(!1),W=()=>{V(e=>!e)},Y=(0,o.Wx)({initialValues:{fullName:"",pan:"",mobile:"",policyNumber:"",darpanID:""},validationSchema:p,validateOnChange:!0,validateOnBlur:!0,onSubmit:async e=>{await K(e.mobile)}}),K=async e=>{if(!O)try{let{hasError:r=!1,data:a={message:""}}=await (0,x.A)({mobile:e||"",lob:m.Wu.FNB});if(a.message===b.sK)M(!0);else if(!r)return void X(!0);X(!1)}catch(e){M(!0),X(!1)}},q=async()=>{try{let e={proposerName:Y.values.fullName||"",proposerPan:Y.values.pan||"",proposerMobile:Y.values.mobile||"",policyNumber:Y.values.policyNumber||"",darpanId:Y.values.darpanID||""};await y.A.post("saveDarpanLead",e),H(!0)}catch(e){H(!1)}finally{F(!0)}},z=(0,l.jsxs)("div",{className:E().darpanTooltipModalContent,children:[(0,l.jsx)("h3",{className:E().darpanTooltipHeader,children:"Darpan ID"}),(0,l.jsx)("p",{className:E().darpanTooltipBody,children:"A DARPAN ID is a unique identification number issued to non-governmental organizations (NGOs), trusts, and voluntary organizations by the NITI Aayog, Government of India"})]}),J=(0,l.jsxs)("div",{className:E().receivedDataJSX,children:[(0,l.jsx)("div",{children:(0,l.jsx)(t(),{src:"/docSubmit.svg",alt:"Done",height:73,width:87})}),G?(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{children:"Thank you!"}),(0,l.jsx)("div",{children:"We have received your details"})]}):(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{children:"Something went wrong"}),(0,l.jsx)("div",{children:"We couldn't submit your details at the moment. Please try again after some time."})]})]});return(0,l.jsxs)("div",{children:[(0,l.jsx)(I.A,{setAdobeAnalyticsData:w.w3}),r?.SchemaContext&&r?.SchemaContext.map((e,r)=>(0,l.jsx)(C.A,{object:e?.Data},r)),r?.seo&&(0,l.jsx)(D.A,{title:r.seo.title,canonical:r.seo.canonical,desc:r.seo.description,keywords:r.seo.keywords,image:r?.bgImage?.url,twitter:r?.bgImage?.url}),(0,l.jsxs)("div",{className:"container",children:[(0,l.jsxs)("div",{className:E().formWrapper,children:[u&&(0,l.jsx)(g.A,{isOpen:u,toggleModal:X,mobile:Y.values.mobile,mobileRef:d,handleSubmit:q,setOtpVerified:R,lob:m.Wu.FNB,isQuote:!1,product:"sme"}),T&&(0,l.jsx)(h.A,{isOpen:T}),k&&n&&(0,l.jsx)(v.A,{open:k,onClose:()=>{F(e=>!e)},containerBg:E().mobileModalBg,showHeader:!1,children:J}),L&&n&&(0,l.jsx)(v.A,{open:L,onClose:W,containerBg:E().mobileModalBg,modalInnerContent:E().modalInnerContent,showHeader:!1,children:z}),k&&!n&&(0,l.jsx)(_.A,{isOpen:k,centered:!0,className:E().erroModal,rootClass:E().errorModalBody,children:(0,l.jsx)(j.A,{className:E().erroModalPadding,children:J})}),(0,l.jsxs)("div",{className:E().leftSec,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{children:r?.heading}),(0,l.jsx)("h2",{children:r?.subHeading})]}),n&&(0,l.jsx)("div",{className:E().imageSection,children:(0,l.jsx)(t(),{src:r?.image?.url,alt:"img",height:116,width:310})}),(0,l.jsx)("div",{className:E().formCard,children:(0,l.jsxs)("form",{onSubmit:Y.handleSubmit,children:[(0,l.jsxs)("div",{className:E().formInnerDiv,children:[(0,l.jsx)("div",{className:E().row1,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:E().label,children:"Insured/Proposer name"}),(0,l.jsx)(c.pd,{id:"fullName",name:"fullName",placeholder:"E.g. John Doe",value:Y.values.fullName,onChange:e=>{let r=e.target.value.replace(m.wk.NAME_REGEX,"").replace(m.wk.SPACE_REGEX," ").trimStart();Y.setFieldValue("fullName",r)},onBlur:Y.handleBlur,error:Y.touched.fullName&&Y.errors.fullName,className:i()("form-control border-0",Y.touched.fullName&&Y.errors.fullName?E().errorClass:E().regNumberInput,E().removingPadding)}),Y.touched.fullName&&Y.errors.fullName&&(0,l.jsxs)("small",{className:i()(E().errorText),children:[(0,l.jsx)(t(),{src:"/errorRed.svg",height:16,width:16,alt:"X"}),Y.errors.fullName]})]})}),(0,l.jsxs)("div",{className:E().row,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:E().label,children:"Insured/Proposerâs PAN no."}),(0,l.jsx)(c.pd,{id:"pan",name:"pan",type:"text",placeholder:"E.g. CYXXXXXXXX",maxLength:10,value:Y.values.pan,onChange:e=>{let r=e.target.value.toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,10);Y.setFieldValue("pan",r)},onBlur:Y.handleBlur,error:Y.touched.pan&&Y.errors.pan,className:i()("form-control border-0 text-uppercase",Y.touched.pan&&Y.errors.pan?E().errorClass:E().regNumberInput,E().removingPadding)}),Y.touched.pan&&Y.errors.pan&&(0,l.jsxs)("small",{className:i()(E().errorText),children:[(0,l.jsx)(t(),{src:"/errorRed.svg",height:16,width:16,alt:"X"}),Y.errors.pan]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:E().label,children:"Insured/Proposerâs mobile no."}),(0,l.jsx)(c.pd,{id:"mobile",name:"mobile",type:"text",placeholder:"E.g. 91XXXXXXXX",maxLength:10,value:Y.values.mobile,onChange:e=>{let r=e.target.value.replace(/\D/g,"");r?/^[6-9]/.test(r)&&r.length<=10&&Y.setFieldValue("mobile",r):Y.setFieldValue("mobile","")},onBlur:Y.handleBlur,ref:d,error:Y.touched.mobile&&Y.errors.mobile,className:i()("form-control border-0",Y.touched.mobile&&Y.errors.mobile?E().errorClass:E().regNumberInput,E().removingPadding)}),Y.touched.mobile&&Y.errors.mobile&&(0,l.jsxs)("small",{className:i()(E().errorText),children:[(0,l.jsx)(t(),{src:"/errorRed.svg",height:16,width:16,alt:"X"}),Y.errors.mobile]})]})]}),(0,l.jsxs)("div",{className:E().row,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:E().label,children:"Policy number"}),(0,l.jsx)(c.pd,{id:"policyNumber",name:"policyNumber",type:"text",placeholder:"E.g. 1234567890",maxLength:10,value:Y.values.policyNumber,onChange:e=>{let r=e.target.value.replace(/\D/g,"").slice(0,10);Y.setFieldValue("policyNumber",r)},onBlur:Y.handleBlur,error:Y.touched.policyNumber&&Y.errors.policyNumber,className:i()("form-control border-0",Y.touched.policyNumber&&Y.errors.policyNumber?E().errorClass:E().regNumberInput,E().removingPadding)}),Y.touched.policyNumber&&Y.errors.policyNumber&&(0,l.jsxs)("small",{className:i()(E().errorText),children:[(0,l.jsx)(t(),{src:"/errorRed.svg",height:16,width:16,alt:"X"}),Y.errors.policyNumber]})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:E().label,children:["Darpan ID",n?(0,l.jsx)("img",{src:"/InfoButtonIcon.svg",alt:"info",className:E().tooltipIcon,onClick:W,style:{cursor:"pointer"},height:27,width:27}):(0,l.jsx)(f.A,{content:"A DARPAN ID is a unique identification number issued to non-governmental organizations (NGOs), trusts, and voluntary organizations by the NITI Aayog, Government of India",styleClass:E().tooltipContent,src:"/InfoButtonIcon.svg",iconClass:E().tooltipIcon})]}),(0,l.jsx)(c.pd,{id:"darpanID",name:"darpanID",type:"text",placeholder:"E.g. KA/2018/0186525",maxLength:15,value:Y.values.darpanID,onChange:e=>{let r=e.target.value.toUpperCase().slice(0,15),a=Y.values.darpanID;2===r.length&&1===a.length?r+="/":7===r.length&&6===a.length&&(r+="/"),Y.setFieldValue("darpanID",r)},onBlur:Y.handleBlur,error:Y.touched.darpanID&&Y.errors.darpanID,className:i()("form-control border-0 text-uppercase",Y.touched.darpanID&&Y.errors.darpanID?E().errorClass:E().regNumberInput,E().removingPadding)}),Y.touched.darpanID&&Y.errors.darpanID&&(0,l.jsxs)("small",{className:i()(E().errorText),children:[(0,l.jsx)(t(),{src:"/errorRed.svg",height:16,width:16,alt:"X"}),Y.errors.darpanID]})]})]})]}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{type:"submit",className:i()(E().cardBuyBtn,"btn w-100"),children:"Submit"})})]})})]}),!n&&(0,l.jsx)("div",{className:E().imageSection,children:(0,l.jsx)(t(),{src:r?.image?.url,alt:"img",height:179,width:477})})]}),(0,l.jsx)("div",{className:E().stepsSection,children:(0,S.A)(a)&&(0,l.jsxs)("div",{className:i()("container-fluid pb-40"),children:[(0,l.jsx)("h2",{className:i()(E().motorKeyFeatureHeading),children:a?.heading}),(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,A.C)(a?.subHeading||"")}}),(0,l.jsx)("div",{className:E().boxes,children:(0,l.jsx)(P.A,{list:a?.list,showNumbers:!0,whiteBg:!1})})]})})]}),(0,l.jsxs)("div",{className:"container-fluid",children:[(0,l.jsx)("div",{className:"container py-3 pb-5",children:(0,l.jsx)(B.Y4,{footer:r?.footer})}),(0,l.jsx)("div",{className:"container-fluid px-0",children:(0,l.jsx)(B.CP,{footer:r?.footer})})]})]})}},51655:(e,r,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/darpan-id",function(){return a(21763)}])},75423:e=>{e.exports={formWrapper:"darpan-id_formWrapper__jG_h4",leftSec:"darpan-id_leftSec__okkJ2",removingPadding:"darpan-id_removingPadding__sjhHl",label:"darpan-id_label__wgz21",tooltipIcon:"darpan-id_tooltipIcon__lffdt",errorClass:"darpan-id_errorClass__FC9wa",regNumberInput:"darpan-id_regNumberInput__nuhC2",formCard:"darpan-id_formCard__CLM6G",errorText:"darpan-id_errorText__1tBdx",formInnerDiv:"darpan-id_formInnerDiv__XhtQ9",row1:"darpan-id_row1__CrdCG",row:"darpan-id_row__Vdz2T",cardBuyBtn:"darpan-id_cardBuyBtn__3odsm",mobileModalBg:"darpan-id_mobileModalBg__gxk4d",modalInnerContent:"darpan-id_modalInnerContent__tlj5O",receivedDataJSX:"darpan-id_receivedDataJSX__zO_hT",darpanTooltipModalContent:"darpan-id_darpanTooltipModalContent__TOt2m",darpanTooltipHeader:"darpan-id_darpanTooltipHeader__PxUOJ",darpanTooltipBody:"darpan-id_darpanTooltipBody__OhDGt",imageSection:"darpan-id_imageSection__yLQr4",motorKeyFeatureHeading:"darpan-id_motorKeyFeatureHeading__JjK0e",stepsSection:"darpan-id_stepsSection__Wugit",boxes:"darpan-id_boxes__SKf2O"}}},e=>{e.O(0,[638,636,6593,8792],()=>e(e.s=51655)),_N_E=e.O()}]);
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.