function loadImages(n){n&&n!=null&&n.each(function(){var n=$(this),t;$.inviewport(n,{})&&(t=n.attr("data-original"),n.attr("src",t))})}var Dell,dpaNotificationService,app;shopApp.service("pfydApiService",["$location","AnavResultsService",function(n,t){var i=this;i.pfydResultsApiUrl=function(n,i,r,u){var f=t.getPageNum();return"{0}pfydresults?manufacturerid={1}&sortby={2}&categoryId={3}&page={4}".format(n,r,u,i,f)}}]);shopApp.controller("pfydResultController",["$scope","$rootScope","$http","httpGetService","initService","createDataModelService","pfydApiService","AnavResultsService",function(n,t,i,r,u,f,e,o){"use strict";var s=function(i){f.InitScope(n,t,i)};n.init=function(t){n.apiUrl=t},function(){(function(n){s(n)})({data:u.Get()})}();n.isMobile=$(".device-xs").is(":visible");n.isTablet=$(".device-sm").is(":visible");n.isDesktop=$(".device-md").is(":visible")||$(".device-lg").is(":visible");n.showPaginationSpinner=!1;n.showLoadMoreButton=n.DataModel.Pagination.CurrentPage0||$(".compare-page-carousel").length>0||typeof n=="undefined"||$(".recommendations-container").length>0&&!($(window).width()<768)?1:$(".device-xs").is(":visible")||$(window).width()<768?n.length:$(".device-sm").is(":visible")?parseInt(Math.ceil(n.length/3)):parseInt(Math.ceil(n.length/4))};n.getParentCollection=function(t){return n.getNumberOfRows(t)};n.getItemsPerRow=function(){return SHOP.Transactional.Breakpoint.isPhone()?1:SHOP.Transactional.Breakpoint.isTablet()?3:4};n.goToCompare=function(){for(var t=Dell.Transactional.getCodes("ocs"),i="",n=0;n0&&typeof $.cookie("location")!="undefined"&&$.cookie("location")!==""){var i=JSON.parse($.cookie("location"));$(".cfcDates .cfcZipCode").html(" - "+i.zipcode)}},300,n.fullDateString.getTime())});n.$on("resetAnav",function(){n.modelStacks=n.$parent.DataModel.Stacks});n.$on("newCandyAisleResultsReceived",function(){n.$parent.moduleIndex===n.moduleIndex&&(n.modelStacks=n.$parent.apiModuleProductStacks,n.determineLayout())});n.$on("updateCFCShipping",function(){var t=typeof n.DataModel.AnavFilterModel!="undefined"&&n.DataModel.AnavFilterModel.Results.Stacks.length>0?n.DataModel.AnavFilterModel.Results.Stacks:n.DataModel.Stacks;angular.forEach(t,function(i){var r,u;if(f.deliveryData.length>0)r=i.Stack.Type===1?i.Stack.Sku.Values:i.Stack.OrderCodeSku,typeof r!="undefined"&&r!=""&&(u=f.deliveryData[r],u.ShowDeliveryMessage&&(i.Stack.Shipping.ShippingTitle.Value="",$(".cfcZipCode").empty(),i.Stack.Shipping.ShippingDate.Value=u.DeliveryMessage,i.Stack.Shipping.EstimatedDeliveryModel.ProductStackDeliveryMessage=u.DeliveryMessage),i.Stack.Shipping.EstimatedDeliveryModel.PrimaryCtaCaption=f.linkWithZipCode,i.Stack.Shipping.EstimatedDeliveryModel.ZipCode=f.zipCode),typeof n!="undefined"&&typeof n.DataModel!="undefined"&&n.DataModel.Stacks.length>0&&(n.DataModel.Stacks=t);else if(i.Stack.ItemIdentifier===f.orderCode){i.Stack.Shipping.ShippingTitle.Value="";f.newShippingMessage!==""&&($(".cfcZipCode").empty(),i.Stack.Shipping.ShippingDate.Value=f.newShippingMessage,i.Stack.Shipping.EstimatedDeliveryModel.PrimaryCtaCaption=f.linkWithZipCode);return}})});n.$on("updateCompare",function(t){n.CategoryIndex==t.currentScope.CategoryIndex&&(n.modelStacks=n.$parent.DataModel.CompareCategories[t.currentScope.CategoryIndex].Containers)});n.$on("ngRepeatFinished",function(){$.each($(".merchandizingTile"),function(){var n=$(this).closest(".product-stack-inner-row").height();$(this).height(n)});($("#pfydController").attr("data-pageid")==="pfydResultsPage"||$("#pfydResultsPage").attr("data-is-pfyd-results-page")==="true")&&n.bestMatch()});n.init=function(i,r){n.ipr=i;n.rows=r;n.$parent.DataModel&&n.$parent.DataModel.ModuleGroups&&(n.moduleIndex=n.$parent.getProductStackIndex(),n.DataModel.Stacks=n.$parent.DataModel.ModuleGroups[n.moduleIndex].Items);n.$parent.DataModel&&n.$parent.DataModel.CompareCategories&&(n.CategoryIndex=n.$parent.getProductStackIndex(),n.DataModel.Stacks=n.$parent.DataModel.CompareCategories[n.CategoryIndex].Containers);n.DataModel&&(n.modelStacks=angular.copy(n.DataModel.Stacks));n.determineLayout();t.IsAnalyticsConfigurator&&(t.metricsClass="dellmetrics-browseconfig")};n.determineLayout=function(){n.setViewPort();n.ipr=u.getItemsPerRow();($("#featuredItems").length>0||$(".compare-page-carousel").length>0||$(".recommendations-container").length>0&&!($(window).width()<768))&&(n.ipr=n.modelStacks.length);n.rows=u.getNumberOfRows(n.modelStacks)};n.setViewPort=function(){n.isMobile=$(".device-xs").is(":visible");n.isTablet=$(".device-sm").is(":visible");n.isDesktop=$(".device-md").is(":visible")||$(".device-lg").is(":visible")};n.toggleMoreHide=function(n){n=n.split(" ").join(".");$(".more-"+n).toggle();$(".hide-"+n).toggle();$(".hide-ps-details-"+n).slideToggle()};n.waitForFinalEvent=function(){var n={};return function(t,i,r){n[r]&&clearTimeout(n[r]);n[r]=setTimeout(t,i)}}();n.goToCompare=function(){var t=u.goToCompare();window.location.href=n.$parent.DataModel.Stacks[0].Stack.Links.CompareLink.Url+t};n.expandRow=function(n){var t=$(n.target).closest(".tech-spec-row-group");$(t).find(".tech-spec-value").each(function(){$(this).find("#show-hide-tech-specs").collapse("toggle");$(this).find("a").toggleClass("collapsed")})};n.fullDateString=new Date;$(window).resize(function(){n.isDesktop&&($(".device-sm").is(":visible")||$(".device-xs").is(":visible"))&&$("#ProductStackContainer").hide();n.isTablet&&$(".device-xs").is(":visible")&&$("#ProductStackContainer").hide();n.waitForFinalEvent(function(){n.determineLayout();$(".popover-"+t.popoverId).popover("hide");n.$apply();$("#ProductStackContainer").show();$(".productstack-box #ProductStackContainer").show();r.universalAlreadyExistsInStore(n.modelStacks)},200,n.fullDateString.getTime())});$(window).on("load",function(){n.waitForFinalEvent(function(){if(r.universalAlreadyExistsInStore(n.modelStacks),n.$apply(t.comparecount="("+amplify.store("productOC:size")+"/3)"),$(".cfcDates").length>0&&typeof $.cookie("location")!="undefined"&&$.cookie("location")!==""){var i=JSON.parse($.cookie("location"));$(".cfcDates .cfcZipCode").html(" - "+i.zipcode)}},300,n.fullDateString.getTime())});$("body").click(function(i){$(i.target).is(".popover, .popover-title, .popover-content")||$(".popover-"+t.popoverId).popover("destroy");$(i.target).attr("data-ng-click")==="goToCompare()"&&n.goToCompare()});n.bestMatch=function(){var i=Dell.Services.DataModel.BestMatchRibbonLabel,n=Dell.Services.DataModel.BestMatchSkus,t;try{i&&n&&n.length>0&&(t=$("div[ps-compare]"),t&&t!=="undefined"&&t.each(function(t,r){var f=$(r),e=$("#stack_compare_"+(t+1)),u;e!=="undefined"&&(u=e.attr("data-productid"),u&&u!=="undefined"&&n&&n!=="undefined"&&(String.prototype.includes?n.includes(u.toUpperCase())&&$(f).children(".pfyd_product_stack_bestMatch_text").length===0&&f.append('

'+i+'<\/span><\/span><\/div><\/p>'):n.indexOf(u.toUpperCase())>-1&&$(f).children(".pfyd_product_stack_bestMatch_text").length===0&&f.append('

'+i+'<\/span><\/span><\/div><\/p>')))}))}catch(r){console.log(r)}}}]);shopApp.directive("onFinishRender",["$timeout",function(n){return{restrict:"A",link:function(t){t.$last===!0&&n(function(){t.$emit("ngRepeatFinished")},7e3)}}}]);shopApp.directive("psMerchandizing",["$window",function(n){return{scope:{backgroundcolor:"=",bannerbackgroundcolor:"=",bannerforegroundcolor:"=",image:"=",link:"=",title:"=",video:"=",hasvideo:"=",location:"="},restrict:"EA",template:'
<\/div> <\/div>

test<\/h3>
<\/div> <\/div>
{{image.AltText}} <\/div> <\/div> <\/a>

<\/h3>
<\/div> <\/div>
{{image.AltText}} <\/div> <\/div> <\/a> <\/div>',link:function(){angular.element(n).bind("resize",function(){$.each($(".merchandizingTile"),function(){var n=$(this).closest(".product-stack-inner-row").height();$(this).height(n)})});angular.element(n).bind("orientationchange",function(){$.each($(".merchandizingTile"),function(){var n=$(this).closest(".product-stack-inner-row").height();$(this).height(n)})})}}}]);shopApp.directive("psPromotion",function(){return{scope:{text:"="},restrict:"EA",template:'
<\/span>  <\/span> <\/div> '}});shopApp.directive("psImage",function(){return{scope:{imageurl:"=",linkurl:"=",doctype:"=",position:"=",linktarget:"@",variant:"="},restrict:"EA",template:' <\/a>',link:function(n,t){if(typeof n.$parent.$parent.item!="undefined"&&n.$parent.$parent.item.Stack.ProductSoldOut)t.on("click",function(n){n.preventDefault()})}}});shopApp.directive("psTitle",function(){return{scope:{text:"=",linkurl:"=",activelink:"=",doctype:"=",position:"=",variant:"="},restrict:"EA",template:'

<\/span> {{text}}<\/span> <\/a> {{text}}<\/span> <\/h4>',link:function(n,t){if(n.activateLink=typeof n.$parent.$parent.item!="undefined"&&n.$parent.$parent.item.Options.Settings.Location===3?!0:n.activelink,typeof n.$parent.$parent.item!="undefined"&&n.$parent.$parent.item.Stack.ProductSoldOut)t.on("click",function(n){n.preventDefault()})}}});shopApp.directive("psManufacturer",function(){return{scope:{manufacturer:"=",showborder:"="},restrict:"EA",template:'
{{manufacturer}}<\/span> <\/small> <\/div>'}});shopApp.directive("psMarketingblurb",function(){return{scope:{marketingblurb:"=",morelabel:"=",showmorelink:"="},restrict:"EA",template:'
<\/span> ...  {{morelabel}}<\/a> <\/span> <\/div>'}});shopApp.directive("psRating",function(){return{scope:{ratingvalue:"=",reviewscount:"=",reviewslabel:"=",viewdetailsurl:"=",doctype:"=",position:"=",variant:"="},restrict:"EA",template:'
<\/ratings> <\/div>

{{reviewscount}} <\/span><\/span> <\/p> <\/a>'}});shopApp.directive("psSimplePrice",function(){return{scope:{dellprice:"=",marketprice:"=",savingsprice:"=",pricingtooltiptitle:"=",pricingtooltipdescription:"=",showpricingtooltip:"=",showpricingdetail:"@",pricesuffix:"@"},restrict:"EA",template:'

{{marketprice}} <\/span> {{dellprice}} 1<\/sup> <\/a> <\/span> <\/strong> <\/span> <\/h4> '}});shopApp.directive("psFeature",function(){return{scope:{text:"="},restrict:"EA",template:'