function RecentQueriesViewModel(){var n=this;n.updateLastFiveQueries=function(n){var r=utils.getCookie("queryHistory")||"",t=r.split("|").filter(function(n){return n!==""}),i;n=n.trim();i=t.indexOf(n);i>-1&&t.splice(i,1);t.splice(0,0,n);t.length>5&&t.pop();utils.updateCookie("queryHistory",t.join("|"))}}function EmcSearchResult(n){this.data=n.Data;this.TemplateName=n.TemplateName;this.MoreDetailsLink=n.Data.MoreDetailsLink;this.Title=n.Data.Title;this.Summary=n.Data.Summary;this.SourceKey=n.Data.SourceKey}function ResultsViewModel(n){function f(n){return n!=null}function o(){return{TemplateName:"noresults",Data:{}}}function v(n){r=[];for(var i=n;i<t.Results().length;i++)y(t.Results()[i],i)}function y(n,t){if(n.Data&&!n.Data.EstimatedShipDate&&n.Data.EstimatedShipDateUrl){var i=p(n);r.push($.ajax({url:i,type:"GET",beforeSend:function(n){n.setRequestHeader(correlationIdField,correlationId)},success:function(n){n&&($("#time-to-ship-"+t).length?$("#time-to-ship-"+t).fadeOut(function(){$("#estimated-ship-date-"+t+" > span").append(n);$("#smartselect-ship-date-"+t+" > span").append(n);$("#estimated-ship-date-"+t).fadeIn()}):($("#estimated-ship-date-"+t+" > span").append(n),$("#smartselect-ship-date-"+t+" > span").append(n),$("#estimated-ship-date-"+t).fadeIn(),$(window).resize()))},timeout:1500}))}}function p(n){return estimatedShipDateUrl+"?region="+n.Data.Region+"&country="+profile.Country+"&language="+profile.Language+"&customerset="+n.Data.CustomerSet+"&ordercode="+n.Data.ProductId}function w(n){u=[];for(var i=n;i<t.Results().length;i++)b(t.Results()[i],i)}function b(n,t){n.Data&&n.Data.DeliveryPromiseDateUrl&&u.push($.ajax({url:n.Data.DeliveryPromiseDateUrl,type:"GET",beforeSend:function(n){n.setRequestHeader(correlationIdField,correlationId)},success:function(n){n&&n.DeliveryDate&&($("#delivery-promise-date-"+t).text(k(n.DeliveryDate)),n.BuildType=="BTO"?$("#delivery-promise-date-pretext-bto-"+t).fadeIn():$("#delivery-promise-date-pretext-"+t).fadeIn(),$("#delivery-promise-"+t).fadeIn(),n.OptionCode==="EXPR"&&$("#delivery-promise-img"+t).fadeIn(),$("#delivery-promise-option-"+n.OptionCode.toLowerCase()+t).fadeIn(),$(window).resize())},timeout:1500}))}function k(n){var t=new Date(n);return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+", "+["Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]+" "+t.getDate()}function d(){for(var n=0;n<r.length;n++)r[n].abort()}function g(){for(var n=0;n<u.length;n++)u[n].abort()}function h(n){return n.TemplateName=="CompareProducts"}function a(){$(".text-nowrap.compare-list-item").each(function(n,t){var i=$(t);i.children("span").first().width()>i.width()&&i.children("button").show()})}function e(){$(window).width()<768?$("#search-next-search-box").blur():$("#search-next-search-box").focus()}var t=this,r,u,s,i;t.recentQueriesViewModel=new RecentQueriesViewModel;t.Results=ko.observableArray();t.Templates=ko.observableArray();t.DisplayResults=ko.observable(!1);t.premierResultsExist=ko.observable(!1);t.premierZeroResults=ko.observable(!1);t.IsSnpFullCatalogEnabled=ko.observable(!1);t.StickyDisplayResults=ko.observable(!1);t.ReviewText=ko.observableArray();t.PreviousTerm=ko.observable();t.SuccessSearchTerm=ko.observable("");t.OverrideTerm=ko.observable(!1);t.Loading=ko.observable(!1);t.previousFilter=ko.observable();t.ReviewsLoading=ko.observable(!1);t.CustomerReviews=ko.observableArray();t.Page=ko.observable(0);t.PageSize=ko.observable(function(){return $(window).width()>=1140?defaultPageSize.large:$(window).width()>=940&&$(window).width()<1140?defaultPageSize.medium:$(window).width()>=720&&$(window).width()<940?defaultPageSize.small:defaultPageSize.xs});t.Skip=0;t.Strategy="";t.selectedSort=ko.observable("");t.filtersAutoUpdated=ko.observable(!1);t.filtersUpdatedByUser=ko.observable(!1);t.categories=ko.observableArray();t.selectedCategories=ko.observableArray(landingCategories);t.previousCategories=ko.observableArray();t.selectedCategories.subscribe(function(){typeof event=="undefined"?t.filtersAutoUpdated()||t.filtersUpdatedByUser(!0):event.type!="readystatechange"&&(t.filtersUpdatedByUser=ko.observable(!0))},null,"arrayChange");t.shouldDisplayPlaceHolderLoader=ko.observable(!1);t.isLayoutSwitchCalled=ko.observable(!1);t.switchToGridLayout=ko.observable(!1);t.selectedCategoriesType=ko.observable();t.refinements=ko.observableArray();t.selectedRefinements=ko.observableArray(landingRefinements);t.selectedRefinements.subscribe(function(){typeof event=="undefined"?t.filtersAutoUpdated()||t.filtersUpdatedByUser(!0):event.type!="readystatechange"&&(t.filtersUpdatedByUser=ko.observable(!0))},null,"arrayChange");t.leftNavVisible=ko.observable(!0);t.leftNavEnabled=ko.computed(function(){return leftNav&&(t.categories().length||t.refinements().length)});t.showLeftNav=ko.computed(function(){return leftNav&&t.leftNavVisible()&&(t.categories().length||t.refinements().length)});t.showRefinements=ko.computed(function(){return leftNav&&t.selectedCategories().length});t.showGridView=ko.observable(gridView);t.compareProducts=ko.observableArray();t.hasBrand=ko.observable(!1);t.selectedSort.subscribe(function(){t.shouldDisplayPlaceHolderLoader(!0);t.previousCategories(t.selectedCategories.slice());$("#search-next-search-form,#unified-search-masthead").submit()});t.showSorted=function(n,i){t.selectedSort($(i.delegateTarget).val()||t.getSortingValue($(i.delegateTarget).attr("id"),n.Data))};t.getSortingValue=function(n,i){return i.sortingReset?(t.selectedSort(""),t.previousCategories(""),i[0]):i[n]};t.toggleCollapse=function(n,t){$(t.delegateTarget).siblings(".collapse-div").slideToggle()};t.showMoreTechSpecs=function(){$(".main-tech-specs").on("click","button",function(n){$(n.delegateTarget).hide();$(n.delegateTarget).siblings(".all-tech-specs").show()});$(".all-tech-specs").on("click","button",function(n){$(n.delegateTarget).hide();$(n.delegateTarget).siblings(".main-tech-specs").show()})};t.showMoreTechSpecsGrid=function(){$(".main-tech-specs").on("click","button",function(n){$(n.delegateTarget).hide();$(n.delegateTarget).siblings(".all-tech-specs").show();gridsize()});$(".all-tech-specs").on("click","button",function(n){$(n.delegateTarget).hide();$(n.delegateTarget).siblings(".main-tech-specs").show();gridsize()})};t.ResultCount=ko.observable(null);t.shouldShowProperty=function(n){return f(n)};t.shouldShowOperatingSystem=function(n){return f(n)};t.shouldShowLastModifiedDate=function(n){return f(n)};t.shouldShowArticleType=function(n){return f(n)};t.showMoreMobile=function(n,t){var i=$(t.delegateTarget),r=i.attr("id").replace("smt-","");i.toggle();i.siblings().toggle();gridView&&($(".grid-spec").css("height","auto"),$(".grid-body").css("height","auto"),$(".grid-body-deals").css("height","auto"),$(".gridstack").css("height","auto"),$(".gridstack-deals").css("height","auto"));$("#system-description-"+r).slideToggle();$("#price-stack-"+r).slideToggle()};t.showLessMobile=function(n,t){var i=$(t.delegateTarget),r=i.attr("id").replace("slt-","");i.toggle();i.siblings().toggle();$("#price-stack-"+r).slideToggle();$("#system-description-"+r).slideToggle()};t.showMoreFinance=function(n,t){var f=$(t.delegateTarget),r=f.attr("id").replace("smf-",""),u,e,i;if(f.toggle(),f.siblings().toggle(),gridView){for(u=getGridCols(),e=~~(parseInt(r)/u),$("#price-stack-"+r).css("height","auto"),$("#finance-rewards-"+r).slideToggle(function(){gridsize()}),i=parseInt(r)-1;~~(i/u)==e;)$("#price-stack-"+i).css("height","auto"),$("#finance-rewards-"+i).slideToggle(function(){gridsize()}),i--;for(i=parseInt(r)+1;~~(i/u)==e;)$("#price-stack-"+i).css("height","auto"),$("#finance-rewards-"+i).slideToggle(function(){gridsize()}),i++}else $("#finance-rewards-"+r).slideToggle()};t.showLessFinance=function(n,t){var f=$(t.delegateTarget),r=f.attr("id").replace("slf-",""),u,e,i;if(f.toggle(),f.siblings().toggle(),gridView){for(u=getGridCols(),e=~~(parseInt(r)/u),$("#price-stack-"+r).css("height","auto"),$("#finance-rewards-"+r).slideToggle(function(){gridsize()}),i=parseInt(r)-1;~~(i/u)==e;)$("#price-stack-"+i).css("height","auto"),$("#finance-rewards-"+i).slideToggle(function(){gridsize()}),i--;for(i=parseInt(r)+1;~~(i/u)==e;)$("#price-stack-"+i).css("height","auto"),$("#finance-rewards-"+i).slideToggle(function(){gridsize()}),i++}else $("#finance-rewards-"+r).slideToggle()};t.submitNoResultsFeedback=function(){$.ajax({type:"POST",url:noResultsFeedbackUrl,data:{Comments:$("#no-results-feedback").val(),AppliedExperiments:footerViewModel.AppliedExperiments(),Term:$("#no-results-term").text(),UserName:userName,Country:profile.Country,Language:profile.Language,Segment:profile.Segment,CustomerSet:profile.CustomerSet,EmailAddress:$("#no-results-email").val(),Name:$("#no-results-name").val(),UserAgent:navigator.userAgent},dataType:JSON,beforeSend:function(n){n.setRequestHeader(correlationIdField,correlationId)}});$(".feedback-form").slideToggle()};t.showNoResultsFeedback=function(n,t){$(t.delegateTarget).hide();$(".feedback-form").slideToggle()};t.startTour=function(){tour.end();tour.restart()};t.navigateSupport=function(){window.location.href="https://www.dell.com/support/home/"+profile.Language+"-"+profile.Country};t.addToCart=function(n){window.location.href=n.Data.AddToCartLink};t.addPremierSnpToCart=function(n){var t,i,r;$("#premier-ordercode-error-alert-"+n.Data.DellPartNumber+" #span-ordercode-error-alert-cart-full").hide();$("#premier-ordercode-error-alert-"+n.Data.DellPartNumber+" #span-ordercode-error-alert-errmsg").hide();t=n.Data.OrderCode;i=0;n.Data.IsConfigurable&&n.Data.OrderCode!=""&&n.Data.OrderCode!=null||(i=1,t=n.Data.DellPartNumber);r={OrderCode:t,ProductType:i};$.ajax({url:cartItemsUrl,xhrFields:{withCredentials:!0},type:"POST",contentType:"application/json",data:JSON.stringify(r),beforeSend:function(n){setCartHeaders(n)},success:function(){window.location.href=premierSnpROCheckOutUrl},error:function(t){try{var i=JSON.parse(t.responseText);i&&i.Message&&i.Message.indexOf("CART_FULL")!=-1?$("#premier-ordercode-error-alert-"+n.Data.DellPartNumber+" #span-ordercode-error-alert-cart-full").show():$("#premier-ordercode-error-alert-"+n.Data.DellPartNumber+" #span-ordercode-error-alert-errmsg").show()}catch(r){$("#premier-ordercode-error-alert-"+n.Data.DellPartNumber+" #span-ordercode-error-alert-errmsg").show()}$("#premier-ordercode-error-alert-"+n.Data.DellPartNumber).parent().fadeIn();$("html, body").scrollTop()>300&&$("html, body").animate({scrollTop:$("#premier-ordercode-error-alert-"+n.Data.DellPartNumber).offset().top},600);gridView&&gridsize()}});$(".alert-close").on("click",function(){$(this).parent().hide();gridView&&gridsize()})};t.addPremierSystemToCart=function(n){var t=n.Data.OrderCode,i={OrderCode:t,ProductType:0};$.ajax({url:premierSystemsUrl,xhrFields:{withCredentials:!0},type:"POST",contentType:"application/json",data:JSON.stringify(i),beforeSend:function(n){setCartHeaders(n)},success:function(n){var t=JSON.stringify(n),i;t&&(t=t.toLowerCase());i=JSON.parse(t);window.location.href=i.success==!0?premierSnpROCheckOutUrl:premierSystemConfigUrl.format(c,l,cs,i.redirectoc)},error:function(){window.location.href=premierSystemConfigUrl.format(c,l,cs,t)}})};t.customizeAndBuy=function(n){window.location.href=n.Data.CustomizeAndBuyLink};t.addAccessoryToCart=function(n){window.location.href=n.AddToCartLink};t.searchAgain=function(){t.DisplayResults(!1);t.StickyDisplayResults(!1);n.Term("");n.SetUnifiedTerm(window.unifiedSearchTerm);e()};t.searchForTerm=function(t,i){n.Term(t);n.SetUnifiedTerm(window.unifiedSearchTerm);localStorage.OmnitureTrackingPrefix=i;$("#search-next-search-form,#unified-search-masthead").submit()};t.overrideSearchTerm=function(i){n.Term(i);t.OverrideTerm(!0);n.SetUnifiedTerm(window.unifiedSearchTerm);$("#search-next-search-form,#unified-search-masthead").submit()};t.leftNavResults=ko.computed(function(){return ko.utils.arrayFilter(t.Results(),function(n){return n.TemplateName==="CategoryRefinements"})});t.mainResults=ko.computed(function(){var n=ko.utils.arrayFilter(t.Results(),function(n){return n.TemplateName!=="CategoryRefinements"});return ko.utils.arrayMap(n,searchResultFactory)});r=[];u=[];t.smartSelectPopoverClick=function(n,t){$.ajax({url:n.Data.SmartSelectPopoverUrl,type:"GET",success:function(n){n&&$(t.delegateTarget).off("click").popover({content:n,html:!0}).popover("show")}})};s=["ProductDisambiguationStrategy","DirectContentStrategy","ProductSelectorAnswerStrategy","BreadcrumbsStrategy","ServiceTaggedProductStrategy","CompareProductsAnswerStrategy"];$("#search-next-search-form,#unified-search-masthead").on("beforeSearch",function(n){d();g();appendQueryDetailsToUrl(!0);$('[data-toggle="popover"]').popover("destroy");n.isPagingSearch||n.isFilteredSearch?n.isFilteredSearch?t.Results.remove(function(n){return n.StrategyName!="BreadcrumbsStrategy"}):t.Results.remove(function(t){return t.StrategyName!==n.strategy&&s.indexOf(t.StrategyName)==-1}):(t.Page(0),t.Skip=0,t.DisplayResults(!1),t.StickyDisplayResults(!1));gridView&&gridsize();t.Loading(!0);showStickyNavigation&&t.shouldDisplayPlaceHolderLoader()&&(t.StickyDisplayResults(!0),gridView&&gridsize(),$(".main-loader").css("display","none"),$(".unified-search-result").addClass("animated-loader"),t.shouldDisplayPlaceHolderLoader(!1));showStickyNavigation&&t.isLayoutSwitchCalled()&&(t.StickyDisplayResults(!0),gridView&&gridsize(),$(".main-loader").css("display","none"),$(".unified-search-result").addClass("animated-loader"));var i=profile.CustomerSet||"",r=i.toLowerCase().indexOf("rc")>=0;isPremier&&!r&&(document.location.href="http://www.dell.com/account")});t.onSearchSuccess=function(i){function f(){var n=0;i.isPagingSearch?(t.Results.remove(function(n){return n.TemplateName=="PagingTemplate"}),t.Results.remove(function(n){return n.TemplateName==="CategoryRefinements"}),n=t.Results().length,t.Results(t.Results().concat(r.Results))):(t.Results(r.Results),e());$("img").error(function(){$(this).hide()});$("#sorting-dropdown").selectpicker();$('[data-toggle="popover"]').popover();t.Loading(!1);t.DisplayResults(!0);t.StickyDisplayResults(!0);initSlideBoxes();setTimeout(calculateSameHeightElements,1e3);v(n);w(n);$(".ispromoted").show();calculateSameHeightElements();a();showPopularSupportDocumentsBanner==="True"&&$(".ispopularSupport").show();userName!=""&&$(".apply-link").hide();t.leftNavResults().length>0?$("#page-container").removeClass("container").addClass("container-fluid"):$("#page-container").removeClass("container-fluid").addClass("container");isShowTabbedView&&!isPremier&&(t.leftNavResults().length>0?($("#page-container").removeClass("container").addClass("container-fluid"),$("#results").removeClass("col-lg-10 col-lg-offset-1")):($("#page-container").removeClass("container").addClass("container-fluid"),$("#results").addClass("col-lg-10 col-lg-offset-1")));resizeTechSpecs();gridView&&gridsize()}var r,u;showStickyNavigation&&t.isLayoutSwitchCalled()&&(document.getElementById("searchResult").className=t.switchToGridLayout()?"result-grid":"result-list",t.isLayoutSwitchCalled(!1));r=i.searchData;t.previousFilter(i.previousFilter);t.PreviousTerm(n.Term());t.setSuccessTerm(n.Term());t.filtersUpdatedByUser(!1);appendQueryDetailsToUrl(!1,!0);r.Results.length!=0||i.isPagingSearch||r.Results.push(o());i.isPagingSearch?t.setMetrics(t.Results().length,r.Results):t.setMetrics(0,r.Results);r.AdditionalInformation.hasOwnProperty("ResultCount-EMC")?t.ResultCount(r.AdditionalInformation["ResultCount-EMC"]):t.ResultCount(null);t.premierResultsExist(!1);t.premierZeroResults(!1);r.AdditionalInformation!=null&&r.AdditionalInformation.hasOwnProperty("ResultCount-UnifiedPPlusProducts")?(u=r.AdditionalInformation["ResultCount-UnifiedPPlusProducts"],u>0?t.premierResultsExist(!0):t.premierZeroResults(!0)):isPremier&&t.premierZeroResults(!0);r.AdditionalInformation!=null&&(r.AdditionalInformation.IsFullcatEnabled=="True"||r.AdditionalInformation.IsSnpEnabled=="True")&&t.IsSnpFullCatalogEnabled(!0);$.each(r.Results,function(n,t){t.TemplateName=="DirectContentDoctypeInterpreter"&&(t.Data.Description=t.Data.Description.replace(/<a /g,'<a class="dellmetrics-tclickthru" data-metrics='+t.Data.Metrics+" "))});i.isPagingSearch||(t.filtersAutoUpdated(!0),t.selectedCategories(utils.getSelectedCategoriesFromResponse(r)),t.categories(getCategoriesFromResponse(r,t.selectedCategories())),t.selectedCategoriesType(getSelectedCategoriesTypeFromResponse(r)),t.selectedRefinements(utils.getSelectedRefinementsFromResponse(r)),t.refinements(getRefinementsFromResponse(r)),t.filtersAutoUpdated(!1));$.each(r.Results,function(t,i){i.TemplateName=="EssentialContent"?n.EssentialContent(i.Data.Links):i.TemplateName=="SecondaryContent"?n.SecondaryContent(i.Data.Links):i.TemplateName=="TertiaryContent"&&typeof footerViewModel!="undefined"&&footerViewModel.TertiaryContent(i.Data.Links)});r.Results=$.grep(r.Results,function(n){return n.TemplateName!=="taxnavbrwssnp"&&n.TemplateName!=="taxonomyislandnavigator"&&n.TemplateName!=="refinements"&&n.Purpose!=="Content"});t.loadTemplates(r.Results,f);appendQueryDetailsToUrl(!1,!0)};t.setSuccessTerm=function(n){t.SuccessSearchTerm(n);t.recentQueriesViewModel.updateLastFiveQueries(t.SuccessSearchTerm())};$("#search-next-search-form,#unified-search-masthead").on("searchSuccess",t.onSearchSuccess);$("#search-next-search-form,#unified-search-masthead").on("searchFail",function(n){if(n.status!="abort")if(n.isPagingSearch)t.Loading(!1);else{var i=[];i.push(o());function n(){t.Results(i);t.Loading(!1);t.DisplayResults(!0);t.StickyDisplayResults(!0);e()}t.loadTemplates(i,n)}});t.showMoreResults=function(n,i){$(".paging-button").hide();t.Page(t.Page()+1);t.Skip=n;t.Strategy=i;searchNextGetNextPage()};t.setMetricsRefinement=function(n,t){var i={anav_caption_option:t,anav_caption:n};return JSON.stringify(i)};t.enableInfiniteScroll=function(){$(window).scroll(function(){$(window).scrollTop()>=$(document).height()-$(window).height()-380&&$("#infinite-scroll-button").click()})};t.isGridView=function(n){if(isGridSwitchCalled)return gridView;var t=!1;return $.each(n,function(n,i){(i.TemplateName.toLowerCase()==="delltechnologiesdoctypeinterpreter"||i.TemplateName.toLowerCase()==="emccontent")&&(t=!0)}),isDefaultListView&&t&&(showStickyNavigation?resultsViewModel.switchToGridLayout(!1):document.getElementById("searchResult").className="result-list",gridView=!1,resultsViewModel.showGridView(gridView),$.removeCookie("GridView",{path:"/"}),$.cookie("GridView",gridView,{expires:14,path:"/"}),gridView=!1,$(".row.emc-result").removeClass("row").addClass("result-row")),gridView};t.getTemplate=function(n){return n.TemplateName.toLowerCase()};t.loadMoreDetails=function(n,t,i){$(i.target.parentElement)[0].innerHTML=n};t.loadTemplates=function(n,r){var u=0;if(i&&$.each(i,function(n,t){t.complete||t.request.abort()}),i={},$.each(n,function(n,r){t.Templates.indexOf(r.TemplateName)<0&&(u++,i[r.TemplateName]={request:null,complete:!1})}),u){function n(n,u){$("body").append(u);t.Templates.push(n);i[n].complete=!0;var f=!0;$.each(i,function(n,t){f=f&&t.complete});r&&f&&r()}$.each(i,function(t,i){i.request=$.ajax({url:templateLocation,data:{country:profile.Country,language:profile.Language,template:t,v:escape(buildNumber)},beforeSend:function(n){n.setRequestHeader(correlationIdField,correlationId)},success:function(i){n(t,i)},error:function(n){if(n.status===401){location.reload(!0);return}}})})}else r&&r()};t.setMetrics=function(n,t){if(typeof enableDellAnalytics!="undefined"&&enableDellAnalytics){var i,r,u,f,o,e,s;$.each(t,function(t,h){var l,c,a;if(h.Data!==undefined&&h.Data!==null)if(h.TemplateName.toLowerCase()==="productinformationanswerdoctypeinterpreter")h.Data.Links!==null&&$.each(h.Data.Links,function(i,r){var u={clickthru:"answers",doctype:"answers:"+r.Title,position:t+n,productId:h.Data.ServiceTag+":"+h.Data.ProductId,variant:h.Data.Variant,stTitle:"answers:"+r.Title,ispromtoed:h.Data.IsPromoted,ispopular:h.Data.IsPopular};r.Metrics=JSON.stringify(u)}),l={clickthru:"answers",doctype:"answers:product-support",position:t+n,productId:h.Data.ServiceTag+":"+h.Data.ProductId,variant:h.Data.Variant,stTitle:"answers:product-support",ispromoted:h.Data.IsPromoted,ispopular:h.Data.IsPopular},h.Data.Metrics=JSON.stringify(l);else{s=h.Data.IsPopular;switch(h.TemplateName.toLowerCase()){case"communitydoctypeinterpreter":r=h.Data.DocType;u="web";i=h.Data.Variant;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"directcontentdoctypeinterpreter":r="DirectContent";u="answers";i=h.Data.Taxonomy;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"learncontentdoctypeinterpreter":c=h.Data.Taxonomy.split("/");o=c.length>2?c[2]:h.Data.Taxonomy;r=o;u="web";i=h.Data.Taxonomy;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"videosdoctypeinterpreter":c=h.Data.Taxonomy.split("/");o=c.length>2?c[2]:h.Data.Taxonomy;r=o;u="web";i=h.Data.Taxonomy;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"driversdownloadsdoctypeinterpreter":r="downloads";u="web";i=h.Data.DriverType;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"kcsdoctypeinterpreter":r="knowledge base articles";u="web";i=h.Data.Variant;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"manualsdoctypeinterpreter":r="manuals";u="web";i=h.Data.Variant;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"stpsnpdoctypeinterpreter":r="snp";u="product";i=h.Data.Variant;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"stpsystemsdoctypeinterpreter":r="systems";u="product";i=h.Data.Variant;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"campaignsystem":r="campaign";u="product";i=h.Data.Variant;f=h.Data.Segment;e=h.Data.IsPromoted;break;case"softwareresulttemplate":r="systems";u="product";i=h.Data.Variant;f="bsd";e=h.Data.IsPromoted}a={clickthru:u,doctype:r,position:t+n,productposition:h.Data==undefined?undefined:h.Data.Position==null||h.Data.Position==undefined?t+n:h.Data.Position,productId:h.Data.ProductId,variant:i,segment:f,taxonomy:o,ispromoted:e,ispopular:s};h.Data.Metrics=JSON.stringify(a)}})}};t.refineSearchByCategoryDisambiguation=function(i,r){if(!$(r.delegateTarget).hasClass("active")){var u=n.Term();t.previousFilter().indexOf(i)>-1&&n.Term(n.Term().replace(t.previousFilter(),""));t.previousFilter().indexOf(i)<0&&n.Term(n.Term().replace(t.previousFilter(),""));u.indexOf(i)<0&&n.Term((n.Term()+" "+i).replace("  "," "));$("#search-next-search-form,#unified-search-masthead").submit()}t.previousFilter(i)};t.toggleLeftNav=function(n,i){$(i.delegateTarget).children(".glyphicon").toggle();t.leftNavVisible()?isMobileFiltersOverlay?$("#left-nav").toggle("slide",{direction:"right"},300):$("#left-nav").slideToggle(function(){t.leftNavVisible(!t.leftNavVisible())}):(t.leftNavVisible(!t.leftNavVisible()),isMobileFiltersOverlay?$("#left-nav").animate({width:"toggle"},200):$("#left-nav").slideToggle())};t.toggleMessageBar=function(){t.premierResultsExist(!1);t.premierZeroResults(!1)};t.toggleMenu=function(n,t){$(t.delegateTarget).siblings("ul").slideToggle();$(t.delegateTarget).children(".glyphicon").toggle()};t.selectCategory=function(n,i){t.selectedCategories.indexOf(n.Id)==-1&&(t.previousCategories(t.selectedCategories.slice()),t.selectedCategories.push(n.Id),t.selectedRefinements([]),t.shouldDisplayPlaceHolderLoader(!0),$("#search-next-search-form,#unified-search-masthead").submit());trackClick(i)};t.selectCategoryAjax=function(n){t.selectedCategories.indexOf(n.Id)==-1&&(t.selectedCategories.push(n.Id),t.selectedRefinements([]),t.Page(0),t.Skip=0,searchNextGetFilteredResults())};t.removeAllCategoriesAjax=function(){t.selectedCategories([]);t.selectedRefinements([]);t.Page(0);t.Skip=0;searchNextGetFilteredResults()};t.removeCategoryAjax=function(n){var i=t.selectedCategories.indexOf(n.Id);t.selectedCategories.splice(i,t.selectedCategories().length-i);t.selectedRefinements([]);t.Page(0);t.Skip=0;searchNextGetFilteredResults()};t.removeRefinementAjax=function(n){var i=t.selectedRefinements.indexOf(n.Id);t.selectedRefinements.splice(i,1);t.Page(0);t.Skip=0;searchNextGetFilteredResults()};t.refinementClickedAjax=function(){return t.Page(0),t.Skip=0,searchNextGetFilteredResults(),!0};t.addRefiners=function(n,i,r){for(var u,o=n.toString(),f=i,s=o.split("/").slice(2,o.length),e=0;e<s.length;e++)t.selectedCategories.push(s[e]);for(u=0;u<f.length;u++)f[u].Label.localeCompare(r)==0&&t.selectedRefinements.push(f[u].Id);$("#search-next-search-form,#unified-search-masthead").submit()};t.refinementClicked=function(n,i){return t.shouldDisplayPlaceHolderLoader(!0),trackClick(i),$("#search-next-search-form,#unified-search-masthead").submit(),!0};t.removeCategory=function(n){var i=t.selectedCategories.indexOf(n.Id);t.selectedCategories.splice(i,t.selectedCategories().length-i);t.selectedRefinements([]);$("#search-next-search-form,#unified-search-masthead").submit()};t.removeSubcategory=function(n){var i=t.selectedCategories.indexOf(n.Id);t.selectedCategories.splice(i+1,t.selectedCategories().length-i);t.selectedRefinements([]);$("#search-next-search-form,#unified-search-masthead").submit()};t.removeAllCategories=function(){t.previousCategories(t.selectedCategories.slice());t.selectedSort("");t.selectedCategories([]);t.selectedRefinements([]);t.shouldDisplayPlaceHolderLoader(!0);$("#search-next-search-form,#unified-search-masthead").submit()};t.removeAllCategoriesNoSubmit=function(){t.selectedCategories([]);t.selectedRefinements([])};t.removeRefinement=function(n){var i=t.selectedRefinements.indexOf(n.Id);t.selectedRefinements.splice(i,1);t.shouldDisplayPlaceHolderLoader(!0);$("#search-next-search-form,#unified-search-masthead").submit()};t.compare=function(){var n=compareUrl.replace("{lang}",profile.Language).replace("{country}",profile.Country);window.open(n+t.compareProducts().join(","))};t.removeCompare=function(n){t.compareProducts.remove(n.ProductId);t.compareProducts().length<2&&t.Results().some(h)?t.Results.splice(t.Results().findIndex(h),1):t.compare()};t.clearCompare=function(){t.compareProducts.removeAll()};t.compareToggle=function(){$("#compare-wrapper").slideToggle();$(".toggle-compare .glyphicon").toggle()};t.compareAfterAdd=function(){a()};t.showMoreCompare=function(n,t){var i=$(t.delegateTarget);i.parents(".compare-result").removeAttr("style");i.hide();i.parent().removeClass("text-nowrap").removeAttr("style");calculateSameHeightElements()};t.isOverflowed=function(n){return n.firstChild.offsetHeight<n.firstChild.scrollHeight-1};t.compareShowMoreRefinements=function(n,t){var r=$(t.delegateTarget),i;r.parent().hide();i=r.parent().siblings(".hidden");i.removeClass("hidden");i.each(function(n,t){var i=$(t);i.children("span").first().width()>i.width()&&i.children("button").show()});calculateSameHeightElements()};t.getRefinementLabel=function(n){if(n.displayLabel)return n.displayLabel;var t="";return n.RefinerLabel&&(t+=n.RefinerLabel),t+=" - "+n.Label,n.displayLabel=t,t};t.shouldHighlightRefinement=function(n,i,r){if(n.shouldHighlight!=null)return n.shouldHighlight;var u=t.getRefinementLabel(n);return $.each(r,function(r,f){i!=r&&f.Refinements&&$.each(f.Refinements,function(i,r){r.Refinements&&$.each(r.Refinements,function(i,r){t.getRefinementLabel(r)==u&&(n.shouldHighlight=!1,r.shouldHighlight=!1)})})}),n.shouldHighlight==null&&(n.shouldHighlight=!0),n.shouldHighlight};t.shouldHighlightTechSpec=function(n,t,i){return n.shouldHighlight!=null?n.shouldHighlight:($.each(i,function(i,r){t!=i&&r.TechSpecs&&$.each(r.TechSpecs,function(t,i){n.Content==i.Content&&(n.shouldHighlight=!1,i.shouldHighlight=!1)})}),n.shouldHighlight==null&&(n.shouldHighlight=!0),n.shouldHighlight)};t.hasBrandRefiner=function(n){for(var i=0;i<n.length;i++)if(n[i].RefinerLabel!=null&&n[i].RefinerLabel.localeCompare("Brand")==0)return t.hasBrand(!0)}}function checkScroll(n,t,i){$(n).scrollLeft()<=0?$(t).hide():$(t).show();$(n).scrollLeft()>=$(n).get(0).scrollWidth-$(n).get(0).clientWidth?$(i).hide():$(i).show()}function initSlideBoxes(){$(".view").off("scroll");$(".scroll-left, .scroll-right").hide().off("click");$(".view-port").removeAttr("style");$(".mobile-indicator").is(":visible")||$.each($(".slide-box"),function(n,t){var r=$(t).children(".scroll-left"),u=$(t).children(".scroll-right"),f=$(t).children(".view-port"),i=$(f).children(".view");$(r).on("click",function(){$(i).animate({scrollLeft:$(i).scrollLeft()-$($(i).find("li").get(0)).outerWidth()});checkScroll(i,r,u)});$(u).on("click",function(){$(i).animate({scrollLeft:$(i).scrollLeft()+$($(i).find("li").get(0)).outerWidth()});checkScroll(i,r,u)});$(i).on("scroll",function(){checkScroll(i,r,u)});$(f).height($(i).children(".col-xs-12").height());checkScroll(i,r,u)})}function replaceOriginalText(n){console.log(n)}function resizeResultsMinHeight(){var n=$(window).height(),t=$("#header").outerHeight()+$("#footer").outerHeight();$("#main-content").css("min-height",n-t+"px")}function appendQueryDetailsToUrl(n,t){var r=$.trim(encodeSpecialCharacters(mastheadViewModel.Term())),i=encodeURI(pathName);document.location.href.indexOf("promoted/")!==-1&&(i+="promoted/");profile.STPShopEnabled&&(i+="simplified/");resultsViewModel.selectedCategories().length&&(i+=encodeURIComponent(resultsViewModel.selectedCategories().join())+"/",resultsViewModel.selectedRefinements().length&&(i+=encodeURIComponent(resultsViewModel.selectedRefinements().join())+"/"));i+=encodeURIComponent(r)+document.location.hash;window.history.replaceState?(previousStateId==currentStateId||t?window.history.replaceState(currentStateId,null,i):(window.history.pushState(currentStateId,null,i),previousStateId=currentStateId),n&&currentStateId++):n&&window.location.pathname!=i&&(window.location.href=i)}function encodeSpecialCharacters(n){return n.replace(/\:/g,"~col").replace(/\*/g,"~ast").replace(/\//g,"~fdsl").replace(/\./g,"~prd").replace(/&/g,"~ampr").replace(/%/g,"~pct").replace(/\+/g,"~pls").replace(/\\/g,"~bksl").replace(/\?/g,"~qst").replace(/<|>|\{|\}|\[|\]/g,"")}function decodeSpecialCharacters(n){return n.replace(/~col/g,":").replace(/~ast/g,"*").replace(/~fdsl/g,"/").replace(/~prd/g,".").replace(/~ampr/g,"&").replace(/~pct/g,"%").replace(/~pls/g,"+").replace(/~bksl/g,"\\").replace(/~qst/g,"?")}function resizeTechSpecs(){$(".mobile-indicator").is(":visible")?($(".system-description, .price-stack-wrapper").hide(),$(".show-less-specs").hide(),$(".show-more-specs").show()):($(".system-description, .price-stack-wrapper").show(),$(".show-less-specs").hide(),$(".show-more-specs").hide())}function addMinHeight(){var i=$("#results"),r=$("#left-nav"),n=i.outerHeight(),t=r.outerHeight();n>t&&r.css("min-height",n);t>n&&i.css("min-height",t)}function handleHash(){if(typeof footerViewModel!="undefined"&&(document.location.hash=="#control"||document.location.hash=="#notracking"?footerViewModel.SecretFooter(!0):footerViewModel.SecretFooter(!1)),$("body").off("click",'button, a, input[type="checkbox"], .color-button, .track',trackClick),document.location.hash!="#notracking")$("body").on("click",'button, a, input[type="checkbox"], .color-button, .track',trackClick)}function winopen(n,t,i){var r=window.open(n,t,i);typeof r!="undefined"&&r&&r.focus()}function fireSuggestThenSearch(){typeof searchNextFireSuggestWithCallback!="undefined"&&searchNextFireSuggestWithCallback(function(n){n.status==200&&n.responseJSON.TemplateName!=null&&(virtualAssistantViewModel.hydrateColorRefiners&&virtualAssistantViewModel.hydrateColorRefiners(n.responseJSON),virtualAssistantViewModel.AutoSuggest(n.responseJSON));$("#search-next-search-form,#unified-search-masthead").submit()})}function calculateSameHeightElements(){$(".same-height-children").each(function(){var n=0;$(this).children().each(function(){var t=$(this).css("height","auto").height()+$(this).find(".extra-height").height();n=t>n?t:n});$(this).children().each(function(){$(this).height(n)})})}function equalheight(n){var r=0,f=0,t=[],i,u;$(n).each(function(){if(i=$(this),$(i).height("auto"),topPostion=i.parent().position().top,u=getGridCols(),u!=0){if(f!=topPostion||t.length==u){for(currentDiv=0;currentDiv<t.length;currentDiv++)t[currentDiv].height(r);t.length=0;f=topPostion;r=i.height();t.push(i)}else t.push(i),r=r<i.height()?i.height():r;for(currentDiv=0;currentDiv<t.length;currentDiv++)t[currentDiv].height(r)}})}function getGridCols(){return $("#page-container").width()>=1140?4:$("#page-container").width()>=940&&$("#page-container").width()<1140?3:$("#page-container").width()>=720&&$("#page-container").width()<940?2:0}function gridsize(){equalheight(".banner-container");equalheight(".premier-system-specs.system-specs-Main");equalheight(".product-image");$(".product-image").each(function(n,t){$(t).css("line-height",$(t).height()+"px")});equalheight(".cft-title-deals h4");equalheight(".grid-support-title");equalheight(".grid-title");equalheight(".clearfix-deals");equalheight(".clearfix");equalheight(".text-center-support");equalheight(".centered-grid");equalheight(".spec-content-0");equalheight(".spec-0");equalheight(".spec-content-1");equalheight(".spec-1");equalheight(".spec-content-2");equalheight(".spec-2");equalheight(".spec-content-3");equalheight(".spec-3");equalheight(".spec-content-4");equalheight(".featured-spec");equalheight(".spec-4");equalheight(".premier-specs");equalheight(".main-tech-specs");equalheight(".all-tech-specs");equalheight(".grid-spec");equalheight(".grid-spec-deals");isSupportListView||(equalheight(".support-icon"),equalheight(".clearfix-support"),equalheight(".support-description"));equalheight(".grid-support-body");equalheight(".premier-description");equalheight(".system-description");equalheight(".grid-body-main");equalheight(".grid-body-main-deals");equalheight(".grid-body-deals");equalheight(".grid-body");equalheight(".offers");equalheight(".well-transparent-stroke");equalheight(".svl-container");equalheight(".market-price-grid");equalheight(".discount-price-grid");equalheight(".price-fill");equalheight(".price-stack");equalheight(".finance");equalheight(".finance-and-rewards");equalheight(".shipping-stack");equalheight(".delivery-promise");equalheight(".price-stack-wrapper-deals");equalheight(".price-stack-wrapper");equalheight(".gridstack-deals");equalheight(".premier-ordercode");equalheight(".grid-primary-cta");equalheight(".grid-secondary-cta");equalheight(".gridstack");equalheight(".support-description-grid");equalheight(".unified-search-result-premier.col-sm-6.col-md-4.col-lg-3");equalheight(".premier-ordercode-error");equalheight(".content-source");equalheight(".content-body");equalheight(".emc-title");equalheight(".emc-summary");equalheight(".emc-content-details");equalheight(".emc-result")}function gridSwitch(n){isGridSwitchCalled=!0;showStickyNavigation&&resultsViewModel.isLayoutSwitchCalled(!0);var i=$(n.delegateTarget),r=i.attr("id"),t=r=="list"?i.parent().attr("id").replace("list-button-",""):i.parent().attr("id").replace("grid-button-","");$("#grid-button-"+t).on("click","button",function(n){if($(n.delegateTarget).hide(),$(n.delegateTarget).siblings("#list-button").show(),showStickyNavigation)resultsViewModel.switchToGridLayout(!0);else{var t=document.getElementById("searchResult");t.className="result-grid"}gridView=!0;resultsViewModel.showGridView(gridView);$.removeCookie("GridView",{path:"/"});$.cookie("GridView",gridView,{expires:14,path:"/"});$("#search-next-search-form,#unified-search-masthead").submit()});$("#list-button-"+t).on("click","button",function(n){$(n.delegateTarget).hide();$(n.delegateTarget).siblings("#grid-button").show();showStickyNavigation?resultsViewModel.switchToGridLayout(!1):document.getElementById("searchResult").className="result-list";gridView=!1;resultsViewModel.showGridView(gridView);$.removeCookie("GridView",{path:"/"});$.cookie("GridView",gridView,{expires:14,path:"/"});$("#search-next-search-form,#unified-search-masthead").submit()});$("#grid-button-premier-"+t).on("click","button",function(n){$(n.delegateTarget).hide();$(n.delegateTarget).siblings("#list-button-premier").show();var t=document.getElementById("searchResult");t.className="result-grid";gridView=!0;resultsViewModel.showGridView(gridView);$.removeCookie("PremierGridView",{path:"/"});$.cookie("PremierGridView",gridView,{expires:14,path:"/"});$("#search-next-search-form,#unified-search-masthead").submit()});$("#list-button-premier-"+t).on("click","button",function(n){$(n.delegateTarget).hide();$(n.delegateTarget).siblings("#grid-button-premier").show();document.getElementById("searchResult").className="result-list";gridView=!1;resultsViewModel.showGridView(gridView);$.removeCookie("PremierGridView",{path:"/"});$.cookie("PremierGridView",gridView,{expires:14,path:"/"});$("#search-next-search-form,#unified-search-masthead").submit()})}function tooltipChange(n){$("#"+n).tooltip({placement:"bottom",container:"body"})}function hasNonZeroPrice(n){var t=n.match(/[1-9]/g);return t!==null&&t.length>0}function hasNegativePrice(n){var t=n.match(/[()]/g);return t!==null&&t.length>0}function showOffCanvasCalc(n,t){calculatorClickCount++;$(t.delegateTarget).siblings().css("z-index","5000");var i=$(t.delegateTarget).siblings().children(".offcanvas-calculator"),r=i.attr("id").replace("finance-calculator-","");i.css("display")=="none"?(closeOtherCalculators(r),getCalculatorData(resultsViewModel.Results()[r],r),i.show(),i.toggleClass("offCanvasTransitionLarge")):(closeOtherCalculators(r),getCalculatorData(resultsViewModel.Results()[r],r),i.toggleClass("offCanvasTransitionLarge"),gridView?i.hide():i.toggleClass("offCanvasBackTransition"))}function closeOtherCalculators(n){$(".offcanvas-calculator").each(function(){$(this).hasClass("offCanvasTransitionLarge")&&$(this).attr("id").replace("finance-calculator-","")!=n&&(gridView?$(this).hide():$(this).toggleClass("offCanvasBackTransition"),$(this).toggleClass("offCanvasTransitionLarge"),$(this).parent().css("z-index","0"))})}function closeOffCanvasCalc(n,t){var i=$(t.delegateTarget).parent().parent().parent();gridView?i.hide():i.toggleClass("offCanvasBackTransition");i.parent().css("z-index","0");i.toggleClass("offCanvasTransitionLarge")}function getCalculatorData(n,t){financeRate("19.99");newMinimumPayment($("#finance-selector-"+t).children("option").filter(":selected").val());sampleInterestRate(financeRate()+"%");n.Data.FinanceCalculatorUrl&&$.ajax({url:n.Data.FinanceCalculatorUrl,type:"GET",beforeSend:function(n){n.setRequestHeader(correlationIdField,correlationId)},success:function(n){n&&(calculatorData(JSON.parse(JSON.stringify(n))),PayoffTerm(JSON.stringify(n.Schedule["0.0"][financeRate()].PayoffTerm).split('"')[1]),TotalWithInterest(JSON.stringify(n.Schedule["0.0"][financeRate()].FormattedFinalAmount).split('"')[1]),newMinimumPaymentFormatted(JSON.stringify(calculatorData().Schedule[newMinimumPayment()][financeRate()].FormattedMinimumPayment).split('"')[1]),newPayoffTerm(JSON.stringify(calculatorData().Schedule[newMinimumPayment()][financeRate()].PayoffTerm).split('"')[1]),newTotalWithInterest(JSON.stringify(calculatorData().Schedule[newMinimumPayment()][financeRate()].FormattedFinalAmount).split('"')[1]))},error:function(n){console.log(n)}})}function recalculateSlider(n){calculatorSliderUseCount++;financeRate(n);sampleInterestRate(financeRate()+"%");PayoffTerm(JSON.stringify(calculatorData().Schedule["0.0"][financeRate()].PayoffTerm).split('"')[1]);TotalWithInterest(JSON.stringify(calculatorData().Schedule["0.0"][financeRate()].FormattedFinalAmount).split('"')[1]);newMinimumPaymentFormatted(JSON.stringify(calculatorData().Schedule[newMinimumPayment()][financeRate()].FormattedMinimumPayment).split('"')[1]);newPayoffTerm(JSON.stringify(calculatorData().Schedule[newMinimumPayment()][financeRate()].PayoffTerm).split('"')[1]);newTotalWithInterest(JSON.stringify(calculatorData().Schedule[newMinimumPayment()][financeRate()].FormattedFinalAmount).split('"')[1])}function recalculatorSelector(n){calculatorDropdownCount++;newMinimumPayment(n);newMinimumPaymentFormatted(JSON.stringify(calculatorData().Schedule[newMinimumPayment()][financeRate()].FormattedMinimumPayment).split('"')[1]);newPayoffTerm(JSON.stringify(calculatorData().Schedule[newMinimumPayment()][financeRate()].PayoffTerm).split('"')[1]);newTotalWithInterest(JSON.stringify(calculatorData().Schedule[newMinimumPayment()][financeRate()].FormattedFinalAmount).split('"')[1])}function attachPowerBarToSpec(n,t){var i=t.Data.PowerBars,r=n.Code;n.powerBarScore=i[r];n.emptyPowerBars=5-n.powerBarScore;return}function renderRatings(n){let t='"'+n+'"';var i=$(".icon-small-star[data-index="+t+"]");let r=$(i).data("width");$(i).append("<style>.icon-small-star[data-index="+t+"]:after { width:"+r+"% }<\/style>")}function getSearchDropdownValue(){var n={},t;return typeof virtualAssistantViewModel!="undefined"&&virtualAssistantViewModel.AutoSuggestVisible()===!0&&(virtualAssistantViewModel.AutoSuggest().TemplateName=="AutoSuggest"&&virtualAssistantViewModel.SuggestionWasClicked===!0?n.Type="Auto":virtualAssistantViewModel.AutoSuggest().TemplateName=="VirtualAssistantRefiners"&&virtualAssistantViewModel.AutoSuggest().Data!==null&&(t=!1,n.Selections=[],$.each(virtualAssistantViewModel.AutoSuggest().Data,function(i,r){r!==null&&r!==undefined&&$.each(r.Refinements,function(i,r){r!==null&&r!==undefined&&r.Selected===!0&&(n.Selections.push(r.Label),t=!0)})}),t===!0&&(n.Type="VA:"+virtualAssistantViewModel.AutoSuggest().TemplateId))),n}function trackResults(n,t){var r,i;Dell.Metrics.sc.searchTerm=t?t+":"+mastheadViewModel.Term():mastheadViewModel.Term();Dell.Metrics.sc.detailpagename=n.previousFilter!=""?profile.Country+"|"+profile.Language+"|searchnextresults|"+n.previousFilter:profile.Country+"|"+profile.Language+"|searchnextresults";$("#myTab").is(":visible")&&(Dell.Metrics.sc.detailpagename=Dell.Metrics.sc.detailpagename+"|"+$("ul.specialevents-tabs li.active a").attr("id"));r="";Dell.Metrics.sc.pageNumber=resultsViewModel.Page()+1;r="p:"+Dell.Metrics.sc.pageNumber+"|";i=footerViewModel.AppliedExperiments();i instanceof Array&&(i=i.join(","));i===""&&(i="NoEx");Dell.Metrics.sc.searchBuild=searchBuildFormat.replace(apiVersionTag,n.searchData.BuildNumber);Dell.Metrics.sc.Experiments=r+i;enableDellAnalytics!==undefined&&enableDellAnalytics===!0&&window.search_next_metrics!==undefined&&window.search_next_metrics()}function GetServer(){return isPremier?"vNextPremier":"searchnext"}function getLocation(){navigator.geolocation?navigator.geolocation.getCurrentPosition(showPosition,locationErrors):geolocation(null)}function showPosition(n){geolocation(n.coords.latitude+", "+n.coords.longitude)}function locationErrors(){geolocation(null)}var utils,EmcSearchResult,resultTemplateViewModelMap,searchResultFactory,resultsViewModel,searchQueryHistory,resultData,previousStateId,currentStateId,width,regex,apiVersionTag,searchBuildFormat,pageInit;if(typeof require!="undefined"&&(utils=require("./utilities.js")),typeof module=="undefined"&&(module={exports:null}),module.exports=RecentQueriesViewModel,EmcSearchResult.prototype.shouldShowSummary=function(){return!!this.Summary},EmcSearchResult.prototype.details=function(){var n=[];return this.data.LastModifiedDate&&n.push({name:"Last Modified Date",value:this.data.LastModifiedDate,key:"emc-lastModifiedDate"}),this.data.SourceName&&n.push({name:"Source",value:this.data.SourceName,key:"emc-sourceName"}),this.data.ArticleType&&n.push({name:"Article Type",value:this.data.ArticleType,key:"emc-articleType"}),this.data.OperatingSystem&&n.push({name:"Operating System",value:this.data.OperatingSystem,key:"emc-operatingSystems"}),n},module.exports=EmcSearchResult,typeof require!="undefined"&&(EmcSearchResult=require("./emcSearchResult.js")),resultTemplateViewModelMap={EMCContent:EmcSearchResult},searchResultFactory=function(n){var t=resultTemplateViewModelMap[n.TemplateName];return t?new t(n):n},module.exports=searchResultFactory,typeof require!="undefined")var $=require("jquery"),ko=require("knockout"),RecentQueriesViewModel=require("./RecentQueriesViewModel.js"),utils=require("./utilities.js"),searchResultFactory=require("./searchResults/searchResultFactory.js");if(typeof module=="undefined"&&(module={exports:null}),module.exports=ResultsViewModel,ko.bindingHandlers.afterHtmlRender={update:function(n,t,i){i().html&&t()(i().html)}},resultsViewModel=new ResultsViewModel(mastheadViewModel),ko.applyBindings(resultsViewModel,$("#main-content")[0]),searchQueryHistory=new SearchQueryHistoryViewModel(mastheadViewModel,trackClick),ko.applyBindings(searchQueryHistory,$(".queryhistory-dropdown")[0]),requestError){resultData=[];resultData.push({TemplateName:"requesterror"});function n(){resultsViewModel.Results(resultData);resultsViewModel.Loading(!1);resultsViewModel.DisplayResults(!0);resultsViewModel.StickyDisplayResults(!0);$("#search-next-search-box").focus()}resultsViewModel.loadTemplates(resultData,n)}ko.bindingHandlers.formattedDate={update:function(n,t){var i=t(),r=$.datepicker.formatDate("MM dd, yy",new Date(i));n.innerHTML=r}};ko.bindingHandlers.truncatedText={init:function(n,t,i){var r=ko.utils.unwrapObservable(t()),u=ko.utils.unwrapObservable(i().maxTextLength)||250,f=r.length>u?r.substring(0,u)+'...<a href="javascript:void(0);" data-bind="visible: ReviewText.length > 300, click: function(data,event){$root.loadMoreDetails(ReviewText,data,event)}">View More<\/a>':r;ko.bindingHandlers.html.update(n,function(){return f})}};ko.bindingHandlers.truncateTextBasedOnScreenSize={init:function(n,t,i){var r=ko.utils.unwrapObservable(t()),u=ko.utils.unwrapObservable(i().showEllipsisWidth)||"",o=ko.utils.unwrapObservable(i().showMoreLabel)||"",s=ko.utils.unwrapObservable(i().showMoreId)||"showMore-truncateTextBasedOnScreenSize",f='<a id="'+s+'" href="javascript:void(0);" data-bind="click: function(data,event){$root.loadMoreDetails(Data.Description,data,event)}">'+o+"<\/a>",e=function(){return u!==""&&$(window).width()<u?f:r};$(window).resize(function(){var t=e();if($(n)[0].innerHTML=t,t===f){$(n).unbind("click");$(n).one("click",function(){$(n)[0].innerHTML=r})}});ko.bindingHandlers.html.update(n,e)}};resizeResultsMinHeight();previousStateId=1;currentStateId=1;$(document).ready(function(){var n=decodeSpecialCharacters(decodeURIComponent($("#searchTerm").val()));if(resizeResultsMinHeight(),handleHash(),n!=""&&(resultsViewModel.PreviousTerm(n),mastheadViewModel.Term(n),mastheadViewModel.SetUnifiedTerm(window.unifiedSearchTerm),fireSuggestThenSearch(),$("#unified-search-masthead")!=null&&$("#unified-search-masthead").length>0&&$("#search-next-search-box,#unified-search-masthead").submit()),document.location.href.indexOf("promoted/")!==-1&&(n===undefined||n==="")){n=" ";mastheadViewModel.Term(n);mastheadViewModel.SetUnifiedTerm(window.unifiedSearchTerm);$("#search-next-search-box,#unified-search-masthead").submit();return}$("#search-next-search-box").focus()});$(document).ready(function(){$(window).scroll(function(){$(this).scrollTop()>100?$(".backtotop").fadeIn():$(".backtotop").fadeOut()});$(".backtotop").click(function(n){return $("html, body").animate({scrollTop:0},400),trackClick(n),!1})});$(window).resize(function(){addMinHeight()});$(window).load(function(){addMinHeight()});width=$(window).width();$(window).resize(function(){$('[data-toggle="popover"]').popover("hide");resizeResultsMinHeight();calculateSameHeightElements();var n=$(window).width();width!=n&&(initSlideBoxes(),width=n,resizeTechSpecs())});window.onpopstate=function(n){var t,u,i,r;n.state&&(currentStateId=n.state,previousStateId=currentStateId,t="",document.location.href.indexOf(absoluteRootUrl)>-1?(t=document.location.href.replace(absoluteRootUrl,""),t=t.replace(document.location.hash,"")):t=document.location.pathname.replace(document.location.hash,""),t=t.indexOf("/")===0?t.replace("/","").split("/"):t.split("/"),u=decodeSpecialCharacters(decodeURIComponent(t[t.length-1])),i=[],t.length>1&&(i=decodeURIComponent(t[0]).split(",")),r=[],t.length>2&&(r=decodeURIComponent(t[1]).split(",")),mastheadViewModel.Term(u),mastheadViewModel.SetUnifiedTerm(window.unifiedSearchTerm),resultsViewModel.filtersAutoUpdated(!0),resultsViewModel.selectedCategories(i),resultsViewModel.selectedRefinements(r),resultsViewModel.filtersAutoUpdated(!1),fireSuggestThenSearch())};window.onhashchange=handleHash;regex=new RegExp("^[a-zA-Z0-9\b ]+$");$(window).on("keydown",function(n){var t=String.fromCharCode(n.which);!regex.test(t)||n.altKey||n.ctrlKey||$(".dont-steal-focus").is(":focus")||$("#search-next-search-box").is(":focus")||$("#voc_comments").is(":focus")||$("#search-next-search-box").focus()});$.extend({keys:function(n){var t=[];return $.each(n,function(n){t.push(n)}),t}});$("body").on("click",function(n){var t=$(n.target);t.is('[data-toggle="popover"]')||t.parents('[data-toggle="popover"]').length||$('[data-toggle="popover"]').popover("hide")});$(window).resize(function(){gridView&&gridsize()});$(function(){isShowTabbedView&&!isPremier&&($(".tabbed-view-container").show(),isDefaultDealsTabEnabled&&window.location.hash===""&&window.history.replaceState(window.location.href,"",window.location.href+"#deals"));var n=window.location.hash;n&&$('ul#myTab a[href="'+n+'"]').tab("show");$("#myTab a").click(function(n){return $(this).parent("li").hasClass("active")?$($(this).attr("href")).hide():(n.preventDefault(),$(this).tab("show"),gridView&&gridsize()),window.location.hash=this.hash,$("#search-next-search-form,#unified-search-masthead").submit(),$("html,body").scrollTop(0),trackClick(n),!1})});ko.bindingHandlers.hidden={update:function(n,t){ko.bindingHandlers.visible.update(n,function(){return!ko.utils.unwrapObservable(t())})}};Dell=window.Dell||{};Dell.Metrics=Dell.Metrics||{};Dell.Metrics.sc=Dell.Metrics.sc||{};Dell.Metrics.sc.segment=profile.Segment;Dell.Metrics.sc.customerset=profile.CustomerSet;apiVersionTag="{{apiVersion}}";searchBuildFormat=buildNumber+"|"+apiVersionTag;Dell.Metrics.sc.searchBuild=searchBuildFormat;Dell.Metrics.sc.pageNumber="1";Dell.Metrics.sc.dellexperiment="unified-ux|br test";$("#search-next-search-form,#unified-search-masthead").on("beforeSearch",function(){var n=getSearchDropdownValue();if(Dell.Metrics.sc.refinements="",n&&n.Type&&(Dell.Metrics.sc.searchDropdown=n.Type),n&&n.Selections&&n.Selections.length>0)Dell.Metrics.sc.refinements=n.Selections.join("|");else{var t=[],i=[],r=[];resultsViewModel.filtersUpdatedByUser()?(r.push("DVAUsed:"),$.each(resultsViewModel.selectedCategories(),function(n,t){r.push(t)}),t.push(r.join(""))):(i.push("autoCat:"),$.each(resultsViewModel.selectedCategories(),function(n,t){i.push(t)}),t.push(i.join("")));$.each(resultsViewModel.selectedRefinements(),function(n,i){t.push(i)});Dell.Metrics.sc.refinements=t.join("|")+"|"}$("#sorting-dropdown").length&&(Dell.Metrics.sc.refinements=Dell.Metrics.sc.refinements+"s:"+$("#sorting-dropdown").children(":selected").attr("id")+"|");Dell.Metrics.sc.refinements=Dell.Metrics.sc.refinements+"gV:"+gridView+"|";Dell.Metrics.sc.refinements=Dell.Metrics.sc.refinements+"calcsOpened:"+calculatorClickCount+"|";Dell.Metrics.sc.refinements=Dell.Metrics.sc.refinements+"calcSliderIntervalsUsed:"+calculatorSliderUseCount+"|";Dell.Metrics.sc.refinements=Dell.Metrics.sc.refinements+"calcDropDownsUsed:"+calculatorDropdownCount+"|";calculatorClickCount=0;calculatorSliderUseCount=0;calculatorDropdownCount=0});$("#search-next-search-form,#unified-search-masthead").on("searchSuccess",function(n){n.searchData.Results.length&&n.searchData.Results[0].TemplateName.toLowerCase()!="noresults"&&n.searchData.Results[0].TemplateName.toLowerCase()!="zeroresultsmessage"?trackResults(n,localStorage.OmnitureTrackingPrefix):trackResults(n,"null");localStorage.removeItem("OmnitureTrackingPrefix");pageInit=!1});$(document).ready(function(){pageInit=mastheadViewModel.Term().length!==0})