us.norton.com Open in urlscan Pro
2600:141b:f000:c099::1015  Public Scan

Submitted URL: http://us.norton.com/etc.clientlibs/norton/clientlibs/generated/templates/t-base-defer.min.64693bcba6972552c29411ab15...
Effective URL: https://us.norton.com/etc.clientlibs/norton/clientlibs/generated/templates/t-base-defer.min.64693bcba6972552c29411ab15...
Submission: On November 02 via manual from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{107:function(e,o,t){"use strict";t.r(o);var r=t(8),n=t(4),i=t(14),a=t(3),d=t(6);window.dynamicPricingGlobal=n.b;var s=function(){var e=document.querySelectorAll("input[type=text]");e&&e.forEach((function(e){e.addEventListener("keyup",(function(){e.setAttribute("value",e.value)}))})),Object(r.a)(),Object(n.c)(),Object(d.a)(),setTimeout((function(){Object(a.c)()}),1e3),setTimeout((function(){Object(i.a)()}),2e3)};"loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",(function(){s()}))},14:function(e,o,t){"use strict";t.d(o,"a",(function(){return a}));var r=function(){var e=window.nUtil.cookie.get("qs",!0);e&&document.querySelectorAll('a[data-link-type="buy-now"]').forEach((function(o){try{if(!o.hasAttribute("data-parent")||o.hasAttribute("data-parent")&&"#accordion"!==o.getAttribute("data-parent")){var t=o.getAttribute("href"),r=window.nUtil.url.newUrlObject(t);window.nUtil.url.newUrlObject("?"+e).searchParams.forEach((function(e,o){r.searchParams.set(o,e)})),o.href=window.nUtil.url.decodeURLParams(r.href)}}catch(e){console.log("Couldn't append qs cookie params to the link "+o)}}))},n=function(){document.querySelectorAll('a[data-link-type="buy-now"]').forEach((function(e){try{var o=window.nUtil.url.newUrlObject(e.getAttribute("href"));o.searchParams.delete("trf_id"),e.href=window.nUtil.url.decodeURLParams(o.href)}catch(o){console.log("Couldn't remove trf_id from the link "+e)}}))},i=function(){document.querySelectorAll('a[data-link-type="buy-now"]').forEach((function(e){try{var o=window.nUtil.url.newUrlObject(e.getAttribute("href"));o.searchParams.set("trf_id","seo_norton"),e.href=window.nUtil.url.decodeURLParams(o.href)}catch(o){console.log("Couldn't update trf_id to seo_norton for the link "+e)}}))};function a(){r(),"paidsearch"===window.nortonAnalytics.traffic_source||"affiliates"===window.nortonAnalytics.traffic_source?n():"seo_norton"===window.nortonAnalytics.traffic_source&&i()}},2:function(e,o){function t(o){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(o)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},3:function(e,o,t){"use strict";t.d(o,"c",(function(){return p})),t.d(o,"d",(function(){return u})),t.d(o,"b",(function(){return a})),t.d(o,"a",(function(){return w}));var r,n,i=window.localStorage,a=function(e){return e&&"string"==typeof e?e.split("/").pop().split("?")[0].split("#")[0].split(".")[0]:""},d=function(e){if(e&&e.href&&e.dataset&&e.dataset.inid){var o=e.dataset.inid.split("inid=").pop();i.setItem("inid",o)}},c=function(e){var o,t,r;o=e.currentTarget,t=o.href,r=o.target,t.split("#")[0].replace(/\/$/,"")===window.location.href.split("#")[0].replace(/\/$/,"")&&new URL(t).hash&&"_blank"!==r.toLowerCase()?function(e){if(e&&e.href&&e.dataset&&e.dataset.linkType&&e.dataset.linkTrackObject&&e.href!==window.location.href&&"undefined"!=typeof s){var o=(window.nortonAnalytics||{}).page_name||"",t=new URL(e.href).hash.slice(1),r=e.dataset.linkType,n="nortoncom-".concat(o,"_").concat(r,"_").concat(t),i=JSON.parse(e.dataset.linkTrackObject);i.linkTrackVars=Object.keys(i).join(","),Object.assign(s,i),s.tl(!0,"o",n)}}(e.currentTarget):d(e.currentTarget)},l=function(e){3==e.which&&d(e.currentTarget)},m=(r=window.location.origin,function(e){return 0===(e||"").indexOf(r)}),u=(n=(n=window.FEATURE_FLAGS||"").toLowerCase(),function(e){m(e.href)?(e.addEventListener("click",c),e.addEventListener("contextmenu",l,!1)):e.href=e.dataset.hrefInid}),p=function(){document.querySelectorAll("a[data-rte-dynamic-inid]").forEach((function(e){!function(e){var o=e.href,t=e.dataset.rteDynamicInid;if(o&&t){var r,n=new URL(o),i=(null===(r=window.nortonAnalytics)||void 0===r?void 0:r.page_name)||"",d="".concat("nortoncom","-").concat(i,"_").concat(t,"_").concat(a(o)).toLowerCase();n.searchParams.set("inid",d),e.dataset.inid=d,e.dataset.hrefInid=decodeURIComponent(n.toString())}}(e)})),document.querySelectorAll("a[data-inid]").forEach((function(e){u(e)}))},w=function(e){var o=(null==e?void 0:e.site_sub_section)||"",t=(null==e?void 0:e.site_sub_sub_section)||"",r=(null==e?void 0:e.page_name)||"",n="".concat(o,"_").concat(t,"_").concat(r);return!function(e){return"blog"===e}(o)?n=r:""!==t&&"na"!==t&&"missing"!==t||(n="".concat(o,"_").concat(r)),"".concat("nortoncom","-").concat(n)}},4:function(e,o,t){"use strict";t.d(o,"b",(function(){return i})),t.d(o,"a",(function(){return a})),t.d(o,"c",(function(){return d}));var r=t(2),n=t.n(r),i={isDoneProcessing:function(e){nortonDp?nortonDp.finished?e():setTimeout((function(){i.isDoneProcessing(e)}),200):e()}},a={data:{allDynamicElements:function(){return document.querySelectorAll(".dpElement")},keyList:[],priceLists:[],urlParams:new URLSearchParams(window.location.search),promoCode:function(){return window.promoCodeUtil?window.promoCodeUtil.getPromoCode():"defaultweb"},apiDone:!1,sessionDone:!1,country:!1,language:!1,buylinkDomain:!1},domUpdate:{init:function(e,o,t,r,i,d){try{if(o&&e){var s,c,l=null===(s=e.msrp)||void 0===s?void 0:s.value,m=!!l&&parseFloat(l).toFixed(2),u=e.sale,p=e.promoOffer,w=a.getPromoPrice(p),f=a.util.getSkuFromSessionKey(r),b=null===(c=e.ar)||void 0===c?void 0:c.value,h=a.getReplacementSale(u,p),y=parseFloat(h).toFixed(2),g=function e(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(o).reduce((function(r,i){var a=o[i],d=t.length?"".concat(t,"."):"";return null!=a&&"object"===n()(a)?Object.assign(r,e.apply(void 0,[a,d+i])):r[d+i]=o[i],r}),{})}(e);o.forEach((function(e){var o=a.util.querySelectorIncludingSelf(e,".dp__sale"),t=a.util.querySelectorIncludingSelf(e,".dp__msrp"),r=a.util.querySelectorIncludingSelf(e,".dp__discount"),n=a.util.querySelectorIncludingSelf(e,".dp__buylink"),d=a.util.querySelectorIncludingSelf(e,".dp__entnote"),s=a.util.querySelectorIncludingSelf(e,".dp__split__sale"),c=a.util.querySelectorIncludingSelf(e,".dp__rte-text"),u=e.getAttribute("data-dp-tracking-id"),p=null==t?void 0:t.textContent,C=null==o?void 0:o.textContent,v=null==t?void 0:t.dataset.hidestrikethru,U=!1;m&&parseFloat(m)>parseFloat(y)&&(U=!0),a.domUpdate.dynamic.sale(y,o),a.domUpdate.dynamic.splitPrice(y,s),a.domUpdate.dynamic.msrp(t,l,U,v),a.domUpdate.dynamic.discount(r,t,l,h,p,C,v),a.domUpdate.dynamic.buylink(n,f,i,u),a.domUpdate.dynamic.entNote(d,b,y,w,l),a.domUpdate.dynamic.rteText(g,c)})),a.setDomLoaded()}}catch(e){console.log("dp: log on domUpdate.init: >> "+e),a.removeShimmerLoading()}},dynamic:{sale:function(e,o){return o&&(e&&a.util.formatWithCurrencySymbol(e)&&(o.textContent=a.util.formatWithCurrencySymbol(e),a.util.markAsUpdated(o)),a.removeShimmerLoading(o)),!0},splitPrice:function(e,o){if(o){var t=/(\d+)[,\.]?(\d*)?/.exec(e),r=o.querySelector(".dp__dollar"),n=o.querySelector(".dp__cent");3===t.length?(r.textContent=t[1],a.util.markAsUpdated(r),n.textContent=t[2],a.util.markAsUpdated(n)):console.log("dp: dynamic sale price is not split correctly, so showing static sale price"),a.removeShimmerLoading(r),a.removeShimmerLoading(n)}return!0},msrp:function(e,o,t,r){return e&&a.util.formatWithCurrencySymbol(o)&&(t?(e.textContent=a.util.formatWithCurrencySymbol(o),a.util.markAsUpdated(e),r&&e.classList.add("hide")):e.classList.add("hide"),a.removeShimmerLoading(e)),!0},discount:function(e,o,t,r,n,i,d){if(e){var s=e.dataset.discountType,c=!1,l=e.dataset.discountFormat;t&&r?c=a.setDiscountValue(s,t,r):n&&i&&(c=a.setDiscountValue(s,n,i)),c?(l&&l.indexOf("{price}")>-1?e.textContent=l.replace("{price}",c):e.textContent=c,d||o.classList.remove("hide"),a.util.markAsUpdated(e)):(o.classList.add("hide"),e.classList.add("hide")),a.removeShimmerLoading(e)}return!0},buylink:function(e,o,t,r){try{if(e){var n=window.nUtil.url.newUrlObject("https://"+a.data.buylinkDomain+"/ps");if(e.href)window.nUtil.url.newUrlObject(e.href).searchParams.forEach((function(e,i){var d="inid"!==i,s=!("tppc"===i.toLowerCase()&&t),c=!("selsku"===i.toLowerCase()&&o),l=!("ctry"===i.toLowerCase()&&a.data.country),m=!("lang"===i.toLowerCase()&&a.data.language),u="ptype"!==i.toLowerCase(),p=!("trf_id"===i.toLowerCase()&&r),w=!("promocode"===i.toLowerCase()&&a.data.promoCode()&&a.data.promoCode());d&&s&&c&&l&&m&&u&&p&&w&&n.searchParams.set(i,e)}));t&&n.searchParams.set("tppc",t),o&&n.searchParams.set("selSKU",o),a.data.country&&n.searchParams.set("ctry","lm"===a.data.country?"CR":a.data.country),a.data.language&&n.searchParams.set("lang",a.data.language),n.searchParams.set("ptype","cart"),"paidsearch"!==window.nortonAnalytics.traffic_source&&"affiliates"!==window.nortonAnalytics.traffic_source&&("seo_norton"===window.nortonAnalytics.traffic_source&&(r="seo_norton"),r&&n.searchParams.set("trf_id",r)),a.data.promoCode()&&n.searchParams.set("promocode",a.data.promoCode());var i=e.dataset.dpAdditionalParams;if(i){var d=a.util.addAdditionalParams(n,i);e.href=window.nUtil.url.decodeURLParams(d.href)}else e.href=window.nUtil.url.decodeURLParams(n.href);a.util.markAsUpdated(e),a.removeShimmerLoading(e)}}catch(e){console.log("dp: dynamic buylink >> "+e)}finally{return!0}},entNote:function(e,o,t,r,n){if(e){var i=e.innerHTML;i&&(e.innerHTML=a.util.entNoteCurrencyFormatting(i,o,t,r,n),a.util.markAsUpdated(e)),a.removeShimmerLoading(e)}return!0},rteText:function(e,o){if(o){var t=o.dataset.dpValueField;if(t&&e.hasOwnProperty(t)){var r=(e[t]||"").trim();t.indexOf("formatted")>-1&&(r=r.replace(" ","")),o.textContent=r,a.util.markAsUpdated(o)}a.removeShimmerLoading(o)}}},staticEntNoteVars:function(e){var o=a.util.querySelectorIncludingSelf(e,".dp__entnote"),t=null==o?void 0:o.dataset.entitlementNote,r=a.util.querySelectorIncludingSelf(e,".dp__sale"),n=a.util.querySelectorIncludingSelf(e,".dp__msrp"),i=e.hasAttribute("data-ar")?e.getAttribute("data-ar"):"",d=n?n.textContent:e.hasAttribute("data-msrp")?e.getAttribute("data-msrp"):"",s=r?r.textContent:"";t&&(o.innerHTML=a.util.entNoteCurrencyFormatting(t,i,s,s,d))},staticBuylinkSetup:function(e){try{if(e.href){var o=window.nUtil.url.newUrlObject(window.location),t=window.nUtil.url.newUrlObject(e.href);o.searchParams.forEach((function(e,o){var r=!0;"inid"!==o&&("trf_id"!==o||"paidsearch"!==window.nortonAnalytics.traffic_source&&"affiliates"!==window.nortonAnalytics.traffic_source?"trf_id"===o&&"seo_norton"===window.nortonAnalytics.traffic_source&&(e="seo_norton"):r=!1,r&&t.searchParams.set(o,e))})),t.searchParams.set("ptype","cart");var r=e.dataset.dpAdditionalParams;if(r){var n=a.util.addAdditionalParams(t,r);e.href=window.nUtil.url.decodeURLParams(n.href)}else e.href=window.nUtil.url.decodeURLParams(t.href)}}catch(e){console.log("dp: staticBuylinkSetup: "+e)}}},util:{entNoteCurrencyFormatting:function(e,o,t,r,n){var i=a.util.formatWithCurrencySymbol(o),d=a.util.formatWithCurrencySymbol(t),s=a.util.formatWithCurrencySymbol(r),c=a.util.formatWithCurrencySymbol(n);return e=i?e.replaceAll("{ar}",i):e,e=d?e.replaceAll("{sale}",d):e,e=s?e.replaceAll("{promo}",s):e,e=c?e.replaceAll("{msrp}",c):e},addAdditionalParams:function(e,o){try{if(o){var t=o.replace(/^&|^\?/g,"");return new URLSearchParams(t).forEach((function(o,t){e.searchParams.set(t,o)})),e}}catch(o){return console.log("dp: dynamic buylink additional params, "+o),e}},hasRequiredConfigs:function(){var e=["country","language","buylinkDomain","estoreRequest"],o=0,t=!1;try{if(e.forEach((function(r){if(!nortonDp.hasOwnProperty(r))return console.log("dp: "+r+" missing, dp disabled"),a.removeShimmerLoading(),!1;a.data[r]=nortonDp[r],++o===e.length&&(t=!0)})),!0===t)return!0}catch(e){return console.log("dp: nortonDp issue, "+e),!1}},isInsideProdPanel:function(e){var o=document.querySelector(".c-prodpanel");return!!o&&o.contains(e)},formatWithCurrencySymbol:function(e){try{return window.nortonDp&&void 0!==window.nortonDp.currencySymbol&&void 0!==window.nortonDp.currencyOnTheLeft?"true"===window.nortonDp.currencyOnTheLeft?"".concat(window.nortonDp.currencySymbol).concat(e):"".concat(e).concat(window.nortonDp.currencySymbol):(console.log("data is missing for nortonDp object"),!1)}catch(e){return console.log("dp: currency formatting, "+e),!1}},getMsrp:function(e){var o=e.hasAttribute("data-msrp")&&""!==e.getAttribute("data-msrp")?e.getAttribute("data-msrp"):"0";return Number(parseFloat(o).toFixed(2))},getSale:function(e){var o=e.hasAttribute("data-sale")&&""!==e.getAttribute("data-sale")?e.getAttribute("data-sale"):"0";return Number(parseFloat(o).toFixed(2))},getSkuFromSessionKey:function(e){return e.split(":").pop()},querySelectorIncludingSelf:function(e,o){return e.matches(o)&&e||e.querySelector(o)},querySelectorAllIncludingSelf:function(e,o){var t=e+o,r=e+" "+o;return document.querySelectorAll(t+", "+r)},removeShimmers:function(e){for(var o=e.querySelectorAll(".a_load"),t=0;t<o.length;t++)a.removeShimmerLoading(o[t])},markAsUpdated:function(e){e.classList.remove("dp__static"),e.classList.add("dp__updated")}},updatePricing:function(){a.splitStaticFromDynamic();for(var e=a.data.keyList,o=[],t=[],r="",n=0;n<e.length;n++)if(e[n].length>0){var d=e[n];sessionStorage.getItem(d)?o.push(d):t.push(d)}for(var s=0;s<t.length;s++){var c=a.util.getSkuFromSessionKey(t[s]);s+1<t.length?r+=c+",":r+=c}if(t.length>0)try{var l,m=new XMLHttpRequest;m.open("GET",a.data.estoreRequest+"?priceList="+a.data.priceLists.toString()+"&country="+a.data.country+"&sku="+encodeURIComponent(r)+"&promoCode="+a.data.promoCode(),!0),window.nortonDp&&window.nortonDp.tenantId&&m.setRequestHeader("X-NLOK-Tenant-ID",window.nortonDp.tenantId),m.timeout=null!==(l=nortonDp)&&void 0!==l&&l.requestTimeout?1e3*parseInt(nortonDp.requestTimeout):1e4,m.onerror=function(){console.log("dp: api request network error"),a.staticBuyLinksPromoCode(),a.removeShimmerLoading(),i.apiDone=!0,document.body.dispatchEvent(i.dpDoneEvent)},m.send(),m.onload=function(){if(200===this.status){if(m.response)for(var e=JSON.parse(m.response),o=function(o){try{var r=t[o].split(":"),n=a.util.getSkuFromSessionKey(t[o]),d=r[0],s='[data-dp-sku="'+n+'"][data-dp-price-list="'+d+'"]',c=document.querySelectorAll(s),l=e.priceList[d].countries[a.data.country].skus[n].price,m=e.priceList[d].tppcGuid,u=d+":tppc",p=e.priceList[d].countries[a.data.country].skus[n].productCode,w="";if(p)w=p.split("_")[0];l.productCode=w,new Promise((function(e){a.domUpdate.init(l,c,s,t[o],m,"api"),i.apiDone=!0,document.body.dispatchEvent(i.dpDoneEvent),e("Api resolved")})),sessionStorage.getItem(t[o])||sessionStorage.setItem(t[o],JSON.stringify(l)),sessionStorage.getItem(u)||sessionStorage.setItem(u,m)}catch(e){console.log("dp: api response values: "+e)}},r=0;r<t.length;r++)o(r)}else console.log("dp: api request application error, status code: "+this.status),a.staticBuyLinksPromoCode(),a.removeShimmerLoading(),i.apiDone=!0,document.body.dispatchEvent(i.dpDoneEvent)},m.ontimeout=function(){console.log("dp: api timeout after "+m.timeout+"ms"),a.staticBuyLinksPromoCode(),a.removeShimmerLoading(),i.apiDone=!0,document.body.dispatchEvent(i.dpDoneEvent)}}catch(e){console.log("dp: api JS error: >> "+e),a.staticBuyLinksPromoCode(),a.removeShimmerLoading(),i.apiDone=!0,document.body.dispatchEvent(i.dpDoneEvent)}else i.apiDone=!0,document.body.dispatchEvent(i.dpDoneEvent);if(o.length>0)try{for(var u=function(e){var t=o[e],r=a.util.getSkuFromSessionKey(o[e]),n=o[e].split(":")[0],d='[data-dp-sku="'+r+'"][data-dp-price-list="'+n+'"]',s=document.querySelectorAll(d),c=sessionStorage.getItem(t),l=JSON.parse(c),m=n+":tppc",u=sessionStorage.getItem(m)?sessionStorage.getItem(m):"";new Promise((function(t){a.domUpdate.init(l,s,d,o[e],u,"session"),i.sessionDone=!0,document.body.dispatchEvent(i.dpDoneEvent),t("Session resolved")}))},p=0;p<o.length;p++)u(p)}catch(e){console.log("dp: error applying session pricing: >> "+e),a.staticBuyLinksPromoCode(),a.removeShimmerLoading(),i.sessionDone=!0,document.body.dispatchEvent(i.dpDoneEvent)}else i.sessionDone=!0,document.body.dispatchEvent(i.dpDoneEvent);document.querySelectorAll(".details-not-mep").forEach((function(e){var o=e.querySelector(".dp__pp_msrp");if(o){var t=a.util.getMsrp(o),r=a.util.getSale(o);t&&r&&t<=r&&e.classList.add("hide")}}))},processAsStaticItem:function(e){a.domUpdate.staticEntNoteVars(e);var o=a.util.querySelectorIncludingSelf(e,".dp__buylink");o&&a.domUpdate.staticBuylinkSetup(o),a.util.removeShimmers(e)},splitStaticFromDynamic:function(){var e=a.data.allDynamicElements();if(a.util.hasRequiredConfigs()&&e.length>0)for(var o=0;o<e.length;o++){var t=e[o],r=t.dataset.dpPriceList,n=t.dataset.dpSku;if(r&&n&&-1===n.indexOf("*")){var i=r+":"+a.data.country+":"+a.data.promoCode()+":"+n;a.data.keyList.indexOf(i)<0&&a.data.keyList.push(i)}else a.processAsStaticItem(t);r&&!a.data.priceLists.includes(r)&&a.data.priceLists.push(r)}else document.querySelectorAll('[data-link-type="buy-now"]').forEach((function(e){a.domUpdate.staticBuylinkSetup(e)})),a.removeShimmerLoading();return a.data},setDomLoaded:function(){var e=document.querySelector(".dp__config");e&&e.setAttribute("data-dp-domloaded","true")},getReplacementSale:function(e,o){if(e&&e.value){var t=parseFloat(e.value),r=parseFloat(a.getPromoPrice(o));try{return r<t?r:t}catch(e){console.log("dp: promoOffer format is incorrect, "+e)}}},getPromoPrice:function(e){if(e&&e.promoDiscountDetails&&e.promoDiscountDetails[0].promoDiscount)return e.promoDiscountDetails[0].promoDiscount.value},setDiscountValue:function(e,o,t){var r,n="";return e&&"dollar"===e.toLowerCase()?(n=(n=(o-t).toFixed(2)).replace(/[.,]00/,""),r=a.util.formatWithCurrencySymbol(n)):r=(n=Math.floor((o-t)/o*100)).toFixed(0)+"%",0!==parseInt(n)&&r},staticBuyLinksPromoCode:function(){var e=document.querySelectorAll("a.dp__static");e.length&&e.forEach((function(e){e.href+="&promocode="+a.data.promoCode()}))},removeShimmerLoading:function(e){if(e||(e=document.getElementsByClassName("a_load")),e.classList)e.classList.remove("a_load");else if(e.length>0){for(var o=0;o<e.length;o++)e[o].classList.remove("a_load");a.removeShimmerLoading(e)}},init:function(){i.dpDoneEvent=new CustomEvent("dp-session-or-api-done",{bubbles:!0,cancelable:!0,composed:!1}),document.body.addEventListener("dp-session-or-api-done",a.checkIfDpDone),a.updatePricing()},checkIfDpDone:function(){if(i.apiDone&&i.sessionDone){nortonDp.finished=!0,document.body.removeEventListener("dp-session-or-api-done",a.checkIfDpDone);var e=new CustomEvent("dp-done",{bubbles:!0,cancelable:!0,composed:!1});document.body.dispatchEvent(e)}}};function d(){document.querySelector("[data-dp-sku]")&&a.init()}},6:function(e,o,t){"use strict";t.d(o,"b",(function(){return n})),t.d(o,"a",(function(){return i}));var r={classNames:{main:"t-expandable-link",expand:"t-expandable-link--expand",collapse:"t-expandable-link--collapse"},doToggle:function(e){e.classList.contains(r.classNames.expand)?(e.classList.remove(r.classNames.expand),e.classList.add(r.classNames.collapse),e.setAttribute("aria-expanded","false"),e.dispatchEvent(new CustomEvent("expand",{detail:"collapsed"}))):(e.classList.remove(r.classNames.collapse),e.classList.add(r.classNames.expand),e.setAttribute("aria-expanded","true"),e.dispatchEvent(new CustomEvent("expand",{detail:"expanded"})))},init:function(){try{document.querySelectorAll(".".concat(r.classNames.main)).forEach((function(e){e.addEventListener("click",(function(){r.doToggle(e)}))}))}catch(e){console.log("expandableLinks: init() :: "+e)}}},n=r.classNames;function i(){r.init()}},8:function(e,o,t){"use strict";function r(){var e=window.nortonDp.pagePromocode||window.nUtil.url.readParameter("promocode")||window.nUtil.cookie.get("promocode");e&&"WEBCOMP"!==e&&e.match("^[A-Za-z0-9-_]+$")?window.nUtil.cookie.set("promocode",e,36e5,!1):window.nUtil.cookie.set("promocode","defaultweb",36e5,!1)}function n(){window.promoCodeUtil.callPromoReader()}function i(){window.promoCodeUtil.closeMemberIdModal()}t.d(o,"a",(function(){return r})),t.d(o,"c",(function(){return n})),t.d(o,"b",(function(){return i})),window.promoCodeUtil={css:{successRow:".c-promosuccessfailure__row.c-promosuccessfailure--success",successMsg:".c-promosuccessfailure__row.c-promosuccessfailure--success .c-promosuccessfailure__flex__message",successMemberMsg:".c-promosuccessfailure__flex__message.c-promosuccessfailure_flex_member",successFailureUiLabel:".c-promosuccessfailure-uilabel",successFailureBold:"c-promosuccessfailure__bold",failRow:".c-promosuccessfailure__row.c-promosuccessfailure--fail",failMsg:".c-promosuccessfailure__row.c-promosuccessfailure--fail  .c-promosuccessfailure__flex__message",memberModalBg:"c-memberidmodal__bg",memberModalContainer:"c-memberidmodal__container",memberModalCloseBtn:"c-memberidmodal__modal-close",memberModalX:"c-memberidmodal__modal-x",memberIdField:".c-memberidmodal__memberid-field",memberIdFieldLabel:".c-memberidmodal__memberid-field-label",memberIdBtn:".c-memberidmodal__modal-btn .t-btn",memberIdUiLabel:".c-memberidmodal-uilabel",memberIdPromocodeField:".c-memberidmodal__promocodefield",memberIdFields:".c-memberidmodal__fields",memberIdInvalid:"c-memberidmodal--invalid",memberIdErrorMsg:".c-memberidmodal__error-msg",memberIdErrorActive:"c-memberidmodal__error-msg--active",memberIdDefaultErrorMsg:".c-memberidmodal__default-error-msg",hideModal:"hide-modal",hideClass:"t__hide"},dom:{successBanner:function(){return document.querySelector("".concat(window.promoCodeUtil.css.successRow))},successBannerMsg:function(){return document.querySelector("".concat(window.promoCodeUtil.css.successMsg))},successMemberMsg:function(){return document.querySelector("".concat(window.promoCodeUtil.css.successMemberMsg))},successFailureUiLabel:function(){return document.querySelectorAll("".concat(window.promoCodeUtil.css.successFailureUiLabel))},failBanner:function(){return document.querySelector("".concat(window.promoCodeUtil.css.failRow))},failBannerMsg:function(){return document.querySelector("".concat(window.promoCodeUtil.css.failMsg))},memberModalBg:function(){return document.querySelector(".".concat(window.promoCodeUtil.css.memberModalBg))},memberModalContainer:function(){return document.querySelector(".".concat(window.promoCodeUtil.css.memberModalContainer))},memberIdField:function(){return document.querySelector("".concat(window.promoCodeUtil.css.memberIdField))},memberIdFieldLabel:function(){return document.querySelector("".concat(window.promoCodeUtil.css.memberIdFieldLabel))},memberIdBtn:function(){return document.querySelector("".concat(window.promoCodeUtil.css.memberIdBtn))},memberIdUiLabel:function(){return document.querySelectorAll("".concat(window.promoCodeUtil.css.memberIdUiLabel))},memberIdPromocodeField:function(){return document.querySelector("".concat(window.promoCodeUtil.css.memberIdPromocodeField))},memberIdFields:function(){return document.querySelector("".concat(window.promoCodeUtil.css.memberIdFields))},memberIdErrorMsg:function(){return document.querySelector("".concat(window.promoCodeUtil.css.memberIdErrorMsg))},memberIdDefaultErrorMsg:function(){return document.querySelector("".concat(window.promoCodeUtil.css.memberIdDefaultErrorMsg))}},data:{promocode:"",memberIdPlaceholder:""},getPromoCode:function(){return""!==window.nUtil.cookie.get("promocode")?window.nUtil.cookie.get("promocode"):"defaultweb"},callPromoReader:function(){if(window.promoCodeUtil.getPromoCode()){var e=encodeURIComponent(window.promoCodeUtil.getPromoCode()).toLowerCase(),o=e.toLowerCase(),t=encodeURIComponent(window.location.pathname),r=window.nortonAnalytics.site_country||"us";if(o&&""!==o&&"defaultweb"!==o)try{var n=new XMLHttpRequest,i="/bin/rinato/promoreader?promoCode="+e+"&pagePath="+t+"&country="+r;n.open("GET",i,!0),n.timeout=1e4,n.send(),n.onload=function(){if(200===this.status&&n.response){var o=JSON.parse(n.response),t=o.hasOwnProperty("hideBanners")&&o.hideBanners,r=o.hasOwnProperty("showModal")&&o.showModal,i=o.hasOwnProperty("telephone")&&o.telephone;if(i&&window.promoCodeUtil.showTelephoneNumber(i),window.promoCodeUtil.data.promocode=e,o.hasOwnProperty("isActive")&&o.isActive){if(t||window.promoCodeUtil.showSuccessBanner(),r){if(o.hasOwnProperty("uiLabel")&&o.uiLabel){var a=o.uiLabel,d=window.promoCodeUtil.dom.successFailureUiLabel(),c=window.promoCodeUtil.dom.memberIdUiLabel();d.forEach((function(e){e.innerHTML=a})),c.forEach((function(e){e.innerHTML=a})),window.promoCodeUtil.dom.memberIdField().setAttribute("placeholder",a)}window.promoCodeUtil.dom.memberIdField().addEventListener("focus",(function(e){window.promoCodeUtil.dom.memberIdFieldLabel().style.display="block",window.promoCodeUtil.data.memberIdPlaceholder=e.target.getAttribute("placeholder"),e.target.setAttribute("placeholder","")})),window.promoCodeUtil.dom.memberIdPromocodeField().value=e.toUpperCase(),t||(window.promoCodeUtil.dom.successBannerMsg().classList.add(window.promoCodeUtil.css.successFailureBold),window.promoCodeUtil.showSuccessMemberMsg()),document.querySelectorAll('[data-link-type="buy-now"]').forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),window.promoCodeUtil.openMemberIdModal(e.target)}))}))}"undefined"!=typeof s&&(o.hasOwnProperty("telephone")?(s.linkTrackVars="eVar97,prop41,eVar41,eVar104",s.eVar104=o.telephone):s.linkTrackVars="eVar97,prop41,eVar41",s.eVar41="norton.com",s.prop41="norton.com",s.eVar97=e.toLowerCase(),o.hasOwnProperty("telephone")&&(s.eVar104="norton:"+o.telephone),s.tl(!0,"o","norton.com_offers_update-promo-phone"))}else window.nUtil.cookie.set("promocode","DEFAULTWEB",36e5,!1),t||window.promoCodeUtil.showFailureBanner()}}}catch(e){console.log("PromoReader :: Error while making PromoReader call: "+e)}}},showSuccessBanner:function(){var e=window.promoCodeUtil.data.promocode,o=window.promoCodeUtil.dom.successBannerMsg().textContent.replace("{promocode}",e.toUpperCase());window.promoCodeUtil.dom.successBannerMsg().textContent=o,window.promoCodeUtil.dom.successBanner().classList.remove("".concat(window.promoCodeUtil.css.hideClass))},showSuccessMemberMsg:function(){window.promoCodeUtil.dom.successMemberMsg().classList.remove("".concat(window.promoCodeUtil.css.hideClass))},showFailureBanner:function(){var e=window.promoCodeUtil.data.promocode,o=window.promoCodeUtil.dom.failBannerMsg().textContent.replace("{promocode}",e.toUpperCase());window.promoCodeUtil.dom.failBannerMsg().textContent=o,window.promoCodeUtil.dom.failBanner().classList.remove("".concat(window.promoCodeUtil.css.hideClass))},openMemberIdModal:function(e){var o=e.href;if(window.promoCodeUtil.dom.memberModalBg().classList.remove("".concat(window.promoCodeUtil.css.hideClass)),window.promoCodeUtil.dom.memberModalContainer().classList.remove("".concat(window.promoCodeUtil.css.hideClass)),setTimeout((function(){window.promoCodeUtil.dom.memberModalBg().classList.remove("".concat(window.promoCodeUtil.css.hideModal)),window.promoCodeUtil.dom.memberModalContainer().classList.remove("".concat(window.promoCodeUtil.css.hideModal))}),10),"undefined"!=typeof s){var t=window.promoCodeUtil.data.promocode;s.linkTrackVars="eVar41,prop41,prop20,eVar97,eVar125",s.eVar41="norton.com",s.prop41="norton.com",s.prop20="initiated",s.eVar97=t.toLowerCase(),s.eVar125="initiated",s.tl(!0,"o","norton.com_member-id-portal_initiated")}window.promoCodeUtil.dom.memberIdBtn().addEventListener("click",(function(e){window.promoCodeUtil.callMemberIdValidation(o)})),window.promoCodeUtil.dom.memberIdField().addEventListener("keypress",(function(e){"Enter"===e.key&&window.promoCodeUtil.callMemberIdValidation(o)})),window.promoCodeUtil.dom.memberModalContainer().addEventListener("click",(function(e){var o=e.target.classList.contains(window.promoCodeUtil.css.memberModalCloseBtn)||e.target.classList.contains(window.promoCodeUtil.css.memberModalX),t=e.target.classList.contains(window.promoCodeUtil.css.memberModalContainer)||e.target.classList.contains(window.promoCodeUtil.css.memberModalBg);(o||t)&&window.promoCodeUtil.closeMemberIdModal()})),window.promoCodeUtil.dom.memberModalBg().addEventListener("click",(function(e){var o=e.target.classList.contains(window.promoCodeUtil.css.memberModalCloseBtn)||e.target.classList.contains(window.promoCodeUtil.css.memberModalX),t=e.target.classList.contains(window.promoCodeUtil.css.memberModalContainer)||e.target.classList.contains(window.promoCodeUtil.css.memberModalBg);(o||t)&&window.promoCodeUtil.closeMemberIdModal()}))},closeMemberIdModal:function(){if(window.promoCodeUtil.dom.memberModalBg().classList.add("".concat(window.promoCodeUtil.css.hideClass)),window.promoCodeUtil.dom.memberModalContainer().classList.add("".concat(window.promoCodeUtil.css.hideClass)),setTimeout((function(){window.promoCodeUtil.dom.memberModalBg().classList.add("".concat(window.promoCodeUtil.css.hideModal)),window.promoCodeUtil.dom.memberModalContainer().classList.add("".concat(window.promoCodeUtil.css.hideModal))}),10),window.promoCodeUtil.dom.memberIdFields().classList.remove(window.promoCodeUtil.css.memberIdInvalid),window.promoCodeUtil.dom.memberIdErrorMsg().classList.remove(window.promoCodeUtil.css.memberIdErrorActive),window.promoCodeUtil.dom.memberIdDefaultErrorMsg().classList.remove(window.promoCodeUtil.css.memberIdErrorActive),window.promoCodeUtil.dom.memberIdFieldLabel().style.display="none",window.promoCodeUtil.dom.memberIdField().value="",""!=window.promoCodeUtil.data.memberIdPlaceholder){var e=window.promoCodeUtil.data.memberIdPlaceholder;window.promoCodeUtil.dom.memberIdField().setAttribute("placeholder",e)}},callMemberIdValidation:function(e){var o=window.promoCodeUtil.data.promocode,t=window.promoCodeUtil.dom.memberIdField().value;if(/^[a-zA-Z0-9@!#$%&'*+\-\/=?^_`{}|~;][a-zA-Z0-9.@!#$%&'*+\-\/=?^_`{}|~;]*[a-zA-Z0-9@!#$%&'*+\-\/=?^_`{}|~;]$/.test(t))try{var r=encodeURIComponent(o),n=encodeURIComponent(t),i=nortonAnalytics.site_country||"us",a=nortonAnalytics.site_language||"en",d=nortonAnalytics.site_section||"norton.com",c=new XMLHttpRequest,l="/bin/rinato/membervalidation?promoCode="+r+"&memberId="+n+"&country="+i+"&language="+a+"&siteDomain="+d;c.open("POST",l,!0),c.timeout=1e4,c.send(),c.onload=function(){if(200===this.status&&c.response){var o=JSON.parse(c.response);if(!!o.hasOwnProperty("isValid")&&o.isValid){if("undefined"!=typeof s){var t=window.promoCodeUtil.data.promocode;s.linkTrackVars="eVar41,prop41,prop20,eVar97,eVar125",s.eVar41="norton.com",s.prop41="norton.com",s.prop20="valid",s.eVar97=t.toLowerCase(),s.eVar125="valid",s.tl(!0,"o","norton.com_member-id-portal_completed")}window.location.href=e+"&promoMemberId="+o.encryptedMemberId}else{if("undefined"!=typeof s){var r=window.promoCodeUtil.data.promocode;s.linkTrackVars="eVar41,prop41,prop20,eVar97,eVar125",s.eVar41="norton.com",s.prop41="norton.com",s.prop20="invalid",s.eVar97=r.toLowerCase(),s.eVar125="invalid",s.tl(!0,"o","norton.com_member-id-portal_completed")}window.promoCodeUtil.dom.memberIdFields().classList.add(window.promoCodeUtil.css.memberIdInvalid),window.promoCodeUtil.dom.memberIdErrorMsg().innerHTML=o.errorMessage,window.promoCodeUtil.dom.memberIdErrorMsg().classList.add(window.promoCodeUtil.css.memberIdErrorActive),window.promoCodeUtil.dom.memberIdDefaultErrorMsg().classList.remove(window.promoCodeUtil.css.memberIdErrorActive)}}}}catch(e){console.log("PromoReader :: Error while making Member Id call: "+e)}else window.promoCodeUtil.dom.memberIdFields().classList.add(window.promoCodeUtil.css.memberIdInvalid),window.promoCodeUtil.dom.memberIdDefaultErrorMsg().classList.add(window.promoCodeUtil.css.memberIdErrorActive),window.promoCodeUtil.dom.memberIdErrorMsg().classList.remove(window.promoCodeUtil.css.memberIdErrorActive)},showTelephoneNumber:function(e){var o=document.querySelector(".c-tnavs__promocode-tfn");o&&(o.classList.remove("hide"),document.querySelector(".c-tnavs__tfn-no").innerHTML=e)}}}},[[107,0]]]);