PageSourceSearch

https://www.tataaig.com/_next/static/chunks/638-623750f29644889e.js

js tataaig.com collected 2026-09-24 09:44:00 UTC 16,097 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[638],{1005:(e,t,o)=>{"use strict";o.d(t,{IW:()=>r,LX:()=>i,Qe:()=>l,mp:()=>c,qe:()=>d,sK:()=>a});var s=o(13737),n=o(62775);let r=()=>{sessionStorage.getItem(n.rS.USER_ID)&&sessionStorage.removeItem(n.rS.USER_ID)},a="Unauthorized Access",i={mobileNumber:"",businessPremise:""},l=()=>s.Ik().shape({businessPremise:s.Yj().required("Select business premise"),mobileNumber:s.Yj().required("Please enter your mobile number").matches(n.wk.MOBILE_NUMBER,"Enter correct mobile number")}),c=e=>{window.digitalData={page:{pageInfo:{pageName:"Product : Fire and Burglary Insurancee",pageUrl:document.URL},category:{siteSection:"SME",siteSubSection1:"",siteSubsection2:"",pageType:"Product"}},product:[{productInfo:{productId:"261",productName:"Fire and Burglary Insurance"},category:{productCategory:"SME"}}],eventData:{businessPremise:e.businessPremise||""}}},d=(e,t)=>({source:e?.utm_source||t||"",term:e?.utm_term||"",campaign:e?.utm_campaign||"",medium:e?.utm_medium||"",content:e?.utm_content||"",adgroup:e?.utm_adgroup||"",network:e?.utm_network||"",matchtype:e?.utm_matchtype||"",device:e.utm_device||"",placement:e?.utm_placement||"",audience:e?.utm_audience||"",adposition:e?.utm_adposition||"",location:e?.utm_location||"",sitelink:e?.utm_sitelink||"",promotion:e?.utm_promotion||"",price:e?.utm_price||""})},13496:e=>{e.exports={tooltipIcon:"tooltip_tooltipIcon__jEGEP",tooltipBox1:"tooltip_tooltipBox1__Fwneu",toolTipContent:"tooltip_toolTipContent__KzGit",tooltipBox1Disabled:"tooltip_tooltipBox1Disabled__1G0Ge"}},21092:e=>{e.exports={errorModal:"errorModal_errorModal__YbBER",errorModalBody:"errorMod
1al_errorModalBody___YlUA",errorModalContainer:"errorModal_errorModalContainer__YBgI5",errorModalText:"errorModal_errorModalText__XZ7cU"}},30455:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o(37876),n=o(14232),r=o(15039),a=o.n(r),i=o(27680),l=o(13496),c=o.n(l);let d=n.memo(e=>{let{content:t,src:o,hasTitle:n,title:r,shiftLeft:l,shiftTop:d,isDisabled:m=!1,styleClass:p,customStyle:u={},iconClass:_,iconImage:f,setInnerContent:g,contentClass:h="",infoIcon:x=!1,isSmp:v=!1}=e,T=x?"/icons/info2.svg":"/travel/questionMark.svg";return o&&(T=o),(0,s.jsxs)("div",{className:m?a()(c().tooltipBox1,c().tooltipBox1Disabled):a()(c().tooltipBox1),children:[v?(0,s.jsx)("img",{className:_,src:T,alt:"i"}):(0,s.jsx)("div",{className:a()(c().tooltipIcon,_),children:(0,s.jsx)("img",{className:f,src:T,alt:"?"})}),(0,s.jsxs)("div",{className:a()(c().toolTipContent,"text-center",p),style:{left:l,top:d,...u},children:[n&&(0,s.jsx)("h5",{className:a()("color-primary","text-center font-18 font-sm-14"),children:r}),g?(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,i.C)(t)}}):(0,s.jsx)("p",{className:a()(h),children:t})]})]})})},54495:e=>{e.exports={otpErrorMsg:"otpVerificationComponent_otpErrorMsg__9hEoZ",otpVerificationMsg:"otpVerificationComponent_otpVerificationMsg__IXNIC",headingBackground:"otpVerificationComponent_headingBackground__kI9Q0",otpVerificationContainer:"otpVerificationComponent_otpVerificationContainer__XpGuA",otpInputLabelText:"otpVerificationComponent_otpInputLabelText__l_2RM",customeBackDropClass:"otpVerificationComponent_customeBackDropClass__xx9l4",otpVerificationQuoteMsg:"otpVerificationComponent_otpVerificationQuoteMsg__YE4_n",otpVerificationTitle:"otpVerificationComponent_otpVerificationTitle__q3ofn",otpVerificationChangeMobileNum:"otpVerificationComponent_otpVerificationChangeMobileNum__8E5mu",mainHeading:"otpVerificationComponent_mainHeading__lTITH",otpTimeOrResend:"otpVerificationComponent_otpTimeOrResend__DLidT",smeOtpTimeOrResend:"otpVerificationComponent_smeOtpTimeOrResend__jP_TL",changeMobileNumButton:"otpVerificationComponent_changeMobileNumButton___5nsm",resendbtn:"otpVerificationComponent_resendbtn__SYS2N",otpVerificationInputContainer:"otpVerificationComponent_otpVerificationInputContainer__qlYs8",otpInput:"otpVerificationComponent_otpInput__KZqCz",errorOtpInput:"otpVerificationComponent_errorOtpInput__1l4Xc",otpModal:"otpVerificationComponent_otpModal__4fneF",smeOTPModal:"otpVerificationComponent_smeOTPModal___kuuj",otpModalPadding:"otpVerificationComponent_otpModalPadding__mT_Tg",otpClossBtn:"otpVerificationComponent_otpClossBtn__Ll1rY",otpModalBody:"otpVerificationComponent_otpModalBody__pzS63",otpVerificationHeading:"otpVerificationComponent_otpVerificationHeading__63cS4"}},63822:(e,t,o)=>{"use strict";o.d(t,{A:()=>C});var s=o(37876),n=o(14232),r=o(15039),a=o.n(r),i=o(66760),l=o(54495),c=o.n(l),d=o(57186),m=o(22188),p=o(1155),u=o(70646),_=o(86156),f=o(62775),g=o(43627);let h=e=>{let t,{fromStore:o,otpCount:r,resendOTP:i,isVerified:l,resendOTPText:h="",resendOTPLinkClass:x="",children:v,mobile:T,hideResendBtn:S=!1,lob:C,isQuote:j}=e,b=/^[\d]+/g,[M,N]=(0,n.useState)(121),[y,I]=(0,n.useState)(!1),O=(0,n.useRef)(),E=(0,n.useRef)(),[V,P]=(0,n.useState)(""),[k,B]=(0,n.useState)(""),[A,w]=(0,n.useState)(!1),R=`Haven't Received The Otp On ${T} via SMS?`;(0,n.useEffect)(()=>(0===M?(clearInterval(O.current),N(()=>121),I(!0)):M<121&&(O.current=setInterval(()=>N(M-1),1e3)),()=>{clearInterval(O.current)}),[M]),(0,n.useEffect)(()=>((async function(){I(!1),N(120)})(),()=>{clearInterval(O.current)}),[r]),(0,n.useEffect)(()=>{},[V]),(0,n.useEffect)(()=>{E&&E.current?.focus()},[]);let D=(0,s.jsx)("a",{href:"#",className:x,onClick:e=>{e.preventDefault(),i(),B(""),P(""),E&&E.current?.focus(),w(!1)},children:h||"Resend OTP"});return(0,s.jsxs)("section",{className:a()(),children:[(0,s.jsxs)("div",{className:a()("d-flex justify-content-between pr-4"),children:[(0,s.jsx)("div",{children:(0,s.jsx)("label",{htmlFor:"mobile",className:a()("t_input_label"),children:"Enter OTP"})}),(0,s.jsx)("div",{children:!S&&(0,s.jsx)("span",{className:a()("t_input_label",x),children:y?D:(t=Math.floor(M/60),`${`${t}`.padStart(2,"0")}:${`${M%60}`.padStart(2,"0")}`)})})]}),(0,s.jsx)("div",{className:"d-md-flex d-sm-block",children:(0,s.jsx)(m.A,{mask:"____",replacement:{_:/\d/},type:"tel",showMask:!0,placeholder:"_ _ _ _",className:a()("t_input",c().otpInput,k&&c().errorOtpInput),onChange:e=>P(e.target.value),name:"otp",value:V,onClick:()=>{let e=V.match(b)?V.match(b)[0].length:null;E.current.setCursorPosition(e)},"aria-describedby":"otp",autoComplete:"off",autoFocus:!0,ref:E})}),v({errorMessage:k,setOtpErrorMsg:B,showResend:y}),j&&(0,s.jsx)("div",{className:a()("d-flex align-items-center justify-content-center",c().otpVerificationMsg),children:R}),(0,s.jsx)("div",{className:"mt-5 d-flex align-items-center justify-content-center",children:(0,s.jsx)(p.$n,{className:c().changeMobileNumButton,onClick:()=>{let e=V.match(/\d/g);e&&4===e.length&&!A&&async function(){let e=(0,d.A)();sessionStorage.setItem(f.rS.KEY,e);try{let t={verifyOn:o.sendTo,key:e,otp:V},s=await (0,u.v)(t);"[200]"===s.statusCode&&s.data.verified?(clearInterval(O.current),l(s.data.verified,s.data.encryptedData),g.A.setInSessionStorage(f.rS.USER_VERIFIED_QUOTE,JSON.stringify({mobile:o.sendTo}))):"You have 4 more attempts left"===s.message||"You have 3 more attempts left"===s.message||"You have 2 more attempts left"===s.message||"You have 1 more attempts left"===s.message?B(s.message):"You have exhausted the permissible number of retries"===s.message?(B(s.message),I(!0),w(!0)):B("The OTP you have entered has expired"),(0,_.w3)("event-otp-submit")}catch(e){console.log(e)}}()},active:!0,children:"Confirm"})})]})};var x=o(6126),v=o(22771);let T=e=>{let t,{fromStore:o,otpCount:r,resendOTP:i,isVerified:l,resendOTPText:p="",resendOTPLinkClass:h="",children:T,mobile:S,hideResendBtn:C=!1,isQuote:j}
1=e,b=/^[\d]+/g,[M,N]=(0,n.useState)(121),[y,I]=(0,n.useState)(!1),O=(0,n.useRef)(),E=(0,n.useRef)(),[V,P]=(0,n.useState)(""),[k,B]=(0,n.useState)(""),[A,w]=(0,n.useState)(!1),R=`Haven't Received The Otp On ${S} via SMS?`;(0,n.useEffect)(()=>(0===M?(clearInterval(O.current),N(()=>121),I(!0)):M<121&&(O.current=setInterval(()=>N(M-1),1e3)),()=>{clearInterval(O.current)}),[M]),(0,n.useEffect)(()=>((async function(){I(!1),N(120)})(),()=>{clearInterval(O.current)}),[r]),(0,n.useEffect)(()=>{},[V]),(0,n.useEffect)(()=>{E&&E.current?.focus()},[]),(0,n.useEffect)(()=>{let e=V.match(/\d/g);e&&4===e.length&&!A&&async function(){let e=(0,d.A)();sessionStorage.setItem(f.rS.KEY,e);try{let t={verifyOn:o.sendTo,key:e,otp:V,lob:x.$3.SME},s=await (0,u.v)(t);if("[200]"===s.statusCode&&s.data.verified){clearInterval(O.current);let{smeAuthTokenDetails:e}=s.data,t=e?.token,n=e?.expires_in,r=sessionStorage.getItem(f.rS.SME_AUTH_TOKEN_EXPIRY_STAMP),a=sessionStorage.getItem(f.rS.SME_AUTH_TOKEN),i=Date.now()+900*parseInt(n,10);t&&i&&(!a||Date.now()>parseInt(r||"",10))&&(sessionStorage.setItem(f.rS.SME_AUTH_TOKEN,t),sessionStorage.setItem(f.rS.SME_AUTH_TOKEN_EXPIRY_STAMP,i.toString()));{let{authTokenDetails:e}=s.data,t=e?.token,o=e?.expires_in,n=Date.now()+900*parseInt(o,10);t&&o&&(0,v.TV)(f.rS.KYC_AUTH_TOKEN,JSON.stringify({token:t,expires_in:n}),parseInt(o))}l(s.data.verified,s.data.encryptedData),g.A.setInSessionStorage(f.rS.USER_VERIFIED_QUOTE,JSON.stringify({mobile:o.sendTo}))}else"You have 4 more attempts left"===s.message||"You have 3 more attempts left"===s.message||"You have 2 more attempts left"===s.message||"You have 1 more attempts left"===s.message?B(s.message):"You have exhausted the permissible number of retries"===s.message?(B(s.message),I(!0),w(!0)):B("The OTP you have entered has expired");(0,_.w3)("event-otp-submit")}catch(e){console.log(e)}}()},[V]);let D=(0,s.jsxs)("a",{href:"#",className:a()(h,c().resendbtn),onClick:e=>{e.preventDefault(),i(),B(""),P(""),E&&E.current?.focus(),w(!1)},children:[(0,s.jsx)("div",{children:p||"Resend OTP"}),(0,s.jsx)("img",{src:"/rightArrowIcon.svg",alt:"right arrow"})]});return(0,s.jsxs)("section",{className:a()(),children:[(0,s.jsx)("div",{className:a()("d-flex justify-content-between pr-4"),children:(0,s.jsx)("div",{children:(0,s.jsx)("label",{htmlFor:"mobile",className:a()("t_input_label",c().otpInputLabelText),children:"Enter OTP"})})}),(0,s.jsx)("div",{className:"d-md-flex d-sm-block",children:(0,s.jsx)(m.A,{mask:"____",replacement:{_:/\d/},type:"tel",size:4,showMask:!0,className:a()("t_input",c().otpInput,k&&c().errorOtpInput),onChange:e=>P(e.target.value),name:"otp",value:V,onClick:()=>{let e=V.match(b)?V.match(b)[0].length:null;E.current.setCursorPosition(e)},"aria-describedby":"otp",autoComplete:"off",autoFocus:!0,placeholder:"_ _ _ _",ref:E})}),T({errorMessage:k,setOtpErrorMsg:B,showResend:y}),!C&&(0,s.jsx)("div",{className:a()("t_input_label",h),children:y?D:(0,s.jsxs)(s.Fragment,{children:["Resend OTP in ",(t=Math.floor(M/60),`${`${t}`.padStart(2,"0")}:${`${M%60}`.padStart(2,"0")}`)]})}),j&&(0,s.jsx)("div",{className:a()("d-flex align-items-center justify-content-center",c().otpVerificationMsg),children:R})]})};var S=o(94085);let C=e=>{let{isOpen:t=!1,toggleModal:o=()=>{},mobile:r="",mobileRef:l="",handleSubmit:d=()=>{},setOtpVerified:m=()=>{},lob:p,otpImage:_,isQuote:x=!0,product:v="",heading:C=""}=e,[j,b]=n.useState(0),[M,N]=n.useState(0),y="sme"===v,I={successViaSms:y?`We've sent an OTP to your mobile number ${r}`:`The OTP has been sent to you on ${r} via SMS`,resendOtp:y?`Haven't received the OTP on ${r} ?`:`Haven't received the OTP on ${r} Via SMS?`},[O,E]=n.useState(I.successViaSms);return n.useEffect(()=>()=>{N(0)},[]),(0,s.jsx)("div",{children:(0,s.jsxs)(i.Modal,{isOpen:t,centered:!0,className:y?c().smeOTPModal:c().otpModal,rootClass:c().otpModalBody,customeBackDropClass:c().customeBackDropClass,customCls:y&&"m-0 m-md-auto",children:[(0,s.jsx)(i.ModalHeader,{toggle:()=>{o(!1)},closeBtnClass:c().otpClossBtn,children:y&&(0,s.jsx)("p",{className:c().mainHeading,children:" Let’s verify you quickly"})}),(0,s.jsx)(i.ModalBody,{className:c().otpModalPadding,children:(0,s.jsxs)("div",{className:c().otpVerificationContainer,children:[!y&&(0,s.jsx)("img",{src:_?.url||"/laptopOTP.svg",alt:"laptop",className:"mx-auto mt-5"}),x&&(0,s.jsx)("div",{className:a()("t_sub_heading_primary",c().otpVerificationTitle),children:"Please confirm your mobile number"}),!x&&(0,s.jsxs)(s.Fragment,{children:[!y&&(0,s.jsx)("div",{className:a()("mx-auto",c().otpVerificationTitle,c().otpVerificationHeading),children:C||" Verify To View Quote"}),(0,s.jsxs)("div",{className:a()("d-flex align-items-center",c().otpVerificationQuoteMsg,y&&c().headingBackgroun
1d,y?"justify-content-between mt-3 flex-column  mr-auto  p-3 p-md-2":"justify-content-center mx-auto"),children:[y?(0,s.jsxs)("div",{className:"d-flex align-items-center mr-auto",children:[(0,s.jsx)("img",{src:S.Fr?"/otpMobile.svg":"/otpPhonIcon.svg",alt:"otp icon",className:"mr-2 h-100"}),(0,s.jsx)("div",{className:"text-left",children:O})]}):O,y&&(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-center text-nowrap ml-auto mt-md-0 mt-3",onClick:()=>{l&&(o(!1),l.current?.focus())},"aria-hidden":!0,children:[(0,s.jsx)("div",{className:a()(c().otpVerificationChangeMobileNum,"m-0"),children:"Edit number"}),(0,s.jsx)("img",{src:"/rightArrowIcon.svg",alt:"right arrow"})]})]}),!y&&(0,s.jsxs)("div",{className:"mx-auto d-flex align-items-center justify-content-center",onClick:()=>{l&&(o(!1),l.current?.focus())},"aria-hidden":!0,children:[(0,s.jsx)("div",{className:c().otpVerificationChangeMobileNum,children:"Change number"}),(0,s.jsx)("img",{src:"/rightArrowIcon.svg"})]})]}),(0,s.jsxs)("div",{className:c().otpVerificationInputContainer,children:[y?(0,s.jsx)(T,{isQuote:x,mobile:r,fromStore:{sendTo:r},lob:p,resendOTP:async()=>{let{hasError:e=!1}=await (0,u.A)({mobile:r||"",lob:p});e?o(!1):(b(e=>e+1),N(e=>e+1))},otpCount:j,resendOTPText:"Resend OTP",resendOTPLinkClass:c().smeOtpTimeOrResend,isVerified:(e,t)=>{e&&(o(!1),m(!0),g.A.setInSessionStorage(f.rS.ENCRYPTED_DATA,t),d(t))},hideResendBtn:M>=2,children:e=>{let{errorMessage:t="",showResend:o=!1}=e;return(o&&E(I.resendOtp),t)?(0,s.jsxs)("div",{className:c().otpErrorMsg,children:[(0,s.jsx)("div",{children:"The OTP entered is incorrect. Please try again."}),(0,s.jsx)("div",{children:t||""})]}):null}}):(0,s.jsx)(h,{isQuote:x,mobile:r,fromStore:{sendTo:r},lob:p,resendOTP:async()=>{let{hasError:e=!1}=await (0,u.A)({mobile:r||"",lob:p});e?o(!1):(b(e=>e+1),N(e=>e+1))},otpCount:j,resendOTPText:"Resend OTP",resendOTPLinkClass:c().otpTimeOrResend,isVerified:(e,t)=>{e&&(o(!1),m(!0),g.A.setInSessionStorage(f.rS.ENCRYPTED_DATA,t),d(t))},hideResendBtn:M>=2,children:e=>{let{errorMessage:t="",showResend:o}=e;return(o&&E(I.resendOtp),t)?(0,s.jsxs)("div",{className:c().otpErrorMsg,children:[(0,s.jsx)("div",{children:"The OTP entered is incorrect. Please try again."}),(0,s.jsx)("div",{children:t||""})]}):null}}),x&&(0,s.jsx)("div",{className:a()("mt-3 d-flex align-items-center justify-content-center",c().otpVerificationChangeMobileNum),onClick:()=>{l&&(o(!1),l.current?.focus())},"aria-hidden":!0,children:"Change number"})]})]})})]})})}},70646:(e,t,o)=>{"use strict";o.d(t,{A:()=>i,v:()=>l});var s=o(62775),n=o(98656),r=o(66873);let a=s.yl.OTPEndPoint.url,i=async e=>{let{mobile:t="",email:o="",lob:r=""}=e,i=`${a}/${s.yl.sendOTP}`;try{return await n.A.post(i,{sendTo:{mobile:t,email:o},lob:r})}catch(e){console.error(e)}},l=async e=>{let t=`${a}/${s.yl.verifyOTP}`,o=sessionStorage.getItem(s.rS.KEY);try{let s=await n.A.post(t,e);if("[200]"===s.statusCode){let e=await (0,r.decryptedAes256cbc)(s?.message?.encryptedData,"58F96A7AEFB639F9E72B7DCA1C998902");s.data=(e=JSON.parse(e)).data,s.data.key===o&&s.data?.verified?s.data.verified=!0:s.data.verified=!1,s.message=e.message}return s}catch(e){console.error(e)}}},86719:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o(37876),n=o(66760),r=o(21092),a=o.n(r);let i=e=>{let{isOpen:t=!1}=e;return(0,s.jsx)("div",{children:(0,s.jsx)(n.Modal,{isOpen:t,centered:!0,className:a().erroModal,rootClass:a().errorModalBody,children:(0,s.jsx)(n.ModalBody,{className:a().erroModalPadding,children:(0,s.jsxs)("div",{className:a().errorModalContainer,children:[(0,s.jsx)("img",{src:"/images/errorPopUpImg.svg"}),(0,s.jsx)("div",{className:a().errorModalText,children:"Something went wrong! Please try again later."})]})})})})}}}]);

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.