//tealium universal tag - utag.1084 ut4.0.202109290807, Copyright 2021 Tealium.com Inc. All Rights Reserved.
try{(function(id,loader){var u={};utag.o[loader].sender[id]=u;if(utag===undefined){utag={};}if(utag.ut===undefined){utag.ut={};}if(utag.ut.loader===undefined){u.loader=function(o){var a,b,c,l;a=document;if(o.type==="iframe"){b=a.createElement("iframe");b.setAttribute("height","1");b.setAttribute("width","1");b.setAttribute("style","display:none");b.setAttribute("src",o.src);}else if(o.type==="img"){utag.DB("Attach img: "+o.src);b=new Image();b.src=o.src;return;}else{b=a.createElement("script");b.language="javascript";b.type="text/javascript";b.async=1;b.charset="utf-8";b.src=o.src;}if(o.id){b.id=o.id;}if(typeof o.cb==="function"){if(b.addEventListener){b.addEventListener("load",function(){o.cb();},false);}else{b.onreadystatechange=function(){if(this.readyState==="complete"||this.readyState==="loaded"){this.onreadystatechange=null;o.cb();}};}}l=o.loc||"head";c=a.getElementsByTagName(l)[0];if(c){utag.DB("Attach to "+l+": "+o.src);if(l==="script"){c.parentNode.insertBefore(b,c);}else{c.appendChild(b);}}};}else{u.loader=utag.ut.loader;}
u.ev={'view':1};u.initialized=false;u.map={};u.extend=[function(a,b){try{if(1){(function(){function getParam(name){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regex=new RegExp("[\\?&]"+name+"=([^]*)"),results=regex.exec(location.search);return results===null?"":decodeURIComponent(results[1].replace(/\+/g," "));}
var cjeventid=getParam('cjevent'),now=new Date(),time=now.getTime(),expTime=time+5184000000;now.setTime(expTime);if(cjeventid){var domain=location.host.split(".");domain.shift();domain=domain.join(".");document.cookie="CJEVENT="+cjeventid+"; expires="+now.toGMTString()+"; path=/;domain=."+domain+";";}})();}}catch(e){utag.DB(e)}},function(a,b){try{if((typeof b['page.pageName']!='undefined'&&typeof b['page.pageType']!='undefined'&&typeof b['page.flowType']!='undefined'&&b['page.pageType'].toString().toLowerCase().indexOf('solutions lab'.toLowerCase())<0&&b['page.pageType'].toString().toLowerCase().indexOf('agent'.toLowerCase())<0&&b['page.flowType'].toString().toLowerCase().indexOf('international trip planner'.toLowerCase())<0&&b['page.pageName'].toString().toLowerCase().indexOf('ryl'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/vzw/browse/orderpayment'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/ordertracking/index'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('solutions-and-services/'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/ui/acct/nos/vz-selects-promo'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('home-services'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/myv/nos/index.jsp'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/wireless-devices/smartphones/moto-z3/'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/od/guest/orderStatusIndex'.toLowerCase())<0&&/desktop|tablet/.test(b['page.platform'])&&b['dom.pathname'].toString().toLowerCase().indexOf('/support/smart-setup'.toLowerCase())<0&&b['page.pageType'].toString().toLowerCase().indexOf('homepage'.toLowerCase())<0&&b['page.mlsExp'].toString().toLowerCase().indexOf('1D_myvz:mfapp'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/vzw/secure/orderhistory/myorders-overview.action'.toLowerCase())<0&&b['page.mlsExp'].toString().toLowerCase().indexOf('mfapp'.toLowerCase())<0)||(b['dom.pathname'].toString().toLowerCase().indexOf('/support/'.toLowerCase())>-1&&b['page.mlsExp'].toString().toLowerCase().indexOf('1D'.toLowerCase())>-1)||(typeof b['page.pageType']!='undefined'&&typeof b['page.flowType']!='undefined'&&b['page.pageType'].toString().toLowerCase().indexOf('my verizon'.toLowerCase())>-1&&b['dom.pathname'].toString().toLowerCase().indexOf('/myv/nos/index.jsp'.toLowerCase())<0&&b['page.flowType'].toString().toLowerCase().indexOf('login lp'.toLowerCase())<0&&b['dom.domain'].toString().toLowerCase().indexOf('login.verizonwireless.com'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/vzw/secure/orderhistory/myorders-overview.action'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase()!='/my-verizon/'.toLowerCase()&&b['page.mlsExp'].toString().toLowerCase().indexOf('mfapp'.toLowerCase())<0)||(typeof b['page.pageName']!='undefined'&&typeof b['page.pageType']!='undefined'&&typeof b['page.flowType']!='undefined'&&b['dom.pathname'].toString().toLowerCase().indexOf('/ordertracking/index'.toLowerCase())<0&&b['page.pageType'].toString().toLowerCase().indexOf('solutions lab'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('solutions-and-services/'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/ui/acct/nos/vz-selects-promo'.toLowerCase())<0&&b['page.pageName'].toString().toLowerCase().indexOf('ryl'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('home-services'.toLowerCase())<0&&b['page.flowName'].toString().toLowerCase().indexOf('5g'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/vzw/browse/orderpayment'.toLowerCase())<0&&b['page.pageType'].toString().toLowerCase().indexOf('agent'.toLowerCase())<0&&b['page.flowType'].toString().toLowerCase().indexOf('international trip planner'.toLowerCase())<0&&b['page.platform'].toString().toLowerCase().indexOf('mobile'.toLowerCase())>-1&&b['dom.pathname'].toString().toLowerCase().indexOf('od/cust/orderStatusIndex'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/myv/nos/index.jsp'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/wireless-devices/smartphones/moto-z3/'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/od/guest/orderStatusIndex'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/od/cust/auth/cart/'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/prospect/cart'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/support/smart-setup'.toLowerCase())<0&&b['page.pageType'].toString().toLowerCase().indexOf('homepage'.toLowerCase())<0&&b['page.mlsExp'].toString().toLowerCase().indexOf('1D_myvz:mfapp'.toLowerCase())<0&&b['dom.pathname'].toString().toLowerCase().indexOf('/vzw/secure/orderhistory/myorders-overview.action'.toLowerCase())<0&&b['page.mlsExp'].toString().toLowerCase().indexOf('mfapp'.toLowerCase())<0)||(typeof b['page.flowName']!='undefined'&&b['page.flowName'].toString().toLowerCase().indexOf('5g'.toLowerCase())>-1)||b['dom.pathname'].toString().toLowerCase().indexOf('/support/1d/contact-us/'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/support/1d/secure/contact-us/'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/solutions-and-services/'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/support/1d/secure/networkdisruption/'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/acct/secure/profile '.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/bill/secure/dcb'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/discount-program/'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/bill/secure/pb'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/bill/ao/billhistory'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/bill/ao/ps'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/vzw/accountholder/alerts/home.action'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/bill/ao/accountanalysis'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/hub/ao/myplan'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/vzw/secure/safeguards/securitySuite.action'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/acct/secure/profile'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/acct/secure/profile/privacypermissions/privacysettings'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/vzw/secure/myfriend/myFriendDisplayActivation.action'.toLowerCase())>-1||(typeof b['page.flowType']!='undefined'&&b['dom.pathname'].toString().toLowerCase().indexOf('/stores'.toLowerCase())>-1&&b['page.flowType'].toString().toLowerCase().indexOf('store locator'.toLowerCase())>-1)||b['page.channel'].toString().toLowerCase().indexOf('/ryl'.toLowerCase())>-1||b['page.channel'].toString().toLowerCase().indexOf('/dspt'.toLowerCase())>-1||b['page.pageName'].toString().toLowerCase().indexOf('my verizon/postpay/my usage/overview'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/support/1d/call-us/'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/ui/hub/secure/overview'.toLowerCase())>-1||b['dom.pathname'].toString().indexOf('/ui/hub/ao/myorders#/')>-1||b['dom.pathname'].toString().indexOf('/plans/international/international-travel/trip-planner-tool/')>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/stores/'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/onesearch/search'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('od/cust/orderStatusIndex'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/digital/nsa/secure/ui/bill/viewbill/'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/onesearch/search?q=reward&source=MFWeb'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/smartphones'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/sales/digital/mdnselection.html'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/tablets/'.toLowerCase())>-1){if(vzwDL.page.mlsExp!="mfapp"&&vzwDL.page.mlsExp!="1D_myvz:mfapp"){jQuery('body').prepend('');}}}catch(e){utag.DB(e)}},function(a,b){try{if(b['dom.pathname'].toString().toLowerCase().indexOf('/smartphones'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/onedp'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/od'.toLowerCase())>-1||typeof b['page.pageName']!='undefined'||b['dom.pathname'].toString().toLowerCase().indexOf('/vzCloud/home/cloudOverview.action'.toLowerCase())<0||b['page.mlsExp'].toString().toLowerCase().indexOf('mfapp:northstar'.toLowerCase())<0){window.vzwThrottleChat=(function(){var qsOverride="lpChat";var list=[];function getUrlVars(){var vars={};window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(m,key,value){vars[key]=value;});return vars;}
function addGroup(params){var overWriteIdx=-1;for(var i=0;i-1){list[overWriteIdx]=params;}else{list.push(params);}}
function canIrun(groupId,whoAmI){var canRun;var group;for(var i=0;i-1||b['dom.pathname'].toString().toLowerCase().indexOf('/onedp'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/od'.toLowerCase())>-1||typeof b['page.pageName']!='undefined'){if(window.location.href.indexOf("/digital/nsa/nos/ui/contactus/nonsigninlanding")<0){var THROTTLE_PERCENT=1.0;function throttleWrapper(){var lpNBXLcAvailable="N";var lpNBXLpPriority="";var lpNBXLpSoiEngagementId={sticky_soi_id:"",embedded_soi_id:"",overlay_soi_id:""};var isLpTagBlocked=false;var lpButtonHided=false;var proAutoOpenedFlag=false;var isLPProactiveChat=false;var closeProActiveonPage=false;var apiInterval;var stopInfinite=0;var priorityTest=0;var lpSkillNameInTimer;var priorityInTimer;var engInTimer;var timerCallCount=true;var proActivePriority=null;var visitorUniqueID=null;var errorPageProAvctive=false;var lpIschatting="false";var lpChatObject={};var coLpPriorityLevel="";var coEngagementName="";var lpEngagementID="";var firstMessageSent=false;var isCONBCHEnabled=false;var lpChatShownSiteCatalystObj={engagementAddedBeforeChatShown:[],engagementAddedAfterChatShown:[],isLpChatShown:false}
var lpChatTargetSiteCatalystArray=[];var lpChatClickedEngagement="";var lpJwtCount=0;var globalOptionsInit={};VZ_Chat=(function(){var out={},debugMode,legacyMode,chatVars,fnQueue=[],console=window.console,isReady=false;function bindDL(){if(typeof vzwDL==="undefined"&&typeof vzdl==="undefined"){return;}
if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.chat)){chatVars=vzwDL.page.chat;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.user)&&checkLPValidVariable(vzdl.user.chatId)){chatVars=vzdl.user.chatId;}
isReady=true;}
function addVar(name,value,scope,mobile){var newVar;if(!chatVars){throw getException("DataLayerUndefinedException","Data Layer is Undefined");}
newVar={name:name,value:value,scope:scope,mobile:mobile,toString:function(){return("{ name: "+
name+
", value: "+
value+
", scope: "+
scope+
", mobile: "+
mobile+
" }");},};if(typeof name!=="string"||typeof value==="undefined"||typeof scope!=="string"||(scope!=="page"&&scope!=="session")||typeof mobile!=="boolean"){throw getException("InvalidVariableException","Invalid variable format: "+newVar.toString());}
if(debugMode){console.log("Adding var: "+newVar.toString());}
chatVars[chatVars.length]=newVar;}
function getException(name,msg){return{name:name,msg:msg,toString:function(){return this.name+": "+this.msg;},};}
function initVars(scrubber,builder){try{bindDL();if(scrubber){scrubber=new scrubber(VZ_Chat,getWirelessDL());if(debugMode){console.log("Data scrubbing with: "+scrubber.toString());}
scrubber.scrub();}else{if(debugMode){console.log("Warning! -> Data scrubber is not defined");}}
if(builder){builder=new builder(VZ_Chat,getWirelessDL());if(debugMode){console.log("Data building with: "+builder.toString());}
builder.build();}else{if(debugMode){console.log("Warning! -> Data builder is not defined");}}}catch(err){console.log("Critical [and ignored] error on init -> "+err);}}
function init(options){console.log("calling vz_chat init "+holdOutGroupSelectionCount+" times");loadLpLibrary();var islpNbxpropositionIdAvailable=false;if(typeof lpNBXObject!="undefined"&&lpNBXObject!=null&&Object.keys(lpNBXObject).length!=0){if(typeof lpNBXObject.propositionId!="undefined"&&lpNBXObject.propositionId!=null&&lpNBXObject.propositionId.length>0){if(lpNBXObject.propositionId.indexOf("P_NoNBA")!=-1){islpNbxpropositionIdAvailable=false;}
else{islpNbxpropositionIdAvailable=true;}}}
if(!isNBXFunctionCalled&&holdOutGroupSelectionCount<1){holdOutGroupSelectionCount++;setTimeout(VZ_Chat.init,1000,options);}
else if(isNBXFunctionCalled&&islpNbxpropositionIdAvailable){lpBauFlow=false;nbxInit();lpTag.start();}
else{lpTag.start();lpBauFlow=true;var RPSflow="";try{RPSflow=window.isRPSFlow;}catch(errrrr){}
try{if(VZ_Chat.getCookie("lpFdvLockChatInProgress")!=null&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=""&&VZ_Chat.getCookie("lpFdvLockChatInProgress")=="true"){if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()&&typeof EchannelVera.lpUtilsService.removeUnifiedChatButton!="undefined"&&EchannelVera.lpUtilsService.removeUnifiedChatButton!=null){EchannelVera.lpUtilsService.removeUnifiedChatButton();}}}}catch(err){}
try{if((window.sessionStorage.getItem("UNIFIED_CHAT_INPROGRESS")=="true")&&(VZ_Chat.getCookie('UNIFIED_CHAT_INPROGRESS')!=null&&VZ_Chat.getCookie('UNIFIED_CHAT_INPROGRESS').toLowerCase()=="open")){isLpTagBlocked=true;return;}
if(RPSflow=="true"||RPSflow==true){return;}
if(document.referrer.indexOf("configuration")!=-1&&document.URL.indexOf("trade-in")!=-1){return;}}catch(tagEr){}
if(typeof console==="undefined"){window.console={};console.log=function(){};console.error=function(){};}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};}
try{if(VZ_Chat.getCookie("isLpFirstMessage")==null||VZ_Chat.getCookie("isLpFirstMessage")==""){document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";}}catch(e){}
options=options||{};debugMode=options.debugMode||false;legacyMode=options.legacyMode||true;globalOptionsInit=options;if(document.readyState==="interactive"||document.readyState==="complete"){if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 3")}
downloadChatTag();initVars(options.scrubber,options.builder);}}else{document.addownloadChatTagdEventListener("DOMContentLoaded",function(){if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 5");}
downloadChatTag();initVars(options.scrubber,options.builder);}});}}}
function contactUsInit(options){if(typeof console==="undefined"){window.console={};console.log=function(){};console.error=function(){};}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};}
try{if(VZ_Chat.getCookie("isLpFirstMessage")==null||VZ_Chat.getCookie("isLpFirstMessage")==""){document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";}}catch(e){}
options=options||{};debugMode=options.debugMode||false;legacyMode=options.legacyMode||true;globalOptionsInit=options;if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 6");}
downloadChatTag();initVars(options.scrubber,options.builder);}}
function setVar(){var tName,tValue,tScope,tMobile;if(arguments.length>=2){(tName=arguments[0]),(tValue=arguments[1]),(tScope=arguments[2]||"page"),(tMobile=typeof arguments[3]=="undefined"?true:arguments[3]);try{addVar(tName,tValue,tScope,tMobile);}catch(err){if(debugMode){console.log("setVar error ->"+err);}
if(err.name=="DataLayerUndefinedException"&&!isReady){fnQueue.push(function(){setVar(tName,tValue,tScope,tMobile);});}}}else if(arguments.length==1){throw getException("OperationNotSupported","This operation is not supported");}else{throw getException("InvalidArgument","Argument count is invalid");}}
function replaceAll(str){if(str===undefined||str===null)return str;return str.replace(/\//g,"");}
function getCookie(cname){try{var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(";");for(var i=0;i0.135||isNaN(extractSOIScore))&&(typeof errorPageMessage!='undefined'&&errorPageMessage!=null&&errorPageMessage.trim()!=""))){lpTag.section.push("Error:true");}
if(vzdl!=null&&vzdl.error!=null&&typeof vzdl.error.proactiveChatCustomMSG!='undefined'&&vzdl.error.proactiveChatCustomMSG!=''&&vzdl.error.proactiveChatCustomMSG!=null){customEngagement(proactiveChatCustomMSG);}}catch(ERR){console.log("extractSOIScore error "+ERR);}}}catch(e){};var vjwtAvailable=window.sessionStorage.getItem("wjt");if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.authentication!="undefined"&&vzwDL.authentication!=null&&vzwDL.authentication!=""&&vzwDL.authentication.mdn&&typeof vjwtAvailable!="undefined"&&vjwtAvailable!=null&&vjwtAvailable!=""){lpTag.section.push("Auth:true");}else if(isUserAuthenticated()&&typeof vjwtAvailable!="undefined"&&vjwtAvailable!=null&&vjwtAvailable!=""){lpTag.section.push("Auth:true");}
if(window.document.URL.indexOf("tlogin.verizonwireless.com")!=-1||window.document.URL.indexOf("login.verizonwireless.com")!=-1||window.document.URL.indexOf("login.verizon.com")!=-1){lpTag.section.push("defaultexclude");}}
catch(e){}}
function sendCustData(){try{if(typeof lpTag!='undefined'&&lpTag!=null){var lpAuthenticationCustType="";if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.authentication.custType!="undefined"&&window.vzwDL.authentication!=null&&typeof window.vzwDL.authentication.custType!="undefined"&&window.vzwDL.authentication.custType!=null&&window.vzwDL.authentication.custType!=""){lpAuthenticationCustType=window.vzwDL.authentication.custType;}
else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&typeof vzdl.user.customerType!="undefined"&&vzdl.user.customerType!=null&&vzdl.user.customerType!=""){lpAuthenticationCustType=vzdl.user.customerType;}
lpTag.sdes=window.lpTag.sdes||[];var lp_gbl_id=VZ_Chat.getCookie("GLOBALID");var lp_vzw_session_id;if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.sessionId!="undefined"&&window.vzwDL.page.sessionId!=null&&window.vzwDL.page.sessionId!=""){lp_vzw_session_id=window.vzwDL.page.sessionId;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.channelSession!="undefined"&&vzdl.page.channelSession!=null&&vzdl.page.channelSession!=""){lp_vzw_session_id=vzdl.page.channelSession;}else if(window.sessionStorage.getItem("SESSION_ID")!=undefined&&window.sessionStorage.getItem("SESSION_ID")!=null&&window.sessionStorage.getItem("SESSION_ID")!=""){lp_vzw_session_id=window.sessionStorage.getItem("SESSION_ID");}else if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.session!="undefined"&&window.vzwDL.page.session!=null&&window.vzwDL.page.session!=""){lp_vzw_session_id=window.vzwDL.page.session;}
if(typeof lp_vzw_session_id!='undefined'&&typeof lp_gbl_id!='undefined'&&lp_vzw_session_id!=null&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeZipCode:lp_gbl_id,storeNumber:lp_vzw_session_id}});}else if(typeof lp_vzw_session_id!='undefined'&&lp_vzw_session_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeNumber:lp_vzw_session_id}});}else if(typeof lp_gbl_id!='undefined'&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeZipCode:lp_gbl_id}});}}}catch(e){console.log("Sending global session id and vzw_session_id failed "+e);}}
function sendErrorMessage(ecode,mes){try{errorPageProAvctive=true;stopInfinite=0;var lpTag=window.lpTag;var extractSOIScore=null;var lpErrorProactiveChatIndicator="";lpTag.sdes=lpTag.sdes||[];if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.error!='undefined'&&vzdl.error!=null&&typeof vzdl.error.soiResponse!='undefined'&&vzdl.error.soiResponse!=null){extractSOIScore=extractSOIScoreFromJSON(vzdl.error.soiResponse);if(extractSOIScore!=null){extractSOIScore=parseFloat(extractSOIScore);}}
if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.error!='undefined'&&vzdl.error!=null&&typeof vzdl.error.proactiveChatIndicator!='undefined'&&vzdl.error.proactiveChatIndicator!=null&&vzdl.error.proactiveChatIndicator!=""){lpErrorProactiveChatIndicator=vzdl.error.proactiveChatIndicator;}
if(extractSOIScore!=null&&!isNaN(extractSOIScore)){var leadSOIValue={type:"lead",lead:{topic:"SOI",value:extractSOIScore,leadId:"ErrorId",}}
lpTag.sdes.push(leadSOIValue);}else if(lpErrorProactiveChatIndicator.toLowerCase()=="y"){var leadSOIValue={type:"lead",lead:{topic:"PEGA-SOI",value:lpErrorProactiveChatIndicator,leadId:"ErrorId",}}
lpTag.sdes.push(leadSOIValue);}
var errorMsg={type:"error",error:{message:mes,code:ecode,}};lpTag.sdes.push(errorMsg);}catch(err){}}
this.scrub=function(){sendSectionData();sendPageInfo();if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.authentication)&&checkLPValidVariable(vzwDL.authentication.visHashedMdn)&&checkLPValidVariable(vzwDL.authentication.accountNumber)&&!(vzwDL.authentication.prepayInd=="Y"||vzwDL.authentication.prepayInd=="1")){sendCustData();}
else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id&&typeof vzdl.user.accountLast2!="undefined"&&vzdl.user.accountLast2!=null&&vzdl.user.accountLast2&&!(vzdl.user.accountType=="Y"||vzdl.user.accountType=="1")){sendCustData()}
var errorData="";try{errorData=vzdl.error;}catch(err){}
if(errorData){if(vzdl.error.code!=undefined&&vzdl.error.code!=null&&vzdl.error.code!=""){var errorPageCode;var errorPageMessage;try{errorPageCode=vzdl.error.code.split("|")[0];errorPageMessage=vzdl.error.code.split("|")[1];}catch(ERR){}
sendErrorMessage(errorPageCode,errorPageMessage);}}};};VZ_Chat.TCMobileDataBuilder=function(that,dl){if(!dl){throw that.getException("InvalidParamException","Data layer is undefined");}
function buildCartInfo(dl){try{var lpTag=window.lpTag;var lpCartData={};if(typeof vzwDL!='undefined'&&vzwDL!==null&&typeof vzwDL.cart!='undefined'&&vzwDL.cart!=null){lpCartData=vzwDL.cart;}
else if(typeof vzdl!='undefined'&&vzdl!==null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.product!='undefined'&&vzdl.txn.product!=null){lpCartData=vzdl.txn.product;}
if(Object.keys(lpCartData).length>0){lpTag.sdes=lpTag.sdes||[];var lpCartItems=[];if(typeof lpCartData.items!="undefined"&&lpCartData.items!=null){lpCartItems=lpCartData.items;}
else if(typeof lpCartData.current!="undefined"&&lpCartData.current!=null){lpCartItems=lpCartData.current;}
var sdeCart={type:"cart",currency:"USD",numItems:lpCartItems.length,products:[],};for(var i=0;i0){lpTag.sdes=lpTag.sdes||[];var lpPurchaseItems=[];if(typeof lpPurchaseData.items!="undefined"&&lpPurchaseData.items!=null){lpPurchaseItems=lpPurchaseData.items;}
else if(typeof lpPurchaseData.current!="undefined"&&lpPurchaseData.current!=null){lpPurchaseItems=lpPurchaseData.current;}
lpTag.sdes=window.lpTag.sdes||[];var lpOrderID="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderNumber!='undefined'&&vzwDL.purchase.orderNumber!=null&&vzwDL.purchase.orderNumber!=""){lpOrderID=vzwDL.purchase.orderNumber;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.id!='undefined'&&vzdl.txn.id!=null&&vzdl.txn.id!=""){lpOrderID=vzdl.txn.id;}
var lp_order_total=0;try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderTotal!='undefined'&&vzwDL.purchase.orderTotal!=null&&vzwDL.purchase.orderTotal!=""){try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}else if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.purchase)&&checkLPValidVariable(vzwDL.purchase.orderTotal)){try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.total!='undefined'&&vzdl.txn.total!=null&&vzdl.txn.total!=""){try{lp_order_total=parseFloat(vzdl.txn.total);}catch(e){}}}
catch(e){}
var lpOrderNumber="";if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.purchase)&&checkLPValidVariable(vzwDL.purchase.orderNumber)){lpOrderNumber=vzwDL.purchase.orderNumber;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.txn)&&checkLPValidVariable(vzdl.txn.id)){lpOrderNumber=vzdl.txn.id;}
var sdePurchases={type:"purchase",currency:"USD",orderId:lpOrderNumber,total:lp_order_total,cart:{products:[],},};for(var j=0;j0){buildConvVars(vzwDL);}}else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.txn!="undefined"&&vzdl.txn!=null&&typeof vzdl.txn.product!="undefined"&&vzdl.txn.product!=null&&vzdl.txn.product){if(typeof vzdl.txn.product.current!="undefined"&&vzdl.txn.product.current!=null&&vzdl.txn.product.current&&vzdl.txn.product.current.length>0){buildConvVars(vzdl);}}};};function extractSOIScoreFromJSON(SOIResponse){var scoreValue=null;try{if(SOIResponse!=""){stringValue=SOIResponse.indexOf('"conversion_likelihood_score":');if(stringValue!=-1){var subStringValue=SOIResponse.substring(SOIResponse.indexOf('"conversion_likelihood_score":')+30);scoreValue=subStringValue.substring(1,subStringValue.indexOf(',')-1);}}}catch(e){console.log(e,"extractSOIScoreFromJSON function error");}
return scoreValue;}
function chatLPUpdateErrorTag(message,errorCode,errorName,SOIResponse,proactiveChatIndicator,proactiveChatCustomMSG){errorPageProAvctive=true;stopInfinite=0;var extractSOIScore=null;var lpErrorProactiveChatIndicator="";try{try{if(typeof SOIResponse!='undefined'&&SOIResponse!=null){extractSOIScore=extractSOIScoreFromJSON(SOIResponse);if(extractSOIScore!=null){extractSOIScore=parseFloat(extractSOIScore);}}}catch(err){console.log("extractSOIScore error "+err);}
var section=(window.lpTag&&window.lpTag.section)||[];var sdeData=[];if(typeof proactiveChatIndicator!='undefined'&&proactiveChatIndicator!=null&&proactiveChatIndicator!=""){lpErrorProactiveChatIndicator=proactiveChatIndicator;}
if(lpErrorProactiveChatIndicator.toLowerCase()=="y"||((extractSOIScore==null||extractSOIScore>0.135||isNaN(extractSOIScore))&&(typeof message!='undefined'&&message!=null&&message.trim()!=""))){section.push("Error:true");}
if(typeof message!='undefined'&&message!=null&&typeof errorCode!='undefined'&&errorCode!=null){var errorMsg={type:"error",error:{message:message,code:errorCode,}};sdeData.push(errorMsg);}
if(extractSOIScore!=null&&!isNaN(extractSOIScore)){var leadSOIValue={type:"lead",lead:{topic:"SOI",value:extractSOIScore,leadId:"ErrorId",}}
sdeData.push(leadSOIValue);}else if(lpErrorProactiveChatIndicator.toLowerCase()=="y"){var leadSOIValue={type:"lead",lead:{topic:"PEGA-SOI",value:lpErrorProactiveChatIndicator,leadId:"ErrorId",}}
sdeData.push(leadSOIValue);}
if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:sdeData,taglets:{},});}
if(typeof proactiveChatCustomMSG!='undefined'&&proactiveChatCustomMSG!=''&&proactiveChatCustomMSG!=null){customEngagement(proactiveChatCustomMSG);}}catch(err){}}
function reInitChatFrameworkNSA(){try{console.log("*****************************REINITCHATFRAMEWORKNSACALLED*******************");if(!window.lpTag){console.log("LP tag not Loaded");return;}
stopInfinite=0;var section=["L1:wireless"];var paths=document.location.pathname.split("/").filter(Boolean);for(var i=0;i5){aSub=vzwDL.authentication.mdn;}
else if(typeof vzwDL.authentication.visHashedMdn!='undefined'&&vzwDL.authentication.visHashedMdn!=null&&vzwDL.authentication.visHashedMdn!=""&&vzwDL.authentication.visHashedMdn.length>5){aSub=vzwDL.authentication.visHashedMdn;}}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id!="")
{aSub=vzdl.user.id;}}
catch(e){}
callback({iss:"verizon.com",acr:"loa1",sub:aSub,});}}catch(e)
{}}
var sdeCartData;var sdePurchaseData;var sdeCreditData;if((typeof vzwDL!='undefined'&&vzwDL!==null)||(typeof vzdl!='undefined'&&vzdl!==null)){var cartInfo;var purchaseInfo;var lpPageHardResponse="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.page!='undefined'&&vzwDL.page!=null&&typeof vzwDL.page.hardResponse!='undefined'&&vzwDL.page.hardResponse!=null&&vzwDL.page.hardResponse!=""){lpPageHardResponse=vzwDL.page.hardResponse;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.user!='undefined'&&vzdl.user!=null&&typeof vzdl.user.creditAppNum!='undefined'&&vzdl.user.creditAppNum!=null&&vzdl.user.creditAppNum!=""){lpPageHardResponse=vzdl.user.creditAppNum;}
if(lpPageHardResponse!=""&&window.location.href.indexOf("creditHold.html")!=-1){sdeCreditData={type:"error",error:{},};var creditHoldCodes=lpPageHardResponse.split("|");if(creditHoldCodes.length>0&&creditHoldCodes[0]!="HD"&&creditHoldCodes[1]!="HD"){try{section.push("messagingExclude");if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{console.log("credithold messaging exclude change1");window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}catch(e)
{console.log("credithold messaging exclude change1");}
return;}
if(creditHoldCodes.length>0&&(creditHoldCodes[0]=="HD"||creditHoldCodes[1]=="HD")){try{sdeCreditData.error.message=creditHoldCodes[0];}catch(e){}}}else if(lpPageHardResponse==""&&window.location.href.indexOf("creditHold.html")!=-1)
{try{section.push("messagingExclude");if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{console.log("credithold messaging exclude change1");window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}catch(e)
{console.log("credithold messaging exclude change1");}
return;}
var lpCartData={};if(typeof vzwDL!='undefined'&&vzwDL!==null&&typeof vzwDL.cart!='undefined'&&vzwDL.cart!=null){lpCartData=vzwDL.cart;}
else if(typeof vzdl!='undefined'&&vzdl!==null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.product!='undefined'&&vzdl.txn.product!=null){lpCartData=vzdl.txn.product;}
if(Object.keys(lpCartData).length>0){lpTag.sdes=lpTag.sdes||[];var lpCartItems=[];if(typeof lpCartData.items!="undefined"&&lpCartData.items!=null){lpCartItems=lpCartData.items;}
else if(typeof lpCartData.current!="undefined"&&lpCartData.current!=null){lpCartItems=lpCartData.current;}
if(lpCartItems&&lpCartItems.length>0){var sdeCart={products:[],};for(var i=0;i0){lpTag.sdes=lpTag.sdes||[];var lpPurchaseItems=[];if(typeof lpPurchaseData.items!="undefined"&&lpPurchaseData.items!=null){lpPurchaseItems=lpPurchaseData.items;}
else if(typeof lpPurchaseData.current!="undefined"&&lpPurchaseData.current!=null){lpPurchaseItems=lpPurchaseData.current;}
if(lpPurchaseItems&&lpPurchaseItems.length>0){var lp_order_total=0;try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderTotal!='undefined'&&vzwDL.purchase.orderTotal!=null&&vzwDL.purchase.orderTotal!="")
{try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.total!='undefined'&&vzdl.txn.total!=null&&vzdl.txn.total!="")
{try{lp_order_total=parseFloat(vzdl.txn.total);}catch(e){}}}
catch(e)
{}
var lpOrderID="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderNumber!='undefined'&&vzwDL.purchase.orderNumber!=null&&vzwDL.purchase.orderNumber!=""){lpOrderID=vzwDL.purchase.orderNumber;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.id!='undefined'&&vzdl.txn.id!=null&&vzdl.txn.id!=""){lpOrderID=vzdl.txn.id;}
sdePurchaseData={type:"purchase",currency:"USD",orderId:lpOrderID,total:lp_order_total,cart:{products:[],},};for(var j=0;j0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{window.lpTag.newPage(document.URL,newPageData);}}
catch(e){}}
function reInitChatFramework(chatSiteId){try{if(!window.lpTag){console.log("LP tag not Loaded");return;}
var section=["L1:wireless"];stopInfinite=0;var paths=document.location.pathname.split("/").filter(Boolean);for(var i=0;i0&&creditHoldCodes[0]!="HD"&&creditHoldCodes[1]!="HD"){try{section.push("messagingExclude");if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{console.log("credithold messaging exclude change1");window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}catch(e)
{console.log("credithold messaging exclude change1");}
return;}
if(creditHoldCodes.length>0&&(creditHoldCodes[0]=="HD"||creditHoldCodes[1]=="HD")){try{sdeCreditData.error.message=creditHoldCodes[0];}catch(e){}}}else if(lpPageHardResponse==""&&window.location.href.indexOf("creditHold.html")!=-1)
{try{section.push("messagingExclude");if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{console.log("credithold messaging exclude change1");window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}catch(e)
{console.log("credithold messaging exclude change1");}
return;}
var lpCartData={};if(typeof vzwDL!='undefined'&&vzwDL!==null&&typeof vzwDL.cart!='undefined'&&vzwDL.cart!=null){lpCartData=vzwDL.cart;}
else if(typeof vzdl!='undefined'&&vzdl!==null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.product!='undefined'&&vzdl.txn.product!=null){lpCartData=vzdl.txn.product;}
if(Object.keys(lpCartData).length>0){lpTag.sdes=lpTag.sdes||[];var lpCartItems=[];if(typeof lpCartData.items!="undefined"&&lpCartData.items!=null){lpCartItems=lpCartData.items;}
else if(typeof lpCartData.current!="undefined"&&lpCartData.current!=null){lpCartItems=lpCartData.current;}
if(lpCartItems&&lpCartItems.length>0){var sdeCart={products:[],};for(var i=0;i0){lpTag.sdes=lpTag.sdes||[];var lpPurchaseItems=[];if(typeof lpPurchaseData.items!="undefined"&&lpPurchaseData.items!=null){lpPurchaseItems=lpPurchaseData.items;}
else if(typeof lpPurchaseData.current!="undefined"&&lpPurchaseData.current!=null){lpPurchaseItems=lpPurchaseData.current;}
if(lpPurchaseItems&&lpPurchaseItems.length>0){var lp_order_total=0;try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderTotal!='undefined'&&vzwDL.purchase.orderTotal!=null&&vzwDL.purchase.orderTotal!="")
{try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.total!='undefined'&&vzdl.txn.total!=null&&vzdl.txn.total!="")
{try{lp_order_total=parseFloat(vzdl.txn.total);}catch(e){}}}
catch(e)
{}
var lpOrderID="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderNumber!='undefined'&&vzwDL.purchase.orderNumber!=null&&vzwDL.purchase.orderNumber!=""){lpOrderID=vzwDL.purchase.orderNumber;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.id!='undefined'&&vzdl.txn.id!=null&&vzdl.txn.id!=""){lpOrderID=vzdl.txn.id;}
sdePurchaseData={type:"purchase",currency:"USD",orderId:lpOrderID,total:lp_order_total,cart:{products:[],},};for(var j=0;j0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{window.lpTag.newPage(document.URL,newPageData);}}catch(e){}}
function hideLPChatButton(){try{if(lpBauFlow){if(document.getElementById("inqC2CImgContainer_Fixed1")){document.getElementById("inqC2CImgContainer_Fixed1").style.display="none";}
if(document.getElementById("nuance-chat-container-1")){document.getElementById("nuance-chat-container-1").style.display="none";}
if(document.getElementById("LPMcontainer-1597421234268-4")){document.getElementById("LPMcontainer-1597421234268-4").style.display="none";}
if(document.getElementById("nuance-chat-container-2")){document.getElementById("nuance-chat-container-2").style.display="none";}
try{lpTag.events.hasFired('RENDERER_STUB','AFTER_CREATE_ENGAGEMENT_INSTANCE').forEach(function(e){var chatEngagementDiv=document.getElementById(e.data.eng.mainContainer.id);if(typeof chatEngagementDiv!="undefined"&&chatEngagementDiv!=null){chatEngagementDiv.style.display="none";}});}
catch(e){}
if(window.lpTag){window.lpTag.events.trigger("LP_OFFERS","HIDE");}}
else{var lpNBXStickyButtonDom=document.getElementById("vzChatWithUs");var lpNBXEmbeddedButtonDom=document.getElementById("vzChat");if(typeof lpNBXStickyButtonDom!="undefined"&&lpNBXStickyButtonDom!=null){lpNBXStickyButtonDom.style.display="none"}
if(typeof lpNBXEmbeddedButtonDom!="undefined"&&lpNBXEmbeddedButtonDom!=null){lpNBXEmbeddedButtonDom.style.display="none"}}}
catch(e){}}
function displayLPChatButton(){try{if(lpBauFlow){if(lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.length>1){for(var i=0;i0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}
if(document.getElementById("inqC2CImgContainer_Fixed1")){document.getElementById("inqC2CImgContainer_Fixed1").style.display="block";}
if(document.getElementById("nuance-chat-container-1")){document.getElementById("nuance-chat-container-1").style.display="block";}
if(document.getElementById("nuance-chat-container-2")){document.getElementById("nuance-chat-container-2").style.display="block";}}catch(e){}}
else{nbxLpExposedData()
var lpNBXStickyButtonDom=document.getElementById("vzChatWithUs");var lpNBXEmbeddedButtonDom=document.getElementById("vzChat");if(typeof lpNBXStickyButtonDom!="undefined"&&lpNBXStickyButtonDom!=null){lpNBXStickyButtonDom.style.display="block"}
if(typeof lpNBXEmbeddedButtonDom!="undefined"&&lpNBXEmbeddedButtonDom!=null){lpNBXEmbeddedButtonDom.style.display="block"}
lpNbxEnableProactiveChat(lpNBXObject);}}catch(e){}}
function getJWTToken(){try{function getTokenDetails(){console.log("*** in gettokendetails *** "+new Date().toString()+" JWT : "+window.sessionStorage.getItem("wjt"));if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.getAuthJWTToken!="undefined"&&EchannelVera.lpUtilsService.getAuthJWTToken!=null){console.log("*** before getJWTToken LP call *** "+new Date().toString());EchannelVera.lpUtilsService.getAuthJWTToken();console.log("*** after getJWTToken LP call *** "+new Date().toString());}}
try{var vjwt=window.sessionStorage.getItem("wjt");}catch(er){}
pushingAuthValue()
if(vjwt===undefined||vjwt===null||vjwt===""){getTokenDetails();}}catch(jerr){}}
var getTokenInterval=setInterval(function(){try{var wjt=window.sessionStorage.getItem("wjt");}catch(errr){}
pushingAuthValue()
if(wjt===null||wjt===""){getJWTToken();}else{clearInterval(getTokenInterval);}},5000);setTimeout(function(){clearInterval(getTokenInterval);},60000);function lpGetAuthenticationToken(callback){var wjt="";try{var lpCht=readTCCookieInfo("LP_CHAT_IN_PROGRESS");if(readTCCookieInfo("lp_jwt_wln")!=null&&readTCCookieInfo("lp_jwt_wln")!=""&&lpCht!=null&&lpCht=='Y')
{wjt=readTCCookieInfo("lp_jwt_wln");}else{wjt=window.sessionStorage.getItem("wjt");}}catch(rerr){wjt=window.sessionStorage.getItem("wjt");console.log("LPCB error"+rerr);}
try{pushingAuthValue()
if(typeof wjt!=="undefined"&&wjt!==null&&wjt!==""){callback(wjt);}
else{callback(null,'JWT error');}}catch(e){}}
function lpRetailChatAuth(callback){var wjt="";try{var lpCht=readTCCookieInfo("LP_CHAT_IN_PROGRESS");if(readTCCookieInfo("lp_jwt_wln")!=null&&readTCCookieInfo("lp_jwt_wln")!=""&&lpCht!=null&&lpCht=='Y')
{wjt=readTCCookieInfo("lp_jwt_wln");}else{wjt=window.sessionStorage.getItem("wjt");}}catch(rerr){wjt=window.sessionStorage.getItem("wjt");console.log("LPCB error"+rerr);}
try{pushingAuthValue()
if(typeof wjt!=="undefined"&&wjt!==null&&wjt!==""){callback(wjt);}
else{callback(null,'JWT error');}}catch(e){}}
var checkHideChatTimer=1000;function checkHideChatButtonTimer(){try{if(checkHideChatTimer>10000){checkHideChatTimer+=checkHideChatTimer;}else if(checkHideChatTimer<=10000){checkHideChatTimer=checkHideChatTimer+1000;}
if(checkHideChatTimer>60000){return;}else if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null&&checkHideChatTimer<60000){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()){try{try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 7")}
hideLPChatButton();}catch(erx){console.log("check HICB"+erx);}
setTimeout(checkHideChatButtonTimer,checkHideChatTimer);}}}catch(err){console.log("err"+err);}}
var checkHideChatTimer2=1000;function hideLPWithTimer(){try{if(checkHideChatTimer2>10000){checkHideChatTimer2+=checkHideChatTimer2;}else if(checkHideChatTimer2<=10000){checkHideChatTimer2=checkHideChatTimer2+1000;}
if(checkHideChatTimer2>60000){return;}else{try{hideLPChatButton();}catch(cberr){console.log("HideCB"+cberr);}
setTimeout(hideLPWithTimer,checkHideChatTimer2);}}catch(hideerr){console.log("err"+hiderr);}}
function onWindowJWTMessage(event){try{var data=event.data;if(data.isAuthToken){var wjt1=data.token;window.sessionStorage.setItem("wjt",wjt1);console.log("*** after in windowjwtmessage response from ask vz *** "+new Date().toString()+" WJT received from session storage : "+window.sessionStorage.getItem("wjt"));try{if(window.location.host.split('.').length>0&&(window.location.host.split('.')[0].toLowerCase()=="www"||window.location.host.split('.')[0].toLowerCase().indexOf('vzwqa')!=-1))
{document.cookie="lp_jwt_wireless=Y;path=/;domain=verizon.com";document.cookie="lp_jwt_wireless=Y;path=/;domain=verizonwireless.com";}}catch(e){console.log("loggedin MDN changes 8");}}}catch(e){}
}
function checkLPChatAvailability(lppriority,lpwaittime,lpunassignedconv){var checkLPAvailable=true;try{if((lppriority=="P4"||lppriority=="P5")&&lpwaittime>900001&&lpunassignedconv<400){return true;}else if(lpwaittime>900001&&lpunassignedconv<200){return true;}else if(lppriority=="P1"&&(lpwaittime>240000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority=="P2"&&(lpwaittime>360000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority=="P3"&&(lpwaittime>480000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority=="P4"&&(lpwaittime>600000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority=="P5"&&(lpwaittime>900000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority==""&&(lpwaittime>900000||lpunassignedconv>400)){checkLPAvailable=false;}}
catch(queueHealthAPIerror){console.log("queueHealthAPIerror "+queueHealthAPIerror);}
return checkLPAvailable;}
function _createForOfIteratorHelper(o,allowArrayLike){var it;if(typeof Symbol==="undefined"||o[Symbol.iterator]==null){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}
var normalCompletion=true,didErr=false,err;return{s:function s(){it=o[Symbol.iterator]();},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}
function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}
function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}
var normalCompletion=true,didErr=false,err;return{s:function s(){it=o[Symbol.iterator]();},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}
function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}
function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i0){var textNode=lpTag.external.custEngagement._findNode(lpTag.external.custEngagement.placeholder,mutation.target);if(textNode)textNode.parentNode.replaceChild(document.createTextNode(error),textNode);}}}catch(err){_iterator.e(err);}finally{_iterator.f();}});transcriptAreas.forEach(function(area){transcriptObserver.observe(area,{childList:true});});},_getErrorText:function _getErrorText(){return msg;},_findNode:function _findNode(text,currentNode){if(currentNode.nodeType===3&¤tNode.textContent.includes(text)){return currentNode;}else{for(var i=0;i5){aSub=vzwDL.authentication.mdn;}
else if(typeof vzwDL.authentication.visHashedMdn!='undefined'&&vzwDL.authentication.visHashedMdn!=null&&vzwDL.authentication.visHashedMdn!=""&&vzwDL.authentication.visHashedMdn.length>5){aSub=vzwDL.authentication.visHashedMdn;}}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id!=""){aSub=vzdl.user.id;}}
catch(e){}
callback({iss:"verizon.com",acr:"loa1",sub:aSub,});}}catch(e){}
lpTag.section.push("Auth:true");var section=(window.lpTag&&window.lpTag.section)||[];if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}}
catch(e){}}
function changeLPJWTCookieValue(){try{var lpJwtCookieFlag=false;if(isUserAuthenticated()){lpJwtCookieFlag=false;}else{lpJwtCookieFlag=true;}
if(lpJwtCookieFlag){document.cookie="lp_jwt_wireless=N;path=/;domain=verizon.com";document.cookie="lp_jwt_wireless=N;path=/;domain=verizonwireless.com";}}catch(e){console.log("loggedin MDN changes 9")}}
function vzdlSiteCatalyst(aeventId,pageName,aeventName,aAction,customerId,issueId,agentId){try{if(lpBauFlow==false){return;}
if(typeof agentId=="undefined"||agentId==null){agentId="";}
if(typeof issueId=="undefined"||issueId==null){issueId="";}
if(typeof issueId!="undefined"&&issueId!=null&&issueId!=""){issueId="vzw-"+issueId;}
if(typeof aeventId!='undefined'&&aeventId!=null){if(aeventId=="event236"){issueId="";}}
omniData={}
var omniPageName="LpChatWindow";var omniEventId="event236";if(typeof pageName!="undefined"&&pageName!=null){omniPageName=pageName;}
if(typeof agentId!="undefined"&&agentId!=null){omniData.txn={agent:agentId};}
if(typeof aeventId!="undefined"&&aeventId!=null){omniEventId=aeventId;}
if(typeof issueId!="undefined"&&issueId!=null){omniData.user={chatId:issueId};}
if(typeof vztag!="undefined"&&vztag!=null&&typeof vztag.api!="undefined"&&vztag.api!=null&&typeof vztag.api.dispatch!="undefined"&&vztag.api.dispatch!=null&&typeof vztag.api.dispatch=="function"){vztag.api.dispatch("sendData",{name:"set chat id",detail:omniPageName,event:omniEventId,data:omniData})
}}
catch(e){}}
function nbxReporting(aeventId,aeventName,soiId,conversationId){try{if(lpBauFlow){return;}
if(typeof aeventId=="undefined"||aeventId==null){aeventId="";}
if(typeof soiId=="undefined"||soiId==null){soiId="";}
if(typeof conversationId=="undefined"||conversationId==null){conversationId="";}
if(typeof aeventName=="undefined"||aeventName==null){aeventName="";}
if(typeof vztag!="undefined"&&vztag!=null&&typeof vztag.api!="undefined"&&vztag.api!=null&&typeof vztag.api.dispatch!="undefined"&&vztag.api.dispatch!=null&&typeof vztag.api.dispatch=="function"){if(aeventName=="NBXClicked"){vztag.api.dispatch("fragment",{name:"chat: user sent message"+soiId,event:aeventId});}
else{vztag.api.dispatch("fragment",{name:"LP targeted "+soiId,event:aeventId});}
vztag.api.dispatch("sendData",{name:"LP data",data:{user:{chatId:conversationId},target:{engagement:{id:soiId},}}});}}
catch(e){}}
function sendCustomEventChat(evt){try{if(document.createEvent&&document.body.dispatchEvent){var event=document.createEvent('Event');event.initEvent(evt,true,true);document.body.dispatchEvent(event);}else if(window.CustomEvent&&document.body.dispatchEvent){var event=new CustomEvent(evt,{bubbles:true,cancelable:true});document.body.dispatchEvent(event);}}
catch(e){}}
function isUserAuthenticated(){var isAuth=false;try{if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.authentication!="undefined"&&vzwDL.authentication!=null&&vzwDL.authentication!=""&&typeof vzwDL.authentication.visHashedMdn!="undefined"&&vzwDL.authentication.visHashedMdn!=null&&vzwDL.authentication.visHashedMdn!="")
{isAuth=true;}
else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id!="")
{isAuth=true;}
else if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!="undefined"&&vzwDL.page!=null&&vzwDL.page!=""&&typeof vzwDL.page.authStatus!="undefined"&&vzwDL.page.authStatus!=null&&vzwDL.page.authStatus!=""&&vzwDL.page.authStatus.toLowerCase()=="authenticated")
{isAuth=true;}
else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.authStatus!="undefined"&&vzdl.user.authStatus!=null&&vzdl.user.authStatus!=""&&(vzdl.user.authStatus.toLowerCase()=="authenticated"||vzdl.user.authStatus.toLowerCase().replace(/ +/g,"")=="loggedin"))
{isAuth=true;}}
catch(e){}
return isAuth;}
function getLpSiteId(){var lpChatSiteId="23979466";try{if(window.location.hostname.toLowerCase().indexOf("vzwqa")!=-1||window.location.hostname.toLowerCase().indexOf("accessmgrqa")!=-1)
{lpChatSiteId="87604225";}
return lpChatSiteId;}catch(e)
{return lpChatSiteId;}}
var isNBXFunctionCalled=false;var holdOutGroupSelectionCount=0;var lpBauFlow=true;var lpNBXObject={};var sampleSOEObject={"propositionId":["plp_02","plp_04","plp_06"],"LC_Available":["True","True","True"],"Priority":["P2","P2","P2"],"Embedded":"Y","Sticky":"Y","Overlay":"Y","Overlay_TimeDelay":"25","Page_Location":"Gridwall","Sub_Page_Type":"","intent_Flow":"","Customer_Type":"NC","Authentication":"N","Language":"English","SOI_Engagement_ids":[{"sticky_soi_id":"500007484","embedded_soi_id":"500007360","overlay_soi_id":"500007486"}],"Other":""}
function launchLiveChatFromNBX(lpButtonType){console.log(lpButtonType,"LP Button type");try{if(typeof lpNBXObject!="undefined"&&lpNBXObject!=null&&Object.keys(lpNBXObject).length!=0){var lpNbxSoids={};if(Object.keys(lpNBXLpSoiEngagementId).length!=0){lpNbxSoids=lpNBXLpSoiEngagementId;}
if(typeof lpButtonType!="undefined"&&lpButtonType!=null&&lpButtonType!=""&&lpButtonType=="embedded"){if(typeof lpNBXObject.Embedded!="undefined"&&lpNBXObject.Embedded!=null&&lpNBXObject.Embedded=="Y"){var lpEmbeddedSoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.embedded_soi_id!="undefined"&&lpNbxSoids.embedded_soi_id!=null&&lpNbxSoids.embedded_soi_id!=""){lpEmbeddedSoiId==lpNbxSoids.embedded_soi_id;}
nbxReporting("event247","NBXClicked",lpEmbeddedSoiId,"")}}
if(typeof lpButtonType!="undefined"&&lpButtonType!=null&&lpButtonType!=""&&lpButtonType=="sticky"){if(typeof lpNBXObject.Sticky!="undefined"&&lpNBXObject.Sticky!=null&&lpNBXObject.Sticky=="Y"){var lpStickySoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.sticky_soi_id!="undefined"&&lpNbxSoids.sticky_soi_id!=null&&lpNbxSoids.sticky_soi_id!=""){lpStickySoiId==lpNbxSoids.sticky_soi_id;}
nbxReporting("event248","NBXClicked",lpStickySoiId,"")}}}
if(typeof coLpEngagementID!="undefined"&&coLpEngagementID!=null&&coLpEngagementID!=""){lpTag.taglets.rendererStub.click(coLpEngagementID);}}
catch(e){}}
function triggerLiveChatfromNBXResponse(lpNBXParams){try{return;lpNBXObject=lpNBXParams;isNBXFunctionCalled=true;setNBXLC_Available();setNBXLpPriority();setNBXLpSoiEngagementID();console.log(lpNBXParams,"LP NBX params");if(typeof lpNBXObject!="undefined"&&lpNBXObject!=null&&Object.keys(lpNBXObject).length!=0){if(typeof lpNBXObject.propositionId!="undefined"&&lpNBXObject.propositionId!=null&&lpNBXObject.propositionId.length>0){if(lpNBXObject.propositionId.indexOf("P_NoNBA")!=-1){lpBauFlow=true;}
else{lpBauFlow=false;}}
var lpNbxSoids={};if(Object.keys(lpNBXLpSoiEngagementId).length!=0){lpNbxSoids=lpNBXLpSoiEngagementId;}
if(typeof lpNBXObject.Embedded!="undefined"&&lpNBXObject.Embedded!=null&&lpNBXObject.Embedded=="Y"){var lpEmbeddedSoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.embedded_soi_id!="undefined"&&lpNbxSoids.embedded_soi_id!=null&&lpNbxSoids.embedded_soi_id!=""){lpEmbeddedSoiId==lpNbxSoids.embedded_soi_id;}
nbxReporting("event241","NBXTargeted",lpEmbeddedSoiId,"")}
if(typeof lpNBXObject.Sticky!="undefined"&&lpNBXObject.Sticky!=null&&lpNBXObject.Sticky=="Y"){var lpStickySoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.sticky_soi_id!="undefined"&&lpNbxSoids.sticky_soi_id!=null&&lpNbxSoids.sticky_soi_id!=""){lpStickySoiId==lpNbxSoids.sticky_soi_id;}
nbxReporting("event242","NBXTargeted",lpStickySoiId,"")}
if(typeof lpNBXObject.Overlay!="undefined"&&lpNBXObject.Overlay!=null&&lpNBXObject.Overlay=="Y"){var lpOverlaySoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.overlay_soi_id!="undefined"&&lpNbxSoids.overlay_soi_id!=null&&lpNbxSoids.overlay_soi_id!=""){lpOverlaySoiId==lpNbxSoids.overlay_soi_id;}
nbxReporting("event243","NBXTargeted",lpOverlaySoiId,"")}}}
catch(e){}}
function lpNbxEnableProactiveChat(lpNBXObject){try{if(typeof lpNBXObject.Overlay!="undefined"&&typeof lpNBXObject.Overlay!=null&&lpNBXObject.Overlay=="Y"){var lpStickyButtonDom=document.getElementById("vzChatWithUs");if((VZ_Chat.getCookie("proActiveDisable"+lpNBXLpPriority)=="true"))
{return false;}
if(typeof lpNBXObject.Overlay!="undefined"&&lpNBXObject.Overlay!=null&&lpNBXObject.Overlay=="Y"){var lpNbxSoids={};if(Object.keys(lpNBXLpSoiEngagementId).length!=0){lpNbxSoids=lpNBXLpSoiEngagementId;}
var lpOverlaySoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.overlay_soi_id!="undefined"&&lpNbxSoids.overlay_soi_id!=null&&lpNbxSoids.overlay_soi_id!=""){lpOverlaySoiId==lpNbxSoids.overlay_soi_id;}
nbxReporting("event249","NBXClicked",lpOverlaySoiId,"")}
if(typeof lpStickyButtonDom!="undefined"&&lpStickyButtonDom!=null){if(lpNBXObject.Overlay_TimeDelay!=0){var lpProctiveChatTimeDelay=lpNBXObject.Overlay_TimeDelay*1000;setTimeout(function(){lpStickyButtonDom.click();},lpProctiveChatTimeDelay);}
else{lpStickyButtonDom.click();}}}}
catch(e){}}
function nbxInit(){console.log("called in nbx Init");var RPSflow="";try{RPSflow=window.isRPSFlow;}catch(errrrr){}
try{if(VZ_Chat.getCookie("lpFdvLockChatInProgress")!=null&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=""&&VZ_Chat.getCookie("lpFdvLockChatInProgress")=="true"){if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()&&typeof EchannelVera.lpUtilsService.removeUnifiedChatButton!="undefined"&&EchannelVera.lpUtilsService.removeUnifiedChatButton!=null){EchannelVera.lpUtilsService.removeUnifiedChatButton();}}}}catch(err){}
try{if((window.sessionStorage.getItem("UNIFIED_CHAT_INPROGRESS")=="true")&&(VZ_Chat.getCookie('UNIFIED_CHAT_INPROGRESS')!=null&&VZ_Chat.getCookie('UNIFIED_CHAT_INPROGRESS').toLowerCase()=="open")){isLpTagBlocked=true;return;}
if(RPSflow=="true"||RPSflow==true){return;}
if(document.referrer.indexOf("configuration")!=-1&&document.URL.indexOf("trade-in")!=-1){return;}}catch(tagEr){}
if(typeof console==="undefined"){window.console={};console.log=function(){};console.error=function(){};}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};}
try{if(VZ_Chat.getCookie("isLpFirstMessage")==null||VZ_Chat.getCookie("isLpFirstMessage")==""){document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";}}catch(e){}
if(document.readyState==="interactive"||document.readyState==="complete"){if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 3")}
downloadChatTag();coInitVars();}}else{document.addownloadChatTagdEventListener("DOMContentLoaded",function(){if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 5");}
downloadChatTag();coInitVars();}});}}
function coInitVars(){try{coBindDL();coScrub();coBuild();}
catch(e){}}
function coBuild(){coBuildCartInfo(getWirelessDL());coBuildConvVars()};function coScrub(){coSendSectionData();coSendPageInfo();if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.authentication)&&checkLPValidVariable(vzwDL.authentication.visHashedMdn)&&checkLPValidVariable(vzwDL.authentication.accountNumber)&&!(vzwDL.authentication.prepayInd=="Y"||vzwDL.authentication.prepayInd=="1")){coSendCustData();}
else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id&&typeof vzdl.user.accountLast2!="undefined"&&vzdl.user.accountLast2!=null&&vzdl.user.accountLast2&&!(vzdl.user.accountType=="Y"||vzdl.user.accountType=="1")){coSendCustData();}
var errorData="";try{errorData=vzdl.error;}catch(err){}
if(errorData){if(vzdl.error.code!=undefined&&vzdl.error.code!=null&&vzdl.error.code!=""){var errorPageCode;var errorPageMessage;try{errorPageCode=vzdl.error.code.split("|")[0];errorPageMessage=vzdl.error.code.split("|")[1];}catch(ERR){}
coSendErrorMessage(errorPageCode,errorPageMessage);}}};function coBindDL(){if(typeof vzwDL==="undefined"&&typeof vzdl==="undefined"){return;}
if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.chat)){chatVars=vzwDL.page.chat;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.user)&&checkLPValidVariable(vzdl.user.chatId)){chatVars=vzdl.user.chatId;}
isReady=true;}
var cust_type="";function coSendSectionData(){try{var lpTag=window.lpTag;lpTag.sdes=lpTag.sdes||[];lpTag.section=["wireless"];lpTag.section.push("PEGA");if(lpNBXObject.Authentication.toLowerCase()=="y")
{cust_type="EX";lpTag.section.push("ex");lpTag.section.push("auth:true");}else{cust_type="NC";lpTag.section.push("nc");lpTag.section.push("auth:false");}
if(lpNBXLpPriority!=""){lpTag.section.push(lpNBXLpPriority);}}
catch(e){}
try{var channelOrchestrationIndicator="";if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.throttleList!="undefined"&&vzdl.page.throttleList!=null&&vzdl.page.throttleList!=""){channelOrchestrationIndicator=vzdl.page.throttleList;}
if(channelOrchestrationIndicator!=""&&(channelOrchestrationIndicator.indexOf('|ShowProactiveLiveChat|')!=-1||channelOrchestrationIndicator.indexOf('|ProActiveChat|')!=-1)){lpTag.section.push('ChannelOrchestrationExperience');}
if((typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!="undefined"&&vzwDL.page!=null&&vzwDL.page!=""&&typeof vzwDL.page.fireProactiveChat!="undefined"&&vzwDL.page.fireProactiveChat!=null&&vzwDL.page.fireProactiveChat!=""&&vzwDL.page.fireProactiveChat.toLowerCase()=="y")||(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.fireProactiveChat!="undefined"&&vzdl.page.fireProactiveChat!=null&&vzdl.page.fireProactiveChat!=""&&vzdl.page.fireProactiveChat.toLowerCase()=="y")){if(typeof lpTag!='undefined'&&lpTag!=null&&Object.keys(lpTag).length!=0){if(lpTag&&lpTag.section&&lpTag.section.indexOf('CMP:5GHomeQR')<=-1){var section=(window.lpTag&&window.lpTag.section)||[];lpTag.section.push('CMP:5GHomeQR');}}}}catch(e){};coLpBindEvents();coSendBrowsingInfo();}
function coSendPageInfo(){try{lpTag.sdes=window.lpTag.sdes||[];lpTag.sdes.push({type:"lead",lead:{topic:window.document.URL,value:-1,leadId:"Page View",},});if(Object.keys(lpNBXLpSoiEngagementId).length!=0){var coLpSalesSearchInfo={type:"searchInfo",keywords:["type:PEGA","customer_type:"+cust_type,"page_name:"+lpNBXObject.Page_Location,"embedded_soi_id:"+lpNBXLpSoiEngagementId.embedded_soi_id,"sticky_soi_id:"+lpNBXLpSoiEngagementId.sticky_soi_id,"overlay_soi_id:"+lpNBXLpSoiEngagementId.overlay_soi_id,"sub_page_type:"+lpNBXObject.Sub_Page_Type,"priority:"+lpNBXLpPriority,"other:"+lpNBXObject.Other]}}
else{var coLpSalesSearchInfo={type:"searchInfo",keywords:["type:PEGA","customer_type:"+cust_type,"page_name:"+lpNBXObject.Page_Location,"sub_page_type:"+lpNBXObject.Sub_Page_Type,"priority:"+lpNBXLpPriority,"other:"+lpNBXObject.Other]}}
lpTag.sdes.push(coLpSalesSearchInfo);}catch(e){}}
function coSendBrowsingInfo(){try{lpTag.section.push("VZW");if(document.referrer.toLowerCase().indexOf("5g")!==-1){lpTag.section.push("5g");}else if(window.document.URL.split("?")[0].toLowerCase().indexOf("5g")!=-1){lpTag.section.push("5g");}
if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.section2)){lpTag.section.push(VZ_Chat.replaceAll(vzwDL.page.section2));}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&typeof vzdl.page.siteSection!="undefined"&&vzdl.page.siteSection!=null&&vzdl.page.siteSection!=""){lpTag.section.push(VZ_Chat.replaceAll(vzdl.page.siteSection));}
if(window.location.hostname.toLowerCase().indexOf("es-vzwqa")!=-1){lpTag.section.push("spanish");}
else{if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.language)){lpTag.section.push(vzwDL.page.language);}
else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.page)&&checkLPValidVariable(vzdl.page.language)){lpTag.section.push(vzdl.page.language);}}
var flowData="";try{if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.page)&&checkLPValidVariable(vzdl.page.flow)){flowData=VZ_Chat.replaceAll(vzdl.page.flow);}}catch(e){}
if(typeof flowData!="undefined"&&flowData!=null&&flowData!=""){lpTag.section.push(flowData);}else if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.flowName)){lpTag.section.push(VZ_Chat.replaceAll(vzwDL.page.flowName));}
if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.mlsEXP)){lpTag.section.push(VZ_Chat.replaceAll(vzwDL.page.mlsEXP));}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&typeof vzdl.page.throttle!="undefined"&&vzdl.page.throttle!=null&&vzdl.page.throttle!=""){lpTag.section.push(VZ_Chat.replaceAll(vzdl.page.throttle));}
var errorValue="";try{errorValue=vzdl.error.code;}catch(errrr){}
try{if(vzdl.error.code!=undefined&&vzdl.error.code!=null&&vzdl.error.code!=""){var errorPageCode;var errorPageMessage;var extractSOIScore=null;var lpErrorProactiveChatIndicator="";try{errorPageCode=vzdl.error.code.split("|")[0];errorPageMessage=vzdl.error.code.split("|")[1];if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.error!='undefined'&&vzdl.error!=null&&vzdl.error.soiResponse!=null){extractSOIScore=extractSOIScoreFromJSON(vzdl.error.soiResponse);if(extractSOIScore!=null){extractSOIScore=parseFloat(extractSOIScore);}}
if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.error!='undefined'&&vzdl.error!=null&&typeof vzdl.error.proactiveChatIndicator!='undefined'&&vzdl.error.proactiveChatIndicator!=null&&vzdl.error.proactiveChatIndicator!=""){lpErrorProactiveChatIndicator=vzdl.error.proactiveChatIndicator;}
if(lpErrorProactiveChatIndicator.toLowerCase()=="y"||((extractSOIScore==null||extractSOIScore>0.135||isNaN(extractSOIScore))&&(typeof errorPageMessage!='undefined'&&errorPageMessage!=null&&errorPageMessage.trim()!=""))){lpTag.section.push("Error:true");}
if(vzdl!=null&&vzdl.error!=null&&typeof vzdl.error.proactiveChatCustomMSG!='undefined'&&vzdl.error.proactiveChatCustomMSG!=''&&vzdl.error.proactiveChatCustomMSG!=null){customEngagement(proactiveChatCustomMSG);}}catch(ERR){console.log("extractSOIScore error "+ERR);}}}catch(e){};var vjwtAvailable=window.sessionStorage.getItem("wjt");if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.authentication!="undefined"&&vzwDL.authentication!=null&&vzwDL.authentication!=""&&vzwDL.authentication.mdn&&typeof vjwtAvailable!="undefined"&&vjwtAvailable!=null&&vjwtAvailable!=""){lpTag.section.push("Auth:true");}else if(isUserAuthenticated()&&typeof vjwtAvailable!="undefined"&&vjwtAvailable!=null&&vjwtAvailable!=""){lpTag.section.push("Auth:true");}
if(window.document.URL.indexOf("tlogin.verizonwireless.com")!=-1||window.document.URL.indexOf("login.verizonwireless.com")!=-1||window.document.URL.indexOf("login.verizon.com")!=-1){lpTag.section.push("defaultexclude");}}
catch(e){}}
var coLpEngagementID="";function coLpBindEvents(){window.lpTag.events.bind("RENDERER_STUB","AFTER_CREATE_ENGAGEMENT_INSTANCE",function(data){console.log(data);coLpEngagementID=data.eng.engData.engagementId;if(lpNBXLcAvailable=="Y"&&!lpBauFlow){displayLPChatButton();}})}
function loadLpLibrary(){(window.lpTag=window.lpTag||{}),"undefined"==typeof window.lpTag._tagCount?((window.lpTag={wl:lpTag.wl||null,scp:lpTag.scp||null,site:getLpSiteId(),section:lpTag.section||"",tagletSection:lpTag.tagletSection||null,autoStart:lpTag.autoStart!==!1,ovr:lpTag.ovr||{},_v:"1.10.0",_tagCount:1,protocol:"https:",events:{bind:function(t,e,i){lpTag.defer(function(){lpTag.events.bind(t,e,i);},0);},trigger:function(t,e,i){lpTag.defer(function(){lpTag.events.trigger(t,e,i);},1);},},defer:function(t,e){0===e?((this._defB=this._defB||[]),this._defB.push(t)):1===e?((this._defT=this._defT||[]),this._defT.push(t)):((this._defL=this._defL||[]),this._defL.push(t));},load:function(t,e,i){var n=this;setTimeout(function(){n._load(t,e,i);},0);},_load:function(t,e,i){var n=t;t||(n=this.protocol+
"//"+
(this.ovr&&this.ovr.domain?this.ovr.domain:"lptag.liveperson.net")+
"/tag/tag.js?site="+
this.site);var o=document.createElement("script");o.setAttribute("charset",e?e:"UTF-8"),i&&o.setAttribute("id",i),o.setAttribute("src",n),document.getElementsByTagName("head").item(0).appendChild(o);},init:function(){(this._timing=this._timing||{}),(this._timing.start=new Date().getTime());var t=this;window.attachEvent?window.attachEvent("onload",function(){t._domReady("domReady");}):(window.addEventListener("DOMContentLoaded",function(){t._domReady("contReady");},!1),window.addEventListener("load",function(){t._domReady("domReady");},!1)),"undefined"===typeof window._lptStop&&this.load();},start:function(){this.autoStart=!0;},_domReady:function(t){this.isDom||((this.isDom=!0),this.events.trigger("LPT","DOM_READY",{t:t,})),(this._timing[t]=new Date().getTime());},vars:lpTag.vars||[],dbs:lpTag.dbs||[],ctn:lpTag.ctn||[],sdes:lpTag.sdes||[],hooks:lpTag.hooks||[],identities:lpTag.identities||[],ev:lpTag.ev||[],}),lpTag.init()):(window.lpTag._tagCount+=1);lpTag.autoStart=false;}
function coSendCustData(){try{if(typeof lpTag!='undefined'&&lpTag!=null){var lpAuthenticationCustType="";if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.authentication.custType!="undefined"&&window.vzwDL.authentication!=null&&typeof window.vzwDL.authentication.custType!="undefined"&&window.vzwDL.authentication.custType!=null&&window.vzwDL.authentication.custType!=""){lpAuthenticationCustType=window.vzwDL.authentication.custType;}
else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&typeof vzdl.user.customerType!="undefined"&&vzdl.user.customerType!=null&&vzdl.user.customerType!=""){lpAuthenticationCustType=vzdl.user.customerType;}
lpTag.sdes=window.lpTag.sdes||[];var lp_gbl_id=VZ_Chat.getCookie("GLOBALID");var lp_vzw_session_id;if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.sessionId!="undefined"&&window.vzwDL.page.sessionId!=null&&window.vzwDL.page.sessionId!=""){lp_vzw_session_id=window.vzwDL.page.sessionId;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.channelSession!="undefined"&&vzdl.page.channelSession!=null&&vzdl.page.channelSession!=""){lp_vzw_session_id=vzdl.page.channelSession;}else if(window.sessionStorage.getItem("SESSION_ID")!=undefined&&window.sessionStorage.getItem("SESSION_ID")!=null&&window.sessionStorage.getItem("SESSION_ID")!=""){lp_vzw_session_id=window.sessionStorage.getItem("SESSION_ID");}else if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.session!="undefined"&&window.vzwDL.page.session!=null&&window.vzwDL.page.session!=""){lp_vzw_session_id=window.vzwDL.page.session;}
if(typeof lp_vzw_session_id!='undefined'&&typeof lp_gbl_id!='undefined'&&lp_vzw_session_id!=null&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeZipCode:lp_gbl_id,storeNumber:lp_vzw_session_id}});}else if(typeof lp_vzw_session_id!='undefined'&&lp_vzw_session_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeNumber:lp_vzw_session_id}});}else if(typeof lp_gbl_id!='undefined'&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeZipCode:lp_gbl_id}});}}}catch(e){console.log("Sending global session id and vzw_session_id failed "+e);}}
function coBuildCartInfo(){try{var lpTag=window.lpTag;var lpCartData={};if(typeof vzwDL!='undefined'&&vzwDL!==null&&typeof vzwDL.cart!='undefined'&&vzwDL.cart!=null){lpCartData=vzwDL.cart;}
else if(typeof vzdl!='undefined'&&vzdl!==null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.product!='undefined'&&vzdl.txn.product!=null){lpCartData=vzdl.txn.product;}
if(Object.keys(lpCartData).length>0){lpTag.sdes=lpTag.sdes||[];var lpCartItems=[];if(typeof lpCartData.items!="undefined"&&lpCartData.items!=null){lpCartItems=lpCartData.items;}
else if(typeof lpCartData.current!="undefined"&&lpCartData.current!=null){lpCartItems=lpCartData.current;}
var sdeCart={type:"cart",currency:"USD",numItems:lpCartItems.length,products:[],};for(var i=0;i0){lpTag.sdes=lpTag.sdes||[];var lpPurchaseItems=[];if(typeof lpPurchaseData.items!="undefined"&&lpPurchaseData.items!=null){lpPurchaseItems=lpPurchaseData.items;}
else if(typeof lpPurchaseData.current!="undefined"&&lpPurchaseData.current!=null){lpPurchaseItems=lpPurchaseData.current;}
lpTag.sdes=window.lpTag.sdes||[];var lpOrderID="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderNumber!='undefined'&&vzwDL.purchase.orderNumber!=null&&vzwDL.purchase.orderNumber!=""){lpOrderID=vzwDL.purchase.orderNumber;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.id!='undefined'&&vzdl.txn.id!=null&&vzdl.txn.id!=""){lpOrderID=vzdl.txn.id;}
var lp_order_total=0;try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderTotal!='undefined'&&vzwDL.purchase.orderTotal!=null&&vzwDL.purchase.orderTotal!=""){try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}else if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.purchase)&&checkLPValidVariable(vzwDL.purchase.orderTotal)){try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.total!='undefined'&&vzdl.txn.total!=null&&vzdl.txn.total!=""){try{lp_order_total=parseFloat(vzdl.txn.total);}catch(e){}}}
catch(e){}
var lpOrderNumber="";if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.purchase)&&checkLPValidVariable(vzwDL.purchase.orderNumber)){lpOrderNumber=vzwDL.purchase.orderNumber;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.txn)&&checkLPValidVariable(vzdl.txn.id)){lpOrderNumber=vzdl.txn.id;}
var sdePurchases={type:"purchase",currency:"USD",orderId:lpOrderNumber,total:lp_order_total,cart:{products:[],},};for(var j=0;j9){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedinMDN changes")}
downloadChatTag();VZ_Chat.initVars(globalOptionsInit.scrubber,globalOptionsInit.builder);}
else{lpJwtCount++;setTimeout(timerForDelayInJWT,1000);}}catch(e){};}
function downloadChatTag(){try{if(window.parent!=window){return;}
if(isCONBCHEnabled)
{return;}
var lpFdvLockcookie=VZ_Chat.getCookie("lpFdvLockcookie");if(!(VZ_Chat.getCookie("lpFdvLockChatInProgress")=="true"||VZ_Chat.getCookie("lpFdvLockChatInProgress")==true)){if(((typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.authentication!='undefined'&&window.vzwDL.authentication!=null&&typeof window.vzwDL.authentication.fType!='undefined'&&window.vzwDL.authentication.fType!=null))){lpFtype=window.vzwDL.authentication.fType;}
else if((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.authentication!='undefined'&&window.vzdl.authentication!=null&&typeof window.vzdl.authentication.fType!='undefined'&&window.vzdl.authentication.fType!=null)){lpFtype=window.vzdl.authentication.fType;}
else if(((typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.page!='undefined'&&window.vzwDL.page!=null&&typeof window.vzwDL.page.fraudIndicator!='undefined'&&window.vzwDL.page.fraudIndicator!=null))){lpFtype=window.vzwDL.page.fraudIndicator;}
else if(((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.page!='undefined'&&window.vzdl.page!=null&&typeof window.vzdl.page.fraudIndicator!='undefined'&&window.vzdl.page.fraudIndicator!=null))){lpFtype=window.vzdl.page.fraudIndicator;}
if(lpFtype!=''&&lpFtype.toUpperCase()!="R"){return;}
else if(lpFdvLockcookie!=undefined&&lpFdvLockcookie!=null&&lpFdvLockcookie!=""&&lpFdvLockcookie.toUpperCase()!="R"){return;}
if((window.location.href.indexOf('/dtd/shop')!=-1)||(window.location.href.indexOf('/vfw/dtd/')!=-1)||(window.location.href.indexOf('/vfw/cust/dtd/')!=-1)){return;}
if((window.location.href.indexOf('/vfw/cust/swap/getDeviceDetails')!=-1)||(window.location.href.indexOf('/vfw/cust/swap/getCartDetails')!=-1)||(window.location.href.indexOf('/vfw/cust/swap/reviewOrder')!=-1)||(window.location.href.indexOf('/vfw/cust/swap/orderConfirmation')!=-1)){return;}
if((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.page!='undefined'&&window.vzdl.page!=null&&typeof window.vzdl.page.vendorPartnerId!='undefined'&&window.vzdl.page.vendorPartnerId!=null&&window.vzdl.page.vendorPartnerId!="")||(typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.page!='undefined'&&window.vzwDL.page!=null&&typeof window.vzwDL.page.vendorPartnerId!='undefined'&&window.vzwDL.page.vendorPartnerId!=null&&window.vzwDL.page.vendorPartnerId!="")){return;}}}
catch(e){}
(window.lpTag=window.lpTag||{}),"undefined"==typeof window.lpTag._tagCount?((window.lpTag={wl:lpTag.wl||null,scp:lpTag.scp||null,site:window.location.hostname.toLowerCase().indexOf("vzwqa")!=-1?"87604225":"23979466"||"23979466",section:lpTag.section||"",tagletSection:lpTag.tagletSection||null,autoStart:lpTag.autoStart!==!1,ovr:lpTag.ovr||{},_v:"1.10.0",_tagCount:1,protocol:"https:",events:{bind:function(t,e,i){lpTag.defer(function(){lpTag.events.bind(t,e,i);},0);},trigger:function(t,e,i){lpTag.defer(function(){lpTag.events.trigger(t,e,i);},1);},},defer:function(t,e){0===e?((this._defB=this._defB||[]),this._defB.push(t)):1===e?((this._defT=this._defT||[]),this._defT.push(t)):((this._defL=this._defL||[]),this._defL.push(t));},load:function(t,e,i){var n=this;setTimeout(function(){n._load(t,e,i);},0);},_load:function(t,e,i){var n=t;t||(n=this.protocol+
"//"+
(this.ovr&&this.ovr.domain?this.ovr.domain:"lptag.liveperson.net")+
"/tag/tag.js?site="+
this.site);var o=document.createElement("script");o.setAttribute("charset",e?e:"UTF-8"),i&&o.setAttribute("id",i),o.setAttribute("src",n),document.getElementsByTagName("head").item(0).appendChild(o);},init:function(){(this._timing=this._timing||{}),(this._timing.start=new Date().getTime());var t=this;window.attachEvent?window.attachEvent("onload",function(){t._domReady("domReady");}):(window.addEventListener("DOMContentLoaded",function(){t._domReady("contReady");},!1),window.addEventListener("load",function(){t._domReady("domReady");},!1)),"undefined"===typeof window._lptStop&&this.load();},start:function(){this.autoStart=!0;},_domReady:function(t){this.isDom||((this.isDom=!0),this.events.trigger("LPT","DOM_READY",{t:t,})),(this._timing[t]=new Date().getTime());},vars:lpTag.vars||[],dbs:lpTag.dbs||[],ctn:lpTag.ctn||[],sdes:lpTag.sdes||[],hooks:lpTag.hooks||[],identities:lpTag.identities||[],ev:lpTag.ev||[],}),lpTag.init()):(window.lpTag._tagCount+=1);var vjwtAvailable=window.sessionStorage.getItem("wjt");if(isUserAuthenticated()&&vjwtAvailable!=undefined&&vjwtAvailable!=null&&vjwtAvailable!=""){try{lpTag.identities=[];lpTag.identities.push(identityFn);function identityFn(callback){var aSub=new Date().getTime()+""+parseInt(Math.random()*1000);try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.authentication!='undefined'&&vzwDL.authentication!=null){if(typeof vzwDL.authentication.mdn!='undefined'&&vzwDL.authentication.mdn!=null&&vzwDL.authentication.mdn!=""&&vzwDL.authentication.mdn.length>5){aSub=vzwDL.authentication.mdn;}
else if(typeof vzwDL.authentication.visHashedMdn!='undefined'&&vzwDL.authentication.visHashedMdn!=null&&vzwDL.authentication.visHashedMdn!=""&&vzwDL.authentication.visHashedMdn.length>5){aSub=vzwDL.authentication.visHashedMdn;}}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id!=""){aSub=vzdl.user.id;}}
catch(e){}
callback({iss:"verizon.com",acr:"loa1",sub:aSub,});}}catch(e){}}
try{if(typeof lpTag!='undefined'&&lpTag!=null){if(VZ_Chat.getCookie("lpFdvLockChatInProgress")!=undefined&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=null&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=""){lpfdvLock(VZ_Chat.getCookie("lpFdvLockChatInProgress"));}else{lpfdvLock("false");}
var lp_gbl_id=VZ_Chat.getCookie("GLOBALID");var lp_vzw_session_id;if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.sessionId!="undefined"&&window.vzwDL.page.sessionId!=null&&window.vzwDL.page.sessionId!=""){lp_vzw_session_id=window.vzwDL.page.sessionId;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.channelSession!="undefined"&&vzdl.page.channelSession!=null&&vzdl.page.channelSession!=""){lp_vzw_session_id=vzdl.page.channelSession;}else if(window.sessionStorage.getItem("SESSION_ID")!=undefined&&window.sessionStorage.getItem("SESSION_ID")!=null&&window.sessionStorage.getItem("SESSION_ID")!=""){lp_vzw_session_id=window.sessionStorage.getItem("SESSION_ID");}else if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.session!="undefined"&&window.vzwDL.page.session!=null&&window.vzwDL.page.session!=""){lp_vzw_session_id=window.vzwDL.page.session;}
if(typeof lp_vzw_session_id!='undefined'&&typeof lp_gbl_id!='undefined'&&lp_vzw_session_id!=null&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{storeZipCode:lp_gbl_id,storeNumber:lp_vzw_session_id}});}else if(typeof lp_vzw_session_id!='undefined'&&lp_vzw_session_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{storeNumber:lp_vzw_session_id}});}else if(typeof lp_gbl_id!='undefined'&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{storeZipCode:lp_gbl_id}});}
if((typeof vzwDL!='undefined'&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!='undefined'&&vzwDL.page!=null&&vzwDL.page!=''&&typeof vzwDL.page.repeatLQSVisitor!='undefined'&&vzwDL.page.repeatLQSVisitor!=null&&vzwDL.page.repeatLQSVisitor!=''&&vzwDL.page.repeatLQSVisitor.toLowerCase()=="y")||(typeof vzdl!='undefined'&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!='undefined'&&vzdl.page!=null&&vzdl.page!=''&&typeof vzdl.page.Return5GHLQ!='undefined'&&vzdl.page.Return5GHLQ!=null&&vzdl.page.Return5GHLQ!=''&&vzdl.page.Return5GHLQ.toLowerCase()=="y")){lpTag.sdes.push({type:"service",service:{topic:"LoopQual:5GHome",status:1}});}
if((typeof vzwDL!='undefined'&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!='undefined'&&vzwDL.page!=null&&vzwDL.page!=''&&typeof vzwDL.page.repeatCartVisitor!='undefined'&&vzwDL.page.repeatCartVisitor!=null&&vzwDL.page.repeatCartVisitor!=''&&vzwDL.page.repeatCartVisitor.toLowerCase()=="y")||(typeof vzdl!='undefined'&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!='undefined'&&vzdl.page!=null&&vzdl.page!=''&&typeof vzdl.page.Return5GHCart!='undefined'&&vzdl.page.Return5GHCart!=null&&vzdl.page.Return5GHCart!=''&&vzdl.page.Return5GHCart.toLowerCase()=="y")){lpTag.sdes.push({type:"service",service:{topic:"LoopQual:5GHome",status:1}});lpTag.sdes.push({type:"cart",total:0,numItems:1,products:[{product:{name:"SavedCart",category:"SavedCart:5GHome"}}]});}}}catch(e){}
if(lpBauFlow){agentAvailable();}
else{if(typeof lpNBXObject!="undefined"&&lpNBXObject!=null&&Object.keys(lpNBXObject).length!=0&&lpNBXLcAvailable=="N"){lpButtonHided=true;agentAvailable();}}
convInfoInit();chatStatus();}
document.body.addEventListener('mouseout',function(event){try{if(typeof lpTag!='undefined'&&lpTag!=null&&Object.keys(lpTag).length!=0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){if(event.clientY<=50&&lpTag&&lpTag.section&&lpTag.section.indexOf('preemptiveLeave')<=-1){var section=(lpTag&&lpTag.section)||[];section.push('preemptiveLeave');lpTag.newPage(document.URL,{section:section,taglets:{rendererStub:{divIdsToKeep:{LP_SALES_HOME_EMBEDDED:true}}}})}}}
catch(e){console.log(e,"preemptive error");}})
window.addEventListener("load",function(){checkHideChatButtonTimer();});window.addEventListener("load",function(){windowCustomizationInit();});window.addEventListener("load",function(){checkUrlAndHide();});window.addEventListener("message",onWindowJWTMessage,false);var consData={NEW_AGENT_TYPING_INDICATOR:"Incoming message",OLD_AGENT_TYPING_INDICATOR:"Agent is typing...",CHAT_WITH_US:"Chat with us",MESSAGE_US:"Message us",};var headerObserver=new MutationObserver(function(mutationsList){for(var i=0;i=0;i--){if(array[i].data&&array[i].data[datum]){event=array[i];break;}}}else event=array[array.length-1];if(event&&event.data)return datum?event.data[datum]:event.data;else return undefined;},_findRenderEvent:function _findRenderEventConf(renderEvents,engagementId){return renderEvents.find(function(ev){return ev&&ev.data&&ev.data.conf&&ev.data.conf.id===engagementId;});},_extractEngDetails:function _returnEngDetails(renderEvent){var eng=renderEvent.data&&renderEvent.data.eng;if(eng&&eng.conf){var details={campaignId:eng.conf.campaignId,engagementId:eng.conf.id,engagementName:eng.conf.name,skillId:eng.conf.skillId,skillName:eng.conf.skillName,container:eng.mainContainer,windowId:eng.conf.windowId};}
return details;}};lpTag.hooks.push({name:"BEFORE_SEND_VISITOR_LINE",callback:lpTag.external.convInfo.showData});}
catch(e){console.log(e,"convinfo error");}}
var lpprioritylevel="P1";function agentAvailable(){try{lpQueueHealthURL=window.location.hostname.toLowerCase().indexOf("vzwqa")!=-1?"https://mobile-ppd-west.vzw.com/mfchatnode/rest/appasync/agentAvailability":"https://mobile.vzw.com/mfchatnode/rest/appasync/agentAvailability";window.lpTag.events.bind("RENDERER_STUB","AFTER_CREATE_ENGAGEMENT_INSTANCE",function(data){lpEngagementID=data.eng.engData.engagementId;if(data.conf.skillName.split(":").length>1){coLpPriorityLevel=data.conf.skillName.split(":")[1].trim();}
coLpEngagementID=data.eng.engData.engagementId;coEngagementName=data.eng.conf.name;if(lpNBXLcAvailable=="Y"&&!lpBauFlow){displayLPChatButton();}
try{if(lpChatShownSiteCatalystObj.isLpChatShown&&lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.indexOf(data.eng.conf.name)==-1&&lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.indexOf(data.eng.conf.name)==-1){lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.push(data.eng.conf.name);sendLPEngagementsData(data.eng.conf.name);}}
catch(e){}
try{if(lpChatTargetSiteCatalystArray.indexOf(data.eng.conf.name)==-1){lpChatTargetSiteCatalystArray.push(data.eng.conf.name);sendLPEngagementsTargetData(data.eng.conf.name);}}catch(e){}
if(stopInfinite>0){return;}
try{checkHideChatButtonTimer();}catch(arrer){console.log("error setTimeoutAA"+arrer);}
console.log(data.eng.engData.engagementType);var lpSkillName=data.conf.skillName;if(lpSkillNameInTimer!=data.conf.skillName){lpSkillNameInTimer=data.conf.skillName;}
if(lpSkillName===null||lpSkillName===""){return;}
var secQData="VZW";try{visitorUniqueID=VZ_Chat.getCookie("LPVID");secQData=secQData+
document.URL.split(".com")[1].split("?")[0].split("/").join("_");}catch(err){}
var req={RequestParams:{skillAliasName:data.conf.skillName
.split(":")[0]
.replace("~",""),UniqueId:visitorUniqueID,engagementName:data.eng.conf.name,section:secQData,},};if(data.conf.skillName.split(":").length>1){var priorityFilter=data.conf.skillName
.split(":")[1]
.split("P")[1];if(priorityFilter>priorityTest){priorityTest=priorityFilter;priorityInTimer=data.conf.skillName.replace("~","");engInTimer=data.eng.conf.name;}
if(data.eng.conf.name.indexOf("-O")!=-1){console.log("engagement Type"+data.eng.conf.name);console.log("Skill Name"+data.conf.skillName);if(proActivePriority!=data.conf.skillName.split(":")[1].split(" ")[1]){proActivePriority=data.conf.skillName
.split(":")[1]
.split(" ")[1];}}
req.RequestParams.priority=data.conf.skillName.replace("~","");}
try{if(data.conf.skillName.split(":").length>1&&parseInt(lpprioritylevel.split("P")[1])0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}}}
else{if(lpTag.device.familyName()!=="Desktop"){return false;}
if(!(data&&data.eng&&data.eng.engData&&data.eng.engData.engagementType===1)){return false;}}
if((VZ_Chat.getCookie("proActiveDisable"+proActivePriority)=="true"||closeProActiveonPage==true)&&errorPageProAvctive==false){return false;}
window.setTimeout(function(){var pageInputDom=document.querySelector("input");var pageUrl=window.document.URL.toLowerCase();if(typeof pageInputDom!="undefined"&&pageInputDom!=null&&pageInputDom!=""&&(pageUrl.indexOf("personalinfo.html")!=-1||pageUrl.indexOf("creditcheck-v2.html")!=-1||pageUrl.indexOf("contactinfo.html")!=-1||pageUrl.indexOf("creditcheck.html")!=-1))
{}
else{isLPProactiveChat=true;lpTag.taglets.rendererStub.click(data.eng.engData.engagementId);proAutoOpenedFlag=true;errorPageProAvctive=false;}},100);}catch(proActiveerr){console.log(proActiveerr+"proactive error");}}
else{try{if(lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.indexOf(data.eng.conf.name)==-1&&lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.indexOf(data.eng.conf.name)==-1){lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.push(data.eng.conf.name);}}catch(e){}}}catch(queueHealthAPIerror){console.log("queueHealthAPIerror "+queueHealthAPIerror);}});});}
var response=fetch(lpQueueHealthURL,{method:"POST",headers:{"Content-Type":"application/json",},body:JSON.stringify(req),});response.then(function(res){res.json().then(function(result){var showChat=false;var lpAgentAssignment=0;var lpUnassignedConversation=0;if(result!=null&&typeof result!="undefined"&&result.metrics!=null&&typeof result.metrics!="undefined"&&result.metrics.waitTimeForAgentAssignment_90thPercentile!=null&&typeof result.metrics.waitTimeForAgentAssignment_90thPercentile!="undefined"){lpAgentAssignment=result.metrics.waitTimeForAgentAssignment_90thPercentile;}
if(result!=null&&typeof result!="undefined"&&result.metrics!=null&&typeof result.metrics!="undefined"&&result.metrics.unassignedConversations!=null&&typeof result.metrics.unassignedConversations!="undefined"){lpUnassignedConversation=result.metrics.unassignedConversations;}
try{if(!checkLPChatAvailability(lpprioritylevel,lpAgentAssignment,lpUnassignedConversation)){try{if(lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.indexOf(data.eng.conf.name)==-1&&lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.indexOf(data.eng.conf.name)==-1){lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.push(data.eng.conf.name);}}catch(e){}
if(timerCallCount==true||timerCallCount=="true"){apiInterval=setInterval(apiCallTimer,30000);}
timerCallCount=false;lpButtonHided=true;hideLPChatButton();}else{try{lpChatShownSiteCatalystObj.isLpChatShown=true;if(lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.indexOf(data.eng.conf.name)==-1&&lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.indexOf(data.eng.conf.name)==-1){lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.push(data.eng.conf.name);sendLPEngagementsData(data.eng.conf.name);}}catch(e){}
clearInterval(apiInterval);if(lpButtonHided==true){lpButtonHided=false;stopInfinite=stopInfinite+1;displayLPChatButton();}
try{if((typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!="undefined"&&vzwDL.page!=null&&vzwDL.page!=""&&typeof vzwDL.page.fireProactiveChat!="undefined"&&vzwDL.page.fireProactiveChat!=null&&vzwDL.page.fireProactiveChat!=""&&vzwDL.page.fireProactiveChat.toLowerCase()=="y")||(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.fireProactiveChat!="undefined"&&vzdl.page.fireProactiveChat!=null&&vzdl.page.fireProactiveChat!=""&&vzdl.page.fireProactiveChat.toLowerCase()=="y")){if(typeof lpTag!='undefined'&&lpTag!=null&&Object.keys(lpTag).length!=0){if(lpTag&&lpTag.section&&lpTag.section.indexOf('CMP:5GHomeQR')<=-1){var section=(window.lpTag&&window.lpTag.section)||[];section.push('CMP:5GHomeQR');if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}}}
else{if(lpTag.device.familyName()!=="Desktop"){return false;}
if(!(data&&data.eng&&data.eng.engData&&data.eng.engData.engagementType===1)){return false;}}
if((VZ_Chat.getCookie("proActiveDisable"+proActivePriority)=="true"||closeProActiveonPage==true)&&errorPageProAvctive==false){return false;}
window.setTimeout(function(){var pageInputDom=document.querySelector("input");var pageUrl=window.document.URL.toLowerCase();if(typeof pageInputDom!="undefined"&&pageInputDom!=null&&pageInputDom!=""&&(pageUrl.indexOf("personalinfo.html")!=-1||pageUrl.indexOf("creditcheck-v2.html")!=-1||pageUrl.indexOf("contactinfo.html")!=-1||pageUrl.indexOf("creditcheck.html")!=-1))
{}
else{isLPProactiveChat=true;lpTag.taglets.rendererStub.click(data.eng.engData.engagementId);proAutoOpenedFlag=true;errorPageProAvctive=false;}},100);}catch(proActiveerr){console.log(proActiveerr+"proactive error");}}}
catch(queueHealthAPIerror){console.log("queueHealthAPIerror "+queueHealthAPIerror);}});});});}catch(agerr){console.log("agentAvi"+agerr);}}
function chatStatus(){try{function lp_state(data,eventInfo){var channelOrchestrationIndicator="";if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.throttleList!="undefined"&&vzdl.page.throttleList!=null&&vzdl.page.throttleList!=""){channelOrchestrationIndicator=vzdl.page.throttleList;}
if(channelOrchestrationIndicator!=""&&(channelOrchestrationIndicator.indexOf('|ShowProactiveLiveChat|')!=-1||channelOrchestrationIndicator.indexOf('|ProActiveChat|')!=-1)){coChangeLpChatStyle();}
if(data.state==="init"){chatInitiated=true;try{lpIschatting="true";document.cookie="lpFdvLockChatInProgress="+lpIschatting+"; domain=.verizon.com; path=/;";document.cookie="lpFdvLockChatInProgress="+lpIschatting+"; domain=.verizonwireless.com; path=/;";vzdlSiteCatalyst("event236","LPchatwindow","UserInitiatedChat","UserInitiatedChat",lp_visitor_id,lp_conversation_id);nbxReporting("event236","UserInitiatedChat","",lp_conversation_id);}catch(e){}}
if(data.state==="waiting"){if(channelOrchestrationIndicator!=""&&(channelOrchestrationIndicator.indexOf('|ShowProactiveLiveChat|')!=-1||channelOrchestrationIndicator.indexOf('|ProActiveChat|')!=-1)){if(VZ_Chat.getCookie('lpFirstMessageSent')!=null&&VZ_Chat.getCookie('lpFirstMessageSent')!=""){var lpFirstMessageSentCookie=VZ_Chat.getCookie('lpFirstMessageSent');if(lpFirstMessageSentCookie=="true"){firstMessageSent=true;}
else{firstMessageSent=false;}}
if(!firstMessageSent){firstMessageSent=true;document.cookie="lpFirstMessageSent="+firstMessageSent+"; domain=.verizon.com; path=/;";document.cookie="lpFirstMessageSent="+firstMessageSent+"; domain=.verizonwireless.com; path=/;";setTimeout(fireLpAutoMessage,1000);}}
if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()&&typeof EchannelVera.lpUtilsService.removeUnifiedChatButton!="undefined"){EchannelVera.lpUtilsService.removeUnifiedChatButton();}}}
else if(data.state==="interactive"){try{vzdlSiteCatalyst("event238","LPchatwindow","AgentInteraction","AgentInteraction",lp_visitor_id,lp_conversation_id,lp_agent_pid);nbxReporting("event238","AgentInteraction","",lp_conversation_id);}catch(e){}}
else if(data.state==="chatting"){try{if(VZ_Chat.getCookie("isLpFirstMessage")!=null&&VZ_Chat.getCookie("isLpFirstMessage")!=""&&VZ_Chat.getCookie("isLpFirstMessage")=="true"){vzdlSiteCatalyst("event237","LPchatwindow","AgentAssigned","AgentAssigned",lp_visitor_id,lp_conversation_id,lp_agent_pid);nbxReporting("event237","AgentAssigned","",lp_conversation_id);document.cookie="isLpFirstMessage="+false+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+false+"; domain=.verizonwireless.com; path=/;";var engagementClicks=lpTag.events.hasFired("LP_OFFERS","OFFER_CLICK");if(engagementClicks.length>0){var targetedEngagementDataCount=engagementClicks.length-1;var engagementClickedName=engagementClicks[targetedEngagementDataCount].data.engagementName;if(typeof engagementClickedName!="undefined"&&engagementClickedName!=null&&engagementClickedName!=""){if(isLPProactiveChat){lpChatClickedEngagement=engagementClickedName;sendLPEngagementsClickedData(lpChatClickedEngagement);}}}}}catch(e){}
proAutoOpenedFlag=false;closeProActiveonPage=true;try{if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()&&typeof EchannelVera.lpUtilsService.removeUnifiedChatButton!="undefined"&&EchannelVera.lpUtilsService.removeUnifiedChatButton!=null){EchannelVera.lpUtilsService.removeUnifiedChatButton();}}}catch(err){}
if(typeof lp_conversation_id!="undefined"&&lp_conversation_id!=null&&lp_conversation_id){document.cookie="chatIdCookie="+
lp_conversation_id+
"; domain=.verizonwireless.com; path=/;";document.cookie="chatIdCookie="+
lp_conversation_id+
"; domain=.verizon.com; path=/;";}}else if(data.state==="ended"){try{isLPProactiveChat=false;vzdlSiteCatalyst("event239","LPchatwindow","ChatClosed","ChatClosed",lp_visitor_id,lp_conversation_id);nbxReporting("event239","ChatClosed","",lp_conversation_id);}
catch(e){}
}}
lpTag.events.bind("lpUnifiedWindow","state",lp_state);lpTag.events.bind("LP_OFFERS","OFFER_CLICK",lpClickedObserver);try{lpTag.events.bind("lpUnifiedWindow","maximized",function(){setTimeout(function(){var scrollable=document.getElementsByClassName('lp_location_center')[0];if(typeof scrollable!="undefined"&&scrollable!=null){scrollable.scrollTop=scrollable.scrollHeight;}},500);})}
catch(e){}
lpTag.events.bind("lpUnifiedWindow","windowClosed",function(){try{lp_visitor_id="";lp_agent_pid="";lp_conversation_id="";isLPProactiveChat=false;document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";var lpCht=readTCCookieInfo("LP_CHAT_IN_PROGRESS");if(readTCCookieInfo("lp_jwt_wln")!=null&&readTCCookieInfo("lp_jwt_wln")!=""&&lpCht!=null&&lpCht=='Y'){createTCCookie('LP_CHAT_IN_PROGRESS','N');}
firstMessageSent=false;document.cookie="lpFirstMessageSent="+firstMessageSent+"; domain=.verizon.com; path=/;";document.cookie="lpFirstMessageSent="+firstMessageSent+"; domain=.verizonwireless.com; path=/;";if(typeof displayconnectwithus!="undefined"&&displayconnectwithus!=null&&typeof(displayconnectwithus)=="function"){displayconnectwithus();}
lpIschatting="false";document.cookie="lpFdvLockChatInProgress="+lpIschatting+"; domain=.verizon.com; path=/;";document.cookie="lpFdvLockChatInProgress="+lpIschatting+"; domain=.verizonwireless.com; path=/;";if(lpFtype!=''&&lpFtype.toUpperCase()!="R"){hideLPChatButton();}}
catch(e){console.log(e,"windowClosed error");}
if(proAutoOpenedFlag==true&&VZ_Chat.getCookie("proActiveDisable"+proActivePriority)!="true"){VZ_Chat.setCookie("proActiveDisable"+proActivePriority,true,24);proAutoOpenedFlag==false;}
try{if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("LoggedIn MDN changes 2")}
window.hideLPChatButton();if(typeof EchannelVera.lpUtilsService.createUnifiedChatButton!="undefined"&&EchannelVera.lpUtilsService.createUnifiedChatButton!=null){EchannelVera.lpUtilsService.createUnifiedChatButton();}}}}catch(closeErr){console.log("CWclose"+closeErr);}});function lpClickedObserver(data,eventInfo){try{if(typeof data!="undefined"&&data!=null&&data!=""&&typeof data.engagementName!="undefined"&&data.engagementName!=null&&data.engagementName!=""){if(!isLPProactiveChat){lpChatClickedEngagement=data.engagementName;sendLPEngagementsClickedData(lpChatClickedEngagement);}}}
catch(e){}}
var lp_visitor_id="";var lp_agent_pid="";var lp_conversation_id="";function lp_conv_info(data,eventInfo){if(typeof data.visitorId!="undefined"){lp_visitor_id=data.visitorId;}
if(typeof data.agentId!="undefined"){lp_agent_pid=data.agentId;}
if(typeof data.conversationId!="undefined"){console.log("function loaded");lp_conversation_id=data.conversationId;nbxReporting("eVar120","setConversationId","",lp_conversation_id);}}
lpTag.events.bind("lpUnifiedWindow","conversationInfo",lp_conv_info);}catch(cserr){console.log("CSerror"+cserr);}
try{lpTag.events.bind("lpUnifiedWindow","state",function(){var hostLPUrl=window.document.URL.toLowerCase();if(hostLPUrl.indexOf("tlogin.verizonwireless.com")!=-1||hostLPUrl.indexOf("login.verizonwireless.com")!=-1||hostLPUrl.indexOf("login.verizon.com")!=-1||hostLPUrl.indexOf("accessmgr")!=-1){hideLPWithTimer();}});}catch(stateErr){console.log("HICB"+stateErr);}}
function addVar(name,value,scope,mobile){var newVar;if(!chatVars){throw getException("DataLayerUndefinedException","Data Layer is Undefined");}
newVar={name:name,value:value,scope:scope,mobile:mobile,toString:function(){return("{ name: "+
name+
", value: "+
value+
", scope: "+
scope+
", mobile: "+
mobile+
" }");},};if(typeof name!=="string"||typeof value==="undefined"||typeof scope!=="string"||(scope!=="page"&&scope!=="session")||typeof mobile!=="boolean"){throw getException("InvalidVariableException","Invalid variable format: "+newVar.toString());}
if(debugMode){console.log("Adding var: "+newVar.toString());}
chatVars[chatVars.length]=newVar;}
function getException(name,msg){return{name:name,msg:msg,toString:function(){return this.name+": "+this.msg;},};}
var lpFtype='';function lpfdvLock(lpIschatting){try{var lpFdvLockcookie=VZ_Chat.getCookie("lpFdvLockcookie");if(((typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.authentication!='undefined'&&window.vzwDL.authentication!=null&&typeof window.vzwDL.authentication.fType!='undefined'&&window.vzwDL.authentication.fType!=null))){lpFtype=window.vzwDL.authentication.fType;}
else if((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.authentication!='undefined'&&window.vzdl.authentication!=null&&typeof window.vzdl.authentication.fType!='undefined'&&window.vzdl.authentication.fType!=null)){lpFtype=window.vzdl.authentication.fType;}
else if(((typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.page!='undefined'&&window.vzwDL.page!=null&&typeof window.vzwDL.page.fraudIndicator!='undefined'&&window.vzwDL.page.fraudIndicator!=null))){lpFtype=window.vzwDL.page.fraudIndicator;}
else if(((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.page!='undefined'&&window.vzdl.page!=null&&typeof window.vzdl.page.fraudIndicator!='undefined'&&window.vzdl.page.fraudIndicator!=null))){lpFtype=window.vzdl.page.fraudIndicator;}
if(lpFtype!=''&&lpFtype.toUpperCase()!="R"){document.cookie="lpFdvLockcookie="+lpFtype+"; domain=.verizon.com; path=/;";document.cookie="lpFdvLockcookie="+lpFtype+"; domain=.verizonwireless.com; path=/;";if(lpIschatting=="true"){if(typeof lpTag!='undefined'){lpTag.sdes=window.lpTag.sdes||[];lpTag.sdes.push({type:"mrktInfo",info:{affiliate:lpFtype}});console.log(lpFtype,"lpFtype");console.log(lpIschatting,"lpIschatting");}}else{hideLPChatButton();}}
else if(lpFdvLockcookie!=undefined&&lpFdvLockcookie!=null&&lpFdvLockcookie!=""&&lpFdvLockcookie.toUpperCase()!="R"){lpFtype=lpFdvLockcookie;if(lpIschatting=="true"){if(typeof lpTag!='undefined'){lpTag.sdes=window.lpTag.sdes||[];lpTag.sdes.push({type:"mrktInfo",info:{affiliate:lpFtype}});}}else{hideLPChatButton();}}}
catch(e){console.log("FDV lock error "+e);}}
function contactUsInit(options){if(typeof console==="undefined"){window.console={};console.log=function(){};console.error=function(){};}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};}
try{if(VZ_Chat.getCookie("isLpFirstMessage")==null||VZ_Chat.getCookie("isLpFirstMessage")==""){document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";}}catch(e){}
options=options||{};debugMode=options.debugMode||false;legacyMode=options.legacyMode||true;globalOptionsInit=options;if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 6");}
downloadChatTag();initVars(options.scrubber,options.builder);}}
function setVar(){var tName,tValue,tScope,tMobile;if(arguments.length>=2){(tName=arguments[0]),(tValue=arguments[1]),(tScope=arguments[2]||"page"),(tMobile=typeof arguments[3]=="undefined"?true:arguments[3]);try{addVar(tName,tValue,tScope,tMobile);}catch(err){if(debugMode){console.log("setVar error ->"+err);}
if(err.name=="DataLayerUndefinedException"&&!isReady){fnQueue.push(function(){setVar(tName,tValue,tScope,tMobile);});}}}else if(arguments.length==1){throw getException("OperationNotSupported","This operation is not supported");}else{throw getException("InvalidArgument","Argument count is invalid");}}
function replaceAll(str){if(str===undefined||str===null)return str;return str.replace(/\//g,"");}
function getCookie(cname){try{var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(";");for(var i=0;i0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}}}}
function isNextBestChannelFlow(HOGFlag)
{try
{if(!HOGFlag||(VZ_Chat.getCookie("lpFdvLockChatInProgress")!=null&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=""&&VZ_Chat.getCookie("lpFdvLockChatInProgress")=="true"))
{lpBauFlow=true;}else{isCONBCHEnabled=true;}}
catch(e)
{}}
function setNBXLC_Available(){try{if(typeof lpNBXObject.LC_Available!="undefined"&&lpNBXObject.LC_Available!=null&&lpNBXObject.LC_Available.length>0&&typeof lpNBXObject.LC_Available[0]!="undefined"&&lpNBXObject.LC_Available[0]!=null&&lpNBXObject.LC_Available[0].toLowerCase()=="true"){lpNBXLcAvailable="Y";}
else{lpNBXLcAvailable="N";}}
catch(e){}}
function setNBXLpPriority(){try{if(typeof lpNBXObject.Priority!="undefined"&&lpNBXObject.Priority!=null&&lpNBXObject.Priority.length>0&&typeof lpNBXObject.Priority[0]!="undefined"&&lpNBXObject.Priority[0]!=null&&lpNBXObject.Priority[0].toLowerCase()!=""){lpNBXLpPriority=lpNBXObject.Priority[0];}}
catch(e){}}
function setNBXLpSoiEngagementID(){try{if(typeof lpNBXObject.SOI_Engagement_ids!="undefined"&&lpNBXObject.SOI_Engagement_ids!=null&&lpNBXObject.SOI_Engagement_ids.length>0&&typeof lpNBXObject.SOI_Engagement_ids[0]!="undefined"&&lpNBXObject.SOI_Engagement_ids[0]!=null&&Object.keys(lpNBXObject.SOI_Engagement_ids).length!=0){lpNBXLpSoiEngagementId=lpNBXObject.SOI_Engagement_ids[0];}}
catch(e){}}
window.checkLPValidVariable=checkLPValidVariable;window.getWirelessDL=getWirelessDL;window.lpButtonHided=lpButtonHided;window.proAutoOpenedFlag=proAutoOpenedFlag;window.isLpTagBlocked=isLpTagBlocked;window.errorPageProAvctive=errorPageProAvctive;window.onWindowJWTMessage=onWindowJWTMessage;window.hideLPWithTimer=hideLPWithTimer;window.checkHideChatButtonTimer=checkHideChatButtonTimer;window.reInitChatFramework=reInitChatFramework;window.hideLPChatButton=hideLPChatButton;window.displayLPChatButton=displayLPChatButton;window.getJWTToken=getJWTToken;window.lpRetailChatAuth=lpRetailChatAuth;window.chatLPUpdateErrorTag=chatLPUpdateErrorTag;window.updateLiveChatevents=updateLiveChatevents;window.lpGetAuthenticationToken=lpGetAuthenticationToken;window.lpChatObject=lpChatObject;window.reInitChatFrameworkNSA=reInitChatFrameworkNSA;window.cartUnlockApi=cartUnlockApi;window.getLPEngagmentandPriority=getLPEngagmentandPriority;window.fireLpAutoMessage=fireLpAutoMessage;window.coChangeLpChatStyle=coChangeLpChatStyle;window.islpFrameworkloaded=islpFrameworkloaded;window.showandFireLiveEngagewindow=showandFireLiveEngagewindow;window.readTCCookieInfo=readTCCookieInfo;window.createTCCookie=createTCCookie;window.sendLPEngagementsData=sendLPEngagementsData;window.sendLPEngagementsTargetData=sendLPEngagementsTargetData;window.sendLPEngagementsClickedData=sendLPEngagementsClickedData;window.pushingAuthValue=pushingAuthValue;window.changeLPJWTCookieValue=changeLPJWTCookieValue;window.vzdlSiteCatalyst=vzdlSiteCatalyst;window.isUserAuthenticated=isUserAuthenticated;window.launchLiveChatFromNBX=launchLiveChatFromNBX;window.triggerLiveChatfromNBXResponse=triggerLiveChatfromNBXResponse;window.lpBauFlow=lpBauFlow;window.isNextBestChannelFlow=isNextBestChannelFlow;var pathname=window.location.pathname;var hostName=window.location.hostname;var platform=vzwDL.page.platform;if(pathname.indexOf('/support')>-1){VZ_Chat.setVar('Source_mobile_ind','4');if(platform=='tablet'){VZ_Chat.setVar('tablet_visit','1');}else if(platform=='mobile'){VZ_Chat.setVar('mobile_visit','1');}}
var spanishTestman=pathname.indexOf("sdpreprod")>-1||pathname.indexOf("sdppmyvpostpay")>-1||pathname.indexOf("sdtestman")>-1;var prodHostNames=["www.verizonwireless.com","www.verizon.com","nbillpay.verizonwireless.com","ebillpay.verizonwireless.com","wbillpay.verizonwireless.com","es.verizonwireless.com","quickaccess.verizonwireless.com","freebee.verizonwireless.com","solutions.vzwshop.com","login.verizonwireless.com","login.vzw.com","community.verizonwireless.com","myverizonid.verizon.com","autochatva.verizonwireless.com","my.verizonwireless.com","tones.verizonwireless.com","devices.verizonwireless.com","myaccount.verizonwireless.com","billpaysvc.verizonwireless.com","mediastore.verizonwireless.com","m.mediastore.verizonwireless.com","preorder.verizonwireless.com","store.verizonwireless.com","apps.vzwshop.com","www.internetservices.verizon.com","myvprepay.verizonwireless.com","myvpostpay.verizonwireless.com","mobile.vzw.com","solutionslab.vzw.com"];var isProd=false;for(var i=0;i-1||b['dom.pathname'].toString().toLowerCase().indexOf('/onedp'.toLowerCase())>-1||b['dom.pathname'].toString().toLowerCase().indexOf('/od'.toLowerCase())>-1||typeof b['page.pageName']!='undefined'){if(window.location.href.indexOf("/digital/nsa/nos/ui/contactus/nonsigninlanding")<0){function throttleWrapper(){var lpNBXLcAvailable="N";var lpNBXLpPriority="";var lpNBXLpSoiEngagementId={sticky_soi_id:"",embedded_soi_id:"",overlay_soi_id:""};var isLpTagBlocked=false;var lpButtonHided=false;var proAutoOpenedFlag=false;var isLPProactiveChat=false;var closeProActiveonPage=false;var apiInterval;var stopInfinite=0;var priorityTest=0;var lpSkillNameInTimer;var priorityInTimer;var engInTimer;var timerCallCount=true;var proActivePriority=null;var visitorUniqueID=null;var errorPageProAvctive=false;var lpIschatting="false";var lpChatObject={};var coLpPriorityLevel="";var coEngagementName="";var lpEngagementID="";var firstMessageSent=false;var isCONBCHEnabled=false;var lpChatShownSiteCatalystObj={engagementAddedBeforeChatShown:[],engagementAddedAfterChatShown:[],isLpChatShown:false}
var lpChatTargetSiteCatalystArray=[];var lpChatClickedEngagement="";var lpJwtCount=0;var globalOptionsInit={};VZ_Chat=(function(){var out={},debugMode,legacyMode,chatVars,fnQueue=[],console=window.console,isReady=false;function bindDL(){if(typeof vzwDL==="undefined"&&typeof vzdl==="undefined"){return;}
if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.chat)){chatVars=vzwDL.page.chat;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.user)&&checkLPValidVariable(vzdl.user.chatId)){chatVars=vzdl.user.chatId;}
isReady=true;}
function addVar(name,value,scope,mobile){var newVar;if(!chatVars){throw getException("DataLayerUndefinedException","Data Layer is Undefined");}
newVar={name:name,value:value,scope:scope,mobile:mobile,toString:function(){return("{ name: "+
name+
", value: "+
value+
", scope: "+
scope+
", mobile: "+
mobile+
" }");},};if(typeof name!=="string"||typeof value==="undefined"||typeof scope!=="string"||(scope!=="page"&&scope!=="session")||typeof mobile!=="boolean"){throw getException("InvalidVariableException","Invalid variable format: "+newVar.toString());}
if(debugMode){console.log("Adding var: "+newVar.toString());}
chatVars[chatVars.length]=newVar;}
function getException(name,msg){return{name:name,msg:msg,toString:function(){return this.name+": "+this.msg;},};}
function initVars(scrubber,builder){try{bindDL();if(scrubber){scrubber=new scrubber(VZ_Chat,getWirelessDL());if(debugMode){console.log("Data scrubbing with: "+scrubber.toString());}
scrubber.scrub();}else{if(debugMode){console.log("Warning! -> Data scrubber is not defined");}}
if(builder){builder=new builder(VZ_Chat,getWirelessDL());if(debugMode){console.log("Data building with: "+builder.toString());}
builder.build();}else{if(debugMode){console.log("Warning! -> Data builder is not defined");}}}catch(err){console.log("Critical [and ignored] error on init -> "+err);}}
function init(options){console.log("calling vz_chat init "+holdOutGroupSelectionCount+" times");loadLpLibrary();var islpNbxpropositionIdAvailable=false;if(typeof lpNBXObject!="undefined"&&lpNBXObject!=null&&Object.keys(lpNBXObject).length!=0){if(typeof lpNBXObject.propositionId!="undefined"&&lpNBXObject.propositionId!=null&&lpNBXObject.propositionId.length>0){if(lpNBXObject.propositionId.indexOf("P_NoNBA")!=-1){islpNbxpropositionIdAvailable=false;}
else{islpNbxpropositionIdAvailable=true;}}}
if(!isNBXFunctionCalled&&holdOutGroupSelectionCount<1){holdOutGroupSelectionCount++;setTimeout(VZ_Chat.init,1000,options);}
else if(isNBXFunctionCalled&&islpNbxpropositionIdAvailable){lpBauFlow=false;nbxInit();lpTag.start();}
else{lpTag.start();lpBauFlow=true;var RPSflow="";try{RPSflow=window.isRPSFlow;}catch(errrrr){}
try{if(VZ_Chat.getCookie("lpFdvLockChatInProgress")!=null&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=""&&VZ_Chat.getCookie("lpFdvLockChatInProgress")=="true"){if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()&&typeof EchannelVera.lpUtilsService.removeUnifiedChatButton!="undefined"&&EchannelVera.lpUtilsService.removeUnifiedChatButton!=null){EchannelVera.lpUtilsService.removeUnifiedChatButton();}}}}catch(err){}
try{if((window.sessionStorage.getItem("UNIFIED_CHAT_INPROGRESS")=="true")&&(VZ_Chat.getCookie('UNIFIED_CHAT_INPROGRESS')!=null&&VZ_Chat.getCookie('UNIFIED_CHAT_INPROGRESS').toLowerCase()=="open")){isLpTagBlocked=true;return;}
if(RPSflow=="true"||RPSflow==true){return;}
if(document.referrer.indexOf("configuration")!=-1&&document.URL.indexOf("trade-in")!=-1){return;}}catch(tagEr){}
if(typeof console==="undefined"){window.console={};console.log=function(){};console.error=function(){};}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};}
try{if(VZ_Chat.getCookie("isLpFirstMessage")==null||VZ_Chat.getCookie("isLpFirstMessage")==""){document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";}}catch(e){}
options=options||{};debugMode=options.debugMode||false;legacyMode=options.legacyMode||true;globalOptionsInit=options;if(document.readyState==="interactive"||document.readyState==="complete"){if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 3")}
downloadChatTag();initVars(options.scrubber,options.builder);}}else{document.addownloadChatTagdEventListener("DOMContentLoaded",function(){if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 5");}
downloadChatTag();initVars(options.scrubber,options.builder);}});}}}
function contactUsInit(options){if(typeof console==="undefined"){window.console={};console.log=function(){};console.error=function(){};}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};}
try{if(VZ_Chat.getCookie("isLpFirstMessage")==null||VZ_Chat.getCookie("isLpFirstMessage")==""){document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";}}catch(e){}
options=options||{};debugMode=options.debugMode||false;legacyMode=options.legacyMode||true;globalOptionsInit=options;if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 6");}
downloadChatTag();initVars(options.scrubber,options.builder);}}
function setVar(){var tName,tValue,tScope,tMobile;if(arguments.length>=2){(tName=arguments[0]),(tValue=arguments[1]),(tScope=arguments[2]||"page"),(tMobile=typeof arguments[3]=="undefined"?true:arguments[3]);try{addVar(tName,tValue,tScope,tMobile);}catch(err){if(debugMode){console.log("setVar error ->"+err);}
if(err.name=="DataLayerUndefinedException"&&!isReady){fnQueue.push(function(){setVar(tName,tValue,tScope,tMobile);});}}}else if(arguments.length==1){throw getException("OperationNotSupported","This operation is not supported");}else{throw getException("InvalidArgument","Argument count is invalid");}}
function replaceAll(str){if(str===undefined||str===null)return str;return str.replace(/\//g,"");}
function getCookie(cname){try{var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(";");for(var i=0;i0.135||isNaN(extractSOIScore))&&(typeof errorPageMessage!='undefined'&&errorPageMessage!=null&&errorPageMessage.trim()!=""))){lpTag.section.push("Error:true");}
if(vzdl!=null&&vzdl.error!=null&&typeof vzdl.error.proactiveChatCustomMSG!='undefined'&&vzdl.error.proactiveChatCustomMSG!=''&&vzdl.error.proactiveChatCustomMSG!=null){customEngagement(proactiveChatCustomMSG);}}catch(ERR){console.log("extractSOIScore error "+ERR);}}}catch(e){};var vjwtAvailable=window.sessionStorage.getItem("wjt");if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.authentication!="undefined"&&vzwDL.authentication!=null&&vzwDL.authentication!=""&&vzwDL.authentication.mdn&&typeof vjwtAvailable!="undefined"&&vjwtAvailable!=null&&vjwtAvailable!=""){lpTag.section.push("Auth:true");}else if(isUserAuthenticated()&&typeof vjwtAvailable!="undefined"&&vjwtAvailable!=null&&vjwtAvailable!=""){lpTag.section.push("Auth:true");}
if(window.document.URL.indexOf("tlogin.verizonwireless.com")!=-1||window.document.URL.indexOf("login.verizonwireless.com")!=-1||window.document.URL.indexOf("login.verizon.com")!=-1){lpTag.section.push("defaultexclude");}}
catch(e){}}
function sendCustData(){try{if(typeof lpTag!='undefined'&&lpTag!=null){var lpAuthenticationCustType="";if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.authentication.custType!="undefined"&&window.vzwDL.authentication!=null&&typeof window.vzwDL.authentication.custType!="undefined"&&window.vzwDL.authentication.custType!=null&&window.vzwDL.authentication.custType!=""){lpAuthenticationCustType=window.vzwDL.authentication.custType;}
else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&typeof vzdl.user.customerType!="undefined"&&vzdl.user.customerType!=null&&vzdl.user.customerType!=""){lpAuthenticationCustType=vzdl.user.customerType;}
lpTag.sdes=window.lpTag.sdes||[];var lp_gbl_id=VZ_Chat.getCookie("GLOBALID");var lp_vzw_session_id;if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.sessionId!="undefined"&&window.vzwDL.page.sessionId!=null&&window.vzwDL.page.sessionId!=""){lp_vzw_session_id=window.vzwDL.page.sessionId;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.channelSession!="undefined"&&vzdl.page.channelSession!=null&&vzdl.page.channelSession!=""){lp_vzw_session_id=vzdl.page.channelSession;}else if(window.sessionStorage.getItem("SESSION_ID")!=undefined&&window.sessionStorage.getItem("SESSION_ID")!=null&&window.sessionStorage.getItem("SESSION_ID")!=""){lp_vzw_session_id=window.sessionStorage.getItem("SESSION_ID");}else if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.session!="undefined"&&window.vzwDL.page.session!=null&&window.vzwDL.page.session!=""){lp_vzw_session_id=window.vzwDL.page.session;}
if(typeof lp_vzw_session_id!='undefined'&&typeof lp_gbl_id!='undefined'&&lp_vzw_session_id!=null&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeZipCode:lp_gbl_id,storeNumber:lp_vzw_session_id}});}else if(typeof lp_vzw_session_id!='undefined'&&lp_vzw_session_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeNumber:lp_vzw_session_id}});}else if(typeof lp_gbl_id!='undefined'&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeZipCode:lp_gbl_id}});}}}catch(e){console.log("Sending global session id and vzw_session_id failed "+e);}}
function sendErrorMessage(ecode,mes){try{errorPageProAvctive=true;stopInfinite=0;var lpTag=window.lpTag;var extractSOIScore=null;var lpErrorProactiveChatIndicator="";lpTag.sdes=lpTag.sdes||[];if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.error!='undefined'&&vzdl.error!=null&&typeof vzdl.error.soiResponse!='undefined'&&vzdl.error.soiResponse!=null){extractSOIScore=extractSOIScoreFromJSON(vzdl.error.soiResponse);if(extractSOIScore!=null){extractSOIScore=parseFloat(extractSOIScore);}}
if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.error!='undefined'&&vzdl.error!=null&&typeof vzdl.error.proactiveChatIndicator!='undefined'&&vzdl.error.proactiveChatIndicator!=null&&vzdl.error.proactiveChatIndicator!=""){lpErrorProactiveChatIndicator=vzdl.error.proactiveChatIndicator;}
if(extractSOIScore!=null&&!isNaN(extractSOIScore)){var leadSOIValue={type:"lead",lead:{topic:"SOI",value:extractSOIScore,leadId:"ErrorId",}}
lpTag.sdes.push(leadSOIValue);}else if(lpErrorProactiveChatIndicator.toLowerCase()=="y"){var leadSOIValue={type:"lead",lead:{topic:"PEGA-SOI",value:lpErrorProactiveChatIndicator,leadId:"ErrorId",}}
lpTag.sdes.push(leadSOIValue);}
var errorMsg={type:"error",error:{message:mes,code:ecode,}};lpTag.sdes.push(errorMsg);}catch(err){}}
this.scrub=function(){sendSectionData();sendPageInfo();if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.authentication)&&checkLPValidVariable(vzwDL.authentication.visHashedMdn)&&checkLPValidVariable(vzwDL.authentication.accountNumber)&&!(vzwDL.authentication.prepayInd=="Y"||vzwDL.authentication.prepayInd=="1")){sendCustData();}
else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id&&typeof vzdl.user.accountLast2!="undefined"&&vzdl.user.accountLast2!=null&&vzdl.user.accountLast2&&!(vzdl.user.accountType=="Y"||vzdl.user.accountType=="1")){sendCustData()}
var errorData="";try{errorData=vzdl.error;}catch(err){}
if(errorData){if(vzdl.error.code!=undefined&&vzdl.error.code!=null&&vzdl.error.code!=""){var errorPageCode;var errorPageMessage;try{errorPageCode=vzdl.error.code.split("|")[0];errorPageMessage=vzdl.error.code.split("|")[1];}catch(ERR){}
sendErrorMessage(errorPageCode,errorPageMessage);}}};};VZ_Chat.TCMobileDataBuilder=function(that,dl){if(!dl){throw that.getException("InvalidParamException","Data layer is undefined");}
function buildCartInfo(dl){try{var lpTag=window.lpTag;var lpCartData={};if(typeof vzwDL!='undefined'&&vzwDL!==null&&typeof vzwDL.cart!='undefined'&&vzwDL.cart!=null){lpCartData=vzwDL.cart;}
else if(typeof vzdl!='undefined'&&vzdl!==null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.product!='undefined'&&vzdl.txn.product!=null){lpCartData=vzdl.txn.product;}
if(Object.keys(lpCartData).length>0){lpTag.sdes=lpTag.sdes||[];var lpCartItems=[];if(typeof lpCartData.items!="undefined"&&lpCartData.items!=null){lpCartItems=lpCartData.items;}
else if(typeof lpCartData.current!="undefined"&&lpCartData.current!=null){lpCartItems=lpCartData.current;}
var sdeCart={type:"cart",currency:"USD",numItems:lpCartItems.length,products:[],};for(var i=0;i0){lpTag.sdes=lpTag.sdes||[];var lpPurchaseItems=[];if(typeof lpPurchaseData.items!="undefined"&&lpPurchaseData.items!=null){lpPurchaseItems=lpPurchaseData.items;}
else if(typeof lpPurchaseData.current!="undefined"&&lpPurchaseData.current!=null){lpPurchaseItems=lpPurchaseData.current;}
lpTag.sdes=window.lpTag.sdes||[];var lpOrderID="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderNumber!='undefined'&&vzwDL.purchase.orderNumber!=null&&vzwDL.purchase.orderNumber!=""){lpOrderID=vzwDL.purchase.orderNumber;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.id!='undefined'&&vzdl.txn.id!=null&&vzdl.txn.id!=""){lpOrderID=vzdl.txn.id;}
var lp_order_total=0;try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderTotal!='undefined'&&vzwDL.purchase.orderTotal!=null&&vzwDL.purchase.orderTotal!=""){try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}else if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.purchase)&&checkLPValidVariable(vzwDL.purchase.orderTotal)){try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.total!='undefined'&&vzdl.txn.total!=null&&vzdl.txn.total!=""){try{lp_order_total=parseFloat(vzdl.txn.total);}catch(e){}}}
catch(e){}
var lpOrderNumber="";if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.purchase)&&checkLPValidVariable(vzwDL.purchase.orderNumber)){lpOrderNumber=vzwDL.purchase.orderNumber;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.txn)&&checkLPValidVariable(vzdl.txn.id)){lpOrderNumber=vzdl.txn.id;}
var sdePurchases={type:"purchase",currency:"USD",orderId:lpOrderNumber,total:lp_order_total,cart:{products:[],},};for(var j=0;j0){buildConvVars(vzwDL);}}else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.txn!="undefined"&&vzdl.txn!=null&&typeof vzdl.txn.product!="undefined"&&vzdl.txn.product!=null&&vzdl.txn.product){if(typeof vzdl.txn.product.current!="undefined"&&vzdl.txn.product.current!=null&&vzdl.txn.product.current&&vzdl.txn.product.current.length>0){buildConvVars(vzdl);}}};};function extractSOIScoreFromJSON(SOIResponse){var scoreValue=null;try{if(SOIResponse!=""){stringValue=SOIResponse.indexOf('"conversion_likelihood_score":');if(stringValue!=-1){var subStringValue=SOIResponse.substring(SOIResponse.indexOf('"conversion_likelihood_score":')+30);scoreValue=subStringValue.substring(1,subStringValue.indexOf(',')-1);}}}catch(e){console.log(e,"extractSOIScoreFromJSON function error");}
return scoreValue;}
function chatLPUpdateErrorTag(message,errorCode,errorName,SOIResponse,proactiveChatIndicator,proactiveChatCustomMSG){errorPageProAvctive=true;stopInfinite=0;var extractSOIScore=null;var lpErrorProactiveChatIndicator="";try{try{if(typeof SOIResponse!='undefined'&&SOIResponse!=null){extractSOIScore=extractSOIScoreFromJSON(SOIResponse);if(extractSOIScore!=null){extractSOIScore=parseFloat(extractSOIScore);}}}catch(err){console.log("extractSOIScore error "+err);}
var section=(window.lpTag&&window.lpTag.section)||[];var sdeData=[];if(typeof proactiveChatIndicator!='undefined'&&proactiveChatIndicator!=null&&proactiveChatIndicator!=""){lpErrorProactiveChatIndicator=proactiveChatIndicator;}
if(lpErrorProactiveChatIndicator.toLowerCase()=="y"||((extractSOIScore==null||extractSOIScore>0.135||isNaN(extractSOIScore))&&(typeof message!='undefined'&&message!=null&&message.trim()!=""))){section.push("Error:true");}
if(typeof message!='undefined'&&message!=null&&typeof errorCode!='undefined'&&errorCode!=null){var errorMsg={type:"error",error:{message:message,code:errorCode,}};sdeData.push(errorMsg);}
if(extractSOIScore!=null&&!isNaN(extractSOIScore)){var leadSOIValue={type:"lead",lead:{topic:"SOI",value:extractSOIScore,leadId:"ErrorId",}}
sdeData.push(leadSOIValue);}else if(lpErrorProactiveChatIndicator.toLowerCase()=="y"){var leadSOIValue={type:"lead",lead:{topic:"PEGA-SOI",value:lpErrorProactiveChatIndicator,leadId:"ErrorId",}}
sdeData.push(leadSOIValue);}
if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:sdeData,taglets:{},});}
if(typeof proactiveChatCustomMSG!='undefined'&&proactiveChatCustomMSG!=''&&proactiveChatCustomMSG!=null){customEngagement(proactiveChatCustomMSG);}}catch(err){}}
function reInitChatFrameworkNSA(){try{console.log("*****************************REINITCHATFRAMEWORKNSACALLED*******************");if(!window.lpTag){console.log("LP tag not Loaded");return;}
stopInfinite=0;var section=["L1:wireless"];var paths=document.location.pathname.split("/").filter(Boolean);for(var i=0;i5){aSub=vzwDL.authentication.mdn;}
else if(typeof vzwDL.authentication.visHashedMdn!='undefined'&&vzwDL.authentication.visHashedMdn!=null&&vzwDL.authentication.visHashedMdn!=""&&vzwDL.authentication.visHashedMdn.length>5){aSub=vzwDL.authentication.visHashedMdn;}}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id!="")
{aSub=vzdl.user.id;}}
catch(e){}
callback({iss:"verizon.com",acr:"loa1",sub:aSub,});}}catch(e)
{}}
var sdeCartData;var sdePurchaseData;var sdeCreditData;if((typeof vzwDL!='undefined'&&vzwDL!==null)||(typeof vzdl!='undefined'&&vzdl!==null)){var cartInfo;var purchaseInfo;var lpPageHardResponse="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.page!='undefined'&&vzwDL.page!=null&&typeof vzwDL.page.hardResponse!='undefined'&&vzwDL.page.hardResponse!=null&&vzwDL.page.hardResponse!=""){lpPageHardResponse=vzwDL.page.hardResponse;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.user!='undefined'&&vzdl.user!=null&&typeof vzdl.user.creditAppNum!='undefined'&&vzdl.user.creditAppNum!=null&&vzdl.user.creditAppNum!=""){lpPageHardResponse=vzdl.user.creditAppNum;}
if(lpPageHardResponse!=""&&window.location.href.indexOf("creditHold.html")!=-1){sdeCreditData={type:"error",error:{},};var creditHoldCodes=lpPageHardResponse.split("|");if(creditHoldCodes.length>0&&creditHoldCodes[0]!="HD"&&creditHoldCodes[1]!="HD"){try{section.push("messagingExclude");if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{console.log("credithold messaging exclude change1");window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}catch(e)
{console.log("credithold messaging exclude change1");}
return;}
if(creditHoldCodes.length>0&&(creditHoldCodes[0]=="HD"||creditHoldCodes[1]=="HD")){try{sdeCreditData.error.message=creditHoldCodes[0];}catch(e){}}}else if(lpPageHardResponse==""&&window.location.href.indexOf("creditHold.html")!=-1)
{try{section.push("messagingExclude");if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{console.log("credithold messaging exclude change1");window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}catch(e)
{console.log("credithold messaging exclude change1");}
return;}
var lpCartData={};if(typeof vzwDL!='undefined'&&vzwDL!==null&&typeof vzwDL.cart!='undefined'&&vzwDL.cart!=null){lpCartData=vzwDL.cart;}
else if(typeof vzdl!='undefined'&&vzdl!==null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.product!='undefined'&&vzdl.txn.product!=null){lpCartData=vzdl.txn.product;}
if(Object.keys(lpCartData).length>0){lpTag.sdes=lpTag.sdes||[];var lpCartItems=[];if(typeof lpCartData.items!="undefined"&&lpCartData.items!=null){lpCartItems=lpCartData.items;}
else if(typeof lpCartData.current!="undefined"&&lpCartData.current!=null){lpCartItems=lpCartData.current;}
if(lpCartItems&&lpCartItems.length>0){var sdeCart={products:[],};for(var i=0;i0){lpTag.sdes=lpTag.sdes||[];var lpPurchaseItems=[];if(typeof lpPurchaseData.items!="undefined"&&lpPurchaseData.items!=null){lpPurchaseItems=lpPurchaseData.items;}
else if(typeof lpPurchaseData.current!="undefined"&&lpPurchaseData.current!=null){lpPurchaseItems=lpPurchaseData.current;}
if(lpPurchaseItems&&lpPurchaseItems.length>0){var lp_order_total=0;try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderTotal!='undefined'&&vzwDL.purchase.orderTotal!=null&&vzwDL.purchase.orderTotal!="")
{try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.total!='undefined'&&vzdl.txn.total!=null&&vzdl.txn.total!="")
{try{lp_order_total=parseFloat(vzdl.txn.total);}catch(e){}}}
catch(e)
{}
var lpOrderID="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderNumber!='undefined'&&vzwDL.purchase.orderNumber!=null&&vzwDL.purchase.orderNumber!=""){lpOrderID=vzwDL.purchase.orderNumber;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.id!='undefined'&&vzdl.txn.id!=null&&vzdl.txn.id!=""){lpOrderID=vzdl.txn.id;}
sdePurchaseData={type:"purchase",currency:"USD",orderId:lpOrderID,total:lp_order_total,cart:{products:[],},};for(var j=0;j0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{window.lpTag.newPage(document.URL,newPageData);}}
catch(e){}}
function reInitChatFramework(chatSiteId){try{if(!window.lpTag){console.log("LP tag not Loaded");return;}
var section=["L1:wireless"];stopInfinite=0;var paths=document.location.pathname.split("/").filter(Boolean);for(var i=0;i0&&creditHoldCodes[0]!="HD"&&creditHoldCodes[1]!="HD"){try{section.push("messagingExclude");if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{console.log("credithold messaging exclude change1");window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}catch(e)
{console.log("credithold messaging exclude change1");}
return;}
if(creditHoldCodes.length>0&&(creditHoldCodes[0]=="HD"||creditHoldCodes[1]=="HD")){try{sdeCreditData.error.message=creditHoldCodes[0];}catch(e){}}}else if(lpPageHardResponse==""&&window.location.href.indexOf("creditHold.html")!=-1)
{try{section.push("messagingExclude");if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{console.log("credithold messaging exclude change1");window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}catch(e)
{console.log("credithold messaging exclude change1");}
return;}
var lpCartData={};if(typeof vzwDL!='undefined'&&vzwDL!==null&&typeof vzwDL.cart!='undefined'&&vzwDL.cart!=null){lpCartData=vzwDL.cart;}
else if(typeof vzdl!='undefined'&&vzdl!==null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.product!='undefined'&&vzdl.txn.product!=null){lpCartData=vzdl.txn.product;}
if(Object.keys(lpCartData).length>0){lpTag.sdes=lpTag.sdes||[];var lpCartItems=[];if(typeof lpCartData.items!="undefined"&&lpCartData.items!=null){lpCartItems=lpCartData.items;}
else if(typeof lpCartData.current!="undefined"&&lpCartData.current!=null){lpCartItems=lpCartData.current;}
if(lpCartItems&&lpCartItems.length>0){var sdeCart={products:[],};for(var i=0;i0){lpTag.sdes=lpTag.sdes||[];var lpPurchaseItems=[];if(typeof lpPurchaseData.items!="undefined"&&lpPurchaseData.items!=null){lpPurchaseItems=lpPurchaseData.items;}
else if(typeof lpPurchaseData.current!="undefined"&&lpPurchaseData.current!=null){lpPurchaseItems=lpPurchaseData.current;}
if(lpPurchaseItems&&lpPurchaseItems.length>0){var lp_order_total=0;try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderTotal!='undefined'&&vzwDL.purchase.orderTotal!=null&&vzwDL.purchase.orderTotal!="")
{try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.total!='undefined'&&vzdl.txn.total!=null&&vzdl.txn.total!="")
{try{lp_order_total=parseFloat(vzdl.txn.total);}catch(e){}}}
catch(e)
{}
var lpOrderID="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderNumber!='undefined'&&vzwDL.purchase.orderNumber!=null&&vzwDL.purchase.orderNumber!=""){lpOrderID=vzwDL.purchase.orderNumber;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.id!='undefined'&&vzdl.txn.id!=null&&vzdl.txn.id!=""){lpOrderID=vzdl.txn.id;}
sdePurchaseData={type:"purchase",currency:"USD",orderId:lpOrderID,total:lp_order_total,cart:{products:[],},};for(var j=0;j0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!="")
{window.lpTag.newPage(document.URL,newPageData);}}catch(e){}}
function hideLPChatButton(){try{if(lpBauFlow){if(document.getElementById("inqC2CImgContainer_Fixed1")){document.getElementById("inqC2CImgContainer_Fixed1").style.display="none";}
if(document.getElementById("nuance-chat-container-1")){document.getElementById("nuance-chat-container-1").style.display="none";}
if(document.getElementById("LPMcontainer-1597421234268-4")){document.getElementById("LPMcontainer-1597421234268-4").style.display="none";}
if(document.getElementById("nuance-chat-container-2")){document.getElementById("nuance-chat-container-2").style.display="none";}
try{lpTag.events.hasFired('RENDERER_STUB','AFTER_CREATE_ENGAGEMENT_INSTANCE').forEach(function(e){var chatEngagementDiv=document.getElementById(e.data.eng.mainContainer.id);if(typeof chatEngagementDiv!="undefined"&&chatEngagementDiv!=null){chatEngagementDiv.style.display="none";}});}
catch(e){}
if(window.lpTag){window.lpTag.events.trigger("LP_OFFERS","HIDE");}}
else{var lpNBXStickyButtonDom=document.getElementById("vzChatWithUs");var lpNBXEmbeddedButtonDom=document.getElementById("vzChat");if(typeof lpNBXStickyButtonDom!="undefined"&&lpNBXStickyButtonDom!=null){lpNBXStickyButtonDom.style.display="none"}
if(typeof lpNBXEmbeddedButtonDom!="undefined"&&lpNBXEmbeddedButtonDom!=null){lpNBXEmbeddedButtonDom.style.display="none"}}}
catch(e){}}
function displayLPChatButton(){try{if(lpBauFlow){if(lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.length>1){for(var i=0;i0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}
if(document.getElementById("inqC2CImgContainer_Fixed1")){document.getElementById("inqC2CImgContainer_Fixed1").style.display="block";}
if(document.getElementById("nuance-chat-container-1")){document.getElementById("nuance-chat-container-1").style.display="block";}
if(document.getElementById("nuance-chat-container-2")){document.getElementById("nuance-chat-container-2").style.display="block";}}catch(e){}}
else{nbxLpExposedData()
var lpNBXStickyButtonDom=document.getElementById("vzChatWithUs");var lpNBXEmbeddedButtonDom=document.getElementById("vzChat");if(typeof lpNBXStickyButtonDom!="undefined"&&lpNBXStickyButtonDom!=null){lpNBXStickyButtonDom.style.display="block"}
if(typeof lpNBXEmbeddedButtonDom!="undefined"&&lpNBXEmbeddedButtonDom!=null){lpNBXEmbeddedButtonDom.style.display="block"}
lpNbxEnableProactiveChat(lpNBXObject);}}catch(e){}}
function getJWTToken(){try{function getTokenDetails(){console.log("*** in gettokendetails *** "+new Date().toString()+" JWT : "+window.sessionStorage.getItem("wjt"));if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.getAuthJWTToken!="undefined"&&EchannelVera.lpUtilsService.getAuthJWTToken!=null){console.log("*** before getJWTToken LP call *** "+new Date().toString());EchannelVera.lpUtilsService.getAuthJWTToken();console.log("*** after getJWTToken LP call *** "+new Date().toString());}}
try{var vjwt=window.sessionStorage.getItem("wjt");}catch(er){}
pushingAuthValue()
if(vjwt===undefined||vjwt===null||vjwt===""){getTokenDetails();}}catch(jerr){}}
var getTokenInterval=setInterval(function(){try{var wjt=window.sessionStorage.getItem("wjt");}catch(errr){}
pushingAuthValue()
if(wjt===null||wjt===""){getJWTToken();}else{clearInterval(getTokenInterval);}},5000);setTimeout(function(){clearInterval(getTokenInterval);},60000);function lpGetAuthenticationToken(callback){var wjt="";try{var lpCht=readTCCookieInfo("LP_CHAT_IN_PROGRESS");if(readTCCookieInfo("lp_jwt_wln")!=null&&readTCCookieInfo("lp_jwt_wln")!=""&&lpCht!=null&&lpCht=='Y')
{wjt=readTCCookieInfo("lp_jwt_wln");}else{wjt=window.sessionStorage.getItem("wjt");}}catch(rerr){wjt=window.sessionStorage.getItem("wjt");console.log("LPCB error"+rerr);}
try{pushingAuthValue()
if(typeof wjt!=="undefined"&&wjt!==null&&wjt!==""){callback(wjt);}
else{callback(null,'JWT error');}}catch(e){}}
function lpRetailChatAuth(callback){var wjt="";try{var lpCht=readTCCookieInfo("LP_CHAT_IN_PROGRESS");if(readTCCookieInfo("lp_jwt_wln")!=null&&readTCCookieInfo("lp_jwt_wln")!=""&&lpCht!=null&&lpCht=='Y')
{wjt=readTCCookieInfo("lp_jwt_wln");}else{wjt=window.sessionStorage.getItem("wjt");}}catch(rerr){wjt=window.sessionStorage.getItem("wjt");console.log("LPCB error"+rerr);}
try{pushingAuthValue()
if(typeof wjt!=="undefined"&&wjt!==null&&wjt!==""){callback(wjt);}
else{callback(null,'JWT error');}}catch(e){}}
var checkHideChatTimer=1000;function checkHideChatButtonTimer(){try{if(checkHideChatTimer>10000){checkHideChatTimer+=checkHideChatTimer;}else if(checkHideChatTimer<=10000){checkHideChatTimer=checkHideChatTimer+1000;}
if(checkHideChatTimer>60000){return;}else if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null&&checkHideChatTimer<60000){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()){try{try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 7")}
hideLPChatButton();}catch(erx){console.log("check HICB"+erx);}
setTimeout(checkHideChatButtonTimer,checkHideChatTimer);}}}catch(err){console.log("err"+err);}}
var checkHideChatTimer2=1000;function hideLPWithTimer(){try{if(checkHideChatTimer2>10000){checkHideChatTimer2+=checkHideChatTimer2;}else if(checkHideChatTimer2<=10000){checkHideChatTimer2=checkHideChatTimer2+1000;}
if(checkHideChatTimer2>60000){return;}else{try{hideLPChatButton();}catch(cberr){console.log("HideCB"+cberr);}
setTimeout(hideLPWithTimer,checkHideChatTimer2);}}catch(hideerr){console.log("err"+hiderr);}}
function onWindowJWTMessage(event){try{var data=event.data;if(data.isAuthToken){var wjt1=data.token;window.sessionStorage.setItem("wjt",wjt1);console.log("*** after in windowjwtmessage response from ask vz *** "+new Date().toString()+" WJT received from session storage : "+window.sessionStorage.getItem("wjt"));try{if(window.location.host.split('.').length>0&&(window.location.host.split('.')[0].toLowerCase()=="www"||window.location.host.split('.')[0].toLowerCase().indexOf('vzwqa')!=-1))
{document.cookie="lp_jwt_wireless=Y;path=/;domain=verizon.com";document.cookie="lp_jwt_wireless=Y;path=/;domain=verizonwireless.com";}}catch(e){console.log("loggedin MDN changes 8");}}}catch(e){}
}
function checkLPChatAvailability(lppriority,lpwaittime,lpunassignedconv){var checkLPAvailable=true;try{if((lppriority=="P4"||lppriority=="P5")&&lpwaittime>900001&&lpunassignedconv<400){return true;}else if(lpwaittime>900001&&lpunassignedconv<200){return true;}else if(lppriority=="P1"&&(lpwaittime>240000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority=="P2"&&(lpwaittime>360000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority=="P3"&&(lpwaittime>480000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority=="P4"&&(lpwaittime>600000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority=="P5"&&(lpwaittime>900000||lpunassignedconv>400)){checkLPAvailable=false;}else if(lppriority==""&&(lpwaittime>900000||lpunassignedconv>400)){checkLPAvailable=false;}}
catch(queueHealthAPIerror){console.log("queueHealthAPIerror "+queueHealthAPIerror);}
return checkLPAvailable;}
function _createForOfIteratorHelper(o,allowArrayLike){var it;if(typeof Symbol==="undefined"||o[Symbol.iterator]==null){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}
var normalCompletion=true,didErr=false,err;return{s:function s(){it=o[Symbol.iterator]();},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}
function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}
function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}
var normalCompletion=true,didErr=false,err;return{s:function s(){it=o[Symbol.iterator]();},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}
function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}
function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i0){var textNode=lpTag.external.custEngagement._findNode(lpTag.external.custEngagement.placeholder,mutation.target);if(textNode)textNode.parentNode.replaceChild(document.createTextNode(error),textNode);}}}catch(err){_iterator.e(err);}finally{_iterator.f();}});transcriptAreas.forEach(function(area){transcriptObserver.observe(area,{childList:true});});},_getErrorText:function _getErrorText(){return msg;},_findNode:function _findNode(text,currentNode){if(currentNode.nodeType===3&¤tNode.textContent.includes(text)){return currentNode;}else{for(var i=0;i5){aSub=vzwDL.authentication.mdn;}
else if(typeof vzwDL.authentication.visHashedMdn!='undefined'&&vzwDL.authentication.visHashedMdn!=null&&vzwDL.authentication.visHashedMdn!=""&&vzwDL.authentication.visHashedMdn.length>5){aSub=vzwDL.authentication.visHashedMdn;}}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id!=""){aSub=vzdl.user.id;}}
catch(e){}
callback({iss:"verizon.com",acr:"loa1",sub:aSub,});}}catch(e){}
lpTag.section.push("Auth:true");var section=(window.lpTag&&window.lpTag.section)||[];if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}}
catch(e){}}
function changeLPJWTCookieValue(){try{var lpJwtCookieFlag=false;if(isUserAuthenticated()){lpJwtCookieFlag=false;}else{lpJwtCookieFlag=true;}
if(lpJwtCookieFlag){document.cookie="lp_jwt_wireless=N;path=/;domain=verizon.com";document.cookie="lp_jwt_wireless=N;path=/;domain=verizonwireless.com";}}catch(e){console.log("loggedin MDN changes 9")}}
function vzdlSiteCatalyst(aeventId,pageName,aeventName,aAction,customerId,issueId,agentId){try{if(lpBauFlow==false){return;}
if(typeof agentId=="undefined"||agentId==null){agentId="";}
if(typeof issueId=="undefined"||issueId==null){issueId="";}
if(typeof issueId!="undefined"&&issueId!=null&&issueId!=""){issueId="vzw-"+issueId;}
if(typeof aeventId!='undefined'&&aeventId!=null){if(aeventId=="event236"){issueId="";}}
omniData={}
var omniPageName="LpChatWindow";var omniEventId="event236";if(typeof pageName!="undefined"&&pageName!=null){omniPageName=pageName;}
if(typeof agentId!="undefined"&&agentId!=null){omniData.txn={agent:agentId};}
if(typeof aeventId!="undefined"&&aeventId!=null){omniEventId=aeventId;}
if(typeof issueId!="undefined"&&issueId!=null){omniData.user={chatId:issueId};}
if(typeof vztag!="undefined"&&vztag!=null&&typeof vztag.api!="undefined"&&vztag.api!=null&&typeof vztag.api.dispatch!="undefined"&&vztag.api.dispatch!=null&&typeof vztag.api.dispatch=="function"){vztag.api.dispatch("sendData",{name:"set chat id",detail:omniPageName,event:omniEventId,data:omniData})
}}
catch(e){}}
function nbxReporting(aeventId,aeventName,soiId,conversationId){try{if(lpBauFlow){return;}
if(typeof aeventId=="undefined"||aeventId==null){aeventId="";}
if(typeof soiId=="undefined"||soiId==null){soiId="";}
if(typeof conversationId=="undefined"||conversationId==null){conversationId="";}
if(typeof aeventName=="undefined"||aeventName==null){aeventName="";}
if(typeof vztag!="undefined"&&vztag!=null&&typeof vztag.api!="undefined"&&vztag.api!=null&&typeof vztag.api.dispatch!="undefined"&&vztag.api.dispatch!=null&&typeof vztag.api.dispatch=="function"){if(aeventName=="NBXClicked"){vztag.api.dispatch("fragment",{name:"chat: user sent message"+soiId,event:aeventId});}
else{vztag.api.dispatch("fragment",{name:"LP targeted "+soiId,event:aeventId});}
vztag.api.dispatch("sendData",{name:"LP data",data:{user:{chatId:conversationId},target:{engagement:{id:soiId},}}});}}
catch(e){}}
function sendCustomEventChat(evt){try{if(document.createEvent&&document.body.dispatchEvent){var event=document.createEvent('Event');event.initEvent(evt,true,true);document.body.dispatchEvent(event);}else if(window.CustomEvent&&document.body.dispatchEvent){var event=new CustomEvent(evt,{bubbles:true,cancelable:true});document.body.dispatchEvent(event);}}
catch(e){}}
function isUserAuthenticated(){var isAuth=false;try{if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.authentication!="undefined"&&vzwDL.authentication!=null&&vzwDL.authentication!=""&&typeof vzwDL.authentication.visHashedMdn!="undefined"&&vzwDL.authentication.visHashedMdn!=null&&vzwDL.authentication.visHashedMdn!="")
{isAuth=true;}
else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id!="")
{isAuth=true;}
else if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!="undefined"&&vzwDL.page!=null&&vzwDL.page!=""&&typeof vzwDL.page.authStatus!="undefined"&&vzwDL.page.authStatus!=null&&vzwDL.page.authStatus!=""&&vzwDL.page.authStatus.toLowerCase()=="authenticated")
{isAuth=true;}
else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.authStatus!="undefined"&&vzdl.user.authStatus!=null&&vzdl.user.authStatus!=""&&(vzdl.user.authStatus.toLowerCase()=="authenticated"||vzdl.user.authStatus.toLowerCase().replace(/ +/g,"")=="loggedin"))
{isAuth=true;}}
catch(e){}
return isAuth;}
function getLpSiteId(){var lpChatSiteId="23979466";try{if(window.location.hostname.toLowerCase().indexOf("vzwqa")!=-1||window.location.hostname.toLowerCase().indexOf("accessmgrqa")!=-1)
{lpChatSiteId="87604225";}
return lpChatSiteId;}catch(e)
{return lpChatSiteId;}}
var isNBXFunctionCalled=false;var holdOutGroupSelectionCount=0;var lpBauFlow=true;var lpNBXObject={};var sampleSOEObject={"propositionId":["plp_02","plp_04","plp_06"],"LC_Available":["True","True","True"],"Priority":["P2","P2","P2"],"Embedded":"Y","Sticky":"Y","Overlay":"Y","Overlay_TimeDelay":"25","Page_Location":"Gridwall","Sub_Page_Type":"","intent_Flow":"","Customer_Type":"NC","Authentication":"N","Language":"English","SOI_Engagement_ids":[{"sticky_soi_id":"500007484","embedded_soi_id":"500007360","overlay_soi_id":"500007486"}],"Other":""}
function launchLiveChatFromNBX(lpButtonType){console.log(lpButtonType,"LP Button type");try{if(typeof lpNBXObject!="undefined"&&lpNBXObject!=null&&Object.keys(lpNBXObject).length!=0){var lpNbxSoids={};if(Object.keys(lpNBXLpSoiEngagementId).length!=0){lpNbxSoids=lpNBXLpSoiEngagementId;}
if(typeof lpButtonType!="undefined"&&lpButtonType!=null&&lpButtonType!=""&&lpButtonType=="embedded"){if(typeof lpNBXObject.Embedded!="undefined"&&lpNBXObject.Embedded!=null&&lpNBXObject.Embedded=="Y"){var lpEmbeddedSoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.embedded_soi_id!="undefined"&&lpNbxSoids.embedded_soi_id!=null&&lpNbxSoids.embedded_soi_id!=""){lpEmbeddedSoiId==lpNbxSoids.embedded_soi_id;}
nbxReporting("event247","NBXClicked",lpEmbeddedSoiId,"")}}
if(typeof lpButtonType!="undefined"&&lpButtonType!=null&&lpButtonType!=""&&lpButtonType=="sticky"){if(typeof lpNBXObject.Sticky!="undefined"&&lpNBXObject.Sticky!=null&&lpNBXObject.Sticky=="Y"){var lpStickySoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.sticky_soi_id!="undefined"&&lpNbxSoids.sticky_soi_id!=null&&lpNbxSoids.sticky_soi_id!=""){lpStickySoiId==lpNbxSoids.sticky_soi_id;}
nbxReporting("event248","NBXClicked",lpStickySoiId,"")}}}
if(typeof coLpEngagementID!="undefined"&&coLpEngagementID!=null&&coLpEngagementID!=""){lpTag.taglets.rendererStub.click(coLpEngagementID);}}
catch(e){}}
function triggerLiveChatfromNBXResponse(lpNBXParams){try{return;lpNBXObject=lpNBXParams;isNBXFunctionCalled=true;setNBXLC_Available();setNBXLpPriority();setNBXLpSoiEngagementID();console.log(lpNBXParams,"LP NBX params");if(typeof lpNBXObject!="undefined"&&lpNBXObject!=null&&Object.keys(lpNBXObject).length!=0){if(typeof lpNBXObject.propositionId!="undefined"&&lpNBXObject.propositionId!=null&&lpNBXObject.propositionId.length>0){if(lpNBXObject.propositionId.indexOf("P_NoNBA")!=-1){lpBauFlow=true;}
else{lpBauFlow=false;}}
var lpNbxSoids={};if(Object.keys(lpNBXLpSoiEngagementId).length!=0){lpNbxSoids=lpNBXLpSoiEngagementId;}
if(typeof lpNBXObject.Embedded!="undefined"&&lpNBXObject.Embedded!=null&&lpNBXObject.Embedded=="Y"){var lpEmbeddedSoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.embedded_soi_id!="undefined"&&lpNbxSoids.embedded_soi_id!=null&&lpNbxSoids.embedded_soi_id!=""){lpEmbeddedSoiId==lpNbxSoids.embedded_soi_id;}
nbxReporting("event241","NBXTargeted",lpEmbeddedSoiId,"")}
if(typeof lpNBXObject.Sticky!="undefined"&&lpNBXObject.Sticky!=null&&lpNBXObject.Sticky=="Y"){var lpStickySoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.sticky_soi_id!="undefined"&&lpNbxSoids.sticky_soi_id!=null&&lpNbxSoids.sticky_soi_id!=""){lpStickySoiId==lpNbxSoids.sticky_soi_id;}
nbxReporting("event242","NBXTargeted",lpStickySoiId,"")}
if(typeof lpNBXObject.Overlay!="undefined"&&lpNBXObject.Overlay!=null&&lpNBXObject.Overlay=="Y"){var lpOverlaySoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.overlay_soi_id!="undefined"&&lpNbxSoids.overlay_soi_id!=null&&lpNbxSoids.overlay_soi_id!=""){lpOverlaySoiId==lpNbxSoids.overlay_soi_id;}
nbxReporting("event243","NBXTargeted",lpOverlaySoiId,"")}}}
catch(e){}}
function lpNbxEnableProactiveChat(lpNBXObject){try{if(typeof lpNBXObject.Overlay!="undefined"&&typeof lpNBXObject.Overlay!=null&&lpNBXObject.Overlay=="Y"){var lpStickyButtonDom=document.getElementById("vzChatWithUs");if((VZ_Chat.getCookie("proActiveDisable"+lpNBXLpPriority)=="true"))
{return false;}
if(typeof lpNBXObject.Overlay!="undefined"&&lpNBXObject.Overlay!=null&&lpNBXObject.Overlay=="Y"){var lpNbxSoids={};if(Object.keys(lpNBXLpSoiEngagementId).length!=0){lpNbxSoids=lpNBXLpSoiEngagementId;}
var lpOverlaySoiId="";if(Object.keys(lpNbxSoids).length!=0&&typeof lpNbxSoids.overlay_soi_id!="undefined"&&lpNbxSoids.overlay_soi_id!=null&&lpNbxSoids.overlay_soi_id!=""){lpOverlaySoiId==lpNbxSoids.overlay_soi_id;}
nbxReporting("event249","NBXClicked",lpOverlaySoiId,"")}
if(typeof lpStickyButtonDom!="undefined"&&lpStickyButtonDom!=null){if(lpNBXObject.Overlay_TimeDelay!=0){var lpProctiveChatTimeDelay=lpNBXObject.Overlay_TimeDelay*1000;setTimeout(function(){lpStickyButtonDom.click();},lpProctiveChatTimeDelay);}
else{lpStickyButtonDom.click();}}}}
catch(e){}}
function nbxInit(){console.log("called in nbx Init");var RPSflow="";try{RPSflow=window.isRPSFlow;}catch(errrrr){}
try{if(VZ_Chat.getCookie("lpFdvLockChatInProgress")!=null&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=""&&VZ_Chat.getCookie("lpFdvLockChatInProgress")=="true"){if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()&&typeof EchannelVera.lpUtilsService.removeUnifiedChatButton!="undefined"&&EchannelVera.lpUtilsService.removeUnifiedChatButton!=null){EchannelVera.lpUtilsService.removeUnifiedChatButton();}}}}catch(err){}
try{if((window.sessionStorage.getItem("UNIFIED_CHAT_INPROGRESS")=="true")&&(VZ_Chat.getCookie('UNIFIED_CHAT_INPROGRESS')!=null&&VZ_Chat.getCookie('UNIFIED_CHAT_INPROGRESS').toLowerCase()=="open")){isLpTagBlocked=true;return;}
if(RPSflow=="true"||RPSflow==true){return;}
if(document.referrer.indexOf("configuration")!=-1&&document.URL.indexOf("trade-in")!=-1){return;}}catch(tagEr){}
if(typeof console==="undefined"){window.console={};console.log=function(){};console.error=function(){};}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};}
try{if(VZ_Chat.getCookie("isLpFirstMessage")==null||VZ_Chat.getCookie("isLpFirstMessage")==""){document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";}}catch(e){}
if(document.readyState==="interactive"||document.readyState==="complete"){if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 3")}
downloadChatTag();coInitVars();}}else{document.addownloadChatTagdEventListener("DOMContentLoaded",function(){if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 5");}
downloadChatTag();coInitVars();}});}}
function coInitVars(){try{coBindDL();coScrub();coBuild();}
catch(e){}}
function coBuild(){coBuildCartInfo(getWirelessDL());coBuildConvVars()};function coScrub(){coSendSectionData();coSendPageInfo();if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.authentication)&&checkLPValidVariable(vzwDL.authentication.visHashedMdn)&&checkLPValidVariable(vzwDL.authentication.accountNumber)&&!(vzwDL.authentication.prepayInd=="Y"||vzwDL.authentication.prepayInd=="1")){coSendCustData();}
else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id&&typeof vzdl.user.accountLast2!="undefined"&&vzdl.user.accountLast2!=null&&vzdl.user.accountLast2&&!(vzdl.user.accountType=="Y"||vzdl.user.accountType=="1")){coSendCustData();}
var errorData="";try{errorData=vzdl.error;}catch(err){}
if(errorData){if(vzdl.error.code!=undefined&&vzdl.error.code!=null&&vzdl.error.code!=""){var errorPageCode;var errorPageMessage;try{errorPageCode=vzdl.error.code.split("|")[0];errorPageMessage=vzdl.error.code.split("|")[1];}catch(ERR){}
coSendErrorMessage(errorPageCode,errorPageMessage);}}};function coBindDL(){if(typeof vzwDL==="undefined"&&typeof vzdl==="undefined"){return;}
if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.chat)){chatVars=vzwDL.page.chat;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.user)&&checkLPValidVariable(vzdl.user.chatId)){chatVars=vzdl.user.chatId;}
isReady=true;}
var cust_type="";function coSendSectionData(){try{var lpTag=window.lpTag;lpTag.sdes=lpTag.sdes||[];lpTag.section=["wireless"];lpTag.section.push("PEGA");if(lpNBXObject.Authentication.toLowerCase()=="y")
{cust_type="EX";lpTag.section.push("ex");lpTag.section.push("auth:true");}else{cust_type="NC";lpTag.section.push("nc");lpTag.section.push("auth:false");}
if(lpNBXLpPriority!=""){lpTag.section.push(lpNBXLpPriority);}}
catch(e){}
try{var channelOrchestrationIndicator="";if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.throttleList!="undefined"&&vzdl.page.throttleList!=null&&vzdl.page.throttleList!=""){channelOrchestrationIndicator=vzdl.page.throttleList;}
if(channelOrchestrationIndicator!=""&&(channelOrchestrationIndicator.indexOf('|ShowProactiveLiveChat|')!=-1||channelOrchestrationIndicator.indexOf('|ProActiveChat|')!=-1)){lpTag.section.push('ChannelOrchestrationExperience');}
if((typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!="undefined"&&vzwDL.page!=null&&vzwDL.page!=""&&typeof vzwDL.page.fireProactiveChat!="undefined"&&vzwDL.page.fireProactiveChat!=null&&vzwDL.page.fireProactiveChat!=""&&vzwDL.page.fireProactiveChat.toLowerCase()=="y")||(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.fireProactiveChat!="undefined"&&vzdl.page.fireProactiveChat!=null&&vzdl.page.fireProactiveChat!=""&&vzdl.page.fireProactiveChat.toLowerCase()=="y")){if(typeof lpTag!='undefined'&&lpTag!=null&&Object.keys(lpTag).length!=0){if(lpTag&&lpTag.section&&lpTag.section.indexOf('CMP:5GHomeQR')<=-1){var section=(window.lpTag&&window.lpTag.section)||[];lpTag.section.push('CMP:5GHomeQR');}}}}catch(e){};coLpBindEvents();coSendBrowsingInfo();}
function coSendPageInfo(){try{lpTag.sdes=window.lpTag.sdes||[];lpTag.sdes.push({type:"lead",lead:{topic:window.document.URL,value:-1,leadId:"Page View",},});if(Object.keys(lpNBXLpSoiEngagementId).length!=0){var coLpSalesSearchInfo={type:"searchInfo",keywords:["type:PEGA","customer_type:"+cust_type,"page_name:"+lpNBXObject.Page_Location,"embedded_soi_id:"+lpNBXLpSoiEngagementId.embedded_soi_id,"sticky_soi_id:"+lpNBXLpSoiEngagementId.sticky_soi_id,"overlay_soi_id:"+lpNBXLpSoiEngagementId.overlay_soi_id,"sub_page_type:"+lpNBXObject.Sub_Page_Type,"priority:"+lpNBXLpPriority,"other:"+lpNBXObject.Other]}}
else{var coLpSalesSearchInfo={type:"searchInfo",keywords:["type:PEGA","customer_type:"+cust_type,"page_name:"+lpNBXObject.Page_Location,"sub_page_type:"+lpNBXObject.Sub_Page_Type,"priority:"+lpNBXLpPriority,"other:"+lpNBXObject.Other]}}
lpTag.sdes.push(coLpSalesSearchInfo);}catch(e){}}
function coSendBrowsingInfo(){try{lpTag.section.push("VZW");if(document.referrer.toLowerCase().indexOf("5g")!==-1){lpTag.section.push("5g");}else if(window.document.URL.split("?")[0].toLowerCase().indexOf("5g")!=-1){lpTag.section.push("5g");}
if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.section2)){lpTag.section.push(VZ_Chat.replaceAll(vzwDL.page.section2));}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&typeof vzdl.page.siteSection!="undefined"&&vzdl.page.siteSection!=null&&vzdl.page.siteSection!=""){lpTag.section.push(VZ_Chat.replaceAll(vzdl.page.siteSection));}
if(window.location.hostname.toLowerCase().indexOf("es-vzwqa")!=-1){lpTag.section.push("spanish");}
else{if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.language)){lpTag.section.push(vzwDL.page.language);}
else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.page)&&checkLPValidVariable(vzdl.page.language)){lpTag.section.push(vzdl.page.language);}}
var flowData="";try{if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.page)&&checkLPValidVariable(vzdl.page.flow)){flowData=VZ_Chat.replaceAll(vzdl.page.flow);}}catch(e){}
if(typeof flowData!="undefined"&&flowData!=null&&flowData!=""){lpTag.section.push(flowData);}else if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.flowName)){lpTag.section.push(VZ_Chat.replaceAll(vzwDL.page.flowName));}
if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.page)&&checkLPValidVariable(vzwDL.page.mlsEXP)){lpTag.section.push(VZ_Chat.replaceAll(vzwDL.page.mlsEXP));}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&typeof vzdl.page.throttle!="undefined"&&vzdl.page.throttle!=null&&vzdl.page.throttle!=""){lpTag.section.push(VZ_Chat.replaceAll(vzdl.page.throttle));}
var errorValue="";try{errorValue=vzdl.error.code;}catch(errrr){}
try{if(vzdl.error.code!=undefined&&vzdl.error.code!=null&&vzdl.error.code!=""){var errorPageCode;var errorPageMessage;var extractSOIScore=null;var lpErrorProactiveChatIndicator="";try{errorPageCode=vzdl.error.code.split("|")[0];errorPageMessage=vzdl.error.code.split("|")[1];if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.error!='undefined'&&vzdl.error!=null&&vzdl.error.soiResponse!=null){extractSOIScore=extractSOIScoreFromJSON(vzdl.error.soiResponse);if(extractSOIScore!=null){extractSOIScore=parseFloat(extractSOIScore);}}
if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.error!='undefined'&&vzdl.error!=null&&typeof vzdl.error.proactiveChatIndicator!='undefined'&&vzdl.error.proactiveChatIndicator!=null&&vzdl.error.proactiveChatIndicator!=""){lpErrorProactiveChatIndicator=vzdl.error.proactiveChatIndicator;}
if(lpErrorProactiveChatIndicator.toLowerCase()=="y"||((extractSOIScore==null||extractSOIScore>0.135||isNaN(extractSOIScore))&&(typeof errorPageMessage!='undefined'&&errorPageMessage!=null&&errorPageMessage.trim()!=""))){lpTag.section.push("Error:true");}
if(vzdl!=null&&vzdl.error!=null&&typeof vzdl.error.proactiveChatCustomMSG!='undefined'&&vzdl.error.proactiveChatCustomMSG!=''&&vzdl.error.proactiveChatCustomMSG!=null){customEngagement(proactiveChatCustomMSG);}}catch(ERR){console.log("extractSOIScore error "+ERR);}}}catch(e){};var vjwtAvailable=window.sessionStorage.getItem("wjt");if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.authentication!="undefined"&&vzwDL.authentication!=null&&vzwDL.authentication!=""&&vzwDL.authentication.mdn&&typeof vjwtAvailable!="undefined"&&vjwtAvailable!=null&&vjwtAvailable!=""){lpTag.section.push("Auth:true");}else if(isUserAuthenticated()&&typeof vjwtAvailable!="undefined"&&vjwtAvailable!=null&&vjwtAvailable!=""){lpTag.section.push("Auth:true");}
if(window.document.URL.indexOf("tlogin.verizonwireless.com")!=-1||window.document.URL.indexOf("login.verizonwireless.com")!=-1||window.document.URL.indexOf("login.verizon.com")!=-1){lpTag.section.push("defaultexclude");}}
catch(e){}}
var coLpEngagementID="";function coLpBindEvents(){window.lpTag.events.bind("RENDERER_STUB","AFTER_CREATE_ENGAGEMENT_INSTANCE",function(data){console.log(data);coLpEngagementID=data.eng.engData.engagementId;if(lpNBXLcAvailable=="Y"&&!lpBauFlow){displayLPChatButton();}})}
function loadLpLibrary(){(window.lpTag=window.lpTag||{}),"undefined"==typeof window.lpTag._tagCount?((window.lpTag={wl:lpTag.wl||null,scp:lpTag.scp||null,site:getLpSiteId(),section:lpTag.section||"",tagletSection:lpTag.tagletSection||null,autoStart:lpTag.autoStart!==!1,ovr:lpTag.ovr||{},_v:"1.10.0",_tagCount:1,protocol:"https:",events:{bind:function(t,e,i){lpTag.defer(function(){lpTag.events.bind(t,e,i);},0);},trigger:function(t,e,i){lpTag.defer(function(){lpTag.events.trigger(t,e,i);},1);},},defer:function(t,e){0===e?((this._defB=this._defB||[]),this._defB.push(t)):1===e?((this._defT=this._defT||[]),this._defT.push(t)):((this._defL=this._defL||[]),this._defL.push(t));},load:function(t,e,i){var n=this;setTimeout(function(){n._load(t,e,i);},0);},_load:function(t,e,i){var n=t;t||(n=this.protocol+
"//"+
(this.ovr&&this.ovr.domain?this.ovr.domain:"lptag.liveperson.net")+
"/tag/tag.js?site="+
this.site);var o=document.createElement("script");o.setAttribute("charset",e?e:"UTF-8"),i&&o.setAttribute("id",i),o.setAttribute("src",n),document.getElementsByTagName("head").item(0).appendChild(o);},init:function(){(this._timing=this._timing||{}),(this._timing.start=new Date().getTime());var t=this;window.attachEvent?window.attachEvent("onload",function(){t._domReady("domReady");}):(window.addEventListener("DOMContentLoaded",function(){t._domReady("contReady");},!1),window.addEventListener("load",function(){t._domReady("domReady");},!1)),"undefined"===typeof window._lptStop&&this.load();},start:function(){this.autoStart=!0;},_domReady:function(t){this.isDom||((this.isDom=!0),this.events.trigger("LPT","DOM_READY",{t:t,})),(this._timing[t]=new Date().getTime());},vars:lpTag.vars||[],dbs:lpTag.dbs||[],ctn:lpTag.ctn||[],sdes:lpTag.sdes||[],hooks:lpTag.hooks||[],identities:lpTag.identities||[],ev:lpTag.ev||[],}),lpTag.init()):(window.lpTag._tagCount+=1);lpTag.autoStart=false;}
function coSendCustData(){try{if(typeof lpTag!='undefined'&&lpTag!=null){var lpAuthenticationCustType="";if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.authentication.custType!="undefined"&&window.vzwDL.authentication!=null&&typeof window.vzwDL.authentication.custType!="undefined"&&window.vzwDL.authentication.custType!=null&&window.vzwDL.authentication.custType!=""){lpAuthenticationCustType=window.vzwDL.authentication.custType;}
else if(typeof vzdl!="undefined"&&vzdl!=null&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&typeof vzdl.user.customerType!="undefined"&&vzdl.user.customerType!=null&&vzdl.user.customerType!=""){lpAuthenticationCustType=vzdl.user.customerType;}
lpTag.sdes=window.lpTag.sdes||[];var lp_gbl_id=VZ_Chat.getCookie("GLOBALID");var lp_vzw_session_id;if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.sessionId!="undefined"&&window.vzwDL.page.sessionId!=null&&window.vzwDL.page.sessionId!=""){lp_vzw_session_id=window.vzwDL.page.sessionId;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.channelSession!="undefined"&&vzdl.page.channelSession!=null&&vzdl.page.channelSession!=""){lp_vzw_session_id=vzdl.page.channelSession;}else if(window.sessionStorage.getItem("SESSION_ID")!=undefined&&window.sessionStorage.getItem("SESSION_ID")!=null&&window.sessionStorage.getItem("SESSION_ID")!=""){lp_vzw_session_id=window.sessionStorage.getItem("SESSION_ID");}else if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.session!="undefined"&&window.vzwDL.page.session!=null&&window.vzwDL.page.session!=""){lp_vzw_session_id=window.vzwDL.page.session;}
if(typeof lp_vzw_session_id!='undefined'&&typeof lp_gbl_id!='undefined'&&lp_vzw_session_id!=null&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeZipCode:lp_gbl_id,storeNumber:lp_vzw_session_id}});}else if(typeof lp_vzw_session_id!='undefined'&&lp_vzw_session_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeNumber:lp_vzw_session_id}});}else if(typeof lp_gbl_id!='undefined'&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{ctype:lpAuthenticationCustType,storeZipCode:lp_gbl_id}});}}}catch(e){console.log("Sending global session id and vzw_session_id failed "+e);}}
function coBuildCartInfo(){try{var lpTag=window.lpTag;var lpCartData={};if(typeof vzwDL!='undefined'&&vzwDL!==null&&typeof vzwDL.cart!='undefined'&&vzwDL.cart!=null){lpCartData=vzwDL.cart;}
else if(typeof vzdl!='undefined'&&vzdl!==null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.product!='undefined'&&vzdl.txn.product!=null){lpCartData=vzdl.txn.product;}
if(Object.keys(lpCartData).length>0){lpTag.sdes=lpTag.sdes||[];var lpCartItems=[];if(typeof lpCartData.items!="undefined"&&lpCartData.items!=null){lpCartItems=lpCartData.items;}
else if(typeof lpCartData.current!="undefined"&&lpCartData.current!=null){lpCartItems=lpCartData.current;}
var sdeCart={type:"cart",currency:"USD",numItems:lpCartItems.length,products:[],};for(var i=0;i0){lpTag.sdes=lpTag.sdes||[];var lpPurchaseItems=[];if(typeof lpPurchaseData.items!="undefined"&&lpPurchaseData.items!=null){lpPurchaseItems=lpPurchaseData.items;}
else if(typeof lpPurchaseData.current!="undefined"&&lpPurchaseData.current!=null){lpPurchaseItems=lpPurchaseData.current;}
lpTag.sdes=window.lpTag.sdes||[];var lpOrderID="";if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderNumber!='undefined'&&vzwDL.purchase.orderNumber!=null&&vzwDL.purchase.orderNumber!=""){lpOrderID=vzwDL.purchase.orderNumber;}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.id!='undefined'&&vzdl.txn.id!=null&&vzdl.txn.id!=""){lpOrderID=vzdl.txn.id;}
var lp_order_total=0;try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.purchase!='undefined'&&vzwDL.purchase!=null&&typeof vzwDL.purchase.orderTotal!='undefined'&&vzwDL.purchase.orderTotal!=null&&vzwDL.purchase.orderTotal!=""){try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}else if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.purchase)&&checkLPValidVariable(vzwDL.purchase.orderTotal)){try{lp_order_total=parseFloat(vzwDL.purchase.orderTotal);}catch(e){}}
else if(typeof vzdl!='undefined'&&vzdl!=null&&typeof vzdl.txn!='undefined'&&vzdl.txn!=null&&typeof vzdl.txn.total!='undefined'&&vzdl.txn.total!=null&&vzdl.txn.total!=""){try{lp_order_total=parseFloat(vzdl.txn.total);}catch(e){}}}
catch(e){}
var lpOrderNumber="";if(typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&checkLPValidVariable(vzwDL.purchase)&&checkLPValidVariable(vzwDL.purchase.orderNumber)){lpOrderNumber=vzwDL.purchase.orderNumber;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&checkLPValidVariable(vzdl.txn)&&checkLPValidVariable(vzdl.txn.id)){lpOrderNumber=vzdl.txn.id;}
var sdePurchases={type:"purchase",currency:"USD",orderId:lpOrderNumber,total:lp_order_total,cart:{products:[],},};for(var j=0;j9){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedinMDN changes")}
downloadChatTag();VZ_Chat.initVars(globalOptionsInit.scrubber,globalOptionsInit.builder);}
else{lpJwtCount++;setTimeout(timerForDelayInJWT,1000);}}catch(e){};}
function downloadChatTag(){try{if(window.parent!=window){return;}
if(isCONBCHEnabled)
{return;}
var lpFdvLockcookie=VZ_Chat.getCookie("lpFdvLockcookie");if(!(VZ_Chat.getCookie("lpFdvLockChatInProgress")=="true"||VZ_Chat.getCookie("lpFdvLockChatInProgress")==true)){if(((typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.authentication!='undefined'&&window.vzwDL.authentication!=null&&typeof window.vzwDL.authentication.fType!='undefined'&&window.vzwDL.authentication.fType!=null))){lpFtype=window.vzwDL.authentication.fType;}
else if((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.authentication!='undefined'&&window.vzdl.authentication!=null&&typeof window.vzdl.authentication.fType!='undefined'&&window.vzdl.authentication.fType!=null)){lpFtype=window.vzdl.authentication.fType;}
else if(((typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.page!='undefined'&&window.vzwDL.page!=null&&typeof window.vzwDL.page.fraudIndicator!='undefined'&&window.vzwDL.page.fraudIndicator!=null))){lpFtype=window.vzwDL.page.fraudIndicator;}
else if(((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.page!='undefined'&&window.vzdl.page!=null&&typeof window.vzdl.page.fraudIndicator!='undefined'&&window.vzdl.page.fraudIndicator!=null))){lpFtype=window.vzdl.page.fraudIndicator;}
if(lpFtype!=''&&lpFtype.toUpperCase()!="R"){return;}
else if(lpFdvLockcookie!=undefined&&lpFdvLockcookie!=null&&lpFdvLockcookie!=""&&lpFdvLockcookie.toUpperCase()!="R"){return;}
if((window.location.href.indexOf('/dtd/shop')!=-1)||(window.location.href.indexOf('/vfw/dtd/')!=-1)||(window.location.href.indexOf('/vfw/cust/dtd/')!=-1)){return;}
if((window.location.href.indexOf('/vfw/cust/swap/getDeviceDetails')!=-1)||(window.location.href.indexOf('/vfw/cust/swap/getCartDetails')!=-1)||(window.location.href.indexOf('/vfw/cust/swap/reviewOrder')!=-1)||(window.location.href.indexOf('/vfw/cust/swap/orderConfirmation')!=-1)){return;}
if((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.page!='undefined'&&window.vzdl.page!=null&&typeof window.vzdl.page.vendorPartnerId!='undefined'&&window.vzdl.page.vendorPartnerId!=null&&window.vzdl.page.vendorPartnerId!="")||(typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.page!='undefined'&&window.vzwDL.page!=null&&typeof window.vzwDL.page.vendorPartnerId!='undefined'&&window.vzwDL.page.vendorPartnerId!=null&&window.vzwDL.page.vendorPartnerId!="")){return;}}}
catch(e){}
(window.lpTag=window.lpTag||{}),"undefined"==typeof window.lpTag._tagCount?((window.lpTag={wl:lpTag.wl||null,scp:lpTag.scp||null,site:window.location.hostname.toLowerCase().indexOf("vzwqa")!=-1?"87604225":"23979466"||"23979466",section:lpTag.section||"",tagletSection:lpTag.tagletSection||null,autoStart:lpTag.autoStart!==!1,ovr:lpTag.ovr||{},_v:"1.10.0",_tagCount:1,protocol:"https:",events:{bind:function(t,e,i){lpTag.defer(function(){lpTag.events.bind(t,e,i);},0);},trigger:function(t,e,i){lpTag.defer(function(){lpTag.events.trigger(t,e,i);},1);},},defer:function(t,e){0===e?((this._defB=this._defB||[]),this._defB.push(t)):1===e?((this._defT=this._defT||[]),this._defT.push(t)):((this._defL=this._defL||[]),this._defL.push(t));},load:function(t,e,i){var n=this;setTimeout(function(){n._load(t,e,i);},0);},_load:function(t,e,i){var n=t;t||(n=this.protocol+
"//"+
(this.ovr&&this.ovr.domain?this.ovr.domain:"lptag.liveperson.net")+
"/tag/tag.js?site="+
this.site);var o=document.createElement("script");o.setAttribute("charset",e?e:"UTF-8"),i&&o.setAttribute("id",i),o.setAttribute("src",n),document.getElementsByTagName("head").item(0).appendChild(o);},init:function(){(this._timing=this._timing||{}),(this._timing.start=new Date().getTime());var t=this;window.attachEvent?window.attachEvent("onload",function(){t._domReady("domReady");}):(window.addEventListener("DOMContentLoaded",function(){t._domReady("contReady");},!1),window.addEventListener("load",function(){t._domReady("domReady");},!1)),"undefined"===typeof window._lptStop&&this.load();},start:function(){this.autoStart=!0;},_domReady:function(t){this.isDom||((this.isDom=!0),this.events.trigger("LPT","DOM_READY",{t:t,})),(this._timing[t]=new Date().getTime());},vars:lpTag.vars||[],dbs:lpTag.dbs||[],ctn:lpTag.ctn||[],sdes:lpTag.sdes||[],hooks:lpTag.hooks||[],identities:lpTag.identities||[],ev:lpTag.ev||[],}),lpTag.init()):(window.lpTag._tagCount+=1);var vjwtAvailable=window.sessionStorage.getItem("wjt");if(isUserAuthenticated()&&vjwtAvailable!=undefined&&vjwtAvailable!=null&&vjwtAvailable!=""){try{lpTag.identities=[];lpTag.identities.push(identityFn);function identityFn(callback){var aSub=new Date().getTime()+""+parseInt(Math.random()*1000);try{if(typeof vzwDL!='undefined'&&vzwDL!=null&&typeof vzwDL.authentication!='undefined'&&vzwDL.authentication!=null){if(typeof vzwDL.authentication.mdn!='undefined'&&vzwDL.authentication.mdn!=null&&vzwDL.authentication.mdn!=""&&vzwDL.authentication.mdn.length>5){aSub=vzwDL.authentication.mdn;}
else if(typeof vzwDL.authentication.visHashedMdn!='undefined'&&vzwDL.authentication.visHashedMdn!=null&&vzwDL.authentication.visHashedMdn!=""&&vzwDL.authentication.visHashedMdn.length>5){aSub=vzwDL.authentication.visHashedMdn;}}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.user!="undefined"&&vzdl.user!=null&&vzdl.user!=""&&typeof vzdl.user.id!="undefined"&&vzdl.user.id!=null&&vzdl.user.id!=""){aSub=vzdl.user.id;}}
catch(e){}
callback({iss:"verizon.com",acr:"loa1",sub:aSub,});}}catch(e){}}
try{if(typeof lpTag!='undefined'&&lpTag!=null){if(VZ_Chat.getCookie("lpFdvLockChatInProgress")!=undefined&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=null&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=""){lpfdvLock(VZ_Chat.getCookie("lpFdvLockChatInProgress"));}else{lpfdvLock("false");}
var lp_gbl_id=VZ_Chat.getCookie("GLOBALID");var lp_vzw_session_id;if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.sessionId!="undefined"&&window.vzwDL.page.sessionId!=null&&window.vzwDL.page.sessionId!=""){lp_vzw_session_id=window.vzwDL.page.sessionId;}else if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.channelSession!="undefined"&&vzdl.page.channelSession!=null&&vzdl.page.channelSession!=""){lp_vzw_session_id=vzdl.page.channelSession;}else if(window.sessionStorage.getItem("SESSION_ID")!=undefined&&window.sessionStorage.getItem("SESSION_ID")!=null&&window.sessionStorage.getItem("SESSION_ID")!=""){lp_vzw_session_id=window.sessionStorage.getItem("SESSION_ID");}else if(typeof window.vzwDL!="undefined"&&window.vzwDL!=null&&typeof window.vzwDL.page!="undefined"&&window.vzwDL.page!=null&&typeof window.vzwDL.page.session!="undefined"&&window.vzwDL.page.session!=null&&window.vzwDL.page.session!=""){lp_vzw_session_id=window.vzwDL.page.session;}
if(typeof lp_vzw_session_id!='undefined'&&typeof lp_gbl_id!='undefined'&&lp_vzw_session_id!=null&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{storeZipCode:lp_gbl_id,storeNumber:lp_vzw_session_id}});}else if(typeof lp_vzw_session_id!='undefined'&&lp_vzw_session_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{storeNumber:lp_vzw_session_id}});}else if(typeof lp_gbl_id!='undefined'&&lp_gbl_id!=null){lpTag.sdes.push({type:"ctmrinfo",info:{storeZipCode:lp_gbl_id}});}
if((typeof vzwDL!='undefined'&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!='undefined'&&vzwDL.page!=null&&vzwDL.page!=''&&typeof vzwDL.page.repeatLQSVisitor!='undefined'&&vzwDL.page.repeatLQSVisitor!=null&&vzwDL.page.repeatLQSVisitor!=''&&vzwDL.page.repeatLQSVisitor.toLowerCase()=="y")||(typeof vzdl!='undefined'&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!='undefined'&&vzdl.page!=null&&vzdl.page!=''&&typeof vzdl.page.Return5GHLQ!='undefined'&&vzdl.page.Return5GHLQ!=null&&vzdl.page.Return5GHLQ!=''&&vzdl.page.Return5GHLQ.toLowerCase()=="y")){lpTag.sdes.push({type:"service",service:{topic:"LoopQual:5GHome",status:1}});}
if((typeof vzwDL!='undefined'&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!='undefined'&&vzwDL.page!=null&&vzwDL.page!=''&&typeof vzwDL.page.repeatCartVisitor!='undefined'&&vzwDL.page.repeatCartVisitor!=null&&vzwDL.page.repeatCartVisitor!=''&&vzwDL.page.repeatCartVisitor.toLowerCase()=="y")||(typeof vzdl!='undefined'&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!='undefined'&&vzdl.page!=null&&vzdl.page!=''&&typeof vzdl.page.Return5GHCart!='undefined'&&vzdl.page.Return5GHCart!=null&&vzdl.page.Return5GHCart!=''&&vzdl.page.Return5GHCart.toLowerCase()=="y")){lpTag.sdes.push({type:"service",service:{topic:"LoopQual:5GHome",status:1}});lpTag.sdes.push({type:"cart",total:0,numItems:1,products:[{product:{name:"SavedCart",category:"SavedCart:5GHome"}}]});}}}catch(e){}
if(lpBauFlow){agentAvailable();}
else{if(typeof lpNBXObject!="undefined"&&lpNBXObject!=null&&Object.keys(lpNBXObject).length!=0&&lpNBXLcAvailable=="N"){lpButtonHided=true;agentAvailable();}}
convInfoInit();chatStatus();}
document.body.addEventListener('mouseout',function(event){try{if(typeof lpTag!='undefined'&&lpTag!=null&&Object.keys(lpTag).length!=0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){if(event.clientY<=50&&lpTag&&lpTag.section&&lpTag.section.indexOf('preemptiveLeave')<=-1){var section=(lpTag&&lpTag.section)||[];section.push('preemptiveLeave');lpTag.newPage(document.URL,{section:section,taglets:{rendererStub:{divIdsToKeep:{LP_SALES_HOME_EMBEDDED:true}}}})}}}
catch(e){console.log(e,"preemptive error");}})
window.addEventListener("load",function(){checkHideChatButtonTimer();});window.addEventListener("load",function(){windowCustomizationInit();});window.addEventListener("load",function(){checkUrlAndHide();});window.addEventListener("message",onWindowJWTMessage,false);var consData={NEW_AGENT_TYPING_INDICATOR:"Incoming message",OLD_AGENT_TYPING_INDICATOR:"Agent is typing...",CHAT_WITH_US:"Chat with us",MESSAGE_US:"Message us",};var headerObserver=new MutationObserver(function(mutationsList){for(var i=0;i=0;i--){if(array[i].data&&array[i].data[datum]){event=array[i];break;}}}else event=array[array.length-1];if(event&&event.data)return datum?event.data[datum]:event.data;else return undefined;},_findRenderEvent:function _findRenderEventConf(renderEvents,engagementId){return renderEvents.find(function(ev){return ev&&ev.data&&ev.data.conf&&ev.data.conf.id===engagementId;});},_extractEngDetails:function _returnEngDetails(renderEvent){var eng=renderEvent.data&&renderEvent.data.eng;if(eng&&eng.conf){var details={campaignId:eng.conf.campaignId,engagementId:eng.conf.id,engagementName:eng.conf.name,skillId:eng.conf.skillId,skillName:eng.conf.skillName,container:eng.mainContainer,windowId:eng.conf.windowId};}
return details;}};lpTag.hooks.push({name:"BEFORE_SEND_VISITOR_LINE",callback:lpTag.external.convInfo.showData});}
catch(e){console.log(e,"convinfo error");}}
var lpprioritylevel="P1";function agentAvailable(){try{lpQueueHealthURL=window.location.hostname.toLowerCase().indexOf("vzwqa")!=-1?"https://mobile-ppd-west.vzw.com/mfchatnode/rest/appasync/agentAvailability":"https://mobile.vzw.com/mfchatnode/rest/appasync/agentAvailability";window.lpTag.events.bind("RENDERER_STUB","AFTER_CREATE_ENGAGEMENT_INSTANCE",function(data){lpEngagementID=data.eng.engData.engagementId;if(data.conf.skillName.split(":").length>1){coLpPriorityLevel=data.conf.skillName.split(":")[1].trim();}
coLpEngagementID=data.eng.engData.engagementId;coEngagementName=data.eng.conf.name;if(lpNBXLcAvailable=="Y"&&!lpBauFlow){displayLPChatButton();}
try{if(lpChatShownSiteCatalystObj.isLpChatShown&&lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.indexOf(data.eng.conf.name)==-1&&lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.indexOf(data.eng.conf.name)==-1){lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.push(data.eng.conf.name);sendLPEngagementsData(data.eng.conf.name);}}
catch(e){}
try{if(lpChatTargetSiteCatalystArray.indexOf(data.eng.conf.name)==-1){lpChatTargetSiteCatalystArray.push(data.eng.conf.name);sendLPEngagementsTargetData(data.eng.conf.name);}}catch(e){}
if(stopInfinite>0){return;}
try{checkHideChatButtonTimer();}catch(arrer){console.log("error setTimeoutAA"+arrer);}
console.log(data.eng.engData.engagementType);var lpSkillName=data.conf.skillName;if(lpSkillNameInTimer!=data.conf.skillName){lpSkillNameInTimer=data.conf.skillName;}
if(lpSkillName===null||lpSkillName===""){return;}
var secQData="VZW";try{visitorUniqueID=VZ_Chat.getCookie("LPVID");secQData=secQData+
document.URL.split(".com")[1].split("?")[0].split("/").join("_");}catch(err){}
var req={RequestParams:{skillAliasName:data.conf.skillName
.split(":")[0]
.replace("~",""),UniqueId:visitorUniqueID,engagementName:data.eng.conf.name,section:secQData,},};if(data.conf.skillName.split(":").length>1){var priorityFilter=data.conf.skillName
.split(":")[1]
.split("P")[1];if(priorityFilter>priorityTest){priorityTest=priorityFilter;priorityInTimer=data.conf.skillName.replace("~","");engInTimer=data.eng.conf.name;}
if(data.eng.conf.name.indexOf("-O")!=-1){console.log("engagement Type"+data.eng.conf.name);console.log("Skill Name"+data.conf.skillName);if(proActivePriority!=data.conf.skillName.split(":")[1].split(" ")[1]){proActivePriority=data.conf.skillName
.split(":")[1]
.split(" ")[1];}}
req.RequestParams.priority=data.conf.skillName.replace("~","");}
try{if(data.conf.skillName.split(":").length>1&&parseInt(lpprioritylevel.split("P")[1])0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}}}
else{if(lpTag.device.familyName()!=="Desktop"){return false;}
if(!(data&&data.eng&&data.eng.engData&&data.eng.engData.engagementType===1)){return false;}}
if((VZ_Chat.getCookie("proActiveDisable"+proActivePriority)=="true"||closeProActiveonPage==true)&&errorPageProAvctive==false){return false;}
window.setTimeout(function(){var pageInputDom=document.querySelector("input");var pageUrl=window.document.URL.toLowerCase();if(typeof pageInputDom!="undefined"&&pageInputDom!=null&&pageInputDom!=""&&(pageUrl.indexOf("personalinfo.html")!=-1||pageUrl.indexOf("creditcheck-v2.html")!=-1||pageUrl.indexOf("contactinfo.html")!=-1||pageUrl.indexOf("creditcheck.html")!=-1))
{}
else{isLPProactiveChat=true;lpTag.taglets.rendererStub.click(data.eng.engData.engagementId);proAutoOpenedFlag=true;errorPageProAvctive=false;}},100);}catch(proActiveerr){console.log(proActiveerr+"proactive error");}}
else{try{if(lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.indexOf(data.eng.conf.name)==-1&&lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.indexOf(data.eng.conf.name)==-1){lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.push(data.eng.conf.name);}}catch(e){}}}catch(queueHealthAPIerror){console.log("queueHealthAPIerror "+queueHealthAPIerror);}});});}
var response=fetch(lpQueueHealthURL,{method:"POST",headers:{"Content-Type":"application/json",},body:JSON.stringify(req),});response.then(function(res){res.json().then(function(result){var showChat=false;var lpAgentAssignment=0;var lpUnassignedConversation=0;if(result!=null&&typeof result!="undefined"&&result.metrics!=null&&typeof result.metrics!="undefined"&&result.metrics.waitTimeForAgentAssignment_90thPercentile!=null&&typeof result.metrics.waitTimeForAgentAssignment_90thPercentile!="undefined"){lpAgentAssignment=result.metrics.waitTimeForAgentAssignment_90thPercentile;}
if(result!=null&&typeof result!="undefined"&&result.metrics!=null&&typeof result.metrics!="undefined"&&result.metrics.unassignedConversations!=null&&typeof result.metrics.unassignedConversations!="undefined"){lpUnassignedConversation=result.metrics.unassignedConversations;}
try{if(!checkLPChatAvailability(lpprioritylevel,lpAgentAssignment,lpUnassignedConversation)){try{if(lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.indexOf(data.eng.conf.name)==-1&&lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.indexOf(data.eng.conf.name)==-1){lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.push(data.eng.conf.name);}}catch(e){}
if(timerCallCount==true||timerCallCount=="true"){apiInterval=setInterval(apiCallTimer,30000);}
timerCallCount=false;lpButtonHided=true;hideLPChatButton();}else{try{lpChatShownSiteCatalystObj.isLpChatShown=true;if(lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.indexOf(data.eng.conf.name)==-1&&lpChatShownSiteCatalystObj.engagementAddedBeforeChatShown.indexOf(data.eng.conf.name)==-1){lpChatShownSiteCatalystObj.engagementAddedAfterChatShown.push(data.eng.conf.name);sendLPEngagementsData(data.eng.conf.name);}}catch(e){}
clearInterval(apiInterval);if(lpButtonHided==true){lpButtonHided=false;stopInfinite=stopInfinite+1;displayLPChatButton();}
try{if((typeof vzwDL!="undefined"&&vzwDL!=null&&vzwDL!=""&&typeof vzwDL.page!="undefined"&&vzwDL.page!=null&&vzwDL.page!=""&&typeof vzwDL.page.fireProactiveChat!="undefined"&&vzwDL.page.fireProactiveChat!=null&&vzwDL.page.fireProactiveChat!=""&&vzwDL.page.fireProactiveChat.toLowerCase()=="y")||(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.fireProactiveChat!="undefined"&&vzdl.page.fireProactiveChat!=null&&vzdl.page.fireProactiveChat!=""&&vzdl.page.fireProactiveChat.toLowerCase()=="y")){if(typeof lpTag!='undefined'&&lpTag!=null&&Object.keys(lpTag).length!=0){if(lpTag&&lpTag.section&&lpTag.section.indexOf('CMP:5GHomeQR')<=-1){var section=(window.lpTag&&window.lpTag.section)||[];section.push('CMP:5GHomeQR');if(typeof lpTag!="undefined"&&lpTag!=null&&Object.keys(lpTag).length>0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}}}
else{if(lpTag.device.familyName()!=="Desktop"){return false;}
if(!(data&&data.eng&&data.eng.engData&&data.eng.engData.engagementType===1)){return false;}}
if((VZ_Chat.getCookie("proActiveDisable"+proActivePriority)=="true"||closeProActiveonPage==true)&&errorPageProAvctive==false){return false;}
window.setTimeout(function(){var pageInputDom=document.querySelector("input");var pageUrl=window.document.URL.toLowerCase();if(typeof pageInputDom!="undefined"&&pageInputDom!=null&&pageInputDom!=""&&(pageUrl.indexOf("personalinfo.html")!=-1||pageUrl.indexOf("creditcheck-v2.html")!=-1||pageUrl.indexOf("contactinfo.html")!=-1||pageUrl.indexOf("creditcheck.html")!=-1))
{}
else{isLPProactiveChat=true;lpTag.taglets.rendererStub.click(data.eng.engData.engagementId);proAutoOpenedFlag=true;errorPageProAvctive=false;}},100);}catch(proActiveerr){console.log(proActiveerr+"proactive error");}}}
catch(queueHealthAPIerror){console.log("queueHealthAPIerror "+queueHealthAPIerror);}});});});}catch(agerr){console.log("agentAvi"+agerr);}}
function chatStatus(){try{function lp_state(data,eventInfo){var channelOrchestrationIndicator="";if(typeof vzdl!="undefined"&&vzdl!=null&&vzdl!=""&&typeof vzdl.page!="undefined"&&vzdl.page!=null&&vzdl.page!=""&&typeof vzdl.page.throttleList!="undefined"&&vzdl.page.throttleList!=null&&vzdl.page.throttleList!=""){channelOrchestrationIndicator=vzdl.page.throttleList;}
if(channelOrchestrationIndicator!=""&&(channelOrchestrationIndicator.indexOf('|ShowProactiveLiveChat|')!=-1||channelOrchestrationIndicator.indexOf('|ProActiveChat|')!=-1)){coChangeLpChatStyle();}
if(data.state==="init"){chatInitiated=true;try{lpIschatting="true";document.cookie="lpFdvLockChatInProgress="+lpIschatting+"; domain=.verizon.com; path=/;";document.cookie="lpFdvLockChatInProgress="+lpIschatting+"; domain=.verizonwireless.com; path=/;";vzdlSiteCatalyst("event236","LPchatwindow","UserInitiatedChat","UserInitiatedChat",lp_visitor_id,lp_conversation_id);nbxReporting("event236","UserInitiatedChat","",lp_conversation_id);}catch(e){}}
if(data.state==="waiting"){if(channelOrchestrationIndicator!=""&&(channelOrchestrationIndicator.indexOf('|ShowProactiveLiveChat|')!=-1||channelOrchestrationIndicator.indexOf('|ProActiveChat|')!=-1)){if(VZ_Chat.getCookie('lpFirstMessageSent')!=null&&VZ_Chat.getCookie('lpFirstMessageSent')!=""){var lpFirstMessageSentCookie=VZ_Chat.getCookie('lpFirstMessageSent');if(lpFirstMessageSentCookie=="true"){firstMessageSent=true;}
else{firstMessageSent=false;}}
if(!firstMessageSent){firstMessageSent=true;document.cookie="lpFirstMessageSent="+firstMessageSent+"; domain=.verizon.com; path=/;";document.cookie="lpFirstMessageSent="+firstMessageSent+"; domain=.verizonwireless.com; path=/;";setTimeout(fireLpAutoMessage,1000);}}
if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()&&typeof EchannelVera.lpUtilsService.removeUnifiedChatButton!="undefined"){EchannelVera.lpUtilsService.removeUnifiedChatButton();}}}
else if(data.state==="interactive"){try{vzdlSiteCatalyst("event238","LPchatwindow","AgentInteraction","AgentInteraction",lp_visitor_id,lp_conversation_id,lp_agent_pid);nbxReporting("event238","AgentInteraction","",lp_conversation_id);}catch(e){}}
else if(data.state==="chatting"){try{if(VZ_Chat.getCookie("isLpFirstMessage")!=null&&VZ_Chat.getCookie("isLpFirstMessage")!=""&&VZ_Chat.getCookie("isLpFirstMessage")=="true"){vzdlSiteCatalyst("event237","LPchatwindow","AgentAssigned","AgentAssigned",lp_visitor_id,lp_conversation_id,lp_agent_pid);nbxReporting("event237","AgentAssigned","",lp_conversation_id);document.cookie="isLpFirstMessage="+false+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+false+"; domain=.verizonwireless.com; path=/;";var engagementClicks=lpTag.events.hasFired("LP_OFFERS","OFFER_CLICK");if(engagementClicks.length>0){var targetedEngagementDataCount=engagementClicks.length-1;var engagementClickedName=engagementClicks[targetedEngagementDataCount].data.engagementName;if(typeof engagementClickedName!="undefined"&&engagementClickedName!=null&&engagementClickedName!=""){if(isLPProactiveChat){lpChatClickedEngagement=engagementClickedName;sendLPEngagementsClickedData(lpChatClickedEngagement);}}}}}catch(e){}
proAutoOpenedFlag=false;closeProActiveonPage=true;try{if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()&&typeof EchannelVera.lpUtilsService.removeUnifiedChatButton!="undefined"&&EchannelVera.lpUtilsService.removeUnifiedChatButton!=null){EchannelVera.lpUtilsService.removeUnifiedChatButton();}}}catch(err){}
if(typeof lp_conversation_id!="undefined"&&lp_conversation_id!=null&&lp_conversation_id){document.cookie="chatIdCookie="+
lp_conversation_id+
"; domain=.verizonwireless.com; path=/;";document.cookie="chatIdCookie="+
lp_conversation_id+
"; domain=.verizon.com; path=/;";}}else if(data.state==="ended"){try{isLPProactiveChat=false;vzdlSiteCatalyst("event239","LPchatwindow","ChatClosed","ChatClosed",lp_visitor_id,lp_conversation_id);nbxReporting("event239","ChatClosed","",lp_conversation_id);}
catch(e){}
}}
lpTag.events.bind("lpUnifiedWindow","state",lp_state);lpTag.events.bind("LP_OFFERS","OFFER_CLICK",lpClickedObserver);try{lpTag.events.bind("lpUnifiedWindow","maximized",function(){setTimeout(function(){var scrollable=document.getElementsByClassName('lp_location_center')[0];if(typeof scrollable!="undefined"&&scrollable!=null){scrollable.scrollTop=scrollable.scrollHeight;}},500);})}
catch(e){}
lpTag.events.bind("lpUnifiedWindow","windowClosed",function(){try{lp_visitor_id="";lp_agent_pid="";lp_conversation_id="";isLPProactiveChat=false;document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";var lpCht=readTCCookieInfo("LP_CHAT_IN_PROGRESS");if(readTCCookieInfo("lp_jwt_wln")!=null&&readTCCookieInfo("lp_jwt_wln")!=""&&lpCht!=null&&lpCht=='Y'){createTCCookie('LP_CHAT_IN_PROGRESS','N');}
firstMessageSent=false;document.cookie="lpFirstMessageSent="+firstMessageSent+"; domain=.verizon.com; path=/;";document.cookie="lpFirstMessageSent="+firstMessageSent+"; domain=.verizonwireless.com; path=/;";if(typeof displayconnectwithus!="undefined"&&displayconnectwithus!=null&&typeof(displayconnectwithus)=="function"){displayconnectwithus();}
lpIschatting="false";document.cookie="lpFdvLockChatInProgress="+lpIschatting+"; domain=.verizon.com; path=/;";document.cookie="lpFdvLockChatInProgress="+lpIschatting+"; domain=.verizonwireless.com; path=/;";if(lpFtype!=''&&lpFtype.toUpperCase()!="R"){hideLPChatButton();}}
catch(e){console.log(e,"windowClosed error");}
if(proAutoOpenedFlag==true&&VZ_Chat.getCookie("proActiveDisable"+proActivePriority)!="true"){VZ_Chat.setCookie("proActiveDisable"+proActivePriority,true,24);proAutoOpenedFlag==false;}
try{if(typeof EchannelVera!="undefined"&&EchannelVera!=null&&typeof EchannelVera.lpUtilsService!="undefined"&&EchannelVera.lpUtilsService!=null&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!="undefined"&&typeof EchannelVera.lpUtilsService.isUnifiedButtonEnabled!=null){if(EchannelVera.lpUtilsService.isUnifiedButtonEnabled()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("LoggedIn MDN changes 2")}
window.hideLPChatButton();if(typeof EchannelVera.lpUtilsService.createUnifiedChatButton!="undefined"&&EchannelVera.lpUtilsService.createUnifiedChatButton!=null){EchannelVera.lpUtilsService.createUnifiedChatButton();}}}}catch(closeErr){console.log("CWclose"+closeErr);}});function lpClickedObserver(data,eventInfo){try{if(typeof data!="undefined"&&data!=null&&data!=""&&typeof data.engagementName!="undefined"&&data.engagementName!=null&&data.engagementName!=""){if(!isLPProactiveChat){lpChatClickedEngagement=data.engagementName;sendLPEngagementsClickedData(lpChatClickedEngagement);}}}
catch(e){}}
var lp_visitor_id="";var lp_agent_pid="";var lp_conversation_id="";function lp_conv_info(data,eventInfo){if(typeof data.visitorId!="undefined"){lp_visitor_id=data.visitorId;}
if(typeof data.agentId!="undefined"){lp_agent_pid=data.agentId;}
if(typeof data.conversationId!="undefined"){console.log("function loaded");lp_conversation_id=data.conversationId;nbxReporting("eVar120","setConversationId","",lp_conversation_id);}}
lpTag.events.bind("lpUnifiedWindow","conversationInfo",lp_conv_info);}catch(cserr){console.log("CSerror"+cserr);}
try{lpTag.events.bind("lpUnifiedWindow","state",function(){var hostLPUrl=window.document.URL.toLowerCase();if(hostLPUrl.indexOf("tlogin.verizonwireless.com")!=-1||hostLPUrl.indexOf("login.verizonwireless.com")!=-1||hostLPUrl.indexOf("login.verizon.com")!=-1||hostLPUrl.indexOf("accessmgr")!=-1){hideLPWithTimer();}});}catch(stateErr){console.log("HICB"+stateErr);}}
function addVar(name,value,scope,mobile){var newVar;if(!chatVars){throw getException("DataLayerUndefinedException","Data Layer is Undefined");}
newVar={name:name,value:value,scope:scope,mobile:mobile,toString:function(){return("{ name: "+
name+
", value: "+
value+
", scope: "+
scope+
", mobile: "+
mobile+
" }");},};if(typeof name!=="string"||typeof value==="undefined"||typeof scope!=="string"||(scope!=="page"&&scope!=="session")||typeof mobile!=="boolean"){throw getException("InvalidVariableException","Invalid variable format: "+newVar.toString());}
if(debugMode){console.log("Adding var: "+newVar.toString());}
chatVars[chatVars.length]=newVar;}
function getException(name,msg){return{name:name,msg:msg,toString:function(){return this.name+": "+this.msg;},};}
var lpFtype='';function lpfdvLock(lpIschatting){try{var lpFdvLockcookie=VZ_Chat.getCookie("lpFdvLockcookie");if(((typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.authentication!='undefined'&&window.vzwDL.authentication!=null&&typeof window.vzwDL.authentication.fType!='undefined'&&window.vzwDL.authentication.fType!=null))){lpFtype=window.vzwDL.authentication.fType;}
else if((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.authentication!='undefined'&&window.vzdl.authentication!=null&&typeof window.vzdl.authentication.fType!='undefined'&&window.vzdl.authentication.fType!=null)){lpFtype=window.vzdl.authentication.fType;}
else if(((typeof window.vzwDL!='undefined'&&window.vzwDL!=null&&typeof window.vzwDL.page!='undefined'&&window.vzwDL.page!=null&&typeof window.vzwDL.page.fraudIndicator!='undefined'&&window.vzwDL.page.fraudIndicator!=null))){lpFtype=window.vzwDL.page.fraudIndicator;}
else if(((typeof window.vzdl!='undefined'&&window.vzdl!=null&&typeof window.vzdl.page!='undefined'&&window.vzdl.page!=null&&typeof window.vzdl.page.fraudIndicator!='undefined'&&window.vzdl.page.fraudIndicator!=null))){lpFtype=window.vzdl.page.fraudIndicator;}
if(lpFtype!=''&&lpFtype.toUpperCase()!="R"){document.cookie="lpFdvLockcookie="+lpFtype+"; domain=.verizon.com; path=/;";document.cookie="lpFdvLockcookie="+lpFtype+"; domain=.verizonwireless.com; path=/;";if(lpIschatting=="true"){if(typeof lpTag!='undefined'){lpTag.sdes=window.lpTag.sdes||[];lpTag.sdes.push({type:"mrktInfo",info:{affiliate:lpFtype}});console.log(lpFtype,"lpFtype");console.log(lpIschatting,"lpIschatting");}}else{hideLPChatButton();}}
else if(lpFdvLockcookie!=undefined&&lpFdvLockcookie!=null&&lpFdvLockcookie!=""&&lpFdvLockcookie.toUpperCase()!="R"){lpFtype=lpFdvLockcookie;if(lpIschatting=="true"){if(typeof lpTag!='undefined'){lpTag.sdes=window.lpTag.sdes||[];lpTag.sdes.push({type:"mrktInfo",info:{affiliate:lpFtype}});}}else{hideLPChatButton();}}}
catch(e){console.log("FDV lock error "+e);}}
function contactUsInit(options){if(typeof console==="undefined"){window.console={};console.log=function(){};console.error=function(){};}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};}
try{if(VZ_Chat.getCookie("isLpFirstMessage")==null||VZ_Chat.getCookie("isLpFirstMessage")==""){document.cookie="isLpFirstMessage="+true+"; domain=.verizon.com; path=/;";document.cookie="isLpFirstMessage="+true+"; domain=.verizonwireless.com; path=/;";}}catch(e){}
options=options||{};debugMode=options.debugMode||false;legacyMode=options.legacyMode||true;globalOptionsInit=options;if(isAuthFlow()){try{changeLPJWTCookieValue();if(VZ_Chat.getCookie("lp_jwt_wireless")=="N"&&window.sessionStorage.getItem("wjt")!=null&&window.sessionStorage.getItem("wjt")!=""){window.sessionStorage.removeItem("wjt");}}catch(e){console.log("loggedin MDN changes 6");}
downloadChatTag();initVars(options.scrubber,options.builder);}}
function setVar(){var tName,tValue,tScope,tMobile;if(arguments.length>=2){(tName=arguments[0]),(tValue=arguments[1]),(tScope=arguments[2]||"page"),(tMobile=typeof arguments[3]=="undefined"?true:arguments[3]);try{addVar(tName,tValue,tScope,tMobile);}catch(err){if(debugMode){console.log("setVar error ->"+err);}
if(err.name=="DataLayerUndefinedException"&&!isReady){fnQueue.push(function(){setVar(tName,tValue,tScope,tMobile);});}}}else if(arguments.length==1){throw getException("OperationNotSupported","This operation is not supported");}else{throw getException("InvalidArgument","Argument count is invalid");}}
function replaceAll(str){if(str===undefined||str===null)return str;return str.replace(/\//g,"");}
function getCookie(cname){try{var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(";");for(var i=0;i0&&typeof lpTag.newPage!="undefined"&&lpTag.newPage!=null&&lpTag.newPage!=""){window.lpTag.newPage(document.URL,{section:section,sdes:[],taglets:{},});}}}}}
function isNextBestChannelFlow(HOGFlag)
{try
{if(!HOGFlag||(VZ_Chat.getCookie("lpFdvLockChatInProgress")!=null&&VZ_Chat.getCookie("lpFdvLockChatInProgress")!=""&&VZ_Chat.getCookie("lpFdvLockChatInProgress")=="true"))
{lpBauFlow=true;}else{isCONBCHEnabled=true;}}
catch(e)
{}}
function setNBXLC_Available(){try{if(typeof lpNBXObject.LC_Available!="undefined"&&lpNBXObject.LC_Available!=null&&lpNBXObject.LC_Available.length>0&&typeof lpNBXObject.LC_Available[0]!="undefined"&&lpNBXObject.LC_Available[0]!=null&&lpNBXObject.LC_Available[0].toLowerCase()=="true"){lpNBXLcAvailable="Y";}
else{lpNBXLcAvailable="N";}}
catch(e){}}
function setNBXLpPriority(){try{if(typeof lpNBXObject.Priority!="undefined"&&lpNBXObject.Priority!=null&&lpNBXObject.Priority.length>0&&typeof lpNBXObject.Priority[0]!="undefined"&&lpNBXObject.Priority[0]!=null&&lpNBXObject.Priority[0].toLowerCase()!=""){lpNBXLpPriority=lpNBXObject.Priority[0];}}
catch(e){}}
function setNBXLpSoiEngagementID(){try{if(typeof lpNBXObject.SOI_Engagement_ids!="undefined"&&lpNBXObject.SOI_Engagement_ids!=null&&lpNBXObject.SOI_Engagement_ids.length>0&&typeof lpNBXObject.SOI_Engagement_ids[0]!="undefined"&&lpNBXObject.SOI_Engagement_ids[0]!=null&&Object.keys(lpNBXObject.SOI_Engagement_ids).length!=0){lpNBXLpSoiEngagementId=lpNBXObject.SOI_Engagement_ids[0];}}
catch(e){}}
window.checkLPValidVariable=checkLPValidVariable;window.getWirelessDL=getWirelessDL;window.lpButtonHided=lpButtonHided;window.proAutoOpenedFlag=proAutoOpenedFlag;window.isLpTagBlocked=isLpTagBlocked;window.errorPageProAvctive=errorPageProAvctive;window.onWindowJWTMessage=onWindowJWTMessage;window.hideLPWithTimer=hideLPWithTimer;window.checkHideChatButtonTimer=checkHideChatButtonTimer;window.reInitChatFramework=reInitChatFramework;window.hideLPChatButton=hideLPChatButton;window.displayLPChatButton=displayLPChatButton;window.getJWTToken=getJWTToken;window.lpRetailChatAuth=lpRetailChatAuth;window.chatLPUpdateErrorTag=chatLPUpdateErrorTag;window.updateLiveChatevents=updateLiveChatevents;window.lpGetAuthenticationToken=lpGetAuthenticationToken;window.lpChatObject=lpChatObject;window.reInitChatFrameworkNSA=reInitChatFrameworkNSA;window.cartUnlockApi=cartUnlockApi;window.getLPEngagmentandPriority=getLPEngagmentandPriority;window.fireLpAutoMessage=fireLpAutoMessage;window.coChangeLpChatStyle=coChangeLpChatStyle;window.islpFrameworkloaded=islpFrameworkloaded;window.showandFireLiveEngagewindow=showandFireLiveEngagewindow;window.readTCCookieInfo=readTCCookieInfo;window.createTCCookie=createTCCookie;window.sendLPEngagementsData=sendLPEngagementsData;window.sendLPEngagementsTargetData=sendLPEngagementsTargetData;window.sendLPEngagementsClickedData=sendLPEngagementsClickedData;window.pushingAuthValue=pushingAuthValue;window.changeLPJWTCookieValue=changeLPJWTCookieValue;window.vzdlSiteCatalyst=vzdlSiteCatalyst;window.isUserAuthenticated=isUserAuthenticated;window.launchLiveChatFromNBX=launchLiveChatFromNBX;window.triggerLiveChatfromNBXResponse=triggerLiveChatfromNBXResponse;window.lpBauFlow=lpBauFlow;window.isNextBestChannelFlow=isNextBestChannelFlow;var pathname=window.location.pathname;var hostName=window.location.hostname;var platform=vzwDL.page.platform;if(pathname.indexOf('/support')>-1){VZ_Chat.setVar('Source_mobile_ind','4');if(platform=='tablet'){VZ_Chat.setVar('tablet_visit','1');}else if(platform=='mobile'){VZ_Chat.setVar('mobile_visit','1');}}
var spanishTestman=pathname.indexOf("sdpreprod")>-1||pathname.indexOf("sdppmyvpostpay")>-1||pathname.indexOf("sdtestman")>-1;var prodHostNames=["www.verizonwireless.com","www.verizon.com","nbillpay.verizonwireless.com","ebillpay.verizonwireless.com","wbillpay.verizonwireless.com","es.verizonwireless.com","quickaccess.verizonwireless.com","freebee.verizonwireless.com","solutions.vzwshop.com","login.verizonwireless.com","login.vzw.com","community.verizonwireless.com","myverizonid.verizon.com","autochatva.verizonwireless.com","my.verizonwireless.com","tones.verizonwireless.com","devices.verizonwireless.com","myaccount.verizonwireless.com","billpaysvc.verizonwireless.com","mediastore.verizonwireless.com","m.mediastore.verizonwireless.com","preorder.verizonwireless.com","store.verizonwireless.com","apps.vzwshop.com","www.internetservices.verizon.com","myvprepay.verizonwireless.com","myvpostpay.verizonwireless.com","mobile.vzw.com","solutionslab.vzw.com"];var isProd=false;for(var i=0;i-1||b['dom.pathname'].toString().toLowerCase().indexOf('/discount-program/'.toLowerCase())>-1){tealiumChatProdScript=function(){VZ_Chat=(function(){var out={},tChatTag,debugMode,legacyMode,chatVars,dl,fnQueue=[],console=window.console,isReady=false;function setCookie(){if(document.location.href.indexOf('verizonwireless.com/wcms/myverizon/customer-retention.html?d=yes')!=-1||document.location.href.indexOf('verizonwireless.com/wcms/myverizon/customer-retention.html')!=-1||document.location.href.indexOf('verizonwireless.com/search/vzwSearch?Ntt=disconnect%20line')!=-1||document.location.href.indexOf('verizonwireless.com/search/vzwSearch?Ntt=disconnect%20service')!=-1){document.cookie="disconnect=1; domain=.verizonwireless.com; path=/;";}
}
function encode(dl){var Aes={};var a=dl.authentication.accountNumber;var b=dl.authentication.mdn;Aes.cipher=function(input,w){var Nb=4;var Nr=w.length/Nb-1;var state=[[],[],[],[]];for(var i=0;i<4*Nb;i++)state[i%4][Math.floor(i/4)]=input[i];state=Aes.addRoundKey(state,w,0,Nb);for(var round=1;round6&&i%Nk==4){temp=Aes.subWord(temp);}
for(var t=0;t<4;t++)w[i][t]=w[i-Nk][t]^temp[t];}
return w;};Aes.Ctr={};Aes.Ctr.encrypt=function(plaintext,password,nBits){var blockSize=16;if(!(nBits==128||nBits==192||nBits==256))throw new Error('Key size is not 128 / 192 / 256');plaintext=String(plaintext).utf8Encode();password=String(password).utf8Encode();var nBytes=nBits/8;var pwBytes=new Array(nBytes);for(var i=0;i>>i*8)&0xff;for(var i=0;i<2;i++)counterBlock[i+2]=(nonceRnd>>>i*8)&0xff;for(var i=0;i<4;i++)counterBlock[i+4]=(nonceSec>>>i*8)&0xff;var ctrTxt='';for(var i=0;i<8;i++)ctrTxt+=String.fromCharCode(counterBlock[i]);var keySchedule=Aes.keyExpansion(key);var blockCount=Math.ceil(plaintext.length/blockSize);var ciphertext='';for(var b=0;b>>c*8)&0xff;for(var c=0;c<4;c++)counterBlock[15-c-4]=(b/
0x100000000>>>c*8);var cipherCntr=Aes.cipher(counterBlock,keySchedule);var blockLength=b>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}
t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+
this._keyStr.charAt(u)+this._keyStr.charAt(a)}
return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9+/=]/g,"");while(f>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}
if(a!=64){t=t+String.fromCharCode(i)}}
t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/rn/g,"n");var t="";for(var n=0;n127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}
return t},_utf8_decode:function(e){var t="";var n=0;var r=0;var c1=0;var c2=0;while(n191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}
return t}};var c=Aes.Ctr.encrypt(a,b,256);dl.authentication['aHash']=c;}
function bindDL(){if(typeof vzwDL==='undefined'){inqCustData={};console.log('VZ_Chat Init Warning -> vzwDL not found');return;}
dl=vzwDL;dl.page=dl.page||{};dl.page.chat=dl.page.chat||[];chatVars=dl.page.chat;isReady=true;}
function downloadChatTag(){jQuery.ajax({dataType:'script',cache:true,url:tChatTag.src})
.done(function(script,status){if(debugMode){console.log('Init - Tag Loaded -> { ID: ',tChatTag.id,'}');}})
.fail(function(jqxhr,settings,exception){if(debugMode){console.error('Init - Tag Load Error -> { ID: ',tChatTag.id,', HTTP Status: ',jqxhr.status,'}');}});}
function addVar(name,value,scope,mobile){var newVar;if(!chatVars){throw getException('DataLayerUndefinedException','Data Layer is Undefined');}
newVar={'name':name,'value':value,'scope':scope,'mobile':mobile,'toString':function(){return'{ name: '+name+
', value: '+value+', scope: '+scope+
', mobile: '+mobile+' }';}};if(typeof name!=='string'||typeof value==='undefined'||(typeof scope!=='string'||(scope!=='page'&&scope!=='session'))||typeof mobile!=='boolean'){throw getException('InvalidVariableException','Invalid variable format: '+newVar.toString());}
if(debugMode){console.log('Adding var: '+newVar.toString());}
chatVars[chatVars.length]=newVar;}
function isEventSupported(eventName){var TAGNAMES={'select':'input','change':'input','submit':'form','reset':'form','error':'img','load':'img','abort':'img'};var el=document.createElement(TAGNAMES[eventName]||'div');eventName='on'+eventName;var isSupported=(eventName in el);if(!isSupported){el.setAttribute(eventName,'return;');isSupported=typeof el[eventName]=='function';}
el=null;return isSupported;}
function getException(name,msg){return{'name':name,'msg':msg,'toString':function(){return this.name+': '+this.msg;}};}
function initVars(scrubber,builder){try{setCookie()
bindDL();if(dl.authentication&&dl.authentication.mdn&&dl.authentication.accountNumber&&!(dl.authentication.prepayInd=="Y"||dl.authentication.prepayInd=="1")){encode(dl);}
while(fnQueue.length>0){fnQueue.pop()();}
if(scrubber){scrubber=new scrubber(VZ_Chat,dl);if(debugMode){console.log('Data scrubbing with: '+scrubber.toString());}
scrubber.scrub();}else{if(debugMode){console.log('Warning! -> Data scrubber is not defined');}}
if(builder){builder=new builder(VZ_Chat,dl);if(debugMode){console.log('Data building with: '+builder.toString());}
builder.build();}else{if(debugMode){console.log('Warning! -> Data builder is not defined');}}}catch(err){console.log('Critical [and ignored] error on init -> '+err);}}
function init(chatTagDef,options){if(typeof console==='undefined'){window.console={};console.log=function(){};console.error=function(){};}
setInterval(keepSessionAlive,300000);if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');};}
if(isEventSupported('DOMContentLoaded')){console.error('Browser is not supported! IE9+ is required');return;}
tChatTag=chatTagDef;options=options||{};debugMode=options.debugMode||false;legacyMode=options.legacyMode||true;if(document.readyState==='interactive'||document.readyState==='complete'){initVars(options.scrubber,options.builder);downloadChatTag();}else{document.addEventListener('DOMContentLoaded',function(){initVars(options.scrubber,options.builder);downloadChatTag();});}}
function contactUsInit(chatTagDef,options){if(typeof console==='undefined'){window.console={};console.log=function(){};console.error=function(){};}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');};}
if(isEventSupported('DOMContentLoaded')){console.error('Browser is not supported! IE9+ is required');return;}
tChatTag=chatTagDef;options=options||{};debugMode=options.debugMode||false;legacyMode=options.legacyMode||true;initVars(options.scrubber,options.builder);downloadChatTag();}
function reInit(pageId){if(typeof Inq!='undefined'&&!!pageId){if(Inq.isInqInitialized){Inq.reinitChat(pageId);}else{setTimeout(reInit,500);}}}
function setVar(){var tName,tValue,tScope,tMobile;if(arguments.length>=2){tName=arguments[0],tValue=arguments[1],tScope=arguments[2]||'page',tMobile=(typeof arguments[3]=='undefined')?true:arguments[3];try{addVar(tName,tValue,tScope,tMobile);}catch(err){if(debugMode){console.log('setVar error ->'+err);}
if(err.name=='DataLayerUndefinedException'&&!isReady){fnQueue.push(function(){setVar(tName,tValue,tScope,tMobile);});}}}else if(arguments.length==1){throw getException('OperationNotSupported','This operation is not supported');}else{throw getException('InvalidArgument','Argument count is invalid');}}
function getChatTag(){return tChatTag;}
function isDebugModeOn(){return debugMode;}
function keepSessionAlive(){var flag=window.isChatActive;if(flag){var urlDomain=document.location.href.substring(0,document.location.href.indexOf('.com/'));var url='https://www.verizonwireless.com/vzw/zipwall/setLocation.jsp';$.ajax({url:url,type:"GET"});}}
function setProactiveChatInd(linkId){if(linkId&&typeof Inq!='undefined'&&inqCustData){inqCustData.proactiveInd=linkId.toString();Inq.fireCustomEvent('vzwSalesProactiveEvent');}}
out.getChatTag=getChatTag;out.init=init;out.reInit=reInit;out.contactUsInit=contactUsInit;out.setVar=setVar;out.getException=getException;out.isDebugModeOn=isDebugModeOn;out.keepSessionAlive=keepSessionAlive;out.setProactiveChatInd=setProactiveChatInd;return out;})();VZ_Chat.LPMobileDataScrubber=function(that,dl){var name='LPMobileDataScrubber';if(!dl){throw that.getException('InvalidParamException','Data layer is undefined');}
function isValidVar(name){return name==='Source_mobile_ind'||name==='mobile_visit'||name==='tablet_visit';}
function scrubLPData(){if(typeof arrLPvars!=='undefined'){for(var i=0;i0){buildConvVars();}}};chatEngagedListener={onChatEngagedEvent:function(evt){chatEngagedVariable=evt.chatID;document.cookie="chatIdCookie="+chatEngagedVariable+"; domain=.verizonwireless.com; path=/;";}};InqRegistry={listeners:[chatEngagedListener]};};};tealiumChatTag=function(){if(document.location.pathname.indexOf('/support')>-1){VZ_Chat.setVar('Source_mobile_ind','4');if(vzwDL.page.platform=='tablet'){VZ_Chat.setVar('tablet_visit','1');}else if(vzwDL.page.platform=='mobile'){VZ_Chat.setVar('mobile_visit','1');}}
var spanishTestman=window.location.pathname.indexOf("sdpreprod")>-1||window.location.pathname.indexOf("sdppmyvpostpay")>-1||window.location.pathname.indexOf("sdtestman")>-1;var hostName=window.location.hostname;var prodHostNames=["www.verizon.com","www.verizonwireless.com","nbillpay.verizonwireless.com","ebillpay.verizonwireless.com","wbillpay.verizonwireless.com","es.verizonwireless.com","quickaccess.verizonwireless.com","freebee.verizonwireless.com","solutions.vzwshop.com","login.verizonwireless.com","login.vzw.com","community.verizonwireless.com","myverizonid.verizon.com","autochatva.verizonwireless.com","my.verizonwireless.com","tones.verizonwireless.com","devices.verizonwireless.com","myaccount.verizonwireless.com","billpaysvc.verizonwireless.com","mediastore.verizonwireless.com","m.mediastore.verizonwireless.com","preorder.verizonwireless.com","store.verizonwireless.com","apps.vzwshop.com","www.internetservices.verizon.com","myvprepay.verizonwireless.com","myvpostpay.verizonwireless.com","mobile.vzw.com","solutionslab.vzw.com","search.verizonwireless.com"];for(var i=0;i0){document.cookie=cookieName+"="+currentExp+";path=/";}}
if(oldBrowser()==true){return;}
if(window.runningExperiment){storeUserExp();}
try{if(typeof(vzdl)==='undefined'){vzdl=[];}
if(typeof(vzdl.page)==='undefined'){vzdl.page=[];}
if(typeof(vzdl.park)==='undefined'){vzdl.park=[];}
if(typeof(vzdl.env)==='undefined'){vzdl.env=[];}
vzdl.park.pageName=decodeURIComponent(s.c_r("s_ppv")).split(",")[0];if(typeof(vzwDL)!='undefined'&&typeof(vzwDL.page)!='undefined'){if(typeof(vzdl.page.flow)=='undefined'){vzdl.page.flow=vzwDL.page.flowName;}
if(typeof(vzdl.page.throttleList)=='undefined'){vzdl.page.throttleList=vzwDL.page.throttleList;}
if(typeof(vzdl.page.testVersion)=='undefined'){vzdl.page.testVersion=vzwDL.page.testVersion;}
if(typeof(vzdl.env.platform)=='undefined'){vzdl.env.platform=vzwDL.page.platform;}
if(typeof(vzdl.park.globalId)=='undefined'){vzdl.park.globalId=vzwDL.page.globalId;}}
if(typeof(vzdl.park.pageUrlParams)=='undefined'){vzdl.park.pageUrlParams=window.location.search;}
if(typeof(vzdl.park.globalId)=='undefined'){vzdl.park.globalId=getExpCookie('GLOBALID');}
else if(vzdl.park.globalId===null){vzdl.park.globalId=getExpCookie('GLOBALID');}}catch(e){console.log("Medallia Setup Error: "+e.message)}
try{var baseBookmark=window.location.hash.match(/^\#\/\w*/);if(typeof(vzwDL)!='undefined'&&typeof(vzwDL.page)!='undefined'){vzwDL.page.segmentName=window.location.origin+window.location.pathname+(baseBookmark?baseBookmark[0]:"");}
vzdl.park.segmentName=window.location.origin+window.location.pathname+(baseBookmark?baseBookmark[0]:"");}catch(e){console.log("Medallia Segname Error: "+e.message)}
MDIGITAL_ON_PREM_PREFIX="https://scache.vzw.com/medallia_14478"
jQuery('body').append('');if(vzdl.env.platform.indexOf("mobile")>-1&&location.hostname.indexOf('espanol.verizon.com')===-1){$("#gnav20-footerlink").append("");jQuery('body').append("");}
try{window.onhashchange=function(){try{var bookmark=window.location.hash.match(/^\#\/\w*/);if(typeof(vzwDL)!='undefined'&&typeof(vzwDL.page)!='undefined'){vzwDL.page.segmentName=window.location.origin+window.location.pathname+(bookmark?bookmark[0]:"");}
vzdl.park.segmentName=window.location.origin+window.location.pathname+(bookmark?bookmark[0]:"");KAMPYLE_ONSITE_SDK.updatePageView();}catch(e){}}}catch(e){}})();}}catch(e){utag.DB(e)}},function(a,b){try{if(1){window.schema_highlighter={output:false,fetchFromHighlightJsCache:true,key:"3M188-9LKL9-E6TE2-3DQ7E",accountId:"Verizon"}
function loadScript(url,callback){var a='script';var elem=document.createElement(a);elem.src=url;elem.type='text/java'+a;if(callback){elem.onload=callback}
var src=document.getElementsByTagName(a)[0];src.parentNode.insertBefore(elem,src);}
var scrtp1Loaded=false;var scrtp2Loaded=false;loadScript("https://cdn.schemaapp.com/javascript/highlight.js",function(){scrtp1Loaded=true;doneLoading();});loadScript("https://cdn.schemaapp.com/javascript/schemaFunctions.min.js",function(){scrtp2Loaded=true;doneLoading();});function doneLoading(evt){if(scrtp1Loaded&&scrtp2Loaded){schemaLoad("Verizon","3M188-9LKL9-E6TE2-3DQ7E");}}}}catch(e){utag.DB(e)}},function(a,b){try{if(b['page.pageType'].toString().toLowerCase().indexOf('my verizon'.toLowerCase())<0){var pagename=vzwDL.page.pageName;if(pagename.indexOf("5g")<0){(function(w,d,t,r,u){w[u]=w[u]||[];w[u].push({projectId:"10000",properties:{pixelId:"10073430",userEmail:""}});var s=d.createElement(t);s.src=r;s.async=true;s.onload=s.onreadystatechange=function(){var y,rs=this.readyState,c=w[u];if(rs&&rs!="complete"&&rs!="loaded"){return;}
try{y=YAHOO.ywa.I13N.fireBeacon;w[u]=[];w[u].push=function(p){y([p]);};y(c);}catch(e){}};var scr=d.getElementsByTagName(t)[0],par=scr.parentNode;par.insertBefore(s,scr);})(window,document,"script","https://s.yimg.com/wi/ytc.js","dotq");}}}catch(e){utag.DB(e)}},function(a,b){try{if((typeof b['_5GPixel']!='undefined'&&b['_5GPixel'].toString().toLowerCase()=='c'.toLowerCase())||(typeof b['_5GPixel']!='undefined'&&b['_5GPixel'].toString().toLowerCase()=='b'.toLowerCase())||(typeof b['_5GPixel']!='undefined'&&b['_5GPixel'].toString().toLowerCase()=='a'.toLowerCase()&&b['dom.domain'].toString().toLowerCase().indexOf('gowireless.com'.toLowerCase())<0)){var pagename=vzwDL.page.pageName;if(pagename.indexOf("5g")>0){(function(w,d,t,r,u){w[u]=w[u]||[];w[u].push({projectId:"10000",properties:{pixelId:"10068244"}});var s=d.createElement(t);s.src=r;s.async=true;s.onload=s.onreadystatechange=function(){var y,rs=this.readyState,c=w[u];if(rs&&rs!="complete"&&rs!="loaded"){return;}
try{y=YAHOO.ywa.I13N.fireBeacon;w[u]=[];w[u].push=function(p){y([p]);};y(c);}catch(e){}};var scr=d.getElementsByTagName(t)[0],par=scr.parentNode;par.insertBefore(s,scr);})(window,document,"script","https://s.yimg.com/wi/ytc.js","dotq");}}}catch(e){utag.DB(e)}},function(a,b){try{if(b['dom.pathname'].toString().toLowerCase().indexOf('/plans/'.toLowerCase())>-1){(function(){var _pix=document.getElementById("_pix_id_517d2a0b-f218-9fa8-c23d-b7e41c85df4c");if(!_pix){var protocol="//";var a=Math.random()*1000000000000000000;_pix=document.createElement("iframe");_pix.style.display="none";_pix.setAttribute("src",protocol+
"s.amazon-adsystem.com/iu3?d=generic&ex-fargs=%3Fid%3D517d2a0b-f218-9fa8-c23d-b7e41c85df4c%26type%3D18%26m%3D1&ex-fch=416613&ex-src=https://www.verizon.com&ex-hargs=v%3D1.0%3Bc%3D7273010950801%3Bp%3D517D2A0B-F218-9FA8-C23D-B7E41C85DF4C"+
"&cb="+
a);_pix.setAttribute("id","_pix_id_517d2a0b-f218-9fa8-c23d-b7e41c85df4c");document.body.appendChild(_pix);}})();}}catch(e){utag.DB(e)}},function(a,b){try{if(b['dom.pathname'].toString().toLowerCase().indexOf('/smartphones'.toLowerCase())>-1){(function(){var _pix=document.getElementById("_pix_id_0e9324fa-63a4-6aeb-185e-c01f64f0b717");if(!_pix){var protocol="//";var a=Math.random()*1000000000000000000;_pix=document.createElement("iframe");_pix.style.display="none";_pix.setAttribute("src",protocol+
"s.amazon-adsystem.com/iu3?d=generic&ex-fargs=%3Fid%3D0e9324fa-63a4-6aeb-185e-c01f64f0b717%26type%3D18%26m%3D1&ex-fch=416613&ex-src=https://www.verizon.com&ex-hargs=v%3D1.0%3Bc%3D7273010950801%3Bp%3D0E9324FA-63A4-6AEB-185E-C01F64F0B717"+
"&cb="+
a);_pix.setAttribute("id","_pix_id_0e9324fa-63a4-6aeb-185e-c01f64f0b717");document.body.appendChild(_pix);}})();}}catch(e){utag.DB(e)}},function(a,b){try{if(1){(function(w,d,s,hash,data){w[data]=w[data]||[];var f=d.getElementsByTagName(s)[0],j=d.createElement(s),timestamp=Date.now();j.async=true;j.src='https://s-static.innovid.com/container-tag/js/'+hash+'/tag.js?d='+data+'&cb='+timestamp;j.id='innovid_container_tag_script';f.parentNode.insertBefore(j,f);})(window,document,'script','e0fc45e2','inv_data');}}catch(e){utag.DB(e)}},function(a,b){try{if(1){var pagename=vzwDL.page.pageName;if(pagename.indexOf("5g")<0){!(function(e,t,n,s,u,a){e.twq||((s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);}),(s.version="1.1"),(s.queue=[]),(u=t.createElement),(u.async=!0),(u.src="//static.ads-twitter.com/uwt.js"),(a=t.getElementsByTagName[0]),a.parentNode.insertBefore(u,a));})(window,document,"script");twq("init","o69l3");twq("track","PageView");}}}catch(e){utag.DB(e)}},function(a,b){try{if(1){var pagename=vzwDL.page.pageName;if(pagename.indexOf("5g")<0){!(function(e,t,n,s,u,a){e.twq||((s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);}),(s.version="1.1"),(s.queue=[]),(u=t.createElement),(u.async=!0),(u.src="//static.ads-twitter.com/uwt.js"),(a=t.getElementsByTagName[0]),a.parentNode.insertBefore(u,a));})(window,document,"script");twq("init","o69l6");twq('track','PageView');}}}catch(e){utag.DB(e)}}];u.send=function(a,b){if(u.ev[a]||u.ev.all!==undefined){var c,d,e,f,i;u.data={};for(c=0;c