/** * Copyright © 2020 Design Analytics * Version 1.4.5 * All rights reserved. * This file or any portion thereof may not be used by any team other than Dell's Design Analytics dev team without the express written permission of it. **/ var DELL=DELL||{};DELL.tnt=DELL.tnt||{};DELL.tnt.Test=function(C,w,y,D,E,x,z,F,G,H,I,J,K,L,M,N,O,A,m){this.system={isAT:"undefined"!==typeof adobe,uid:"t"+w.split(" ")[0].replace("#",""),domain:-1> "+d+"ms"),"undefined"!==typeof console&&console.info&&("Internet Explorer"===this.user.browser||"Edge"===this.user.browser||"Safari"===this.user.browser?console.info("..:: Running code from offer #"+this.campaign.number+"-"+this.campaign.recipe.id):console.info("%c..:: Running code from offer %c#"+this.campaign.number+"-"+this.campaign.recipe.id,this.system.styles.secondary,this.system.styles.secondaryBold)),this.system.tntTrack.cookieDays.setTime(this.system.tntTrack.cookieDays.getTime()+12096E5),this.system.tntTrack.tntvarArray=[this.campaign.id+":"+this.campaign.recipe.number+":0"],this.system.tntTrackFire.apply(this),this.init()}catch(f){this.Error("Main thread error!",f)}}else setTimeout(function(){c.system.execute.apply(c,[b])},100);return this}"undefined"!==typeof console&&console.info&&("Internet Explorer"===this.user.browser||"Edge"===this.user.browser||"Safari"===this.user.browser?console.info("..:: Viewport "+this.user.viewport+" is not included on this test."):console.info("%c..:: Viewport %c"+this.user.viewport+" %cis not included on this test.",this.system.styles.secondary,this.system.styles.secondaryBold,this.system.styles.secondary))},wrapFunction:function(a,c,b){var d=this;return function(){try{var f=$(b);return a.apply(f.length?f:d,arguments)}catch(g){d.Error(c,g)}}},wrapTimer:function(a,c){var b=this;return function(){var d=Array.prototype.slice.call(arguments),f=d,g=(new Date).getTime(),l,d=c.apply(b,d);try{for(var k=f.length;k--;)f[k]&&(f[k].selector||f[k].prevObject)&&(f[k]="$("+(f[k].selector||f[k].prevObject.selector)+")");l=(new Date).getTime()-g;this.runtime.total+=l;this.runtime.details.push(a+"("+JSON.stringify(f).slice(1,-1)+") >> "+l+"ms")}catch(m){}return d}},detectBrowser:function(){var a="Other";switch(!0){case !!window.opr&&!!opr.addons||!!window.opera||0<=navigator.userAgent.indexOf(" OPR/"):a="Opera";break;case "undefined"!==typeof InstallTrigger:a="Firefox";break;case 0b&&768<=b:c="tablet";break;case 768>b:c="mobile"}else switch(!0){case 980<=b:c="desktop";break;case 980>b:c="mobile"}return c},tntTrackFire:function(){var a=this.system.uid;window[a].setTimeout(function(){window[a].system.tntTrackSync.apply(window[a]);if(window[a].system.tntTrack.canRun&&(window[a].system.tntTrack.seenArray.length||window[a].system.tntTrack.clickArray.length)){var c="object"===typeof s_dell&&"function"===typeof s_dell.tl&&"function"===typeof s_dell.lowercaseVars&&"function"===typeof sC,b=-1f.indexOf(a)};for(b=0;barguments.length&&(b=c,c=a,a=null);if(a){var f=function(a){window[d].tntTrack(c,b)};if("function"===typeof $.fn.on)$(document).on("click",a,f);else $(a).bind("click",f)}else c&&-1===c.indexOf(window[d].campaign.number+"_")&&(c=window[d].campaign.number+"_"+c),window[d].system.tntTrackSync.apply(this),b===tntlib.Track.Seen?window[d].system.tntTrack.seenArray.push(c):window[d].system.tntTrack.clickArray.push(c),"undefined"!==typeof console&&console.info&&("Internet Explorer"===this.user.browser||"Edge"===this.user.browser||"Safari"===this.user.browser?console.info("TntTrack event "+b+" registered: "+c):console.info("%cTntTrack event %c"+b+"%c registered: %c"+c,window[d].system.styles.normal,window[d].system.styles.bold,window[d].system.styles.normal,window[d].system.styles.bold)),window[d].cookie.set("tntTrack",JSON.stringify([window[d].system.tntTrack.seenArray,window[d].system.tntTrack.tntvarArray,window[d].system.tntTrack.clickArray]),window[d].system.tntTrack.cookieDays,"/",window[d].system.domain)};this.api=function(a,c,b,d){function f(a,c){if(c&&c.Stack&&c.Stack.ItemIdentifier){var e=c.Stack,b={};b.UniqueId=e.UniqueItemCode;b.Id=e.ItemIdentifier;b.Brand={Name:e.BrandCategoryText,Code:e.BrandCategoryId};b.Message={Rewards:e.ComoRewardsMessage};e.MicroFormat&&(b.Name=e.MicroFormat.Name,b.Image=e.MicroFormat.Image,b.Url=e.MicroFormat.Url,b.Brand.Manufacturer=e.MicroFormat.Brand,b.Message.Description=e.MicroFormat.Description);e.EvalueCode&&(b.eValue=e.EvalueCode.InnerValue);b.Product={};e.ProductCode&&(b.Product.Code=e.ProductCode.InnerValue);e.ProductImage&&(b.Product.Image={Url:e.ProductImage.ImageUri,Alt:e.ProductImage.AltText});b.Category={Path:e.CategoryPath,Id:e.MainCategoryId,Name:e.MainCategoryText};e.CategoryInfo&&(b.Category.Id=b.Category.Id||e.CategoryInfo.Id,b.Category.Name=b.Category.Name||e.CategoryInfo.Name,b.Category.Parent={Id:e.CategoryInfo.TopLevelCategoryId,Name:e.CategoryInfo.TopLevelCategoryName});b.SKUs=e.OrderCodeSkus;b.Price={};e.Pricing&&(e.Pricing.DellPrice&&(b.Price.DellPrice=e.Pricing.DellPrice.InnerValue),e.Pricing.MarketValue&&(b.Price.MarketValue=e.Pricing.MarketValue.InnerValue),e.Pricing.TotalSavings&&(b.Price.TotalSavings=e.Pricing.TotalSavings.InnerValue),e.Pricing.SpecialOffersDetails&&(b.Offers=e.Pricing.SpecialOffersDetails.Details));e.FinanceMarketing&&e.FinanceMarketing.Amount&&e.FinanceMarketing.Amount.length&&(b.Price.AsLowAs=parseInt(e.FinanceMarketing.Amount.substr(1),10));e.Mda&&(b.Mda={Enabled:e.Mda.ShowCaption,Message:e.Mda.MdaCaption});e.PromotionMessage&&(b.Nabisco=e.PromotionMessage.InnerValue);b.Links={};e.Links&&(e.Links.AddToCartLink&&(b.Links.AddToCartLink=e.Links.AddToCartLink.Url),e.Links.CompareLink&&(b.Links.CompareLink=e.Links.CompareLink.Url),e.Links.ViewDetailsLink&&(b.Links.ViewDetailsLink=e.Links.ViewDetailsLink.Url));e.Rewards&&e.Rewards.PrimaryCallToAction&&(b.Links.Rewards=e.Rewards.PrimaryCallToAction.Url);e.IconographySpecs&&(b.Iconography=e.IconographySpecs.Specs);b.OutOfStock=e.ProductOutOfStock;b.SoldOut=e.ProductSoldOut;e.Shipping&&(b.Shipping={FastTrack:e.Shipping.IsFastTrackEligible},e.Shipping.ShippingDate&&(b.Shipping.Date=e.Shipping.ShippingDate.InnerValue));b.Weight={};e.ProductWeightDataModel&&(b.Weight.Value=e.ProductWeightDataModel.ProductWeightText,b.Weight.Enabled=e.ProductWeightDataModel.ShowProductWeight);b.Weight.Value=b.Weight.Value||e.Weight;c.Specs&&(b.Specs=c.Specs.TechSpecs);return b}return null}function g(a,b){var c={},d=null;c.Id=a;c.Items={};if(b&&b.Results&&b.Results.Stacks)for(var g=0;gv.length&&(v=v[0]),b&&b(v),$(document).trigger("tntlibApiSuccess",[v])))}catch(d){q.Error("API call success callback error!",d)}},error:function(a,b,c){try{d&&d(a,b,c),$(document).trigger("tntlibApiFailure",[a,b,c])}catch(f){q.Error("API call failure callback error!",f)}}})}};this.Bailout=function(a){console&&console.error&&console.error(a);a=this.system.options.iframe?window.location:window.parent.location;a.replace(a.protocol+"//"+a.host+a.pathname+a.search+(a.search?"&":"?")+"ref="+(this.campaign.number+"x"+this.campaign.recipe.id+"&x=1")+a.hash)};this.Error=function(a,c){function b(){for(var a=0;a> "+g+"ms");else return this.setTimeout(function(){d.system.waitQueue[a]=d.waitForElement.apply(d,[a,c,b])},250,'waitForElement "'+a+'" callback error!')}catch(k){this.Error("WaitForElement function error!",k)}};this.waitForCondition=function(a,c,b){var d=this,f=b||(new Date).getTime(),g;try{if(eval(a))c.apply(this,arguments),g=(new Date).getTime()-f,this.runtime.total+=g,this.runtime.details.push("waitForCondition("+a+") >> "+g+"ms");else return this.setTimeout(function(){d.waitForCondition.apply(d,[a,c,f])},250,'waitForCondition "'+a+'" callback error!')}catch(l){this.Error("WaitForCondition function error!",l)}};this.waitForObject=function(a,c,b){var d=this,f=b||(new Date).getTime(),g;try{if(this.checkNested(a))c.apply(this,arguments),g=(new Date).getTime()-f,this.runtime.total+=g,this.runtime.details.push("waitForObject("+a+") >> "+g+"ms");else return this.setTimeout(function(){d.waitForObject.apply(d,[a,c,b])},250,'waitForObject "'+a+'" callback error!')}catch(l){this.Error("WaitForObject function error!",l)}};this.stopWaitingFor=function(a){clearTimeout(this.system.waitQueue[a]);delete this.system.waitQueue[a]};this.preload=function(a,c){$("#tnt-preload").length||$("body").append('');for(var b="",d=a.length;d--;)b+='';$("#tnt-preload").append(b)};z&&(this.code=z,this.system.extend.apply(this));this.user.browser=this.system.detectBrowser();this.user.viewport=this.system.detectViewport(!0);return this};var tntlib=tntlib||{};tntlib.API=tntlib.API||{OC:1,Model:2,SKUList:3,SKU:4,UserData:5,Delivery:6,Finance:7,Ratings:8,Cart:9,CartItem:10,CartMasthead:11};tntlib.Track=tntlib.Track||{Seen:"Seen",Trigger:"Trigger"};