var Dell=window.Dell||{},SHOP;Dell.Controllers=Dell.Controllers||{};Dell.Controllers.vue={},function(n,t){(function(){"use strict";function s(n,t){for(var u=n.cloneNode(!1),i=0,o=n.childNodes.length,f=null,r=!1,e=!1,i=0;i=0;i--)if(this.attributes[i].name.indexOf("v-bind:")===0){var n=this.attributes[i].name.replace("v-bind:","");this.hasAttribute(n)&&this.removeAttribute(n)}});r.find(".v-hide").addBack(r).removeClass("v-hide")}function a(n){if(n.template){h(n,!0);return n.template.outerHTML}return""}var i={},r={},f=this,o=!0,e=Dell.perfmetrics,v;Vue.config.devtools=o;Vue.config.debug=o;n.extend(jQuery.expr[":"],{attrContains:function(n,t,i){for(var u=n.attributes,r=0;r0&&(n.skus=n.skus.substring(0,n.skus.length-1))};n.getSkus=function(){return n.skus};n.getCategory=function(){return"&category="+Dell.Metrics.sc.categoryid};n.getPageSize=function(){return"&page_size="+n.pageSize};n.getUserContext=function(){return"{0}/{1}/{2}/{3}?".format(n.userContext.Country,n.userContext.Language,n.userContext.CustomerSet,n.userContext.Segment)};n.setSku=function(t){n.skus="";t&&(n.skus="sku="+t)};n.getPromotionMessage=function(t,i,r,u,f){n.apiUrl=t;n.userContext=i;n.setSku(r);Dell.Services.httpGetService.getData(n.personalizationApiUrl()).success(function(n){if(n.offers){for(var t=0;t{1}<\/a>',o=r.data("personapi"),h=u.find(".dfs-merchandizing-die-cut"),c=r.attr("data-cat-name"),i=Dell.Services.personalization,s;t.DieCutMessages=[];s=function(t){for(var r,u,f,e=n(".ups-promotion"),i=0,o=t.length;i0&&(u=r.find(".bug_text span").not(".bug_pointer"),u.length===0&&(r.html(Dell.Controllers.vue.getComponent("pspromo").template),u=r.find(".bug_text span").not(".bug_pointer"),f=r.find(".bug_pointer"),f.css("border-left-color",f.attr("v-bind:style").split("'")[1])),u.html(t[i].Stack.PromotionMessage.Value),r.closest(".ups-promotion").children().removeClass("v-hide"))};t.mapPersonalizationResults=function(i,r){typeof i!="undefined"&&(t.DieCutMessages=[],n.each(i.offers,function(n,i){var e,f,u;if(i.messages.length>0)for(u=0;u0?s(r):Dell.Controllers.productstack.updateStacks(r)),t.handleDiecuts())};t.getPersonalizedData=function(n){var r={};i.apiUrl=o;try{r=Dell.Transactional.buildLightweightProfile()}catch(u){}i.userContext.Country=r.c;i.userContext.Language=r.l;i.userContext.Segment=r.s;i.userContext.CustomerSet=r.cs;typeof Dell.Services.DataModel!="undefined"&&typeof Dell.Services.DataModel.Stacks!="undefined"&&i.setSkus(n);Dell.Services.httpGetService.getData(Dell.Services.personalization.personalizationApiUrl()).success(function(i){i.offers.length>0?t.mapPersonalizationResults(i,n):t.handleDiecuts()}).error(function(){t.handleDiecuts()})};t.renderDiecut=function(n){o?t.getPersonalizedData(n):t.handleDiecuts()};t.handleDiecuts=function(){var f,e,s,i,u,o;if(r.hasClass("results")&&(n(".result-page-die-cut").remove(),f=n(".result-page-die-cut-main"),f.length>0)){for(e=n(".product-stack-row"),s=e.length,i=1;i0)for(r=0;r