1function getCookie(n){for(var t,r=n+"=",f=decodeURIComponent(document.cookie),u=f.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function viewlAllproductfromcategory(n){return console.log("category: "+n),window.dataLayer.push({event:"e_categorySeeAll",category:n}),""}function gtmpdpDownload(n){window.dataLayer.push({event:"e_pdpDocDownload",documentType:n})}function gtmaddtocompare(n,t,i){window.dataLayer.push({event:"e_addToCompare",addToCompareLocation:n,product:{name:t,id:i}})}function gtmaddtocart(n,t,i,r,u,f,e,o,s,h,c){window.dataLayer.push({event:"e_addToCart",atcLocation:n,ecommerce:{currencyCode:t,add:{products:[{id:i,name:r,price:u,quantity:f,category:h,availableServices:e,serviceSubscriptions:o,brand:c,availability:s}]}}})}function gtmaddservices(n,t,i){window.dataLayer.push({event:"e_servicesAdded",servicesAdded:n,product:{name:t,id:i}})}function gtmproductDetails(n,t,i,r,u,f,e,o){var s,h="",c;window.location.pathname.split("/").length>4&&(h=window.location.pathname.split("/")[3].split("-").join("Â "));window.location.pathname.split("/").length>5&&(s=window.location.pathname.split("/")[4].split("-").join("Â "));c=$(this).data("sku");window.dataLayer.push({event:"e_detailView",ecommerce:{currencyCode:n,detail:{products:[{id:t,name:i,price:r,quantity:u,category:s,availableServices:f,serviceSubscriptions:e,brand:"Netgear",availability:o}]}}})}function cppdpvideoplay(){window.dataLayer.push({event:"e_pdpImageInteraction",imageInteraction:"video play"})}function cpfilterselection(n){window.dataLayer.push({event:"e_filter",filters:n})}function cpsorting(n){window.dataLayer.push({event:"e_sort",sorted:n})}function cpsearchresults(n,t,i,r,u){window.dataLayer.push({event:"e_searchResults",searchResults:{term:n,category:"Website",numResults:t,pageNumber:i},filters:r,sort:u})}function getUserProfile(){var t=getCookie("token"),i='{ "token" : "'+t+'" }',n=new XMLHttpRequest;n.addEventListener("readystatechange",function(){if(this.readyState===4&&this.status===200&&this.responseText!=='"Unable to fetch User details"'){var n=JSON.parse(this.responseText).firstName;typeof NTGR!="undefined"&&typeof NTGR.ChatConfig!="undefined"&&(NTGR.ChatConfig.firstName=n,initChat());$(".welcome").each(function(){var t=$(this).text();$(this).text(t+" "+n+"!")});$(".sign-in-name").each(function(){$(this).text(n)});$(".logged-in").each(function(){$(this).removeClass("hide")});$(".logged-out").each(function(){$(this).addClass("hide")});$(".sign-in-text").each(function(){$(this).addClass("hide")});$(".sign-in-name").each(function(){$(this).removeClass("hide")});isRegistered="yes";userID=JSON.parse(this.responseText)._id;NTGR.CartConfig.displayCart==="yes"&&(userEmail=JSON.parse(this.responseText).email,UpdateSFMCTrackingPixel());UpdateDatalayer()}else this.readyState===4&&(this.status!==200||this.responseText==='"Unable to fetch User details"')&&(typeof NTGR!="undefined"&&typeof NTGR.ChatConfig!="undefined"&&initChat(),console.log(this.responseText),$(".sign-in-text").each(function(){$(this).removeClass("hide")}),$(".sign-in-name").each(function(){$(this).addClass("hide")}),$(".logged-out").each(function(){$(this).removeClass("hide")}),$(".logged-in").each(function(){$(this).addClass("hide")}),NTGR.CartConfig.displayCart==="yes"&&UpdateSFMCTrackingPixel(),UpdateDatalayer())});n.open("POST",NTGR.CartConfig.storeDomain+"getuserprofile");n.setRequestHeader("Content-Type","application/json;charset=UTF-8");n.send(i)}function UpdateSFMCTrackingPixel(){var n,t;try{_etmc&&(_etmc.push(["setUserInfo",{email:userEmail}]),$("#add-to-cart-pdp").length?(n="",$("#add-to-cart-pdp").each(function(t){t!==0&&(n+=",");n+=$(this).data("sku")}),_etmc.push(["trackPageView",{item:n}])):$("meta[name=document_type]").length>0&&$("meta[name=document_type]").attr("content")=="Product Page"?(n="",$(".add-to-cart").each(function(t){t!==0&&(n+=",");n+=$(this).data("sku")}),n==""&&(n=$("meta[name=model]").attr("content")),_etmc.push(["trackPageView",{item:n}])):window.location.pathname.indexOf("search_result_dxa.html")>0||window.location.pathname.indexOf("search-support.aspx")>0?(t=getUrlParameterByName("q"),t!=undefined&&t!=null?_etmc.push(["trackPageView",{search:t}]):_etmc.push(["trackPageView"])):_etmc.push(["trackPageView"]))}catch(i){}}function UpdateDatalayer(){var i="",t="",r="",u="",n="";window.dataLayer=window.dataLayer||[];
1userID!=""&&userID!=null&&userID!=undefined?(getCookie("uxd")!=null&&getCookie("uxd")!=undefined&&getCookie("uxd")!=""&&(userID=atob(getCookie("uxd"))),t="Hard Login",i=!0):(getCookie("uxd")!=null&&getCookie("uxd")!=undefined&&getCookie("uxd")!=""?(userID=atob(getCookie("uxd")),t="Guest"):(userID="",t="Anonymous"),i=!1);document.querySelector("meta[name='ps-country']")!=null&&document.querySelector("meta[name='ps-country']").getAttribute("content")!=""&&(u=document.querySelector("meta[name='ps-country']").getAttribute("content"));document.querySelector("meta[name='ps-language']")!=null&&document.querySelector("meta[name='ps-language']").getAttribute("content")!=""&&(r=document.querySelector("meta[name='ps-language']").getAttribute("content"));n=window.location.pathname.indexOf("default.html")>-1||window.location.pathname=="/"||window.location.pathname.indexOf("index.html")>-1||window.location.pathname.replace(/\/$/,"")==NTGR.CartConfig.path?"home":$("#pagetype").data("value");n==null||n==""||n==undefined?window.location.pathname.split("/").indexOf("shop")<0&&window.dataLayer&&window.dataLayer.push({event:"e_dataLayerReady",country:u,pageLanguage:r,pageType:n,visitor:{state:t,xCloudID:userID},loggedInState:i}):window.dataLayer&&window.dataLayer.push({event:"e_dataLayerReady",country:u,pageLanguage:r,pageType:n,visitor:{state:t,xCloudID:userID},loggedInState:i})}function initChat(){if(window.embedded_svc)initESW("https://service.force.com");else{var n=document.createElement("script");n.setAttribute("src",NTGR.ChatConfig.chatScript);n.onload=function(){initESW(null)};document.body.appendChild(n)}}var userID="",userEmail="",isRegistered="",initESW;$(document).ready(function(){var n,f;if(getCookie("token")!=null&&getCookie("token")!=undefined&&getCookie("token")!="")getUserProfile();else{if(typeof NTGR!="undefined"&&typeof NTGR.ChatConfig!="undefined"&&initChat(),n=window.location.search,n&&(i=n.indexOf("?"))>=0){var t="",r="uxd=",e=n.substring(i+1),o=e.split("&");o.forEach(function(n){try{t=atob(n);(u=t.indexOf(r))>=0&&(qUserID=t.substring(u+r.length),document.cookie="uxd="+btoa(qUserID)+"; max-age=31536000;SameSite=Strict;Secure=true;domain=.netgear.com")}catch(i){}})}NTGR.CartConfig.displayCart==="yes"&&UpdateSFMCTrackingPixel();UpdateDatalayer();$(".sign-in-text").each(function(){$(this).removeClass("hide")});$(".sign-in-name").each(function(){$(this).addClass("hide")});$(".logged-out").each(function(){$(this).removeClass("hide")});$(".logged-in").each(function(){$(this).addClass("hide")})}NTGR.CartConfig.displayCart!=="yes"&&($(".list-product").length>0&&(regroupContent(),updateFilterNumber()),f=$("#pagetype").data("value")||"default",f.toLowerCase()==="configuration-product"&&initConfigurePage())});initESW=function(n){var t,i;embedded_svc.settings.displayHelpButton=!0;embedded_svc.settings.language="";embedded_svc.settings.defaultMinimizedText=" ";embedded_svc.settings.smallCompanyLogoImgURL=NTGR.ChatConfig.chatLogo;window.addEventListener("setbtnID",function(n){t=n.detail},!0);embedded_svc.settings.directToButtonRouting=function(){return t};embedded_svc.settings.extraPrechatFormDetails=NTGR.ChatConfig.xid==NTGR.ChatConfig.staticXid?[{label:"ConciergeReferringSite",value:NTGR.ChatConfig.referrer,transcriptFields:["CEP_Concierge_Referring_Site__c"],displayToAgent:!0}]:[{label:"xcloudid",value:NTGR.ChatConfig.xid,displayToAgent:!0},{label:"First Name",value:NTGR.ChatConfig.firstName,displayToAgent:!0},{label:"Email",value:NTGR.ChatConfig.email,displayToAgent:!0},{label:"ConciergeReferringSite",value:NTGR.ChatConfig.referrer,transcriptFields:["CEP_Concierge_Referring_Site__c"],displayToAgent:!0},{label:"ConciergeEmail",value:NTGR.ChatConfig.email,transcriptFields:["CEP_Concierge_Email__c"],displayToAgent:!0},{label:"ConciergexCloud",value:NTGR.ChatConfig.xid,transcriptFields:["CEP_Concierge_xCloudId__c"],displayToAgent:!0}];embedded_svc.settings.enabledFeatures=["LiveAgent"];embedded_svc.settings.entryFeature="LiveAgent";i=NTGR.ChatConfig.showChat;embedded_svc.addEventHandler("onSettingsCallCompleted",function(n){i==1&&n.isAgentAvailable?embedded_svc.settings.displayHelpButton=!0:$("div.embeddedServiceHelpButton").css("display","none")});embedded_svc.settings.extraPrechatInfo=[{entityName:"Contact",showOnCreate:!0,linkToEntityName:"Case",linkToEntityField:"ContactId",saveToTranscript:"Contact",entityFieldMaps:[{isExactMatch:!0,fieldName:"xcloud_i
1d__c",doCreate:!1,doFind:!0,label:"xcloudid"},{isExactMatch:!0,fieldName:"Email",doCreate:!1,doFind:!0,label:"Email"}]},{entityName:"Case",showOnCreate:!0,saveToTranscript:"Case",entityFieldMaps:[{isExactMatch:!0,fieldName:"Subject",doCreate:!0,doFind:!1,label:"Subject"},{isExactMatch:!0,fieldName:"CEP_Case_SubType__c",doCreate:!0,doFind:!1,label:"SubType"},{isExactMatch:!0,fieldName:"Type",doCreate:!0,doFind:!1,label:"Type"},{isExactMatch:!0,fieldName:"CEP_OriginatingSource__c",doCreate:!0,doFind:!1,label:"OriginatingSource"}]}];embedded_svc.init(NTGR.ChatConfig.sfDomain,NTGR.ChatConfig.kbURL,n,NTGR.ChatConfig.orgId,NTGR.ChatConfig.pluginName,{baseLiveAgentContentURL:NTGR.ChatConfig.baseLiveAgentContentURL,deploymentId:NTGR.ChatConfig.deploymentId,buttonId:NTGR.ChatConfig.buttonId,baseLiveAgentURL:NTGR.ChatConfig.baseLiveAgentURL,eswLiveAgentDevName:NTGR.ChatConfig.agentDevname,isOfflineSupportEnabled:!1})};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.