PageSourceSearch

https://www.tataaia.com/etc.clientlibs/tataaialifeinsurancecompany…lientlib-generic.lc-1789979878981-lc.min.js

js tataaia.com collected 2026-09-24 22:20:40 UTC 51,329 bytes, 125 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};
2$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return $jscomp.arrayIterator(a);throw Error(String(a)+" is not an iterable or ArrayLike");};$jscomp.arrayFromIterator=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};$jscomp.ASSUME_ES5=!1;
3$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
4$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
5$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b,c){if(!c||null!=a){c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]}};$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))};
6$jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
7$jscomp.polyfillIsolated=function(a,b,c,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var g=0;g<e.length-1;g++){var h=e[g];if(!(h in d))return;d=d[h]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[e]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?
8$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+c+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1};
9$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
10$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
11$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
12$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(c.value,b)};
13$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0};
14$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0};
15$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
16$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
17$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
18$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(c){return{value:c,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
19$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
20$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var d=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var e=d.value}catch(g){return this.context_.yieldAllIterator_=null,this.context_.throw_(g),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,e);return this.nextStep_()};
21$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
22$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(b,a.prototype);return b};
23$jscomp.asyncExecutePromiseGenerator=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function g(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(g,e)}g(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
24var dataMapping;
25(function(){dataMapping=sessionStorage.getItem("dataMapping")?JSON.parse(sessionStorage.getItem("dataMapping")):{currentService:"",reinvestService:{},currentPaymentData:{paymentmode:"",status:!1,selectedData:{},payment_mode_data:{creditcard:{card_options:{selected:"true",si:"true",direct:{},emi:"false"}},debitcard:{card_options:{selected:"",with_otp:{},without_otp:{}}},netbanking:{},upi:{},wallet:{},emi:{}}},neftUpdationService:{allPolicies:[],selectedPolicy:{}},policyCardInfo:[],customerInfo:{},
26paymentDetailArray:[],creditcustomerInfo:{},selectedPolicyType:"",unclaimedFundService:{allPolicy:[],groupPolicy:{policyData:[]},individualPolicy:{policyData:[]}},raiseSR:{categories:[],subCategory:{},selectedData:{}},grievance:{categories:[],subCategory:{},selectedData:{category:"",subCategory:""}},switchFundService:{allPolicies:[],selectedPolicy:{},regular:[],topup:[],navDetails:[],applicableNAVDate:{}},typePanOrAccount:"",validateSwitchFundService:{ulipPolicyNo:{policyDetails:{}}
26,validatePolicy:""},
27vymoObject:{},gRecaptchaToken:"",currentUserDetails:{},siddhiValue:{},countryDetails:{}}})();dataMapping.currentFunctionalityId=functionalityId;dataMapping.IdleURL=idleRedirection;dataMapping.idleCallTime=anaObj.anavar;var getCustomerSession=function(){return sessionStorage.getItem("userSession")?JSON.parse(sessionStorage.getItem("userSession")).jwtToken:{}};dataMapping.customerInfo.getCustomerSession=getCustomerSession;
28var isAuthUser=function(){return jsHelper.isDef(sessionStorage.getItem("userSession"))?!0:!1};dataMapping.customerInfo.isAuthUser=isAuthUser;function updateDataMapping(){sessionStorage.setItem("dataMapping",JSON.stringify(dataMapping))}function resetVymoObject(){dataMapping.vymoObject={}}function parseEncryptedData(a){crypto.keySize=8;var b=crypto.encrypt(JSON.stringify(a.requestJson));a.requestJson={};a.requestJson.request=b;return a}
29function getCookie(a){a+="\x3d";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null}function resetInput(a,b){"class"==b?($("."+a+" .ta-error-msg").text(""),$("."+a+" .resetField").val("")):"id"==b&&($("#"+a+" .ta-error-msg").text(""),$("#"+a+" .resetField").val(""))}
30var debounce=function(a,b){var c;return function(){var d=arguments,e=this;clearTimeout(c);c=setTimeout(function(){a.apply(e,d)},b)}};function lantoEn(a){var b=String(a).trim();if(null!==sessionStorage.getItem("lanDictData")&&b)for(var c=JSON.parse(sessionStorage.getItem("lanDictData")).translations,d=0;d<c.length;d++){var e=multiLangEndPoint();if(c[d][e].trim()==a.trim()){b=c[d].key&&c[d].key.trim();break}else a!=c[d].key&&(b=a)}return b}
31function identifyVymoCategory(a){switch(a.toLowerCase()){case "term plans":a="Term";break;case "saving plans":a="Non Term";break;case "retirement plans":a="Non Term";break;case "wealth plans":a="Non Term";break;case "health plans":a="Non Term";break;case "combo":a="Non Term";break;case "i don't know/i need help":a="Non Term";break;default:a=""}return a}
32function getPageNameFromURL(){var a=window.location.pathname;if("/"==a)return"homepage";if(2<=a.split(".")[0].split("/").length)return a.split(".")[0].split("/")[window.location.pathname.split(".")[0].split("/").length-1]}function getSiteSectionFromURL(){var a=window.location.pathname;if("/"==a)return"homepage";if(2<=a.split(".")[0].split("/").length)return a.split(".")[0].split("/")[1]}
33function getSiteSubSectionFromURL(){var a=window.location.pathname;if("/"==a)return"homepage";if(2==a.split(".")[0].split("/").length)return a.split(".")[0].split("/")[1];if(3<=a.split(".")[0].split("/").length)return a.split(".")[0].split("/")[2]}
34function checkUrlParamsSrs(){var a=new URLSearchParams(location.search.toString());return a.has("isvideoleadform")?{pname:a.get("pageName"),siteSec:a.get("siteSection"),siteSubSec:a.get("siteSubsection"),vymoProdName:a.get("vymoProductName"),vymoProdCat:a.get("vymoProductCategory"),analyticsProdName:a.get("analyticsProductName"),analyticsProdCat:a.get("analyticsProductCategory"),prodId:a.get("productId")}:!1}
35function URLSearchremoval(){var a=new URLSearchParams(location.search);if(a.has("mobileNo")||a.has("OTP")||a.has("_filteredParams")||a.has("email ID"))a.delete("mobileNo"),a.delete("OTP"),a.delete("_filteredParams"),a.delete("email ID"),0<location.search.length&&window.history.replaceState("","",location.origin+location.pathname+"?"+a)}
36function getUTMParameterObj(){var a=getUTMParamWithHash();return{campaignId:a.has("camcode")?a.get("camcode"):"",camCode:a.has("camcode")?a.get("camcode"):"",utm_source:a.has("utm_source")?a.get("utm_source"):"",utm_code:a.has("utm_code")?a.get("utm_code"):"",utm_medium:a.has("utm_medium")?a.get("utm_medium"):"",utm_campaign:a.has("utm_campaign")?a.get("utm_campaign"):"",utm_adgroup:a.has("utm_adgroup")?a.get("utm_adgroup"):"",utm_term:a.has("utm_term")?a.get("utm_term"):"",utm_content:a.has("utm_content")?
37a.get("utm_content"):"",utm_locations:a.has("utm_location")?a.get("utm_location"):"",gclid:a.has("gclid")?a.get("gclid"):"",fbclid:a.has("fbclid")?a.get("fbclid"):"",cid:a.has("cid")?a.get("cid"):"",vymo_flow:a.has("ccflow")?a.get("ccflow"):"",comments:a.has("comments")?a.get("comments"):"",leadTypeVal:a.has("leadType")?a.get("leadType"):"TTE",sub_campaign:a.has("sub-campaign")&&(a.get("sub-campaign")||""),organic:a.has("organic")&&("y"===a.get("organic")||!1)}}
38function utmQueryParameter(){var a=document.referrer;if(document.referrer.includes("tataaia.com")){var b=(new URL(location.href)).search;a=(a=a&&new URL(a))&&a.search;b&&a?sessionStorage.setItem("utmQUeryParameter",a):sessionStorage.getItem("utmQUeryParameter")?(b=sessionStorage.getItem("utmQUeryParameter"),sessionStorage.removeItem("utmQUeryParameter"),window.history.replaceState({},"",location.href+b)):b||a==b||window.history.replaceState({}
38,"",location.href+a)}}
39function jssdkCalculatorAnalytics(a){try{lmSMTObj.track(a.eventName,a.productDetails,a.contactDetails)}catch(b){console.log(b.message)}}
40function emailSuggestionLogic(a,b,c){var d=a.querySelectorAll("li"),e;d.forEach(function(m,p){m.classList.remove("dsp-none");m.innerText=c[p];m.dataset.value=c[p]});a.classList.add("dsp-none");if(!("@"==b.value.split("")[0]||1<(b.value.match(/@/g)||[]).length))if("@"==b.value.split("")[b.value.split("").length-1]){var g=b.value.trim();d.forEach(function(m){e=m.dataset.value;m.innerHTML='\x3cspan class\x3d"email-sug-bgcolor"\x3e'+g+"\x3c/span\x3e"+e;m.dataset.value=g+e});a.classList.remove("dsp-none")}else if(b.value.includes("@")){var h=
41b.value.split("@")[b.value.split("@").length-1],l=[],f=b.value.trim().split("@")[0],k=b.value.trim().split("@")[1].toLowerCase();g=f+"@";var n=new RegExp("^"+(1<h.split(".").length?h.split(".").join("\\.")+"[a-z]*":h)+(2<h.split(".").length?"$":""),"i");d.forEach(function(m){m.dataset.value.split("@")[m.dataset.value.split("@").length-1].match(n)?(e=m.dataset.value,m.innerHTML='\x3cspan class\x3d"email-sug-bgcolor"\x3e'+(f+"@"+k)+"\x3c/span\x3e"+(g+e).split(f+"@"+k)[1].toLowerCase(),m.dataset.value=
42g+e,m.classList.remove("dsp-none"),l.push(!0)):(m.classList.add("dsp-none"),l.push(!1))});l.includes(!0)?a.classList.remove("dsp-none"):a.classList.add("dsp-none")}}function getIFSCFlag(){try{return window.location.origin.includes("international.tataaia.com")||window.location.pathname.includes("/tataaiainternational/")?!0:!1}catch(a){console.log(a)}}function NumberToindianRupeeConvertor(a){return String(a).replace(/(\d)(?=(\d\d)+\d$)/g,"$1,")}
43function convertAmountToFixed(a,b){var c=Math.abs(a);return 1E7<=c?(b?(a/1E7).toFixed(Number(b)):a/1E7)+" Crores":1E5<=c?(b?(a/1E5).toFixed(Number(b)):a/1E5)+" Lakhs":1E3<=c?(b?(a/1E3).toFixed(Number(b)):a/1E3)+" Thousands":a}function calculateDiffDates(a){a=(new Date(a)).getTime();var b=(new Date).getTime();return Math.abs(Math.ceil((b-a)/864E5))}
44function issuanceDateLogic(a){var b,c;a=(null==a?void 0:null==(b=a.customer)?void 0:null==(c=b.policies)?void 0:c.filter(function(h){return"ACTIVE"===h.status}))||[];if(!a.length)return{isEligible:"N"};b=a.reduce(function(h,l){return new Date(l.issueDate)<new Date(h.issueDate)?l:h});c=b.roles.find(function(h){return"INSURED"===h.role});if(!c||180>calculateDiffDates(b.issueDate))return{isEligible:"N"};c=c.customer.addresses[0]||{};var d,e,g;a=(null==(d=b.customerProducts)?void 0:null==(e=d[0])?void 0:
45null==(g=e.productPlan)?void 0:g.name)||"";return{isEligible:"Y",policyNo:b.policyNo||"",policyZipCode:c.zipCode||"",policyCity:c.city||"",policyState:c.state||"",policyProductName:a}}function getAge(a){a=a.split("-");a=new Date(Number(a[0]),Number(a[1])-1,Number(a[2]));var b=new Date,c=b.getFullYear()-a.getFullYear(),d=b.getMonth()-a.getMonth();(0>d||0===d&&b.getDate()<a.getDate())&&c--;return c}
46function toggleButtonState(a,b,c,d){a=$(a).find(b);c().length===d?a.removeClass("disabled").prop("disabled",!1):a.addClass("disabled").prop("disabled",!0)}
47function getAccurateAgeObject(a){var b=$jscomp.makeIterator(a.split("/").map(function(g){return parseInt(g,10)}));a=b.next().value;var c=b.next().value;b=b.next().value;var d=new Date(b,c-1,a),e=new Date;a=e.getFullYear()-d.getFullYear();c=e.getMonth()-d.getMonth();b=e.getDate()-d.getDate();if(e.getMonth()<d.getMonth()||e.getMonth()===d.getMonth()&&e.getDate()<d.getDate())a--,c+=12;0>c&&(c+=12);0>b&&(d=new Date(e.getFullYear(),e.getMonth(),0),b+=d.getDate(),c--);0>c&&(c+=12,a--);return{year:a||"",
48month:c||"",days:b||""}}function checkElemPresent(a,b){b=void 0===b?!1:b;var c=document.createElement("div");try{var d=b?document.querySelectorAll(a):document.querySelector(a);return!d||b&&!d.length?(console.warn("Element not found: "+a),b?[c]:c):d}catch(e){return console.warn("Invalid selector: "+a,e),b?[c]:c}}
49function utmCampiagnTermCheck(a){return{navtermplan:{productName:"Tata AIA Sampoorna Raksha Promise",category:"Term",shortName:"SRP"},navinvestmentplans:{productName:"Tata AIA Smart Fortune Plus",category:"ULIP",shortName:"SFP"}}[a]||""}function convertDateFormat(a){if(/^\d{4}-\d{2}-\d{2}$/.test(a))return a;
49if(/^\d{4}\/\d{2}\/\d{2}$/.test(a))return a.replace(/\//g,"-");a=a.split("/");return a[2]+"-"+a[1]+"-"+a[0]}
50function siddhiAddressCountryCode(a){var b="";0<dataMapping.countryDetails.length&&dataMapping.countryDetails.forEach(function(c){(null==a?void 0:a.toLowerCase())==(null==c?void 0:c.COUNTRY_NAME.toLowerCase())&&(b=null==c?void 0:c.COUNTRY_LETTERS)});return b}function ddLanguageCheck(a){return["Tamil","Kannada","Telugu","Malayalam"].includes(a)?"Globiva-BLR":""}
51function countryEventTrigger(a){countryApiStatus.countryList&&countryApiStatus.nriCountryList&&document.dispatchEvent(new CustomEvent("countryRender",{detail:{status:200,data:a}}))}function getUTMParamWithHash(){var a=document.location.search;if(!a||""===a){var b=window.location.hash;b&&b.includes("?")&&(a=b.substring(b.indexOf("?")))}return new URLSearchParams(a)}
52function postCallApi(a,b){var c=appConfig.apiRoot+"/"+a+appConfig.apiExtension;return new Promise(function(d,e){ajaxUtility.postJson(c,b).then(function(g){jsHelper.isStr(g)?d(jsHelper.parseJson(g)):d(g)}).catch(function(g){e(g)})})}function getCallApi(a,b,c){var d=c?a+appConfig.apiExtension:appConfig.apiRoot+"/"+a+appConfig.apiExtension;return new Promise(function(e,g){ajaxUtility.getJson(d,b).then(function(h){jsHelper.isStr(h)?e(jsHelper.parseJson(h)):e(h)}).catch(function(h){g(h)})})}
53function cfGetCallApi(a,b){var c=a+appConfig.apiExtension;return new Promise(function(d,e){ajaxUtility.getJson(c,b).then(function(g){d(g)}).catch(function(g){e(g)})})}
54function initializeVisitorCount(){var a,b;return $jscomp.asyncExecutePromiseGeneratorProgram(function(c){if(1==c.nextAddress)return a=document.querySelector(".analytics-vistor-count-api"),a?c.yield(getAnalyticsVistorCount(),3):(b="",c.jumpTo(2));2!=c.nextAddress&&(b=c.yieldResult);AnVistorCount=b;document.dispatchEvent(dispatchVistorCount);c.jumpToEnd()})}
55function getAnalyticsVistorCount(){var a,b,c,d,e,g,h,l;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return a={},b=apiConstants.CF_VIEW_COUNT.endpoint,f.setCatchFinallyBlocks(2),f.yield(ajaxUtility.getJson(b,a),4);if(2!=f.nextAddress){c=f.yieldResult;d=JSON.parse(JSON.parse(c).properties.elements.apiresponse.value).rows;g=(e=d.find(function(k){return k.value.includes(location.pathname)}))?e.data[0]:"";if(!g)return f.return(!1);null==(h=document.querySelectorAll(".analytics-view-count-text"))||
56h.forEach(function(k){k.innerText=g});return f.return(g)}l=f.enterCatchBlock();console.error("Error fetching analytics:",l);throw l;})}
57function apiCountryMatser(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){return a.return(new Promise(function(b,c){c=new XMLHttpRequest;c.onreadystatechange=function(){if(4==this.readyState&&200==this.status&&this.responseText){var d=this.responseText&&JSON.parse(this.responseText);d=d&&JSON.parse(d.properties.elements.ogcountrymasterjson.value);dataMapping.countryDetails=d;b(d)}};c.open("GET","/api/assets/tataaialifeinsurancecompanylimited/content-fragment-23-02-24/ogcountrymaster/ogcountrymaster.json",
58!0);c.send()}))})}
59function apiCountryValidations(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){return a.return(new Promise(function(b,c){c=new XMLHttpRequest;c.onreadystatechange=function(){if(4==this.readyState&&200==this.status&&this.responseText){var d=this.responseText&&JSON.parse(this.responseText);d=d&&JSON.parse(d.properties.elements.countrymastervalidationjson.value);sessionStorage.setItem("countryCodeValidation",JSON.stringify(d));b(d)}};c.open("GET","/api/assets/tataaialifeinsurancecompanylimited/content-fragment-23-02-24/countrymastervalidation/countrymastervalidationcall.json",!0);
60c.send()}))})}
61function apiCountryMasterForNRI(){return new Promise(function(a,b){b=new XMLHttpRequest;b.onreadystatechange=function(){if(4==this.readyState&&200==this.status&&this.responseText){var c=this.responseText&&JSON.parse(this.responseText);c=c&&JSON.parse(c.properties.elements.countrymasternrijson.value);dataMapping.countryDetails&&0!==Object.keys(dataMapping.countryDetails).length||(dataMapping.countryDetails={},dataMapping.countryDetails=c);a(c)}};b.open("GET","/api/assets/tataaialifeinsurancecompanylimited/content-fragment-23-02-24/nricountrymaster/nricountrymasterlist.json",!0);
62b.send()})}
63function emailSuggestionApiCall(){apiUtility.GET_EMAIL_SUGGEST_CALL({}).then(function(a){dataMapping.EmailSuggestResponse=a.properties.elements.emailVariations.value;$(".class-for-email-suggestion-evt").each(function(b,c){var d="";c.parentNode.insertAdjacentHTML("beforeend","\x3cul class\x3d'email-suggestion email-auto-suggestions-wrapper dsp-none email-suggestion-call-api email-suggestion-evt'\x3e\x3c/ul\x3e");dataMapping.EmailSuggestResponse.forEach(function(e){d+="\x3cli data-value\x3d"+e+' class\x3d"email-suggestion-li-evt"\x3e'+
64e+"\x3c/li\x3e"});c.parentNode.querySelector(".email-auto-suggestions-wrapper").innerHTML=d});$(".email-auto-suggestions-wrapper").on("click",".email-suggestion-li-evt",function(){var b=$(this).closest(".email-suggestion-li-evt").attr("data-value");$(this).closest("form").find(".class-for-email-suggestion-evt").val(b);$(this).closest("form").find(".class-for-email-suggestion-evt").trigger("change");$(this).closest(".email-auto-suggestions-wrapper").addClass("dsp-none")});$(".class-for-email-suggestion-evt").attr("autocomplete",
65"off");$("body").on("click",function(b){b.target.closest(".email-auto-suggestions-wrapper")||$(".email-auto-suggestions-wrapper").addClass("dsp-none")})})}
66function apiPincodeMaster(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){return a.return(new Promise(function(b,c){c=new XMLHttpRequest;c.onreadystatechange=function(){if(4==this.readyState&&200==this.status&&this.responseText){var d=this.responseText&&JSON.parse(this.responseText);d=d&&JSON.parse(d.properties.elements.pincodeJson.value);b(d)}};c.open("GET","/api/assets/tataaialifeinsurancecompanylimited/content-fragment-23-02-24/pincodemaster/pincodemaster.json",!0);c.send()}))})}
67function ecmQueryAPI(a){var b,c,d,e,g,h,l;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){switch(f.nextAddress){case 1:return b={requestJson:{criteria:{contacts:[{channel:"MOBILE",type:"PRIMARY_MOBILE",value:String(a)}]}},token:{}},f.setCatchFinallyBlocks(2),f.yield(ecmEncrypt(JSON.stringify(b.requestJson)),4);case 4:return c=f.yieldResult,b={requestJson:{payload:c}},f.yield(postCallApi(apiConstants.ECM_QUERY_API.endpoint,b),5);case 5:return d=f.yieldResult,200!=d.statusCode?f.return({isEligible:"N"}):
68f.yield(ecmDecrypt(null==(e=d)?void 0:null==(g=e.responseJson)?void 0:g.responsePayload),7);case 7:return h=f.yieldResult,d=JSON.parse(h),f.return(issuanceDateLogic(d));case 6:f.leaveTryBlock(0);break;case 2:return l=f.enterCatchBlock(),console.error(l),f.return({isEligible:"N"})}})}
69function apiConsent(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){return a.return(new Promise(function(b,c){c=new XMLHttpRequest;c.onreadystatechange=function(){if(4==this.readyState&&200==this.status&&this.responseText){var d=this.responseText&&JSON.parse(this.responseText);d=d&&d.entities[0].properties.elements.consenttext.value;b(d)}};c.open("GET","/api/assets/tataaialifeinsurancecompanylimited/content-fragment-23-02-24/consent-text.json",!0);c.send()}))})}
70function triggerOtpRequest(a,b){return{requestJson:{channels:[{to:"sms"==b?"91"+a:a,mode:b,templateId:"mobile.otp.validate.submission"}]}}}function validateOtpRequest(a,b,c,d){return{requestJson:{channels:[{to:"sms"==c?"91"+a:a,mode:c,templateId:"mobile.otp.validate.submission",otp:d}],_wfId:b||""}}}function alphabetReturn(a){return"ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")[a]||""}
71function countryListFunc(){var a;return $jscomp.asyncExecutePromiseGeneratorProgram(function(b){if(1==b.nextAddress)return 0<document.querySelectorAll(".country-master-call-api").length?b.yield(apiCountryMatser(),3):(a="",b.jumpTo(2));2!=b.nextAddress&&(a=b.yieldResult);countrylist=a;countryApiStatus.countryList=!0;"function"===typeof onCountryApisReady&&onCountryApisReady();"function"===typeof countryEventTrigger&&countryEventTrigger(countrylist);b.jumpToEnd()})}
72function countryListNRIFunc(){var a;return $jscomp.asyncExecutePromiseGeneratorProgram(function(b){if(1==b.nextAddress)return 0<document.querySelectorAll(".country-master-nri-call-api").length?b.yield(apiCountryMasterForNRI(),3):(a="",b.jumpTo(2));2!=b.nextAddress&&(a=b.yieldResult);countryMasterNRI=a;countryApiStatus.nriCountryList=!0;"function"===typeof onCountryApisReady&&onCountryApisReady();"function"===typeof countryEventTrigger&&countryEventTrigger(countrylist);b.jumpToEnd()})}
73function defaultCountrySet(a){a=JSON.stringify(a);$(".default-country-set-attribute").attr("data-country-list",a)}function pincodeCityListFunc(){var a;return $jscomp.asyncExecutePromiseGeneratorProgram(function(b){if(1==b.nextAddress)return 0<document.querySelectorAll(".api-pincodeCityList-call").length?b.yield(apiPincodeMaster(),3):(a="",b.jumpTo(2));2!=b.nextAddress&&(a=b.yieldResult);pincodeCityList=a;b.jumpToEnd()})}
74function customMobileValidation(a,b,c){c=c&&JSON.parse(c);return""===a?($(b).text(checkLangKey("Please enter valid mobile number.")).addClass("d-block"),!1):someCountryMobValidation(a,b,c)}
75function someCountryMobValidation(a,b,c){var d,e,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){if(1==h.nextAddress)return d=c.countryName.toUpperCase().replace(/[,_]/g,""),e=c.countryCode,h.yield(isValidPhoneNumber(d+"_"+e,a),2);g=h.yieldResult;if("otherCountrys"===g){if("0"===a.charAt(0))return $(b).text(checkLangKey("Please enter valid mobile number.")).addClass("d-block"),h.return(!1);if(3>a.length)return $(b).text(checkLangKey("Mobile number should be in range of 3 to 15 digits.")).addClass("d-block"),
76h.return(!1);$(b).text("");return h.return(!0)}if(g)return $(b).text(""),h.return(!0);$(b).text(checkLangKey("Please enter valid mobile number.")).addClass("d-block");return h.return(!1)})}
77var isValidPhoneNumber=function(a,b){var c,d,e,g,h,l,f,k,n,m;return $jscomp.asyncExecutePromiseGeneratorProgram(function(p){switch(p.nextAddress){case 1:p.setCatchFinallyBlocks(2);if(sessionStorage.getItem("countryCodeValidation")){c=JSON.parse(sessionStorage.getItem("countryCodeValidation"));p.jumpTo(4);break}return p.yield(apiCountryValidations(),5);case 5:c=p.yieldResult;case 4:if(isAllDigitsSame(b))return p.return(!1);d=$jscomp.makeIterator(c);for(e=d.next();!e.done;e=d.next())if(con=e.value,
78a===con.value&&con.phone){g="^(";h=$jscomp.makeIterator(con.phone.mobile_begin_with);for(l=h.next();!l.done;l=h.next())begM=l.value,g=g+begM+"|";g=g.substring(0,g.length-1);g+=")[0-9]+$";f=new RegExp(g);return(k=b.match(f))&&k[1]&&0===k.index&&(n=Math.max.apply(null,con.phone.phone_number_lengths),m=Math.min.apply(null,con.phone.phone_number_lengths),b.length<=n&&b.length>=m)?p.return(!0):p.return(!1)}return p.return("otherCountrys");case 2:return p.enterCatchBlock(),p.return("otherCountrys")}})};
79function searchFilterLogic(a,b,c,d){var e=a.val().toString().toLowerCase(),g="";g=c?countryMasterNRI:countrylist;g.forEach(function(f){var k=f.COUNTRY_NAME.toString().toLowerCase(),n="+"+f.COUNTRY_CALL_CODE.toString();f=f.COUNTRY_LETTERS;k.includes(e)||n.includes(e)?$("[data-countryletterHide\x3d"+f+"]").removeClass(b):$("[data-countryletterHide\x3d"+f+"]").addClass(b)});c=$(a).closest("form").find(".data-default-inter-set-attribute");var h;0===(null==(h=c)?void 0:h.length)&&(c=$(a).closest("form").find(".default-country-set-attribute"));
80var l;d&&!1===(null==(l=c)?void 0:l.hasClass("international_nri_addindia"))&&$(a).closest("form").find("[data-countryletterhide\x3d'IN']").addClass(b)}window.addEventListener("load",function(){var a=$(".class-for-email-suggestion-evt");0<a.length?emailSuggestionApiCall():"";0<a.length&&$(".class-for-email-suggestion-evt").each(function(b,c){c.addEventListener("input",function(d){d=this.closest("form").querySelector(".email-auto-suggestions-wrapper");emailSuggestionLogic(d,c,dataMapping.EmailSuggestResponse)})})});
81function findCity(a){a=Number(a);for(var b in pincodeCityList)if(pincodeCityList[b].includes(a))return b;return"City not found"}function isAllDigitsSame(a){a=a.toString();return/^(\d)\1*$/.test(a)}function commonToggleLogic(a){var b=a.closest(".toggle-generic"),c=b.querySelector(".switch-txt");b.classList.contains("off")?b.classList.remove("off"):b.classList.add("off");c.innerText=a.innerText.trim();b.setAttribute("data-toggleValue",a.innerText.trim())}
82function hideIndiaCodeForNRI(a){var b=a.closest("form");if(b.querySelector(".checkNriToggle")&&((a=b.querySelector("[data-inter-country-letter\x3dIN]")||"")||(a=b.querySelector("[data-countryletterhide\x3dIN]")||""),!a.classList.contains("dsp-none"))){var c=b.querySelector(".data-default-inter-set-attribute")||"",d,e=null==(d=c.dataset)?void 0:d.interList;if(!c){c=b.querySelector(".default-country-set-attribute")||"";var g;e=null==(g=c.dataset)?void 0:g.countryList}(d=e&&JSON.parse(e)||"")&&"object"===
83typeof d&&Object.keys(d).length&&91!=d.countryCode&&!1===c.classList.contains("international_nri_addindia")&&a.classList.add("dsp-none")}}var genericAnalyticObj={};document.addEventListener("DOMContentLoaded",function(){try{dataMapping.leadCallTrigger&&onloadAnalyticsCall(dataMapping.leadCallTrigger)}catch(a){console.error(a)}try{genericLoadFunc(),unsetGenericAnalyticObj()}catch(a){console.error(a)}});
84function onloadAnalyticsCall(a){a.callAnalytics&&"objectWiseLinkClickTracking"==a.callTriggerFrom&&setTimeout(function(){analyticsUtility.objectWiseLinkClick(a);delete dataMapping.leadCallTrigger;updateDataMapping()},500)}
85function genericLoadFunc(){"/SRS-lead-page.html /insta-protect-lead-page.html /SRS-leadpage-protectionplan.html /SRS-leadpage-2cr-plan.html /instaprotect.html /carousel-lead-page.html /meet-an-advisor.html /SRS-leadpage-familyoriented.html /life-insurance-plans/term-insurance/buy-term-insurance-plan-online.html /urj
85a-new-flow.html /health-wellness.html /urja-landing.html /life-insurance-plans/tata-group-employee-discount.html /calculator/compound-interest-calculator.html /calculator/child-expense-calculator.html /calculator/healthcare-cost-calculator.html /lead-page-form-video.html".split(" ").forEach(function(a){location.href.includes(a)&&(document.querySelector(".medix-banner")?
86analyticsUtility.mobileAppgenericLoad("mobileApp:download Page","download Page","mobileApp:download Page","download Page"):(a=new URLSearchParams(document.location.search),a={pageName:getPageNameFromURL(),siteSection:getSiteSectionFromURL(),siteSubsection:getSiteSubSectionFromURL(),pageType:getPageInfo.pageType||genericAnalyticObj.pageType,productName:getPageInfo.pageProductName||getPageInfo.productName,productId:getPageInfo.productId,productCategory:getPageInfo.productCategory,campaignAgentCode:a.get("campaignAgentCode"),
87sisID:a.get("sisID"),cid:a.get("cid"),campaignCode:a.get("campaignCode"),camCode:a.get("camcode"),pathName:location.pathname},analyticsUtility.objectWiseGenericLoad(a)))})}function unsetGenericAnalyticObj(){genericAnalyticObj.pageType=""}function encryptedAnalytics(a){crypto.keySize=8;return"string"===typeof a?crypto.encrypt(a):crypto.encrypt(JSON.stringify(a))}function decryptedAnalytics(a){crypto.keySize=8;return JSON.parse(crypto.decrypt(a))}var counrtyObj={},isIFSC=getIFSCFlag();
88counrtyObj={countryName:isIFSC?"United Arab Emirates":"India",countryCode:isIFSC?971:91,countryLetter:isIFSC?"AE":"IN"};var countryApiStatus={},countrylist="",countryMasterNRI=[],pincodeCityList="",AnVistorCount="",dispatchVistorCount=new Event("vistorCount");(function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){defaultCountrySet(counrtyObj);countryListFunc();countryListNRIFunc();pincodeCityListFunc();utmQueryParameter();URLSearchremoval();initializeVisitorCount();a.jumpToEnd()})})();
89var globalGTMObj={};function updateGlobalGtmObj(){sessionStorage.setItem("gtmobjdata",JSON.stringify(globalGTMObj))}function resetGlobalGtmObj(){globalGTMObj.Mobile="";globalGTMObj.Email=""}sessionStorage.getItem("gtmobjdata")?(globalGTMObj=JSON.parse(sessionStorage.getItem("gtmobjdata")),sessionStorage.removeItem("gtmobjdata")):(globalGTMObj.Mobile="",globalGTMObj.Email="");var pnameurl="";
90function checkQueryParams(a,b,c){var d=new URLSearchParams(location.search.toString());d.has("PRODUCT_NAME")?(pnameurl=d.get("PRODUCT_NAME"),$("."+a).text(checkLangKey(pnameurl.charAt(0).toUpperCase()+pnameurl.slice(1))),$(".meet-ad-custom-plan")&&$(".meet-ad-custom-plan").attr("data-mabSelectedPlan",pnameurl.toString()),$("."+b).addClass("dsp-none"),$("."+c).addClass("pointer-none-evt"),$("."+c).closest(".mt-ad-custom-dropdown").removeClass("mt-ad-custom-dropdown")):($("."+b).removeClass("dsp-none"),
91$("."+c).removeClass("pointer-none-evt"),$("."+c).closest(".mt-ad-custom-dropdown").addClass("mt-ad-custom-dropdown"));return pnameurl}
92document.addEventListener("DOMContentLoaded",function(){var a,b;return $jscomp.asyncExecutePromiseGeneratorProgram(function(c){if(1==c.nextAddress)return c.yield(apiConsent(),2);a=c.yieldResult;
92checkElemPresent(".consentdisclaimer__innerhtml",!0).forEach(function(d){d.innerHTML=a});try{"object"===typeof numrData&&(b=(b=numrData.numrLayoutStyle)&&Number(b)||"",removeNumrSurvey(),initNumrSurvey(numrData.numrid,"","",!0,b,"",!0,""))}catch(d){console.log(d)}c.jumpToEnd()})});
93function deviceIdentifierFunc(){if(window.matchMedia("(max-width: 767px)").matches)var a="Mobile";else window.matchMedia("(min-width: 768px) and (max-width: 1024px)").matches?a="Other":(window.matchMedia("(min-width: 1025px) and (max-width: 1366px)"),a="Desktop");return a}deviceIdentifierFunc();
94document.addEventListener("DOMContentLoaded",function(){0<$(".scroll-to-SRS-from").length&&(768>$(window).width()?$("html,body").scrollTop($(".scroll-to-SRS-from").offset().top-$("header, .new-header_sec_revamp").height()-10):768<$(window).width()&&$("html,body").scrollTop($(".scroll-to-SRS-from").offset().top-$("header, .new-header_sec_revamp").height()))});var configObj={};
95document.addEventListener("DOMContentLoaded",function(){if(siddhiConfig)try{var a=atob(atob(siddhiConfig)),b=JSON.parse(a),c=b.aesKey,d=b.siddhiKey;Object.assign(configObj,{encryptionVal:c,valueIdentifier:d});return{encryptionVal:c,valueIdentifier:d}}catch(e){console.error("Failed to decode or parse configuration object:",e)}});
96function siddhiLeadObj(a){var b=getUTMParamWithHash(),c=getFormattedDate(),d=getUTMParameterObj(),e=ddLanguageCheck(null==a?void 0:a.language),g=window.location.origin+window.location.pathname||"";a={lead:{channel:a.channel||"WEBSALES",assignedTo:a.assignedTo||"",leadSource:a.leadSource||"Website",assignTo:e,additionalInfo:{partnerSourceCode:a.partnerSourceCode||"110",partnerSource:a.partnerSource||"",partnerLeadType:a.partnerLeadType||"TTE",businessTypeId:a.businessTypeId||"websolution",partnerSubSource:a.partnerSubSource||
97"",featureSelected:a.featureSelected||"",ccCallingFlag:a.ccCallingFlag||"",voipUrl:a.voipUrl||"",userDevice:"function"===typeof deviceIdentifierFunc?deviceIdentifierFunc():"",allocationFlow:(null==a?0:a.allocationFlow)?a.allocationFlow:b.has("ccflow")&&!d.organic?b.get("ccflow"):"",pageName:g,eventName:a.eventName||"",partnerLeadCreatedAt:a.partnerLeadCreatedAt||c,isExistingCustomer:a.isExistingCustomer?a.isExistingCustomer:!1,leadTransitApp:{category:a.leadTransitAppCategory||"Term"},partnerCampaign:{fbId:(null==
98a?0:a.fbId)?a.fbId:b.has("fbclid")?b.get("fbclid"):"",gclId:(null==a?0:a.gclId)?a.gclId:b.has("gclid")?b.get("gclid"):"",cid:a.cid||"",mcid:a.mcid||"",gaid:a.gaid||"",name:a.campaignName||"",subCampaign:{name:a.subCampaignName||""}},contents:[{adGroup:a.adGroup||"",title:a.title||"",searchParameter:a.searchParameter||""}],leadScoringNudge:a.leadscoring||""},prospect:[createProspect("PROPOSER",c,a)],productOptions:{plan:{uin:"",name:a.productPlanCode||"",type:a.planType||"",product:{tags:{planCode:a.planCode||
99""}},productPlan:{name:a.productPlanName||""},options:{shortName:a.productShortName||""}},options:{policyTerm:a.policyTerm||"",premiumPayingTerm:a.premiumPayingTerm||"",sumAssured:a.sumAssured||""},existingPolicies:a.existingPolicies?deepCopy(a.existingPolicies):[{existingPolicyNumber:a.existingPolicyNumber||"",existingPolicyZipCode:a.existingPolicyZipCode||"",existingPolicyCity:a.existingPolicyCity||"",existingPolicyState:a.existingPolicyState||"",existingPolicyProductName:a.existingPolicyProductName||
100""}]},premium:{paymentMode:a.paymentMode||"",basePremium:a.basePremium||""}}};(a=removeEmptyValues(deepCopy(a)))&&(dataMapping.siddhiValue=a);return a}
101function createProspect(a,b,c){var d,e,g={name:c.name||"",firstName:c.firstName||"",middleName:c.middleName||"",lastName:c.lastName||"",dateOfBirth:c.dateOfBirth||"",gender:c.gender||"",nationality:c.nationality||"",residentialStatus:"true"==isPageNRIFlagActive?"NRI":c.residentialStatus?c.residentialStatus:"RI",lifestyles:[{smoker:c.smoker}],financialSummaries:[{annualIncome:c.annualIncome||""}],addresses:[{city:c.city||"",state:c.state||"",countryCode:"undefined"!==typeof c.country?siddhiAddressCountryCode(null==
102c?void 0:null==(d=c.country)?void 0:d.split("_")[0]):"",country:"undefined"!==typeof c.country?c.country.split("_")[0]:"",zipCode:c.zipCode||"",type:c.adressType||"CURRENT"},{city:c.city||"",state:c.state||"",countryCode:"undefined"!==typeof c.country?siddhiAddressCountryCode(null==c?void 0:null==(e=c.country)?void 0:e.split("_")[0]):"",country:"undefined"!==typeof c.country?c.country.split("_")[0]:"",zipCode:c.zipCode||"",type:"PERMANENT"}],preferences:[{dnc:c.dnc?!1:!0},{language:(null==c?void 0:
103c.language)||""}]};d=[];c.mobile&&d.push({type:"PRIMARY_MOBILE",channel:"MOBILE",value:c.mobile,verified:c.verified||!1,verifiedDate:b,countryCode:c.countrycode||"91"});c.email&&d.push({type:"PRIMARY_EMAIL",channel:"EMAIL",value:c.email,verified:c.verified||!1,verifiedDate:b});d.length&&(g.contacts=d);return{role:a,customer:g}}
104function getFormattedDate(){return(new Intl.DateTimeFormat("en-GB",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})).format(new Date).replace(/\//g,"-")}function deepCopy(a){return a?JSON.parse(JSON.stringify(a)):a}
105function removeEmptyValues(a){if(null!==a&&void 0!==a){if(Array.isArray(a)){var b=a.map(removeEmptyValues).filter(function(e){return void 0!==e&&null!==e&&!("object"===typeof e&&null!==e&&0===Object.keys(e).length)});return b.length?b:void 0}if(a&&"object"===typeof a){b={};a=$jscomp.makeIterator(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=$jscomp.makeIterator(c.value);c=d.next().value;d=d.next().value;d=removeEmptyValues(d);void 0===d||null===d||""===d||"object"===typeof d&&null!==
106d&&0===Object.keys(d).length||(b[c]=d)}return Object.keys(b).length?b:void 0}if(null!==a&&void 0!==a&&""!==a)return a}}
107var base64ToArrayBuffer=function(a){a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;
107c++)b[c]=a.charCodeAt(c);return b.buffer},arrayBufferToBase64=function(a){a=new Uint8Array(a);for(var b="",c=0;c<a.byteLength;c++)b+=String.fromCharCode(a[c]);return btoa(b)},encryptPayload=function(a,b){var c,d,e,g,h,l;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return c=crypto.getRandomValues(new Uint8Array(12)),d=base64ToArrayBuffer(b),f.yield(crypto.subtle.importKey("raw",
108d,{name:configObj.encryptionVal},!1,["encrypt"]),2);if(3!=f.nextAddress)return e=f.yieldResult,g=(new TextEncoder).encode(a),f.yield(crypto.subtle.encrypt({name:configObj.encryptionVal,iv:c},e,g),3);h=f.yieldResult;l=new Uint8Array(c.length+h.byteLength);l.set(c,0);l.set(new Uint8Array(h),c.length);return f.return(arrayBufferToBase64(l.buffer))})},decryptPayload=function(a,b){var c,d,e,g,h,l,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(k){if(1==k.nextAddress)return c=base64ToArrayBuffer(a),
109d=new Uint8Array(c),e=d.slice(0,12),g=d.slice(12),h=base64ToArrayBuffer(b),k.yield(crypto.subtle.importKey("raw",h,{name:configObj.encryptionVal},!1,["decrypt"]),2);if(3!=k.nextAddress)return l=k.yieldResult,k.yield(crypto.subtle.decrypt({name:configObj.encryptionVal,iv:e},l,g),3);f=k.yieldResult;return k.return((new TextDecoder).decode(f))})},encryptLead=function(a){var b,c,d;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){if(1==e.nextAddress)return e.setCatchFinallyBlocks(2),e.yield(encryptPayload(JSON.stringify(a),
110key=configObj.valueIdentifier),4);if(2!=e.nextAddress){b=e.yieldResult;if(!b)throw Error("Encryption failed.");c=b&&{payload:b};return e.return(c)}d=e.enterCatchBlock();console.error("encryptLead --\x3e Error:",d);throw Error(d.message);})},decryptLead=function(a){var b,c,d;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){if(1==e.nextAddress)return e.setCatchFinallyBlocks(2),e.yield(decryptPayload(a,key=configObj.valueIdentifier),4);if(2!=e.nextAddress){b=e.yieldResult;if(!b)throw Error("Decryption failed.");
111c=b&&{payload:b};return e.return(c)}d=e.enterCatchBlock();console.error("decryptLead --\x3e Error:",d);throw Error(d.message);})},crypto=this;
112document.addEventListener("DOMContentLoaded",function(){if("undefined"!==typeof cryptoConfig&&cryptoConfig)try{var a=atob(atob(cryptoConfig)),b=JSON.parse(a),c={keySize:4,keySize8:8,iterationCount:1E3,encryptedKey:b.encryptedKey,passphrase:b.passphraseKey,salt:b.saltKey,iv:b.ivKey};window.CryptoConfig=c;Object.entries(c).forEach(function(d){var e=$jscomp.makeIterator(d);d=e.next().value;e=e.next().value;window[d]=e});Object.assign(crypto,c)}catch(d){console.error("\u274c Failed to decode or parse configuration object:",
113d)}else console.warn("\u26a0\ufe0f cryptoConfig not found or empty.")});var ecmConfigObj={};document.addEventListener("DOMContentLoaded",function(){if(ecmqueryConfig)try{var a=atob(atob(ecmqueryConfig)),b=JSON.parse(a),c=b.ecmAesKey,d=b.customerKey;Object.assign(ecmConfigObj,{aesValue:c,customerIdentifier:d});return{aesValue:c,customerIdentifier:d}}catch(e){console.error("Failed to decode or parse configuration object:",e)}});function base64Encode(a){return btoa(a)}
114function base64DecodeToBytes(a){return Uint8Array.from(atob(a),function(b){return b.charCodeAt(0)})}function stringToBytes(a){return(new TextEncoder).encode(a)}function bytesToString(a){return(new TextDecoder).decode(a)}function getCustomerAESKey(){var a,b=null==(a=ecmConfigObj)?void 0:a.customerIdentifier;a=base64Encode(b.substring(0,16));b=base64Encode(b.substring(b.length-16));a=base64DecodeToBytes(a);b=base64DecodeToBytes(b);return{aesKey:a,aesIV:b}}
115function ecmEncrypt(a){var b,c;return $jscomp.asyncExecutePromiseGeneratorProgram(function(d){if(1==d.nextAddress)return d.yield(crypto.subtle.importKey("raw",getCustomerAESKey().aesKey,{name:ecmConfigObj.aesValue},!1,["encrypt"]),2);if(3!=d.nextAddress)return b=d.yieldResult,d.yield(crypto.subtle.encrypt({name:ecmConfigObj.aesValue,iv:getCustomerAESKey().aesIV},b,stringToBytes(a)),3);c=d.yieldResult;return d.return(btoa(String.fromCharCode.apply(String,$jscomp.arrayFromIterable(new Uint8Array(c)))))})}
116function ecmDecrypt(a){var b,c;return $jscomp.asyncExecutePromiseGeneratorProgram(function(d){if(1==d.nextAddress)return d.yield(crypto.subtle.importKey("raw",getCustomerAESKey().aesKey,{name:ecmConfigObj.aesValue},!1,["decrypt"]),2);if(3!=d.nextAddress)return b=d.yieldResult,d.yield(crypto.subtle.decrypt({name:ecmConfigObj.aesValue,iv:getCustomerAESKey().aesIV},b,base64DecodeToBytes(a)),3);c=d.yieldResult;return d.return(bytesToString(new Uint8Array(c)))})}
117(function(){window.__GLOBAL_CLICK_MANAGER__||(window.__GLOBAL_CLICK_MANAGER__=!0,document.addEventListener("click",function(a){a=a.target;a.closest(".inp-wrapper__dropdonw")||a.closest(".inp-wrapper--dropdown")||document.querySelectorAll(".inp-wrapper__dropdonw").forEach(function(c){c.classList.add("hide-dropdown");c.querySelector(".city-search")&&(c.querySelector(".city-search").value="")});a.closest(".country--of--residence")||a.closest(".country-of-residence--wrapper")||(document.querySelectorAll(".country--of--residence").forEach(function(c){return c.classList.add("hide-dropdown")}),
118document.querySelectorAll(".country--of--residence .data-search-country").forEach(function(c){return c.value=""}));a.closest(".data-inter-code-popup")||a.closest(".data-search-country")||document.querySelectorAll(".data-inter-code-popup").forEach(function(c){c.classList.add("hide-countryCodePopup");var d;null==c||null==(d=c.previousElementSibling)||d.classList.remove("active")});var b=document.querySelector(".datepickers-container");b&&!a.closest(".datepickers-container")&&(a.closest(".premiersipcalculator__dob-field")||
119b.classList.remove("premierSIP_datepicker-container"),a.closest(".tic-premium-dob-wrap")||b.classList.remove("terminsurance_datepicker-container"),a.closest(".prplife-dob-wrap")||b.classList.remove("productprp_datepicker-container"),a.closest(".mrsscal__inpdob")||document.querySelector(".datepicker.active")||b.classList.remove("mrsscal_datepicker-container"),a.closest(".retirementCalc__inpdob")||document.querySelector(".datepicker.active")||b.classList.remove("retirementCalc_datepicker-container"))},
120{passive:!0}))})();var rewriteSellOnlineUrl=function(a){return a};
121document.addEventListener("DOMContentLoaded",function(){function a(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){return l.return(new Promise(function(f,k){k=new XMLHttpRequest;k.onreadystatechange=function(){if(4==this.readyState&&200==this.status&&this.responseText){var n=this.responseText&&JSON.parse(this.responseText);n=n&&n.properties.elements;var m,p,r=JSON.parse((null==(m=n)?void 0:null==(p=m.tteProductDetails)?void 0:p.value)||"{}"),q,t;n=JSON.parse((null==(q=n)?void 0:null==
122(t=q.directBoLinkDetails)?void 0:t.value)||"{}");q={tteProductDetails:r,directBoLinkDetails:n};dataMapping.genericProductDetails&&0!==Object.keys(dataMapping.genericProductDetails).length||(dataMapping.genericProductDetails={},dataMapping.genericProductDetails=q,dataMapping.genericProductDetails.tteProductDetails=r);f(q)}};k.open("GET","/api/assets/tataaialifeinsurancecompanylimited/content-fragment-23-02-24/product-master-list/product-details-mapping.json",!0);k.send()}))})}var b,c,d,e,g,h;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){if(1==
123l.nextAddress)return dataMapping.genericProductDetails&&0!==Object.keys(dataMapping.genericProductDetails).length?(a=dataMapping.genericProductDetails,l.jumpTo(2)):l.yield(a(),3);2!=l.nextAddress&&(a=l.yieldResult);try{b=a.directBoLinkDetails||{},c="sourcePage\x3d"+location.origin+location.pathname,d=function(f){return"string"===typeof f&&f.includes("sellonline")},e=function(f){if(!d(f)||f.includes("sourcePage\x3d"))return f;var k=f.includes("?")?"\x26":"?";return f+k+c},rewriteSellOnlineUrl=function(f){if(!b||
1240===Object.keys(b).length)return e(f);if(!d(f))return f;try{var k=new URL(f,window.location.origin)}catch(r){return e(f)}var n=k.searchParams.get("product"),m=k.searchParams.get("variant"),p=n;m&&(p=n+"\x26variant\x3d"+m);n=b[p];if(!n)return e(f);f=k.search.replace(/[?&]product=[^&]*/i,"").replace(/[?&]campaign=[^&]*/i,"").replace(/[?&]sourcePage=[^&]*/i,"").replace(/^&/,"").replace(/^\?/,"");return"https://sellonline.tataaia.com/app/products?product\x3d"+n+"\x26campaign\x3dBO"+(f?"\x26"+f:"")+"\x26"+
125c},g=function(f){Array.from(f.attributes||[]).forEach(function(k){var n=rewriteSellOnlineUrl(k.value);n!==k.value&&(k.value=n)})},h=function(f){var k=f.dataset;k&&Object.keys(k).forEach(function(n){var m=k[n];d(m)&&(k[n]=rewriteSellOnlineUrl(m))})},document.querySelectorAll("a, input, button").forEach(function(f){g(f);"A"===f.tagName&&h(f)})}catch(f){console.error("Error processing sellonline campaign URLs:",f)}l.jumpToEnd()})});

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.