1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,234672,e=>{"use strict";var t=e.i(491470),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=t.default.createContext&&t.default.createContext(a),o=function(){return(o=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]]);return a};function s(e){var s=function(a){var n,s=e.attr,l=e.size,i=e.title,d=r(e,["attr","size","title"]),c=l||a.size||"1em";return a.className&&(n=a.className),e.className&&(n=(n?n+" ":"")+e.className),t.default.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,s,d,{className:n,style:o(o({color:e.color||a.color},a.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&t.default.createElement("title",null,i),e.children)};return void 0!==n?t.default.createElement(n.Consumer,null,function(e){return s(e)}):s(a)}e.s(["GenIcon",0,function(e){return function(a){return t.default.createElement(s,o({attr:o({},e.attr)},a),function e(a){return a&&a.map(function(a,n){return t.default.createElement(a.tag,o({key:n},a.attr),e(a.child))})}(e.child))}}],234672)},828947,e=>{"use strict";var t=e.i(491470),a=e.i(238949),n=e.i(800064),o=e.i(840598),r=e.i(867905),s=e.i(753562),l=e.i(142681),i=e.i(238621),d=e.i(176158),c={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};let u=(0,t.forwardRef)(({className:e,...a},n)=>t.default.createElement(l.Box,{component:"span",className:(0,d.default)(c.barsLoader,e),...a,ref:n},t.default.createElement("span",{className:c.bar}),t.default.createElement("span",{className:c.bar}),t.default.createElement("span",{className:c.bar}))),m=(0,t.forwardRef)(({className:e,...a},n)=>t.default.createElement(l.Box,{component:"span",className:(0,d.default)(c.dotsLoader,e),...a,ref:n},t.default.createElement("span",{className:c.dot}),t.default.createElement("span",{className:c.dot}),t.default.createElement("span",{className:c.dot}))),h={bars:u,oval:(0,t.forwardRef)(({className:e,...a},n)=>t.default.createElement(l.Box,{component:"span",className:(0,d.default)(c.ovalLoader,e),...a,ref:n})),dots:m},p={loaders:h,type:"oval"},g=(0,n.createVarsResolver)((e,{size:t,color:n})=>({root:{"--loader-size":(0,a.getSize)(t,"loader-size"),"--loader-color":n?(0,o.getThemeColor)(n,e):void 0}})),b=(0,i.factory)((e,a)=>{let n=(0,r.useProps)("Loader",p,e),{size:o,color:i,type:d,vars:u,className:m,style:h,classNames:b,styles:f,unstyled:x,loaders:w,variant:y,children:v,...N}=n,S=(0,s.useStyles)({name:"Loader",props:n,classes:c,className:m,style:h,classNames:b,styles:f,unstyled:x,vars:u,varsResolver:g});return v?t.default.createElement(l.Box,{...S("root"),ref:a,...N},v):t.default.createElement(l.Box,{...S("root"),ref:a,component:w[d],variant:y,size:o,...N})});b.defaultLoaders=h,b.classes=c,b.displayName="@mantine/core/Loader",e.s(["Loader",0,b],828947)},570650,e=>{"use strict";var t=e.i(491470);e.s(["useDisclosure",0,function(e=!1,a){let{onOpen:n,onClose:o}=a||{},[r,s]=(0,t.useState)(e),l=(0,t.useCallback)(()=>{s(e=>e||(n?.(),!0))},[n]),i=(0,t.useCallback)(()=>{s(e=>e?(o?.(),!1):e)},[o]),d=(0,t.useCallback)(()=>{r?i():l()},[i,l,r]);return[r,{open:l,close:i,toggle:d}]}])},859804,e=>{"use strict";var t=e.i(491470),a=e.i(502533);function n(){return"u">typeof window?{x:window.pageXOffset,y:window.pageYOffset}:{x:0,y:0}}function o({x:e,y:t}){if("u">typeof window){let a={behavior:"smooth"};"number"==typeof e&&(a.left=e),"number"==typeof t&&(a.top=t),window.scrollTo(a)}}e.s(["useWindowScroll",0,function(){let[e,r]=(0,t.useState)({x:0,y:0});return(0,a.useWindowEvent)("scroll",()=>r(n())),(0,a.useWindowEvent)("resize",()=>r(n())),(0,t.useEffect)(()=>{r(n())},[]),[e,o]}])},429445,e=>{"use strict";var t=e.i(717660);e.s(["default",0,e=>{let{content:a,className:n,onClose:o}=e,r=["flex flex-row justify-between items-center px-4 py-2 rounded-lg",n].join(" ");return(0,t.jsxs)("div",{role:"alert",className:r,children:[a,(0,t.jsx)("button",{onClick:o,children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"
1currentColor",viewBox:"0 0 16 16",className:"h-4 w-4",children:(0,t.jsx)("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"})})})]})}])},374034,209563,e=>{"use strict";var t=e.i(717660);let a=({active:e,text:a})=>{let n=["z-[2] w-8 h-8 relative rounded-full bg-white border-solid border-2",e?"border-nivabupa-blue-light":"border-nivabupa-gray","flex justify-center items-center"].join(" "),o=["w-2.5 h-2.5 rounded-full",e?"bg-nivabupa-blue-light":"bg-nivabupa-gray opacity-40"].join(" ");return(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex justify-center relative",children:[(0,t.jsx)("div",{className:n,children:(0,t.jsx)("div",{className:o})}),a?(0,t.jsx)("div",{className:"text-center absolute top-9 w-24 md:text-sm text-xs",children:a}):null]})})};e.s(["default",0,a],209563),e.s(["default",0,({activeStep:e,totalSteps:n,placeholder:o,isTeleDashboard:r})=>{let s=100/(n-1)*(e-1);return(0,t.jsxs)("div",{className:`${r?"font-rubik":""} mx-auto w-full flex flex-row justify-between relative before:absolute before:bg-nivabupa-gray before:opacity-30 before:h-0.5 before:top-1/2 before:w-full before:-translate-y-1/2 before:left-0 mt-3 md:mt-0 max-w-[90%]`,children:[(0,t.jsx)("div",{className:"absolute h-0.5 top-1/2 -translate-y-1/2 left-0 bg-nivabupa-blue-light",style:{width:`${s}%`}}),[...Array(n).keys()].map(n=>(0,t.jsx)("div",{children:(0,t.jsx)(a,{text:o?o[n]:"",active:e>=n+1},n)},n))]})}],374034)},860540,111972,e=>{"use strict";var t=e.i(258853),a=e.i(242053);function n(e){if("u">typeof document)for(let t of document.cookie.split(";")){let a=t.indexOf("=");if(-1!==a&&t.slice(0,a).trim()===e)return t.slice(a+1)}}async function o({eventName:e,userData:t,customData:r}){let s=(0,a.v4)();window.fbq&&window.fbq("track",e,r||{},{eventID:s});try{await fetch("/api/meta-capi/send-event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventName:e,eventId:s,sourceUrl:window.location.href,externalId:t?.externalId,fbc:n("_fbc"),fbp:n("_fbp"),customData:r})})}catch(e){console.error("[Meta Track] Failed to send CAPI event:",e)}}let r=e=>new Promise(t=>{try{let a=window;a.dataLayer=a.dataLayer||[],"function"!=typeof a.gtag&&(a.gtag=function(){a.dataLayer.push(arguments)});let n=setTimeout(t,2e3);a.gtag("event","conversion",{...e,event_callback:()=>{clearTimeout(n),t()}})}catch(e){t()}}),s="AW-993899608",l={HI_Lead:`${s}/oWNECLLsv9wcENjo9tkD`,HI_Lead_Payment_Initiated_Tele:`${s}/qCizCNDfutwcENjo9tkD`,HI_Lead_Payment_Initiated_diy:`${s}/pofCCNWPwNwcENjo9tkD`,HI_Lead_Payment_Success_Tele:`${s}/J6xoCNHTptwcENjo9tkD`,HI_Lead_Payment_Success_diy:`${s}/MPa4CMSap9wcENjo9tkD`,HI_Policy_Logged_Tele:`${s}/sYqCILFu9wcENjo9tkD`,HI_Policy_Logged_diy:`${s}/MCWJCOrwNwcENjo9tkD`},i=async e=>{try{await o({eventName:e.eventName,customData:e.customData})}catch(e){}},d=async e=>{var a;let n=(a=e.channel)===t.Channel.TELE_CALLER?"Tele":a===t.Channel.RETAIL?"diy":null;if(!n)return;let o=`HI_Lead_Payment_Initiated_${n}`;await r({send_to:l[o],value:1,currency:"INR"}),await i({eventName:o,userData:{phone:e.phone,email:e.email},customData:{content_name:"Health Insurance",content_category:"InitiateCheckout",value:e.premium,currency:"INR"}})};e.s(["trackHILead",0,e=>{e?.channel!==t.Channel.TELE_CALLER&&(i({eventName:"HI_Lead",userData:{phone:e?.phone,email:e?.email},customData:{content_name:"Health Insurance",content_category:"Lead"}}),r({send_to:l.HI_Lead,value:1,currency:"INR"}))},"trackHIPaymentInitiated",0,d],860540);var c=e.i(717660),u=e.i(375421);e.s(["default",0,()=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u.default,{id:"hi-google-ads-gtag",strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=AW-993899608"}),(0,c.jsx)(u.default,{id:"hi-google-ads-gtag-init",strategy:"afterInteractive",children:` 2
vendor: 151 bytes, lines 2-5
2window.dataLayer = window.dataLayer || []; 3 function gtag(){dataLayer.push(arguments);} 4 gtag('js', new Date()); 5 gtag('config', '
5AW-993899608
vendor: 10 bytes, lines 5-6
5'); 6
6`})]})],111972)},867985,e=>{"use strict";var t=e.i(717660),a=e.i(491470);e.s(["default",0,({className:e})=>{let[n,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=setTimeout(()=>{o(!0);let e=setTimeout(()=>{o(!1)},1e4);return()=>{clearTimeout(e)}},5e3);return()=>{clearTimeout(e)}},[]),(0,t.jsx)("div",{className:n?e:"hidden",children:(0,t.jsxs)("span",{className:"relative h-5 w-5",children:[(0,t.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#fd7e14] opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex rounded-full h-5 w-5 bg-nivabupa-ethinosHomeOrange"})]})})}])},161132,e=>{"use strict";var t=e.i(717660),a=e.i(429445),n=e.i(374034),o=e.i(908911),r=e.i(258853),s=e.i(859804),l=e.i(453877),i=e.i(559877),d=e.i(626636),c=e.i(463547),u=e.i(32019),m=e.i(867985),h=e.i(288397),p=e.i(491470),g=e.i(807762),b=e.i(976244),f=e.i(44439),x=e.i(922960),w=e.i(84720),y=e.i(231597),v=e.i(833161),N=e.i(84654),S=e.i(800064),j=e.i(229011),k=e.i(867905),I=e.i(753562),C=e.i(142681),E=e.i(238621),T=e.i(828947),P=e.i(738309),_=e.i(404427),L={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};let O={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:(0,N.getDefaultZIndex)("overlay")},D=(0,S.createVarsResolver)((e,{zIndex:t})=>({root:{"--lo-z-index":t?.toString()}})),R=(0,E.factory)((e,t)=>{let a=(0,k.useProps)("LoadingOverlay",O,e),{classNames:n,className:o,style:r,styles:s,unstyled:l,vars:i,transitionProps:d,loaderProps:c,overlayProps:u,visible:m,zIndex:h,...g}=a,b=(0,j.useMantineTheme)(),f=(0,I.useStyles)({name:"LoadingOverlay",classes:L,props:a,className:o,style:r,classNames:n,styles:s,unstyled:l,vars:i,varsResolver:D}),x={...O.overlayProps,...u};return p.default.createElement(_.Transition,{transition:"fade",...d,mounted:!!m},e=>p.default.createElement(C.Box,{...f("root",{style:e}),ref:t,...g},p.default.createElement(T.Loader,{...f("loader"),unstyled:l,...c}),p.default.createElement(P.Overlay,{...x,...f("overlay"),darkHidden:!0,unstyled:l,color:u?.color||b.white}),p.default.createElement(P.Overlay,{...x,...f("overlay"),lightHidden:!0,unstyled:l,color:u?.color||b.colors.dark[5]})))});R.classes=L,R.displayName="@mantine/core/LoadingOverlay";var A=e.i(570650);e.i(694544);var $=e.i(492206),H=e.i(502533);function q(e){try{return e&&JSON.parse(e)}catch{return e}}function B(e){return{getItem:t=>{try{return window[e].getItem(t)}catch(e){return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(t,a)=>{try{window[e].setItem(t,a)}catch(e){console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:t=>{try{window[e].removeItem(t)}catch(e){console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}!function(e){let{getItem:t}=B(e)}("sessionStorage");var F=e.i(744318),M=e.i(860540),z=e.i(111972),U=e.i(409720),V=e.i(266787);let K=(0,U.default)(()=>e.A(528679),{loadableGenerated:{modules:[40507]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"h-12 w-full animate-pulse bg-gray-100 rounded"})}),W=(0,U.default)(()=>e.A(832068),{loadableGenerated:{modules:[614832]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"h-12 w-full animate-pulse bg-gray-100 rounded"})}),J=(0,U.default)(()=>e.A(804553),{loadableGenerated:{modules:[820128]},ssr:!1}),G=async e=>{let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")},Q=/^[a-zA-Z. ]+$/,Y=/([0-9])\1{6,}/,Z=(e,t)=>RegExp(`^\\d{${e},${t}}$`),X=e=>{switch(e){case"0":default:return"start";case"1":return"phonenumber-next";case"2":return"name-next";case"3":return"dob-next";case"4":return"office-health-confirmation-next"}},ee=e=>{switch(e){case"2":return"name-back-button";case"3":return"dob-back-button";case"4":return"office-health-confirmation-back-button";default:return"back-button"}},et={[r.ProductRoutes.BHARAT]:{max:66,min:18},[r.ProductRoutes.REASSUREV2]:{max:100,min:18},[r.ProductRoutes.REASSURE]:{max:100,min:18},[r.ProductRoutes.SENIOR_FIRST]:{max:76,min:61},[r.ProductRoutes.ASPIRE]:{max:66,min:18},[r.ProductRoutes.HEALTH_RECHARGE]:{max:66,min:18},[r.ProductRoutes.ASPIRE_SAVER]:{max:66,min:18},[r.ProductRoutes.HEALTH_PREMIA]:{max:66,min:18},[r.ProductRoutes.GO_ACTIVE]:{max:66,min:18},[r.ProductRoutes.HEARTBEAT]:{max:66,min:18},[r.ProductRoutes.HEALTH_PULSE]:{max:66,min:18},[r.ProductRoutes.ACCIDENT_CARE]:{max:66,min:18},default:{max:100,min:18}},ea=({id:e,size:a})=>(0,t.jsx)("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",id:e,width:a,height:a,xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{id:e,d:"m9 18 6-6-6-6"})}),en=({id:e,size:a})=>(0,t.jsx)("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",id:e,width:a,height:"30",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{id:e,d:"m15 18-6-6 6-6"})}),eo=(0,p.forwardRef)(({hideProgressBar:e,multi:N,exploreSection:S,productType:j,isds:k,initData:I,newDesignConfig:C,showOTP:E=!1,isCheckBoxClick:T,onClickNext:P,productRoutes:_,discountText:L,currentStep:O,hideButtons:D,onDisabledChange:U,compactHeight:eo},er)=>{var es;let[el,ei]=(0,p.useState)(O??1),[ed,ec]=(0,p.useState)(!1),[eu,em]=(0,p.useState)(!1),[eh,ep]=(0,p.useState)(!1),[eg,eb]=(0,p.useState)("Health"),[ef,{toggle:ex,close:ew}]=(0,A.useDisclosure)(!1),[ey,{open:ev,close:eN}]=(0,A.useDisclosure)(!1),[eS,ej]=(0,p.useState)(""),[ek,eI]=(0,s.useWindowScroll)(),eC=(0,h.useCompatRouter)(),eE=void 0==I?"true":"false",{cid:eT,utm_source:eP,utm_campaign:e_,utm_term:eL,utm_medium:eO,channel:eD,bankcode:eR,spCode:eA,gclid:e$,utm_adgroup:eH}=eC.query,[eq,eB]=(0,p.useState)(null);(0,p.useEffect)(()=>{(async()=>
6{let e=await fetch("/api/fetchBancaDetails",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({bankcode:eR,spCode:eA})}),t=await e.json();t&&t?.data&&eB({bankName:t.data.bankName,spCode:t.data?.currentSpDetails?.spCode,spName:t.data?.currentSpDetails?.spName,bankBranchCode:t.data?.currentSpDetails?.bankBranchCode,bankBranchName:t.data?.currentSpDetails?.bankBranchName})})()},[]),(0,p.useEffect)(()=>{P&&P(el)},[el]),(0,p.useEffect)(()=>{O&&ei(O)},[O]);let[eF,eM]=(0,d.useLocalStorage)("true"==eE?r.StorageKeys.GET_QUOTE_FORM:r.StorageKeys.TELE_QUOTE_FORM,{...I,country:x.defaultCountry,subDepartment:I?.agent!==""?I?.agent:"",phoneNumber:""},"true"==eE),[ez,eU]=(es={key:r.StorageKeys.TRAVEL_FORM},(function(e,t){let a="localStorage"===e?"mantine-local-storage":"mantine-session-storage",{getItem:n,setItem:o,removeItem:r}=B(e);return function({key:s,defaultValue:l,getInitialValueInEffect:i=!0,deserialize:d=q,serialize:c=e=>(function(e,t="use-local-storage"){try{return JSON.stringify(e)}catch(e){throw Error(`@mantine/hooks ${t}: Failed to serialize the value`)}})(e,t)}){let u=(0,p.useCallback)(t=>{let a;try{a="u"<typeof window||!(e in window)||null===window[e]||!!t}catch(e){a=!0}if(a)return l;let o=n(s);return null!==o?d(o):l},[s,l]),[m,h]=(0,p.useState)(u(i)),g=(0,p.useCallback)(e=>{e instanceof Function?h(t=>{let n=e(t);return o(s,c(n)),window.dispatchEvent(new CustomEvent(a,{detail:{key:s,value:e(t)}})),n}):(o(s,c(e)),window.dispatchEvent(new CustomEvent(a,{detail:{key:s,value:e}})),h(e))},[s]),b=(0,p.useCallback)(()=>{r(s),window.dispatchEvent(new CustomEvent(a,{detail:{key:s,value:l}}))},[]);return(0,H.useWindowEvent)("storage",t=>{t.storageArea===window[e]&&t.key===s&&h(d(t.newValue??void 0))}),(0,H.useWindowEvent)(a,e=>{e.detail.key===s&&h(e.detail.value)}),(0,p.useEffect)(()=>{void 0!==l&&void 0===m&&g(l)},[l,m,g]),(0,p.useEffect)(()=>{let e=u();void 0!==e&&g(e)},[]),[void 0===m?l:m,g,b]}})("sessionStorage","use-session-storage")(es)),[eV,eK]=(0,p.useState)(eF.dob);async function eW(){tl.bancaDetails&&eR&&eq&&(tl.bancaDetails.bankCode=eR,tl.bancaDetails.bankName=eq?.bankName,tl.bancaDetails.spCode=eq?.spCode,tl.bancaDetails.spName=eq?.spName,tl.bancaDetails.bankBranchName=eq?.bankBranchName,tl.bancaDetails.bankBranchCode=eq?.bankBranchCode)}async function eJ(e){let t=localStorage.getItem("homeInfo");if(t)try{let a=JSON.parse(t);if(a?.insuranceType==="Travel"){let t=e||eF.phoneNumber;eU(e=>({...e,mobileNumber:t})),eC.push("/travel-insurance.html")}else if(a?.insuranceType==="Corporate"){let t=await fetch("/api/corporate-insurance/get-encrypted-phonenumber",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:(e||eF.phoneNumber).toString()})}),a=await t.json();eC.push(`https://instasaral.nivabupa.com/abacusplus/?phoneNumber=${a.encryptedText}`)}}catch(e){console.error("Error parsing homeInfo from localStorage:",e)}else console.error("homeInfo not found in localStorage.")}(0,p.useEffect)(()=>{if(eF.dob&&eF.dob.includes("-")&&10===eF.dob.length){let[e,t,a]=eF.dob.split("-");e&&t&&a&&4===e.length&&eK(`${a}/${t}/${e}`)}},[eF.dob]);let eG=async e=>{let t=localStorage.getItem("homeInfo"),a="";null!==t&&(a=JSON.parse(t).insuranceType),await eJ(e),"Health"===a&&ei(e=>e+1)},eQ=j&&Object.hasOwn(et,j)?et[j]:et.default,eY=(0,p.useMemo)(()=>{let e=eF?.dob?(0,i.getAge)(eF?.dob):0;return e<=100?e:0},[eF?.dob]),{data:eZ}=(0,l.useGetUserIP)(),[eX,e0]=(0,p.useState)(59),e1=(0,p.useRef)(null),{trigger:e2,isMutating:e4,data:e6,reset:e8}=(0,l.usePhoneGenerateOTP)({onSuccess:e=>{if(tt(""),e?.success&&(e1.current&&(clearInterval(e1.current),e0(59)),e1.current=setInterval(()=>{e0(e=>e>0?e-1:(e1.current&&clearInterval(e1.current),60))},1e3),"OTPCredential"in window)){let e=new AbortController;setTimeout(()=>{e.abort()},12e4),navigator.credentials.get({otp:{transport:["sms"]},signal:e.signal}).then(e=>{let t=e?.code;t&&tt(t)}).catch(e=>{console.error(e)})}}}),{trigger:e5,isMutating:e7,data:e3,reset:e9}=(0,l.usePhoneValidateOTP)({onSuccess:()=>{tt("")}}),[te,tt]=(0,p.useState)(""),{trigger:ta,isMutating:tn}=(0,l.usePostKyc)({onSuccess:e=>{e.success&&3===el&&(eY<=75||"reassure"==j?(window.dataLayer&&window.dataLayer.push({event:"Health Insurance Form - Customer DOB",click_text:"DOB Filled",dob:eF.dob,age:(0,i.getAge)(eF?.dob),currentPage:window.location.href,nextPage:`${window.location.host}/health-insurance-plan/summary`}),window.dataLayer&&window.dataLayer.push({event:"Virtual Page Path",vpv:"vpv/health-insurance/customer-dob"}),eC.push({pathname:"/health-insurance-plan/summary",query:{multi:N||(I&&"aspire-saver"!=j&&"go-active"!=j&&"health-premia"!=j&&"health-companion"!=j&&"health-recharge"!=j&&"heartbeat"!=j&&"health-pulse"!=j&&"accident-care"!=j&&"criti-care"!=j?"true":"false"),productType:j,retailFlag:eE,isRelog:eC.query.isRelog,copay:eC.query.copay,segment:!0,channel:eF?.channel??eD,...eR&&{bankcode:eR,spCode:eA}}})):(window.dataLayer&&window.dataLayer.push({event:"Health Insurance Form - Customer DOB",click_text:"DOB Filled",dob:eF.dob,age:(0,i.getAge)(eF?.dob),currentPage:window.location.href,nextPage:`${window.location.host}/health-insurance-plan/summary`}),window.dataLayer&&window.dataLayer.push({event:"Virtual Page Path",vpv:"vpv/health-insurance/customer-dob"}),eC.push({pathname:"/health-insurance-plan/summary",query:{multi:N||(I&&"aspire-saver"!=j&&"go-active"!=j&&"health-premia"!=j&&"health-companion"!=j&&"health-recharge"!=j&&"heartbeat"!=j&&"health-pulse"!=j&&"accident-care"!=j&&"criti-care"!=j?"true":"false"),productType:j,retailFlag:eE,isRelog:eC.query.isRelog,copay:eC.query.copay,channel:eF?.channel??eD,...eR&&{bankcode:eR,spCode:eA}}})))},onError:()=>{ep(!0)}}),{trigger:to,isMutating:tr}=(0,l.useSkipPost)({onSuccess:e=>e,onError:()=>{ep(!0)}}),{trigger:ts}=(0,$.useDecryptData)({onSuccess:e=>{ej(e?.data?.phoneNumber),eM(t=>({...t,phoneNumber:e?.data?.phoneNumber,subDepartment:e?.data?.agent,agentName:e?.data?.agentName}))}}),tl={ipAddress:eZ?.ip,campaignId:eT,utmLeadFields:{utmSource:eP,utmCampaign:e_,utmTerm:eL,utmMedium:eO,utmAdgroup:eH},channel:(eF.channel??eD)||"Retail",subChannel:eF.subChannel||"Website",department:eF.department||"SWebsite",subDepartment:eF.subDepartment||"Website",agentName:eF.agentName||"",language:"english",productId:"",...(eF?.bankcode||eR)&&{bancaDetails:{bankCode:eF?.bankcode||eR,bankName:eF?.bankname||eq?.bankName,spCode:eF?.spcode||eq?.spCode,spName:eF?.spname||eq?.spName,bankBranchName:eF?.bankbranchname||eq?.bankBranchName,bankBranchCode:eF?.bankbranchcode||eq?.bankBranchCode}}},ti=()=>{ep(!1)},td=async e=>{let t=e.target.value,a=Number(eF?.country?.maximum),n=Number(eF?.country?.minimum);if(e3&&e9(),e6&&e8(),!(t.length>a)){if(eM(e=>({...e,phoneNumber:t})),t.length!=a&&eu&&em(!1),eF?.country?.ISD=="+91"&&(Y.test(t)||["0","1","2","3","4"].includes(t.charAt(0))))return void ec(!0);if(t.length==a){if(eM(e=>({...e,phoneNumber:t})),!Z(n,a).test(t))return void ec(!0);window.dataLayer&&window.dataLayer.push({event:"Health Insurance Form - Customer Contact",click_text:"Contact Filled",currentPage:window.location.href,nextPage:window.location.href,nbhiCustomerId:await G(t)}),window.dataLayer&&window.dataLayer.push({event:"Virtual Page Path",vpv:"vpv/health-insurance/customer-contact"}),window.lmSMTObj&&(0,V.lemniskTrack)("healthHomepageLead",{name:"health insurance",stepName:"Health Homepage Lead"}),window.lmSMTObj&&window.lmSMTObj.identify("",{phone:`+91${t}`}),E?e2({phoneNumber:t}):tu(t)}ed&&ec(!1)}},tc=async e=>{let t=await fetch("/api/payment-modal/check-payment-modal",{method:"POST",body:JSON.stringify({mobileNumber:e,channel:"true"===eE?"Retail":"Tele Caller"}),headers:{"Content-Type":"application/json"}});return t=await t.json(),t?.paymentModal},tu=async(e,t)=>
6{let a=t||eF?.country,n=e||eF?.phoneNumber,o={country:{isd:a?.ISD||"+91",name:a?.country||"India"}},s=localStorage.getItem("homeInfo"),l="";null!==s&&(l=JSON.parse(s).insuranceType),a?.ISD==="+91"?o.phoneNumber=n:o.intPhoneNumber=n,"Health"===l?tl.productId="ReAsssure_210":"Travel"===l?tl.productId="travel_101":tl.productId="";let i=localStorage.getItem("gclid")||e$;i&&(o.gclid=i),o.paymentModal=await tc(e||eF?.phoneNumber),(0,M.trackHILead)({phone:`${a?.ISD??"+91"}${n}`,channel:"true"===eE?"Retail":"Tele Caller"}),await eW(),ta({data:{...tl,forms:o}},{onSuccess:async t=>{t?.success&&t?.quoteId&&t?.dialerId&&(sessionStorage.setItem(r.StorageKeys.QUOTE_ID,t.quoteId),sessionStorage.setItem(r.StorageKeys.DIALER_ID,t.dialerId),localStorage.setItem("leadIds",JSON.stringify({dialerId:t.dialerId,quoteId:t.quoteId})),await eG(e))}})};(0,p.useEffect)(()=>{if(!eC.isReady)return;let e=async e=>{if(S)return;let{phoneNumber:t,country:a,fromSticky:n}=e.detail||{};if(!t)return;let o=t.replace(/\D/g,"");eM(e=>({...e,country:a||e.country,phoneNumber:o})),e.__stickyHandled||(e.__stickyHandled=!0,tu(o,a)),eI({y:0})};return window.addEventListener("sticky-prefill-quote",e),()=>{window.removeEventListener("sticky-prefill-quote",e)}},[eI,tu,eC.isReady,eC.query,S]);let tm=()=>{if(1==el&&(!Z(Number(eF?.country?.minimum),Number(eF?.country?.maximum)).test(eS||eF?.phoneNumber)||E&&!e3?.success))return!0;let e=eF?.name;return!(2!=el||e&&e?.length!==0&&Q.test(e))||3===el&&(eY>=eQ.max||eY<eQ.min)||tn||ed},th=async()=>{let e={country:{isd:eF?.country?.ISD,name:eF?.country?.country},isGodsEyeServiceCall:!1,gclid:localStorage.getItem("gclid")||e$};eF?.country?.ISD=="+91"?e.phoneNumber=eF?.phoneNumber:e.intPhoneNumber=eF?.phoneNumber,(2==el||4==el)&&(e.isGodsEyeServiceCall=!0),1==el&&(window.dataLayer&&window.dataLayer.push({event:"Health Insurance Form - Customer Contact",click_text:"Contact Filled",currentPage:window.location.href,nextPage:window.location.href,nbhiCustomerId:await G(eF?.phoneNumber)}),window.dataLayer&&window.dataLayer.push({event:"Virtual Page Path",vpv:"vpv/health-insurance/customer-contact"}),window.lmSMTObj&&window.location.pathname&&("/"==window.location.pathname||"/v1"==window.location.pathname||"/v0"==window.location.pathname)&&(0,V.lemniskTrack)(`${"/"==window.location.pathname||"/v1"==window.location.pathname||"/v0"==window.location.pathname?"healthHomepageLead":"healthGetQuoteLead"}`,{name:"health insurance",stepName:`${"/"==window.location.pathname||"/v1"==window.location.pathname||"/v0"==window.location.pathname?"Health Homepage Lead":"Health GetQuote Lead"}`}),window.lmSMTObj&&window.lmSMTObj.identify("",{phone:`+91${eF.phoneNumber}`}),window.lmSMTObj&&window.location.pathname&&"/"!=window.location.pathname&&(0,V.lemniskTrack)("healthContactDetails",{name:"Health Insurance",subProduct:j||"",planType:"",planName:"",stepName:"Phone Number"}),(0,M.trackHILead)({phone:`${eF?.country?.ISD??"+91"}${eF?.phoneNumber}`,channel:"true"===eE?"Retail":"Tele Caller"}),T?(await eW(),ta({data:{...tl,forms:{...e},cookies:{ga:(0,y.getCookie)("_ga")}}},{onSuccess:async t=>{if(t?.success&&t?.quoteId&&t?.dialerId){sessionStorage.setItem(r.StorageKeys.QUOTE_ID,t.quoteId),sessionStorage.setItem(r.StorageKeys.DIALER_ID,t.dialerId);let a=localStorage.getItem("homeInfo"),n="";null!==a&&(n=JSON.parse(a).insuranceType),"Health"==n?to({mobileNumber:eF?.phoneNumber,ip:eZ?.ip},{onSuccess:async a=>{if(a&&!a?.error&&a?.data&&a?.data.length>0&&a?.data[0]?.city&&a?.data[0]?.response?.dob){let{city:n,phoneNumber:o,response:r}=a.data[0];eM(e=>({...e,city:n,name:r?.name?.fullName,email:r?.email[0]?.email,dob:r?.dob,isSelectedTiered:!x.citiesWithoutTieredNetwork?.includes(n?.toLowerCase())}));let s=(0,i.getAge)(r.dob);await eW(),ta({data:{...tl,forms:{...e,phoneNumber:o,name:r.name.fullName,dateOfBirth:r.dob,dialerLeadsName:r.name.fullName,emailAddress:r.email[0].email,panNumber:r?.PAN[0]?.IdNumber,pincode:r?.address?.Postal,address:r?.address?.Address,consent:"true",consentTime:new Date().toISOString().split("T")[0],getQuickQuoteForm:{adultsDob:[],ageOfEldestMember:s,childsDob:[],dateofBirthOfEldestMember:r.dob,familyCombination:"1A",geography:n,noOfAdults:1,noOfChildren:0,noOfMembers:1,planType:"individual",showModal:!0,protabiltyDetails:{}},intPhoneNumber:"",pushFlag:!0},cookies:{ga:(0,y.getCookie)("_ga")}},quoteId:t?.quoteId,dialerId:t?.dialerId},{onSuccess:async e=>{if(e?.success){let t=await (0,v.homePageRedirectProduct)(s,n?.toLowerCase(),_);t?eC.push({pathname:`/health-insurance-plan/summary/${t?.productroute}`,query:{quoteId:e?.quoteId,productType:j,isRelog:eC.query.isRelog,copay:eC.query.copay,isSignzy:!0,retailFlag:eE,channel:eF?.channel??eD,...eR&&{bankcode:eR,spCode:eA}}}):await eG()}else await eG()},onError:async()=>{await eG()}})}else await eG()},onError:async e=>{await eG()}}):await eG()}},onError:async e=>{await eG()}})):(await eW(),ta({data:{...tl,forms:{...e},cookies:{ga:(0,y.getCookie)("_ga")}}},{onSuccess:async e=>{e?.success&&e?.quoteId&&e?.dialerId&&(sessionStorage.setItem(r.StorageKeys.QUOTE_ID,e.quoteId),sessionStorage.setItem(r.StorageKeys.DIALER_ID,e.dialerId),await eG())}})));let t=sessionStorage.getItem(r.StorageKeys.QUOTE_ID),a=sessionStorage.getItem(r.StorageKeys.DIALER_ID);e.name=eF?.name?.toUpperCase()||"",e.dateOfBirth=eF?.dob||"",2==el&&(window.dataLayer&&window.dataLayer.push({event:"Health Insurance Form - Customer Name",click_text:"Name Filled",currentPage:window.location.href,nextPage:window.location.href}),window.dataLayer&&window.dataLayer.push({event:"Virtual Page Path",vpv:"vpv/health-insurance/customer-name"}),window.lmSMTObj&&window.lmSMTObj.identify("",{name:eF.name},{phone:`+91${eF.phoneNumber}`}),window.lmSMTObj&&(0,V.lemniskTrack)("healthPersonalDetails",{name:"Health Insurance",subProduct:j||"",planType:"",planName:"",stepName:"Applicant Name"}),await eW(),ta({data:{...tl,forms:{...e},cookies:{ga:(0,y.getCookie)("_ga")}},quoteId:t,dialerId:a},{onSuccess:async e=>{e?.success&&(eM(t=>({city:t.city||e.prefillCity,...t})),JSON.parse(localStorage.getItem("leadIds"))?.quoteId,(0,w.createStage)({stage:"leadform_113"}),(0,w.createUUID)(),await eG())}})),3==el&&(window.lmSMTObj&&(0,V.lemniskTrack)("healthDobDetails",{name:"health insurance",stepName:"Form Submitted",dob:eF.dob}),await eW(),ta({data:{...tl,forms:{...e},cookies:{ga:(0,y.getCookie)("_ga")}},quoteId:t,dialerId:a}))},tp=()=>
6{2==el&&eF?.phoneNumber.length&&em(!0),ei(e=>e-1),ed&&ec(!1)};function tg(e,t){let[a,n,o]=e.split("/");return`${o}-${n}-${a}`}let tb=(0,F.useValidationStore)(e=>e.setHandler);(0,p.useEffect)(()=>{tb(tu)},[tb]),(0,p.useImperativeHandle)(er,()=>({submit:th,disabled:tm,goBack:tp,getActiveStep:()=>el})),(0,p.useEffect)(()=>{U?.(tm())},[el,ed,eu,tn,eF?.phoneNumber,eF?.name,eF?.dob]),(0,p.useEffect)(()=>{localStorage.setItem("homeInfo",JSON.stringify({insuranceType:"Health"}))},[]),(0,p.useEffect)(()=>{ep(!1)},[ed,eu]),(0,p.useEffect)(()=>{eC.events.on("routeChangeStart",ex),eC.events.on("routeChangeComplete",ew)},[eC]),(0,p.useEffect)(()=>{(eF?.phoneNumber==="NaN"||isNaN(Number(eF?.phoneNumber)))&&eM(e=>({...e,phoneNumber:""}))},[]),(0,p.useEffect)(()=>{eC.events.on("routeChangeStart",ex),eC.events.on("routeChangeComplete",ew),eC?.query?.phoneNumber&&ts({phoneNumber:eC.query.phoneNumber,agent:eC.query.agent,agentName:eC.query.agentName})},[eC]);let{locale:tf}=(0,h.useCompatRouter)(),tx="en"===tf?g.default:"hi"===tf?b.default:f.default,tw=[r.ProductRoutes?.ASPIRE,r.ProductRoutes?.REASSURE,r.ProductRoutes?.REASSUREV2,r.ProductRoutes?.BHARAT,r.ProductRoutes?.ASPIRE_SAVER],ty=eC.pathname.includes("telecaller-dashboard-magnus"),tv=ty&&tw.includes(j);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(z.default,{}),(0,t.jsx)(R,{visible:ef,zIndex:1e3,overlayProps:{radius:"sm",blur:2},loaderProps:{color:"yellow",size:"xl"},style:{position:"fixed",top:0,left:0,width:"100%",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center"}}),L&&(0,t.jsx)("div",{className:"relative mt-4 md:mt-0 w-full qtForm-discountLabel-ab",children:(0,t.jsx)("div",{style:{backgroundImage:"url('/aem-to-react/new-product-page/svgs/form-top-strip.svg')"},className:"bg-no-repeat background bg-[length:278px_27px] xs:bg-[length:309px_33px] sm:bg-contain xl:bg-auto absolute top-[13px] md:top-[10px] -left-4 sm:-left-5 xl:-left-6 px-4 sm:px-6 lg:px-6 xl:px-8 pt-0.5 xs:pt-1 xs:pb-4 xs:w-[320px] sm:w-full h-[27px] xs:h-[36px] lg:h-[39px] xl:h-[45px] flex items-start md:items-center z-2 qtForm-discountLabel-bg-ab",children:(0,t.jsx)("span",{className:"text-xxs sm:text-xs xl:text-base font-medium text-white qtDiscountLabelTxt",children:L})})}),(0,t.jsxs)("div",{className:`${!e||!C?"md:mt-8 mt-0":""} flex ${!C?"flex-col":`flex-col xs:flex-row ${eo?"md:h-[60px] h-[60px]":"md:h-[100px] h-[85px]"} bg-white items-center xs:justify-between justify-center w-full xs:p-0 p-2 border-2 ${eo?"border-gray-200":"border-nivabupa-ethinosHomeOrange"} rounded-[4px] mt-6`}`,children:[!e&&!S&&(0,t.jsx)(n.default,{activeStep:Math.min(el,3),totalSteps:3,placeholder:["Mobile","Name","Date of birth"],isTeleDashboard:ty}),(0,t.jsxs)("div",{className:`${S?"flex flex-row md:py-3 p-2 justify-between items-center mt-2":C?"flex flex-row md:px-3 md:py-7 px-2 py-4 justify-between":e?"bg-gray-200 relative rounded-md mt-8 flex flex-col gap-3 shadow-xl":"bg-[#F3F7F8] rounded-md mt-8 flex flex-col gap-3 shadow-xl"} ${ty?"font-rubik":""}`,children:[tv&&(0,t.jsxs)("div",{className:"bg-[#FD7E14] text-white text-sm flex flex-row font-bold gap-1 justify-center rounded-t-lg",children:[(0,t.jsx)("p",{children:"Claim Promise with zero deductions."}),(0,t.jsx)("a",{href:"#",onClick:ev,className:"underline",children:"See Details"}),(0,t.jsx)(J,{opened:ey,open:ev,close:eN})]}),1===el&&(0,t.jsxs)("div",{className:`${ty&&"py-4"}`,children:[!C&&(0,t.jsx)("label",{className:`text-nivabupa-black px-5 pt-2 7 ${e?"relative":""} 8 ${ty?"text-base font-medium":"md:text-lg font-medium"} 9 `,htmlFor:"mobile-number",children:tx["Mobile Number"]}),e&&!C&&(0,t.jsx)(m.default,{className:"absolute -inset-x-[6px] -inset-y-2 md:h-5 md:w-5"}),(0,t.jsxs)("div",{id:"quote-input-anchor",className:"flex flex-col flex-wrap gap-4 md:flex-row md:gap-0 p-2",children:[(0,t.jsx)(K,{success:eu,isLoading:e4,isds:k,inputValue:eS||eF?.phoneNumber,countryValue:eF?.country||x.defaultCountry,onMobileChange:td,onCountryChange:e=>{em(!1),eM(t=>({...t,country:e,phoneNumber:""}))},isMask:[r.Channel.TELE_CALLER,r.Channel.BANCA].includes(I?.channel)||!1,readonly:I?.channel=="Tele Caller",onMobileReset:()=>{eM(e=>({...e,phoneNumber:""}))},newDesignConfig:C,isTeleDashboard:ty}),(0,t.jsx)("input",{type:"hidden",id:"gclid_field",name:"gclid_field",value:e$}),E&&!e6&&(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)("button",{className:"p-2 text-sm text-white rounded-lg whitespace-nowrap bg-nivabupa-blue-dark w-max",disabled:e4,id:"otp-button",onClick:()=>{Z(Number(eF?.country?.minimum),Number(eF?.country?.maximum)).test(eF?.phoneNumber)?e2({phoneNumber:eF?.phoneNumber,resend:!0}):ec(!0)},children:"Send OTP"})})]}),e6?.success&&!e3?.success&&(0,t.jsxs)("div",{className:"max-w-[356px] w-full flex flex-row bg-white text-sm p-2",children:[(0,t.jsx)("input",{className:"w-full p-2 outline-none placeholder:text-sm",type:"text",placeholder:"Enter OTP, sent on your mobile",value:te,onChange:e=>{let t=e.target.value;isNaN(t)||t.length>4||(4==t.length&&e5({otp:t,phoneNumber:eF?.phoneNumber},{onSuccess:e=>{e?.success&&tu()}}),tt(t))},autoComplete:"one-time-code"}),e7&&(0,t.jsx)("div",{className:"p-2",children:(0,t.jsx)(o.default,{})}),60!=eX?(0,t.jsx)("div",{className:"p-2",children:eX}):(0,t.jsx)("div",{className:"py-2",children:(0,t.jsx)("button",{id:"resend-otp",className:"p-2 text-white rounded-lg whitespace-nowrap bg-nivabupa-blue-dark w-max",disabled:e4,onClick:()=>e2({phoneNumber:eF?.phoneNumber,resend:!0}),children:"Resend OTP"})})]}),e3?.success==!1&&(0,t.jsx)("span",{className:"text-xs text-red-700",children:e3?.msg}),ed&&(0,t.jsx)("span",{className:"text-xs text-red-700",children:tx["Please enter valid mobile number"]}),eh&&(0,t.jsx)(a.default,{className:"bg-red-100 max-w-[400px] text-red-700",content:(0,t.jsxs)("button",{className:"text-sm ",id:"retry-button",onClick:()=>{eW(),ta({...tl,forms:{phoneNumber:eF?.phoneNumber}})},children:[tx["Something went wrong."],(0,t.jsx)("wbr",{}),tx["Click here to Retry."]]}),onClose:ti})]}),2===el&&(0,t.jsxs)("div",{className:`${ty&&"py-4"}`,children:[!eo&&(0,t.jsx)("label",{className:`my-auto text-base font-medium text-nivabupa-black ${ty?"2xl:text-lg text-nivabupa-black px-5 pt-2":"md:text-lg"}`,htmlFor:"name",children:tx.Name}),(0,t.jsx)("div",{className:`flex items-center bg-white p-2 ${ty?"flex-col rounded-md m-4":"flex-row"} ${C?"md:max-w-[350px] xs:max-w-[250px] max-w-[140px]":"md:max-w-[350px] max-w-[250px]"}`,children:(0,t.jsx)("input",{id:"name",value:eF?.name,className:`w-full h-full uppercase outline-none placeholder:capitalize placeholder:text-nivabupa-black placeholder:opacity-50 placeholder:font-normal placeholder:text-sm ${ty&&"rounded-md"}`,type:"text",placeholder:"Enter Your Name",required:!0,minLength:1,onChange:e=>{let t=e.target.value;if(eM(e=>({...e,name:t})),!Q.test(t)){ec(!0),em(!1);return}t.length>=1?em(!0):em(!1),ed&&ec(!1)}})}),ed&&(0,t.jsx)("span",{className:"text-xs text-red-700",children:tx["Please enter valid name"]}),eh&&(0,t.jsx)(a.default,{className:"bg-red-100 max-w-[400px] text-red-700",content:(0,t.jsx)("span",{children:"Something went wrong."}),onClose:ti})]}),3===el&&(0,t.jsxs)("div",{className:`${C?"flex items-center text-sm md:text-base":"flex flex-col gap-2 text-lg"} ${ty&&"text-base font-rubik py-1"}`,children:[!eo&&(0,t.jsx)("label",{className:`text-nivabupa-black ${C?"text-sm md:text-base":"text-base"} font-medium ${ty?"text-base 2xl:text-lg text-nivabupa-black px-5 pt-2":"md:text-lg"}`,htmlFor:"dob",children:"Date of Birth"}),(0,t.jsxs)("div",{className:`${!eo?"bg-white":""} p-2 max-w-[276px] flex flex-row dob-ab ${C?"md:gap-4 gap-2":"gap-4"} ${ty&&"rounded-md mx-5 mb-3 md:text-base"}`,children:[(0,t.jsxs)("div",{className:`${!eo?"bg-white":""} max-w-[276px] flex flex-row dob-ab ${C?"md:gap-4 gap-2":"gap-4"} ${ty?"p-0":"p-2"}`,children:[(0,t.jsx)(W,{handleInputChange:e=>{let t=e.target.value.replace(/\D/g,"");if(t.length>=2&&(t=t.substring(0,2)+"/"+t.substring(2)),t.length>=5&&(t=t.substring(0,5)+"/"+t.substring(5,9)),eK(t),eM(e=>({...e,dob:tg(t,"quoteForm")})),10===t.length){let e=tg(t,""),a=(0,i.getAge)(e);if(a>=eQ.max||a<eQ.min)ec(!0);else{ed&&ec(!1);let t={country:{isd:eF?.country?.ISD,name:eF?.country?.country},isGodsEyeServiceCall:!1};eF?.country?.ISD=="+91"?t.phoneNumber=eF?.phoneNumber:t.intPhoneNumber=eF?.phoneNumber;let a=sessionStorage.getItem(r.StorageKeys.QUOTE_ID),n=sessionStorage.getItem(r.StorageKeys.DIALER_ID);t.name=eF?.name?.toUpperCase()||"",t.dateOfBirth=e;let o=localStorage.getItem("gclid")||e$;o&&(t.gclid=o),ta({data:{...tl,forms:{...t},cookies:{ga:(0,y.getCookie)("_ga")}},quoteId:a,dialerId:n})}}else ed&&ec(!1)},dobValue:eV,isOnTelecallerDashboard:ty}),eY>0&&(0,t.jsxs)("span",{id:"age",className:"px-2 py-1 ml-auto text-sm text-center text-black rounded-md bg-nivabupa-background ageYear-ab",children:[eY," Years"]})]}),eh&&(0,t.jsx)(a.default,{className:"bg-red-100 max-w-[400px] text-red-700",content:(0,t.jsx)("span",{children:"Something went wrong."}),onClose:ti})]}),ed&&(0,t.jsx)("span",{className:"text-xs text-red-700",children:`Please enter DOB between ${eQ.min}-${eQ.max-1} age.`})]})]}),(0,t.jsx)("div",{className:`flex flex-row justify-between w-auto ${C?"items-center md:gap-3 gap-2":""}`,children:!D&&(0,t.jsxs)(t.Fragment,{children:[1===el||C?1!==el&&C&&(0,t.jsxs)("button",{id:ee(String(el)),className:"px-2 border border-solid rounded-md md:h-[54px] h-[39px] text-nivabupa-ethinosHomeOrange border-nivabupa-ethinosHomeOrange hover:text-white hover:bg-nivabupa-ethinosHomeOrange",onClick:tp,children:[(0,t.jsx)("div",{id:ee(String(el)),className:"hidden md:block",children:(0,t.jsx)(en,{size:30,id:ee(String(el))})}),(0,t.jsx)("div",{id:ee(String(el)),className:"block md:hidden",children:(0,t.jsx)(en,{size:20,id:ee(String(el))})})]}):(0,t.jsxs)("button",{className:"flex flex-row items-center gap-1.5 mt-7 py-2 px-4 bg-nivabupa-blue-dark rounded-lg text-white",onClick:tp,id:ee(String(el)),children:[(0,t.jsx)(c.default,{id:ee(String(el)),className:"h-[24px] w-[24px]"}),(0,t.jsx)("span",{id:ee(String(el)),className:"text-sm font-bold md:text-base",children:tx.BACK})]}),(0,t.jsx)("div",{id:X(String(el)),children:(0,t.jsx)("button",{className:`flex flex-row items-center gap-1 md:px-4 px-4 roun
9ded-lg text-white ml-auto disabled:opacity-50 ${C?"md:h-[54px] h-[39px] 0 md:mr-4 mr-4 bg-nivabupa-ethinosHomeOrange":"mt-7 py-2 bg-nivabupa-blue-dark"} ${S&&"min-w-max"}`,disabled:tm(),onClick:th,id:X(String(el)),children:tn||tr?(0,t.jsx)(o.default,{}):(0,t.jsxs)(t.Fragment,{children:[C?(0,t.jsxs)("div",{className:"md:h-full md:w-full h-[10px] w-[8px] flex flex-row items-center",id:X(String(el)),children:[(0,t.jsx)("img",{src:"/ethinos-home-page/svgs/right-chevron.svg",width:10,height:15,alt:"right chevron",loading:"lazy",className:"flex md:hidden",id:X(String(el))}),(0,t.jsx)("span",{className:`hidden text-sm uppercase ${S?"md:text-sm font-semibold":"md:text-base font-bold"} md:flex`,id:X(String(el)),children:S?"get quote":1===el?"start now":"next"})]}):(0,t.jsx)("span",{className:`text-sm uppercase ${S?"md:text-sm font-semibold":"md:text-base font-bold"}`,id:X(String(el)),children:S?"get quote":1===el?"start now":"next"}),!C&&(0,t.jsx)(u.default,{className:"h-[24px] w-[24px]",id:X(String(el))}),C&&el>1&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"hidden md:block",id:X(String(el)),children:(0,t.jsx)(ea,{size:30,id:X(String(el))})})})]})})})]})})]})]})});e.s(["default",0,eo],161132)},215084,e=>{"use strict";var t=e.i(717660),a=e.i(491470),n=e.i(867985),o=e.i(161132),r=e.i(902569);let s=({activeStep:e,isCheckedTerms:a,onClickCheckBox:n})=>(0,t.jsx)(t.Fragment,{children:1==e&&(0,t.jsx)(r.default,{isCheckedTerms:a,onTermsChange:n})});var l=e.i(258853);e.s(["default",0,({productRoutes:e,discountText:r,currentStep:i,onClickNext:d})=>{let[c,u]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{window.scrollTo({top:0,behavior:"auto"})},[]),(0,t.jsxs)("div",{className:"flex flex-col desk:w-[600px] md:w-[565px] w-[95vw] gap-2 md:mb-0 mb-2",children:[(0,t.jsxs)("div",{className:" flex flex-col items-center relative w-full h-full",children:[(0,t.jsx)(o.default,{hideProgressBar:!0,isds:[],newDesignConfig:!0,isCheckBoxClick:c,onClickNext:d,productRoutes:e,discountText:r,currentStep:i,productType:l.ProductRoutes.REASSUREV3,multi:!1}),(0,t.jsx)(n.default,{className:"absolute -top-2 -left-2"})]}),(0,t.jsx)(s,{activeStep:i??1,isCheckedTerms:c,onClickCheckBox:e=>u(e)})]})}],215084)},610908,e=>{e.n(e.i(215084))},528679,e=>{e.v(t=>Promise.all(["static/chunks/02c6pcb7ke_s7.js","static/chunks/0ou3ytt~_d_9x.js","static/chunks/0ih-dj7zyz0d~.js","static/chunks/0t43dyaxl-ej1.css"].map(t=>e.l(t))).then(()=>t(40507)))},832068,e=>{e.v(t=>Promise.all(["static/chunks/0h866-dfmhjkq.js"].map(t=>e.l(t))).then(()=>t(614832)))},804553,e=>{e.v(t=>Promise.all(["static/chunks/17ukskqjvk_52.js"].map(t=>e.l(t))).then(()=>t(820128)))}]);
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.