1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6272],{2814:e=>{e.exports={input:"BMICalculator_input__W8QyT",label:"BMICalculator_label__k7ubr"}},20609:(e,t,a)=>{"use strict";a.d(t,{A:()=>C});var n=a(37876),l=a(14232),r=a(97938),s=a(50009),i=a(31408),o=a(96187),u=a(74429),d=a(21727);a(34101);var c=a(34180),m=a(2814),h=a.n(m);let p=e=>{let{onClick:t}=e;return(0,n.jsx)("div",{role:"button",onClick:t,className:"inline-block cursor-pointer","aria-label":"Open calendar",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())},children:(0,n.jsx)("img",{src:"/aem-to-react/icons/Calendar.png",alt:"Calendar icon",loading:"lazy",className:""})})};var b=a(56557),g=a.n(b),x=a(35527),f=a.n(x);g().extend(f());let y=e=>{if(!e.includes("/"))return null;let t=g()(e,"DD/MM/YYYY",!0).hour(12),a=g()().year(),n=g()().hour(12).startOf("day");return!t.isValid()||1900>t.year()||t.year()>a||t.isAfter(n)?null:t.toDate()},v=e=>y(e)||new Date(NaN),w=e=>{let{value:t,error:a,onChange:r,name:s="date",label:i="",startFrom18YearsAgo:o=!1,disabled:u=!1,classNames:d}=e,m=(0,l.useRef)({}),[b,g]=(0,l.useState)(!1),x=(0,l.useRef)(0),[f,w]=(0,l.useState)(void 0),N=(0,l.useMemo)(()=>{let e=new Date;return e.setFullYear(e.getFullYear()-18),e},[]),j=o?N:new Date;return(0,n.jsx)(c.J,{label:i,ref:e=>{m.current[s]=e},value:t||null,onChange:e=>{e&&e>j||!e||r(s,e)},date:f,onDateChange:w,rightSection:(0,n.jsx)(p,{onClick:()=>{let e;(e=m.current[s])&&(!b&&o&&!t&&w(N),b?e.blur():e.focus(),g(!b))}}),dateParser:v,placeholder:"dd/mm/yyyy",size:"sm",radius:"md",withAsterisk:!0,disabled:u,classNames:{...h(),...d},maxDate:j,hideOutsideDates:!0,error:a,onFocus:()=>{g(!0),!o||t||f||w(N)},onInput:e=>{let t=e.target,a=t?.value||"";x.current=t.selectionStart||0;let n=((e,t)=>{let a=e.replace(/\D/g,"").slice(0,8),n="";for(let e=0;e<a.length;e++)(2===e||4===e)&&(n+="/"),n+=a[e];return n})(a,0);t.value=n;let l=x.current+(n.length-a.length);if(t.setSelectionRange(l,l),10===n.length){let e=y(n);if(e&&e>j)return void r(s,null);r(s,e)}else r(s,null)},valueFormat:"DD/MM/YYYY"})};var N=a(89099),j=a(73209),S=a(62538);let C=e=>{let{opened:t=!1,setPopover:a,isds:c=[]}=e,[m,h]=(0,l.useState)(!1),[p,b]=(0,l.useState)(!1),[g,x]=(0,l.useState)(""),[f,y]=(0,l.useState)(!1),[v,C]=(0,l.useState)(""),[_,D]=(0,o.M)(u.cY.GET_QUOTE_FORM,{country:d.G_,name:"",dob:"",phoneNumber:""},!0),[R,k]=(0,l.useState)(_?.dob??null),[A,I]=(0,l.useState)(!0),P=(0,N.useRouter)(),{trigger:E,isMutating:q}=(0,j.j4)({onSuccess:e=>{if(e?.success){window.dataLayer&&(window.dataLayer.push({event:"Health Insurance Form - Customer DOB",click_text:"DOB Filled",dob:_.dob,age:(0,j.QO)(_?.dob),currentPage:window.location.href,nextPage:`${window.location.host}/health-insurance-plan/summary`}),window.dataLayer.push({event:"Virtual Page Path",vpv:"vpv/health-insurance/customer-dob"}));let e=P.query,t=e.productType||_?.productType||"reassurev3",a=_?.initData;e.multi||a&&["aspire-saver","go-active","health-premia","health-companion","health-recharge","heartbeat","health-pulse"].includes(t)}},onError:()=>console.error("KYC API failed")}),M=c||c,F=(0,l.useMemo)(()=>{let e=_?.country;if(e)return"object"==typeof e&&"ISD"in e?e:M.find(t=>t.country_code?.toLowerCase()===String(e)?.toLowerCase()||t.ISD===e||t.country_name?.toLowerCase()===String(e)?.toLowerCase())},[_?.country,M]),T=e=>{if(!e)return 0;let t=new Date(e),a=new Date,n=a.getFullYear()-t.getFullYear(),l=a.getMonth()-t.getMonth();return(l<0||0===l&&a.getDate()<t.getDate())&&n--,n},H=async e=>{let t={country:{isd:_?.country?.ISD,name:_?.country?.country}};_?.country?.ISD==="+91"?t.phoneNumber=e:t.intPhoneNumber=e;let a={ipAddress:void 0,campaignId:P.query?.cid??void 0,utmLeadFields:{utmSource:P?.query?.utm_source??void 0,utmCampaign:P.query?.utm_campaign??void 0,utmTerm:P.query?.utm_term??void 0,utmMedium:P.query?.utm_medium??void 0,utmAdgroup:P.query?.utm_adgroup??void 0},channel:_.channel||"Retail",subChannel:_.subChannel||"Website",department:_.department||"SWebsite",agentName:_.agentName||"",language:"english"};await E({data:{...a,forms:t}})},O=async()=>{b(!0);try{let e={name:_?.name??"",dateOfBirth:_.dob,country:{isd:_?.country?.ISD,name:_?.country?.country}};_?.country?.ISD==="+91"?e.phoneNumber=_?.phoneNumber:e.intPhoneNumber=_?.phoneNumber;let t={ipAddress:void 0,campaignId:P.query?.cid??void 0,utmLeadFields:{utmSource:P?.query?.utm_source??void 0,utmCampaign:P.query?.utm_campaign??void 0,utmTerm:P.query?.utm_term??void 0,utmMedium:P.query?.utm_medium??void 0,utmAdgroup:P.query?.utm_adgroup??void 0},channel:_.channel||"Retail",subChannel:_.subChannel||"Website",department:_.department||"SWebsite",agentName:_.agentName||"",language:"english"};await E({data:{...t,forms:e}});let a=P.query,n=a.productType||_?.productType||"reassurev3",l=_?.initData,r=a.multi||(l&&!["aspire-saver","go-active","health-premia","health-companion","health-recharge","heartbeat","health-pulse"].includes(n)?"true":"false");P.push({pathname:"/health-insurance-plan/summary",query:{multi:r,productType:n,retailFlag:!0,isRelog:a.isRelog,copay:a.copay}})}catch(e){}finally{b(!1),a(!1)}};return(0,l.useEffect)(()=>
1{let e=(_?.name??"").toString().trim(),t=(_?.phoneNumber??"")?.toString()?.replace(/\D/g,"")?.trim(),a=(_?.dob??"").toString().trim(),n=t.length>=Number(F?.minimum),l=e.length>0,r=T(a),s=a.length>0&&r>=18;y(l&&n&&s)},[_]),(0,l.useEffect)(()=>{let e,t=(e=String(_?.phoneNumber??""))?e.replace(/\D/g,"").length:0,a=Number(F?.minimum??"0"),n=Number(F?.maximum??"40");if(0===t){x(""),y(!1);return}if(!isNaN(a)&&t<a){x(`Please enter at least ${a} digits mobile number`),y(!1);return}if(!isNaN(n)&&t>n){x(`Please do not enter more than ${n} digits mobile number`),y(!1);return}x("")},[_?.phoneNumber,F]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(s.a.Root,{opened:t,centered:!0,onClose:()=>a(!1),classNames:{content:"border-2 border-nivabupa-ethinosHomeOrange rounded-xl overflow-hidden",header:"p-0"},children:[(0,n.jsx)(s.a.Overlay,{}),(0,n.jsx)(s.a.Content,{className:"overflow-hidden",children:(0,n.jsxs)(s.a.Body,{children:[(0,n.jsx)(s.a.CloseButton,{className:"text-nivabupa-blue-ethinosPlanRecommendation absolute right-1 top-2"}),(0,n.jsx)("h3",{className:"text-nivabupa-blue-ethinosPlanRecommendation font-bold md:text-xl text-center text-base py-4",children:"Please share the following details"}),(0,n.jsx)("form",{children:(0,n.jsxs)("div",{className:"pb-5 bg-white rounded-lg relative lg:w-full",children:[(0,n.jsxs)("div",{className:"flex flex-col w-full mb-2",children:[(0,n.jsx)("label",{className:"text-sm text-nivabupa-ethinosBlack font-semibold mb-2 block",children:"Mobile number*"}),(0,n.jsx)("div",{className:"border border-[#ced4da] w-full rounded-[3px] flex flex-col",children:(0,n.jsx)(r.A,{success:m,isLoading:p,isds:M,inputValue:_?.phoneNumber??"",countryValue:_?.country||d.G_,onMobileChange:e=>{let t=(e?.target?.value??"").replace(/\D/g,""),a=Number(F?.maximum??"10");!isNaN(a)&&t.length>a&&(t=t.slice(0,a)),D(e=>({...e||{},phoneNumber:t})),isNaN(a)||t.length!==a||H(t),m&&h(!1)},onCountryChange:e=>{D(t=>({...t||{},country:e,phoneNumber:""})),x(""),y(!1)},isMask:!1,onMobileReset:()=>{D(e=>({...e||{},phoneNumber:""})),x(""),y(!1)},newDesignConfig:!1,id:"cta-topbar-mobile-number"})}),g&&(0,n.jsx)("div",{className:"text-red-500 text-[12px] mt-1",children:g})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full mb-2",children:[(0,n.jsx)("label",{className:"text-sm text-nivabupa-ethinosBlack font-semibold mb-2 block",children:"Name"}),(0,n.jsx)(i.k,{placeholder:"Enter your full name",id:"cta-quote-name",size:"sm",required:!0,radius:"sm",withAsterisk:!0,value:_?.name??"",onChange:e=>{D(t=>({...t||{},name:e.target.value}))},className:"w-full",styles:{input:{height:"45px"}}})]}),(0,n.jsxs)("div",{className:" md:flex-row flex-col md:gap-10 gap-3 w-full mb-2",children:[(0,n.jsx)("label",{className:"text-sm text-nivabupa-ethinosBlac font-semibold mb-2 block",children:"Date of birth"}),(0,n.jsx)(w,{value:_.dob?new Date(_.dob):null,name:"dob",onChange:(e,t)=>
1{let a,n;return k(a=t?`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`:null),D(e=>({...e||{},dob:a})),n=T(a),void(a&&n<18?C("Your date of birth should be atleast 18 years"):C(""))},error:void 0}),v&&(0,n.jsx)("div",{className:"text-red-500 text-[12px] mt-1",children:v})]}),(0,n.jsx)(S.A,{activeStep:1,isCheckedTerms:A,onClickCheckBox:e=>I(e)}),(0,n.jsx)("div",{id:"get-quote-summary",className:"flex md:flex-row flex-col md:gap-10 gap-3 w-full",children:(0,n.jsx)("button",{id:"get-quote-summary",type:"button",onClick:O,disabled:!f,className:`flex flex-row items-center mt-1 gap-1.5 w-full px-3 text-center rounded-lg text-white disabled:opacity-50 md:h-[54px] h-[39px] 2 ${f?" bg-nivabupa-ethinosHomeOrange cursor-pointer":"bg-gray-400 cursor not allowed"} `,children:(0,n.jsx)("div",{className:"w-full flex flex-row justify-center items-center",children:(0,n.jsx)("span",{id:"get-quote-summary",className:"text-sm font-bold uppercase justify-center w-full md:text-base md:flex",children:"Get Quote"})})})})]})})]})})]})})}},21727:(e,t,a)=>{"use strict";a.d(t,{Fp:()=>r,G_:()=>l}),a(43728);var n=a(74429);let l={ISD:"+91",country:"India",maximum:"10",minimum:"10"};n.PH.REASSUREV2,n.PH.HEALTH_RECHARGE,n.PH.SENIOR_FIRST,n.PH.ASPIRE,n.PH.BHARAT,n.PH.GO_ACTIVE,n.PH.REASSUREV2,n.PH.SENIOR_FIRST,n.PH.ASPIRE,n.PH.ASPIRE_SAVER;let r=["krishna","hyderabad","bengaluru","bangalore rural","chandigarh"]},43728:(e,t,a)=>{"use strict";a.d(t,{Jz:()=>l});var n,l=((n={}).INDIVIDUAL="individual",n.FAMILY="family",n.MULTI_INDIVIDUAL="multi-individual",n)},73209:(e,t,a)=>{"use strict";a.d(t,{QO:()=>l.QO,Wy:()=>l.Wy,Qg:()=>l.Qg,Mj:()=>l.Mj,j4:()=>n.j4});var n=a(88849);a(82961),a(67112),a(81256),a(34333);var l=a(40721)},76272:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>d});var n=a(37876),l=a(89099),r=a(14232);let s=function(e){let{content:t}=e,[a,l]=(0,r.useState)("https://appform.nivabupa.com");(0,r.useEffect)(()=>{{let e=window?.location?.hostname;l("localhost"===e||"127.0.0.1"===e?"https://appform.nivabupa.com":window?.location?.origin)}},[]);let s=e=>e?/^https?:\/\//i.test(e)?e:`${a}${e}`:"",i=t?.banner_image?.data?.attributes?.url??t?.banner_image?.data?.[0]?.attributes?.url,o=t?.banner_mobile_image?.data?.[0]?.attributes?.url??t?.banner_mobile_image?.data?.attributes?.url,u=s(i||o),d=s(o||i);return u||d?(0,n.jsxs)("div",{className:"mx-auto max-w-[1280px] w-full",children:[u&&(0,n.jsx)("div",{className:"hidden md:block mb-8",children:(0,n.jsx)("div",{className:"relative w-full",style:{aspectRatio:"1280/200"},children:(0,n.jsx)("img",{src:u,alt:"Discount alert",loading:"lazy",width:1280,height:200,className:"w-full h-auto"})})}),d&&(0,n.jsx)("div",{className:"block md:hidden mb-8",children:(0,n.jsx)("div",{className:"relative w-full",style:{aspectRatio:"640/200"},children:(0,n.jsx)("img",{src:d,alt:"Discount alert",loading:"lazy",width:640,height:200,className:"w-full h-auto"})})})]}):null},i=function(e){let{content:t}=e;return(0,n.jsx)("div",{className:"mx-auto max-w-[1280px] w-full",children:(0,n.jsxs)("div",{className:"flex flex-row gap-6 border border-gray-300 rounded-lg md:px-8 px-0 md:pt-0 pt-5 pb-5 pr-5 items-center md:bg-gradient-to-r md:from-nivabupa-blue-ethinosPlanRecommendation bg-nivabupa-blue-ethinosPlanRecommendation md:to-white",children:[(0,n.jsx)("div",{className:"lg:w-[15%] w-[40%]",children:(0,n.jsx)("img",{src:"/aem-to-react/category-page/Family-with-donut.png",alt:"Discount alert",loading:"lazy",width:200,height:200,className:"w-full h-auto"})}),(0,n.jsxs)("div",{className:"lg:w-[85%] w-[60%] flex lg:flex-row flex-col items-center",children:[(0,n.jsxs)("div",{className:"lg:w-[70%] md:pr-10 pr-0 w-full text-sm text-white md:text-left text-center",children:[(0,n.jsx)("h3",{className:"lg:text-[1.5rem] text-xl font-semibold mb-3",children:t?.title||""}),(0,n.jsx)("p",{className:"lg:text-wrap ",children:t?.description||""})]}),(0,n.jsx)("div",{className:"lg:w-[30%] w-full text-center lg:py-0 py-1",children:(0,n.jsx)("div",{className:"bg-nivabupa-ethinosHomeOrange mx-3 px-4 lg:px-5 py-1 lg:py-2 shadow-md text-white font-semibold border-2 border-white rounded-xl text-base",children:t?.cta_button_text||"Get Quote"})})]})]})})};var o=a(20609),u=a(89482);let d=e=>{let{customStaticBannerComponentData:t,isds:a}=e,d=(0,l.useRouter)(),[c,m]=(0,r.useState)(!1);(0,r.useRef)(null);let[h,p]=(0,r.useState)(null),[b,g]=(0,r.useState)(!1),[x,f]=(0,r.useState)({}),y=()=>m(e=>!e);if((0,r.useEffect)(()=>{let e=e=>{e.target.closest('[data-trigger-quote="true"]')&&(e.preventDefault(),e.stopPropagation(),m(!0))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]),t?.showGlobalBanner===!1)return t&&t?.bannerType?(0,n.jsxs)(n.Fragment,{children:[(()=>{switch(t?.bannerType){case"text":return(0,n.jsx)("button",{"aria-label":"Get a quote",onClick:y,children:(0,n.jsx)(i,{content:t?.textContent||{}})});case"image":return(0,n.jsx)("button",{"aria-label":"Get a quote",onClick:y,children:(0,n.jsx)(s,{content:t.imageContent||{}})});default:return null}})(),c&&(0,n.jsx)(o.A,{opened:c,setPopover:m,isds:a})]}):null;
2{let e=d?.asPath.split("/").filter(Boolean),t=e?.[0].replace(/\.html$/,""),l=async()=>{let{data:{data:e=[]}}=await u.A.post("/api/strapi/get-global-static-banner"),a=e?.[0]?.attributes,n=Array.isArray(a?.directoryName)&&a?.directoryName.some(e=>e.replace(/\.html$/,"")===t),l=a?.isActive;p(a||null),l&&n&&g(!0)};return(0,r.useEffect)(()=>{l()},[]),(0,r.useEffect)(()=>{h?.content&&f(Array.isArray(h?.content)&&h?.content?.reduce((e,t)=>("cta-nudge.image-based-banner"===t.__component?e.imageContent=t:"cta-nudge.html-content"===t.__component?e.htmlContent=t?.content:e.textContent=t,e),{}))},[h?.content]),(0,n.jsxs)(n.Fragment,{children:[b&&(()=>{switch(h?.bannerType){case"text":return(0,n.jsx)("button",{"aria-label":"Get a quote",onClick:y,children:(0,n.jsx)(i,{content:x?.textContent||{}})});case"image":return(0,n.jsx)("button",{"aria-label":"Get a quote",onClick:y,children:(0,n.jsx)(s,{content:x?.imageContent||{}})});default:return null}})(),c&&(0,n.jsx)(o.A,{opened:c,setPopover:m,isds:a})]})}}}}]);
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.