function getCookie(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return decodedValue(t.substring(r.length,t.length))}return""}function checkCookie(n){return""!==getCookie(n)}function setCookie(n,t,i){var r=new Date,u;r.setTime(r.getTime()+864e5*i);u="expires="+r.toUTCString();document.cookie=n+"="+t+";expires="+u+";path=/;domain=.solarwinds.com"}function setCookiesFor(n,t){(""!==n||""!==t)&&document.getElementById(n)&&document.getElementById(t)&&$.ajax({url:"/solarapi/cookies/setregistrationcookies",type:"POST",async:!1,dataType:"json",data:{firstName:document.getElementById(n).value,lastName:document.getElementById(t).value}})}function deleteCookie(n){document.cookie=n+"='';expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.solarwinds.com"}function setRegistrationCookieForEmail(n){n&&""!==n&&$.ajax({url:"/solarapi/cookies/setregistrationcookieforemail",type:"POST",async:!1,dataType:"json",data:{email:n}})}function hideElement(n){null!==document.getElementById&&(document.getElementById(n).style.visibility="hidden")}function checkForCookieHideInputs(){!0===checkCookie("RegistrationDetails")&&(hideElement("CTAFirstName"),hideElement("CTALastName"),hideElement("CTATFirstName"),hideElement("CTATLastName"),hideElement("SNFirstName"),hideElement("SNLastName"),hideElement("CTAFirstNameM"),hideElement("CTALastNameM"),hideElement("CTATFirstNameM"),hideElement("CTATLastNameM"),hideElement("SNFirstNameM"),hideElement("SNLastNameM"))}function handlePercent(n){for(var f="0123456789abcdefABCDEF",r="",i=0,u=n.length,t=n.indexOf("%");0<=t;)r+=n.substr(i,t-i),i=t+2<u&&0<=f.indexOf(n[t+1])&&0<=f.indexOf(n[t+2])?(r+="%"+n[t+1]+n[t+2],t+3):(r+="%25",t+1),t=n.indexOf("%",i);return i<u&&(r+=n.substr(i,u-i)),r}function decodedValue(n){return null===n?"":decodeURIComponent(handlePercent(n))}function startModal(){function n(){$(".ch-exit-intent-modal").hide();$(".ch-intent-overlay").hide();$(document).off("mouseleave");$(document).unbind("mouseleave")}function t(){$(document).on("click","#ch-no-thanks",function(){n()})}function i(){$("#ch-email-submit").click(function(){""!==$("input#ch-email-submission").val()&&($.ajax({url:"/solarapi/formsV2/SendEmail",type:"POST",async:!1,dataType:"json",data:{From:$("#ch-email-submission").val(),To:document.getElementById("toEmail").innerText.replace(/\s/g,"").split(";"),cc:document.getElementById("cc").innerText.replace(/\s/g,"").split(";"),Subject:document.getElementById("subject").innerText,body:$("#ch-other-text").val()}}),n())})}function r(){$(".ch-confirmation-body").hide();$(".ch-exit-intent-body").hide();$(".ch-email-input-body").show();$(".ch-exit-intent-modal").removeClass("resize");t();$("#ch-email-submit").click(function(){n()});i()}function u(){$("#ch-other-option").click(function(){$("#ch-other-text").show();$(".ch-exit-intent-modal").addClass("resize")});$("#ch-next-button").click(function(){if(0<$("input[name=intent]:checked").length){var i=$("input[name=intent]:checked"),n=$(i).attr("id");$("#ch-other-text").val();"ch-other-option"===n&&r();"ch-other-option"!==n&&($(".ch-exit-intent-body").hide(),$(".ch-confirmation-body").show(),t())}})}window.sessionStorage.setItem("exitIntentStatus","true");$(".ch-radio-intent-option .ch-input-option").click(function(){var n=$(this).attr("redirectUrl");$("#ch-take-me-there").attr("href",n)}),function(){$(".ch-exit-intent-modal").fadeIn(500);$(".ch-intent-overlay").fadeIn(500);$(".ch-close-modal").click(function(){n()});var t=document.getElementsByClassName("ch-intent-overlay")[0];window.onclick=function(i){i.target===t&&(t.style.display="none",n())};u()}()}function faqFunction(){(function(){$(".tab-content-faq").each(function(){var n=$(this),t=768<=window.innerWidth?n.children("li:gt(5)"):n.children("li:gt(2)"),i=n.hasClass("expanded");t[i?"show":"hide"]();$(".mSeeLess").hide();0<t.length?(n.find($(".mSeeMore").click(function(r){i=n.hasClass("expanded");r.preventDefault();n.toggleClass("expanded");t.slideToggle();$(".tab-content-faq").hasClass("expanded")?($(".mSeeMore").hide(),$(".mSeeLess").show()):($(".mSeeMore").show(),$(".mSeeLess").hide())})),n.find($(".mSeeLess").click(function(r){i=n.hasClass("expanded");r.preventDefault();n.toggleClass("expanded");t.slideToggle();$(".tab-content-faq").hasClass("expanded")?($(".mSeeMore").hide(),$(".mSeeLess").show()):($(".mSeeMore").show(),$(".mSeeLess").hide())}))):$(".mSeeMore").hide()})})();$(".tab-content-faq .tab").find("i").addClass("fa-plus");$(".tab-content-faq .tab").click(function(){var i=$(".tab-content-faq .tab").index($(this)),t=$(".tab-content-faq .tabPanel-faq").eq(i),n=!t.is(":visible");$(".tab-content-faq .tab.active").removeClass("active").find("i").removeClass("fa-minus").addClass("fa-plus");$(this).toggleClass("active",n).find("i").toggleClass("fa-minus",n);$(".tab-content-faq .tabPanel-faq").slideUp();n&&t.slideDown()});$(".tabPanel-faq").hide();$(".tab-content-faq li:first-child .tab").trigger("click")}function outerTabsFunction(){jQuery("ul.tabs").each(function(){var n,t,i=jQuery(this).find("a");(n=jQuery(i.filter('[href="'+location.hash+'"]')[0]||i[0])).parent().addClass("active");$($(".tab-bundleLegendWrapper")[0]).height($("#tab1-1").height()+nextFeatureBundleOuterHeight);n[0]&&(t=$(n[0].hash));i.not(n).each(function(){jQuery(this.hash).hide()});jQuery(this).on("click","a",function(i){if(n.parent().removeClass("active"),-1!==i.target.hash.indexOf("-")&&$(".tab-legend-bundle:visible li.active").removeClass("active"),t.hide(),n=jQuery(this),t=jQuery(this.hash),$("ul.tab-content-bundle").find("li.active").hide().removeClass("active"),n.parent().addClass("active"),t.show(),$(".tab-legend-bundle:visible").hasClass("expanded"))$($(".tab-bundleLegendWrapper")[0]).height("auto");else{var r=$(this.hash).height();$($(".tab-bundleLegendWrapper")[0]).height(r+nextFeatureBundleOuterHeight)}i.preventDefault()})});$(".tab-legend-bundle").each(function(){var n=$(this),i=n.find("li:gt(3)"),t=n.hasClass("seeMoreBundle");i[t?"show":"hide"]();0<i.length&&n.after($('<span class="seeMoreBundle">'+(t?seeLessText:seeMoreText)+"<\/span>").click(function(r){if(t=n.hasClass("expanded"),r.preventDefault(),t){$(this).attr("data-linkdetail",seeLessText);var u=$($(".tab-legend-bundle:visible li.active a")[0].hash).height();$($(".tab-bundleLegendWrapper")[0]).height(u+nextFeatureBundleOuterHeight)}else $(this).attr("data-linkdetail",seeMoreText),$($(".tab-bundleLegendWrapper")[0]).height("auto");$(this).text(t?seeMoreText:seeLessText);n.toggleClass("expanded");i.slideToggle()}))});$(".seeMoreBundle").attr("data-linktype","Features Module").attr("data-linkdetail",seeLessText);$(".tabAccordionBundle").each(function(){var n=$(this),i=n.find("a.tab:gt(2)"),t=n.hasClass("seeMoreBundle");i[t?"show":"hide"]();0<i.length&&n.append($('<span class="seeMoreBundle">'+(t?seeLessText:seeMoreText)+"<\/span>").click(function(r){t=n.hasClass("expanded");r.preventDefault();$(this).text(t?seeMoreText:seeLessText);n.toggleClass("expanded");i.slideToggle()}))});$(".tabAccordionBundle .tab").find("i").addClass("fa-plus");$(".tabAccordionBundle .tab").click(function(){var n=!$(this).next().is(":visible");$(this).siblings(".tab.active").removeClass("active").find("i").removeClass("fa-minus").addClass("fa-plus");$(this).toggleClass("active",n).find("i").toggleClass("fa-minus",n);$(".tabAccordionBundle .tabPanel").slideUp();n&&$(this).next().slideDown()});$(".tabAccordionBundle .tab:first-child").each(function(){$(this).trigger("click")});$(".tabAccordionBundle:eq(0) .tab").next().hide();$(".tabAccordionBundle:eq(0) .tab.active").next().slideDown();$(".tabAccordionBundle:eq(1) .tab").next().hide();$(".tabAccordionBundle:eq(1) .tab.active").next().slideDown();$(".tabAccordionBundle:eq(2) .tab").next().hide();$(".tabAccordionBundle:eq(2) .tab.active").next().slideDown();$(".tabAccordionBundle:eq(3) .tab").next().hide();$(".tabAccordionBundle:eq(3) .tab.active").next().slideDown();var t=$(".tab-link .active a").attr("href"),i=t+" .tab-legend-bundle",n=$(i).find("li.active").next("li").text();$(".tab-bundles").on("click","a",function(){t=$(".tab-link .active a").attr("href");i=t+" .tab-legend-bundle";n=$(i).find("li.active").next("li").text();$(".nextFeatureBundle a").text(n)});$(".nextFeatureBundle a").text(n);var r=$(".tab-legend-bundle:eq(0)").find("li a").first().text(),u=$(".tab-legend-bundle:eq(1)").find("li a").first().text(),f=$(".tab-legend-bundle:eq(2)").find("li a").first().text(),e=$(".tab-legend-bundle:eq(3)").find("li a").first().text();$(".contentBundleWrap:eq(0) .tab-legend-bundle").click(function(){n=$(".contentBundleWrap:visible .tab-legend-bundle").find("li.active").next("li").text();$(".contentBundleWrap:visible .tab-legend-bundle").find("li:last-child").hasClass("active")?$(".nextFeatureBundle a").text(r):$(".nextFeatureBundle a").text(n);$(".contentBundleWrap:eq(0) .tab-legend-bundle li").click(function(){$(".contentBundleWrap:visible .tab-content-bundle li").siblings().hide()})});$(".contentBundleWrap:eq(1) .tab-legend-bundle").click(function(){n=$(".contentBundleWrap:visible .tab-legend-bundle").find("li.active").next("li").text();$(".contentBundleWrap:visible .tab-legend-bundle").find("li:last-child").hasClass("active")?$(".nextFeatureBundle a").text(u):$(".nextFeatureBundle a").text(n);$(".contentBundleWrap:eq(1) .tab-legend-bundle li").click(function(){$(".contentBundleWrap:visible .tab-content-bundle li").siblings().hide()})});$(".contentBundleWrap:eq(2) .tab-legend-bundle").click(function(){n=$(".contentBundleWrap:visible .tab-legend-bundle").find("li.active").next("li").text();$(".contentBundleWrap:visible .tab-legend-bundle").find("li:last-child").hasClass("active")?$(".nextFeatureBundle a").text(f):$(".nextFeatureBundle a").text(n);$(".contentBundleWrap:eq(2) .tab-legend-bundle li").click(function(){$(".contentBundleWrap:visible .tab-content-bundle li").siblings().hide()})});$(".contentBundleWrap:eq(3) .tab-legend-bundle").click(function(){n=$(".contentBundleWrap:visible .tab-legend-bundle").find("li.active").next("li").text();$(".contentBundleWrap:visible .tab-legend-bundle").find("li:last-child").hasClass("active")?$(".nextFeatureBundle a").text(e):$(".nextFeatureBundle a").text(n);$(".contentBundleWrap:eq(3) .tab-legend-bundle li").click(function(){$(".contentBundleWrap:visible .tab-content-bundle li").siblings().hide()})});$("a#nextFeatureBundle").click(function(n){var t,i,r,u,f,e;n.preventDefault();t=$(".contentBundleWrap:visible .tab-legend-bundle li.active");i=t.next();0===i.length&&(i=t.siblings(":first"));t.removeClass("active");i.addClass("active");r=$(".contentBundleWrap:visible ul.tab-content-bundle li:visible");u=r.next();0===u.length&&(u=r.siblings(":first"));r.hide();u.show();f=$(".contentBundleWrap:visible .tab-legend-bundle").find("li.active").next("li").text();$(".nextFeatureBundle a").text(f);e=$(".contentBundleWrap:visible .tab-legend-bundle").find("li").first().text();$(".tab-legend-bundle").find("li:last-child").hasClass("active")?$(".nextFeatureBundle a").text(e):$(".nextFeatureBundle a").text(f)});$(function(){var n,t={"font-size":".9em","line-height":"1.2em","padding-top":".5em"};$(".tab-link div a").each(function(){n=$(this);30<$(this).text().length&&n.css(t)})})}function featuresTab(){var n=function(n,t){$(n).addClass("inactive").removeClass("active");t&&t()},t=function(t){var i=t.index();n($(".tab-content .active"));$(".tab-legend .active").removeClass("active").addClass("inactive");$(".tab-legend > li").eq(i).removeClass("inactive").addClass("active");$(".tab-content > li").eq(i).addClass("active").not(".nextFeature")};(function(){var e=$(".tab"),i,r,u,f;$.each(e,function(){var i;!function(i){var u=$(i).find(".tab-content > li"),r;$.each(u,function(){n(this)});r=$(".tab-legend .active").length?$(".tab-legend .active"):$(".tab-legend > li:first-child");t(r)}(this);i=$(this).find(".tab-legend li");$.each(i,function(){$(this).on("click",function(){var n=$(this);t(n)})})});i=$(".tab-legend").find("li").first().text();r=$(".tab-legend").find("li.active").next("li").text();$(".nextFeature a").text(r);$(".tab-legend").click(function(){r=$(".tab-legend").find("li.active").next("li").text();$(".tab-legend").find("li:last-child").hasClass("active")?$(".nextFeature a").text(i):$(".nextFeature a").text(r)});$(".tab-legend").find("li:last-child").hasClass("active")&&$(".nextFeature a").text(i);u=$(".tab-legend").find("li");f=$(".tab-content").find("li");$("#nextFeature").click(function(n){var t,r,e;n.preventDefault();t=u.filter(".active").removeClass("active").next();t.length||(t=u.first());t.addClass("active");r=f.filter(".active").removeClass("active").next();r.length||(r=f.first());r.addClass("active");e=$(".tab-legend").find("li.active").next("li").text();$(".nextFeature a").text(e);$(".tab-legend").find("li:last-child").hasClass("active")?$(".nextFeature a").text(i):$(".nextFeature a").text(e)});$("ul.tab-legend.features").each(function(){var t=$(this),i=t.find("li:gt(10)"),n=t.hasClass("seeMore");i[n?"show":"hide"]();0<i.length&&($('<span class="seeMore">'+(n?seeLessText:seeMoreText)+"<\/span>"),$(".keyFeatures .tabLegendWrapper").append($('<span class="seeMore">'+(n?seeLessText:seeMoreText)+"<\/span>").click(function(r){n=t.hasClass("expanded");r.preventDefault();n?$(this).attr("data-linkdetail",seeLessText):$(this).attr("data-linkdetail",seeMoreText);$(this).text(n?seeMoreText:seeLessText);t.toggleClass("expanded");i.slideToggle()})))});$(".seeMore").attr("data-linktype","Features Module").attr("data-linkdetail",seeLessText);$(".tabAccordion").each(function(){var n=$(this),i=n.find("a.tab:gt(2)"),t=n.hasClass("seeMore");i[t?"show":"hide"]();$(".mSeeLess").hide();0<i.length?n.append($('<span class="seeMore">'+(t?seeLessText:seeMoreText)+"<\/span>").click(function(r){t=n.hasClass("expanded");r.preventDefault();$(this).text(t?seeMoreText:seeLessText);n.toggleClass("expanded");i.slideToggle()})):$(".seeMore").hide()})})();$(".tabAccordion .tab").find("i").addClass("fa-plus");$(".tabAccordion .tab").click(function(){var n=!$(this).next().is(":visible");$(this).siblings(".tab.active").removeClass("active").find("i").removeClass("fa-minus").addClass("fa-plus");$(this).toggleClass("active",n).find("i").toggleClass("fa-minus",n);$(".tabAccordion .tabPanel").slideUp();n&&$(this).next().slideDown()});$(".tabAccordion .tab:first-child").trigger("click");$(".closeFeature").click(function(){var n=$(this).closest(".tabPanel");$(this).closest(".tabPanel").slideUp();$(n).prev(".tabAccordion .tab").removeClass("active").find("i").removeClass("fa-minus").addClass("fa-plus")})}function defer(n){window.jQuery?n():setTimeout(function(){defer(n)},50)}function initClickEvents(){$(".navbar.navbar-default.government.government-ultra").length&&window.innerWidth<1200&&(isClickEventsAttached=!0,$(".government-ultra #hamburgerButton").click(function(){$(".government-ultra #hamburgerButton").toggleClass("open");setTimeout(function(){$(".government-ultra #hamburgerButton").hasClass("open")?($(".government-ultra .navbar-brand .mobile").hide(),$(".government-ultra .navbar-brand .flare").show(),$(".government-ultra #custom-menu").addClass("in"),$(".government-ultra #custom-menu").css("display","block"),$(".government-ultra .language-toggle").show(),$(".government-ultra #hamburgerButton").attr("data-linkdetail","close")):($(".government-ultra .navbar-brand .mobile").show(),$(".government-ultra .navbar-brand .flare").hide(),$(".government-ultra #custom-menu").css("display","none"),$(".government-ultra #custom-menu").removeClass("in"),$(".government-ultra .language-toggle").hide(),$(".government-ultra #hamburgerButton").attr("data-linkdetail","expand"))},50)}),$("#government-nav .menu-toggle.separator .mobile-menu-icon").click(function(){var n=$(this);setTimeout(function(){console.log(n);"false"===n.attr("aria-expanded")?(n.parent(".menu-toggle").addClass("open"),n.next(".government-submenu").css("display","block"),n.parent(".menu-toggle").find("#view-all-section").length&&openSubMenuViewAll(),n.attr("aria-expanded","true"),n.attr("data-linkdetail","collapse")):(n.parent(".menu-toggle").find("#view-all-section").length&&$("#government-nav .menu-toggle.separator.open #view-all-section.view-all-section a").off("click"),n.parent(".menu-toggle").removeClass("open"),n.next(".government-submenu").css("display","none"),n.attr("aria-expanded","false"),n.attr("data-linkdetail","expand"))},50)}))}function openSubMenuViewAll(){$("#government-nav .menu-toggle.separator.open #view-all-section.view-all-section a").on("click",function(){var n=$("#government-nav .menu-toggle.separator.open #view-all-section.view-all-section a"),t=$("#government-nav .menu-toggle.separator.open li.not-visible");"false"===n.attr("aria-expanded")?(t.removeClass("hide-mobile"),n.attr("aria-expanded","true"),n.attr("data-linkdetail","collapse"),$("#government-nav .menu-toggle.separator.open #view-all-section.view-all-section a span").text("- ")):(t.addClass("hide-mobile"),n.attr("aria-expanded","false"),n.attr("data-linkdetail","expand"),$("#government-nav .menu-toggle.separator.open #view-all-section.view-all-section a span").text("+ "))})}function productProblem(){$(function(){var n=[];$("#selectTwo").find("option").each(function(){n.push($(this))});$("#selectOne").change(function(){var i=$(this).val(),t=$("#selectTwo");t.children("option:not(:first)").remove();$.each(n,function(n,r){r.attr("data-group")!==i&&"SHOW"!==r.attr("data-group")||(t.append(r),$("select#selectTwo").removeAttr("disabled"));$(".options").hide();$("#selectTwo option").show();$("#selectTwo").val("0")});0===$("select#selectOne").prop("selectedIndex")&&$("select#selectTwo").attr("disabled","disabled")}).change()});$("#selectTwo").change(function(){$(this).find("option:selected").each(function(){var n=$(this).attr("value");n?($(".options").not("."+n).hide(),$("."+n).show()):$(".options").hide()})}).change();var n=function(){$("#selectOne option").removeAttr("selected");$("#selectTwo option").removeAttr("selected");$("#selectOne option:first").attr("selected","selected");$("#selectTwo option:first").attr("selected","selected");$("#selectOne").val("0");$("#selectTwo").val("0");$("#selectTwo").attr("disabled","disabled");$(".options").hide();var n=$("#problemModal").attr("data-tracking-group");dynTrack.multiTrack(n,"Close Lightbox","");$(document).idleTimer("destroy");$("#problemModal").hide();$(".adobeHelpBox").show()};$(".targetClose").click(function(){n()});$("body").on("click",function(t){$(t.target).is("#problemModal")&&n()})}function addQueryStringFilter(n){n=n.replace(" ","%");var i,r=window.location.pathname,t=window.location.search;t.includes(n)||""===t?""===t&&window.history.pushState(null,n,r+"?"+n+"=true"):(i=r.concat(t,"&",n+"=true"),window.history.pushState(null,n,i))}function removeQueryStringFilter(n){n=n.replace(" ","%")+"=true";var i=window.location.pathname,t=window.location.search;t.includes("?"+n)&&(t=t.replace("?"+n,""));t.includes("&"+n,"")&&(t=t.replace("&"+n,""));window.history.pushState(null,n,i+t)}function clearQueryStringFilter(){window.history.pushState(null,null,window.location.pathname)}function selectedReviewItems(n){$('[data-testimonial="'+n+'"]').addClass("selectedReview").show()}function hideSourceReviews(n){var t='[data-testimonial="'+n+'"]';$(t).hide();$(t).removeClass("selectedReview");0===$(".review-item").filter(".selectedReview").length&&$(".review-item").show()}function sortTopRatedReviews(n){var t=n.sort(function(n,t){return parseInt($(t).data("rating"))-parseInt($(n).data("rating"))});$(".review-item").remove();$(".review-item-container").append(t)}function sortByDate(n){var t=n.sort(function(n,t){return new Date($(t).data("date")||"January 1, 2001")-new Date($(n).data("date")||"January 1, 2001")});$(".review-item").remove();$(".review-item-container").append(t)}function setBrandTextMaxWidth(n){var t,r,u,i;n<50&&(t=$(".secondary-nav-brand-name"),r=t.width()/2,t.css("max-width",r),u=$(".cta-button-li"),i=$(".secondary-nav .main-nav-bar-item").last().prev(),setBrandTextMaxWidth(u.offset().left-(i.offset().left+i.width())))}function handleAnchorWithStickyNav(n,t){-1<n.href.indexOf(window.location.href)&&-1<n.href.indexOf("#")&&$(n).click(function(){return $("html,body").animate({scrollTop:$(n.hash).next().offset().top-t},500),!1})}function getOffsetTop(n){return n.getBoundingClientRect().top+window.scrollY}function drawingFunctionUC(){$(".product-page-use-case-card-content").each(function(){var n=0;$(this).each(function(){var t=$(this).height();n<t&&(n=t)});$(window).width()<=1025?$(this).css({height:n+72+"px"}):$(this).css({height:n+45+"px"})})}function playVidyard(n){if(n){var t=VidyardV4.api.getPlayersByUUID(n);0<t.length&&t[0].showLightbox()}}function launchLightbox(n){n&&($("#vyLightbox").length<=0&&$("body").append('<div id="vyLightbox"><\/div>'),$("#vyLightbox").html('<img class="vidyard-player-embed" src="https://play.vidyard.com/'+n+'.jpg" data-uuid="'+n+'"; data-v="4" data-type="lightbox" />'),vidyardEmbed.api.renderDOMPlayers(document.getElementById("vyLightbox")),playVidyard(n))}function toggleTextCouponCard(n){var i=$("#couponCardState_"+n),o=i.val(),r=$("#SumLarge_"+n),u=$("#SumSmall_"+n),f=$("#DetailLarge_"+n),e=$("#DetailSmall_"+n),t="";o==="more"?(t=$("#couponCardLess_"+n).val(),r.hide(),u.hide(),f.show(),e.show(),i.val("less")):(t=$("#couponCardMore_"+n).val(),r.show(),u.show(),f.hide(),e.hide(),i.val("more"));$("#LargeBtn_"+n).text(t);$("#SmallBtn_"+n).text(t)}function autocomplete(n,t){function u(n){if(!n)return!1;f(n);i>=n.length&&(i=0);i<0&&(i=n.length-1);n[i].classList.add("autocomplete-active")}function f(n){for(var t=0;t<n.length;t++)n[t].classList.remove("autocomplete-active")}function r(t){for(var r=document.getElementsByClassName("autocomplete-wrapper"),i=0;i<r.length;i++)t!=r[i]&&t!=n&&r[i].parentNode.removeChild(r[i])}function e(n,t){var i=new RegExp(t,"g");return n.replace(i,"<b>"+t+"<\/b>")}var i;n.addEventListener("input",function(){var f,o,h,u,s=this.value,c;if(r(),!s)return!1;for(i=-1,c=!1,u=0;u<t.length;u++)t[u]=t[u].toLowerCase(),s=s.toLowerCase(),t[u].indexOf(s)>-1&&(c===!1&&(h=document.createElement("DIV"),h.setAttribute("class","autocomplete-wrapper"),this.parentNode.appendChild(h),f=document.createElement("DIV"),f.setAttribute("id",this.id+"autocomplete-list"),f.setAttribute("class","autocomplete-items"),h.appendChild(f),c=!0),o=document.createElement("DIV"),o.innerHTML=e(t[u],s),o.innerHTML+="<input type='hidden' value='"+t[u]+"'>",o.addEventListener("click",function(){n.value=this.getElementsByTagName("input")[0].value;r()}),c===!0&&f.appendChild(o))});n.addEventListener("keydown",function(n){var t=document.getElementById(this.id+"autocomplete-list");t&&(t=t.getElementsByTagName("div"));n.keyCode==40?(i++,u(t)):n.keyCode==38?(i--,u(t)):n.keyCode==13&&(n.preventDefault(),i>-1&&t&&t[i].click())});document.addEventListener("click",function(n){r(n.target)})}var globalFooter,dynTrack,idleTime,timeOutLength,seeMoreText,seeLessText,heightControl,IconStrip,longestSoFar,longestItem,homeIconLength,maxFitSymbolsCount,sublongestSoFar,sublongestItem,subhomeIconLength,LB,longFormAnchorList,$modallightbox,ModalLightbox,prevWidth,isClickEventsAttached,NewsAndEvents,pricingComponent,ComparePlans,mobileResolution,isReviewsLandingPage,experienceEditorPage,SaasCalculatorResultClass,SaasCalculatorClass,screenShotCarouselModule,simpleFAQModule,handleFeatureIconStripWrapping,slickCarousel,ServiceDeskUtilities;(function(n){"use strict";var t={elem:n(".slimStickyNav"),inner:undefined,linkElements:[],posTop:undefined,height:undefined,links:undefined,isSticky:!1,secondaryNavElem:n(".secondary-nav"),secondaryNavTop:undefined,stickyClass:"sticky",getSecondaryNavHeight:function(){return t.secondaryNavElem.length?t.secondaryNavElem.outerHeight():0},stick:function(){t.setTop();t.elem.addClass(t.stickyClass);n(".slimStickyNav .col-sm-12").addClass("animated fadeIn");t.isSticky=!0},unstick:function(){t.resetTop();t.elem.removeClass(t.stickyClass);t.links.removeClass("active");t.isSticky=!1},activateLink:function(i){t.links.removeClass("active");n(i).addClass("active")},setTop:function(){if(t.secondaryNavElem.length){var n=t.getSecondaryNavHeight()+"px";t.inner.css("top",n)}},resetTop:function(){t.secondaryNavElem.length&&t.inner.css("top","")},clickHandler:function(){t.activateLink(this);var i=n(this.hash).next(),r=i.offset().top-t.height-t.getSecondaryNavHeight();return n("html,body").animate({scrollTop:r},500),!1},resetHandler:function(){var i,r;t.inner.css("z-index","19");i=n(window).scrollTop();t.posTop=(t.elem&&t.elem.offset()?t.elem.offset().top:0)-t.getSecondaryNavHeight();i>=t.posTop?t.stick():t.unstick();r=2*t.height+t.getSecondaryNavHeight();i+=r;n(t.linkElements).each(function(){var n=this.elem.offset().top,t=n+this.elem.outerHeight();n<=i&&i<=t?this.link.hasClass("active")||this.link.addClass("active"):this.link.removeClass("active")});t.isSticky===!1&&n(t.links[0]).addClass("active")},init:function(){if(t.elem.length&&(t.inner=t.elem.children(".inner"),t.inner.length)){if(t.height=t.inner.outerHeight(),t.links=t.elem.find("ul a"),t.elem.height(t.height),t.secondaryNavElem.length){t.stickyClass="stickySecond";var i=t.secondaryNavElem.find(".has-submenu");i.length&&i.hover(function(){t.isSticky&&t.inner.css("z-index","-1")},function(){t.isSticky&&t.inner.css("z-index","19")})}n(window).on("load",t.resetHandler);n(window).scroll(t.resetHandler);t.links.each(function(){var i=n(this),r=n(this.hash).next(),u=i.width()+3;u<200&&i.css("min-width",u);i.click(t.clickHandler);r.length&&t.linkElements.push({height:r.outerHeight(),link:i,elem:r})})}}};n(t.init)})(jQuery);$(document).ready(function(){$(".navbarUltra.brandsite-global-nav").length&&$("a.icon-menu-headline").click(function(n){n.stopPropagation();$(this).parent("li").toggleClass("open")})});globalFooter={};globalFooter.showSubItems=function(){$("footer .ul-wrapper").each(function(){$(this).removeAttr("style")})};globalFooter.resetContactTileSize=function(){$(".footersection .tile").first().css("height","auto")};globalFooter.setContactTileSize=function(){$(".tile").first().css("height",$(".footersection>.row").height())};globalFooter.debounce=function(n,t){var i=null;return function(){var r=this,u=arguments;clearTimeout(i);i=setTimeout(function(){n.apply(r,u)},t)}};globalFooter.resize=function(){var n=$(window).width();992<=n&&(globalFooter.showSubItems(),globalFooter.resetContactTileSize());n<768&&globalFooter.resetContactTileSize();768<=n&&n<992&&globalFooter.setContactTileSize()};$(document).ready(function(){$(".expand-icon").click(function(){$(this).toggleClass("swap-expand-icon");$(this).parent().next(".ul-wrapper").toggle();var n=$(window).width();768<=n&&n<992&&globalFooter.setContactTileSize()});$(window).resize(globalFooter.debounce(function(){globalFooter.resize()},150));globalFooter.resize()}),function(n){var t={el:n(".buy-now"),link:n(".buy-now-link"),submit:n(".buy-now .submit"),URL:n(".buy-now .submit").attr("href"),products:{},init:function(){n(".quantity input").keydown(function(t){var i=t.which||t.keyCode,r=n(this).val();return(48!==i&&96!==i||!(r<1))&&(!t.shiftKey&&!t.altKey&&!t.ctrlKey&&48<=i&&i<=57||96<=i&&i<=105||8===i||9===i||13===i||35===i||36===i||37===i||39===i||46===i||45===i)});t.el.length&&(t.licenses=t.el.find(".licenses"),t.options=t.el.find(".options"),t.link.click(function(n){t.open();n.preventDefault()}),t.el.find("header .close").click(function(n){t.close();n.preventDefault()}),n(".buy-now").click(function(i){if(n(i.target).is(".buy-now"))return t.close(),!1}),t.initType())},initType:function(){switch(t.type=t.el.find(".inner").attr("class").replace("inner ",""),t.type){case"tier":t.initTables();t.initInputs();break;case"seat":t.skus=t.el.find('.buttons input[type="hidden"]');t.updateSeat(t.el.find("#quantity"));t.el.find("#quantity").blur(function(){t.updateSeat(n(this))});break;case"serv-u mftp":case"serv-u ftp":t.options.each(function(){t.initTable(n(this),"options")});t.el.find(".quantity input").on("blur input",t.updateLicense);t.el.find(".select > input").on("click",function(i){n(i.target).parents("tr").trigger("click");t.updateLicense()});t.updateLicense()}},open:function(){t.el.addClass("open")},close:function(){t.resetInvalidValue();t.el.removeClass("open")},initTables:function(){t.licenses.each(function(){t.initTable(n(this),"licenses");t.initQuantity()});t.options.each(function(){t.initTable(n(this),"options")})},initTable:function(i,r){var u={rows:i.find("tr"),selected:i.find("tr.selected")};u.rows.click(function(i){n(i.target).parents("tr").hasClass("selected")&&("options"!==r||n(i.target).parents(".quantity").length||n(i.target).hasClass("quantity"))||("licenses"===r&&(u.selected.removeClass("selected"),t.submit.hasClass("disabled")&&t.submit.removeClass("disabled")),u.selected=n(this),u.selected.addClass("selected"),"options"===r&&n(i.target).is("label")||u.selected.find(".select > input").trigger("click"),"options"===r&&(n(i.target).is("input")&&!n(i.target).is(":checked")&&u.selected.removeClass("selected"),t.updateLicense()))});"options"===r&&u.rows.find(".quantity input").on("blur",function(){t.updateLicense()})},initQuantity:function(){n('input[name="quantity"]').on("blur",function(){var i=t.legalizeValue(n(this).val());n(this).val(i);t.updateLicense()})},legalizeValue:function(n){var t=Math.floor(parseInt(n,10));return 1<t?t:1},initInputs:function(){t.el.find(".select > input").on("change",t.updateLicense)},updateLicense:function(){var i,r,f,u;switch(t.type){case"tier":case"seat":case"autoseat":i=n(".licenses tr.selected .select > input");r=n(".licenses tr.selected .select .quantity input").val();break;case"serv-u ftp":case"serv-u mftp":t.validateQuantity();f=n(".licenses tr .price input");u=n(".licenses + .quantity input");r=parseInt(n(".quantity input").val());1<f.length?(f.each(function(){var t=parseInt(n(this).attr("data-maxunits"),10);if(u.val()<=t)return i=n(this),n(".licenses .selected").removeClass("selected"),n(this).parents("tr").addClass("selected"),!1}),void 0===i&&(i=n(".licenses tr:last-child .price input"),u.val(i.attr("data-maxunits")))):(r=parseInt(u.val()),i=n(".licenses").find(".price input"))}t.products=[{sku:i.attr("data-sku"),qty:r}];t.updateURL()},addErrorClass:function(n){n&&(n.addClass("error"),t.submit.addClass("disabled"))},removeErrorClass:function(n){n&&(n.removeClass("error"),t.submit.removeClass("disabled"))},validateQuantity:function(){var i=t.el.find(".quantity input"),r=parseInt(i.val()),n,u;if(!r||r<1)return t.addErrorClass(i.parents("div.quantity")),!1;if(t.removeErrorClass(i.parents("div.quantity")),n=t.options.find('input[type="checkbox"]'),n){if(u=n.parents("tr").find(".quantity input").val(),!u||r<u){if(n[0].checked)return t.addErrorClass(n.parents("tr")),!1;n.parents("tr").find(".quantity input").val(1)}t.removeErrorClass(n.parents("tr"))}},resetInvalidValue:function(){t.el.find(".error").each(function(){n(this).find("#quantity").val(1);t.removeErrorClass(n(this))})},updateSeat:function(i){var r,u=i.val();t.skus.each(function(){if(u<=parseInt(n(this).attr("data-maxunits"),10))return r=n(this).attr("data-sku"),!1});t.products=[{sku:r,qty:u}];t.updateURL()},updateURL:function(){var f,o;t.options.find('input[type="checkbox"]:checked').each(function(){var i=n(this).parents("tr").find(".quantity input");i&&i.val()&&0<i.val()&&t.products.push({sku:i.attr("data-sku"),qty:i.val()})});for(var i="",r="",e=!1,u=0;u<t.products.length;u++)0<u&&(i+=",",r+=",",e=!0),i+=t.products[u].sku,r+=t.products[u].qty,"13078"===i&&(r=1);e?(f=n(".buy-now .submit")[0],o=f.protocol+"//"+f.hostname+"/shoppingcart",t.submit.attr("href",o+"?sku="+i+"&qty="+r)):t.submit.attr("href",t.URL+"&sku="+i+"&qty="+r)}};n(t.init)}(jQuery);$(document).ready(function(){$("a.right.carousel-control.reviews").on("click",function(){var t=$(".nav-dot.filled"),n;t.removeClass("filled");n=t.next();0!==n.length?n.addClass("filled"):$(".nav-dot").first().addClass("filled")});$("a.left.carousel-control.reviews").on("click",function(){var t=$(".nav-dot.filled"),n;t.removeClass("filled");n=t.prev();0!==n.length?n.addClass("filled"):$(".nav-dot").last().addClass("filled")})});$(document).ready(function(){$("#toll-number-select").change(function(){var n=$("#toll-number-select").val();$(".toll-free-number").addClass("hidden");$("#"+n).removeClass("hidden")});0===document.location.pathname.indexOf("/de/")&&($("#govContactUs .registration_form #formPhone").removeClass("smallWrap").addClass("largeWrap"),$("#govContactUs .registration_form #formPhone input").removeClass("inputSmall").addClass("inputLarge"))});window.EmailDomainForm={Init:function(){for(var t=$(".email-domain-form"),n=0;n<t.length;n++)window.EmailDomainForm._initSeparateForm(t[n])},_initSeparateForm:function(n){var t=$(n).find(".email-domain-form-email"),u=new RegExp($(n).find("#ff-email_regex").val(),""),f=new RegExp($(n).find("#email_regex_s").val(),""),i=$(n).find(".email-domain-form-submit"),e=$(t).attr("data-error-text"),o=$(t).attr("data-format-error-text"),r={};r.email={required:e,feederEmailFormat:o};$.validator.addMethod("feederEmailFormat",function(n,t){return this.optional(t)||0===n.length||u.test(n)&&f.test(n)},"");$(n).validate({rules:{email:{required:!0,feederEmailFormat:!0}},messages:r,errorClass:"error-label",onfocusout:function(n){$(n).valid()},errorPlacement:function(n,t){n.attr("data-automation-id","error-label");n.insertAfter(t)}});$(i).click(function(t){t.preventDefault();$(n).valid()&&window.EmailDomainForm.checkEmailDomain(n)});$(n).on("submit",function(n){n.preventDefault();$(i).click()})},checkEmailDomain:function(n){var t=$(n).find(".email-domain-form-email");$.ajax({url:"/solarapi/registration/iscompromiseddomain",type:"POST",async:!0,data:{email:$(t).val()},success:function(i){setRegistrationCookieForEmail($(t).val());window.location.href=i?$(n).find("#compromisedUrl").val():$(n).find("#nonCompromisedUrl").val()},error:function(){console.log("IsCompromisedDomain method failed!")}})}};$(document).ready(function(){window.EmailDomainForm.Init()});$(document).ready(function(){$(".confirmation-hero").length&&($(".confirmation-hero span.form-control.filter-title").click(function(){$(".confirmation-hero .options-panel-wrapper").css("display","block")}),$(".confirmation-hero .options-panel-wrapper .options-panel label").click(function(){$(".confirmation-hero .filter-title").addClass("selected");$(".confirmation-hero .filter-title span").text($(this).text());$(".confirmation-hero .options-panel-wrapper").hide();$(".confirmation-hero .download-button").removeClass("inactive");var n=$(".confirmation-hero .download-button a");n.attr("href",$(this).attr("data-download-url"));n.attr("_target",$(this).attr("data-download-target"));n.attr("data-silent-submit-url",$(this).attr("data-silent-submit-url"));n.attr("data-is-silent-submit",$(this).attr("data-is-silent-submit"));n.attr("data-linkdetail",$(this).attr("data-linkdetail"));n.text($(this).attr("data-download-display-text"))}),$(document).mouseup(function(n){var t=$(".confirmation-hero .options-panel-wrapper");t.is(n.target)||0!==t.has(n.target).length||t.hide()}))});$(document).ready(function(){$(".content-strip").length&&$(".content-strip-view-all-button").click(function(){var n,i=$(this),t=$(i.parent().siblings(".content-strip-items")[0]),u=t.attr("data-show-all"),r=t.attr("data-default-shown-items");"false"==u?((n=t.children()).removeClass("content-strip-hidden"),n.removeClass("content-strip-shown-last"),n[n.length-1].classList.add("content-strip-shown-last"),i[0].innerText="-"+i[0].innerText.substr(1),t.attr("data-show-all",!0)):((n=t.children()).slice(r).addClass("content-strip-hidden"),n.removeClass("content-strip-shown-last"),n[r-1].classList.add("content-strip-shown-last"),i[0].innerText="+"+i[0].innerText.substr(1),t.attr("data-show-all",!1))})});$(function(){if($(".grid")&&0<$(".grid").length){var n=$(".grid").masonry({itemSelector:".grid-item",columnWidth:250,fitWidth:!0,gutter:3,isResizeBound:!0});n.on("click",".grid-item-content",function(t){$(".grid-item").removeClass("active is-expanded").addClass("inactive");$(".grid-item.inactive img.Outerlogo").show();$(t.currentTarget).parent(".grid-item.inactive").addClass("active is-expanded").removeClass("inactive");n.masonry();$(".grid-item.is-expanded img.Outerlogo").hide()});$(document).ready(function(){$(".grid-item-content").first().trigger("click")});$(".grid-item.inactive").hover(function(){$(this).find("img.Outerlogo").addClass("animated bounce")},function(){$(this).find("img.Outerlogo").removeClass("animated bounce")});$(".grid-item-content").click(function(){1!==$(this).parent().find(".headShot").length&&$(this).addClass("short")})}});$(document).ready(function(){function n(){var n=$(".detailed-tab .desktop .tab-panel").height();$(".detailed-tab .desktop .content-panel").css("min-height",n)}$(".detailed-tab").length&&($(".detailed-tab .desktop .tab-panel .nav-link").click(function(){$(".detailed-tab .desktop .tab-panel .nav-link").removeClass("active");$(this).addClass("active")}),$(".detailed-tab .mobile .card-header").click(function(){$(this).find(".indicator").toggleClass("fa-minus")}),n(),$(window).resize(n()))});dynTrack={multiTrack:function(n,t,i){var r,u;n&&t?(n=n.replace(/ /g,"_"),t=t.replace(/ /g,"_"),r=$("#__trackingGroup_"+n),r.length&&(u=r.children("#__trackingEl_"+t),u.length&&dynTrack.track(u.val(),i))):i&&dynTrack.track(null,i)},track:function(n,t){var i=t;n&&n.length?$.ajax({url:"/solarapi/personalization/dynamicpersonalization",type:"POST",dataType:"json",data:{itemId:n,url:window.document.URL},success:function(){i&&(window.location.href=i)}}):i&&(window.location.href=i)},trackItem:function(n,t){var i=$("#"+n).attr("data-tracking-id");dynTrack.track(i,t)}};$(document).ready(function(){function t(){return $("#EuCookieBlock.alert").length&&$("#EuCookieBlock.alert").is(":visible")&&"fixed"===$("#EuCookieBlock.alert").css("position")}var n={elem:$(".event-tabs"),linkElements:[],posTop:void 0,height:void 0,links:void 0,stick:function(){1024<$(window).width()&&t()&&$(".inner.download").css("top",$("#EuCookieBlock.alert").outerHeight()+"px");n.elem.addClass("sticky")},unstick:function(){n.elem.removeClass("sticky");n.links.removeClass("active")},activateLink:function(t){var i=t;n.links.removeClass("active");$(i).addClass("active")},clickHandler:function(){n.activateLink(this);var i=0;return 1024<$(window).width()&&t()&&(i=$("#EuCookieBlock.alert").outerHeight()),$("html,body").animate({scrollTop:$(this.hash).next().offset().top-n.height-i},500),!1},resetHandler:function(){var i=$(window).scrollTop(),r=1024<$(window).width()&&t()?$("#EuCookieBlock.alert").outerHeight(!0):0;n.posTop=n.elem&&n.elem.offset()?n.elem.offset().top:0;i+r>=n.posTop?(n.stick(),$(".event-tabs .links a:eq(0)").removeClass("targetActive"),$(".event-tabs .hide-button .col-sm-12 .buttons").show(),$(".event-tabs .col-sm-12").addClass("animated fadeIn"),i+=n.height):i-r<=n.posTop&&(n.unstick(),$(".event-tabs .links a:eq(0)").addClass("targetActive"),$(".event-tabs .hide-button .col-sm-12 .buttons").hide());$(n.linkElements).each(function(){this.top=this.elem.offset().top;this.bottom=this.elem.offset().top+this.elem.outerHeight();i>=this.top-n.height&&i<=this.bottom+n.height?this.link.hasClass("active")||n.activateLink(this.link):this.link.removeClass("active")})},init:function(){n.height=n.elem.children(".inner").outerHeight();n.links=n.elem.find("ul a");n.elem.height(n.height);$(window).on("load",n.resetHandler);$(window).scroll(n.resetHandler);n.elem.length&&n.links.each(function(){var i=$(this),t=$(this.hash).next(),r=i.width()+3;r<200&&i.css("min-width",r);i.click(n.clickHandler);t.length&&n.linkElements.push({top:t.offset().top,bottom:t.offset().top+t.outerHeight(),link:i,elem:t})});$(function(){$(".callToActionStrip input").focus(function(){$(this).prev(".callToActionStrip label.name").show()}).blur(function(){$(".callToActionStrip input").each(function(){0===$.trim($(this).val()).length?$(this).prev(".callToActionStrip label.name").hide():$(this).prev(".callToActionStrip label.name").show()})})});$("#EuContinue").bind("click",function(){$(".inner.download").css("top",0)});$(".events-expandible").on("click",function(){var i=$(this).attr("data-expanded"),n=$(this).text(),t;n=n.substring(1,n.length);t=$(this).closest(".container").find(".default-hidden");"true"===i?($(this).text("+ "+n),$(this).attr("data-expanded",!1),t.fadeOut(300)):($(this).text("- "+n),$(this).attr("data-expanded",!0),t.fadeIn(300))});$(".mobile-category-icon").on("click",function(){var u=$(this).attr("data-expanded"),t=$(this).children(".fa"),i=$(this).closest(".container").find(".mobile-hidden"),f=$(this).closest(".container").find(".default-hidden"),n,r;"true"===u?(t.removeClass("fa-minus-circle"),t.addClass("fa-plus-circle"),$(this).attr("data-expanded",!1),n=$(this).closest(".container").find(".events-expandible"),n.attr("data-expanded",!1),r=n.text().substring(1,n.text().length),n.text("+"+r),i.fadeOut(300),f.fadeOut(300)):(t.removeClass("fa-plus-circle"),t.addClass("fa-minus-circle"),$(this).attr("data-expanded",!0),i.fadeIn(300))})}};$(n.init)});idleTime=0;timeOutLength=0;null!==document.getElementById("timeOutLength")&&(timeOutLength=0<parseInt(document.getElementById("timeOutLength").innerText)?parseInt(document.getElementById("timeOutLength").innerText):0);$(document).ready(function(){if(992<=window.screen.width&&"true"!==window.sessionStorage.getItem("exitIntentStatus")){if(0!==timeOutLength){var n=setInterval(function(){(idleTime+=1)===timeOutLength&&(startModal(),clearInterval(n))},1e3);$(this).on("mousemove keypress",function(){idleTime=0})}$(this).mouseleave(function(t){var i=t.target.className;t.pageY<0&&-1===i.indexOf("dropdown-menu")&&(startModal(),clearInterval(n))})}});faqFunction();var seeMoreText=$(".seeMoreFeatures").text(),seeLessText=$(".seeLessFeatures").text(),nextFeatureBundleOuterHeight=$(".nextFeatureBundle").height()+parseInt($(".nextFeatureBundle").css("margin-bottom"));outerTabsFunction();seeMoreText=$(".seeMoreFeatures").text();seeLessText=$(".seeLessFeatures").text();featuresTab();$(document).ready(function(){var n,f,i,r,u,t;$(".global-simple-hero").length&&(f=$("#global-simple-hero-carousel .item").length,i=$(".global-simple-hero #global-simple-hero-carousel #1"),n=i.hasClass("Left")||i.hasClass("Right")?$(".global-simple-hero #global-simple-hero-carousel").height():$(".global-simple-hero #global-simple-hero-carousel .img-container").height(),$(".global-simple-hero #global-simple-hero-carousel").height(n),$(".global-simple-hero #global-simple-hero-carousel .img-container").height(n),$(".global-simple-hero #global-simple-hero-carousel .col-sm-6").height(n),((t=$("#global-simple-hero-carousel")).length&&($(window).width()<768?"True"===t.attr("data-no-rotate-mobile"):"True"===t.attr("data-no-rotate-desktop"))&&t.attr("data-interval","0"),1<f)&&(r=$("#global-simple-hero-carousel"),r.append('<ol class="carousel-indicators"><\/ol>'),u=$("#global-simple-hero-carousel .carousel-indicators"),r.find(".carousel-inner").children(".item").each(function(n){0===n?u.append('<li data-target="#global-simple-hero-carousel" data-slide-to="'+n+'" class="active" data-linktype="Homepage Hero Slider" data-linkdetail="carousel-indicators"><\/li>'):u.append('<li data-target="#global-simple-hero-carousel" data-slide-to="'+n+'" data-linktype="Homepage Hero Slider" data-linkdetail="carousel-indicators"><\/li>')})))});heightControl={debounce:function(n,t){var i=null;return function(){var r=this,u=arguments;clearTimeout(i);i=setTimeout(function(){n.apply(r,u)},t)}},resize:function(){var t=document.querySelectorAll(".container--full-height"),n;1===t.length&&(n=0,document.querySelectorAll(".container--full-height-exclude").forEach(function(t){"none"!==t.style.display&&(n+=$(t).outerHeight(!0))}),t[0].style.minHeight=0!==n?"calc(100vh - "+n+"px)":"100vh")}};$(document).ready(function(){$(window).resize(heightControl.debounce(function(){heightControl.resize()},100));0<$("#EuContinue").length&&$("#EuContinue").click(function(){heightControl.resize()});heightControl.resize()}),function(n){n().ready(function(){function t(){n(".homeProductModule .wrapper").each(function(){var t=0;n(".productCard .title",this).css("height","auto");n(".productCard .title",this).each(function(){n(this).outerHeight()>t&&(t=n(this).outerHeight())});n(".productCard .title",this).each(function(){768<n(window).width()?n(this).css("height",t+"px"):n(this).css("height","auto")});n(".productCard",this).css("height","auto");n(".productCard",this).each(function(){n(this).outerHeight()>t&&(t=n(this).outerHeight())});n(".productCard",this).each(function(){768<n(window).width()?n(this).css("height",t+"px"):n(this).css("height","auto")})})}n(".productCard").hover(function(){n(this).addClass("hoverProdCard")},function(){n(this).removeClass("hoverProdCard")});n(window).on("resize",t);t()})}(jQuery);IconStrip={init:function(){var t=$(".icon-strip").not(".companystrip"),i,r,n,u;t.parent().hasClass("col-sm-7")&&!t.hasClass("awardstrip")&&t.addClass("awardstrip");i=$(".icon-strip.awardstrip").closest(".ghost-gray-background");i.hasClass("container")||i.addClass("container");r=$(".icon-strip.awardstrip").closest(".container.ghost-gray-background");r.parent().hasClass("col-sm-12")||r.wrap('<div class="ghost-gray-background"><div class="container"><div class="row"><div class="col-sm-12"><\/div><\/div><\/div><\/div>');n=$(".homepage-category-icon-strip .category-cards .first-row-medium-view");u=n.data("elements-count");n.is(":visible")?$(".homepage-category-icon-strip .category-card").slice(0,u).detach().appendTo(n):$(".homepage-category-icon-strip .category-card").slice(0,u).detach().prependTo(".homepage-category-icon-strip .category-cards .second-row-medium-view")}};$(window).resize(function(){768<=$(window).width()&&IconStrip.init()});768<=$(window).width()&&IconStrip.init();longestSoFar=-1;$(".homepage-category-icon-strip .category-card h4, .homepage-category-icon-strip .category-card .productCount").each(function(){var n=$(this).text();n.length>longestSoFar&&(longestSoFar=n.length,longestItem=this)});homeIconLength=$(longestItem).text().length;maxFitSymbolsCount=150<$(".homepage-category-icon-strip .category-card").width()?32:28;maxFitSymbolsCount<=homeIconLength&&$(".homepage-category-icon-strip").addClass("longName");sublongestSoFar=-1;$(".homepage-category-icon-strip .category-card .productCount .learnMore").each(function(){var n=$(this).text();n.length>sublongestSoFar&&(sublongestSoFar=n.length,sublongestItem=this)});subhomeIconLength=$(sublongestItem).text().length;15<=subhomeIconLength&&$(".homepage-category-icon-strip .category-card .productCount:contains('|')").each(function(){$(this).html($(this).html().split("|").join(""))}),function(n){n().ready(function(){var t={config:{featuresCarousel:'<div class="features-carousel product-cards"><\/div>'},init:function(n){t.initializeSlick(n)},initializeSlick:function(){n(".features-carousel-home").slick({dots:!0,speed:300,slidesToShow:4,slidesToScroll:1,infinite:!0,arrows:!0,prevArrow:'<span class="left features-carousel-home-arrow" style=""><span data-linktype="Features Carousel" data-linkdetail="Feature Tab Built-in remote admin tools" class="fort fort-sw-hero-arrow-left"><\/span><\/span>',nextArrow:'<span class="right features-carousel-home-arrow" style=""><span data-linktype="Features Carousel" data-linkdetail="Feature Tab Built-in remote admin tools" class="fort fort-sw-hero-arrow-right"><\/span><\/span>',responsive:[{breakpoint:1075,settings:{slidesToShow:3,slidesToScroll:1,infinite:!0,dots:!0}},{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1,infinite:!0,dots:!0}},{breakpoint:700,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0,dots:!0}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0}}]})}};n.prototype.slick&&0<n(".features-carousel-home").length&&t.init()})}(jQuery),function(n){function t(t){var i=n(t),f=i.parent().prev().prev(),r,u;f.css("position","absolute").css("right","-1000px");u=i.parent().prev();u.show();u.val(f.text());i.parent().next().show();i.hide();(r=n("a.install-help-btn")).on("click",function(n){n.preventDefault()});r.css("cursor","default");r.css("pointer-events","none");r.css("opacity","0.5")}function i(t){var i=n(t),u=i.prev().prev(),r,f;if(""===u.val())return!1;f=i.prev().prev().prev();f.css("position","static");u.hide();f.text(u.val());i.prev().find("a").show();i.hide();(r=n("a.install-help-btn")).off("click");r.css("cursor","pointer");r.css("pointer-events","auto");r.css("opacity","1")}n("a.install-help-selections-edit").on("click",function(n){n.preventDefault();t(n.currentTarget)});n("a.install-help-btn-save").on("click",function(n){n.preventDefault();i(n.currentTarget)})}(jQuery);$(document).ready(function(){function n(){$(".integration-card.thumbnail").each(function(){"null"!=$(this).find("img").attr("src")&&0!=$(this).find("img").length||($(this).find("img").hide(),$(this).wrapInner('<div style="display:table;height:100%;width:100%;" />'),$(this).find(".card-title").css({top:"0%","vertical-align":"middle",display:"table-cell"}))});$(".integration-card.thumbnail").hover(function(){""==$(this).find("a.overlay").attr("href")||"null"==$(this).find("a.overlay").attr("href")?($(this).css("cursor","default"),$(this).find(".overlay").hide()):$(this).find(".overlay").show()})}var t=$(".integration-card");t.promise().done(function(){setTimeout(function(){n()},600)});$("body").one("DOMSubtreeModified",".integration-cards-holder",function(){n()});$(".integration-index .filters-section input").change(function(){this.checked;n()});$("body, .form-control.filter-title").click(function(){t.promise().done(function(){setTimeout(function(){n()},10)})})});LB={el:{lightboxName:"targetModalLightBox",targetClose:".lightBoxClose"},init:function(){LB.bindUIActions()},bindUIActions:function(){$(LB.el.targetClose).click(LB.closeLightbox);var n=document.getElementById("targetModalLightBox");window.onclick=function(t){t.target==n&&LB.closeLightbox()}},closeLightbox:function(){$("#"+LB.el.lightboxName).hide();dynTrack.trackItem("lightBoxClose","")},clickLink:function(n,t){dynTrack.track(n,t)}};$(document).ready(function(){if($("#targetModalLightBox").length){LB.init();var n=$("#targetModalLightBox").attr("data-delay");n?n*=1e3:n=0;setTimeout(function(){$("#targetModalLightBox").show()},n)}});longFormAnchorList={elem:$(".long-form-anchor-list"),menuItems:$(".long-form-anchor-list .left-panel li"),tabs:$(".long-form-anchor-list .tab"),contentSections:$(".long-form-anchor-list .sectionPanel"),linkElements:[],posTop:void 0,height:void 0,links:void 0,autoScroll:!1,leftPanel:$(".long-form-anchor-list .left-panel"),hasSecondaryNav:function(){return 0<$(".secondary-nav-desktop").length},stick:function(){longFormAnchorList.elem.addClass("sticky");longFormAnchorList.hasSecondaryNav()&&longFormAnchorList.elem.addClass("secondary-nav-sticky");longFormAnchorList.elem.removeClass("bottom")},unstick:function(){longFormAnchorList.elem.removeClass("sticky");longFormAnchorList.hasSecondaryNav()&&longFormAnchorList.elem.removeClass("secondary-nav-sticky")},bottomStick:function(){longFormAnchorList.elem.addClass("sticky");longFormAnchorList.elem.addClass("bottom")},activateLink:function(n){longFormAnchorList.menuItems.removeClass("active");$(n).addClass("active")},clickHandler:function(){var t=$(this).find("a")[0],n;return longFormAnchorList.autoScroll=!0,n=$(t.hash).next().offset().top,longFormAnchorList.hasSecondaryNav()&&(n-=$(".secondary-nav-desktop").outerHeight(!0)),$("html,body").animate({scrollTop:n},500),!1},scrollHandler:function(){if(!1===longFormAnchorList.autoScroll){var n=$(window).scrollTop()+1,t=longFormAnchorList.hasSecondaryNav()?$(".secondary-nav-desktop").outerHeight(!0):0,i=longFormAnchorList.leftPanel.outerHeight()+t+30;longFormAnchorList.posTop=longFormAnchorList.elem&&longFormAnchorList.elem.offset()?longFormAnchorList.elem.offset().top:0;n<=longFormAnchorList.posTop-t?longFormAnchorList.unstick():i>=longFormAnchorList.posTop+longFormAnchorList.height-n?longFormAnchorList.bottomStick():n>=longFormAnchorList.posTop-t&&longFormAnchorList.stick();$(longFormAnchorList.linkElements).each(function(){this.top=this.elem.offset().top-t;this.bottom=this.elem.offset().top+this.elem.outerHeight();n>=this.top&&n<=this.bottom?this.link.parents("li").hasClass("active")||longFormAnchorList.activateLink(this.link.parents("li")):this.link.removeClass("active")})}else longFormAnchorList.autoScroll=!1},init:function(){if(longFormAnchorList.elem.length){longFormAnchorList.menuItems.first().toggleClass("active");longFormAnchorList.menuItems.click(longFormAnchorList.clickHandler);$(window).scroll(longFormAnchorList.scrollHandler);longFormAnchorList.links=longFormAnchorList.menuItems.find("a");longFormAnchorList.links.each(function(){var t=$(this),n=$(this.hash).next();n.length&&longFormAnchorList.linkElements.push({top:n.offset().top,bottom:n.offset().top+n.outerHeight(),link:t,elem:n})});var n=longFormAnchorList.linkElements[longFormAnchorList.linkElements.length-1].elem;n.outerHeight()<longFormAnchorList.leftPanel.outerHeight()&&n.height(longFormAnchorList.leftPanel.outerHeight()+30);longFormAnchorList.height=longFormAnchorList.elem.outerHeight();longFormAnchorList.scrollHandler()}},mobileInit:function(){longFormAnchorList.tabs.find("i").addClass("fa-plus");longFormAnchorList.tabs.click(function(){var i=longFormAnchorList.tabs.index($(this)),t=longFormAnchorList.contentSections.eq(i),n=!t.is(":visible");longFormAnchorList.tabs.removeClass("active").find("i").removeClass("fa-minus").addClass("fa-plus");$(this).toggleClass("active",n).find("i").toggleClass("fa-minus",n);longFormAnchorList.contentSections.slideUp();n&&t.slideDown()});longFormAnchorList.contentSections.hide()}};$(window).on("load",function(){window.innerWidth<768?longFormAnchorList.mobileInit():longFormAnchorList.init()}),function(n){window.Project={bindEvents:function(){},loadPlugins:function(){},initRegistrationClassInjection:function(){},initCarousels:function(){if(n(".fdi-Carousel .item").each(function(){var t=n(this).next();t.length||(t=n(this).siblings(":first"));t.children(":first-child").clone().appendTo(n(this));0<t.next().length?t.next().children(":first-child").clone().appendTo(n(this)):n(this).siblings(":first").children(":first-child").clone().appendTo(n(this))}),n.prototype.carousel){var t=n('[id*="-carousel"], [id$="-carousel"]');0<t.length&&(t.find(".item").removeClass("active"),t.each(function(t,i){n(i).find(".item").first().addClass("active")}),t.carousel());n(".carousel").carousel({interval:0})}},initSlickCarousels:function(){n.prototype.slick&&0<n(".customer-reviews-carousel").length&&n(".customer-reviews-carousel").slick({slidesToShow:3,prevArrow:n(".left.carousel-control.reviews"),nextArrow:n(".right.carousel-control.reviews"),responsive:[{breakpoint:1200,settings:{slidesToShow:3}},{breakpoint:996,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1,dots:!0,dotsClass:"nav-dots"}}]});n(".slick-track .slick-slide").length<3&&n(".slick-track").css("margin","0 auto")},destroyCustomerReviewsCarousel:function(){n.prototype.slick&&n(".customer-reviews-carousel").slick("unslick")},initLightbox:function(){if(n.prototype.magnificPopup){var t='<button class="close-icon mfp-close"><div class="mfp-close">Close<\/div> <img class="mfp-close" src="/images/close_icon_new.png"><\/button>';0<n(".popup-image").length&&n(".popup-image").magnificPopup({type:"image",gallery:{enabled:!0,arrowMarkup:'<a class="%dir% carousel-control modal hidden-xs"><img class="hidden-xs arrow mfp-prevent-close" src="/images/arrow.png" alt=""><img class="hidden-xs mfp-prevent-close" src="/images/circle.png" alt=""><\/a>'},image:{titleSrc:function(n){return n.el.attr("data-title")}},zoom:!1,closeMarkup:t});0<n(".popup-video-youtube").length&&n(".popup-video-youtube").magnificPopup({disableOn:function(){return!(n(".gatedResource").length&&!window.submitted)},type:"iframe",removalDelay:160,preloader:!1,fixedContentPos:!1,iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" frameborder="0" allowfullscreen><\/iframe><div class="mfp-title hidden-xs">Some caption<\/div><\/div>',patterns:{youtube:{index:"youtube.com/",id:function(n){var t=n.match(/[\\?\\&]v=([^\\?\\&]+)/);return t&&t[1]?t[1]:null},src:"//www.youtube.com/embed/%id%?autoplay=1"}}},callbacks:{markupParse:function(n,t,i){t.title=i.el.attr("data-title")}},closeMarkup:t});0<n(".popup-inline").length&&n(".popup-inline").magnificPopup({type:"inline",closeMarkup:t})}},init:function(){var n,t;Project.bindEvents();Project.loadPlugins();Project.initCarousels();Project.initSlickCarousels();Project.initLightbox();Project.initRegistrationClassInjection();n=document.createElement("script");n.id="iframe-demo";n.src="https://www.youtube.com/iframe_api";t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t)}};n(function(){Project.init()})}(jQuery);$modallightbox={};ModalLightbox={updateModal:function(n){$modallightbox.find(".overlay-title h4").html(n.title);void 0!==n.captionTitle?$modallightbox.find(".caption-content h3").html(n.captionTitle).show():$modallightbox.find(".caption-content h3").hide();void 0!==n.captionDescription?$modallightbox.find(".caption-content p").html(n.captionDescription).show():$modallightbox.find(".caption-content p").hide();void 0!==!n.captionTitle&&void 0!==!n.captionDescription&&$modallightbox.find(".caption-content").hide();$modallightbox.find(".static-content .inner").html(n.content)},applyModal:function(n){var t,i;768<$(window).width()&&($("#modal_content_"+n.id).length?(t=$("#mobile_video_"+n.id).html(),t=t.replace(/"/g,"&quot;"),$("#hidden_overlay_"+n.id).val(t),$("#mobile_video_"+n.id).html(""),$modallightbox.find(".video-content").html(n.content)):($modallightbox.find("#lightbox").html(n.content),i=$("#lightbox > .carousel-inner"),i.find(".item").removeClass("active"),i.find('.item > img[data-id="'+n.id+'"]').parent().addClass("active")),$modallightbox.fadeIn());$modallightbox.find(".overlay-title").on("click",function(t){ModalLightbox.resetModal(n.id);t.preventDefault()});$(".close").on("click",function(t){ModalLightbox.resetModal(n.id);t.preventDefault()});$(document).keyup(function(t){27===t.keyCode&&this.resetModal(n.id)})},buildModalCarousel:function(){var t=$(".modal-overlay-carousel").not(".video"),n='<div class="carousel-inner">';return t.each(function(t,i){var r,u=$(i).attr("data-title");$(i).attr("data-caption-title");$(i).attr("data-caption-description");$(i).attr("data-id");r=0===t?'<div class="item active">':'<div class="item">';r+='<div class="overlay-title">';r+="<h4>"+u+"<\/h4>";r+="<\/div>";r+='<img src="'+$(i).attr("data-fullsize-image")+'" alt="'+$(i).attr("data-caption-title")+'" class="img-responsive" data-id="'+$(i).attr("data-id")+'"/>';n+=r+="<\/div>"}),1<t.length&&(n+='<\/div><a class="left carousel-control modal hidden-xs" href="#lightbox" data-slide="prev"><img class="hidden-xs arrow" src="/images/arrow.png" alt=""><img class="hidden-xs" src="/images/circle.png" alt=""><\/a><a class="right carousel-control modal hidden-xs" href="#lightbox" data-slide="next"><img class="hidden-xs arrow" src="/images/arrow.png" alt=""><img class="hidden-xs" src="/images/circle.png" alt=""><\/a>'),n},buildVideoModal:function(n){var i=$("#modal_content_"+n.id).text(),t="";return t+="<div>",t+='<div class="overlay-title">',t+="<h4>"+n.title+"<\/h4>",t+="<\/div>",t+=i,t+"<\/div>"},enableScroll:function(){$("html, body").css("overflow","auto")},disableScroll:function(){$("hmtl, body").css("overflow","hidden")},initModal:function(n,t){t=void 0!==t?t:"static";var i={title:n.attr("data-title"),captionTitle:n.attr("data-caption-title"),captionDescription:n.attr("data-caption-description"),content:n.attr("data-fullsize-image"),type:t,id:n.attr("data-id")};i.content=$("#modal_content_"+i.id).length?ModalLightbox.buildVideoModal(i):ModalLightbox.buildModalCarousel();"gallery"===i.type&&$modallightbox.is(":visible")&&ModalLightbox.updateModal(i);n.on("click",function(n){768<$(window).width()?(ModalLightbox.applyModal(i),n.preventDefault()):$(window).width()<768&&void 0===i.id&&(ModalLightbox.applyModal(i),n.preventDefault());ModalLightbox.disableScroll()});$(n).find("img").each(function(){this.complete?$(this).addClass("loaded"):$(this).on("load",function(){$(this).addClass("loaded")})});$(n).find("img").length||$(n).addClass("no-image")},resetModal:function(n){$modallightbox.fadeOut(400,function(){$modallightbox.find("#lightbox").html("");$modallightbox.find(".video-content").html("");var t=$("#hidden_overlay_"+n).val();t&&(t=t.replace("&quot;",/"/g),$("#hidden_overlay_"+n).val(""),$("#mobile_video_"+n).html(t))});$(".modal-nav").fadeOut();ModalLightbox.enableScroll()}};$(document).ready(function(){function n(){$modallightbox=$(".full-screen-overlay-carousel");$(".modal-overlay-carousel").each(function(){ModalLightbox.initModal($(this))});$modallightbox.on("click",function(n){$(n.target).hasClass("full-screen-overlay-carousel")&&(ModalLightbox.resetModal(),n.preventDefault())})}n();$(window).resize(function(){n()})});$(function(){$(".homeProductModule .productCard").hover(function(){$(this).addClass("hvr-float")},function(){$(this).removeClass("hvr-float")});$(".homeProductModule .productCard div.title:eq(4)").addClass("orange");$(".homeProductModule .productCard div.title:eq(5)").addClass("green");$(".homeProductModule .productCard div.title:eq(6)").addClass("blue");$(".homeProductModule .productCard div.title:eq(7)").addClass("charcoal");var t=$(".why-panel-animated"),n=$(window);t.css("visibility","hidden");n.on("scroll resize",function(){var r=n.height(),i=n.scrollTop(),u=i+r;$.each(t,function(){var n=$(this),r=n.outerHeight(),t=n.offset().top+250;i<=t+r&&t<=u&&n.css("visibility","visible").addClass("animated fadeInLeftBig")})});n.trigger("scroll")});$(".navbar-nav > li.view-menu-toggle > a").each(function(){20<$(this).text().length&&$(".navbar-nav > li.view-menu-toggle > a").css({display:"block","border-left":"0"})});767<window.outerWidth&&($(".navbar-nav:not(#government-nav)>li").hover(function(){$(this).toggleClass("open").siblings().removeClass("open")}),$(".navbar-nav :not(#government-nav) > li.menu-toggle > a").removeAttr("data-toggle"));$(".navbar-brandSites .menu-toggle ul.dropdown-menu.mega-menu").parent(".navbar-nav.brandSites > li").addClass("arrow");prevWidth=window.innerWidth;isClickEventsAttached=!1;$(document).ready(function(){initClickEvents()});$(window).resize(function(){1200<=prevWidth&&window.innerWidth<1200&&!isClickEventsAttached&&(initClickEvents(),isClickEventsAttached=!0)});NewsAndEvents={toggleEvents:!0,toggleNews:!0,toggleNewsArchive:!0,newsHeaderToggle:function(){$(".news-header .news-archive").on("click",function(n){n.preventDefault();$(".government-news-events.archive.hide").removeClass("hide");$(this).parents(".government-news-events.latest").addClass("hide")});$(".news-header .news-latest").on("click",function(n){n.preventDefault();$(this).parents(".government-news-events.archive").addClass("hide");$(".government-news-events.latest").removeClass("hide")})},hideItems:function(n,t){null!=t&&""!==t&&(null==n||isNaN(parseInt(n,10))||$(t).each(function(t){n-1<t&&$(this).hide()}))},clickFunction:function(n){var i=n.data.itemSelector,r=n.data.moreText,u=n.data.lessText,t=n.data.flagName,e=n.data.itemsToShow,f=n.data.maxItemNumber;i&&r&&u&&t&&(n.preventDefault(),NewsAndEvents[t]?null!==f&&"0"!==f&&($(i).show(),$(this).text(u)):(NewsAndEvents.hideItems(e,i),$(this).text(r)),NewsAndEvents[t]=!NewsAndEvents[t])},init:function(){var n=$(".government-news-events.latest .news .show-more-events").attr("data-num-show"),t=$(".archive .news .show-more-events").attr("data-num-show"),i=$(".archive .news .show-more-events").attr("data-max-show"),r=$(".government-news-events .events .show-more-events").attr("data-num-show");"0"===i&&$(".archive .news .show-more-events").hide();var u=$(".government-news-events .news .show-more-events").attr("data-show-more-text"),f=$(".government-news-events .news .show-more-events").attr("data-show-less-text"),e=$(".government-news-events .events .show-more-events").attr("data-show-more-text"),o=$(".government-news-events .events .show-more-events").attr("data-show-less-text");NewsAndEvents.newsHeaderToggle();NewsAndEvents.hideItems(n,".latest .news-item");NewsAndEvents.hideItems(r,".event-item");NewsAndEvents.hideItems(t,".archive .news-item");$(".government-news-events.archive .news .show-more-events").on("click",{maxItemNumber:i,itemSelector:".archive .news-item",moreText:u,lessText:f,flagName:"toggleNewsArchive",itemsToShow:t},NewsAndEvents.clickFunction);$(".government-news-events.latest .news .show-more-events").on("click",{itemSelector:".latest .news-item",moreText:u,lessText:f,flagName:"toggleNews",itemsToShow:n},NewsAndEvents.clickFunction);$(".government-news-events .events .show-more-events").on("click",{itemSelector:".event-item",moreText:e,lessText:o,flagName:"toggleEvents",itemsToShow:r},NewsAndEvents.clickFunction)}};NewsAndEvents.init();$(document).ready(function(){if($(".paid-support-card").length){var i=$(".paid-support-card").find(".tile"),n=0,t=0;$(i).each(function(){$(this).height()>n&&(n=$(this).height());var i=$(this).find(".links-section").height();t<i&&(t=i)});n+=17+t;$(i).each(function(){$(this).height(n);$(this).find(".links-section").height(t)})}}),function(n){null!=window.dataLayer&&"download"===window.dataLayer.page.type&&n.ajax({url:"/solarapi/postaffiliate/isvalid",type:"GET",dataType:"json",async:!0,success:function(t){t&&n("#pap_x2s6df8d").on("load",function(){var n=getCookie("dluid");if(n)try{PostAffTracker.createAction("Download").setOrderID(n);PostAffTracker.register();console.log("PostAffiliate: Action tracking triggered.")}catch(n){trackJs.track(n)}else console.log("PostAffiliate: DLUID cookie is not present. Action tracking not triggered.")})}})}(jQuery);$(document).ready(function(){function n(n,t){n.textContent=t?n.textContent.split("||")[1]:n.textContent.split("||")[0]}if(null!==document.getElementById("postalytics-identifier")){var t=document.querySelector(".postalytics_personalization h1");null!==t&&function(t){var r,u=(r=new RegExp("_bn_d=([^;]+)"),null!=new RegExp("_bn_d=([^&#]*)","i").exec(window.location.href)||null!=r.exec(document.cookie)),i;if(0<=t.textContent.indexOf("||"))if(null===t.firstElementChild||void 0===t.firstElementChild)n(t,u);else for(i=t.firstElementChild;null!==i;i=i.nextElementSibling)null!=i&&0<=i.textContent.indexOf("||")&&n(i,u);t.style.visibility="visible"}(t)}});$(document).ready(function(){if($(".post-registration-gac").length){$(".post-registration-gac .loader").show();var n=getCookie("GACRequestID");setTimeout(function(){$.ajax({url:"/solarapi/gac/apiresult",type:"POST",dataType:"json",data:{requestId:n},success:function(n){null==n||""===n?$(".post-registration-gac #error").removeClass("hide"):1===n.Status?n.Error&&n.Error.length?n.Error.forEach(function(n){"email"===n.FieldName.toLowerCase()?$(".post-registration-gac #email-validation").removeClass("hide"):"company"===n.FieldName.toLowerCase()||"company_name"===n.FieldName.toLowerCase()?$(".post-registration-gac #company-validation").removeClass("hide"):$(".post-registration-gac #error").removeClass("hide")}):$(".post-registration-gac #error").removeClass("hide"):($(".post-registration-gac #success").removeClass("hide"),$(".post-registration-gac #token-section").removeClass("hide"),$(".post-registration-gac #copy-button").removeClass("hide"),$(".post-registration-gac #token-section #token").append(n.Token),n.GACType&&"samanage"===n.GACType&&n.Token&&n.Token.startsWith("http")&&(window.location.href=n.Token));$(".post-registration-gac .loader").hide()},error:function(){$(".post-registration-gac #error").removeClass("hide");$(".post-registration-gac .loader").hide()}})},1e4)}$(".post-registration-gac #copy-button").click(function(){var t=$(".post-registration-gac #token-section #token"),n=document.createElement("textarea");n.value=t.text();document.body.appendChild(n);n.select();document.execCommand("copy");n.remove()})});window.pricingCalculator={};window.pricingCalculator.initLightBox=function(n){if(n){var i=$(n).find(".tool-tip-icon"),t=$(n).find(".lightbox-wrapper"),r=$(n).find(".lightbox"),u=$(n).find(".lightbox-close");if(0<t.length)return i.on("click",function(){t.show()}),u.on("click",function(){t.hide()}),t.on("click",function(){t.hide()}),r.on("click",function(n){n.stopPropagation()}),{tooltip:i,lightbox:r,lightBoxClose:u,lightBoxWrapper:t}}};window.pricingCalculator.numberWithCommas=function(n){return isNaN(n)?"0":n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")};window.pricingCalculator.simple={};window.pricingCalculator.simple.init=function(n){var b=!1,t,g,r,o,i=[],u=[],s,h,c,l,f,y=!1,p=!1,a,v,nt=function(n){var i=!1;return n&&0<(t=$(n).find("input[name=numberOfElements]")).length&&(i=!0),i},tt=function(n){if(n){var t=$(n).find(".instructions-text");0<t.length&&(r=t)}},it=function(n){var r=!1,i,t;return n&&(i=$(n).find("input[name=productSKUs]"),0<i.length&&(t=$.parseJSON(i.val()),t&&Array.isArray(t)&&(u=t,r=!0))),r},rt=function(n){var t=!1;return n&&(l=$(n).find("input[name=formula]").val())&&""!=l&&(t=!0),t},ut=function(n){var t=!1;return n&&(c=$(n).find("input[name=countryCode]").val())&&""!=c&&(t=!0),t},ft=function(n){var t=!1;return n&&("true"===$(n).find("input[name=isBuynow]").val()?(y=!0,(s=$(n).find("input[name=buyNowBaseURL]").val())&&""!=s&&(t=!0)):t=!0),t},et=function(n){var t=!1;return n&&(f=$(n).find("input[name=productLicenseType]").val())&&""!=f&&(t=!0),t},ot=function(n){var t=!1;return n&&(a=$(n).find("input[name=currencySymbol]").val())&&""!=a&&(t=!0),t},st=function(n){var t=!1;return n&&("true"===$(n).find("input[name=useSKUDeeplinking]").val()?(p=!0,h=$(n).find("input[name=onlineQuoteBaseURL]").val(),v=$(n).find("input[name=productCode]").val(),h&&""!=h&&v&&null!=v&&(t=!0)):t=!0),t},ht=function(n){n&&(nt(n)&&it(n)&&rt(n)&&ut(n)&&ft(n)&&et(n)&&ot(n)&&vt(n)&&yt(n)&&st(n)?(window.pricingCalculator.initLightBox(n),tt(n),b=!0,t.on("keyup",function(){w($(this).val());1<i.length&&d(n)}),$(window).resize(function(){1<i.length&&d(n)})):t&&0<t.length&&t.attr("disabled","disabled"))},k=function(value,skuType){var result=null,calculatedResultValue,specificSKUs=[],j,inputValue,preparedFormula,bestSKU,i;if(void 0!==value&&!isNaN(skuType))for(j=0;j<u.length;j++)if(u[j].SKUType===skuType){specificSKUs=u[j].SKUs;break}if(0==specificSKUs.length)return null;if(value&&/^-?[0-9]+$/.test(value)&&(inputValue=parseInt(value,10),0<inputValue)){preparedFormula=l.replace("{#input#}",inputValue);try{if(calculatedResultValue=eval(preparedFormula),!isNaN(calculatedResultValue)){for(bestSKU=specificSKUs[0],i=1;i<specificSKUs.length;i++)(specificSKUs[i].MaxUnits>=calculatedResultValue&&(bestSKU.MaxUnits>specificSKUs[i].MaxUnits||bestSKU.MaxUnits<calculatedResultValue)||specificSKUs[i].MaxUnits<calculatedResultValue&&bestSKU.MaxUnits<specificSKUs[i].MaxUnits)&&(bestSKU=specificSKUs[i]);result={sku:bestSKU,quantity:"Tier"===f||!0===bestSKU.IsUnlimitedUsersLicense?1:inputValue}}}catch(e){console.log("exсeption"+e)}}return result},ct=function(n){return n&&Number.isInteger(n.quantity)&&0<n.quantity&&n.sku&&n.sku.SKU?h+"?productcode="+v+"&sku="+n.sku.SKU+"&qty="+n.quantity:""},w=function(n){for(var t=0;t<i.length;t++)lt(i[t],n)},lt=function(n,t){var i=k(t,n.skuType),u;null!==i?(u=a+window.pricingCalculator.numberWithCommas(i.quantity*i.sku.IntPrice),n.priceElement.text(u),"Tier"===f?n.skuNameElement.text(i.sku.ShortName):n.skuNameElement.text(i.sku.Description),o.show(),r&&r.hide(),!0===y&&(n.sectionButtons.attr("href",at(i)),n.sectionButtons.removeClass("disabled")),!0===p&&n.getQuoteLinks.attr("href",ct(i))):(o.hide(),r&&r.show(),n.priceElement.text(""),n.skuNameElement.text(""),"true"===y&&(n.sectionButtons.attr("href",""),n.sectionButtons.addClass("disabled")),!0===p&&n.getQuoteLinks.attr("href",""))},at=function(n){return n&&Number.isInteger(n.quantity)&&0<n.quantity&&n.sku&&n.sku.SKU?s+"?country="+c+"&sku="+n.sku.SKU+"&qty="+n.quantity:""},vt=function(n){var t=!1;return n&&0<(o=$(n).find(".calculated-area")).length&&(t=!0),t},yt=function(n){var u=!1,r,t;if(n){for(r=$(n).find(".result-section"),t=0;t<r.length;t++){var f=$(r[t]).attr("data-sku-type"),e=$(r[t]).find(".price"),o=$(r[t]).find(".recommended-sku-name"),s=$(r[t]).find(".instructions-text"),h=$(r[t]).find(".calcResultBtn"),c=$(r[t]).find(".get-quote-link");i.push({skuType:parseInt(f,10),priceElement:e,skuNameElement:o,instructionElement:s,sectionButtons:h,getQuoteLinks:c})}0<i.length&&(u=!0)}return u},pt=function(){w()},e=function(n){if(n&&0<n.length){var i=614<$(window).outerWidth(),t=Math.max.apply(Math,n.map(function(){return $(this).outerHeight()}).get());t&&i?$(n).css("height",t):$(n).css("height","auto")}},d=function(n){e($(n).find(".result-section-card .header-row"));e($(n).find(".result-section-card .recommended-sku-row"));e($(n).find(".result-section-card .license-decription-row"));e($(n).find(".result-section-card .price-row"));e($(n).find(".result-section-card .underbutton-link--row"))};this.IsInited=function(){return b};this.getElement=function(){return t};this.getToolTip=function(){return g};this.getResultSection=function(){return o};this.getLightBox=function(){return _lightBoxSectionElement};this.getSKU=function(){return u};this.getBuyNow=function(){return s};this.getCountryCode=function(){return c};this.getFormula=function(){return l};this.getLicenseType=function(){return f};this.getCurrencySymbol=function(){return a};this.getResultSections=function(){return i};this.Calc=function(){return k()};this.Refrresh=function(){w($(t).val())};ht(n)};window.pricingCalculator.multiple={};window.pricingCalculator.multiple.calculate=function(value,formula,skus,license){var inputValue,preparedFormula,calculatedResultValue,bestSKU,i;if(value&&formula&&skus&&license&&/^-?[0-9]+$/.test(value)&&(inputValue=parseInt(value,10),0<inputValue)){preparedFormula=formula.replace("{#input#}",inputValue);try{if(calculatedResultValue=eval(preparedFormula),!isNaN(calculatedResultValue)){for(bestSKU=skus[0],i=1;i<skus.length;i++)(skus[i].MaxUnits>=calculatedResultValue&&(bestSKU.MaxUnits>skus[i].MaxUnits||bestSKU.MaxUnits<calculatedResultValue)||skus[i].MaxUnits<calculatedResultValue&&bestSKU.MaxUnits<skus[i].MaxUnits)&&(bestSKU=skus[i]);return{sku:bestSKU,quantity:"tier"===license.toString().toLowerCase()||!0===bestSKU.IsUnlimitedUsersLicense?1:inputValue}}}catch(e){console.error(e)}}};window.pricingCalculator.multiple.init=function(n){var t={initialized:!1,readConfiguration:function(n){if(n&&0<n.val().length)try{return JSON.parse(n.val())}catch(n){return console.error("No cards configuration found: "+n),[]}return console.error("No cards configuration found."),[]},updateCard:function(n,t,i){var r,u;n&&t&&(r=$('.calculated-area__cards .calculated-area__product__card[data-product-id="'+n.id+'"]'),r&&(u=i+window.pricingCalculator.numberWithCommas(t.quantity*t.sku.IntPrice),$(r).find(".price").first().text(u)))},toggleCalculatedArea:function(n,t,i){t&&(t.toggle(n),i.toggle(!n))},valueChanged:function(n){var t=$(this).val();t?n.data.configuration&&n.data.configuration.cards&&0<n.data.configuration.cards.length&&(n.data.configuration.cards.forEach(function(i){var r=window.pricingCalculator.multiple.calculate(t,$(n.data.formula).val(),i.skus,i.license);n.data.calculator.updateCard(i,r,n.data.currency)}),n.data.calculator.toggleCalculatedArea(!0,n.data.calculatedArea,n.data.instructions)):n.data.calculator.toggleCalculatedArea(!1,n.data.calculatedArea,n.data.instructions)},init:function(i){var u,r,f;i&&(window.pricingCalculator.initLightBox(i),u=t.readConfiguration($(i).find("input[name=cardsConfigurations]").first()),t.currency=$(i).find('input[name="currencySymbol"]').first().val(),t.calculatedArea=$(n).find(".row.calculated-area__cards"),t.instructions=$(n).find(".instructions-text"),r=$(i).find("input[name=numberOfElements]").first(),f=$(i).find("input[name=formula]").first(),1===r.length&&(r.on("keyup",{formula:f,configuration:u,calculator:t,currency:t.currency,calculatedArea:t.calculatedArea,instructions:t.instructions},t.valueChanged),t.initialized=!0))}};t.init(n)};$(document).ready(function(){$(".pricing-calculator--simple").each(function(n,t){window.pricingCalculator.simple.init(t)});$(".pricing-calculator--multiple").each(function(n,t){window.pricingCalculator.multiple.init(t)})});pricingComponent={switchToMobileWidthThreshold:1200,sectionsForSectionsToBeResized:[".title",".price-container",".decription-container",".top-bullets",".includes-container",".bottom-features-container",".cta-button-container"],keyFeatureSectionSelector:".price-component .bottom-features-container",resizeRow:function(n){if(n){var t=0,r=$(window).outerWidth()>pricingComponent.switchToMobileWidthThreshold,i=$(n);i&&((t=Math.max.apply(Math,i.map(function(){return $(this).outerHeight()}).get()))&&r?$(n).css("height",t):$(n).css("height","auto"))}},resizePricingPlanRows:function(){$.each(pricingComponent.sectionsForSectionsToBeResized,function(n,t){pricingComponent.resizeRow(t)})},resizeKeyFeaturesElements:function(){var t=$(pricingComponent.keyFeatureSectionSelector),i=0,n;if(t&&0<t.length)for($.each(t,function(n,t){var r=$(t).find(".bottom-feature");r.length>i&&(i=r.length)}),n=1;n<=i;n++)pricingComponent.resizeRow(".price-component .bottom-features-container .bottom-feature:nth-child("+n+")")},resizePricingPlans:function(){pricingComponent.resizePricingPlanRows();pricingComponent.resizeKeyFeaturesElements()}};$(document).ready(function(){1==$(".price-component").length&&(pricingComponent.resizePricingPlans(),$(window).resize(function(){pricingComponent.resizePricingPlans()}))});ComparePlans={plansTitlesOffset:0};ComparePlans.initTooltip=function(){0<$('.compare-features [data-toggle="tooltip"]').length&&($('.compare-features [data-toggle="tooltip"]').tooltip({trigger:"hover",placement:function(){return $(window).width()<768?"bottom":"right"}}),$("body").on("click",function(n){void 0!==$(n.target).data("toggle")&&"tooltip"===$(n.target).data("toggle")||ComparePlans.hideTooltips()}))};ComparePlans.hideTooltips=function(){0<$('.compare-features [data-toggle="tooltip"]').length&&$('.compare-features [data-toggle="tooltip"]').tooltip("hide")};ComparePlans.setSameRowHeight=function(){var t=$(window).width()<768,n=$(".feature");n&&$.each(n,function(n,i){if(i)if(t)$(i).css("height","auto");else{var r=Math.round($(i).children(".title").height()+1);$(i).css("height",r)}})};ComparePlans.toggleFeatures=function(){if($(".compare-features")){$(".compare-features").slideToggle();var n=$(".toggle-features span");2===n.length&&$.each(n,function(n,t){0<t.classList.length&&t.classList.contains("hide")?$(t).removeClass("hide"):$(t).addClass("hide")});ComparePlans.hideTooltips();$(".plans-titles").removeClass("fixed-top")}};ComparePlans.alignTileHeight=function(){var n=0,t=0;$(".wrapper-dynamic-content").height("auto");$(".tile .title").height("auto");768<=$(window).width()&&($(".wrapper-dynamic-content").each(function(){n=n>$(this).height()?n:$(this).height()}),$(".wrapper-dynamic-content").each(function(){$(this).height(n)}),$(".tile .title").each(function(){t=t>$(this).height()?t:$(this).height()}),$(".tile .title").each(function(){$(this).height(t)}))};ComparePlans.updatePricings=function(n){var t=pricingDetails.currencyHtml;$(".tile").each(function(){var i=this.id,e=$(this).find(".regular-price"),o=$(this).find(".promo-text"),s=$(this).find(".discount-price"),h=$(this).find(".subprice-text"),r=pricingDetails[i][n].Standard,u=pricingDetails[i][n].Discount,c=pricingDetails[i][n].RegularPriceText,l=pricingDetails[i][n].PromoText,a=pricingDetails[i][n].SubpriceText,f;0==u&&(u=r,r=0);f=c+" "+(r?t+r:"");e.html(f);o.text(l);s.text(u);h.text(a)});ComparePlans.alignTileHeight()};ComparePlans.setState=function(){$("#monthly-plan-type").is(":checked")?($(".monthly-label").addClass("bold"),$(".annual-label").removeClass("bold"),$(".toggle-wrapper .license-switch").prop("checked",!0),ComparePlans.updatePricings("Monthly")):($(".annual-label").addClass("bold"),$(".monthly-label").removeClass("bold"),$(".toggle-wrapper .license-switch").prop("checked",!1),ComparePlans.updatePricings("Annual"))};$(document).ready(function(){$(".compare-plans-wrapper").is(":visible")&&(ComparePlans.setSameRowHeight(),ComparePlans.initTooltip(),ComparePlans.alignTileHeight(),ComparePlans.setState(),$(".toggle-wrapper .license-switch").click(function(){console.log($(this));!0===$(this).is(":checked")?(ComparePlans.updatePricings("Monthly"),$(".monthly-label").addClass("bold"),$(".annual-label").removeClass("bold"),$(".toggle-wrapper .license-switch").prop("checked",!0)):(ComparePlans.updatePricings("Annual"),$(".annual-label").addClass("bold"),$(".monthly-label").removeClass("bold"),$(".toggle-wrapper .license-switch").prop("checked",!1))}),$("#compare-plans .toggle-features a").click(function(){ComparePlans.toggleFeatures();ComparePlans.setSameRowHeight()}),$(window).resize(function(){ComparePlans.setSameRowHeight();ComparePlans.alignTileHeight();ComparePlans.hideTooltips()}))});0<$("#problemModal").length&&992<=window.screen.width&&($(".adobeHelpBox").hide(),sessionStorage.timeOut||$(document).ready(function(){$(document).on("idle.idleTimer",function(){$("#problemModal").show();$(".adobeHelpBox").hide()});var n=$("#problemModal").data("idle-time");$(document).idleTimer(n);sessionStorage.timeOut=1}),$(productProblem),$("#problemModal").hide(),$("#problemModal").attr("style",""),$(".adobeHelpBox").show(),$(document).delegate(".openModal","click",function(n){n.preventDefault();$("#problemModal").toggle();$(".adobeHelpBox").hide()}),$(document).delegate(".helpBoxClose","click",function(){var n=$("#problemModal").attr("data-tracking-group");dynTrack.multiTrack(n,"Close Slider","");$(".adobeHelpBox").hide();$(document).idleTimer("destroy")}));$(document).ready(function(){if($("#__p2p-slider__")){var n=$("input[data-group]");n.each(function(t){var i=$(n[t]),r="#"+i.attr("data-link-id"),f=i.attr("data-group"),e=i.attr("data-id"),u=i.val();$(r).attr("href",u);$(r).click(function(n){n.preventDefault();dynTrack.multiTrack(f,e,u)})})}});$(document).ready(function(){var n=function(){var n=$(window).width();n<=767&&t.each(function(){var i=$(this),r=i.attr("data-media-width"),u=i.attr("data-media-height"),t=0;t=315<(t=0<r&&0<u?u/r*(n-30):.5625*(n-30))?315:t;i.css("min-height",t)})},t=$(".producthero--media");0<t.length&&(n(),$(window).on("resize",function(){n()}))}),function(n){function i(t){var e="2px solid #ececec",u=3,f,i,r;if(n(window).width()<1200&&996<=n(window).width()?u=2:n(window).width()<996&&768<n(window).width()&&(u=1),n(window).width()<769?t.find(".free-tool-card").css("border","none").css("border-right","border").css("border-bottom",e):t.find(".free-tool-card").css("border","none").css("border-right",e),f=".free-tool-card.product-card-defaultvisible","true"===t.closest(".container").find(".product-card-subtitle-expandible").attr("data-expanded")&&(f=".free-tool-card"),t.find(".free-tool-card.product-card-spacer").remove(),i=t.find(f),i.length%u!=0)for(var s=u-i.length%u,h=i.first().clone().empty().addClass("product-card-spacer").css("border-right","none"),o=0;o<s;o++)t.append(h.clone());for(i=t.find(f),r=0;r<i.length;r++)u<r+1&&(n(window).width()<769?n(i[r]).css("border-top","none"):n(i[r]).css("border-top",e)),(r+1)%u==0&&n(i[r]).css("border-right","none")}n(window).resize(function(){768<=n(window).width()&&(n(".product-cards").each(function(){0<n(this).find(".free-tool-card").length&&i(n(this))}),n(".product-cards").each(function(){var r=n(this),i=0,t=r.find(".primary-card .feature .card-description");0===t.length?t=r.find(".free-tool-card .free-tool-product-name, .free-tool-card .free-tool-use-case"):t.closest(".primary-card").css("height","auto");t.css("height","auto");t.each(function(){var t=n(this).outerHeight(),r=n(this).find(".card-price");r.length&&(t+=r.outerHeight());i<t&&(i=t)});t.css("height",i+"px")}))}).resize();n(function(){n(".product-card-subtitle-expandible").on("click",function(t){var u;t.preventDefault();var f=n(this).closest(".container").find(".product-card-defaulthidden"),e=n(this).attr("data-expanded"),r=n(this).text();r=r.substring(0,r.length-2);u=n(this).closest(".container");"true"===e?(n(this).text(r+" +"),n(this).attr("data-expanded",!1),f.fadeOut(300),u.get(0).scrollIntoView(!0)):(n(this).text(r+" -"),n(this).attr("data-expanded",!0),f.fadeIn(300));0<u.find(".product-cards").first().find(".free-tool-card").length&&i(n(this).closest(".container").find(".product-cards").first())})});var t=0;n(".product-cards .bundle-card .feature").each(function(){var i=n(this).height();t<i&&(t=i)});n(".product-cards .bundle-card .feature").css({height:t+35+"px"});n(document).ready(function(){n(".product-cards .card-email-link").each(function(){178<n(this).width()&&n(".primary-card .card-learn-more").css({"border-left":"0","padding-top":"0"})});n(".product-cards .free-tool-email-link").each(function(){178<n(this).width()&&n(".free-tool-learn-more").addClass("longName")});n(".product-cards .card-learn-more").each(function(){162<n(this).width()&&(n(this).css({"border-left":"0","margin-left":"-10px"}),n(".product-cards .card-email-link").css({"margin-right":"0"}))});n(".producthero--standardtext").text(function(n,t){return t.substr(0,250)});n(".remove-side-padding div:nth-of-type(1) > .learn-more-container:eq(0)").css("margin-top","46px")})}(jQuery);$(document).ready(function(){$("#1.learnMore").click(function(){$("#1.seeMoreFeatures").slideToggle();$("#1.seeFeatures").toggleClass("hide");$("#1.lessFeatures").toggleClass("hide");$("#1.btn.learnMore").toggleClass("hide")});$("#2.learnMore").click(function(){$("#2.seeMoreFeatures").slideToggle();$("#2.seeFeatures").toggleClass("hide");$("#2.lessFeatures").toggleClass("hide");$("#2.btn.learnMore").toggleClass("hide")})});$(document).ready(function(){$(".promo-banner.Session").length&&$(".promo-banner.Session .promo-banner-close-link").click(function(n){n.preventDefault();var t=$(this).closest(".promo-banner").attr("id");document.cookie="promoBannerId"+t+"=closed; path=/";$(this).closest(".promo-banner").hide()});$(".promo-banner.PageRefresh").length&&$(".promo-banner.PageRefresh .promo-banner-close-link").click(function(n){n.preventDefault();$(this).closest(".promo-banner").hide()})});$(window).on("load",function(){$(".sg-question-number").length&&""===$(".sg-question-number").text()&&($("#quizContent").hide(),$("#quizReg").show())});mobileResolution=767;$(window).on("resize",function(){var n=$(".upsell-product-module").find(".image-wrapper"),t,i;n&&1===n.length&&(window.innerWidth<mobileResolution?(t=$(".upsell-product-module").find(".subhead"),t&&1===t.length&&$(n).insertAfter($(t))):(i=$(".upsell-product-module").find(".cta"),i&&1===i.length&&$(i).prepend(n)))}).resize();$(document).ready(function(){var n="",t="";[{path:"/resources/case-study/",resourceType:"ResourceCaseStudy",cssClass:"resource-link"},{path:"/resources/datasheet/",resourceType:"ResourceDatasheet",cssClass:"resource-link"},{path:"/resources/infographic/",resourceType:"ResourceInfographic",cssClass:"resource-link"},{path:"/resources/tech-tip/",resourceType:"ResourceTechTip",cssClass:"resource-link"},{path:"/resources/vpat/",resourceType:"ResourceVpat",cssClass:"resource-link"},{path:"/resources/video/",resourceType:"ResourceVideo",cssClass:"popup-video"},{path:"/resources/webcast/",resourceType:"ResourceWebcast",cssClass:"popup-video"},{path:"/resources/whitepaper/",resourceType:"ResourceWhitepaper",cssClass:"resource-link"},{path:"/resources/ebook/",resourceType:"ResourceEbook",cssClass:"resource-link"}].forEach(function(i){-1<window.location.href.indexOf(i.path)&&(n=i.cssClass,t=i.resourceType)});""!==n&&$("a."+n).click(function(){var r,u,o,f,e,n,i;try{if(r=getCookie("ResourceInformation"),u=new Map,r)for(o=r.split("&"),f=0;f<o.length;f++)e=o[f].split("="),2===e.length&&u.set(e[0],e[1]);if(n=$("#resourceProductName").val(),""===n||"undefined"===n)return;n=n.replace("&","and");u.set(t,n);i="";u.forEach(function(n,t){""!==i&&(i+="&");i+=t+"="+n});setCookie("ResourceInformation",i)}catch(r){console.error("Resource",r.message)}})});isReviewsLandingPage=-1!==window.location.pathname.indexOf("/reviews/");experienceEditorPage=-1!==window.location.search.indexOf("sc_mode=edit");$(".filterReviews a").on("click",function(){return!1});$('.filterReviews input[type="checkbox"]').on("click",function(){var n=$(this).attr("data-sourceFilter");$(this).hasClass("selected")?($(this).removeClass("selected"),hideSourceReviews(n),removeQueryStringFilter(n)):($(this).addClass("selected"),selectedReviewItems(n),$(".review-item").not(".selectedReview").hide(),$(".review-item .selectedReview").show(),addQueryStringFilter(n))});isReviewsLandingPage&&!experienceEditorPage&&$(window).on("beforeunload",clearQueryStringFilter());$("a.removeFilters").on("click",function(n){n.preventDefault();$(".review-item").show();$('.filterReviews input[type="checkbox"]').prop("checked",!1);clearQueryStringFilter()});$(".sortReviews li a").on("click",function(n){n.preventDefault();"Top Rated"===$(this).data("sort")&&sortTopRatedReviews($(".review-item"));"Most Recent"===$(this).data("sort")&&sortByDate($(".review-item"))});$("select.reviewFilter").change(function(){var n=$(this).find(":selected").data("sourcefilter");$(".review-item").removeClass("selectedReview");$(this).addClass("selected");selectedReviewItems(n);$(".review-item").not(".selectedReview").hide();$(".review-item .selectedReview").show();void 0===n&&$(".review-item").show()});$("select.sortReviews").change(function(){"Top Rated"===$(this).find(":selected").data("sort")&&sortTopRatedReviews($(".review-item"));"Most Recent"===$(this).find(":selected").data("sort")&&sortByDate($(".review-item"))});SaasCalculatorResultClass=function(n){var t=[],i=n,r=$(i).find(".pdf-button a"),o=$(i).data("component-id"),u=$(i).find(".saas-product-licenses ul"),f=$(i).find(".total-yearly .price .price-value"),e=$(i).find(".total-yearly .price .currency-symbol").text(),s=$(i).find(".total-yearly .price-suffix").text(),h=function(){var i,n,c,h,l;for($(u).find("li").remove(),c=0,h=0;h<t.length;h++)c+=t[h].SKUYearlyPrice,l=(i=t[h],void 0,n=$('<li><li><div class="row product-info yellow-border"><div class="col-md-4 product-name"><\/div><div class="col-md-5 license-description"><\/div><div class="col-md-3 product-pricing"><div class="row"><div class="col-sm-12"><div class="price"><span class="currency-symbol"><\/span><span class="price-value"><\/span><\/div><span class="price-suffix"><\/span><\/div><\/div><div class="row"><div class="col-sm-12"><div class="bill-type"><\/div><\/div><\/div><\/div><\/div><\/li>'),$(n).find(".product-info").addClass(i.ColorClass),$(n).find(".product-name").text(i.CardTitle),$(n).find(".license-description").text(i.SKUDescription),$(n).find(".currency-symbol").text(i.CurrencyValue),$(n).find(".price-value").text(i.SKUYearlyPrice),$(n).find(".price-suffix").text(s),$(n).find(".bill-type").text(i.PriceDescription),n),$(u).append(l);c;$(f).text(c),function(){if(0<t.length){for(var i="PricingCalcGuid="+o+"&TotalPrice="+e+$(f).text()+"&PricingDetails=",n=0;n<t.length;n++)0<n&&(i+=encodeURIComponent("]")),i+=encodeURIComponent(t[n].CardTitle+"+"+t[n].SKUDescription+"+"+e+t[n].SKUYearlyPrice).replace(/%20/g,"+");r.attr("href","/solarapi/pdf/PriricingCalculatorPDF?"+i)}else $(r).attr("href","")}()};this.UpdateLicenses=function(n,i){!function(n,i){for(var u,f=[],r=0;r<t.length;r++)t[r].ComponentId!==n&&f.push(t[r]);for(t=f,u=0;u<i.length;u++)t.push(i[u])}(n,i);h()}};SaasCalculatorClass=function(n){var r=$(n),s=$(r).data("currency-symbol"),l=$(r).data("per-year-text"),h=$(r).data("component-id"),f=$(r).find(".results-table"),t=[],u=[],c=[".card-header-section",".card-description"],a=function(n){if(n){var t=0,i=991<$(window).outerWidth();(t=Math.max.apply(Math,n.map(function(){return $(this).outerHeight()}).get()))&&i?$(n).css("height",t):$(n).css("height","auto")}},e=function(){for(i=0;i<c.length;i++){var n=$(r).find(" .cards .card "+c[i]);0<n.length&&a(n)}},o=function(){!function(){var n;for(u=[],i=0;i<t.length;i++)if(!$(t[i]).hasClass("disabled")&&(n=$(t[i]).find(".pricing-plans :selected"),1==n.length)){var r=$(n).data("plan-sku-year-price"),f=$(n).data("plan-sku-month-price"),e={ComponentId:h,CardId:$(t[i]).data("card-id"),CardTitle:$(t[i]).find(".card-header").text(),SKUId:$(n).data("plan-sku-id"),SKUDescription:$(n).text(),SKUYearlyPrice:parseInt(r,10),SKUMonthlyPrice:parseFloat(f,10),ColorClass:$(t[i]).data("card-color"),PriceDescription:$(t[i]).find(".under-price").text(),CurrencyValue:s};u.push(e)}}(),function(){var t,n,e=0,r;for($(f).find("tr.sku-row").remove(),i=0;i<u.length;i++)e+=u[i].SKUYearlyPrice,r=(t=u[i],n=$('<tr class="sku-row" data-selected-sku-id="" data-selected-card-id=""><td class="description"><div class="product-description"><\/div><div class="plan-description"><\/div><\/td><td class="price"><span class="currency-symbol"><\/span><span class="price-value"><\/span><span  class="price-suffix"><\/span><\/td><\/tr>'),$(n).find(".sku-row").data("selected-sku-id",t.SKUId),$(n).find(".product-description").text(t.CardTitle),$(n).find(".plan-description").text(t.SKUDescription),$(n).find(".price-value").text(t.SKUMonthlyPrice),n),$(r).find(".currency-symbol").html(s),$(r).find(".price-value").text(u[i].SKUYearlyPrice),$(r).find(".price-suffix").text(l),$(f).find("tbody").prepend(r);$(f).find("tr.total .price .price-value").text(e)}();window.SaaSPricing.SaasCalulatorResult&&window.SaaSPricing.SaasCalulatorResult.UpdateLicenses(h,u)};this.ResizeCardsSections=function(){e()};r&&0<(t=$(r).find(".cards .card")).length&&$.each(t,function(n,t){var h=$(t).find(".license-switch"),u,i;if($(h).click(function(){var n=$(this).parent().parent().parent().parent();this.checked?$(n).removeClass("disabled"):$(n).addClass("disabled");o()}),u=$(t).find(".pricing-plans"),$(u).change(function(){var i=$(this).parent().parent().parent(),n=$(i).find(".price-value"),t=$(this).find("option:selected");1==t.length?(console.log(),$(n).text($(t).data("plan-sku-month-price"))):$(n).text("0");o()}),i=$(t).find(".controls"),0<i.length){var c=$(t).find(".features-section"),r=$(c).find(".features"),f=$(i).find(".viewMore"),s=$(i).find(".viewLess");$(f).click(function(n){n.preventDefault();$(r).find("li:gt(2)").slideToggle();$(r).css("height","auto");$(this).hide();$(s).show();e()});$(s).click(function(){event.preventDefault();$(r).find("li:gt(2)").slideToggle();$(r).css("height","auto");$(this).hide();$(f).show();e()})}});o()};window.SaaSPricing={};window.SaaSPricing.Calculators=[];window.SaaSPricing.Init=function(n,t){var r=$(t),u=$(n),i;if(0<r.length){for(1===u.length&&(window.SaaSPricing.SaasCalulatorResult=new SaasCalculatorResultClass(u)),i=0;i<r.length;i++)window.SaaSPricing.Calculators.push(new SaasCalculatorClass(r[i]));for($(window).resize(function(){for(var n=0;n<window.SaaSPricing.Calculators.length;n++)window.SaaSPricing.Calculators[n].ResizeCardsSections()}),i=0;i<window.SaaSPricing.Calculators.length;i++)window.SaaSPricing.Calculators[i].ResizeCardsSections()}};$(document).ready(function(){window.SaaSPricing.Init(".combined-saas-calc",".saas-pricing-calculator")});screenShotCarouselModule={init:function(){var t=$(".screenshot-carousel-module"),n;t&&0<t.length&&(n={},n.automaticScroll=t.data("automatic-scroll"),n.rotationSpeed=t.data("rotation-speed"),$.prototype.slick&&screenShotCarouselModule.initializeSlick(n),$.prototype.magnificPopup&&screenShotCarouselModule.initializePopups(n))},initializeSlick:function(n){$(".screenshot-carousel-module > .features-carousel").slick({dots:!1,speed:300,autoplay:void 0!==n.automaticScroll&&"True"===n.automaticScroll,autoplaySpeed:void 0!==n.rotationSpeed?1e3*n.rotationSpeed:5e3,slidesToShow:1,centerMode:!0,variableWidth:!0,slidesToScroll:1,infinite:!0,arrows:!0,prevArrow:'<span class="left features-carousel-arrow" style=""><span data-linktype="Screenshot Module" data-linkdetail="Left Arrow" class="fa fa-angle-left"><\/span><\/span>',nextArrow:'<span class="right features-carousel-arrow" style=""><span data-linktype="Screenshot Module" data-linkdetail="Right Arrow" class="fa fa-angle-right"><\/span><\/span>',responsive:[{breakpoint:768,settings:{dots:!0}}]})},initializePopups:function(n){$(".screenshot-carousel-popup-image").magnificPopup({type:"image",gallery:{enabled:!1},image:{titleSrc:function(n){return n.el.attr("data-title")}},zoom:!1,closeMarkup:'<button class="close-icon mfp-close"><div class="mfp-close">Close<\/div> <img class="mfp-close" src="/images/close_icon_new.png"><\/button>',callbacks:{open:function(){$(".screenshot-carousel-module > .features-carousel").slick("slickPause")},close:function(){void 0!==n.automaticScroll&&"True"===n.automaticScroll&&$(".screenshot-carousel-module > .features-carousel").slick("slickPlay")}}})},setSameTitleHeight:function(){if(!($(window).width()<768)){var n=$(".screenshot-carousel-module > .features-carousel .carousel-tile"),t=$(".screenshot-carousel-module > .features-carousel .carousel-tile").children(".tile-title").map(function(){return $(this).height()}).get(),i=Math.max.apply(null,t),r=$(".screenshot-carousel-module > .features-carousel .carousel-tile").children(".tile-subheader").map(function(){return $(this).height()}).get(),u=Math.max.apply(null,r);n&&$.each(n,function(n,t){t&&($(t).children(".tile-title").css("height",i),$(t).children(".tile-subheader").css("height",u),$(t).children(".tile-title").width()<600&&$(t).children(".tile-title").css("padding-top","33px"))})}}};$(document).ready(function(){screenShotCarouselModule.init();screenShotCarouselModule.setSameTitleHeight()});$(document).ready(function(){$("#input-hero-query").keypress(function(n){if(13===n.which)return $(".query-hero-submit").click(),!1});$(".query-hero-submit").click(function(){var t=document.getElementById("input-hero-query").value,n="";return n=this.href.includes("#")?this.href+"q="+t:this.href+"?q="+t,"_blank"===this.target?window.open(n,"_blank"):window.location.href=n,!1})});$(document).ready(function(){var i,t,n;$(".secondary-nav").length&&($(".secondary-nav .secondary-nav-mobile .secondary-nav-toggle").click(function(){"true"===$(this).attr("aria-expanded")?$(this).attr("data-linkdetail","collapse"):$(this).attr("data-linkdetail","expand")}),i=$(".cta-button-li"),t=$(".secondary-nav .main-nav-bar-item").last().prev(),1200<=$(window).width()&&i.length&&t.length&&setBrandTextMaxWidth(i.offset().left-(t.offset().left+t.width())),n={wrapper:$(".secondary-nav-wrapper"),elem:void 0,posTop:void 0,height:void 0,reinitVisibleElement:function(){$(".secondary-nav-wrapper .secondary-nav-desktop").is(":visible")?n.elem=$(".secondary-nav-wrapper .secondary-nav-desktop"):$(".secondary-nav-wrapper .secondary-nav-mobile").is(":visible")&&(n.elem=$(".secondary-nav-wrapper .secondary-nav-mobile"));n.height=n.elem.height()},stick:function(){1200<=$(window).width()&&n.elem.css("position","fixed");n.elem.addClass("sticked");n.collapseMobileSubmenu()},unstick:function(){1200<=$(window).width()&&n.elem.css("position","relative");n.elem.removeClass("sticked");n.collapseMobileSubmenu()},collapseMobileSubmenu:function(){$(".secondary-nav-wrapper .secondary-nav-mobile").is(":visible")&&$(".secondary-nav-wrapper .secondary-nav-mobile").hasClass("sticked")&&"true"===$(".secondary-nav .secondary-nav-mobile .secondary-nav-toggle").attr("aria-expanded")&&$(".secondary-nav .secondary-nav-mobile .secondary-nav-toggle").click()},resetHandler:function(){var i=$("#custom-search-input .predictive-desktop-search"),r,t;0<i.length&&"none"!==i.css("display")&&(i.hide(),$(document).click());r=$(".integrations-filter .form-group .options-panel-wrapper");0<$(".integrations-filter .form-group").length&&"none"!==r.css("display")&&(r.hide(),$(".integrations-filter .form-group .form-control").click());n.reinitVisibleElement();t=$(window).scrollTop();n.posTop=n.wrapper&&n.wrapper.offset()?n.wrapper.offset().top:0;var f=$(".secondary-nav .secondary-nav-mobile .secondary-nav-toggle").attr("aria-expanded"),e=$(window).width(),u=$(".stickySubNav");768<=e&&"0px"!==u.css("height")&&u.length&&u.offset().top<t||(t>=n.posTop&&"true"!==f?n.stick():t<=n.posTop&&n.unstick())},stickyNavHandler:function(){var n,i=$(window).width(),t;768<=i&&((n=i<1200?$(".secondary-nav-mobile"):$(".secondary-nav-desktop")).hasClass("sticked")?(t=$(".stickySubNav").offset().top-n.height(),$(window).scrollTop()>t?(n.css("position","absolute"),n.offset({top:t})):(n.css("position","fixed"),n.css("top",0))):n.css("position","relative"))},init:function(){n.reinitVisibleElement();$(window).on("load",n.resetHandler);$(window).resize(n.resetHandler);$(window).scroll(n.resetHandler);$(".stickySubNav").length&&$(window).scroll(n.stickyNavHandler)}},n.init(),$(".secondary-nav a.empty").removeAttr("href"))});simpleFAQModule={showMoreFunction:function(n){var t=n.data.faqItems,i=n.data.showLessButton;t&&i&&($(t).show(),$(i).show(),$(this).hide())},showLessFunction:function(n){var t=n.data.faqItems,i=n.data.showMoreButton,r=3,u=parseInt($(this).data("max-visible"));isNaN(u)||(r=u);t&&i&&($(t).slice(r,t.lenght).hide(),$(i).show(),$(this).hide())},init:function(){$(".simple-faq").each(function(){var n=$(this).find(".faq-items .faq-item"),t=$(this).find("a.faq-button-more"),i=$(this).find("a.faq-button-less");$(t).on("click",{faqItems:n,showLessButton:i},simpleFAQModule.showMoreFunction);$(i).on("click",{faqItems:n,showMoreButton:t},simpleFAQModule.showLessFunction)})}};$(document).ready(function(){simpleFAQModule.init()});$(document).ready(function(){window.spyCloudShortForm={regFormEl:$("#spyCloudShortForm"),regFormSubmitEl:$("#short-form-submit"),statesError:!1,validateRules:{},validateMessages:{},emailEl:$("#ci_email"),emailRegex:new RegExp($("#email_regex").val(),""),emailRegexS:new RegExp($("#email_regex_s").val(),"")};$(".spy-cloud-short-form ").length&&(spyCloudShortForm.validateRules.email={required:!0,emailStrict:!0},spyCloudShortForm.validateMessages.email={required:spyCloudShortForm.emailEl.attr("data-error-text"),emailStrict:spyCloudShortForm.emailEl.attr("data-format-error-text")},$.validator.addMethod("emailStrict",function(n,t){return this.optional(t)||0===n.length||spyCloudShortForm.emailRegex.test(n)&&spyCloudShortForm.emailRegexS.test(n)},""),spyCloudShortForm.regFormEl.validate({rules:spyCloudShortForm.validateRules,messages:spyCloudShortForm.validateMessages,errorClass:"error-label",onfocusout:function(n){$(n).valid()},errorPlacement:function(n,t){n.attr("data-automation-id","error-label");n.insertAfter(t)}}),spyCloudShortForm.regFormSubmitEl.click(function(n){n.preventDefault();spyCloudShortForm.regFormEl.valid()&&$.ajax({url:"/solarapi/spycloud/submitshortform",type:"POST",dataType:"json",data:{email:spyCloudShortForm.emailEl.val()},success:function(n){n.Success?window.location.href=spyCloudShortForm.regFormSubmitEl.data("redirect-to"):console.log(n.ErrorMessage)},error:function(){console.log("Spy cloud short form submit failed")}})}),spyCloudShortForm.emailEl.on("keyup",function(n){13===n.keyCode&&(n.preventDefault(),spyCloudShortForm.regFormSubmitEl.click())}),spyCloudShortForm.regFormEl.on("submit",function(n){n.preventDefault();spyCloudShortForm.regFormSubmitEl.click()}))});$(document).ready(function(){if($(".producthero--subsection-header .start-at__link").length||$(".generic-hero .generic-hero__title-link").length){var n=0,i=0,t=0,r=0;$(".stickySubNav").length&&768<=window.outerWidth&&(n=$(".stickySubNav")[0].offsetHeight,i+=getOffsetTop($(".stickySubNav")[0]));$(".slimStickyNav").length&&768<=window.outerWidth&&(t=$(".slimStickyNav")[0].offsetHeight,r+=getOffsetTop($(".slimStickyNav")[0]));$(".producthero--subsection-header .start-at__link").length&&$(".producthero--subsection-header .start-at__link").each(function(){getOffsetTop($(this.hash)[0])<i&&(n=0);getOffsetTop($(this.hash)[0])<r&&(t=0);handleAnchorWithStickyNav(this,n+t)});$(".generic-hero .generic-hero__title-link").length&&$(".generic-hero .generic-hero__title-link").each(function(){getOffsetTop($(this.hash)[0])<i&&(n=0);getOffsetTop($(this.hash)[0])<r&&(t=0);handleAnchorWithStickyNav(this,n+t)})}}),function(n){function i(){return n("#EuCookieBlock.alert").length&&n("#EuCookieBlock.alert").is(":visible")&&"fixed"===n("#EuCookieBlock.alert").css("position")}var t={elem:n(".stickySubNav"),linkElements:[],posTop:void 0,height:void 0,links:void 0,stick:function(){1024<n(window).width()&&i()&&n(".inner.download").css("top",n("#EuCookieBlock.alert").outerHeight()+"px");t.elem.addClass("sticky")},unstick:function(){t.elem.removeClass("sticky");t.links.removeClass("active")},activateLink:function(i){var r=i;t.links.removeClass("active");n(r).addClass("active")},clickHandler:function(){t.activateLink(this);var r=0;return 1024<n(window).width()&&i()&&(r=n("#EuCookieBlock.alert").outerHeight()),n("html,body").animate({scrollTop:n(this.hash).next().offset().top-t.elem.find(".inner.download").outerHeight()-r},500),!1},resetHandler:function(){var r=n(window).scrollTop(),u=1024<n(window).width()&&i()?n("#EuCookieBlock.alert").outerHeight(!0):0;t.posTop=t.elem&&t.elem.offset()?t.elem.offset().top:0;r+u>=t.posTop?(t.stick(),n(".stickySubNav .links a:eq(0)").removeClass("targetActive"),n(".stickySubNav .hide-button .col-sm-12 .buttons").show(),n(".stickySubNav .col-sm-12").addClass("animated fadeIn"),r+=t.height):r-u<=t.posTop&&(t.unstick(),n(".stickySubNav .links a:eq(0)").addClass("targetActive"),n(".stickySubNav .hide-button .col-sm-12 .buttons").hide());n(t.linkElements).each(function(){this.top=this.elem.offset().top;this.bottom=this.elem.offset().top+this.elem.outerHeight();r>=this.top-t.height&&r<=this.bottom+t.height?this.link.hasClass("active")||t.activateLink(this.link):this.link.removeClass("active")})},init:function(){t.height=t.elem.children(".inner").outerHeight();t.links=t.elem.find("ul a");t.elem.height(t.height);n(window).on("load",t.resetHandler);n(window).scroll(t.resetHandler);t.elem.length&&t.links.each(function(){var r=n(this),i=n(this.hash).next(),u=r.width()+3;u<200&&r.css("min-width",u);r.click(t.clickHandler);i.length&&t.linkElements.push({top:i.offset().top,bottom:i.offset().top+i.outerHeight(),link:r,elem:i})});n(function(){n(".callToActionStrip input").focus(function(){n(this).prev(".callToActionStrip label.name").show()}).blur(function(){n(".callToActionStrip input").each(function(){0===n.trim(n(this).val()).length?n(this).prev(".callToActionStrip label.name").hide():n(this).prev(".callToActionStrip label.name").show()})})});n("#EuContinue").bind("click",function(){n(".inner.download").css("top",0)})}};n(t.init)}(jQuery),function(n){function t(){n(".system-requirements .requirements .requirement-text").each(function(t,i){(function(n){var t=n.style.overflow,i;return t&&"visible"!==t||(n.style.overflow="hidden"),i=n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight,n.style.overflow=t,i})(i)&&n(i).find("p").css("font-size","10px")})}t();n(window).resize(function(){t()})}(jQuery);$(document).ready(function(){$(".tab-component .leftTabItem").hover(function(){if(!$(this).hasClass("active")){var n=$(this).attr("id"),t=$(".leftTabItem.active").attr("id");$("#"+n+".rightTabItemContent").removeClass("hide");$("#"+t+".rightTabItemContent").addClass("hide");$(".leftTabItem.active").removeClass("active");$(this).toggleClass("active")}});$("#TabItem-0.leftTabItem p").each(function(){var n=$(this),t=$.trim(n.text()).length;20<t&&(n.addClass("longText"),$(".blueBorder").css("height","95.2%"));19<t&&n.addClass("mediumText")});$("#TabItem-1.leftTabItem p").each(function(){var n=$(this),t=$.trim(n.text()).length;20<t&&(n.addClass("longText"),$(".blueBorder").css("height","95.2%"));19<t&&n.addClass("mediumText")});$("#TabItem-2.leftTabItem p").each(function(){var n=$(this),t=$.trim(n.text()).length;20<t&&(n.addClass("longText"),$(".blueBorder").css("height","95.2%"));19<t&&n.addClass("mediumText")});$("#TabItem-3.leftTabItem p").each(function(){var n=$(this),t=$.trim(n.text()).length;20<t&&(n.addClass("longText"),$(".blueBorder").css("height","95.2%"));19<t&&n.addClass("mediumText")})});$(document).ready(function(){if($(".trending-articles").length){var n=Math.max.apply(null,$(".trending-articles .article .article-headline").map(function(){return $(this).height()}).get());$(".trending-articles .article .article-headline").height(n)}});$(document).ready(function(){function n(){$(".trust-radius-customer-reviews .carousel-control.slick-prev").on("click",function(){$("button.slick-prev.slick-arrow").click()});$(".trust-radius-customer-reviews .carousel-control.slick-next").on("click",function(){$("button.slick-next.slick-arrow").click()})}$.prototype.slick&&$(".trust-radius-customer-reviews.single-review").length&&($(".tr-customer-reviews-carousel").slick({slidesToShow:1,slidesToScroll:1,infinite:!0,autoplay:!1,dots:!1}),n());$.prototype.slick&&$(".trust-radius-customer-reviews.multiple-reviews").length&&($(".tr-customer-reviews-carousel").slick({slidesToShow:3,slidesToScroll:1,infinite:!0,autoplay:!1,dots:!0,responsive:[{breakpoint:991,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),n())});$(document).ready(function(){function u(n){$(".tabs div.tabWrapper").hide();$(".tabs div.tabWrapper:first-child").show();$(".outerTabs ul li",n).removeClass("active");$(".outerTabs ul li:first",n).addClass("active")}var t=!1,i;if(u(),$(".gatedRegForm")&&$(".gatedRegForm").css("z-index","1000"),$(".network-assesment-modal.open")&&$(".network-assesment-modal").css("z-index","1000"),$(".outerTabs ul li a.hasTab").on("mouseover",function(){$(".outerTabs ul li").removeClass("active");$(this).parent().addClass("active");var n=$(this).attr("href");$(".tabs div.tabWrapper").hide();$(n).show()}),i=$(".navbarUltra-nav>li.menu-with-panel .dropdown-menu .outerTabs > ul > li.nav-bottom-bar").height(),$(".navbarUltra-nav>li.menu-with-panel .dropdown-menu .outerTabs > ul").css("padding-bottom",i),$(".navbarUltra-nav>li.menu-with-panel").on("mouseover",function(){t=!1;0===$("#navOverlay").length&&$("body").append('<div id="navOverlay"><\/div>');var n=$(document).height();$("#navOverlay").height(n);$(this).addClass("open");$(this).find(".outerTabs ul li.active").length<1&&u(this)}),$(".navbarUltra-nav>li.menu-with-panel").on("mouseout",function(){t=!0;setTimeout(function(){t&&$("#navOverlay").remove()},10);$(this).removeClass("open")}),$("select").on("blur",function(n){n.stopImmediatePropagation()}),$("ul.main-nav-bar li.main-nav-bar-item.has-submenu, .menu-toggle.separator").on("mouseover",function(){var n=$(this),t=$(window).width(),i;return 0<n.parents(".nav.navbarUltra-nav.ultraMobile").length||0<n.parents("#government-nav.nav.navbar-nav").length&&t<1200||0<n.parents(".nav.navbar-nav.brandSites").length&&t<768||0<n.parents(".nav-global.navbar-ultra-nav-global.ultra-mobile-global").length?!0:($("#custom-search-input .predictive-desktop-search").hide(),$("select").blur(),$(document).click(),i=$(".integrations-filter .form-group .options-panel-wrapper"),0<$(".integrations-filter .form-group").length&&"none"!==i.css("display")&&($(".integrations-filter .form-group .options-panel-wrapper").hide(),$(".integrations-filter .form-group .form-control").click()),!0)}),$(".navbarUltra.ultraMenu .outerTabs ul li a.hasTab").click(function(){return!1}),$("button.navbar-toggle").click(function(){$(this).toggleClass("open")}),0<$("#searchform-input").length){var f=13,r=$(".navbarUltra-default .navbar-collapse.ultra.collapse .right-block .searchform-wrapper"),n=$(".navbarUltra-default .navbar-collapse.ultra.collapse .right-block .navbarUltra-nav>li");$("#top-nav-open-search").click(function(t){var i=document.getElementById("searchform-input");i.value="";setTimeout(function(){i.focus()},1100);r.toggleClass("active");n.removeClass("is-closed");n.toggleClass("hidden-menu-item");t.preventDefault()});$("#searchform-reset").click(function(t){r.toggleClass("active");n.toggleClass("hidden-menu-item");n.toggleClass("is-closed");t.preventDefault()});$("#searchform-input").keypress(function(n){if(n.which===f)return $("#searchform-submit").click(),!1});$("#searchform-submit").click(function(){return window.location.href=$(this).data("search-url")+document.getElementById("searchform-input").value,!1});window.onclick=function(n){$(n.target).closest(".right-block").length<1&&$("#searchform-reset").is(":visible")&&$("#searchform-reset").click()}}});$(".navbarUltra-nav>li>a.menu-headline").click(function(){$(".navbarUltra.ultraMenu .navbarUltra-nav>li").hasClass("open")?$(".navbarUltra.ultraMenu .menu-toggle ul.dropdown-menu.ultra-menu").css("visibility","hidden"):$(".navbarUltra.ultraMenu .menu-toggle ul.dropdown-menu.ultra-menu").removeAttr("style");$("#navOverlay").remove()});$(".navbarUltra-nav>li>a.menu-headline").on("mouseout",function(){$(".navbarUltra.ultraMenu .menu-toggle ul.dropdown-menu.ultra-menu").removeAttr("style")});$(document).ready(function(){drawingFunctionUC()});var UCTitleOne=$(".product-page-use-case-card-title:eq(0)").text(),UCTitleTwo=$(".product-page-use-case-card-title:eq(1)").text(),UCTitleThree=$(".product-page-use-case-card-title:eq(2)").text(),UCBoxOne=$(".product-page-use-case-card-description:eq(0)").text(),UCBoxTwo=$(".product-page-use-case-card-description:eq(1)").text(),UCBoxThree=$(".product-page-use-case-card-description:eq(2)").text(),UCDescOne=$(".product-page-use-case-card-button:eq(0).orange-button").text(),UCDescTwo=$(".product-page-use-case-card-button:eq(1).orange-button").text(),UCDescThree=$(".product-page-use-case-card-button:eq(2).orange-button").text();1200<=$(window).width()?((85<UCTitleOne.length||85<UCTitleTwo.length||85<UCTitleThree.length)&&$(".product-page-use-case-card-content").css("height","300px"),(130<UCBoxOne.length||130<UCBoxTwo.length||130<UCBoxThree.length)&&$(".product-page-use-case-card-content").css("height","300px"),(98<UCDescOne.length||98<UCDescTwo.length||98<UCDescThree.length)&&$(".product-page-use-case-card-button.orange-button").css("height","68px")):((85<UCTitleOne.length||85<UCTitleTwo.length||85<UCTitleThree.length)&&$(".product-page-use-case-card-content").css("height","350px"),(121<UCBoxOne.length||121<UCBoxTwo.length||121<UCBoxThree.length)&&$(".product-page-use-case-card-content").css("height","350px"),(96<UCDescOne.length||96<UCDescTwo.length||96<UCDescThree.length)&&$(".product-page-use-case-card-button.orange-button").css("height","60px"),(132<UCDescOne.length||132<UCDescTwo.length||132<UCDescThree.length)&&$(".product-page-use-case-card-button.orange-button").css("height","85px"));$(document).ready(function(){$(".vt-accordion .tab").find("i").addClass("fa-plus");$(".vt-accordion .tab").click(function(){var n=!$(this).next().is(":visible");$(this).siblings(".tab.active").removeClass("active").find("i").removeClass("fa-minus").addClass("fa-plus");$(this).toggleClass("active",n).find("i").toggleClass("fa-minus",n);$(".vt-accordion .tabPanel").slideUp();n&&$(this).next().slideDown()});$(".vt-accordion .tab:first-child").trigger("click");$(".vt-menu > li").click(function(){var n=$(this).index();$(".vt-menu > li").removeClass("active");$(this).addClass("active");$(".vt-tabs > li").removeClass("active");$(".vt-tabs > li").eq(n).addClass("active")});$(".vt-menu > li:first-child").trigger("click");$(".vt-accordion .closeItem").click(function(){var n=$(this).closest(".tabPanel");$(this).closest(".tabPanel").slideUp();$(n).prev(".vt-accordion .tab").removeClass("active").find("i").removeClass("fa-minus").addClass("fa-plus")})});$(window).on("load",function(){null!==document.querySelector(".popup-video.vidyard")&&null===document.querySelector(".vidyard-player-container")&&document.querySelectorAll(".producthero--heroimage.vidyard-player-embed").forEach(function(n){n.setAttribute("src",n.getAttribute("product-image"));n.setAttribute("style","display: block !important")})});handleFeatureIconStripWrapping=function(){var i=[],r=[],n,f,e,t,u;if(($(".feature-icon-strip .feature-cards .connector-container").removeClass("hidden"),768<$(window).width())&&(n=$(".feature-icon-strip .feature-cards div.item,  .feature-icon-strip .feature-cards .connector-container"),1<n.length)){for(f=$(n[0]).offset().top,e=$(n[1]).offset().top,i.push(n[0]),i.push(n[1]),t=2;t<n.length;t++)u=n[t],$(u).hasClass("connector-container")?$(u).offset().top==e?i.push(n[t]):r.push(n[t]):$(u).offset().top==f?i.push(n[t]):r.push(n[t]);if(0<r.length){var o=i[i.length-1],s=r[0],h=r[r.length-1];$(o).hasClass("connector-container")&&$(o).addClass("hidden");$(s).hasClass("connector-container")&&$(s).addClass("hidden");$(h).hasClass("connector-container")&&$(h).addClass("hidden")}}};$(document).ready(function(){0<$(".feature-icon-strip").length&&($(window).on("resize",function(){handleFeatureIconStripWrapping()}),handleFeatureIconStripWrapping())});window.FeederForm={showFeederModal:function(n){var t,i;n&&(t=$("#"+n+".feeder-form-overlay"),0<t.length&&(i=t.find(".feeder-form-modal"),0<i.length&&($(t).fadeIn(500),$(i).fadeIn(500))))},Init:function(){$(".feeder-form-overlay .feeder-form-close").on("click",window.FeederForm._closeOverlayHandler);for(var t=$(".feeder-form"),n=0;n<t.length;n++)window.FeederForm._initSeparateForm(t[n])},_closeOverlayHandler:function(n){var t=$(n.target).parent().parent().parent(),i=$(t).find(".feeder-form-modal");0<i.length&&$(i).fadeOut(500);$(t).fadeOut(500)},_initSeparateForm:function(n){var t=$(n).find(".feeder-form-email"),u=new RegExp($(n).find("#ff-email_regex").val(),""),f=new RegExp($(n).find("#email_regex_s").val(),""),i=$(n).find(".feeder-form-submit"),e=$(t).attr("data-error-text"),o=$(t).attr("data-format-error-text"),r={};r.email={required:e,feederEmailFormat:o};$.validator.addMethod("feederEmailFormat",function(n,t){return this.optional(t)||0===n.length||u.test(n)&&f.test(n)},"");$(n).validate({rules:{email:{required:!0,feederEmailFormat:!0}},messages:r,errorClass:"error-label",onfocusout:function(n){$(n).valid()},errorPlacement:function(n,t){n.attr("data-automation-id","error-label");n.insertAfter(t)}});$(i).click(function(i){var r,u,f,o,e;(i.preventDefault(),$(n).valid())&&($(".spy-cloud").length&&$.ajax({url:"/solarapi/spycloud/GetProspectData",type:"POST",async:!1,dataType:"json",data:{email:$(t).val()},success:function(n){n.Success?null!==n.ProspectData?function(n){var t=$("#emailRecords"),i=$("#emailLastDiscoveredDaysAgo"),e=$("#emailRecordsNotFound"),o=$("#emailLastExposedTextNotFound");null!==n.ProspectData.Email.Records&&"0"!==n.ProspectData.Email.Records?($(t).text(n.ProspectData.Email.Records),$(t).is(":hidden")&&($(t).toggle(),$(e).toggle())):$(e).is(":hidden")&&($(t).toggle(),$(e).toggle());null!==n.ProspectData.Email.LastDiscoveredDaysAgo&&"0"!==n.ProspectData.Email.LastDiscoveredDaysAgo?($(i).text(n.ProspectData.Email.LastDiscoveredDaysAgo),$(i).is(":hidden")&&($(i).toggle(),$(o).toggle())):$(o).is(":hidden")&&($(i).toggle(),$(o).toggle());var r=$("#domainRecords"),u=$("#domainLastDiscoveredDaysAgo"),f=$("#domainRelatedSources"),s=$("#domainRecordsNotFound"),h=$("#domainLastExposedTextNotFound"),c=$("#domainRecordsExposedNotFound");null!==n.ProspectData.Domain.Records&&"0"!==n.ProspectData.Domain.Records?($(r).text(n.ProspectData.Domain.Records),$(r).is(":hidden")&&($(r).toggle(),$(s).toggle())):$(s).is(":hidden")&&($(r).toggle(),$(s).toggle());null!==n.ProspectData.Domain.LastDiscoveredDaysAgo&&"0"!==n.ProspectData.Domain.LastDiscoveredDaysAgo?($(u).text(n.ProspectData.Domain.LastDiscoveredDaysAgo),$(u).is(":hidden")&&($(u).toggle(),$(h).toggle())):$(h).is(":hidden")&&($(u).toggle(),$(h).toggle());null!==n.ProspectData.Domain.RelatedSources&&"0"!==n.ProspectData.Domain.RelatedSources?($(f).text(n.ProspectData.Domain.RelatedSources),$(f).is(":hidden")&&($(f).toggle(),$(c).toggle())):$(c).is(":hidden")&&($(f).toggle(),$(c).toggle());$("#domainValue").text(n.ProspectData.Domain.Value)}(n):console.log("Spy cloud prospect data is null"):console.log(n.ErrorMessage)},error:function(){console.log("Spy cloud GetProspectData method failed")}}),r=$(i.target).closest(".feeder-form-overlay"),u=$(i.target).attr("href"),u?(setRegistrationCookieForEmail($(t).val()),0<r.length&&$(r).find(".feeder-form-close").click(),window.location.href=u):(f=$("input[name=email]:not(.feeder-form-email)"),o=$(t).val(),0<f.length&&(e=f[0],$(e).val(o),$(e).focus()),0<r.length&&$(r).find(".feeder-form-close").click()))});$(n).on("submit",function(n){n.preventDefault();$(i).click()})}};$(document).ready(function(){window.FeederForm.Init()}),function o(n,t,i){function r(u,e){var s,h,o;if(!t[u]){if(!n[u]){if(s="function"==typeof require&&require,!e&&s)return s(u,!0);if(f)return f(u,!0);h=new Error("Cannot find module '"+u+"'");throw h.code="MODULE_NOT_FOUND",h;}o=t[u]={exports:{}};n[u][0].call(o.exports,function(t){return r(n[u][1][t]||t)},o,o.exports,o,n,t,i)}return t[u].exports}for(var f="function"==typeof require&&require,u=0;u<i.length;u++)r(i[u]);return r}({1:[function(n,t,i){var u,r;Object.defineProperty(i,"__esModule",{value:!0});u=i.EventsModule||(i.EventsModule={});(r=u.FilterType||(u.FilterType={}))[r.Category=0]="Category";r[r.Topic=1]="Topic";r[r.LocationRegion=2]="LocationRegion";r[r.LocationSubRegion=3]="LocationSubRegion";r[r.LocationCountry=4]="LocationCountry";r[r.Type=5]="Type";r[r.Format=6]="Format"},{}],2:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.EventsModule||(i.EventsModule={});u=function(){function n(){this.categories=[];this.topics=[];this.locationRegions=[];this.locationSubRegions=[];this.locationCountries=[];this.types=[];this.formats=[];this.searchTerm=""}return n.prototype.IsFiltersEmpty=function(){return 0==this.categories.length&&0==this.topics.length&&0==this.locationRegions.length&&0==this.locationSubRegions.length&&0==this.locationCountries.length&&0==this.types.length&&0==this.formats.length},n}();r.RequestModel=u},{}],3:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var u,f,e,o,s,h,r,c,l=n("../Shared/Filters/_Filters"),a=n("../Shared/FiltersSelection/_FiltersSelection"),v=n("../Shared/SearchBox/_SearchBox"),y=n("../Shared/Masonry/_Masonry"),p=n("./Models/_RequestModel"),w=n("./Models/_FilterType");u=i.EventsModule||(i.EventsModule={});f=l.Shared.Filters;e=a.Shared.FiltersSelection;o=v.Shared.SearchBox;s=y.Shared.Masonry;h=p.EventsModule.RequestModel;r=w.EventsModule.FilterType;c=function(){function n(){var n=this,t;(this.indexPageComponent=$(".events-landing"),this.noOfColumns=1,this.indexPageComponent&&0<this.indexPageComponent.length)&&(this.eventSections=this.indexPageComponent.find(".events-landing-section "),this.noOfColumns=+this.indexPageComponent.attr("data-number-columns"),2==this.noOfColumns&&(this.masonry=new s({componentSelector:".events-landing",enableMobile:!1,noOfColumns:this.noOfColumns,sectionSelector:".events-landing-section-items",itemSelector:".events-landing-card"})),this.filtersSelection=new e(".events-landing-filters-selection"),this.filters=new f(".events-landing-filters",this.filtersSelection),this.searchBox=new o(".events-landing-search-box",{enterKeyPressEventEnabled:!0,typingEventEnabled:!1,typingDelayTime:300}),this.filters.subscribeToFiltersUpdatedEvent(function(){n.refreshCards(!1,!0)}),this.searchBox.subscribeToSearchExecuteEvent(function(){n.refreshCards(!1,!0)}),$(window).on("popstate",function(t){var i=t.originalEvent.state;n.updateControlsValues(i);n.refreshCards(!1,!1)}),t=this.prepareRequest(!0),this.updateControlsValues(t),this.refreshCards(!0,!0),history.pushState(t,"",window.location.href))}return n.prototype.refreshCards=function(n,t){var i=this.indexPageComponent.find(".events-landing-card").toArray(),f,s,h;if(i&&0!=i.length){for(var e,u=this.prepareRequest(n),o=0,r=0;r<i.length;r++)f=!0,(f=this.matchCardByFilter(i[r],u))&&(f=this.matchCardBySearchTerm(i[r],u.searchTerm)),f?(o++,$(i[r]).show()):$(i[r]).hide();(this.filtersSelection.setNoOfResults(o),0<o)?(s=i.filter(function(n){return $(n).is(":visible")}),e=s[s.length-1]):e=$(".events-landing-filters-selection")[0];(this.scrollToElementIfNeeded(e),t)&&(h=window.location.href.split("?")[0]+this.prepareQueryStringBasedOnRequestModel(u),history.pushState(u,"",h))}},n.prototype.matchCardByFilter=function(n,t){return!!n&&(!!t.IsFiltersEmpty()||this.matchSingleFilter(n,t,r.Category)&&this.matchSingleFilter(n,t,r.Topic)&&this.matchSingleFilter(n,t,r.LocationCountry)&&this.matchSingleFilter(n,t,r.LocationRegion)&&this.matchSingleFilter(n,t,r.LocationSubRegion)&&this.matchSingleFilter(n,t,r.Type)&&this.matchSingleFilter(n,t,r.Format))},n.prototype.matchCardBySearchTerm=function(n,t){if(!t)return!0;var i=t.toLowerCase(),r=$(n).find(".landing-card-content-title").text().toLowerCase(),u=$(n).find(".landing-card-description").text().toLowerCase();return 0<=r.indexOf(i)||0<=u.indexOf(i)},n.prototype.prepareRequest=function(n){var t=new h,u,r,i;if(n)t.categories=this.parsePrametrValueFromQueryString("c"),t.topics=this.parsePrametrValueFromQueryString("t"),t.locationRegions=this.parsePrametrValueFromQueryString("lr"),t.locationSubRegions=this.parsePrametrValueFromQueryString("lsr"),t.locationCountries=this.parsePrametrValueFromQueryString("lc"),t.types=this.parsePrametrValueFromQueryString("ty"),t.formats=this.parsePrametrValueFromQueryString("f"),u=this.parsePrametrValueFromQueryString("searchTerm"),t.searchTerm=0<u.length?u[0]:"";else for(t.searchTerm=this.searchBox.getValue(),r=this.filters.getFilterItems(),i=0;i<r.length;i++)switch(r[i].queryKey){case"c":t.categories.push(r[i].label);break;case"t":t.topics.push(r[i].label);break;case"lr":t.locationRegions.push(r[i].label);break;case"lsr":t.locationSubRegions.push(r[i].label);break;case"lc":t.locationCountries.push(r[i].label);break;case"ty":t.types.push(r[i].label);break;case"f":t.formats.push(r[i].label)}return t},n.prototype.matchSingleFilter=function(n,t,i){var f,u,o=!0,e,s;switch(i){case r.Category:f="event-category";u=t.categories;break;case r.Topic:f="event-topics";u=t.topics;break;case r.LocationCountry:f="event-location-country";u=t.locationCountries;break;case r.LocationRegion:f="event-location-region";u=t.locationRegions;break;case r.LocationSubRegion:f="event-location-subregion";u=t.locationSubRegions;break;case r.Type:f="event-type";u=t.types;break;case r.Format:f="event-format";u=t.formats}return e=$(n).data(f),void 0!==e&&0<u.length&&(s=e.split(","),o=u.some(function(n){return 0<=s.indexOf(n)})),o},n.prototype.scrollToElementIfNeeded=function(n){if(n){var t=$(n).offset().top+$(n).outerHeight(),i=$(window).scrollTop();$(window).height();t<=i&&$(window).scrollTop(0)}},n.prototype.prepareQueryStringBasedOnRequestModel=function(n){var t="",i;if(n){if(n.categories&&0<n.categories.length)for(t+="c=",i=0;i<n.categories.length;i++)t=t+(0<i?",":"")+n.categories[i];if(n.topics&&0<n.topics.length)for(t=t+(0<t.length?"&":"")+"t=",i=0;i<n.topics.length;i++)t=t+(0<i?",":"")+n.topics[i];if(n.locationRegions&&0<n.locationRegions.length)for(t=t+(0<t.length?"&":"")+"lr=",i=0;i<n.locationRegions.length;i++)t=t+(0<i?",":"")+n.locationRegions[i];if(n.locationSubRegions&&0<n.locationSubRegions.length)for(t=t+(0<t.length?"&":"")+"lsr=",i=0;i<n.locationSubRegions.length;i++)t=t+(0<i?",":"")+n.locationSubRegions[i];if(n.locationCountries&&0<n.locationCountries.length)for(t=t+(0<t.length?"&":"")+"lc=",i=0;i<n.locationCountries.length;i++)t=t+(0<i?",":"")+n.locationCountries[i];if(n.types&&0<n.types.length)for(t=t+(0<t.length?"&":"")+"ty=",i=0;i<n.types.length;i++)t=t+(0<i?",":"")+n.types[i];if(n.formats&&0<n.formats.length)for(t=t+(0<t.length?"&":"")+"f=",i=0;i<n.formats.length;i++)t=t+(0<i?",":"")+n.formats[i];n.searchTerm&&(t=t+(0<t.length?"&":"")+"searchTerm="+n.searchTerm)}return 0<t.length?"?"+t:""},n.prototype.parsePrametrValueFromQueryString=function(n){var i=[],u,f,r,e,t,o;if(n&&(u=window.location.href.split("?")[1],u))for(f=decodeURIComponent(u).split("&"),r=0;r<f.length;r++)if(e=f[r],e&&(t=e.split("="),2==t.length&&n===t[0])){"searchTerm"===n?i.push(t[1]):(o=t[1].split(","),i=i.concat(o));break}return i},n.prototype.updateControlsValues=function(n){if(n){this.searchBox.setValue(n.searchTerm,!1);var t=[];n.categories&&(t=t.concat(n.categories));n.topics&&(t=t.concat(n.topics));n.locationRegions&&(t=t.concat(n.locationRegions));n.locationSubRegions&&(t=t.concat(n.locationSubRegions));n.locationCountries&&(t=t.concat(n.locationCountries));n.types&&(t=t.concat(n.types));n.formats&&(t=t.concat(n.formats));this.filters.setCheckedCheckboxesByNames(t);this.filters.showActiveSections()}},n}();u.EventsIndexController=c},{"../Shared/Filters/_Filters":42,"../Shared/FiltersSelection/_FiltersSelection":41,"../Shared/Masonry/_Masonry":43,"../Shared/SearchBox/_SearchBox":44,"./Models/_FilterType":1,"./Models/_RequestModel":2}],4:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.FedNewsItemSectionsModule||(i.FedNewsItemSectionsModule={});u=function(){function n(n,t){var i=this;this._items=[];this._currentSearchTerm="";this._defaultVisibleItemsCount=6;n&&(t&&(this._defaultVisibleItemsCount=t),this._sectionContainer=$(n),this._sectionContainer&&(this._showMoreLink=this._sectionContainer.find(".show-more"),this._showLessLink=this._sectionContainer.find(".show-less"),this._itemsContainer=this._sectionContainer.find(".fednews-landing-section-items"),this._items=this._sectionContainer.find(".fednews-landing-section-items .fed-event-item").toArray(),$(this._showMoreLink).on("click",function(n){n.preventDefault();i._showMore()}),$(this._showLessLink).on("click",function(n){n.preventDefault();i._showLess(!0)}),$(window).on("load resize",function(){i.reziseGridItems()})))}return n.prototype._showMore=function(){for(var n=0;n<this._items.length;n++)$(this._items[n]).fadeIn(500);this.reziseGridItems();$(this._showMoreLink).hide();$(this._showLessLink).show()},n.prototype._showLess=function(n){for(var i=this,t=0;t<this._items.length;t++)t>this._defaultVisibleItemsCount?t!=this._items.length-1?$(this._items[t]).fadeOut(500):n&&$(this._items[t]).fadeOut(500,function(){i.scrollToViewMore()}):t!=this._items.length-1?$(this._items[t]).fadeIn(500):n&&$(this._items[t]).fadeIn(500,function(){i.scrollToViewMore()});this.reziseGridItems();$(this._showMoreLink).show();$(this._showLessLink).hide()},n.prototype._matchItemBySearchTerm=function(n,t){if(!t)return!0;var i=t.toLowerCase(),r=$(n).find(".fed-event-item-title").text().toLowerCase(),u=$(n).find(".fed-event-item-description").text().toLowerCase(),f=$(n).find(".fed-event-item-details .location").text().toLowerCase();return 0<=r.indexOf(i)||0<=u.indexOf(i)||0<=f.indexOf(i)},n.prototype.reziseGridItems=function(){for(var i,r=parseInt(window.getComputedStyle(this._itemsContainer[0]).getPropertyValue("grid-auto-rows")),t=parseInt(window.getComputedStyle(this._itemsContainer[0]).getPropertyValue("grid-row-gap")),n=0;n<this._items.length;n++)$(this._items[n]).is(":visible")&&(i=Math.ceil((this._items[n].querySelector(".fed-event-item-content").getBoundingClientRect().height+t)/(r+t)),this._items[n].style.gridRowEnd="span "+i)},n.prototype.scrollToViewMore=function(){var n=this._showMoreLink.offset().top,t=this._showMoreLink.height(),i=$(window).height(),r=t<i?n-(i/2-t/2):n;$("html,body").animate({scrollTop:r},500)},n.prototype.SearchItems=function(n){var i=0,t;if(n){for(t=0;t<this._items.length;t++)this._matchItemBySearchTerm(this._items[t],n)?($(this._items[t]).fadeIn(500),i++):$(this._items[t]).fadeOut(500);0==i&&this._sectionContainer.hide();this.reziseGridItems();$(this._showMoreLink).hide();$(this._showLessLink).hide()}else this._showLess(!1),i=this._items.length,this._sectionContainer.show();return i},n}();r.FedNewsItemSection=u},{}],5:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r,u,f,e,o=n("../Shared/SearchBox/_SearchBox"),s=n("../FedNews/_FedNewsItemSections");r=i.FedNewsLandingModule||(i.FedNewsLandingModule={});u=o.Shared.SearchBox;f=s.FedNewsItemSectionsModule.FedNewsItemSection;e=function(){function n(){var t=this,i,n,r;if(this._component=$(".fednews-landing"),this._stickyNavLinks=[],this._sections=[],this._component){var e=void 0,o=this._component.find(".fednews-landing-main .fednews-landing-section"),s=this._component.attr("data-max-visible-elements");for(s&&(i=parseInt(s,10),e=isNaN(i)?6:i),n=0;n<o.length;n++)this._sections.push(new f(o[n],e));if(this._searchBox=new u(".fednews-landing-search-box",{enterKeyPressEventEnabled:!0,typingEventEnabled:!1,typingDelayTime:500}),this._searchBox.subscribeToSearchExecuteEvent(function(n){t.search(n)}),this._stickySection=this._component.find(".sticky-section"),this._stickySection){if(this._stickyNavInner=this._stickySection.find(".inner"),r=this._stickySection.find("ul a"),0<r.length)for(this._stickyNavLinks=r.toArray(),n=0;n<this._stickyNavLinks.length;n++)$(this._stickyNavLinks[n]).on("click",function(n){n.preventDefault();t._stickyNavLinkClickHandler(n)});this._stickyNavScrollHandler();$(window).on("scroll",function(){t._stickyNavScrollHandler()})}this._noResultsSection=this._component.find(".no-results")}}return n.prototype.search=function(n){for(var i=0,t=0;t<this._sections.length;t++)i+=this._sections[t].SearchItems(n);0==i?this._noResultsSection.show():this._noResultsSection.hide()},n.prototype._stickyNavLinkClickHandler=function(n){n.preventDefault();var t=n.target;$(this._stickyNavLinks).removeClass("active");$(t).addClass("active");$("html,body").animate({scrollTop:$($(t).prop("hash")).offset().top-this._stickySection.outerHeight()},500)},n.prototype._stickyNavScrollHandler=function(){for(var i=$(window).scrollTop(),r=this._stickySection.outerHeight(),n=0;n<this._stickyNavLinks.length;n++){var t=$($(this._stickyNavLinks[n]).prop("hash")),u=$(t).offset().top,f=$(t).offset().top+$(t).outerHeight();u-r-10<=i&&i<=f+r?$(this._stickyNavLinks[n]).hasClass("active")||($(this._stickyNavLinks).removeClass("active"),$(this._stickyNavLinks[n]).addClass("active")):$(this._stickyNavLinks[n]).removeClass("active")}},n}();r.FedNewsLandingController=e},{"../FedNews/_FedNewsItemSections":4,"../Shared/SearchBox/_SearchBox":44}],6:[function(n,t,i){var u=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;0<=o;o--)(f=n[o])&&(u=(e<3?f(u):3<e?f(t,i,u):f(t,i))||u);return 3<e&&u&&Object.defineProperty(t,i,u),u},f=this&&this.__metadata||function(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)},e,r,o,s;Object.defineProperty(i,"__esModule",{value:!0});s=n("../../Helpers/_MapHelper");e=i.Filters||(i.Filters={});r=s.Helpers.JsonProperty;o=function(){function n(){this.name=void 0;this.id=void 0;this.count=void 0}return u([r("Name"),f("design:type",String)],n.prototype,"name",void 0),u([r("Id"),f("design:type",String)],n.prototype,"id",void 0),u([r("Count"),f("design:type",Number)],n.prototype,"count",void 0),n}();e.FilterGeneralInfo=o},{"../../Helpers/_MapHelper":13}],7:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var u,f,r,e,o=n("../Filters/Models/_FilterGeneralInfoModel"),s=n("../Helpers/_StringHelper");u=i.Filters||(i.Filters={});f=o.Filters.FilterGeneralInfo;r=s.Helpers.StringHelper;e=function(){function n(n,t){var i=this;this.filterChangeHandlers=[];this.urlSupportEnabled=!0;this.reset=function(){i.activeOption.prop("disabled",!1);$(".filter-items #"+i._value).remove();i._value=null};this.name=t;this.filter=$(n);this.filterOptions=$(n+" ."+t);this.defaultSelectBoxText=this.filterOptions.find("option:first-child").val().toString();this.filterOptions.change(function(n){i.onFilterOptionsChange(n)});this.filterOptions.empty()}return Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(n){null!=n||this.isEmpty()?this._value=n:this.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeOption",{get:function(){return $("."+this.name+" [value="+this._value+"]")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueText",{get:function(){var n=this.activeOption.text();return n=n.substring(0,n.indexOf("(")),r.sanitizeText(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this.urlSupportEnabled&&!this.isEmpty()&&""!==this.valueText?"/"+this.valueText:""},enumerable:!0,configurable:!0}),n.prototype.subscribeToFilterChangeEvent=function(n){this.filterChangeHandlers.push(n)},n.prototype.hide=function(){this.filter.hide()},n.prototype.show=function(){this.filter.show()},n.prototype.isEmpty=function(){return null==this._value||null==this._value||""===this._value},n.prototype.initOptions=function(n){var i,o,h,u,s,c,t,e;if(this.filterOptions.empty(),n&&this.filterOptions.find("option").length<=1){this.defaultSelectBoxText&&this.isEmpty()&&this.filterOptions.append(new Option(this.defaultSelectBoxText,this.defaultSelectBoxText,!0));i=[];for(o in n)n.hasOwnProperty(o)&&(h=n[o],u=new f,u.name=h.name,u.id=o,u.count=h.count,i.push(u));for(s=0,c=i=i.sort(function(n,t){var i=n.name.toLocaleUpperCase(),r=t.name.toLocaleUpperCase();return i<r?-1:r<i?1:0});s<c.length;s++)t=c[s],e={value:t.id,text:t.name+" ("+t.count+")",selected:!1},(this._value===t.id||1===i.length&&-1<window.location.href.indexOf(r.sanitizeText(t.name)))&&(this.isEmpty()&&(this.value=t.id),e.selected=!0,this.addBlueFilter(t.name)),this.filterOptions.append(new Option(e.text,e.value,!1,e.selected))}},n.prototype.filterChangeEvent=function(){this.filterChangeHandlers.slice(0).forEach(function(n){return n()})},n.prototype.onFilterOptionsChange=function(){var n=this.filterOptions.val().toString();n&&($("."+this.name+" [value="+n+"]").prop("disabled",!0),this._value=n);this.filterChangeEvent()},n.prototype.addBlueFilter=function(n){var t=this;n||(n=this.valueText);$(".filter-items").append('<span class="filter-'+this.name+'" id='+this._value+'><i class="fa fa-times"><\/i> '+n+"<\/span>");$(".filter-items #"+this._value+" .fa-times").on("click",function(){t.reset();t.filterChangeEvent()})},n}();u.SelectBoxFilter=e},{"../Filters/Models/_FilterGeneralInfoModel":6,"../Helpers/_StringHelper":14}],8:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r,u,f,e=n("../Helpers/_StringHelper");r=i.Filters||(i.Filters={});u=e.Helpers.StringHelper;f=function(){function n(n,t){var i,r;void 0===t&&(t=!1);i=this;this.filterChangeHandlers=[];this.valueChangeHandlers=[];this.urlSupportEnabled=!0;this.doneTypingInterval=400;this.reset=function(){i.filterInput.val("")};this.filter=$(n);this.filterInput=$(n+" input");r=$(n+" button.search");r.click(function(){i.updateSearchDataLinkAttribute();i.filterChangeEvent()});this.filterInput.on("keypress",function(n){13===n.which&&(clearTimeout(i.typingTimer),i.updateSearchDataLinkAttribute(),r.click())});$(n+" button.clear").click(function(){i.reset();i.filterChangeEvent()});t&&this.filterInput.on("input propertychange keyup paste",function(n){13!==n.keyCode&&("propertychange"!==n.type||"value"===n.originalEvent.propertyName)&&(clearTimeout(i.typingTimer),i.typingTimer=setTimeout(function(){i.valueChangedEvent()},i.doneTypingInterval))})}return Object.defineProperty(n.prototype,"value",{get:function(){return this.valueText},set:function(n){null==n?this.reset():this.filterInput.val(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueText",{get:function(){var n=this.filterInput.val().toString();return u.sanitizeText(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputValue",{get:function(){return this.filterInput.val().toString()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this.urlSupportEnabled&&!this.isEmpty()&&""!==this.valueText?"/"+this.valueText:""},enumerable:!0,configurable:!0}),n.prototype.updateSearchDataLinkAttribute=function(){$("button.search",this.filter).attr("data-linkdetail",this.valueText)},n.prototype.subscribeToFilterChangeEvent=function(n){this.filterChangeHandlers.push(n)},n.prototype.subscribeToValueChangeEvent=function(n){this.valueChangeHandlers.push(n)},n.prototype.hide=function(){this.filter.hide()},n.prototype.show=function(){this.filter.show()},n.prototype.apply=function(){this.filterChangeEvent()},n.prototype.applyValueChanged=function(){this.valueChangedEvent()},n.prototype.isEmpty=function(){var n=this.value;return null==n||""===n},n.prototype.initOptions=function(n){this.filterInput.val(n)},n.prototype.filterChangeEvent=function(){this.filterChangeHandlers.slice(0).forEach(function(n){return n()})},n.prototype.valueChangedEvent=function(){this.valueChangeHandlers.slice(0).forEach(function(n){return n()})},n}();r.TextBoxFilter=f},{"../Helpers/_StringHelper":14}],9:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.Helpers||(i.Helpers={});u=function(){function n(){}return n.getAjaxUrl=function(n){var i="",t=window.location.pathname.split("/")[1];return t&&0<=this.allowedLanguagesSubfolders.indexOf(t)&&(i="/"+t),i+n},n.allowedLanguagesSubfolders=["de","ja","es","fr","zh","ko"],n}();r.AjaxHelper=u},{}],10:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function n(n){void 0!==n&&n?(this.elements=$(n),this.elements&&this.elements.length<1&&console.log("Error in ComponentSize constructor. No elements found by selector.")):console.log("Error in ComponentSize constructor. Element selector is undefined.")}return n.prototype.getMaxHeight=function(){var n;return void 0!==this.elements&&this.elements?(Array.prototype.forEach.call(this.elements,function(t){n=n>t.clientHeight?n:t.clientHeight}),n):(console.log("Error in ComponentSize getMaxHeight method. No elements found by selector."),0)},n.prototype.evenElementsByMaxHeight=function(n){var t=this.getMaxHeight()+n;0<t&&Array.prototype.forEach.call(this.elements,function(n){n.style.height=t.toString()+"px"})},n.prototype.addSizeAdjustmentClass=function(n,t,i){t&&this.elements.width()<n&&this.elements.addClass(i)},n}();i.ComponentSize=r},{}],11:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function n(){}return n.setCookie=function(n,t,i){var r=new Date,u;r.setTime(r.getTime()+864e5*i);u="expires="+r.toUTCString();document.cookie=n+"="+t+";expires="+u+";path=/;domain=.solarwinds.com"},n.getCookie=function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return this.decodedValue(t.substring(r.length,t.length))}return""},n.handlePercent=function(n){for(var f="0123456789abcdefABCDEF",r="",i=0,u=n.length,t=n.indexOf("%");0<=t;)r+=n.substr(i,t-i),i=t+2<u&&0<=f.indexOf(n[t+1])&&0<=f.indexOf(n[t+2])?(r+="%"+n[t+1]+n[t+2],t+3):(r+="%25",t+1),t=n.indexOf("%",i);return i<u&&(r+=n.substr(i,u-i)),r},n.decodedValue=function(n){return null===n?"":decodeURIComponent(this.handlePercent(n))},n}();i.CookieHelper=r},{}],12:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.Helpers||(i.Helpers={});u=function(){function n(){}return n.isMobile=function(){return $(window).width()<768},n}();r.DeviceHelper=u},{}],13:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});n("reflect-metadata"),function(n){function r(n,t){return Reflect.getMetadata("design:type",n,t)}function i(n,i){return Reflect.getMetadata(t,n,i)}var t="jsonProperty",u;n.getClazz=r;n.getJsonProperty=i;n.JsonProperty=function(n){if(n instanceof String||"string"==typeof n)return Reflect.metadata(t,{name:n,clazz:void 0});var i=n;return Reflect.metadata(t,{name:i?i.name:void 0,clazz:i?i.clazz:void 0})};u=function(){function n(){}return n.isPrimitive=function(n){switch(typeof n){case"string":case"number":case"boolean":return!0}return!!(n instanceof String||n===String||n instanceof Number||n===Number||n instanceof Boolean||n===Boolean)},n.isArray=function(n){return n===Array||("function"==typeof Array.isArray?Array.isArray(n):!!(n instanceof Array))},n.deserialize=function(t,u){if(void 0!==t&&void 0!==u){var f=new t;return Object.keys(f).forEach(function(t){var e=i(f,t);null!=e?f[t]=function(e){var c=e.name||t,o=u?u[c]:void 0,h=r(f,t),s;return n.isArray(h)?(s=i(f,t),s.clazz&&!n.isPrimitive(s.clazz)?o&&n.isArray(o)?o.map(function(t){return n.deserialize(s.clazz,t)}):void 0:o):n.isPrimitive(h)?u?u[c]:void 0:n.deserialize(h,o)}(e):u&&void 0!==u[t]&&(f[t]=u[t])}),f}},n}();n.MapHelper=u}(i.Helpers||(i.Helpers={}))},{"reflect-metadata":65}],14:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.Helpers||(i.Helpers={});u=function(){function n(){}return n.sanitizeText=function(n){return n.toLowerCase().trim().replace(/[^a-zA-Z0-9_. ]+/gi,"").replace(/ /g,"-")},n}();r.StringHelper=u},{}],15:[function(n,t,i){var u=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;0<=o;o--)(f=n[o])&&(u=(e<3?f(u):3<e?f(t,i,u):f(t,i))||u);return 3<e&&u&&Object.defineProperty(t,i,u),u},f=this&&this.__metadata||function(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)},e,r,o,s;Object.defineProperty(i,"__esModule",{value:!0});s=n("../../Helpers/_MapHelper");e=i.IntegrationsModule||(i.IntegrationsModule={});r=s.Helpers.JsonProperty;o=function(){function n(){this.priority=1;this.title=void 0;this.description=void 0;this.imageSrc=void 0;this.color=void 0;this.linkUrl=void 0;this.linkText=void 0;this.linkTarget=void 0;this.categories=void 0}return u([r("ImageSrc"),f("design:type",String)],n.prototype,"imageSrc",void 0),u([r("Color"),f("design:type",String)],n.prototype,"color",void 0),u([r("Title"),f("design:type",String)],n.prototype,"title",void 0),u([r("Description"),f("design:type",String)],n.prototype,"description",void 0),u([r("LinkUrl"),f("design:type",String)],n.prototype,"linkUrl",void 0),u([r("LinkText"),f("design:type",String)],n.prototype,"linkText",void 0),u([r("LinkTarget"),f("design:type",String)],n.prototype,"linkTarget",void 0),u([r({clazz:String,name:"Categories"}),f("design:type",Array)],n.prototype,"categories",void 0),n}();e.IntegrationViewModel=o},{"../../Helpers/_MapHelper":13}],16:[function(n,t,i){var r;Object.defineProperty(i,"__esModule",{value:!0});r=function(n,t){this.integrationsCategoriesFolder=n;this.integrationsCatalogFolder=t};(i.IntegrationsModule||(i.IntegrationsModule={})).RequestModel=r},{}],17:[function(n,t,i){var u=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;0<=o;o--)(f=n[o])&&(u=(e<3?f(u):3<e?f(t,i,u):f(t,i))||u);return 3<e&&u&&Object.defineProperty(t,i,u),u},f=this&&this.__metadata||function(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)};Object.defineProperty(i,"__esModule",{value:!0});var e,o,r,s,h,c,l=n("../../Helpers/_MapHelper"),a=n("./_IntegrationViewModel"),v=n("../../Filters/Models/_FilterGeneralInfoModel");e=i.IntegrationsModule||(i.IntegrationsModule={});o=l.Helpers.MapHelper;r=l.Helpers.JsonProperty;s=a.IntegrationsModule.IntegrationViewModel;h=v.Filters.FilterGeneralInfo;c=function(){function n(){this.integrationCardsItems=void 0;this.integrationsCategories=void 0;this.status=void 0;this.errorMessage=void 0}return n.parseJsonObject=function(t){return o.deserialize(n,t)},u([r("Status"),f("design:type",Number)],n.prototype,"status",void 0),u([r("ErrorMessage"),f("design:type",String)],n.prototype,"errorMessage",void 0),u([r({clazz:s,name:"IntegrationCards"}),f("design:type",Array)],n.prototype,"integrationCardsItems",void 0),u([r({clazz:h,name:"IntegrationsCategories"}),f("design:type",Array)],n.prototype,"integrationsCategories",void 0),n}();e.ResponseModel=c},{"../../Filters/Models/_FilterGeneralInfoModel":6,"../../Helpers/_MapHelper":13,"./_IntegrationViewModel":15}],18:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.IntegrationsModule||(i.IntegrationsModule={});u=function(){function n(n,t){var i=this,r;this._value=[];this.filterChangeHandlers=[];this.openedCheckBoxCssClass="filter-title-open";this.urlSupportEnabled=!1;this.reset=function(){if(0<i.activeOption.length)for(var n=0;n<i.activeOption.length;n++)$(i.activeOption[n]).prop("checked",!1);$(".filter-items").empty();i._value=null};this.renderingManager=t;this.filter=$(n);this.optionPanelWrapper=this.filter.find(".options-panel-wrapper");this.optionPanel=this.filter.find(".options-panel");this.formControl=this.filter.find(".form-control");r=!1;this.bindWindowEvents();this.updatePanelHeight();$(this.formControl).click(function(){if(!1===r)return i.optionPanelWrapper.show(),i.formControl.addClass(i.openedCheckBoxCssClass),!(r=!0)});window.addEventListener("click",function(t){$(t.target).closest(n+" .options-panel").length<1&&r&&(i.optionPanelWrapper.hide(),i.formControl.removeClass(i.openedCheckBoxCssClass),r=!1,i.filterChangeEvent())})}return Object.defineProperty(n.prototype,"url",{get:function(){return this.urlSupportEnabled&&!this.isEmpty()&&""!==this.valueText?"/"+this.valueText:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(n){null!=n||this.isEmpty()?this._value=n:this.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeOption",{get:function(){return this.optionPanel.find("input:checked")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueText",{get:function(){var n="",t;if(0<this.activeOption.length)for(n=$(this.activeOption[0]).parent("label").text(),t=1;t<this.activeOption.length;t++)n=n+", "+$(this.activeOption[t]).parent("label").text();return n},enumerable:!0,configurable:!0}),n.prototype.subscribeToFilterChangeEvent=function(n){this.filterChangeHandlers.push(n)},n.prototype.hide=function(){this.filter.hide()},n.prototype.show=function(){this.filter.show()},n.prototype.isEmpty=function(){return null==this._value||null==this._value||0===this._value.length},n.prototype.initOptions=function(n){var t=this;this.renderingManager.renderFilterOptions(n);this.filterOptions=this.optionPanel.find("input");$(this.filterOptions).change(function(n){t.onFilterOptionsChange(n)})},n.prototype.updatePanelHeight=function(){var n=window.innerHeight-($(this.formControl).offset().top+$(this.formControl).outerHeight()-$(window).scrollTop()+10);$(this.optionPanelWrapper).css("max-height",n);$(this.optionPanel).css("max-height",n-17)},n.prototype.bindWindowEvents=function(){var n=this;$(window).bind("resize scroll",function(){n.updatePanelHeight()})},n.prototype.filterChangeEvent=function(){this.updateLabelCSS();this.updateVisibleFilterItems();this.filterChangeHandlers.slice(0).forEach(function(n){return n()})},n.prototype.onFilterOptionsChange=function(n){$(n.target).prop("checked")?this.addFilterOption($(n.target).attr("value")):this.removeFilterOption($(n.target).attr("value"));this.filterChangeEvent()},n.prototype.removeFilterOption=function(n){this._value=this._value.filter(function(t){return t!==n})},n.prototype.addFilterOption=function(n){this._value.push(n)},n.prototype.updateVisibleFilterItems=function(){var r=this,n=$(".filter-items"),f,t,i,u;if(n.find(" > .filter-category").empty(),this.isEmpty())n.hide();else{for(f="",t=0;t<this.activeOption.length;t++)i=document.createElement("span"),i.setAttribute("class","active-filter"),i.innerHTML=$(this.activeOption[t]).parent("label").text(),u=document.createElement("i"),u.setAttribute("class","fort fort-close-circle-outline"),u.setAttribute("value",$(this.activeOption[t]).prop("value")),i.appendChild(u),f+=i.outerHTML;n.find(" > .filter-category").html(f);n.show();n.find(" > .filter-category i").click(function(n){for(var t=0;t<r.activeOption.length;t++)$(r.activeOption[t]).attr("value")===$(n.target).attr("value")&&$(r.activeOption[t]).prop("checked",!1);r.onFilterOptionsChange(n)})}},n.prototype.updateLabelCSS=function(){this.optionPanel.find("label").removeClass("category-container-selected");for(var n=0;n<this.activeOption.length;n++)$(this.activeOption[n]).parent("label").addClass("category-container-selected")},n}();r.CheckBoxBoxFilter=u},{}],19:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r,u,f,e,o,s,h,c,l,a,v,y=n("./Models/_ResponseModel"),p=n("./Models/_RequestModel"),w=n("../Helpers/_MapHelper"),b=n("../Helpers/_AjaxHelper"),k=n("./_RenderingManager"),d=n("./_CheckBoxFilter"),g=n("./_PredictiveSearchController"),nt=n("./_SearchEngine"),tt=n("./_PlaceHoldersManager");r=i.IntegrationsModule||(i.IntegrationsModule={});u=y.IntegrationsModule.ResponseModel;f=p.IntegrationsModule.RequestModel;e=w.Helpers.MapHelper;o=b.Helpers.AjaxHelper;s=k.IntegrationsModule.IntegrationsRenderingManager;h=d.IntegrationsModule.CheckBoxBoxFilter;c=g.IntegrationsModule.PredictiveSearchController;l=nt.IntegrationsModule.SearchEngine;a=tt.IntegrationsModule.PlaceholdersManager;v=function(){function n(){var n=this;this.integrationComponent=$(".integration-index");this.integrationsCardsSelector=".itegration-card";this.integrationsCategoriesFolder=$("#integrations-categories-folder");this.integrationsCatalogFolder=$("#integrations-catalog-folder");this.filteredCards=[];this.onCategoryFilterChange=function(){if(n.filteredCards=n.model.integrationCardsItems,!n.categoryFilter.isEmpty()){for(var r=[],t=0,u=n.filteredCards;t<u.length;t++)for(var f=u[t],o=function(t){n.categoryFilter.value.some(function(n){return n===t})&&r.push(f)},i=0,e=f.categories;i<e.length;i++)o(e[i]);n.filteredCards=r}};this.onFilterChange=function(){n.onCategoryFilterChange();var t=n.predictiveSearch.value;0<t.length?(t=t.replace(/-/g," "),n.filteredCards=n.searchEngine.searchItems(n.filteredCards,t),0<n.filteredCards.length?n.placeHoldersManager.hideNoResultsMessage():(n.renderingManager.clearCards(),n.placeHoldersManager.showNoResultsMessage(t))):n.placeHoldersManager.hideNoResultsMessage();n.placeHoldersManager.updateInputPlaceHolderField(n.filteredCards.length,t);n.placeHoldersManager.hidePredictiveSearch(n.predictiveSearch.isMobileViewActiveState);n.renderingManager.renderCards(n.filteredCards)};this.searchItems=function(t){return n.searchEngine.searchItems(n.filteredCards,t,!0)};null!=this.integrationComponent&&0<this.integrationComponent.length&&(this.placeHoldersManager=new a,this.renderingManager=new s,this.searchEngine=new l(this.renderingManager),this.categoryFilter=new h(".integrations-filter",this.renderingManager),this.categoryFilter.subscribeToFilterChangeEvent(function(){n.onFilterChange()}),this.initializeIntegrationsData(),this.predictiveSearch=new c(this.placeHoldersManager,this.onFilterChange,this.searchItems))}return n.prototype.initializeIntegrationsData=function(){var t=$(this.integrationsCategoriesFolder),i=$(this.integrationsCatalogFolder);if(0<t.length&&0<i.length){var n=this,r={method:"POST",dataType:"json"},u=new f(t[0].value,i[0].value);r.data=u;$.ajax(o.getAjaxUrl("/solarapi/globalintegrations/getintegrationcardsitems"),r).done(function(t){n.placeHoldersManager.hideLoadingSpinner();n.onSuccessIntegrationsLoad(t)}).fail(function(t,i){n.placeHoldersManager.hideLoadingSpinner();n.placeHoldersManager.showErrorMessage("Request failed.  Returned status of "+i)})}},n.prototype.onSuccessIntegrationsLoad=function(n){var t=e.deserialize(u,n);null==t||t.status<1?this.placeHoldersManager.showErrorMessage(t.errorMessage):(this.model=t,this.filteredCards=this.model.integrationCardsItems,this.renderingManager.renderCards(t.integrationCardsItems),this.initializeFilterOptions(),this.integrationCards=$(this.integrationsCardsSelector))},n.prototype.initializeFilterOptions=function(){if(null!=this.categoryFilter){for(var t=[],r=function(n){for(var i=0,r=u.filteredCards;i<r.length;i++)if(r[i].categories.some(function(t){return t===n.id})){t.push(n);break}},u=this,n=0,i=this.model.integrationsCategories;n<i.length;n++)r(i[n]);this.categoryFilter.initOptions(t)}},n}();r.IndexPageController=v},{"../Helpers/_AjaxHelper":9,"../Helpers/_MapHelper":13,"./Models/_RequestModel":16,"./Models/_ResponseModel":17,"./_CheckBoxFilter":18,"./_PlaceHoldersManager":20,"./_PredictiveSearchController":21,"./_RenderingManager":22,"./_SearchEngine":23}],20:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.IntegrationsModule||(i.IntegrationsModule={});u=function(){function n(){this.pageInfoSelector=$(".page-info > span");this.clearButton=$(".input-group-btn.clear");this.noResults=$(".no-results");this.inputFields=$("#custom-search-input input.form-control");this.inputActivePlaceHolder=$(".search-active");this.inputEmptyPlaceHolder=$(".search-empty");this.predictiveSearch=$(".predictive-search");this.predictiveSearchForDesktop=$(".predictive-desktop-search");this.predictiveSearchForMobile=$(".predictive-mobile-search");this.predictiveSearchModalForMobile=$(".predictive-mobile-search.search-modal");this.predictiveSearchResult=$(".search-result-container",this.predictiveSearch);this.predictiveSearchResultForMobile=$(".search-result-container",this.predictiveSearchForMobile);this.predictiveSearchResultForDesktop=$(".search-result-container",this.predictiveSearchForDesktop);this.predictiveNoResultContainer=$(".predictive-no-results",this.predictiveSearch);this.predictiveNoResultContainerForMobile=$(".predictive-no-results",this.predictiveSearchForMobile);this.predictiveNoResultContainerForDesktop=$(".predictive-no-results",this.predictiveSearchForDesktop);this.predictiveSearchDescription=$(".search-description",this.predictiveSearch);this.predictiveSearchDescriptionForMobile=$(".search-description",this.predictiveSearchForMobile);this.predictiveSearchDescriptionForDesktop=$(".search-description",this.predictiveSearchForDesktop);this.initializeinputActivePlaceHolder();var n=this.noResults.find(".no-results-text");this.noResultsFoundTextTemplate=n.html();this.predictiveSearchModalForMobile.find("input").on("focus",function(){window.scrollTo(0,0);document.body.scrollTop=0})}return n.prototype.createNoResultMessage=function(n){var t=document.createElement("span"),i;return t.setAttribute("class","blue"),t.innerHTML=n,i=document.createElement("span"),i.innerHTML=this.productName,this.noResultsFoundTextTemplate.replace("{searchTerm}",t.outerHTML).replace("{product}",i.outerHTML)},n.prototype.showNoResultsMessage=function(n){if(0<this.noResults.length){var i=this.noResults[0],t=this.noResults.find(".no-results-text");0<t.length&&(t[0].innerHTML=this.createNoResultMessage(n));i.hidden=!1}},n.prototype.hideNoResultsMessage=function(){0<this.noResults.length&&(this.noResults[0].hidden=!0)},n.prototype.showErrorMessage=function(n){var i=$("#errorSummary"),t;0<i.length&&(t=i[0],t.innerHTML=n,t.hidden=!1)},n.prototype.hideLoadingSpinner=function(){var n=$(".items-loader");0<n.length&&(n[0].hidden=!0)},n.prototype.hideClearButton=function(){0<this.clearButton.length&&this.clearButton[0].setAttribute("style","display:none;")},n.prototype.showClearButton=function(){0<this.clearButton.length&&this.clearButton[0].setAttribute("style","display:block;")},n.prototype.updateInputPlaceHolderField=function(n,t){var i,u,f,r;0<this.inputActivePlaceHolder.length&&0<this.inputEmptyPlaceHolder.length&&(i=this.inputActivePlaceHolder[0],u=this.inputEmptyPlaceHolder[0],null!=t&&0<t.length?(f=i.getAttribute("data-format"),r=document.createElement("span"),r.setAttribute("class","just-gray"),r.innerHTML=t,i.innerHTML=f.replace("{count}",n.toString()).replace("{searchTerm}",r.outerHTML),i.setAttribute("style","display: table-cell;"),u.setAttribute("type","hidden"),this.showClearButton()):(i.setAttribute("style","display: none;"),u.setAttribute("type","text"),this.hideClearButton()))},n.prototype.initializeinputActivePlaceHolder=function(){var n=this;this.inputActivePlaceHolder.on("click",function(){var i=n.inputActivePlaceHolder[0],t=n.inputEmptyPlaceHolder[0];i.setAttribute("style","display: none;");t.setAttribute("type","text");t.focus();n.showClearButton()})},n.prototype.showPredictiveSearch=function(n){n?(this.predictiveSearchModalForMobile.show(),this.predictiveSearchModalForMobile.find("input").focus(),this.predictiveSearchModalForMobile.addClass("open")):this.predictiveSearchForDesktop.show()},n.prototype.hidePredictiveSearch=function(n){n?(this.predictiveSearchModalForMobile.hide(),this.predictiveSearchModalForMobile.removeClass("open")):this.predictiveSearchForDesktop.hide()},n.prototype.showPredictiveSearchNoResult=function(n){var t=this.createNoResultMessage(n);$(".no-results-text",this.predictiveNoResultContainer).each(function(n,i){i.innerHTML=t});this.predictiveNoResultContainer.show();this.predictiveSearchResult.hide()},n.prototype.showPredictiveSearchResult=function(n){n?(this.predictiveNoResultContainerForMobile.hide(),this.predictiveSearchResultForMobile.show(),this.predictiveSearchForDesktop.hide()):(this.predictiveNoResultContainerForDesktop.hide(),this.predictiveSearchResultForDesktop.show(),this.predictiveSearchForMobile.hide())},n.prototype.showPredictiveSearchDescription=function(n){n?this.predictiveSearchDescriptionForMobile.show():this.predictiveSearchDescriptionForDesktop.show()},n.prototype.hidePredictiveSearchDescription=function(n){n?this.predictiveSearchDescriptionForMobile.hide():this.predictiveSearchDescriptionForDesktop.hide()},n}();r.PlaceholdersManager=u},{}],21:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=n("../Filters/_TextBoxFilter"),u=n("../Helpers/_DeviceHelper");!function(n){var t,i,e=r.Filters.TextBoxFilter,f=u.Helpers.DeviceHelper,o;(i=t||(t={}))[i.None=0]="None";i[i.Desktop=1]="Desktop";i[i.Mobile=2]="Mobile";o=function(){function n(n,i,r){var u=this;this.searchInput=$(".predictive-search-control #custom-search-input input");this.isMobileViewActive=!1;this.activePredictiveSearchState=t.None;this.onMobileFilterChange=function(){u.searchFilter.initOptions(u.mobileSearchFilter.inputValue);u.placeHoldersManager.hidePredictiveSearch(!0);u.onFilterChange()};this.onValueChanged=function(){var n=u.searchFilter.value,i;n=n.replace(/-/g," ");i=$(".predictive-desktop-search .search-content");u.handlePredictiveSearch(!1,n,i);u.activePredictiveSearchState=t.Desktop};this.onMobileValueChanged=function(){var n=u.mobileSearchFilter.value,i;n=n.replace(/-/g," ");i=$(".predictive-mobile-search .search-content");u.handlePredictiveSearch(!0,n,i);u.activePredictiveSearchState=t.Mobile};null!=n&&null!=n&&(this.placeHoldersManager=n,this.bindWindowEvents(),this.initializeSearchFilter(),this.initializePredictiveSearch(),this.onFilterChange=i,this.searchItems=r)}return Object.defineProperty(n.prototype,"value",{get:function(){return this.searchFilter.value},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isMobileViewActiveState",{get:function(){return this.isMobileViewActive},enumerable:!0,configurable:!0}),n.prototype.bindWindowEvents=function(){var n=this;this.updateMobileState();$(window).bind("resize",function(){!n.isMobileViewActive&&f.isMobile()?(n.placeHoldersManager.hidePredictiveSearch(!1),n.mobileSearchFilter.initOptions(n.searchFilter.inputValue),n.mobileSearchFilter.applyValueChanged()):n.isMobileViewActive&&!f.isMobile()&&(n.placeHoldersManager.hidePredictiveSearch(!0),n.searchFilter.initOptions(n.mobileSearchFilter.inputValue),n.searchFilter.applyValueChanged());n.updateMobileState()});$(window).bind("resize scroll",function(){n.updatePredictiveSearchPanelHeight()})},n.prototype.updateMobileState=function(){this.isMobileViewActive=f.isMobile()},n.prototype.updatePredictiveSearchPanelHeight=function(){var n=window.innerHeight-($("#custom-search-input").offset().top+$("#custom-search-input").outerHeight()-$(window).scrollTop()+10);$("#custom-search-input .search-result-container").css("max-height",525<n?525:n)},n.prototype.initializeSearchFilter=function(){var n=this;this.searchFilter=new e(".predictive-search-control #custom-search-input",!0);this.searchFilter.subscribeToFilterChangeEvent(function(){n.onFilterChange()});this.searchFilter.subscribeToValueChangeEvent(function(){n.onValueChanged()});this.mobileSearchFilter=new e(".predictive-mobile-search #custom-search-input-mobile",!0);this.mobileSearchFilter.subscribeToFilterChangeEvent(function(){n.onMobileFilterChange()});this.mobileSearchFilter.subscribeToValueChangeEvent(function(){n.onMobileValueChanged()})},n.prototype.closeDesktopPredictiveSearch=function(){this.activePredictiveSearchState=t.None;this.placeHoldersManager.hidePredictiveSearch(!1)},n.prototype.closeMobilePredictiveSearch=function(){this.activePredictiveSearchState=t.None;this.placeHoldersManager.hidePredictiveSearch(!0)},n.prototype.initializePredictiveSearch=function(){var n=this;this.searchInput.on("click",function(){n.isMobileViewActive?(n.mobileSearchFilter.initOptions(n.searchFilter.inputValue),n.mobileSearchFilter.applyValueChanged()):n.activePredictiveSearchState!=t.Desktop&&n.searchFilter.applyValueChanged()});$(".predictive-search-control .search-active").on("click",function(){n.isMobileViewActive?(n.mobileSearchFilter.initOptions(n.searchFilter.inputValue),n.mobileSearchFilter.applyValueChanged()):n.searchFilter.applyValueChanged()});$("#custom-search-input .predictive-desktop-search").on("click",function(n){$(n.target).is("a")||n.stopPropagation()});$(document).on("click",function(t){n.isMobileViewActive||n.searchInput[0]==t.target||n.closeDesktopPredictiveSearch()});$(".search-modal .modal-close button").on("click",function(){n.closeMobilePredictiveSearch()});$("#custom-search-input-mobile button.search").on("click",function(){n.searchFilter.initOptions(n.mobileSearchFilter.inputValue);n.searchFilter.apply();n.closeMobilePredictiveSearch()})},n.prototype.handlePredictiveSearch=function(n,t,i){var r=this.searchItems(t);0<t.length?this.placeHoldersManager.hidePredictiveSearchDescription(n):this.placeHoldersManager.showPredictiveSearchDescription(n);0===r.length?this.placeHoldersManager.showPredictiveSearchNoResult(t):(i.empty(),r.forEach(function(n){i.append(n.html)}),this.placeHoldersManager.showPredictiveSearchResult(n));this.placeHoldersManager.showPredictiveSearch(n)},n}();n.PredictiveSearchController=o}(i.IntegrationsModule||(i.IntegrationsModule={}))},{"../Filters/_TextBoxFilter":8,"../Helpers/_DeviceHelper":12}],22:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.IntegrationsModule||(i.IntegrationsModule={});u=function(){function n(){this.integrationCardsPlaceHolder=$(".integration-cards-holder");this.integrationFilterPlaceHolder=$(".integrations-filter .options-panel")}return n.prototype.renderCards=function(n){var t,i,r;for(this.clearCards(),t=0,i=n;t<i.length;t++)r=i[t],0<this.integrationCardsPlaceHolder.length&&this.integrationCardsPlaceHolder[0].appendChild(this.renderCard(r))},n.prototype.renderFilterOptions=function(n){var t,i,r;for(this.clearFilter(),t=0,i=n;t<i.length;t++)r=i[t],0<this.integrationFilterPlaceHolder.length&&this.integrationFilterPlaceHolder[0].appendChild(this.renderOption(r))},n.prototype.createPredictiveSearchListItem=function(n,t,i,r){var u=t.substr(0,i);return u+="<strong>"+t.substr(i,r-i)+"<\/strong>",u+=t.substr(r),$('<a class="list-group-item" data-linktype="Integration Card" data-linkdetail="'+t+'"><\/a>').attr("href",n).html(u)},n.prototype.renderOption=function(n){var t,i,u,r;if(null!=n)return t=document.createElement("label"),t.setAttribute("class","category-container"),i=document.createElement("input"),i.setAttribute("type","checkbox"),i.setAttribute("name",n.id),i.setAttribute("value",n.id),i.setAttribute("data-linktype","Filter Control"),i.setAttribute("data-linkdetail",n.id),t.innerHTML=n.name,t.insertBefore(i,t.firstChild),u=document.createElement("br"),t.appendChild(u),r=document.createElement("span"),r.setAttribute("class","checkmark"),t.appendChild(r),t},n.prototype.clearCards=function(){this.integrationCardsPlaceHolder.empty()},n.prototype.clearFilter=function(){this.integrationFilterPlaceHolder.empty()},n.prototype.renderCard=function(n){var r=document.createElement("div"),u,s,t,i,f,e,o;return r.setAttribute("class","integration-card thumbnail col-lg-2-4 col-md-3 col-xs-6"),u=document.createElement("div"),u.setAttribute("class","card-title"),u.innerHTML=n.title,r.appendChild(u),s=document.createElement("img"),s.setAttribute("src",n.imageSrc),r.appendChild(s),t=document.createElement("a"),t.setAttribute("data-linktype","Integration"),t.setAttribute("data-linkdetail",n.title),t.setAttribute("href",n.linkUrl),t.setAttribute("class","overlay "+n.color+"-background"),t.setAttribute("tabindex","0"),""!=n.linkTarget&&null!=n.linkTarget&&t.setAttribute("target",n.linkTarget),i=document.createElement("div"),i.setAttribute("class","headline"),f=document.createElement("div"),f.setAttribute("class","title"),f.innerHTML=n.title,i.appendChild(f),e=document.createElement("div"),e.setAttribute("class","content"),e.innerHTML=n.description,i.appendChild(e),o=document.createElement("p"),o.setAttribute("class","card-link"),o.innerHTML=n.linkText,i.appendChild(o),t.appendChild(i),r.appendChild(t),r},n}();r.IntegrationsRenderingManager=u},{}],23:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.IntegrationsModule||(i.IntegrationsModule={});u=function(){function n(n){this.renderingManager=n}return n.prototype.splitToTerms=function(n){return n.replace(/ /g,"|")},n.prototype.searchItems=function(n,t,i){var u,s,f,h,e,c,r;if(void 0===i&&(i=!1),u=[],0<t.length)for(var l=new RegExp(this.splitToTerms(t)),o=0,a=n;o<a.length;o++)s=(r=a[o]).title.toLowerCase(),f=s.indexOf(t),-1<f?(i&&(r.html=this.renderingManager.createPredictiveSearchListItem(r.linkUrl,r.title,f,f+t.length)),r.priority=0===f?1:2,u.push(r)):l.test(s)?(i&&(r.html=this.renderingManager.createPredictiveSearchListItem(r.linkUrl,r.title,0,0)),r.priority=3,u.push(r)):(h=r.description.toLowerCase(),-1<h.indexOf(t)?(i&&(r.html=this.renderingManager.createPredictiveSearchListItem(r.linkUrl,r.title,0,0)),r.priority=4,u.push(r)):l.test(h)&&(i&&(r.html=this.renderingManager.createPredictiveSearchListItem(r.linkUrl,r.title,0,0)),r.priority=5,u.push(r)));else for(e=0,c=n;e<c.length;e++)r=c[e],i&&(r.html=this.renderingManager.createPredictiveSearchListItem(r.linkUrl,r.title,0,0)),r.priority=1,u.push(r);return u.sort(function(n){return n.priority})},n}();r.SearchEngine=u},{}],24:[function(n,t,i){var r,u,f;Object.defineProperty(i,"__esModule",{value:!0});r=i.ProductComparison||(i.ProductComparison={});u=r.ProductBenefits||(r.ProductBenefits={});f=function(){function n(){this.productBenefitsComponent=$(".product-benefits-main");this.hiddenItems=$(".benefits-items-container .benefit-item-hidden");this.viewMoreButton=$(".benefits-view-container .benefits-view-more");this.viewLessButton=$(".benefits-view-container .benefits-view-less");null!=this.productBenefitsComponent&&0<this.productBenefitsComponent.length&&(console.log("benefits rendered"),this.initializeButtonEvents())}return n.prototype.initializeButtonEvents=function(){var n=this;this.viewMoreButton.click(function(){n.hiddenItems.removeClass("hidden");n.viewMoreButton.hide();n.viewLessButton.show()});this.viewLessButton.click(function(){n.hiddenItems.addClass("hidden");n.viewLessButton.hide();n.viewMoreButton.show()})},n}();u.IndexPageController=f},{}],25:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=n("../IntegrationsModule/_CheckBoxFilter"),u=n("./_RenderingManager");!function(n){var t,i,e=r.IntegrationsModule.CheckBoxBoxFilter,o=u.ProductPricingModule.ProductPricingRenderingManager,f;(i=t||(t={}))[i.Show=0]="Show";i[i.Hide=1]="Hide";f=function(){function n(){var n=this;this.productPricingComponent=$(".product-pricing");this.pricingTables=$(".product-pricing .pricing-table");this.searchBtn=$(".product-pricing #search-btn");this.searchClearBtn=$(".product-pricing #search-clear-btn");this.searchInput=$(".product-pricing .search-input");this.filterCategories=$(".product-pricing .check-box-box-filter .category-container>input");this.notFoundEl=$(".product-pricing .not-found-content");this.isSearchPerformed=!1;this.isCategorySelected=!1;this.isContentFound=!1;this.isNotFoundContentReplaced=!1;this.availableTags=[];this.searchDatalinkDetail=$(this.searchBtn).attr("data-linkdetail");this.availableCategories=[];this.GetSelectedCategoriesNames=function(){var t="";return n.selectedFilterCategories=$(".product-pricing .check-box-box-filter .category-container-selected>input"),n.selectedFilterCategories.each(function(i,r){t+=$(r).attr("name");i<n.selectedFilterCategories.length-1&&(t+=", ")}),t};this.makeItBold=function(n){return"<b>"+n+"<\/b>"};this.handleNotFountContent=function(){var r,t,i,u;n.isContentFound?$(n.notFoundEl).hide():(t=n.makeItBold($(n.searchInput).val()),i=n.GetSelectedCategoriesNames(),(""===t?t=n.makeItBold(i):""!=i&&(t+=" in "+n.makeItBold(i)),t="<span>"+t+"<\/span>",n.isNotFoundContentReplaced)?(u=new RegExp("<span>(.*?)<\/span>"),r=$(n.notFoundEl).html().replace(u,t)):(r=$(n.notFoundEl).html().replace("{searchTerm}",t),n.isNotFoundContentReplaced=!0),$(n.notFoundEl).html(r),$(n.notFoundEl).show())};this.performSearch=function(){var t=null==$(n.searchInput).val()?"":$(n.searchInput).val().toLowerCase();""==t?($(n.searchBtn).show(),$(n.searchClearBtn).hide()):($(n.searchBtn).hide(),$(n.searchClearBtn).show());$(n.searchBtn).attr("data-linkdetail",n.searchDatalinkDetail+":"+t.charAt(0).toUpperCase()+t.slice(1));n.isSearchPerformed=!0;n.isContentFound=!1;n.isCategorySelected?$(n.pricingTables).each(function(i,r){$(r).is(":visible")&&(-1===$(r).attr("product-name").indexOf(t)&&-1===$(r).attr("short-product-name").indexOf(t)?$(r).hide():n.isContentFound=!0)}):$(n.pricingTables).each(function(i,r){-1<$(r).attr("product-name").indexOf(t)||-1<$(r).attr("short-product-name").indexOf(t)?($(r).show(),n.isContentFound=!0):$(r).hide()});n.initTags();n.handleNotFountContent()};this.showHideAllPricingTable=function(i){switch(i){case t.Hide:$(n.pricingTables).each(function(n,t){$(t).hide()});break;case t.Show:default:$(n.pricingTables).each(function(n,t){$(t).show()})}};this.performCategorySearch=function(){if(n.selectedFilterCategories=$(".product-pricing .check-box-box-filter .category-container-selected>input"),n.isSearchPerformed){if(0==n.selectedFilterCategories.length)return n.showHideAllPricingTable(t.Hide),n.isCategorySelected=!1,void n.performSearch();n.isCategorySelected=!0;n.isContentFound=!1;n.showHideAllPricingTable(t.Hide);var i=null==$(n.searchInput).val()?"":$(n.searchInput).val().toLowerCase();n.selectedFilterCategories.each(function(t,r){var u=$(r).attr("name").toLowerCase();$(n.pricingTables).each(function(t,r){-1<$(r).attr("category").indexOf(u)&&(-1<$(r).attr("product-name").indexOf(i)||-1<$(r).attr("short-product-name").indexOf(i))&&($(r).show(),n.isContentFound=!0)})})}else 0==n.selectedFilterCategories.length?(n.showHideAllPricingTable(t.Show),n.isCategorySelected=!1,n.isContentFound=!0):(n.isCategorySelected=!0,n.isContentFound=!1,n.showHideAllPricingTable(t.Hide),n.selectedFilterCategories.each(function(t,i){var r=$(i).attr("name").toLowerCase();$(n.pricingTables).each(function(t,i){-1<$(i).attr("category").indexOf(r)&&($(i).show(),n.isContentFound=!0)})}));n.initTags();n.handleNotFountContent()};this.initTags=function(){n.availableTags=[];$(n.pricingTables).each(function(t,i){$(i).is(":visible")&&n.availableTags.push($(i).attr("product-name"))});n.initializeAutocomplete()};this.RegisterEvents=function(){$(n.searchBtn).click(function(){n.performSearch()});$(n.searchInput).on("change",function(){setTimeout(n.performSearch,100)});$(n.searchInput).keyup(function(t){13===t.keyCode&&n.performSearch()});$(n.searchClearBtn).click(function(){$(n.searchInput).val("");$(n.pricingTables).show();$(n.searchBtn).show();$(n.searchClearBtn).hide();n.isSearchPerformed=!1;n.isCategorySelected?n.performCategorySearch():$(n.notFoundEl).hide()})};this.initializeAutocomplete=function(){if(window&&window.autocomplete)window.autocomplete(document.getElementById("search-input"),n.availableTags);else var t=setInterval(function(){window&&window.autocomplete&&(window.autocomplete(document.getElementById("search-input"),n.availableTags),clearInterval(t))},50)};null!=this.productPricingComponent&&0<this.productPricingComponent.length&&(this.renderingManager=new o,this.categoryFilter=new e(".check-box-box-filter",this.renderingManager),this.categoryFilter.subscribeToFilterChangeEvent(function(){n.performCategorySearch()}),this.GetCategories(),this.RegisterEvents(),this.initTags())}return n.prototype.GetCategories=function(){var n=this;$(".check-box-box-filter .category-container>input").each(function(t,i){n.availableCategories.push({name:$(i).attr("name"),id:$(i).attr("data-linktype"),count:void 0})});this.categoryFilter.initOptions(this.availableCategories)},n}();n.IndexPageController=f}(i.ProductPricingModule||(i.ProductPricingModule={}))},{"../IntegrationsModule/_CheckBoxFilter":18,"./_RenderingManager":26}],26:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.ProductPricingModule||(i.ProductPricingModule={});u=function(){function n(){this.productPricingFilterPlaceHolder=$(".integrations-filter .options-panel")}return n.prototype.renderFilterOptions=function(n){var t,i,r;for(this.clearFilter(),t=0,i=n;t<i.length;t++)r=i[t],0<this.productPricingFilterPlaceHolder.length&&this.productPricingFilterPlaceHolder[0].appendChild(this.renderOption(r))},n.prototype.clearFilter=function(){this.productPricingFilterPlaceHolder.empty()},n.prototype.renderOption=function(n){var t,i,u,r;if(null!=n)return t=document.createElement("label"),t.setAttribute("class","category-container"),i=document.createElement("input"),i.setAttribute("type","checkbox"),i.setAttribute("name",n.id),i.setAttribute("value",n.id),i.setAttribute("data-linktype","Filter Control"),i.setAttribute("data-linkdetail",n.id),t.innerHTML=n.name,t.insertBefore(i,t.firstChild),u=document.createElement("br"),t.appendChild(u),r=document.createElement("span"),r.setAttribute("class","checkmark"),t.appendChild(r),t},n}();r.ProductPricingRenderingManager=u},{}],27:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=n("./_SupportProductHero"),u=function(){(new r.SupportProductHero).init()};i.Product=u},{"./_SupportProductHero":28}],28:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=n("../Helpers/_CookieHelper"),u=function(){function n(){var n=document.getElementsByClassName("support-product-hero");1===n.length&&(this.supportProductHero=n[0])}return n.prototype.init=function(){var n=this;this.supportProductHero&&window.addEventListener("DOMContentLoaded",function(){n.handleEVarEvent();n.handlePersonalization();n.supportProductHero.setAttribute("style","")})},n.prototype.handleEVarEvent=function(){void 0!==window.sitecat&&void 0!==window.sitecat.eVar24&&r.CookieHelper.setCookie("SW_VisitCount",window.sitecat.eVar24,30)},n.prototype.handlePersonalization=function(){var t;if("true"===this.supportProductHero.getAttribute("data-personalize-content").toLowerCase()){var n=r.CookieHelper.getCookie("SWI_Referral"),s=r.CookieHelper.getCookie("CPDetails"),f=r.CookieHelper.getCookie("SW_VisitCount"),e=0,i=document.querySelectorAll(".tabs-section li.tab a");if(0<f.length&&(e=parseInt(f)),0===n.length&&(n=r.CookieHelper.getCookie("Referal_Cookie")),t=void 0,t=0<n.length&&"ORGANIC"!==n||0<s.length||1<e?i[0]:i[i.length-1]){t.parentElement.classList.add("active");for(var h=t.getAttribute("data-target"),u=0,o=Array.from(document.querySelectorAll(h));u<o.length;u++)o[u].classList.add("active")}}},n}();i.SupportProductHero=u},{"../Helpers/_CookieHelper":11}],29:[function(n,t,i){var r;Object.defineProperty(i,"__esModule",{value:!0});r=function(){this.page=0;this.itemsPerPage=4;this.productsNames=[];this.typesNames=[];this.subTypesNames=[];this.industriesNames=[];this.solutionsNames=[];this.searchTerm=""};(i.ResourceCenterV2Module||(i.ResourceCenterV2Module={})).RequestModel=r},{}],30:[function(n,t,i){var u=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;0<=o;o--)(f=n[o])&&(u=(e<3?f(u):3<e?f(t,i,u):f(t,i))||u);return 3<e&&u&&Object.defineProperty(t,i,u),u},f=this&&this.__metadata||function(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)},o,s,r,h,e;Object.defineProperty(i,"__esModule",{value:!0});e=n("../../Helpers/_MapHelper");o=i.ResourceCenterV2Module||(i.ResourceCenterV2Module={});s=e.Helpers.MapHelper;r=e.Helpers.JsonProperty;h=function(){function n(){this.resources=void 0;this.featuredResources=void 0;this.totalResults=void 0;this.status=void 0;this.errorMessage=void 0}return n.parseJsonObject=function(t){return s.deserialize(n,t)},u([r("Status"),f("design:type",Number)],n.prototype,"status",void 0),u([r("ErrorMessage"),f("design:type",String)],n.prototype,"errorMessage",void 0),u([r({clazz:String,name:"Resources"}),f("design:type",Array)],n.prototype,"resources",void 0),u([r({clazz:String,name:"FeaturedResources"}),f("design:type",Array)],n.prototype,"featuredResources",void 0),u([r("TotalResults"),f("design:type",Number)],n.prototype,"totalResults",void 0),n}();o.ResponseModel=h},{"../../Helpers/_MapHelper":13}],31:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r,u,f,e,o,s,h,c,l=n("../Shared/Filters/_Filters"),a=n("../Shared/FiltersSelection/_FiltersSelection"),v=n("../Shared/SearchBox/_SearchBox"),y=n("../Helpers/_AjaxHelper"),p=n("./Models/_ResponseModel"),w=n("./Models/_RequestModel");r=i.ResourceCenterV2Module||(i.ResourceCenterV2Module={});u=p.ResourceCenterV2Module.ResponseModel;f=w.ResourceCenterV2Module.RequestModel;e=l.Shared.Filters;o=a.Shared.FiltersSelection;s=v.Shared.SearchBox;h=y.Helpers.AjaxHelper;c=function(){function n(){var n=this,i,r,t,u;(this.indexPageComponent=$(".resource-center-index"),this._mobileBrakpoint=992,this.noOfColumns=2,this.currentPage=0,this.itemsPerPage=10,this.stopScrolling=!1,this.currentscrollHeight=0,this.pendingImagesCount=0,this.indexPageComponent&&0<this.indexPageComponent.length)&&(this.spinner=this.indexPageComponent.find(".items-loader"),this.filtersSelection=new o(".resource-center-filters-selection"),this.filters=new e(".resource-center-filters",this.filtersSelection),this.featuredResourcesSection=this.indexPageComponent.find(".resource-center-section.featured-resources"),this.otherResourcesSection=this.indexPageComponent.find(".resource-center-section.other-resources"),this.searchBox=new s(".resource-center-search-box",{enterKeyPressEventEnabled:!0,typingEventEnabled:!1,typingDelayTime:500}),i=this.indexPageComponent.data("initial-total-results"),r=parseInt(i,10),this.filtersSelection.setNoOfResults(r),this.filters.subscribeToFiltersUpdatedEvent(function(){n.fullRefresh(!0)}),this.searchBox.subscribeToSearchExecuteEvent(function(){n.fullRefresh(!0)}),$(window).on("load resize",function(){n.resizeAllGridItems()}),$(window).on("scroll",function(){var t=$(document).height();t-300<Math.floor($(window).height()+$(window).scrollTop())&&n.currentscrollHeight<t&&(n.partialRefresh(),n.currentscrollHeight=t)}),$(window).on("popstate",function(t){var i=t.originalEvent.state,r;i&&(n.searchBox.setValue(i.searchTerm,!1),r=[],i.typesNames&&(r=r.concat(i.typesNames)),i.subTypesNames&&(r=r.concat(i.subTypesNames)),i.productsNames&&(r=r.concat(i.productsNames)),i.industriesNames&&(r=r.concat(i.industriesNames)),i.solutionsNames&&(r=r.concat(i.solutionsNames)),n.filters.setCheckedCheckboxesByNames(r),n.fullRefresh(!1))}),t=this.prepareRequest(),u=window.location.href.split("?")[0]+this.prepareQueryStringBasedOnRequestModel(t),history.pushState(t,"",u),this.resizeAllGridItems())}return n.prototype.resizeGridItem=function(n){var t=document.getElementsByClassName("resource-center-section-items")[0],r=parseInt(window.getComputedStyle(t).getPropertyValue("grid-auto-rows")),i=parseInt(window.getComputedStyle(t).getPropertyValue("grid-row-gap")),u=Math.ceil((n.querySelector(".resource-center-item-content").getBoundingClientRect().height+i)/(r+i));n.style.gridRowEnd="span "+u},n.prototype.resizeAllGridItems=function(){for(var t=document.getElementsByClassName("resource-center-item"),n=0;n<t.length;n++)this.resizeGridItem(t[n])},n.prototype.imageLoadHandler=function(){0<this.pendingImagesCount&&(this.pendingImagesCount-=1);0==this.pendingImagesCount&&(this.resizeAllGridItems(),this.pendingImagesCount-=1)},n.prototype.initLayout=function(n){var t=this,i;this.columnsHeights=Array(this.noOfColumns).fill(0);n.addClass("resource-center-section-columns");n.find(".resource-center-item").each(function(n,i){var r=$(i).find(".resource-center-item-media").first(),u,f;r&&r.height()<=50&&(u=r.attr("data-aspect-ratio")?+r.attr("data-aspect-ratio"):.65,f=$(i).width()*u,t.columnsHeights[n%2]+=f);t.columnsHeights[n%2]+=$(i).outerHeight()+30});i=Math.max.apply(Math,this.columnsHeights);n.css("height",i+10)},n.prototype.fullRefresh=function(n){this.currentPage=0;this.featuredResourcesSection.hide();this.otherResourcesSection.hide();this.spinner.show();this.featuredResourcesSection.find(".resource-center-section-items").empty();this.otherResourcesSection.find(".resource-center-section-items").empty();this.loadResourceItems(!0,n)},n.prototype.partialRefresh=function(){this.stopScrolling||(this.currentPage++,this.spinner.show(),this.loadResourceItems(!1,!1))},n.prototype.loadResourceItems=function(n,t){var f;this.filtersSelection.setNoOfResults(0);var r=this,u={method:"POST",dataType:"json"},i=this.prepareRequest();t&&(f=window.location.href.split("?")[0]+this.prepareQueryStringBasedOnRequestModel(i),history.pushState(i,"",f));u.data=i;$.ajax(h.getAjaxUrl("/solarapi/resourcecenter/getresourcecenteritems"),u).done(function(t){r.onSuccessResourcesLoad(t,n)}).fail(function(n,t){alert("Request failed.  Returned status of "+t);r.onErrorResourcesLoad(n.toString())})},n.prototype.onSuccessResourcesLoad=function(n,t){var e=this,i;if(n&&(this.pendingImagesCount=0,i=u.parseJsonObject(n),null!=i.status&&0<i.status)){t&&(this.currentscrollHeight=0);this.filtersSelection.setNoOfResults(i.totalResults);var o=$(i.featuredResources.join("")),s=$(i.resources.join("")),r=$(o).find("img"),f=$(s).find("img");t&&0<r.length&&(this.pendingImagesCount+=r.length,$(r).on("load",function(){e.imageLoadHandler()}));0<f.length&&(this.pendingImagesCount+=f.length,$(f).on("load",function(){e.imageLoadHandler()}));t&&0<i.featuredResources.length&&(this.featuredResourcesSection.find(".resource-center-section-items").append(o),this.featuredResourcesSection.show());0<i.resources.length&&(this.otherResourcesSection.find(".resource-center-section-items").append(s),this.otherResourcesSection.show());this.stopScrolling=i.totalResults-i.featuredResources.length<=(this.currentPage+1)*this.itemsPerPage}this.spinner.hide();this.resizeAllGridItems()},n.prototype.onErrorResourcesLoad=function(n){console.error(n)},n.prototype.prepareRequest=function(){var n=new f,i,t;for(n.page=this.currentPage,n.itemsPerPage=this.itemsPerPage,n.searchTerm=this.searchBox.getValue(),i=this.filters.getFilterItems(),t=0;t<i.length;t++)switch(i[t].queryKey){case"t":n.typesNames.push(i[t].label);break;case"st":n.subTypesNames.push(i[t].label);break;case"p":n.productsNames.push(i[t].label);break;case"i":n.industriesNames.push(i[t].label);break;case"s":n.solutionsNames.push(i[t].label)}return n},n.prototype.prepareQueryStringBasedOnRequestModel=function(n){var t="",i;if(n){if(n.typesNames&&0<n.typesNames.length)for(t+="t=",i=0;i<n.typesNames.length;i++)t=t+(0<i?",":"")+n.typesNames[i];if(n.subTypesNames&&0<n.subTypesNames.length)for(t=t+(0<t.length?"&":"")+"st=",i=0;i<n.subTypesNames.length;i++)t=t+(0<i?",":"")+n.subTypesNames[i];if(n.productsNames&&0<n.productsNames.length)for(t=t+(0<t.length?"&":"")+"p=",i=0;i<n.productsNames.length;i++)t=t+(0<i?",":"")+n.productsNames[i];if(n.industriesNames&&0<n.industriesNames.length)for(t=t+(0<t.length?"&":"")+"i=",i=0;i<n.industriesNames.length;i++)t=t+(0<i?",":"")+n.industriesNames[i];if(n.solutionsNames&&0<n.solutionsNames.length)for(t=t+(0<t.length?"&":"")+"s=",i=0;i<n.solutionsNames.length;i++)t=t+(0<i?",":"")+n.solutionsNames[i];n.searchTerm&&(t=t+(0<t.length?"&":"")+"searchTerm="+n.searchTerm)}return 0<t.length?"?"+t:""},n}();r.IndexPageController=c},{"../Helpers/_AjaxHelper":9,"../Shared/Filters/_Filters":42,"../Shared/FiltersSelection/_FiltersSelection":41,"../Shared/SearchBox/_SearchBox":44,"./Models/_RequestModel":29,"./Models/_ResponseModel":30}],32:[function(n,t,i){var r;Object.defineProperty(i,"__esModule",{value:!0});r=function(){this.page=0;this.itemsPerPage=4;this.searchTerm=""};(i.ResourceCenter||(i.ResourceCenter={})).RequestModel=r},{}],33:[function(n,t,i){var u=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;0<=o;o--)(f=n[o])&&(u=(e<3?f(u):3<e?f(t,i,u):f(t,i))||u);return 3<e&&u&&Object.defineProperty(t,i,u),u},f=this&&this.__metadata||function(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)},h,e,r,o,c,s,l;Object.defineProperty(i,"__esModule",{value:!0});s=n("../../Helpers/_MapHelper");l=n("../../Filters/Models/_FilterGeneralInfoModel");h=i.ResourceCenter||(i.ResourceCenter={});e=s.Helpers.MapHelper;r=s.Helpers.JsonProperty;o=l.Filters.FilterGeneralInfo;c=function(){function n(){this.products={};this.categories={};this.types={};this.resources=void 0;this.featuredResources=void 0;this.totalResults=void 0;this.status=void 0;this.errorMessage=void 0}return n.parseJsonObject=function(t){var r=e.deserialize(n,t),i;for(i in t.Products)t.Products.hasOwnProperty(i)&&(r.products[i]=e.deserialize(o,t.Products[i]));for(i in t.Categories)t.Categories.hasOwnProperty(i)&&(r.categories[i]=e.deserialize(o,t.Categories[i]));for(i in t.Types)t.Types.hasOwnProperty(i)&&(r.types[i]=e.deserialize(o,t.Types[i]));return r},u([r("Status"),f("design:type",Number)],n.prototype,"status",void 0),u([r("ErrorMessage"),f("design:type",String)],n.prototype,"errorMessage",void 0),u([r({clazz:String,name:"Resources"}),f("design:type",Array)],n.prototype,"resources",void 0),u([r({clazz:String,name:"FeaturedResources"}),f("design:type",Array)],n.prototype,"featuredResources",void 0),u([r("TotalResults"),f("design:type",Number)],n.prototype,"totalResults",void 0),n}();h.ResponseModel=c},{"../../Filters/Models/_FilterGeneralInfoModel":6,"../../Helpers/_MapHelper":13}],34:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var f,r,e,u,o,s=n("../Filters/_SelectBoxFilter"),h=n("../Filters/_TextBoxFilter"),c=n("./Models/_RequestModel");f=i.ResourceCenter||(i.ResourceCenter={});r=s.Filters.SelectBoxFilter;e=h.Filters.TextBoxFilter;u=c.ResourceCenter.RequestModel;o=function(){function n(n){var t=this,i,f;for(this._filters=[],this.searchResourcesRequestModel=new u,this.pageEventHandler=function(n,i){t.page=i-1;var r=t.filters;null!=r&&history.pushState(r,window.location.href,window.location.href);t.onApplyFilter(!0)},this.onFilterChange=function(){t.page=0;t.applyFilters()},this.applyFilters=function(){t.onApplyFilter(!1);t.updateUrl()},this.onApplyFilter=n,this.categoryFilter=new r(".resource-center-category","categories"),this.productFilter=new r(".resource-center-product","products"),this.typeFilter=new r(".resource-center-type","types"),this.searchTermFilter=new e(".resource-center-landing #custom-search-input"),this._filters.push(this.categoryFilter,this.productFilter,this.typeFilter,this.searchTermFilter),i=0,f=this._filters;i<f.length;i++)f[i].subscribeToFilterChangeEvent(function(){t.onFilterChange()});this.initClearFilterButton()}return Object.defineProperty(n.prototype,"filters",{get:function(){return this.searchResourcesRequestModel.categories=this.categoryFilter.isEmpty()?"":this.categoryFilter.value,this.searchResourcesRequestModel.products=this.productFilter.isEmpty()?"":this.productFilter.value,this.searchResourcesRequestModel.types=this.typeFilter.isEmpty()?"":this.typeFilter.value,this.searchResourcesRequestModel.searchTerm=this.searchTermFilter.isEmpty()?"":this.searchTermFilter.value,this.searchResourcesRequestModel},set:function(n){null!=n&&(this.categoryFilter.value=n.categories,this.productFilter.value=n.products,this.typeFilter.value=n.types,this.searchTermFilter.value=n.searchTerm,this.page=n.page)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"page",{get:function(){return this.searchResourcesRequestModel.page},set:function(n){this.searchResourcesRequestModel.page=null!=n?n:0},enumerable:!0,configurable:!0}),n.prototype.hideFilters=function(){for(var i,n=0,t=this._filters;n<t.length;n++)i=t[n],i instanceof r&&i.hide()},n.prototype.showFilters=function(){for(var n=0,t=this._filters;n<t.length;n++)t[n].show()},n.prototype.resetFiltersToInitial=function(){this.categoryFilter.value=this.onLoadResourcesRequestModel.categories;this.productFilter.value=this.onLoadResourcesRequestModel.products;this.typeFilter.value=this.onLoadResourcesRequestModel.types;this.searchTermFilter.value=this.onLoadResourcesRequestModel.searchTerm;this.page=0},n.prototype.areFiltersEqual=function(n){return!(n.searchTerm!==this.searchTermFilter.value||n.categories!==this.categoryFilter.value||n.products!==this.productFilter.value||n.types!==this.typeFilter.value||n.page!==this.page)},n.prototype.initFiltersOptions=function(n){$(".filter-items > span").remove();this.categoryFilter.initOptions(n.categories);this.productFilter.initOptions(n.products);this.typeFilter.initOptions(n.types);null==this.onLoadResourcesRequestModel&&this.storeFirstLoadFilters()},n.prototype.initSeeMoreLikeThisButton=function(){var n=this;$(".view-all-resources-by-type").click(function(t){return t.stopPropagation(),n.resetFilters(),n.typeFilter.value=t.currentTarget.dataset.typeId,n.applyFilters(),!1})},n.prototype.storeFirstLoadFilters=function(){this.onLoadResourcesRequestModel=new u;this.onLoadResourcesRequestModel.categories=this.categoryFilter.value;this.onLoadResourcesRequestModel.products=this.productFilter.value;this.onLoadResourcesRequestModel.types=this.typeFilter.value;this.onLoadResourcesRequestModel.searchTerm=this.searchTermFilter.value;this.onLoadResourcesRequestModel.page=0},n.prototype.initClearFilterButton=function(){var n=this;$(".clear-filters").show();$(".clear-filters").click(function(){n.resetFilters();n.applyFilters()})},n.prototype.resetFilters=function(){for(var i,n=0,t=this._filters;n<t.length;n++)i=t[n],i.isEmpty()||i.reset();return!(this.page=0)},n.prototype.areFiltersEmpty=function(){for(var n=0,t=this._filters;n<t.length;n++)if(!t[n].isEmpty())return!1;return!0},n.prototype.generateFilterUrl=function(){for(var t,i="",n=0,r=this._filters;n<r.length;n++)t=r[n],t.isEmpty()||(i+=t.url);return i},n.prototype.updateUrl=function(){var n=window.location.href.substring(0,window.location.href.indexOf("/resources")+10),t=this.generateFilterUrl();""!==t&&(n=n+"/filter"+t);history.pushState(this.filters,n,n)},n}();f.FilterManager=o},{"../Filters/_SelectBoxFilter":7,"../Filters/_TextBoxFilter":8,"./Models/_RequestModel":32}],35:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r,u,f,e,o,s,h,c=n("./Models/_ResponseModel"),l=n("./_Pagination"),a=n("./_FilterManager"),v=n("./_LandingPageResourcesPlaceholder"),y=n("../Helpers/_AjaxHelper");r=i.ResourceCenter||(i.ResourceCenter={});u=c.ResourceCenter.ResponseModel;f=l.ResourceCenter.Pagination;e=a.ResourceCenter.FilterManager;o=v.ResourceCenter.LandingPageResourcesPlaceholder;s=y.Helpers.AjaxHelper;h=function(){function n(){var n=this,t;(this.resourceLandingComponent=$(".resource-center-landing"),this.itemsPerPage=$(".resource-center-landing").data("items-per-page"),this.initialResourcesSelector="#initialResources",this.resourcePlaceholderManager=new o,this.allowedLanguagesSubfolders=["de","ja","es","fr","zh","ko"],this.loadResources=function(t){var r=!t,i;if(n.resourcePlaceholderManager.clearResourcesBuckets(r),n.resourcePlaceholderManager.resourceLoadingSpinner.show(),r&&n.pagination.hide(),i=$(n.initialResourcesSelector),0<i.length&&0===n.filterManager.page)return n.onSuccessResourcesLoad(JSON.parse(i.val().toString()),r),void i.remove();var u=n,f={method:"POST",dataType:"json"},e=n.filterManager.filters;f.data=e;$.ajax(s.getAjaxUrl("/solarapi/resourcecenter/getitems"),f).done(function(n){u.onSuccessResourcesLoad(n,r);i.remove()}).fail(function(n,t){alert("Request failed.  Returned status of "+t);u.onErrorResourcesLoad(n.toString())})},null!=this.resourceLandingComponent&&0<this.resourceLandingComponent.length)&&(this.filterManager=new e(this.loadResources),this.pagination=new f("#resource-pagination",function(t,i){n.filterManager.pageEventHandler(t,i)},this.itemsPerPage),this.initHistoryChangeEvent(),t=$(this.initialResourcesSelector),null!=history.state&&(0<t.length&&!(0<history.state.page)||(this.filterManager.filters=history.state)),this.loadResources(!1))}return n.prototype.onSuccessResourcesLoad=function(n,t){if(null!=n){var i=u.parseJsonObject(n);null!=i.status&&0<i.status?(this.resourcePlaceholderManager.resourceLoadingSpinner.hide(),(!i.featuredResources||i.featuredResources.length<1)&&(!i.resources||i.resources.length<1)?(this.resourcePlaceholderManager.noResultsPlaceholder.show(),this.filterManager.hideFilters()):(this.filterManager.initFiltersOptions(i),this.filterManager.showFilters()),t&&(this.pagination.initPagination(i.totalResults,this.filterManager.page),this.resourcePlaceholderManager.setFeaturedResources(i.featuredResources)),this.resourcePlaceholderManager.setResources(i.resources),this.filterManager.initSeeMoreLikeThisButton()):this.onErrorResourcesLoad(n.ErrorMessage)}else this.onErrorResourcesLoad("Unhandled error occured while loading resources.")},n.prototype.onErrorResourcesLoad=function(n){this.resourcePlaceholderManager.resourceLoadingSpinner.hide();n&&this.resourcePlaceholderManager.showError(n)},n.prototype.initHistoryChangeEvent=function(){var n=this;window.onpopstate=function(t){if(t&&$(".resource-center-landing")&&0<$(".resource-center-landing").length)if(null==t.state||null==t.state)n.filterManager.resetFiltersToInitial(),n.loadResources(!1);else{var i=t.state;null==i||n.filterManager.areFiltersEqual(i)||(n.filterManager.filters=i,n.loadResources(!1))}}},n}();r.LandingPageController=h},{"../Helpers/_AjaxHelper":9,"./Models/_ResponseModel":33,"./_FilterManager":34,"./_LandingPageResourcesPlaceholder":36,"./_Pagination":37}],36:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.ResourceCenter||(i.ResourceCenter={});u=function(){function n(){this.resourcePlaceholder=$(".resource-center-elements");this.resourceItemsPlaceholder=$(".resource-center-elements .container #more-results-placeholder");this.featuredResourcePlaceholder=$(".resource-center-featured-elements");this.featuredResourceSlidesPlaceholderLargeScreen=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder-large-screen .carousel-inner");this.featuredResourceSlidesPlaceholder=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder .carousel-inner");this.featuredResourceSlidesIndicatorsLargeScreen=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder-large-screen .carousel-indicators");this.featuredResourceSliderPlaceholderLargeScreen=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder-large-screen");this.featuredResourceSliderPlaceholder=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder");this.featuredResourceSlidesIndicators=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder .carousel-indicators");this.resourceLoadingErrorPlaceholder=$(".resource-center-landing #errorSummary");this.noResultsPlaceholder=$(".resource-center-landing .resource-center-no-results");this.resourceLoadingSpinner=$(".resource-center-landing .items-loader")}return n.prototype.showError=function(n){this.resourceLoadingErrorPlaceholder.text(n);this.resourceLoadingErrorPlaceholder.show()},n.prototype.setFeaturedResources=function(n){null!=n&&0<n.length&&(this.featuredResourcePlaceholder.show(),this.noResultsPlaceholder.hide(),this.fillFeaturedResourcesSlidesLargeScreen(n),this.fillFeaturedResourcesSlidesTabletScreen(n))},n.prototype.setResources=function(n){var t,i,r;if(null!=n&&0<n.length)for(this.resourcePlaceholder.show(),this.noResultsPlaceholder.hide(),t=0,i=n;t<i.length;t++)r=i[t],this.resourceItemsPlaceholder.append(r)},n.prototype.fillFeaturedResourcesSlidesLargeScreen=function(n){this.featuredResourceSliderPlaceholderLargeScreen.show();4<n.length?this.featuredResourceSliderPlaceholderLargeScreen.removeClass("remove-sliding"):this.featuredResourceSliderPlaceholderLargeScreen.addClass("remove-sliding");this.featuredResourceSliderPlaceholderLargeScreen.find(".carousel").carousel("cycle");var t='<div class="col-md-12 item active">',i='<li data-target="#FeaturedResourcesLargeScreen-carousel" data-slide-to="0" class="active"><\/li>',r=0,u=0;n.forEach(function(n){r<4?r++:(r=1,t+='<\/div><div class="col-md-12 item">',i=i+'<li data-target="#FeaturedResourcesLargeScreen-carousel" data-slide-to="'+ ++u+'"><\/li>');t+=n});t+="<\/div>";this.featuredResourceSlidesPlaceholderLargeScreen.append(t);this.featuredResourceSlidesIndicatorsLargeScreen.append(i)},n.prototype.fillFeaturedResourcesSlidesTabletScreen=function(n){1<n.length?this.featuredResourceSliderPlaceholder.removeClass("remove-sliding"):this.featuredResourceSliderPlaceholder.addClass("remove-sliding");this.featuredResourceSliderPlaceholder.show();this.featuredResourceSliderPlaceholder.find(".carousel").carousel("cycle");var t='<div class="col-sm-12 item active">',i='<li data-target="#FeaturedResources-carousel" data-slide-to="0" class="active"><\/li>',r=0;n.forEach(function(u){r<n.length-1?(t=t+u+'<\/div><div class="col-sm-12 item">',i=i+'<li data-target="#FeaturedResources-carousel" data-slide-to="'+(r+1)+'"><\/li>'):t=t+u+"<\/div>";r++});this.featuredResourceSlidesPlaceholder.append(t);this.featuredResourceSlidesIndicators.append(i)},n.prototype.clearResourcesBuckets=function(n){this.resetResourceItemsBucket();n&&(this.resetFeaturedResourceItemsBucket(),this.resetFeaturedResourceItemsBucketLargeScreenMode())},n.prototype.resetResourceItemsBucket=function(){this.resourceItemsPlaceholder.empty();this.resourcePlaceholder.hide()},n.prototype.resetFeaturedResourceItemsBucket=function(){this.featuredResourcePlaceholder.find(".carousel").carousel("pause");this.featuredResourcePlaceholder.hide();this.featuredResourceSlidesPlaceholder.empty();this.featuredResourceSlidesIndicators.empty();this.featuredResourceSliderPlaceholder.hide()},n.prototype.resetFeaturedResourceItemsBucketLargeScreenMode=function(){this.featuredResourceSlidesPlaceholderLargeScreen.empty();this.featuredResourceSlidesIndicatorsLargeScreen.empty();this.featuredResourceSliderPlaceholderLargeScreen.hide()},n}();r.LandingPageResourcesPlaceholder=u},{}],37:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.ResourceCenter||(i.ResourceCenter={});u=function(){function n(n,t,i){null!=n&&""!==n?(this.pagination=$(n),this.pagination.on("page",t),this.itemsPerPage=i):console.log("Error in Pagination constructor, paginationSelector is empty.")}return n.prototype.initPagination=function(n,t){null!=n&&1<n&&1<Math.ceil(n/this.itemsPerPage)&&(this.pagination.show(),this.pagination.bootpag({total:Math.ceil(n/this.itemsPerPage),page:t+1,maxVisible:5,leaps:!0,firstLastUse:!0}))},n.prototype.hide=function(){this.pagination.hide()},n}();r.Pagination=u},{}],38:[function(n,t,i){var r;Object.defineProperty(i,"__esModule",{value:!0});r=function(){};(i.SEDemo||(i.SEDemo={})).RequestModel=r},{}],39:[function(n,t,i){var u=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;0<=o;o--)(f=n[o])&&(u=(e<3?f(u):3<e?f(t,i,u):f(t,i))||u);return 3<e&&u&&Object.defineProperty(t,i,u),u},f=this&&this.__metadata||function(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)},o,s,r,h,e;Object.defineProperty(i,"__esModule",{value:!0});e=n("../../Helpers/_MapHelper");o=i.SEDemo||(i.SEDemo={});s=e.Helpers.MapHelper;r=e.Helpers.JsonProperty;h=function(){function n(){this.demoItems=void 0;this.status=void 0;this.errorMessage=void 0}return n.parseJsonObject=function(t){return s.deserialize(n,t)},u([r("Status"),f("design:type",Number)],n.prototype,"status",void 0),u([r("ErrorMessage"),f("design:type",String)],n.prototype,"errorMessage",void 0),u([r({clazz:String,name:"SEDemoItems"}),f("design:type",Array)],n.prototype,"demoItems",void 0),n}();o.ResponseModel=h},{"../../Helpers/_MapHelper":13}],40:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r,u,f,e,o=n("./Models/_RequestModel"),s=n("./Models/_ResponseModel");r=i.SEDemo||(i.SEDemo={});u=o.SEDemo.RequestModel;f=s.SEDemo.ResponseModel;e=function(){function n(){var n=this,t;(this.demoLandingComponent=$(".sedemo-landing"),this.demoLoadingErrorPlaceholder=$("#demo-errorSummary"),this.demoNoResultsPlaceholder=$("#demo-noresults"),this.loadingSpinner=$(".items-loader"),this.demoItemsPlaceholder=$(".demo-items"),this.loadDemoItems=function(t,i,r,f){var s,e,o;$(".productMenuItem").removeClass("active");null!=t&&t.classList.toggle("active");n.loadingSpinner.show();n.demoItemsPlaceholder.empty();n.demoNoResultsPlaceholder.hide();s={method:"POST",dataType:"json"};e=new u;e.product=i;e.rootPath=n.rootPath;s.data=e;o=n;$.ajax("/solarapi/sedemo/getitems",s).done(function(n){f&&o.updatePageUrl(i,r);o.successDemoLoad(n)}).fail(function(n){alert("Request failed. Returned status of "+n);o.showError("Request failed")});n.loadingSpinner.hide()},$("#swisitepath").length)&&(t=JSON.parse($("#swisitepath").html()),this.rootPath=t.rootpath);null!=this.demoLandingComponent&&0<this.demoLandingComponent.length&&(this.initializeMenuEvents(),this.initHistoryChangeEvent())}return n.prototype.initializeMenuEvents=function(){for(var r=this,i=document.getElementsByClassName("category-item"),n=0;n<i.length;n++)i[n].addEventListener("click",function(){this.classList.toggle("active");var n=this.nextElementSibling;"block"===n.style.display?$(n).slideUp():$(n).slideDown()});var t=document.getElementsByClassName("productMenuItem"),u=function(n){var i=t[n].getAttribute("data-productid"),r=t[n].textContent,u=f;t[n].addEventListener("click",function(){u.loadDemoItems(this,i,r,!0)})},f=this;for(n=0;n<t.length;n++)u(n);document.getElementById("back-to-overview").addEventListener("click",function(){r.loadDemoItems(null,"","",!0)})},n.prototype.successDemoLoad=function(n){var t,i,r,u;if(null!=n&&(t=f.parseJsonObject(n),null!==t))if(null!=t.status&&1===t.status){if(0<t.demoItems.length)for(i=0,r=t.demoItems;i<r.length;i++)u=r[i],this.demoItemsPlaceholder.append(u);else this.demoNoResultsPlaceholder.show();this.scrollToFirstDemoItem()}else this.showError("Error loading demo items. Message: "+t.errorMessage)},n.prototype.showError=function(n){this.demoLoadingErrorPlaceholder.text(n);this.demoLoadingErrorPlaceholder.show()},n.prototype.updatePageUrl=function(n,t){var i=t.trim().toLowerCase(),r;i=i.split(" ").join("-");r="";r=""===n&&""===t?"/sedemo":window.location.pathname.includes("sedemo/product/")?i:"sedemo/product/"+i;window.history.pushState({id:n,productName:t},null,r)},n.prototype.scrollToFirstDemoItem=function(){if(0!==$(".demo-element").length){var n=$(".demo-element")[0],t=$(n).offset().top,i=$(n).offset().top+$(n).outerHeight(!0),r=$(window).scrollTop()+$(window).height(),u=$(window).scrollTop();(i<u&&t<u||r<t&&r<i)&&(n=$(".demo-element")[0]).scrollIntoView()}},n.prototype.initHistoryChangeEvent=function(){var n=this;window.onpopstate=function(t){if(t&&$(".sedemo-landing")&&0<$(".sedemo-landing").length)if(null!=t.state||null!=t.state){var i=$('*[data-productid="'+t.state.id+'"]')[0];n.loadDemoItems(i,t.state.id,t.state.productName,!1)}else location.reload()}},n}();r.IndexPageController=e},{"./Models/_RequestModel":38,"./Models/_ResponseModel":39}],41:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.Shared||(i.Shared={});u=function(){function n(n){this.filtersItems=[];this.chipRemovedHandler=[];this.removeAllFiltersHandler=[];n&&(n=n.startsWith(".")?n:"."+n,this.filtersSelectionContainer=$(n),this.filtersSelectionContainer&&(this.filtersSelectionComponent=this.filtersSelectionContainer.find(".sw-filters-selection"),this.filtersSelectionComponent?(this.initEvents(),this.chipsContainer=this.filtersSelectionComponent.find(".sw-filters-selection-chips"),this.noOfResultsElement=this.filtersSelectionComponent.find(".sw-filters-selection-results"),this.noOfResultsPrefix=this.noOfResultsElement.attr("data-selection-prefix"),this.noOfResultsSuffix=this.noOfResultsElement.attr("data-selection-suffix")):console.error("Filters Selection component for selector "+n+" is not rendered!")))}return n.prototype.initEvents=function(){this.removeAllFiltersEvent()},n.prototype.chipRemoveClicked=function(n){var r=this,t=$(n.target).parent(),i=this.filtersItems.findIndex(function(n){return n.item.id===t.attr("id")});this.chipRemovedHandler.slice(0).forEach(function(n){return n(r.filtersItems[i].item)});t.remove();this.filtersItems.splice(i,1);0===this.filtersItems.length&&this.filtersSelectionComponent.addClass("sw-filters-selection-hidden")},n.prototype.removeAllFiltersEvent=function(){var n=this;this.filtersSelectionComponent.find(".sw-selection-remove-all a").click(function(){n.removeAllFilters();n.removeAllFiltersHandler.slice(0).forEach(function(n){return n()})})},n.prototype.subscribeToChipRemovedEvent=function(n){this.chipRemovedHandler.push(n)},n.prototype.subscribeToRemoveAllFiltersEvent=function(n){this.removeAllFiltersHandler.push(n)},n.prototype.addChip=function(n){var r=this,t,i;-1==this.filtersItems.findIndex(function(t){return t.item.id===n.id})&&(t=$("<div/>",{text:n.label,"class":"sw-filters-selection-chip",id:n.id}),i=$("<div/>",{text:"","class":"remove-icon"}),i.on("click",function(n){return r.chipRemoveClicked(n)}),i.appendTo(t),t.appendTo(this.chipsContainer),this.filtersItems.push({item:n,domElement:t}));0<this.filtersItems.length&&this.filtersSelectionComponent.removeClass("sw-filters-selection-hidden")},n.prototype.removeChip=function(n){var t=this.filtersItems.findIndex(function(t){return t.item.id===n.id});-1<t&&(this.filtersItems[t].domElement.remove(),this.filtersItems.splice(t,1));0===this.filtersItems.length&&this.filtersSelectionComponent.addClass("sw-filters-selection-hidden")},n.prototype.removeAllFilters=function(){this.filtersItems.forEach(function(n){n.domElement.remove()});this.filtersItems=[];this.filtersSelectionComponent.addClass("sw-filters-selection-hidden")},n.prototype.setNoOfResults=function(n){if(n){var t=this.noOfResultsPrefix?this.noOfResultsPrefix+" ":"";t+=n;t=this.noOfResultsSuffix?t+" "+this.noOfResultsSuffix:t;this.noOfResultsElement.text(t)}else this.noOfResultsElement.text("")},n}();r.FiltersSelection=u},{}],42:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.Shared||(i.Shared={});u=function(){function n(n,t){void 0===t&&(t=null);var i=this;this.selectedFiltersItem=[];this.mobileTempSelectedFiltersItemsAdd=[];this.mobileTempSelectedFiltersItemsRemove=[];this.isMobile=!1;this._mobileBreakpoint=992;this.filtersUpdatedEventHandler=[];this.applyAllMobile=!0;n&&(n=n.startsWith(".")?n:"."+n,this.filtersContainer=$(n),this.filtersContainer&&(this.filtersComponent=this.filtersContainer.find(".sw-filters"),this.filtersComponent||console.error("Filters component for selector "+n+" is not rendered!"),this.applyAllMobile=this.filtersComponent.attr("data-controls-mobile")?"True"==this.filtersComponent.attr("data-controls-mobile"):this.applyAllMobile,this.filtersSelection=t,this.filtersSelection&&(this.filtersSelection.subscribeToChipRemovedEvent(function(n){return i.chipRemovedFromFiltersSelection(n)}),this.filtersSelection.subscribeToRemoveAllFiltersEvent(function(){return i.removeAllFilters()})),this.initEvents()))}return n.prototype.initEvents=function(){this.initToggle();this.initCheckboxClick();this.initSelectAll();this.initDeselectAll();this.initMobileToggle();this.initMobileCheck();this.initMobileApplyFilters();this.initMobileRemoveAllFilters()},n.prototype.initToggle=function(){this.filtersComponent.find(".sw-filters-category-title").on("click",function(n){var t=$(n.target);t.toggleClass("closed");t.siblings(".sw-filters-items").toggleClass("closed")});this.filtersComponent.find(".sw-filters-category-toggle-icon").on("click",function(n){var t=$(n.target).parent();t.toggleClass("closed");t.siblings(".sw-filters-items").toggleClass("closed")});this.filtersComponent.find(".sw-filters-item-title").on("click",function(n){var t=$(n.target);t.toggleClass("closed");t.siblings(".sw-filters-items").toggleClass("closed")});this.filtersComponent.find(".sw-filters-item-toggle-icon").on("click",function(n){var t=$(n.target).parent();t.toggleClass("closed");t.siblings(".sw-filters-items").toggleClass("closed")})},n.prototype.initCheckboxClick=function(){var n=this,t,i,r;if(this.filtersComponent.find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox").change(function(t){var i=$(t.target);n.checkboxToggle(i);n.isMobile&&n.applyAllMobile||n.executeFiltersUpdatedEvent()}),t=this.filtersComponent.find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox:checked"),0<t.length){for(i=0;i<t.length;i++)r=$(t[i]),this.checkboxToggle(r);this.isMobile||this.executeFiltersUpdatedEvent()}},n.prototype.checkboxToggle=function(n){var i,r=n.closest(".sw-filters-category"),t={id:n.attr("value"),label:n.attr("name"),categoryId:r.attr("data-id"),categoryLabel:r.attr("data-label"),queryKey:n.attr("data-key")};n.is(":checked")?this.isMobile&&this.applyAllMobile?this.mobileTempSelectedFiltersItemsAdd.push({item:t,domElement:n}):(this.filtersSelection&&this.filtersSelection.addChip(t),this.selectedFiltersItem.push({item:t,domElement:n})):this.isMobile&&this.applyAllMobile?0<=(i=this.mobileTempSelectedFiltersItemsAdd.findIndex(function(n){return n.item.id===t.id}))?this.mobileTempSelectedFiltersItemsAdd.splice(i,1):this.mobileTempSelectedFiltersItemsRemove.push({item:t,domElement:n}):(this.filtersSelection&&this.filtersSelection.removeChip(t),0<=(i=this.selectedFiltersItem.findIndex(function(n){return n.item.id===t.id}))&&this.selectedFiltersItem.splice(i,1))},n.prototype.initSelectAll=function(){var n=this;this.filtersComponent.find(".sw-filters-items-select-all>.sw-filters-items-select-all-add").on("click",function(t){$(t.target).parent().parent().find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox").each(function(t,i){var r=$(i);r.is(":checked")||(r.prop("checked",!0),n.checkboxToggle(r))});n.isMobile||n.executeFiltersUpdatedEvent()})},n.prototype.initDeselectAll=function(){var n=this;this.filtersComponent.find(".sw-filters-items-select-all>.sw-filters-items-select-all-delete").on("click",function(t){$(t.target).parent().parent().find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox").each(function(t,i){var r=$(i);r.is(":checked")&&(r.prop("checked",!1),n.checkboxToggle(r))});n.isMobile||n.executeFiltersUpdatedEvent()})},n.prototype.initMobileToggle=function(){var n=this;this.filtersComponent.find(".sw-filters-title").on("click",function(t){var i=$(t.target);n.filtersComponent.toggleClass("sw-filters-opened-mobile");n.filtersComponent.find(".sw-filters-content").toggleClass("sw-filters-content-hidden-mobile");i.find(".toggle-filters-mobile").toggleClass("toggle-filters-mobile-hidden");n.mobileTempSelectedFiltersItemsAdd.forEach(function(n){n.domElement.prop("checked",!1)});n.mobileTempSelectedFiltersItemsRemove.forEach(function(n){n.domElement.prop("checked",!0)});n.mobileTempSelectedFiltersItemsAdd=[];n.mobileTempSelectedFiltersItemsRemove=[]})},n.prototype.initMobileCheck=function(){var n=this;$(window).on("load resize",function(){n.isMobile=$(window).width()<=n._mobileBreakpoint})},n.prototype.initMobileApplyFilters=function(){var n=this;this.filtersComponent.find(".sw-filters-content-mobile-apply-filters").on("click",function(){n.mobileTempSelectedFiltersItemsAdd.forEach(function(t){n.filtersSelection&&n.filtersSelection.addChip(t.item);n.selectedFiltersItem.push(t)});n.mobileTempSelectedFiltersItemsRemove.forEach(function(t){n.filtersSelection&&n.filtersSelection.removeChip(t.item);var i=n.selectedFiltersItem.findIndex(function(n){return n.item.id===t.item.id});n.selectedFiltersItem.splice(i,1)});n.mobileTempSelectedFiltersItemsAdd=[];n.mobileTempSelectedFiltersItemsRemove=[];n.filtersComponent.find(".sw-filters-title").click();n.executeFiltersUpdatedEvent()})},n.prototype.initMobileRemoveAllFilters=function(){var n=this;this.filtersComponent.find(".sw-filters-content-mobile-remove-filters").on("click",function(){n.removeAllFilters();n.filtersSelection&&n.filtersSelection.removeAllFilters();n.filtersComponent.find(".sw-filters-title").click()})},n.prototype.chipRemovedFromFiltersSelection=function(n){var t=this.selectedFiltersItem.findIndex(function(t){return t.item.id===n.id});-1<t&&(this.selectedFiltersItem[t].domElement.prop("checked",!1),this.selectedFiltersItem.splice(t,1),this.executeFiltersUpdatedEvent())},n.prototype.removeAllFilters=function(){this.filtersComponent.find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox").each(function(n,t){var i=$(t);i.is(":checked")&&i.prop("checked",!1)});this.selectedFiltersItem=[];this.executeFiltersUpdatedEvent()},n.prototype.executeFiltersUpdatedEvent=function(){var n=this;this.filtersUpdatedEventHandler.slice(0).forEach(function(t){return t(n.selectedFiltersItem.map(function(n){return n.item}))})},n.prototype.subscribeToFiltersUpdatedEvent=function(n){this.filtersUpdatedEventHandler.push(n)},n.prototype.getFilterItems=function(){return this.selectedFiltersItem.map(function(n){return n.item})},n.prototype.setCheckedCheckboxesByNames=function(n){for(var t,r=this.filtersComponent.find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox"),i=0;i<r.length;i++)t=$(r[i]),-1<n.indexOf(t.attr("name"))?t.prop("checked",!0):t.prop("checked",!1),this.checkboxToggle($(t))},n.prototype.showActiveSections=function(){var i,n,r,t;if(!this.isMobile&&!this.applyAllMobile)for(i=this.filtersComponent.find(".sw-filters-category"),n=0;n<i.length;n++)r=$(i[n]).find("input:checkbox:checked"),t=$(i[n]).find(".sw-filters-category-title "),0<r.length?($(t).removeClass("closed"),$(t).siblings(".sw-filters-items").removeClass("closed")):($(t).addClass("closed"),$(t).siblings(".sw-filters-items").addClass("closed"))},n}();r.Filters=u},{}],43:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.Shared||(i.Shared={});u=function(){function n(n){this._mobileBrakpoint=992;this.noOfColumns=2;this.enabledMobile=!1;n.componentSelector&&n.itemSelector&&(this.component=$(n.componentSelector),this.component&&((this.config=n).mobileBreakpoint&&0<n.mobileBreakpoint&&(this._mobileBrakpoint=n.mobileBreakpoint),n.noOfColumns&&1<n.noOfColumns&&(this.noOfColumns=n.noOfColumns),null!=n.enableMobile&&null!=n.enableMobile&&(this.enabledMobile=n.enableMobile),this.fixLayoutWatcher()))}return n.prototype.fixLayoutWatcher=function(){var n=this;$(window).on("load resize",function(){2<=n.noOfColumns&&(n.enabledMobile||!n.enabledMobile&&$(window).outerWidth()>=n._mobileBrakpoint)?n.getMasonryContainers().each(function(t,i){n.initLayout($(i))}):n.getMasonryContainers().each(function(n,t){$(t).attr("style","")})})},n.prototype.getMasonryContainers=function(){return this.config.sectionSelector?this.component.find(this.config.sectionSelector):this.component},n.prototype.initLayout=function(n){var t=this,i;this.columnsHeights=Array(this.noOfColumns).fill(0);n.addClass("masonry-columns");n.find(this.config.itemSelector).each(function(n,i){var r,u,f;($(i).addClass("masonry-item"),t.config.mediaSelector)&&(r=$(i).find(t.config.mediaSelector).first(),r&&r.height()<=50&&(u=r.attr("data-aspect-ratio")?+r.attr("data-aspect-ratio"):.65,f=$(i).width()*u,t.columnsHeights[n%2]+=f));t.columnsHeights[n%2]+=$(i).outerHeight()+30});i=Math.max.apply(Math,this.columnsHeights);n.css("height",i+10)},n}();r.Masonry=u},{}],44:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.Shared||(i.Shared={});u=function(){function n(n,t){void 0===t&&(t={enterKeyPressEventEnabled:!0,typingEventEnabled:!1,typingDelayTime:500});this.searchExecutedEventHandler=[];this.config=t;n=n.startsWith(".")?n:"."+n;this.searchBoxContainer=$(n);this.searchBoxComponent=this.searchBoxContainer.find(".sw-search-box");this.searchBoxInput=this.searchBoxComponent.find("input");this.initEvents()}return n.prototype.initEvents=function(){this.initSearchButtonClicked();this.config.enterKeyPressEventEnabled&&this.initEnterKeyPress();this.config.typingEventEnabled&&this.initTypingEvent()},n.prototype.initSearchButtonClicked=function(){var n=this;this.searchBoxComponent.find(".sw-search-box-button").on("click",function(){n.executeSearchEvent()})},n.prototype.initTypingEvent=function(){var n=this;this.searchBoxInput.on("keyup",function(t){13!==t.keyCode&&(clearTimeout(n.typingTimer),n.typingTimer=setTimeout(function(){n.executeSearchEvent()},n.config.typingDelayTime))})},n.prototype.initEnterKeyPress=function(){var n=this;this.searchBoxInput.on("keypress",function(t){13===t.which&&(clearTimeout(n.typingTimer),n.executeSearchEvent())})},n.prototype.executeSearchEvent=function(){var n=this;this.searchExecutedEventHandler.slice(0).forEach(function(t){return t(n.searchBoxInput.val().toString())})},n.prototype.subscribeToSearchExecuteEvent=function(n){this.searchExecutedEventHandler.push(n)},n.prototype.getValue=function(){return this.searchBoxInput.val().toString()},n.prototype.hide=function(){this.searchBoxContainer.hide()},n.prototype.show=function(){this.searchBoxContainer.show()},n.prototype.setValue=function(n,t){this.searchBoxInput.val(n);t&&this.executeSearchEvent()},n}();r.SearchBox=u},{}],45:[function(n,t,i){var r;Object.defineProperty(i,"__esModule",{value:!0});r=function(n){this.productId=n};(i.UseCases||(i.UseCases={})).RequestModel=r},{}],46:[function(n,t,i){var r=this&&this.__decorate||function(n,t,i,r){var f,e=arguments.length,u=e<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r,o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;0<=o;o--)(f=n[o])&&(u=(e<3?f(u):3<e?f(t,i,u):f(t,i))||u);return 3<e&&u&&Object.defineProperty(t,i,u),u},u=this&&this.__metadata||function(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)},f;Object.defineProperty(i,"__esModule",{value:!0});f=n("../../Helpers/_MapHelper");!function(n){var t=f.Helpers.JsonProperty,i=function(){function n(){this.isViewed=!1;this.priority=1;this.title=void 0;this.description=void 0;this.image=void 0;this.useCaseLink=void 0;this.isNew=void 0;this.html=void 0}return r([t("Title"),u("design:type",String)],n.prototype,"title",void 0),r([t("Description"),u("design:type",String)],n.prototype,"description",void 0),r([t("Image"),u("design:type",String)],n.prototype,"image",void 0),r([t("UseCaseLink"),u("design:type",String)],n.prototype,"useCaseLink",void 0),r([t("IsNew"),u("design:type",Boolean)],n.prototype,"isNew",void 0),n}(),e;n.UseCaseItem=i;e=function(){function n(){this.newLabel=void 0;this.newText=void 0;this.viewedLabel=void 0;this.viewedText=void 0;this.useCases=void 0;this.status=void 0;this.errorMessage=void 0}return r([t("Status"),u("design:type",Number)],n.prototype,"status",void 0),r([t("ErrorMessage"),u("design:type",String)],n.prototype,"errorMessage",void 0),r([t("NewLabel"),u("design:type",String)],n.prototype,"newLabel",void 0),r([t("NewText"),u("design:type",String)],n.prototype,"newText",void 0),r([t("ViewedLabel"),u("design:type",String)],n.prototype,"viewedLabel",void 0),r([t("ViewedText"),u("design:type",String)],n.prototype,"viewedText",void 0),r([t({clazz:i,name:"UseCases"}),u("design:type",Array)],n.prototype,"useCases",void 0),n}();n.ResponseModel=e}(i.UseCases||(i.UseCases={}))},{"../../Helpers/_MapHelper":13}],47:[function(n,t,i){var r;Object.defineProperty(i,"__esModule",{value:!0});r=function(){this.viewedDateTime=new Date};(i.UseCases||(i.UseCases={})).ViewedUseCaseModel=r},{}],48:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=n("./Models/_ResponseModel"),u=n("./Models/_RequestModel"),f=n("../Helpers/_MapHelper"),e=n("../Helpers/_AjaxHelper"),o=n("./_RenderingManager"),s=n("./_LocalStorageManager"),h=n("./_SearchEngine"),c=n("./_PlaceHoldersManager"),l=n("../Filters/_TextBoxFilter"),a=n("../Helpers/_DeviceHelper");!function(n){var t,i,w=r.UseCases.ResponseModel,b=u.UseCases.RequestModel,k=f.Helpers.MapHelper,d=e.Helpers.AjaxHelper,g=o.UseCases.RenderingManager,nt=s.UseCases.LocalStorageManager,tt=h.UseCases.SearchEngine,it=c.UseCases.PlaceholdersManager,y=l.Filters.TextBoxFilter,v=a.Helpers.DeviceHelper,p;(i=t||(t={}))[i.None=0]="None";i[i.Desktop=1]="Desktop";i[i.Mobile=2]="Mobile";p=function(){function n(){var n=this;this.useCasesComponent=$(".use-case-landing");this.productId=$("#productId");this.filteredCards=[];this.anyViewedCards=!1;this.anyNewCards=!1;this.sortingFilter=$(".sorting-dropdown");this.searchInput=$(".use-case-search #custom-search-input input");this.isMobileViewActive=!1;this.activePredictiveSearchState=t.None;this.onSortingChange=function(){n.updateSortOptions()&&(n.filteredCards=n.getFilteredCards(n.searchFilter.value));var t,i=n.getActiveSortingOption();0===(t=n.searchEngine.sortItems(n.filteredCards,i)).length?(n.renderingManager.clearCards(),n.placeHoldersManager.showNoResultsMessage(n.searchFilter.value)):n.placeHoldersManager.hideNoResultsMessage();n.placeHoldersManager.updatePagingInfo(t.length,1,t.length);n.renderingManager.renderCards(t)};this.onFilterChange=function(){var t=n.searchFilter.value,i=n.getActiveSortingOption();n.filteredCards=n.getFilteredCards(t);0<t.length&&"viewed"!==i&&"new"!==i&&n.sortingFilter.val("Best_Match");n.onSortingChange();n.placeHoldersManager.updateInputPlaceHolderField(n.filteredCards.length,t);n.placeHoldersManager.hidePredictiveSearch(n.isMobileViewActive);n.updateUrl()};this.onMobileFilterChange=function(){n.searchFilter.initOptions(n.mobileSearchFilter.inputValue);n.placeHoldersManager.hidePredictiveSearch(!0);n.onFilterChange()};this.onValueChanged=function(){var i=n.searchFilter.value,r;i=i.replace(/-/g," ");r=$(".predictive-desktop-search .search-content");n.handlePredictiveSearch(!1,i,r);n.activePredictiveSearchState=t.Desktop};this.onMobileValueChanged=function(){var i=n.mobileSearchFilter.value,r;i=i.replace(/-/g," ");r=$(".predictive-mobile-search .search-content");n.handlePredictiveSearch(!0,i,r);n.activePredictiveSearchState=t.Mobile};null!=this.useCasesComponent&&0<this.useCasesComponent.length&&(this.placeHoldersManager=new it,this.bindWindowEvents(),this.initializeUseCasesData(),this.dbManager=new nt,this.dbManager.init(),this.initializeSearchFilter(),this.initHistoryChangeEvent(),this.initializePredictiveSearch())}return n.prototype.bindWindowEvents=function(){var n=this;this.updateMobileState();$(window).bind("resize",function(){!n.isMobileViewActive&&v.isMobile()?(n.placeHoldersManager.hidePredictiveSearch(!1),n.mobileSearchFilter.initOptions(n.searchFilter.inputValue),n.mobileSearchFilter.applyValueChanged()):n.isMobileViewActive&&!v.isMobile()&&(n.placeHoldersManager.hidePredictiveSearch(!0),n.searchFilter.initOptions(n.mobileSearchFilter.inputValue),n.searchFilter.applyValueChanged());n.updateMobileState()})},n.prototype.updateMobileState=function(){this.isMobileViewActive=v.isMobile()},n.prototype.initializeUseCasesData=function(){var t=$(this.productId);if(0<t.length){var n=this,i={method:"POST",dataType:"json"},r=new b(t[0].value);i.data=r;$.ajax(d.getAjaxUrl("/solarapi/usecases/GetUseCaseInfo"),i).done(function(t){n.placeHoldersManager.hideLoadingSpinner();n.onSuccessUseCasesLoad(t)}).fail(function(t,i){n.placeHoldersManager.hideLoadingSpinner();n.placeHoldersManager.showErrorMessage("Request failed.  Returned status of "+i)})}},n.prototype.onSuccessUseCasesLoad=function(n){var i=this,t=k.deserialize(w,n);null==t||t.status<1?this.placeHoldersManager.showErrorMessage(t.errorMessage):this.updateUseCases(t.useCases).then(function(){i.model=t;i.renderingManager=new g(t);i.searchEngine=new tt(t.useCases);i.placeHoldersManager.updatePagingInfo(t.useCases.length,1,t.useCases.length);i.anyNewCards=t.useCases.some(function(n){return n.isNew});i.initializeSortingOptions();i.searchFilter.apply()})},n.prototype.initializeSortingOptions=function(){var i=this,n,t;0<this.sortingFilter.length&&(this.anyNewCards&&(n=document.createElement("option"),n.setAttribute("data-linktype","Use Cases: Sort Control"),n.setAttribute("data-linkdetail",this.model.newText),n.setAttribute("value","new"),n.innerHTML=this.model.newText,this.sortingFilter[0].appendChild(n)),this.anyViewedCards&&(t=document.createElement("option"),t.setAttribute("data-linktype","Use Cases: Sort Control"),t.setAttribute("data-linkdetail",this.model.viewedText),t.setAttribute("value","viewed"),t.innerHTML=this.model.viewedText,this.sortingFilter[0].appendChild(t)),this.updateSortOptions(),this.sortingFilter.change(function(){i.onSortingChange()}))},n.prototype.getActiveSortingOption=function(){return this.sortingFilter.find(" option:selected").val()},n.prototype.updateSortOptions=function(){var n=this.getActiveSortingOption(),i=0<this.searchFilter.value.length,r=this.sortingFilter.find("[value=Best_Match]"),t=!1;return"viewed"===n||"new"===n?this.sortingFilter.find("[value=View_All]").show():("View_All"===n&&(this.sortingFilter.val(i?"Best_Match":"Descending_Order"),t=!0),this.sortingFilter.find("[value=View_All]").hide()),i?r.show():(r.hide(),"Best_Match"===n&&(this.sortingFilter.val("Descending_Order"),t=!0)),t},n.prototype.initializeSearchFilter=function(){var n=this;this.searchFilter=new y(".use-case-search #custom-search-input",!0);this.searchFilter.subscribeToFilterChangeEvent(function(){n.onFilterChange()});this.searchFilter.subscribeToValueChangeEvent(function(){n.onValueChanged()});this.mobileSearchFilter=new y(".predictive-mobile-search #custom-search-input-mobile",!0);this.mobileSearchFilter.subscribeToFilterChangeEvent(function(){n.onMobileFilterChange()});this.mobileSearchFilter.subscribeToValueChangeEvent(function(){n.onMobileValueChanged()})},n.prototype.getFilteredCards=function(n){return 0<n.length?(n=n.replace(/-/g," "),this.searchEngine.setItems(this.model.useCases),this.searchEngine.searchItems(n)):this.model.useCases},n.prototype.closeDesktopPredictiveSearch=function(){this.activePredictiveSearchState=t.None;this.placeHoldersManager.hidePredictiveSearch(!1)},n.prototype.closeMobilePredictiveSearch=function(){this.activePredictiveSearchState=t.None;this.placeHoldersManager.hidePredictiveSearch(!0)},n.prototype.initializePredictiveSearch=function(){var n=this;this.searchInput.on("click",function(){n.isMobileViewActive?(n.mobileSearchFilter.initOptions(n.searchFilter.inputValue),n.mobileSearchFilter.applyValueChanged()):n.activePredictiveSearchState!=t.Desktop&&n.searchFilter.applyValueChanged()});$(".use-case-search .search-active").on("click",function(){n.isMobileViewActive?(n.mobileSearchFilter.initOptions(n.searchFilter.inputValue),n.mobileSearchFilter.applyValueChanged()):n.searchFilter.applyValueChanged()});$("#custom-search-input .predictive-desktop-search").on("click",function(n){$(n.target).is("a")||n.stopPropagation()});$(document).on("click",function(t){n.isMobileViewActive||n.searchInput[0]==t.target||n.closeDesktopPredictiveSearch()});$(".search-modal .modal-close button").on("click",function(){n.closeMobilePredictiveSearch()});$("#custom-search-input-mobile button.search").on("click",function(){n.searchFilter.initOptions(n.mobileSearchFilter.inputValue);n.searchFilter.apply();n.closeMobilePredictiveSearch()})},n.prototype.createPredictiveSearchListItem=function(n,t,i,r){var u=t.substr(0,i);return u+="<strong>"+t.substr(i,r-i)+"<\/strong>",u+=t.substr(r),$('<a class="list-group-item" data-linktype="Use Case Card" data-linkdetail="'+t+'"><\/a>').attr("href",n).html(u)},n.prototype.handlePredictiveSearch=function(n,t,i){var u=this.searchEngine.searchItems(t,this.createPredictiveSearchListItem),r=this.searchEngine.sortItems(u,this.getActiveSortingOption());0<t.length?this.placeHoldersManager.hidePredictiveSearchDescription(n):this.placeHoldersManager.showPredictiveSearchDescription(n);0===r.length?this.placeHoldersManager.showPredictiveSearchNoResult(t):(i.empty(),r.forEach(function(n){i.append(n.html)}),this.placeHoldersManager.showPredictiveSearchResult(n));this.placeHoldersManager.showPredictiveSearch(n)},n.prototype.updateUrl=function(){var n=window.location.href;0<window.location.href.indexOf("/usecasefilter")&&(n=window.location.href.substring(0,window.location.href.indexOf("/usecasefilter")));""!==this.searchFilter.url&&(n=n+"/usecasefilter"+this.searchFilter.url);window.location.href!==n&&history.pushState(this.searchFilter.value,n,n)},n.prototype.initHistoryChangeEvent=function(){var n=this;window.onpopstate=function(t){t&&null!=n.useCasesComponent&&0<n.useCasesComponent.length&&(null==t.state||null==t.state?n.searchFilter.reset():n.searchFilter.value=t.state.replace(/-/g," "),n.searchFilter.apply())}},n.prototype.updateUseCases=function(n){var t=this,i=this;return new Promise(function(r){i.dbManager.getHistory(function(i,u){null!=i&&(u=[]);0<u.length&&n.forEach(function(n){-1<u.indexOf(n.useCaseLink)&&(n.isViewed=!0,n.isNew=!1,t.anyViewedCards=!0)});r()})})},n}();n.IndexPageController=p}(i.UseCases||(i.UseCases={}))},{"../Filters/_TextBoxFilter":8,"../Helpers/_AjaxHelper":9,"../Helpers/_DeviceHelper":12,"../Helpers/_MapHelper":13,"./Models/_RequestModel":45,"./Models/_ResponseModel":46,"./_LocalStorageManager":49,"./_PlaceHoldersManager":50,"./_RenderingManager":52,"./_SearchEngine":53}],49:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var u,f,e=n("../_Constants"),r=n("localforage");u=i.UseCases||(i.UseCases={});f=function(){function n(){this.storeName="ViewedUseCasesStore"}return n.prototype.init=function(){return this.initDb()},n.prototype.initDb=function(){return r.config({driver:[r.INDEXEDDB,r.WEBSQL,r.LOCALSTORAGE],name:e.Constants.localstorageDbName,version:1,storeName:this.storeName}),r.ready()},n.prototype.getHistory=function(n){r.keys().then(function(t){n(null,t)}).catch(function(t){n(t,null)})},n.prototype.getItem=function(n,t){return r.getItem(n,t)},n.prototype.setItem=function(n,t,i){return r.setItem(n,t,i)},n}();u.LocalStorageManager=f},{"../_Constants":55,localforage:63}],50:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.UseCases||(i.UseCases={});u=function(){function n(){this.pageInfoSelector=$(".page-info > span");this.productNameSelector=$("#productName");this.dropdownsSelector=$(".use-case-dropdowns");this.clearButton=$(".input-group-btn.clear");this.noResults=$(".no-results");this.inputFields=$("#custom-search-input input.form-control");this.inputActivePlaceHolder=$(".search-active");this.inputEmptyPlaceHolder=$(".search-empty");this.predictiveSearch=$(".usecase-predictive-search");this.predictiveSearchForDesktop=$(".predictive-desktop-search");this.predictiveSearchForMobile=$(".predictive-mobile-search");this.predictiveSearchModalForMobile=$(".predictive-mobile-search.search-modal");this.predictiveSearchResult=$(".search-result-container",this.predictiveSearch);this.predictiveSearchResultForMobile=$(".search-result-container",this.predictiveSearchForMobile);this.predictiveSearchResultForDesktop=$(".search-result-container",this.predictiveSearchForDesktop);this.predictiveNoResultContainer=$(".predictive-no-results",this.predictiveSearch);this.predictiveNoResultContainerForMobile=$(".predictive-no-results",this.predictiveSearchForMobile);this.predictiveNoResultContainerForDesktop=$(".predictive-no-results",this.predictiveSearchForDesktop);this.predictiveSearchDescription=$(".search-description",this.predictiveSearch);this.predictiveSearchDescriptionForMobile=$(".search-description",this.predictiveSearchForMobile);this.predictiveSearchDescriptionForDesktop=$(".search-description",this.predictiveSearchForDesktop);0<this.productNameSelector.length&&(this.productName=this.productNameSelector[0].value);this.initializeinputActivePlaceHolder();var n=this.noResults.find(".no-results-text");this.noResultsFoundTextTemplate=n.html();this.predictiveSearchModalForMobile.find("input").on("focus",function(){window.scrollTo(0,0);document.body.scrollTop=0})}return n.prototype.createNoResultMessage=function(n){var t=document.createElement("span"),i;return t.setAttribute("class","blue"),t.innerHTML=n,i=document.createElement("span"),i.innerHTML=this.productName,this.noResultsFoundTextTemplate.replace("{searchTerm}",t.outerHTML).replace("{product}",i.outerHTML)},n.prototype.showNoResultsMessage=function(n){if(0<this.dropdownsSelector.length&&(this.dropdownsSelector[0].hidden=!0),0<this.noResults.length){var i=this.noResults[0],t=this.noResults.find(".no-results-text");0<t.length&&(t[0].innerHTML=this.createNoResultMessage(n));i.hidden=!1}},n.prototype.hideNoResultsMessage=function(){0<this.noResults.length&&(this.noResults[0].hidden=!0);0<this.dropdownsSelector.length&&(this.dropdownsSelector[0].hidden=!1)},n.prototype.showErrorMessage=function(n){var i=$("#errorSummary"),t;0<i.length&&(t=i[0],t.innerHTML=n,t.hidden=!1)},n.prototype.hideLoadingSpinner=function(){var n=$(".items-loader");0<n.length&&(n[0].hidden=!0)},n.prototype.updatePagingInfo=function(n,t,i){var f,r,u;if(0<this.pageInfoSelector.length)for(f=0;f<this.pageInfoSelector.length;f++)r=this.pageInfoSelector[f],t+i-1==0?r.hidden=!0:(u=r.getAttribute("data-format"),u=(u=u.replace("{total}",n.toString())).replace("{range}",t.toString()+"-"+(t+i-1).toString()),r.innerHTML=u,r.hidden=!1)},n.prototype.hideClearButton=function(){0<this.clearButton.length&&this.clearButton[0].setAttribute("style","display:none;")},n.prototype.showClearButton=function(){0<this.clearButton.length&&this.clearButton[0].setAttribute("style","display:block;")},n.prototype.updateInputPlaceHolderField=function(n,t){var i,u,f,r;0<this.inputActivePlaceHolder.length&&0<this.inputEmptyPlaceHolder.length&&(i=this.inputActivePlaceHolder[0],u=this.inputEmptyPlaceHolder[0],null!=t&&0<t.length?(f=i.getAttribute("data-format"),r=document.createElement("span"),r.setAttribute("class","just-gray"),r.innerHTML=t,i.innerHTML=f.replace("{count}",n.toString()).replace("{searchTerm}",r.outerHTML),i.setAttribute("style","display: table-cell;"),u.setAttribute("type","hidden"),this.showClearButton()):(i.setAttribute("style","display: none;"),u.setAttribute("type","text"),this.hideClearButton()))},n.prototype.initializeinputActivePlaceHolder=function(){var n=this;this.inputActivePlaceHolder.on("click",function(){var i=n.inputActivePlaceHolder[0],t=n.inputEmptyPlaceHolder[0];i.setAttribute("style","display: none;");t.setAttribute("type","text");t.focus();n.showClearButton()})},n.prototype.showPredictiveSearch=function(n){n?(this.predictiveSearchModalForMobile.show(),this.predictiveSearchModalForMobile.find("input").focus(),this.predictiveSearchModalForMobile.addClass("open")):this.predictiveSearchForDesktop.show()},n.prototype.hidePredictiveSearch=function(n){n?(this.predictiveSearchModalForMobile.hide(),this.predictiveSearchModalForMobile.removeClass("open")):this.predictiveSearchForDesktop.hide()},n.prototype.showPredictiveSearchNoResult=function(n){var t=this.createNoResultMessage(n);$(".no-results-text",this.predictiveNoResultContainer).each(function(n,i){i.innerHTML=t});this.predictiveNoResultContainer.show();this.predictiveSearchResult.hide()},n.prototype.showPredictiveSearchResult=function(n){n?(this.predictiveNoResultContainerForMobile.hide(),this.predictiveSearchResultForMobile.show(),this.predictiveSearchForDesktop.hide()):(this.predictiveNoResultContainerForDesktop.hide(),this.predictiveSearchResultForDesktop.show(),this.predictiveSearchForMobile.hide())},n.prototype.showPredictiveSearchDescription=function(n){n?this.predictiveSearchDescriptionForMobile.show():this.predictiveSearchDescriptionForDesktop.show()},n.prototype.hidePredictiveSearchDescription=function(n){n?this.predictiveSearchDescriptionForMobile.hide():this.predictiveSearchDescriptionForDesktop.hide()},n}();r.PlaceholdersManager=u},{}],51:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.UseCases||(i.UseCases={});u=function(){function n(){this.useCaseGroupComponent=$(".product-page-use-case");0<$(this.useCaseGroupComponent).length&&this.bindEvents()}return n.prototype.bindEvents=function(){var n=$(".product-page-use-case-show-more span.link"),t=$(".product-page-use-case-show-more"),i=$(".product-page-use-case-text-container");$(n).on("click",function(){t.hide();i.slideDown()})},n}();r.ProductPageUseCaseController=u},{}],52:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.UseCases||(i.UseCases={});u=function(){function n(n){this.useCasesPlaceHolder=$(".use-case-elements >.container >.row");this.isListView=!1;null!=n&&(this.newLabel=n.newLabel,this.newText=n.newText,this.viewedLabel=n.viewedLabel,this.viewedText=n.viewedText)}return n.prototype.renderCards=function(n){var i=$(".use-case-view-switchers i.block-view"),t,r,u;for(null!=i&&0<i.length&&(this.isListView=i.hasClass("active")),this.clearCards(),t=0,r=n;t<r.length;t++)u=r[t],0<this.useCasesPlaceHolder.length&&this.useCasesPlaceHolder[0].appendChild(this.renderCard(u))},n.prototype.clearCards=function(){this.useCasesPlaceHolder.empty()},n.prototype.renderCard=function(n){var c=document.createElement("div"),t,i,f,e,r,o,l,u,s,h;return c.setAttribute("class","col-lg-4 col-md-6 use-case-card"+(this.isListView?" list-view":"")),t=document.createElement("a"),t.setAttribute("data-linktype","Use Case Card"),t.setAttribute("data-linkdetail",n.title),t.setAttribute("href",n.useCaseLink),c.appendChild(t),i=document.createElement("div"),i.setAttribute("class","use-case-card-container"),t.appendChild(i),f=document.createElement("div"),f.setAttribute("class","image-container"),f.innerHTML=n.image,i.appendChild(f),e=document.createElement("div"),(e.setAttribute("class","tag-container"),n.isNew||n.isViewed)&&(r=document.createElement("span"),r.setAttribute("class",n.isNew?"new-label":n.isViewed?"viewed-label":""),o=document.createElement("i"),o.setAttribute("class",n.isNew?this.newLabel:n.isViewed?this.viewedLabel:""),o.setAttribute("aria-hidden","true"),r.appendChild(o),l=n.isNew?this.newText:n.isViewed?this.viewedText:"",r.insertAdjacentHTML("beforeend",l),e.appendChild(r)),i.appendChild(e),u=document.createElement("div"),u.setAttribute("class","content"),i.appendChild(u),s=document.createElement("h3"),s.setAttribute("class","use-case-card-title"),s.insertAdjacentHTML("beforeend",n.title),u.appendChild(s),h=document.createElement("div"),h.setAttribute("class","description"),h.insertAdjacentHTML("beforeend",n.description),u.appendChild(h),c},n}();r.RenderingManager=u},{}],53:[function(n,t,i){var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=i.UseCases||(i.UseCases={});u=function(){function n(n){null!=n&&(this.items=n)}return n.prototype.splitToTerms=function(n){return n.replace(/ /g,"|")},n.prototype.compareTitle=function(n,t){return n.title.toLowerCase().trim()<t.title.toLowerCase().trim()?-1:1},n.prototype.searchItems=function(n,t){var r=[],o,u,s,f,h,i;if(0<n.length)for(var c=new RegExp(this.splitToTerms(n)),e=0,l=this.items;e<l.length;e++)o=(i=l[e]).title.toLowerCase(),u=o.indexOf(n),-1<u?(t&&(i.html=t(i.useCaseLink,i.title,u,u+n.length)),i.priority=0===u?1:2,r.push(i)):c.test(o)?(t&&(i.html=t(i.useCaseLink,i.title,0,0)),i.priority=3,r.push(i)):(s=i.description.toLowerCase(),-1<s.indexOf(n)?(t&&(i.html=t(i.useCaseLink,i.title,0,0)),i.priority=4,r.push(i)):c.test(s)&&(t&&(i.html=t(i.useCaseLink,i.title,0,0)),i.priority=5,r.push(i)));else for(f=0,h=this.items;f<h.length;f++)i=h[f],t&&(i.html=t(i.useCaseLink,i.title,0,0)),i.priority=1,r.push(i);return r},n.prototype.sortItems=function(n,t){var i=this;switch(t){case"Best_Match":this.items=n.sort(function(n,t){return n.priority-t.priority||i.compareTitle(n,t)});break;case"Descending_Order":this.items=n.sort(function(n,t){return i.compareTitle(n,t)});break;case"Ascending_Order":this.items=n.sort(function(n,t){return i.compareTitle(t,n)});break;case"new":this.items=n.filter(function(n){return n.isNew});break;case"viewed":this.items=n.filter(function(n){return n.isViewed});break;default:this.items=n}return this.items},n.prototype.setItems=function(n){null!=n&&(this.items=n)},n}();r.SearchEngine=u},{}],54:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r,u,f,e,o=n("./_LocalStorageManager"),s=n("./Models/_ViewUseCaseModel");r=i.UseCases||(i.UseCases={});u=o.UseCases.LocalStorageManager;f=s.UseCases.ViewedUseCaseModel;e=function(){function n(){var n=this;this.ajaxUrl="/solarapi/usecases/checkpagehasanyusecasereferrer";this.storeName="ViewedUseCasesStore";this.$pageInfoId=$("#__pageinfo_id");this.dbManager=new u;this.dbManager.init().then(function(){var r=document.documentElement.lang,t=window.location.pathname,i=t,u;if("en"!==r&&(i=i.replace("/"+r,"")),0<=i.indexOf("/use-cases")){if(!n.$pageInfoId||!n.$pageInfoId.val())return;u=n.$pageInfoId.val();n.checkPathIsUseCase(t,u,function(i,r){if(!0===r){var u=new f;u.path=t;n.dbManager.setItem(u.path,u)}})}})}return n.prototype.checkPathIsUseCase=function(n,t,i){var r=this;this.dbManager.getItem(n,function(n,u){if(null==n)if(null==u){var f=r.ajaxUrl+"?pageId="+t;$.ajax(f,{method:"GET",dataType:"json"}).done(function(n){i(null,n)}).fail(function(n){i(n,!1)})}else i(null,!0);else i(n,!1)})},n}();r.ViewHistoryController=e},{"./Models/_ViewUseCaseModel":47,"./_LocalStorageManager":49}],55:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function n(){}return n.localstorageDbName="SW_DB",n}();i.Constants=r},{}],56:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function n(){this.initBackToSearchButton();this.initGatedResources()}return n.prototype.initGatedResources=function(){$(".pdf-download").on("click","a[data-href]",function(){var t=$("#isGated"),n;("False"===$("#isGated").val()||null!=t.attr("reg-form-submitted")&&"True"===t.attr("reg-form-submitted"))&&(n=$(this).data("href"),n&&window.open(n,"_blank"))})},n.prototype.initBackToSearchButton=function(){var n=this;$(".resource-video-detail .back-to-search a").on("click",function(){return 1<history.length&&n.isResourceLandingUrl(document.referrer)?window.history.back():window.location.href=window.location.href.substring(0,window.location.href.indexOf("/resources")+10),!1});$(".sedemo-video-detail .back-to-search a").on("click",function(){return 1<history.length&&n.isSeDemoUrl(document.referrer)?window.history.back():window.location.href=window.location.href.substring(0,window.location.href.indexOf("/sedemo")+7),!1})},n.prototype.isResourceLandingUrl=function(n){return-1<n.indexOf("/resources/filter")||/(.+)?\/resources\/[^\/]+$/.test(n)||/(.+)?\/resources$/.test(n)},n.prototype.isSeDemoUrl=function(n){return-1<n.indexOf("/sedemo/product")||/(.+)?\/sedemo\/[^\/]+$/.test(n)||/(.+)?\/sedemo$/.test(n)},n}();i.DetailsPageController=r},{}],57:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=n("./Helpers/_ComponentsSizeHelper").ComponentSize,u=function(){this.componentSelector=".finalPlea";0<$(this.componentSelector).length&&768<=window.screen.width&&new r(this.componentSelector).addSizeAdjustmentClass(400,!0,"smallWidth")};i.FinalPleaComponent=u},{"./Helpers/_ComponentsSizeHelper":10}],58:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0}),function(n){var t,i,r,u;(i=t||(t={}))[i.Left=0]="Left";i[i.Right=1]="Right";r=function(){function n(n){this.position_top=0;this.position_left=0;this.isMinimized=!1;this.element=n}return Object.defineProperty(n.prototype,"sessionKey",{get:function(){return this.attachedElementId+"_promobox_closed"},enumerable:!0,configurable:!0}),n.prototype.parseParameters=function(){var n,i;this.width=$(this.element).innerWidth();this.isClosable="1"===$(this.element).attr("data-isClosable");this.alignment="right"===$(this.element).attr("data-alignment")?t.Right:t.Left;this.appearForNewSession="1"===$(this.element).attr("data-session-appearance");n=$("input[name='attached_element_Id']",this.element);n&&(this.attachedElementId=$(n).val());i=$("input[name='attached_css_selector']",this.element);i&&(this.cssSelector=i.val())},n.prototype.render=function(){this.element&&(this.parseParameters(),this.attachedElement=this.getAttachedElement(),this.attachedElement?(this.attachedElement.append(this.element),this.bindUIEvents(),this.setVisibility()):this.element.hide())},n.prototype.bindUIEvents=function(){var n=this;$(".promobox-close-button",this.element).on("click",function(){n.isMinimized=!0;n.isClosable?$(n.element).remove():($(".promobox-wrapper",n.element).addClass("collapsed"),$(n.element).css("height",""));sessionStorage.setItem(n.sessionKey,"1")});$(".promobox-expand-button",this.element).on("click",function(){n.isMinimized=!1;$(".promobox-wrapper",n.element).removeClass("collapsed");$(n.element).css("height",n.height+"px")})},n.prototype.setVisibility=function(){if(this.isClosable&&this.appearForNewSession){var n=sessionStorage[this.sessionKey];if(n&&"1"===n)return void this.element.hide()}switch(this.alignment){case t.Left:default:this.isMinimized=!1;this.element.animate({width:"toggle"});this.element.css("right","unset");this.element.css("left","0");$(".toolbar-buttons",this.element).addClass("left-aligned");break;case t.Right:this.element.animate({width:"toggle"});this.element.css("left","unset");this.element.css("right","0");$(".toolbar-buttons",this.element).addClass("right-aligned")}},n.prototype.getAttachedElement=function(){if(!this.attachedElementId||0===this.attachedElementId.length)return null;var n=$("#"+this.attachedElementId);return this.cssSelector&&(n=$(this.cssSelector,n)),n},n}();u=function(){function n(){var n=this;this.promoBoxes=$(".promobox");$(document).ready(function(){n.init()})}return n.prototype.init=function(){this.promoBoxes.each(function(n,t){new r($(t)).render($("body"))})},n}();n.IndexController=u}(i.PromoBox||(i.PromoBox={}))},{}],59:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=n("./Helpers/_ComponentsSizeHelper").ComponentSize,u=function(){function n(){this.anchorListSelector=".topics-anchor-list .anchorList >li";this.anchorListOlSelector="ul.anchorList, ol.anchorList";0<$(this.anchorListSelector).length&&(768<=window.screen.width&&this.evenOutElements(),this.initializeExpandingFunctionality())}return n.prototype.evenOutElements=function(){new r(this.anchorListSelector).evenElementsByMaxHeight(0)},n.prototype.initializeExpandingFunctionality=function(){0<$(this.anchorListOlSelector).length&&$(this.anchorListOlSelector).each(function(){var t,n=$(this),r=$(".topics-anchor-list").data("row-number");t=$(".topics-anchor-list ul, .topics-anchor-list ol").hasClass("twoCol")?n.find("li:gt("+(2*r-1)+")"):$(".topics-anchor-list ul, .topics-anchor-list ol").hasClass("threeCol")?n.find("li:gt("+(3*r-1)+")"):n.find("li:gt(2)");var u=$(".SeeMoreText").text(),f=$(".SeeLessText").text(),i=n.hasClass("seeMore");t[i?"show":"hide"]();0<t.length&&$(".topics-anchor-list").append($('<span href="" class="seeMore learn-more-link">'+(i?f:u)+"<\/span>").click(function(r){i=n.hasClass("expanded");r.preventDefault();$(this).text(i?u:f);n.toggleClass("expanded");t.slideToggle()}))})},n}();i.TopicsAnchorList=u},{"./Helpers/_ComponentsSizeHelper":10}],60:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0}),function(n){var t,i,r;(i=t||(t={}))[i.Show=0]="Show";i[i.Hide=1]="Hide";r=function(){function n(){var n=this;this.whatsNewCardsComponent=$(".whats-new-cards");this.whatsNewCards=$(".whats-new-cards .card-wrapper");this.notFoundEl=$(".whats-new-cards .not-found-content");this.searchBtn=$(".whats-new-cards #search-btn");this.searchClearBtn=$(".whats-new-cards #search-clear-btn");this.searchInput=$(".whats-new-cards .search-input");this.cardsFilter=$(".whats-new-cards .check-box-box-filter");this.openedCheckBoxCssClass="filter-title-open";this.isContentFound=!1;this.isNotFoundContentReplaced=!1;this.isSearchPerformed=!1;this.isProductSelected=!1;this.setEvents=function(){n.optionPanelWrapper=n.cardsFilter.find(".options-panel-wrapper");n.optionPanel=n.cardsFilter.find(".options-panel");n.formControl=n.cardsFilter.find(".form-control");var t=!1;$(n.formControl).click(function(){return!1!==t||(n.optionPanelWrapper.show(),n.formControl.addClass(n.openedCheckBoxCssClass),!(t=!0))});n.filterOptions=n.optionPanel.find("input");$(n.filterOptions).change(function(t){n.performProductFilter();$(t.target).parent().toggleClass("product-container-selected")});window.addEventListener("click",function(i){$(i.target).closest(".whats-new-cards .check-box-box-filter .options-panel").length<1&&t&&(n.optionPanelWrapper.hide(),n.formControl.removeClass(n.openedCheckBoxCssClass),t=!1)});$(n.searchBtn).click(function(){n.performSearch()});$(n.searchInput).keyup(function(t){13===t.keyCode&&n.performSearch()});$(n.searchInput).change(function(){n.performSearch()});$(n.searchClearBtn).click(function(){$(n.searchInput).val("");$(n.whatsNewCards).show();$(n.searchBtn).show();$(n.searchClearBtn).hide();n.notFoundEl.hide();n.isSearchPerformed=!1;n.isProductSelected&&(n.performProductFilter(),n.notFoundEl.hide())})};this.handleNotFoundContent=function(){var r,t,i,u;n.isContentFound?$(n.notFoundEl).hide():(t=n.makeItBold($(n.searchInput).val()),i=n.getSelectedProductsNames(),(""===t?t=n.makeItBold(i):""!=i&&(t+=" in "+n.makeItBold(i)),t="<span>"+t+"<\/span>",n.isNotFoundContentReplaced)?(u=new RegExp("<span>(.*?)<\/span>"),r=$(n.notFoundEl).html().replace(u,t)):(r=$(n.notFoundEl).html().replace("{searchTerm}",t),n.isNotFoundContentReplaced=!0),$(n.notFoundEl).html(r),$(n.notFoundEl).show())};this.performSearch=function(){var t=null==$(n.searchInput).val()?"":$(n.searchInput).val().toLowerCase();""==t?($(n.searchBtn).show(),$(n.searchClearBtn).hide()):($(n.searchBtn).hide(),$(n.searchClearBtn).show());n.isSearchPerformed=!0;n.isContentFound=!1;n.isProductSelected?(n.selectedFilterProducts=$(".whats-new-cards .check-box-box-filter .product-container>input:checked"),n.selectedFilterProducts.each(function(i,r){var u=$(r).attr("name");$(n.whatsNewCards).each(function(i,r){if(-1<$(r).attr("product-name").indexOf(u)){var f=$(r).find("h1"),e=$(r).find(".card-description");f.length&&-1!==f[0].textContent.toLowerCase().indexOf(t)||-1!==e.text().toLowerCase().indexOf(t)?(n.isContentFound=!0,$(r).show()):$(r).hide()}})})):n.whatsNewCards.each(function(i,r){var u=$(r).find("h1"),f=$(r).find(".card-description");u.length&&-1!==u[0].textContent.toLowerCase().indexOf(t)||-1!==f.text().toLowerCase().indexOf(t)?(n.isContentFound=!0,$(r).show()):$(r).hide()});n.handleNotFoundContent()};this.performProductFilter=function(){n.selectedFilterProducts=$(".whats-new-cards .check-box-box-filter .product-container>input:checked");0===n.selectedFilterProducts.length?(n.isProductSelected=!1,n.showHideAllCards(t.Show),n.emptyFilteredItems(),n.isSearchPerformed&&n.performSearch()):(n.showHideAllCards(t.Hide),n.selectedFilterProducts.each(function(t,i){var r=$(i).attr("name");$(n.whatsNewCards).each(function(t,i){-1<$(i).attr("product-name").indexOf(r)&&($(i).show(),n.isContentFound=!0,n.isProductSelected=!0)});n.isSearchPerformed&&n.performSearch()}),n.updateFilteredItems(n.selectedFilterProducts))};this.updateFilteredItems=function(){var r=$(".check-box-box-filter-items"),f,t,i,u;for(r.find(" > .filter-product").empty(),f="",t=0;t<n.activeOption.length;t++)i=document.createElement("span"),i.setAttribute("class","active-filter"),i.innerHTML=$(n.activeOption[t]).parent("label").text(),u=document.createElement("i"),u.setAttribute("class","fort fort-close-circle-outline"),u.setAttribute("value",$(n.activeOption[t]).prop("value")),i.appendChild(u),f+=i.outerHTML;r.find(" > .filter-product").html(f);r.show();r.find(" > .filter-product i").click(function(t){for(var i=0;i<n.activeOption.length;i++)$(n.activeOption[i]).attr("value")===$(t.target).attr("value")&&($(n.activeOption[i]).parent().toggleClass("product-container-selected"),$(n.activeOption[i]).prop("checked",!1),n.performProductFilter())})};this.emptyFilteredItems=function(){var n=$(".check-box-box-filter-items");n.find(" > .filter-product").empty();n.hide()};this.getSelectedProductsNames=function(){var t="";return n.selectedFilterProducts=$(".whats-new-cards .check-box-box-filter .product-container>input:checked"),n.selectedFilterProducts.each(function(i,r){t+=$(r).attr("name");i<n.selectedFilterProducts.length-1&&(t+=", ")}),t};this.showHideAllCards=function(i){switch(i){case t.Hide:$(n.whatsNewCards).each(function(n,t){$(t).hide()});break;case t.Show:default:$(n.whatsNewCards).each(function(n,t){$(t).show()})}};this.makeItBold=function(n){return"<b>"+n+"<\/b>"};null!=this.whatsNewCardsComponent&&0<this.whatsNewCardsComponent.length&&this.setEvents()}return Object.defineProperty(n.prototype,"activeOption",{get:function(){return this.optionPanel.find("input:checked")},enumerable:!0,configurable:!0}),n}();n.WhatsNewCardsController=r}(i.WhatsNewCardsModule||(i.WhatsNewCardsModule={}))},{}],61:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var r=n("./_TopicsAnchorList"),u=n("./_FinalPlea"),f=n("./ResourceCenter/_LandingPageController"),e=n("./_DetailsPageController"),o=n("./SEDemo/_IndexPageController"),s=n("./UseCases/_IndexPageController"),h=n("./UseCases/_ViewHistoryController"),c=n("./UseCases/_ProductPageUseCaseController"),l=n("./_PromoBoxController"),a=n("./IntegrationsModule/_IndexPageController"),v=n("./ProductPricing/_IndexPageController"),y=n("./_WhatsNewCardsController"),p=n("./ProductComparison/ProductBenefits/_IndexPageController"),w=n("./ResourceCenterV2/_IndexPageController"),b=n("./Events/_EventsIndexController"),k=n("./Product/_Product"),d=n("./FedNews/_FedNewsLandingController"),g=function(){window.addEventListener("DOMContentLoaded",function(){new r.TopicsAnchorList});window.addEventListener("DOMContentLoaded",function(){new u.FinalPleaComponent});new f.ResourceCenter.LandingPageController;new e.DetailsPageController;new o.SEDemo.IndexPageController;new s.UseCases.IndexPageController;new h.UseCases.ViewHistoryController;new c.UseCases.ProductPageUseCaseController;new l.PromoBox.IndexController;new a.IntegrationsModule.IndexPageController;new v.ProductPricingModule.IndexPageController;new y.WhatsNewCardsModule.WhatsNewCardsController;new p.ProductComparison.ProductBenefits.IndexPageController;new w.ResourceCenterV2Module.IndexPageController;new b.EventsModule.EventsIndexController;new k.Product;new d.FedNewsLandingModule.FedNewsLandingController};i.Global=g},{"./Events/_EventsIndexController":3,"./FedNews/_FedNewsLandingController":5,"./IntegrationsModule/_IndexPageController":19,"./Product/_Product":27,"./ProductComparison/ProductBenefits/_IndexPageController":24,"./ProductPricing/_IndexPageController":25,"./ResourceCenter/_LandingPageController":35,"./ResourceCenterV2/_IndexPageController":31,"./SEDemo/_IndexPageController":40,"./UseCases/_IndexPageController":48,"./UseCases/_ProductPageUseCaseController":51,"./UseCases/_ViewHistoryController":54,"./_DetailsPageController":56,"./_FinalPlea":57,"./_PromoBoxController":58,"./_TopicsAnchorList":59,"./_WhatsNewCardsController":60}],62:[function(n,t,i){Object.defineProperty(i,"__esModule",{value:!0});new(n("./Global/_main").Global)},{"./Global/_main":61}],63:[function(n,t,i){(function(r){(function(){!function(n){"object"==typeof i&&void 0!==t?t.exports=n():"function"==typeof define&&define.amd?define([],n):("undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:this).localforage=n()}(function(){return function t(i,r,u){function f(e,s){var c,l,h;if(!r[e]){if(!i[e]){if(c="function"==typeof n&&n,!s&&c)return c(e,!0);if(o)return o(e,!0);l=new Error("Cannot find module '"+e+"'");throw l.code="MODULE_NOT_FOUND",l;}h=r[e]={exports:{}};i[e][0].call(h.exports,function(n){var t=i[e][1][n];return f(t||n)},h,h.exports,t,i,r,u)}return r[e].exports}for(var o="function"==typeof n&&n,e=0;e<u.length;e++)f(u[e]);return f}({1:[function(n,t){(function(n){function u(){var t,r,n;for(f=!0,n=i.length;n;){for(r=i,i=[],t=-1;++t<n;)r[t]();n=i.length}f=!1}var r,f,o=n.MutationObserver||n.WebKitMutationObserver,e,i;if(o){var s=0,c=new o(u),h=n.document.createTextNode("");c.observe(h,{characterData:!0});r=function(){h.data=s=++s%2}}else n.setImmediate||void 0===n.MessageChannel?r="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var t=n.document.createElement("script");t.onreadystatechange=function(){u();t.onreadystatechange=null;t.parentNode.removeChild(t);t=null};n.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)}:(e=new n.MessageChannel,e.port1.onmessage=u,r=function(){e.port2.postMessage(0)});i=[];t.exports=function(n){1!==i.push(n)||f||r()}}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(n,t){function r(){}function u(n){if("function"!=typeof n)throw new TypeError("resolver must be a function");this.state=h;this.queue=[];this.outcome=void 0;n!==r&&c(this,n)}function f(n,t,i){this.promise=n;"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled);"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function o(n,t,r){a(function(){var u;try{u=t(r)}catch(u){return i.reject(n,u)}u===n?i.reject(n,new TypeError("Cannot resolve promise with itself")):i.resolve(n,u)})}function v(n){var t=n&&n.then;if(n&&("object"==typeof n||"function"==typeof n)&&"function"==typeof t)return function(){t.apply(n,arguments)}}function c(n,t){function u(t){r||(r=!0,i.reject(n,t))}function e(t){r||(r=!0,i.resolve(n,t))}var r=!1,f=l(function(){t(e,u)});"error"===f.status&&u(f.value)}function l(n,t){var i={};try{i.value=n(t);i.status="success"}catch(n){i.status="error";i.value=n}return i}var a=n(1),i={},s=["REJECTED"],e=["FULFILLED"],h=["PENDING"];(t.exports=u).prototype.catch=function(n){return this.then(null,n)};u.prototype.then=function(n,t){if("function"!=typeof n&&this.state===e||"function"!=typeof t&&this.state===s)return this;var i=new this.constructor(r);return this.state!==h?o(i,this.state===e?n:t,this.outcome):this.queue.push(new f(i,n,t)),i};f.prototype.callFulfilled=function(n){i.resolve(this.promise,n)};f.prototype.otherCallFulfilled=function(n){o(this.promise,this.onFulfilled,n)};f.prototype.callRejected=function(n){i.reject(this.promise,n)};f.prototype.otherCallRejected=function(n){o(this.promise,this.onRejected,n)};i.resolve=function(n,t){var r=l(v,t),u,f,o;if("error"===r.status)return i.reject(n,r.value);if(u=r.value,u)c(n,u);else for(n.state=e,n.outcome=t,f=-1,o=n.queue.length;++f<o;)n.queue[f].callFulfilled(t);return n};i.reject=function(n,t){n.state=s;n.outcome=t;for(var i=-1,r=n.queue.length;++i<r;)n.queue[i].callRejected(t);return n};u.resolve=function(n){return n instanceof this?n:i.resolve(new this(r),n)};u.reject=function(n){var t=new this(r);return i.reject(t,n)};u.all=function(n){function c(n,r){s.resolve(n).then(function(n){o[r]=n;++h!==t||u||(u=!0,i.resolve(e,o))},function(n){u||(u=!0,i.reject(e,n))})}var s=this,t,u;if("[object Array]"!==Object.prototype.toString.call(n))return this.reject(new TypeError("must be an array"));if(t=n.length,u=!1,!t)return this.resolve([]);for(var o=new Array(t),h=0,f=-1,e=new this(r);++f<t;)c(n[f],f);return e};u.race=function(n){var s=this,f,t,e,u,o;if("[object Array]"!==Object.prototype.toString.call(n))return this.reject(new TypeError("must be an array"));if(f=n.length,t=!1,!f)return this.resolve([]);for(e=-1,u=new this(r);++e<f;)o=n[e],s.resolve(o).then(function(n){t||(t=!0,i.resolve(u,n))},function(n){t||(t=!0,i.reject(u,n))});return u}},{1:1}],3:[function(n){(function(t){"function"!=typeof t.Promise&&(t.Promise=n(2))}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(n,t){function d(n,t){n=n||[];t=t||{};try{return new Blob(n,t)}catch(r){if("TypeError"!==r.name)throw r;for(var u=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),i=0;i<n.length;i+=1)u.append(n[i]);return u.getBlob(t.type)}}function r(n,t){t&&n.then(function(n){t(null,n)},function(n){t(n)})}function h(n,t,i){"function"==typeof t&&n.then(t);"function"==typeof i&&n.catch(i)}function f(n){return"string"!=typeof n&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),n}function g(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}function oi(n){return"boolean"==typeof tt?i.resolve(tt):(t=n,new i(function(n){var i=t.transaction(nt,y),r=d([""]);i.objectStore(nt).put(r,"key");i.onabort=function(t){t.preventDefault();t.stopPropagation();n(!1)};i.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);n(i||!t||43<=parseInt(t[1],10))}}).catch(function(){return!1})).then(function(n){return tt=n});var t}function p(n){var r=u[n.name],t={};t.promise=new i(function(n,i){t.resolve=n;t.reject=i});r.deferredOperations.push(t);r.dbReady=r.dbReady?r.dbReady.then(function(){return t.promise}):t.promise}function it(n){var t=u[n.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function rt(n,t){var i=u[n.name].deferredOperations.pop();if(i)return i.reject(t),i.promise}function at(n,t){return new i(function(i,r){var e,f;if(u[n.name]=u[n.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},n.db){if(!t)return i(n.db);p(n);n.db.close()}e=[n.name];t&&e.push(n.version);f=l.open.apply(l,e);t&&(f.onupgradeneeded=function(t){var i=f.result;try{i.createObjectStore(n.storeName);t.oldVersion<=1&&i.createObjectStore(nt)}catch(i){if("ConstraintError"!==i.name)throw i;console.warn('The database "'+n.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+n.storeName+'" already exists.')}});f.onerror=function(n){n.preventDefault();r(f.error)};f.onsuccess=function(){i(f.result);it(n)}})}function ut(n){return at(n,!1)}function ft(n){return at(n,!0)}function vt(n,t){var i;if(!n.db)return!0;var r=!n.db.objectStoreNames.contains(n.storeName),u=n.version<n.db.version,f=n.version>n.db.version;return(u&&(n.version!==t&&console.warn('The database "'+n.name+"\" can't be downgraded from version "+n.db.version+" to version "+n.version+"."),n.version=n.db.version),f||r)?(r&&(i=n.db.version+1,i>n.version&&(n.version=i)),!0):!1}function yt(n){return d([function(n){for(var i=n.length,r=new ArrayBuffer(i),u=new Uint8Array(r),t=0;t<i;t++)u[t]=n.charCodeAt(t);return r}(atob(n.data))],{type:n.type})}function pt(n){return n&&n.__local_forage_encoded_blob}function si(n){var t=this,i=t._initReady().then(function(){var n=u[t._dbInfo.name];if(n&&n.dbReady)return n.dbReady});return h(i,n,n),i}function e(n,t,r,f){void 0===f&&(f=1);try{var o=n.db.transaction(n.storeName,t);r(null,o)}catch(o){if(0<f&&(!n.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return i.resolve().then(function(){if(!n.db||"NotFoundError"===o.name&&!n.db.objectStoreNames.contains(n.storeName)&&n.version<=n.db.version)return n.db&&(n.version=n.db.version+1),ft(n)}).then(function(){return function(n){var i;p(n);for(var f=u[n.name],t=f.forages,r=0;r<t.length;r++)i=t[r],i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null);return n.db=null,ut(n).then(function(t){return n.db=t,vt(n)?ft(n):t}).then(function(i){n.db=f.db=i;for(var r=0;r<t.length;r++)t[r]._dbInfo.db=i}).catch(function(t){throw rt(n,t),t;})}(n).then(function(){e(n,t,r,f-1)})}).catch(r);r(o)}}function dt(n){var t,h,r,u,c,f=.75*n.length,l=n.length,e=0,s,i;for("="===n[n.length-1]&&(f--,"="===n[n.length-2]&&f--),s=new ArrayBuffer(f),i=new Uint8Array(s),t=0;t<l;t+=4)h=o.indexOf(n[t]),r=o.indexOf(n[t+1]),u=o.indexOf(n[t+2]),c=o.indexOf(n[t+3]),i[e++]=h<<2|r>>4,i[e++]=(15&r)<<4|u>>2,i[e++]=(3&u)<<6|63&c;return s}function ht(n){for(var r=new Uint8Array(n),t="",i=0;i<r.length;i+=3)t+=o[r[i]>>2],t+=o[(3&r[i])<<4|r[i+1]>>4],t+=o[(15&r[i+1])<<2|r[i+2]>>6],t+=o[63&r[i+2]];return r.length%3==2?t=t.substring(0,t.length-1)+"=":r.length%3==1&&(t=t.substring(0,t.length-2)+"=="),t}function gt(n,t,i,r){n.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],i,r)}function s(n,t,i,r,u,f){n.executeSql(i,r,u,function(n,e){e.code===e.SYNTAX_ERR?n.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(n,o){o.rows.length?f(n,e):gt(n,t,function(){n.executeSql(i,r,u,f)},f)},f):f(n,e)},f)}function ti(n,t){var i=n.name+"/";return n.storeName!==t.storeName&&(i+=n.storeName+"/"),i}function ci(){return!function(){var n="_localforage_support_test";try{return localStorage.setItem(n,!0),localStorage.removeItem(n),!1}catch(n){return!0}}()||0<localStorage.length}function pi(n,t){n[t]=function(){var i=arguments;return n.ready().then(function(){return n[t].apply(n,i)})}}function lt(){for(var n,t,i=1;i<arguments.length;i++)if(n=arguments[i],n)for(t in n)n.hasOwnProperty(t)&&(arguments[0][t]=ii(n[t])?n[t].slice():n[t]);return arguments[0]}var fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(n){return}}(),i,b,ni,ui;"undefined"==typeof Promise&&n(3);i=Promise;var nt="local-forage-detect-blob-support",tt=void 0,u={},ei=Object.prototype.toString,a="readonly",y="readwrite";var hi={_driver:"asyncStorage",_initStorage:function(n){function l(){return i.resolve()}var f=this,t={db:null},o,r,s,e,h,c;if(n)for(o in n)t[o]=n[o];for(r=u[t.name],r||(r={forages:[],db:null,dbReady:null,deferredOperations:[]},u[t.name]=r),r.forages.push(f),f._initReady||(f._initReady=f.ready,f.ready=si),s=[],e=0;e<r.forages.length;e++)h=r.forages[e],h!==f&&s.push(h._initReady().catch(l));return c=r.forages.slice(0),i.all(s).then(function(){return t.db=r.db,ut(t)}).then(function(n){return t.db=n,vt(t,f._defaultConfig.version)?ft(t):n}).then(function(n){var i,u;for(t.db=r.db=n,f._dbInfo=t,i=0;i<c.length;i++)u=c[i],u!==f&&(u._dbInfo.db=t.db,u._dbInfo.version=t.version)})},_support:function(){try{if(!l)return!1;var n="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!n||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(n){return!1}}(),iterate:function(n,t){var u=this,f=new i(function(t,i){u.ready().then(function(){e(u._dbInfo,a,function(r,f){if(r)return i(r);try{var e=f.objectStore(u._dbInfo.storeName).openCursor(),o=1;e.onsuccess=function(){var r=e.result,i,u;r?(i=r.value,pt(i)&&(i=yt(i)),u=n(i,r.key,o++),void 0!==u?t(u):r.continue()):t()};e.onerror=function(){i(e.error)}}catch(r){i(r)}})}).catch(i)});return r(f,t),f},getItem:function(n,t){var u=this,o;return n=f(n),o=new i(function(t,i){u.ready().then(function(){e(u._dbInfo,a,function(r,f){if(r)return i(r);try{var e=f.objectStore(u._dbInfo.storeName).get(n);e.onsuccess=function(){var n=e.result;void 0===n&&(n=null);pt(n)&&(n=yt(n));t(n)};e.onerror=function(){i(e.error)}}catch(r){i(r)}})}).catch(i)}),r(o,t),o},setItem:function(n,t,u){var o=this,s;return n=f(n),s=new i(function(r,u){var f;o.ready().then(function(){return f=o._dbInfo,"[object Blob]"===ei.call(t)?oi(f.db).then(function(n){return n?t:(r=t,new i(function(n,t){var i=new FileReader;i.onerror=t;i.onloadend=function(t){var i=btoa(t.target.result||"");n({__local_forage_encoded_blob:!0,data:i,type:r.type})};i.readAsBinaryString(r)}));var r}):t}).then(function(t){e(o._dbInfo,y,function(i,f){var s,e;if(i)return u(i);try{s=f.objectStore(o._dbInfo.storeName);null===t&&(t=void 0);e=s.put(t,n);f.oncomplete=function(){void 0===t&&(t=null);r(t)};f.onabort=f.onerror=function(){var n=e.error?e.error:e.transaction.error;u(n)}}catch(i){u(i)}})}).catch(u)}),r(s,u),s},removeItem:function(n,t){var u=this,o;return n=f(n),o=new i(function(t,i){u.ready().then(function(){e(u._dbInfo,y,function(r,f){if(r)return i(r);try{var e=f.objectStore(u._dbInfo.storeName).delete(n);f.oncomplete=function(){t()};f.onerror=function(){i(e.error)};f.onabort=function(){var n=e.error?e.error:e.transaction.error;i(n)}}catch(r){i(r)}})}).catch(i)}),r(o,t),o},clear:function(n){var t=this,u=new i(function(n,i){t.ready().then(function(){e(t._dbInfo,y,function(r,u){if(r)return i(r);try{var f=u.objectStore(t._dbInfo.storeName).clear();u.oncomplete=function(){n()};u.onabort=u.onerror=function(){var n=f.error?f.error:f.transaction.error;i(n)}}catch(r){i(r)}})}).catch(i)});return r(u,n),u},length:function(n){var t=this,u=new i(function(n,i){t.ready().then(function(){e(t._dbInfo,a,function(r,u){if(r)return i(r);try{var f=u.objectStore(t._dbInfo.storeName).count();f.onsuccess=function(){n(f.result)};f.onerror=function(){i(f.error)}}catch(r){i(r)}})}).catch(i)});return r(u,n),u},key:function(n,t){var u=this,f=new i(function(t,i){n<0?t(null):u.ready().then(function(){e(u._dbInfo,a,function(r,f){if(r)return i(r);try{var s=f.objectStore(u._dbInfo.storeName),o=!1,e=s.openCursor();e.onsuccess=function(){var i=e.result;i?0===n?t(i.key):o?t(i.key):(o=!0,i.advance(n)):t(null)};e.onerror=function(){i(e.error)}}catch(r){i(r)}})}).catch(i)});return r(f,t),f},keys:function(n){var t=this,u=new i(function(n,i){t.ready().then(function(){e(t._dbInfo,a,function(r,u){if(r)return i(r);try{var f=u.objectStore(t._dbInfo.storeName).openCursor(),e=[];f.onsuccess=function(){var t=f.result;t?(e.push(t.key),t.continue()):n(e)};f.onerror=function(){i(f.error)}}catch(r){i(r)}})}).catch(i)});return r(u,n),u},dropInstance:function(n,t){var f,e,o;return t=g.apply(this,arguments),e=this.config(),((n="function"!=typeof n&&n||{}).name||(n.name=n.name||e.name,n.storeName=n.storeName||e.storeName),n.name)?(o=n.name===e.name&&this._dbInfo.db?i.resolve(this._dbInfo.db):ut(n).then(function(t){var r=u[n.name],f=r.forages,i;for(r.db=t,i=0;i<f.length;i++)f[i]._dbInfo.db=t;return t}),f=n.storeName?o.then(function(t){var e,o,r,f,s;if(t.objectStoreNames.contains(n.storeName)){for(e=t.version+1,p(n),o=u[n.name],r=o.forages,t.close(),f=0;f<r.length;f++)s=r[f],s._dbInfo.db=null,s._dbInfo.version=e;return new i(function(t,i){var r=l.open(n.name,e);r.onerror=function(n){r.result.close();i(n)};r.onupgradeneeded=function(){r.result.deleteObjectStore(n.storeName)};r.onsuccess=function(){var n=r.result;n.close();t(n)}}).then(function(n){var t,i;for(o.db=n,t=0;t<r.length;t++)i=r[t],i._dbInfo.db=n,it(i._dbInfo)}).catch(function(t){throw(rt(n,t)||i.resolve()).catch(function(){}),t;})}}):o.then(function(t){var e,r,f;for(p(n),e=u[n.name],r=e.forages,t.close(),f=0;f<r.length;f++)r[f]._dbInfo.db=null;return new i(function(t,i){var r=l.deleteDatabase(n.name);r.onerror=r.onblocked=function(n){var t=r.result;t&&t.close();i(n)};r.onsuccess=function(){var n=r.result;n&&n.close();t(n)}}).then(function(n){e.db=n;for(var t=0;t<r.length;t++)it(r[t]._dbInfo)}).catch(function(t){throw(rt(n,t)||i.resolve()).catch(function(){}),t;})})):f=i.reject("Invalid arguments"),r(f,t),f}},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wt=/^~~local_forage_type~([^~]+)~/,w="__lfsc__:",et=w.length,ot="arbf",st="blob",bt=et+ot.length,kt=Object.prototype.toString;b={serialize:function(n,t){var i="",u,r,f;if(n&&(i=kt.call(n)),n&&("[object ArrayBuffer]"===i||n.buffer&&"[object ArrayBuffer]"===kt.call(n.buffer)))r=w,n instanceof ArrayBuffer?(u=n,r+=ot):(u=n.buffer,"[object Int8Array]"===i?r+="si08":"[object Uint8Array]"===i?r+="ui08":"[object Uint8ClampedArray]"===i?r+="uic8":"[object Int16Array]"===i?r+="si16":"[object Uint16Array]"===i?r+="ur16":"[object Int32Array]"===i?r+="si32":"[object Uint32Array]"===i?r+="ui32":"[object Float32Array]"===i?r+="fl32":"[object Float64Array]"===i?r+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(r+ht(u));else if("[object Blob]"===i)f=new FileReader,f.onload=function(){var i="~~local_forage_type~"+n.type+"~"+ht(this.result);t(w+st+i)},f.readAsArrayBuffer(n);else try{t(JSON.stringify(n))}catch(i){console.error("Couldn't convert value into a JSON string: ",n);t(null,i)}},deserialize:function(n){var f,i,r,u,t;if(n.substring(0,et)!==w)return JSON.parse(n);i=n.substring(bt);r=n.substring(et,bt);r===st&&wt.test(i)&&(u=i.match(wt),f=u[1],i=i.substring(u[0].length));t=dt(i);switch(r){case ot:return t;case st:return d([t],{type:f});case"si08":return new Int8Array(t);case"ui08":return new Uint8Array(t);case"uic8":return new Uint8ClampedArray(t);case"si16":return new Int16Array(t);case"ur16":return new Uint16Array(t);case"si32":return new Int32Array(t);case"ui32":return new Uint32Array(t);case"fl32":return new Float32Array(t);case"fl64":return new Float64Array(t);default:throw new Error("Unkown type: "+r);}},stringToBuffer:dt,bufferToString:ht};ni={_driver:"webSQLStorage",_initStorage:function(n){var f=this,t={db:null},r,u;if(n)for(r in n)t[r]="string"!=typeof n[r]?n[r].toString():n[r];return u=new i(function(n,i){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(r){return i(r)}t.db.transaction(function(r){gt(r,t,function(){f._dbInfo=t;n()},function(n,t){i(t)})},i)}),t.serializer=b,u},_support:"function"==typeof openDatabase,iterate:function(n,t){var u=this,f=new i(function(t,i){u.ready().then(function(){var r=u._dbInfo;r.db.transaction(function(u){s(u,r,"SELECT * FROM "+r.storeName,[],function(i,u){for(var o,f,s=u.rows,h=s.length,e=0;e<h;e++)if(o=s.item(e),f=o.value,f&&(f=r.serializer.deserialize(f)),void 0!==(f=n(f,o.key,e+1)))return void t(f);t()},function(n,t){i(t)})})}).catch(i)});return r(f,t),f},getItem:function(n,t){var e=this,u;return n=f(n),u=new i(function(t,i){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(u){s(u,r,"SELECT * FROM "+r.storeName+" WHERE key = ? LIMIT 1",[n],function(n,i){var u=i.rows.length?i.rows.item(0).value:null;u&&(u=r.serializer.deserialize(u));t(u)},function(n,t){i(t)})})}).catch(i)}),r(u,t),u},setItem:function(n,t,u){return function e(n,t,u,o){var h=this,c;return n=f(n),c=new i(function(i,r){h.ready().then(function(){void 0===t&&(t=null);var c=t,f=h._dbInfo;f.serializer.serialize(t,function(t,l){l?r(l):f.db.transaction(function(u){s(u,f,"INSERT OR REPLACE INTO "+f.storeName+" (key, value) VALUES (?, ?)",[n,t],function(){i(c)},function(n,t){r(t)})},function(t){if(t.code===t.QUOTA_ERR){if(0<o)return void i(e.apply(h,[n,c,u,o-1]));r(t)}})})}).catch(r)}),r(c,u),c}.apply(this,[n,t,u,1])},removeItem:function(n,t){var e=this,u;return n=f(n),u=new i(function(t,i){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(u){s(u,r,"DELETE FROM "+r.storeName+" WHERE key = ?",[n],function(){t()},function(n,t){i(t)})})}).catch(i)}),r(u,t),u},clear:function(n){var t=this,u=new i(function(n,i){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){s(t,r,"DELETE FROM "+r.storeName,[],function(){n()},function(n,t){i(t)})})}).catch(i)});return r(u,n),u},length:function(n){var t=this,u=new i(function(n,i){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){s(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,i){var r=i.rows.item(0).c;n(r)},function(n,t){i(t)})})}).catch(i)});return r(u,n),u},key:function(n,t){var u=this,f=new i(function(t,i){u.ready().then(function(){var r=u._dbInfo;r.db.transaction(function(u){s(u,r,"SELECT key FROM "+r.storeName+" WHERE id = ? LIMIT 1",[n+1],function(n,i){var r=i.rows.length?i.rows.item(0).key:null;t(r)},function(n,t){i(t)})})}).catch(i)});return r(f,t),f},keys:function(n){var t=this,u=new i(function(n,i){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){s(t,r,"SELECT key FROM "+r.storeName,[],function(t,i){for(var u=[],r=0;r<i.rows.length;r++)u.push(i.rows.item(r).key);n(u)},function(n,t){i(t)})})}).catch(i)});return r(u,n),u},dropInstance:function(n,t){var u,f,e;return t=g.apply(this,arguments),u=this.config(),(n="function"!=typeof n&&n||{}).name||(n.name=n.name||u.name,n.storeName=n.storeName||u.storeName),e=this,r(f=n.name?new i(function(t){var r,f;r=n.name===u.name?e._dbInfo.db:openDatabase(n.name,"","",0);n.storeName?t({db:r,storeNames:[n.storeName]}):t((f=r,new i(function(n,t){f.transaction(function(i){i.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(t,i){for(var u=[],r=0;r<i.rows.length;r++)u.push(i.rows.item(r).name);n({db:f,storeNames:u})},function(n,i){t(i)})},function(n){t(n)})})))}).then(function(n){return new i(function(t,r){n.db.transaction(function(u){function o(n){return new i(function(t,i){u.executeSql("DROP TABLE IF EXISTS "+n,[],function(){t()},function(n,t){i(t)})})}for(var e=[],f=0,s=n.storeNames.length;f<s;f++)e.push(o(n.storeNames[f]));i.all(e).then(function(){t()}).catch(function(n){r(n)})},function(n){r(n)})})}):i.reject("Invalid arguments"),t),f}};var li={_driver:"localStorageWrapper",_initStorage:function(n){var t={},r;if(n)for(r in n)t[r]=n[r];return t.keyPrefix=ti(n,this._defaultConfig),ci()?((this._dbInfo=t).serializer=b,i.resolve()):i.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(n){return!1}}(),iterate:function(n,t){var i=this,u=i.ready().then(function(){for(var r,t,f=i._dbInfo,e=f.keyPrefix,o=e.length,s=localStorage.length,h=1,u=0;u<s;u++)if(r=localStorage.key(u),0===r.indexOf(e)&&(t=localStorage.getItem(r),t&&(t=f.serializer.deserialize(t)),void 0!==(t=n(t,r.substring(o),h++))))return t});return r(u,t),u},getItem:function(n,t){var u=this,i;return n=f(n),i=u.ready().then(function(){var i=u._dbInfo,t=localStorage.getItem(i.keyPrefix+n);return t&&(t=i.serializer.deserialize(t)),t}),r(i,t),i},setItem:function(n,t,u){var o=this,e;return n=f(n),e=o.ready().then(function(){void 0===t&&(t=null);var r=t;return new i(function(i,u){var f=o._dbInfo;f.serializer.serialize(t,function(t,e){if(e)u(e);else try{localStorage.setItem(f.keyPrefix+n,t);i(r)}catch(t){"QuotaExceededError"!==t.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==t.name||u(t);u(t)}})})}),r(e,u),e},removeItem:function(n,t){var u=this,i;return n=f(n),i=u.ready().then(function(){var t=u._dbInfo;localStorage.removeItem(t.keyPrefix+n)}),r(i,t),i},clear:function(n){var t=this,i=t.ready().then(function(){for(var i,r=t._dbInfo.keyPrefix,n=localStorage.length-1;0<=n;n--)i=localStorage.key(n),0===i.indexOf(r)&&localStorage.removeItem(i)});return r(i,n),i},length:function(n){var t=this.keys().then(function(n){return n.length});return r(t,n),t},key:function(n,t){var i=this,u=i.ready().then(function(){var t,r=i._dbInfo;try{t=localStorage.key(n)}catch(r){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return r(u,t),u},keys:function(n){var t=this,i=t.ready().then(function(){for(var i,r=t._dbInfo,f=localStorage.length,u=[],n=0;n<f;n++)i=localStorage.key(n),0===i.indexOf(r.keyPrefix)&&u.push(i.substring(r.keyPrefix.length));return u});return r(i,n),i},dropInstance:function(n,t){var u,f,e;return(t=g.apply(this,arguments),(n="function"!=typeof n&&n||{}).name)||(u=this.config(),n.name=n.name||u.name,n.storeName=n.storeName||u.storeName),e=this,r(f=n.name?new i(function(t){n.storeName?t(ti(n,e._defaultConfig)):t(n.name+"/")}).then(function(n){for(var i,t=localStorage.length-1;0<=t;t--)i=localStorage.key(t),0===i.indexOf(n)&&localStorage.removeItem(i)}):i.reject("Invalid arguments"),t),f}},ai=function(n,t){for(var i,r,f=n.length,u=0;u<f;){if((i=n[u])===(r=t)||"number"==typeof i&&"number"==typeof r&&isNaN(i)&&isNaN(r))return!0;u++}return!1},ii=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},v={},ri={},c={INDEXEDDB:hi,WEBSQL:ni,LOCALSTORAGE:li},vi=[c.INDEXEDDB._driver,c.WEBSQL._driver,c.LOCALSTORAGE._driver],k=["dropInstance"],ct=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(k),yi={description:"",driver:vi.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};ui=new(function(){function n(t){var i,r,u;for(i in function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n),c)c.hasOwnProperty(i)&&(r=c[i],u=r._driver,this[i]=u,v[u]||this.defineDriver(r));this._defaultConfig=lt({},yi);this._config=lt({},this._defaultConfig,t);this._driverSet=null;this._initDriver=null;this._ready=!1;this._dbInfo=null;this._wrapLibraryMethodsWithReady();this.setDriver(this._config.driver).catch(function(){})}return n.prototype.config=function(n){if("object"!==(void 0===n?"undefined":fi(n)))return"string"==typeof n?this._config[n]:this._config;if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in n){if("storeName"===t&&(n[t]=n[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof n[t])return new Error("Database version must be a number.");this._config[t]=n[t]}return!("driver"in n&&n.driver)||this.setDriver(this._config.driver)},n.prototype.defineDriver=function(n,t,u){var f=new i(function(t,u){var f,e,o,s;try{if(f=n._driver,e=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver"),!n._driver)return void u(e);for(var c=ct.concat("_initStorage"),h=0,l=c.length;h<l;h++)if(o=c[h],(!ai(k,o)||n[o])&&"function"!=typeof n[o])return void u(e);!function(){for(var t,f=function(n){return function(){var u=new Error("Method "+n+" is not implemented by the current driver"),t=i.reject(u);return r(t,arguments[arguments.length-1]),t}},u=0,e=k.length;u<e;u++)t=k[u],n[t]||(n[t]=f(t))}();s=function(i){v[f]&&console.info("Redefining LocalForage driver: "+f);v[f]=n;ri[f]=i;t()};"_support"in n?n._support&&"function"==typeof n._support?n._support().then(s,u):s(!!n._support):s(!0)}catch(e){u(e)}});return h(f,t,u),f},n.prototype.driver=function(){return this._driver||null},n.prototype.getDriver=function(n,t,r){var u=v[n]?i.resolve(v[n]):i.reject(new Error("Driver not found."));return h(u,t,r),u},n.prototype.getSerializer=function(n){var t=i.resolve(b);return h(t,n),t},n.prototype.ready=function(n){var t=this,i=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return h(i,n,n),i},n.prototype.setDriver=function(n,t,r){function f(){u._config.driver=u.driver()}function s(n){return u._extend(n),f(),u._ready=u._initStorage(u._config),u._ready}var u=this,e,o;return ii(n)||(n=[n]),e=this._getSupportedDrivers(n),o=null!==this._driverSet?this._driverSet.catch(function(){return i.resolve()}):i.resolve(),this._driverSet=o.then(function(){var n=e[0];return u._dbInfo=null,u._ready=null,u.getDriver(n).then(function(n){var t;u._driver=n._driver;f();u._wrapLibraryMethodsWithReady();u._initDriver=(t=e,function(){var n=0;return function r(){for(var e,o;n<t.length;)return e=t[n],n++,u._dbInfo=null,u._ready=null,u.getDriver(e).then(s).catch(r);return f(),o=new Error("No available storage method found."),u._driverSet=i.reject(o),u._driverSet}()})})}).catch(function(){f();var n=new Error("No available storage method found.");return u._driverSet=i.reject(n),u._driverSet}),h(this._driverSet,t,r),this._driverSet},n.prototype.supports=function(n){return!!ri[n]},n.prototype._extend=function(n){lt(this,n)},n.prototype._getSupportedDrivers=function(n){for(var i,r=[],t=0,u=n.length;t<u;t++)i=n[t],this.supports(i)&&r.push(i);return r},n.prototype._wrapLibraryMethodsWithReady=function(){for(var n=0,t=ct.length;n<t;n++)pi(this,ct[n])},n.prototype.createInstance=function(t){return new n(t)},n}());t.exports=ui},{3:3}]},{},[4])(4)})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],64:[function(n,t){function c(){throw new Error("setTimeout has not been defined");}function l(){throw new Error("clearTimeout has not been defined");}function a(n){if(r===setTimeout)return setTimeout(n,0);if((r===c||!r)&&setTimeout)return r=setTimeout,setTimeout(n,0);try{return r(n,0)}catch(t){try{return r.call(null,n,0)}catch(t){return r.call(this,n,0)}}}function p(){s&&o&&(s=!1,o.length?f=o.concat(f):h=-1,f.length&&v())}function v(){var t,n;if(!s){for(t=a(p),s=!0,n=f.length;n;){for(o=f,f=[];++h<n;)o&&o[h].run();h=-1;n=f.length}o=null;s=!1,function(n){if(u===clearTimeout)return clearTimeout(n);if((u===l||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(n);try{u(n)}catch(t){try{return u.call(null,n)}catch(t){return u.call(this,n)}}}(t)}}function y(n,t){this.fun=n;this.array=t}function e(){}var r,u,i=t.exports={};!function(){try{r="function"==typeof setTimeout?setTimeout:c}catch(n){r=c}try{u="function"==typeof clearTimeout?clearTimeout:l}catch(n){u=l}}();var o,f=[],s=!1,h=-1;i.nextTick=function(n){var i=new Array(arguments.length-1),t;if(1<arguments.length)for(t=1;t<arguments.length;t++)i[t-1]=arguments[t];f.push(new y(n,i));1!==f.length||s||a(v)};y.prototype.run=function(){this.fun.apply(null,this.array)};i.title="browser";i.browser=!0;i.env={};i.argv=[];i.version="";i.versions={};i.on=e;i.addListener=e;i.once=e;i.off=e;i.removeListener=e;i.removeAllListeners=e;i.emit=e;i.prependListener=e;i.prependOnceListener=e;i.listeners=function(){return[]};i.binding=function(){throw new Error("process.binding is not supported");};i.cwd=function(){return"/"};i.chdir=function(){throw new Error("process.chdir is not supported");};i.umask=function(){return 0}},{}],65:[function(n){(function(n,t){(function(){var r,i;i=r||(r={}),function(){function f(n,t){return function(i,r){"function"!=typeof n[i]&&Object.defineProperty(n,i,{configurable:!0,writable:!0,value:r});t&&t(i,r)}}var r="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),u=f(i);void 0===r.Reflect?r.Reflect=i:u=f(r.Reflect,u),function(t){function vt(n,t){for(var e,r,u=n.length-1;0<=u;--u)if(e=n[u],r=e(t),!i(r)&&!f(r)){if(!ht(r))throw new TypeError;t=r}return t}function yt(n,t,u,e){for(var h,o,s=n.length-1;0<=s;--s)if(h=n[s],o=h(t,u,e),!i(o)&&!f(o)){if(!r(o))throw new TypeError;e=o}return e}function s(n,t,r){var u=c.get(n),f;if(i(u)){if(!r)return;u=new v;c.set(n,u)}if(f=u.get(t),i(f)){if(!r)return;f=new v;u.set(t,f)}return f}function tt(n,t,i){var u=y(n,t,i),r;return u?!0:(r=p(t),!f(r)&&tt(n,r,i))}function y(n,t,r){var u=s(t,r,!1);return!i(u)&&!!u.has(n)}function it(n,t,i){var u=y(n,t,i),r;return u?rt(n,t,i):(r=p(t),f(r)?void 0:it(n,r,i))}function rt(n,t,r){var u=s(t,r,!1);if(!i(u))return u.get(n)}function ut(n,t,i,r){var u=s(i,r,!0);u.set(n,t)}function ft(n,t){var o=et(n,t),l=p(n),u,e,c,i,r;if(null===l||(u=ft(l,t),u.length<=0))return o;if(o.length<=0)return u;for(var f=new at,s=[],h=0,a=o;h<a.length;h++)i=a[h],r=f.has(i),r||(f.add(i),s.push(i));for(e=0,c=u;e<c.length;e++)i=c[e],r=f.has(i),r||(f.add(i),s.push(i));return s}function et(n,t){var u=[],c=s(n,t,!1),o,v;if(i(c))return u;for(var l,y=c.keys(),a=function(n){var i=ct(n,h),t;if(!e(i))throw new TypeError;if(t=i.call(n),!r(t))throw new TypeError;return t}(y),f=0;;){if(o=!(l=a.next()).done&&l,!o)return u.length=f,u;v=o.value;try{u[f]=v}catch(n){try{bt(a)}finally{throw n;}}f++}}function ot(n){if(null===n)return 1;switch(typeof n){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===n?1:6;default:return 6}}function i(n){return void 0===n}function f(n){return null===n}function r(n){return"object"==typeof n?null!==n:"function"==typeof n}function pt(n,t){var i,u,f;switch(ot(n)){case 0:case 1:case 2:case 3:case 4:case 5:return n}if(i=3===t?"string":5===t?"number":"default",u=ct(n,lt),void 0===u)return function(n,t){var f,u,o,i;if("string"===t){if((f=n.toString,e(f)&&(i=f.call(n),!r(i)))||(u=n.valueOf,e(u)&&(i=u.call(n),!r(i))))return i}else if((u=n.valueOf,e(u)&&(i=u.call(n),!r(i)))||(o=n.toString,e(o)&&(i=o.call(n),!r(i))))return i;throw new TypeError;}(n,"default"===i?"number":i);if(f=u.call(n,i),r(f))throw new TypeError;return f}function u(n){var t=pt(n,3);return"symbol"==typeof t?t:""+t}function st(n){return Array.isArray?Array.isArray(n):n instanceof Object?n instanceof Array:"[object Array]"===Object.prototype.toString.call(n)}function e(n){return"function"==typeof n}function ht(n){return"function"==typeof n}function wt(n){switch(ot(n)){case 3:case 4:return!0;default:return!1}}function ct(n,t){var i=n[t];if(null!=i){if(!e(i))throw new TypeError;return i}}function bt(n){var t=n.return;t&&t.call(n)}function p(n){var t=Object.getPrototypeOf(n),u,i,r;return"function"!=typeof n||n===nt?t:t!==nt?t:(u=n.prototype,i=u&&Object.getPrototypeOf(u),null==i||i===Object.prototype)?t:(r=i.constructor,"function"!=typeof r?t:r===n?t:r)}function w(n){return n.__=void 0,delete n.__,n}var l=Object.prototype.hasOwnProperty,b="function"==typeof Symbol,lt=b&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",h=b&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",k="function"==typeof Object.create,d={__proto__:[]}instanceof Array,g=!k&&!d,o={create:k?function(){return w(Object.create(null))}:d?function(){return w({__proto__:null})}:function(){return w({})},has:g?function(n,t){return l.call(n,t)}:function(n,t){return t in n},get:g?function(n,t){if(l.call(n,t))return n[t]}:function(n,t){return n[t]}},nt=Object.getPrototypeOf(Function),a="object"==typeof n&&n.env&&"true"===n.env.REFLECT_METADATA_USE_MAP_POLYFILL,v=a||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){function r(n){return n}function u(n,t){return t}function f(n,t){return[n,t]}var t={},n=[],i=function(){function t(n,t,i){this._index=0;this._keys=n;this._values=t;this._selector=i}return t.prototype["@@iterator"]=function(){return this},t.prototype[h]=function(){return this},t.prototype.next=function(){var t=this._index,i;return 0<=t&&t<this._keys.length?(i=this._selector(this._keys[t],this._values[t]),t+1>=this._keys.length?(this._index=-1,this._keys=n,this._values=n):this._index++,{value:i,done:!1}):{value:void 0,done:!0}},t.prototype.throw=function(t){throw 0<=this._index&&(this._index=-1,this._keys=n,this._values=n),t;},t.prototype.return=function(t){return 0<=this._index&&(this._index=-1,this._keys=n,this._values=n),{value:t,done:!0}},t}();return function(){function n(){this._keys=[];this._values=[];this._cacheKey=t;this._cacheIndex=-2}return Object.defineProperty(n.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),n.prototype.has=function(n){return 0<=this._find(n,!1)},n.prototype.get=function(n){var t=this._find(n,!1);if(0<=t)return this._values[t]},n.prototype.set=function(n,t){var i=this._find(n,!0);return this._values[i]=t,this},n.prototype.delete=function(n){var r=this._find(n,!1),u,i;if(0<=r){for(u=this._keys.length,i=r+1;i<u;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,n===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},n.prototype.clear=function(){this._keys.length=0;this._values.length=0;this._cacheKey=t;this._cacheIndex=-2},n.prototype.keys=function(){return new i(this._keys,this._values,r)},n.prototype.values=function(){return new i(this._keys,this._values,u)},n.prototype.entries=function(){return new i(this._keys,this._values,f)},n.prototype["@@iterator"]=function(){return this.entries()},n.prototype[h]=function(){return this.entries()},n.prototype._find=function(n,t){return this._cacheKey!==n&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=n)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(n),this._values.push(void 0)),this._cacheIndex},n}()}():Map,at=a||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function n(){this._map=new v}return Object.defineProperty(n.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),n.prototype.has=function(n){return this._map.has(n)},n.prototype.add=function(n){return this._map.set(n,n),this},n.prototype.delete=function(n){return this._map.delete(n)},n.prototype.clear=function(){this._map.clear()},n.prototype.keys=function(){return this._map.keys()},n.prototype.values=function(){return this._map.values()},n.prototype.entries=function(){return this._map.entries()},n.prototype["@@iterator"]=function(){return this.keys()},n.prototype[h]=function(){return this.keys()},n}():Set,c=new(a||"function"!=typeof WeakMap?function(){function i(){for(var n;n="@@WeakMap@@"+e(),o.has(u,n););return u[n]=!0,n}function n(n,i){if(!l.call(n,t)){if(!i)return;Object.defineProperty(n,t,{value:o.create()})}return n[t]}function f(n,t){for(var i=0;i<t;++i)n[i]=255*Math.random()|0;return n}function e(){var n,i=(n=r,"function"!=typeof Uint8Array?f(new Array(n),n):"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(n)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(n)):f(new Uint8Array(n),n)),u,t,e;for(i[6]=79&i[6]|64,i[8]=191&i[8]|128,u="",t=0;t<r;++t)e=i[t],4!==t&&6!==t&&8!==t||(u+="-"),e<16&&(u+="0"),u+=e.toString(16).toLowerCase();return u}var r=16,u=o.create(),t=i();return function(){function t(){this._key=i()}return t.prototype.has=function(t){var i=n(t,!1);return void 0!==i&&o.has(i,this._key)},t.prototype.get=function(t){var i=n(t,!1);if(void 0!==i)return o.get(i,this._key)},t.prototype.set=function(t,i){var r=n(t,!0);return r[this._key]=i,this},t.prototype.delete=function(t){var i=n(t,!1);return void 0!==i&&delete i[this._key]},t.prototype.clear=function(){this._key=i()},t}()}():WeakMap);t("decorate",function(n,t,e,o){if(i(e)){if(!st(n))throw new TypeError;if(!ht(t))throw new TypeError;return vt(n,t)}if(!st(n))throw new TypeError;if(!r(t))throw new TypeError;if(!r(o)&&!i(o)&&!f(o))throw new TypeError;return f(o)&&(o=void 0),e=u(e),yt(n,t,e,o)});t("metadata",function(n,t){function u(u,f){if(!r(u))throw new TypeError;if(!i(f)&&!wt(f))throw new TypeError;ut(n,t,u,f)}return u});t("defineMetadata",function(n,t,f,e){if(!r(f))throw new TypeError;return i(e)||(e=u(e)),ut(n,t,f,e)});t("hasMetadata",function(n,t,f){if(!r(t))throw new TypeError;return i(f)||(f=u(f)),tt(n,t,f)});t("hasOwnMetadata",function(n,t,f){if(!r(t))throw new TypeError;return i(f)||(f=u(f)),y(n,t,f)});t("getMetadata",function(n,t,f){if(!r(t))throw new TypeError;return i(f)||(f=u(f)),it(n,t,f)});t("getOwnMetadata",function(n,t,f){if(!r(t))throw new TypeError;return i(f)||(f=u(f)),rt(n,t,f)});t("getMetadataKeys",function(n,t){if(!r(n))throw new TypeError;return i(t)||(t=u(t)),ft(n,t)});t("getOwnMetadataKeys",function(n,t){if(!r(n))throw new TypeError;return i(t)||(t=u(t)),et(n,t)});t("deleteMetadata",function(n,t,f){var e,o;if(!r(t))throw new TypeError;return(i(f)||(f=u(f)),e=s(t,f,!1),i(e))?!1:e.delete(n)?0<e.size?!0:(o=c.get(t),o.delete(f),0<o.size||c.delete(t),!0):!1})}(u)}()}).call(this)}).call(this,n("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:64}]},{},[62]);$(document).ready(function(){var r,n,t;if(window.personalizationRules||window.trackTarget&&window.ttMETA){if($("head").append("<style>.warningbox{margin: 0 auto;background-color:red;position:fixed;display: block;width:50%;height:max-content;top: 0; left: 0;right: 0;bottom: 0;z-index: 2000;border-radius:5px;padding:15px 15px 15px 30px;}.warningbox .resize-arrow{transform: rotate(-47deg);width:10px;font-size:24px;margin-top:-10px;margin-left:-12px;}.shrink{width:45px;height:35px;opacity:.8;overflow:hidden;}<\/style>"),r="<div class='warningbox'><\/div>",$("body").prepend(r),$(".warningbox").click(function(){$(".warningbox").toggleClass("shrink")}),$(".warningbox").append('<div class="resize-arrow">&#8597;<\/div>'),n=!1,window.trackTarget&&window.ttMETA){for(t=[],i=0;i<window.ttMETA.length;i++)t.push(JSON.stringify(window.ttMETA[i]));$(".warningbox").append('<div style="font-weight:bold;">TARGET TEST IS RUNNING<\/div>');$(".warningbox").append("<ul>");t.forEach(function(n){var t=n.replace(/\W/g," ").replace(/global|target|mbox/g,"").replace("campaign","TEST: ").replace("experience","| ").replace("offer","| OFFER: ");$(".warningbox").append("<li>"+t+"<\/li>")});$(".warningbox").append("<\/ul>");n=!0}window.personalizationRules&&(n&&$(".warningbox").append("<br />"),$(".warningbox").append('<div style="font-weight:bold;">This page has been personalized in Sitecore<\/div>'),$(".warningbox").append("<ul>"),window.personalizationRules.forEach(function(n){var t="Component: "+n.component+", Rule Applied: "+n.ruleApplied+", Data Source: "+n.dataSourceName;$(".warningbox").append("<li>"+t+"<\/li>")}),$(".warningbox").append("<\/ul>"))}});$(function(){var n={EnterKey:13};$("#SearchText").keypress(function(t){if(t.which===n.EnterKey)return setUrl(),!1})});slickCarousel={initializeSlick:function(){var n=$("#slickCarouselConfig").attr("value"),t=JSON.parse(n),i=$("#slickCarouselSelector").attr("value");$(i).each(function(){var n=$(this);n.hasClass("slick-initialized")&&n.slick("unslick");n.css("display","block");n.slick(t)})}};$(document).ready(function(){$("#slickCarouselConfig").length&&slickCarousel.initializeSlick()});!function(n){n.idleTimer=function(t,i){var r;"object"==typeof t?(r=t,t=null):"number"==typeof t&&(r={timeout:t},t=null);i=i||document;r=n.extend({idle:!1,timeout:3e4,events:"mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove"},r);var u=n(i),f=u.data("idleTimerObj")||{},e=function(t){var r=n.data(i,"idleTimerObj")||{},u;r.idle=!r.idle;r.olddate=+new Date;u=n.Event((r.idle?"idle":"active")+".idleTimer");n(i).trigger(u,[i,n.extend({},r),t])},o=function(t){var r=n.data(i,"idleTimerObj")||{},u;if(("storage"!==t.type||t.originalEvent.key===r.timerSyncId)&&null==r.remaining){if("mousemove"===t.type){if(t.pageX===r.pageX&&t.pageY===r.pageY)return;if("undefined"==typeof t.pageX&&"undefined"==typeof t.pageY)return;if(u=+new Date-r.olddate,200>u)return}clearTimeout(r.tId);r.idle&&e(t);r.lastActive=+new Date;r.pageX=t.pageX;r.pageY=t.pageY;"storage"!==t.type&&r.timerSyncId&&"undefined"!=typeof localStorage&&localStorage.setItem(r.timerSyncId,r.lastActive);r.tId=setTimeout(e,r.timeout)}},s=function(){var t=n.data(i,"idleTimerObj")||{};t.idle=t.idleBackup;t.olddate=+new Date;t.lastActive=t.olddate;t.remaining=null;clearTimeout(t.tId);t.idle||(t.tId=setTimeout(e,t.timeout))},h=function(){var t=n.data(i,"idleTimerObj")||{};null==t.remaining&&(t.remaining=t.timeout-(+new Date-t.olddate),clearTimeout(t.tId))},c=function(){var t=n.data(i,"idleTimerObj")||{};null!=t.remaining&&(t.idle||(t.tId=setTimeout(e,t.remaining)),t.remaining=null)},l=function(){var t=n.data(i,"idleTimerObj")||{};clearTimeout(t.tId);u.removeData("idleTimerObj");u.off("._idleTimer")},a=function(){var t=n.data(i,"idleTimerObj")||{},r;return t.idle?0:null!=t.remaining?t.remaining:(r=t.timeout-(+new Date-t.lastActive),0>r&&(r=0),r)};if(null===t&&"undefined"!=typeof f.idle)return s(),u;if(null!==t){if(null!==t&&"undefined"==typeof f.idle)return!1;if("destroy"===t)return l(),u;if("pause"===t)return h(),u;if("resume"===t)return c(),u;if("reset"===t)return s(),u;if("getRemainingTime"===t)return a();if("getElapsedTime"===t)return+new Date-f.olddate;if("getLastActiveTime"===t)return f.lastActive;if("isIdle"===t)return f.idle}return u.on(n.trim((r.events+" ").split(" ").join("._idleTimer ")),function(n){o(n)}),r.timerSyncId&&n(window).bind("storage",o),f=n.extend({},{olddate:+new Date,lastActive:+new Date,idle:r.idle,idleBackup:r.idle,timeout:r.timeout,remaining:null,timerSyncId:r.timerSyncId,tId:null,pageX:null,pageY:null}),f.idle||(f.tId=setTimeout(e,f.timeout)),n.data(i,"idleTimerObj",f),u};n.fn.idleTimer=function(t){return this[0]?n.idleTimer(t,this[0]):this}}(jQuery);ServiceDeskUtilities=function(){var f="jjix0ptg",u=function(){(function(){var n=window,i=n.Intercom,r,t,u;typeof i=="function"?(i("reattach_activator"),i("update",n.intercomSettings)):(r=document,t=function(){t.c(arguments)},t.q=[],t.c=function(n){t.q.push(n)},n.Intercom=t,u=function(){var n=r.createElement("script"),t;n.type="text/javascript";n.async=!0;n.src="https://widget.intercom.io/widget/"+f;t=r.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t)},n.attachEvent?n.attachEvent("onload",u):n.addEventListener("load",u,!1))})()},t=function(n){var t,i;if(typeof n=="number"||typeof n=="boolean")return!1;if(typeof n=="undefined"||n===null)return!0;if(typeof n.length!="undefined")return n.length===0;t=0;for(i in n)n.hasOwnProperty(i)&&t++;return t===0},n=function(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))},i=function(n){for(var r=n+"=",f=document.cookie,u=f.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)===" ";)t=t.substring(1);if(t.indexOf(r)===0)return decodedValue(t.substring(r.length,t.length))}return""},e=function(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toUTCString()+"; ";document.cookie=n+"="+t+"; "+u+"path=/;"},r=function(){return i("SWI_Referral")},o=function(){return document.referrer.includes("google")?"GGL":document.referrer.includes("bing")?"MSN":"Other"},s=function(){var n=r();return n.includes("ORG")?"ORG":n.includes("REF")?"REF":"DIR"},h=function(){var n=r();return n.includes("ORG")?o():"empty"};return{setTrackingCookies:function(){var l="SW_sd_attr",u,v,c,f,y,a;t(i(l))?(u={},u.trackingFirstTouch=document.referrer===""?"direct":document.referrer,v=u.trackingFirstTouch.split("?"),u.trackingFirstTouchDomain=v[0],u.trackingFirstPage=window.location.href,u.trackingFirstPageDomain=window.location.host,u.trackingRegistrationUrl=window.location.href.includes("service-desk/registration")?window.location.href:"empty",t(n("utm_source"))?(c=r(),u.trackingSource=c.includes("ORG")?o():"empty"):u.trackingSource=n("utm_source"),t(n("utm_medium"))?(c=r(),u.trackingMedium=c.includes("ORG")?"ORG":c.includes("REF")?"REF":"DIR"):u.trackingMedium=n("utm_medium"),u.trackingContent=t(n("utm_content"))?"empty":n("utm_content"),u.trackingTerm=t(n("utm_term"))?"empty":n("utm_term"),u.trackingCampaign=t(n("utm_campaign"))?"empty":n("utm_campaign"),u.ProductLine=t(n("product_line"))?"SSP":n("product_line"),t(n("CMP"))?(u.trackingCMP="empty",u.TrackingSeg1=s(),u.TrackingSeg2="empty",u.TrackingSeg3=h(),u.TrackingSeg4="empty",u.TrackingSeg5="empty",u.TrackingSeg6="empty",u.TrackingSeg7="empty"):(u.trackingCMP=n("CMP"),f=u.trackingCMP.split("-"),u.TrackingSeg1=typeof f[0]!="undefined"?f[0]:s(),u.TrackingSeg2=typeof f[1]!="undefined"?f[1]:"empty",u.TrackingSeg3=typeof f[2]!="undefined"?f[2]:h(),u.TrackingSeg4=typeof f[3]!="undefined"?f[3]:"empty",u.TrackingSeg5=typeof f[4]!="undefined"?f[4]:"empty",u.TrackingSeg6=typeof f[5]!="undefined"?f[5]:"empty",u.TrackingSeg7=typeof f[6]!="undefined"?f[6]:"empty"),e(l,JSON.stringify(u),30)):window.location.href.includes("service-desk/registration")&&(y=i(l),a=JSON.parse(y),a.trackingRegistrationUrl=window.location.href,e(l,JSON.stringify(a),30))},intercomInit:function(){var r=JSON.parse(i("SW_sd_attr")),t,n,e;window.intercomSettings={app_id:f,lead_source:r.trackingFirstTouch,lead_campaign:r.trackingCampaign};t=i("IntercomChat");t!==""?(n=JSON.parse(t),window.intercomSettings.user_hash=n.hash,window.intercomSettings.email=n.email,u()):i("RegistrationDetails")!==""?(e="/solarapi/servicedesk/isuserhashgenerated",jQuery.get(e,function(t){t==="True"&&(n=JSON.parse(i("IntercomChat")),window.intercomSettings.user_hash=n.hash,window.intercomSettings.email=n.email);u()})):u()}}}();jQuery(document).ready(function(){ServiceDeskUtilities.setTrackingCookies()});jQuery(document).ready(function(){var n,t;window.location.href.indexOf("/database-performance-monitor/registration")>-1&&(n=getQueryStringValue("dpm_source"),n&&(document.cookie="dpm_source="+n+"; path=/"),t=getQueryStringValue("dpm_state"),t&&(document.cookie="dpm_state="+t+"; path=/"))});$(document).ready(function(){const n=getCookie("EuCookieCompliance");n==="accepted"?($("#EuCookieBlock").hide(),$("#EuCookieBlock").removeClass("features-array-redirect-adjust-cookie")):$("#EuContinue").click(function(n){return n.preventDefault(),document.cookie="EuCookieCompliance=accepted; path=/",$("#EuCookieBlock").hide(),$("#EuCookieBlock").removeClass("features-array-redirect-adjust-cookie"),!1})});window.getQueryStringValue=function(n){var u=document.URL.split("?")[1],i,t,r;if(u)for(i=u.split("&"),t=0;t<i.length;t++)if(r=i[t].split("="),r[0]===n)return decodedValue(r[1].replace(/\+/g," "));return""};window.setQueryStringValue=function(n,t,i){var f,r;if(typeof n!="undefined"){var e=n.split("?"),o=e[0],s=e[1],u=[];if(s)for(f=s.split("&"),r=0;r<f.length;r++)f[r].split("=")[0]!==t&&u.push(f[r]);return i&&u.push(t+"="+encodeURIComponent(i).replace(/\%20/g,"+")),u.length>0?o+"?"+u.join("&"):o}return null};window.setCrossSellQuery=function(n){if(n){var t=getQueryStringValue("parentCampaign");t&&(n=setQueryStringValue(n,"parentCampaign",t))}return n};$(document).ready(function(){function n(n){var i,s,h,r;n.preventDefault();var c=$(this).attr("href"),l=$(this).hasClass("mobile"),a=$(this).hasClass("download-btn-silent-submit"),u="",f="",e="",o=0;window.dataLayer!==null&&(window.dataLayer.page!==null&&(u=window.dataLayer.page.type),window.dataLayer.site!==null&&(f=window.dataLayer.site.majorVersion,e=window.dataLayer.site.type),window.sitecat!==undefined&&window.sitecat.eVar23!==undefined&&(o=window.sitecat.eVar23),i=JSON.parse($(this).attr("silent-download-url")),s=i.url,i.sourceUrl=window.location.href,i.pageType=u,i.majorVersion=f,i.deviceType=e,i.visitNumber=o,h=i.confirmationUrl,r=getQueryStringValue("parentCampaign"),r&&(i.parentCampaign=r),$.ajax({url:s,type:"POST",dataType:"json",data:i,success:function(n){l?window.location.href=h:n&&n==="Error"?window.location.href=c:a||t(n)}}))}function t(n){var r=document.createElement("div"),t=document.getElementById("downloadmodalcontent"),i;t==null&&(i=document.createElement("div"),i.innerHTML='<div class="modal fade downloadmodal" id="downloadmodal" tabindex="-1" role="dialog" aria-labelledby="downloadmodal" aria-hidden="true"><div class="modal-dialog" role="document"><div class="iconClose" data-dismiss="modal" aria-label="Close"><span class="overlayClose">Close<\/span><i class="fa fa-times-circle-o" aria-hidden="true"><\/i><\/div><div class="modal-content" id="downloadmodalcontent"><\/div><\/div><\/div>',document.body.appendChild(i),t=document.getElementById("downloadmodalcontent"));$.get(n).done(function(n){var i,u;r.innerHTML=n;t.innerHTML=r.getElementsByClassName("cDownloads")[0].outerHTML;i=$(t).find(".productCard");i.length===1?(u=$(i)[0].getElementsByClassName("btnGreen")[0].getAttribute("href"),window.location.href=u):$("#downloadmodal").modal("show")})}$(".product-card-silent-submit").filter('[silent-download-url]:not([silent-download-url=""])').click(n);$(".download-btn-silent-submit").filter('[silent-download-url]:not([silent-download-url=""])').click(n);$(".product-card-submit").filter('[href]:not([href=""])').click(function(n){n.preventDefault();var t=setCrossSellQuery($(this).attr("href"));return window.location.href=t,!1})});!function(n,t){"use strict";function f(r,f,e,o,s){function it(){ut=n.devicePixelRatio>1;rt(e);f.delay>=0&&setTimeout(function(){d(!0)},f.delay);(f.delay<0||f.combined)&&(o.e=lt(f.throttle,function(n){"resize"===n.type&&(y=p=-1);d(n.all)}),o.a=function(n){rt(n);e.push.apply(e,n)},o.g=function(){return e=i(e).filter(function(){return!i(this).data(f.loadedName)})},d(),i(f.appendScroll).on("scroll."+s+" resize."+s,o.e))}function rt(n){var y=f.defaultImage,p=f.placeholder,k=f.imageBase,s=f.srcsetAttribute,c=f.loaderAttribute,a=f._f||{},e,w;for(n=i(n).filter(function(){var n=i(this),r=g(this);return!n.data(f.handledName)&&(n.attr(f.attribute)||n.attr(s)||n.attr(c)||a[r]!=t)}).data("plugin_"+f.name,r),e=0,w=n.length;w>e;e++){var u=i(n[e]),o=g(n[e]),b=u.attr(f.imageBaseAttribute)||k;o==l&&b&&u.attr(s)&&u.attr(s,ct(u.attr(s),b));a[o]==t||u.attr(c)||u.attr(c,a[o]);o==l&&y&&!u.attr(h)?u.attr(h,y):o==l||!p||u.css(v)&&"none"!=u.css(v)||u.css(v,"url('"+p+"')")}}function d(n){if(!e.length)return void(f.autoDestroy&&r.destroy());for(var o=!1,c=f.imageBase||"",s=f.srcsetAttribute,t=f.handledName,u=0,a=e.length;a>u;u++)(function(r){if(n||ot(r)){var u=i(r),e=g(r),a=u.attr(f.attribute),y=u.attr(f.imageBaseAttribute)||c,p=u.attr(f.loaderAttribute);!u.data(t)&&(!f.visibleOnly||u.is(":visible"))&&((a||u.attr(s))&&(e==l&&(y+a!=u.attr(h)||u.attr(s)!=u.attr(b))||e!=l&&y+a!=u.css(v))||p)&&(o=!0,u.data(t,!0),et(u,e,y,p))}})(e[u]);o&&(e=i(e).filter(function(){return!i(this).data(t)}))}function et(n,t,r,u){var o,s,e,p;++tt;o=function(){c("onError",n);nt();o=i.noop};c("beforeLoad",n);var d=f.attribute,g=f.srcsetAttribute,y=f.sizesAttribute,it=f.retinaAttribute,rt=f.removeAttribute,et=f.loadedName,ot=n.attr(it);if(u)s=function(){rt&&n.removeAttr(f.loaderAttribute);n.data(et,!0);c(ft,n);setTimeout(nt,1);s=i.noop},n.off(a).one(a,o).one(w,s),c(u,n,function(t){t?(n.off(w),s()):(n.off(a),o())})||n.trigger(a);else{e=i(new Image);e.one(a,o).one(w,function(){n.hide();t==l?n.attr(k,e.attr(k)).attr(b,e.attr(b)).attr(h,e.attr(h)):n.css(v,"url('"+e.attr(h)+"')");n[f.effect](f.effectTime);rt&&(n.removeAttr(d+" "+g+" "+it+" "+f.imageBaseAttribute),y!==k&&n.removeAttr(y));n.data(et,!0);c(ft,n);e.remove();nt()});p=(ut&&ot?ot:n.attr(d))||"";e.attr(k,n.attr(y)).attr(b,n.attr(g)).attr(h,p?r+p:null);e.complete&&e.load()}}function ot(n){var t=n.getBoundingClientRect(),r=f.scrollDirection,i=f.threshold,u=ht()+i>t.top&&-i<t.bottom,e=st()+i>t.left&&-i<t.right;return"vertical"==r?u:"horizontal"==r?e:u&&e}function st(){return y>=0?y:y=i(n).width()}function ht(){return p>=0?p:p=i(n).height()}function g(n){return n.tagName.toLowerCase()}function ct(n,t){var r,i,u;if(t)for(r=n.split(","),n="",i=0,u=r.length;u>i;i++)n+=t+r[i].trim()+(i!==u-1?",":"");return n}function lt(n,t){var i,u=0;return function(e,o){function s(){u=+new Date;t.call(r,e)}var h=+new Date-u;i&&clearTimeout(i);h>n||!f.enableThrottle||o?s():i=setTimeout(s,n-h)}}function nt(){--tt;e.length||tt||c("onFinishedAll")}function c(n){return(n=f[n])?(n.apply(r,[].slice.call(arguments,1)),!0):!1}var tt=0,y=-1,p=-1,ut=!1,ft="afterLoad",w="load",a="error",l="img",h="src",b="srcset",k="sizes",v="background-image";"event"==f.bind||u?it():i(n).on(w+"."+s,it)}function r(r,u){var o=this,h=i.extend({},o.config,u),s={},c=h.name+"-"+ ++e;return o.config=function(n,i){return i===t?h[n]:(h[n]=i,o)},o.addItems=function(n){return s.a&&s.a("string"===i.type(n)?i(n):n),o},o.getItems=function(){return s.g?s.g():{}},o.update=function(n){return s.e&&s.e({},!n),o},o.loadAll=function(){return s.e&&s.e({all:!0},!0),o},o.destroy=function(){return i(h.appendScroll).off("."+c,s.e),i(n).off("."+c),s={},t},f(o,h,r,s,c),h.chainable?r:o}var i=n.jQuery||n.Zepto,e=0,u=!1;i.fn.Lazy=i.fn.lazy=function(n){return new r(this,n)};i.Lazy=i.lazy=function(n,u,f){var s,h;if(i.isFunction(u)&&(f=u,u=[]),i.isFunction(f)){n=i.isArray(n)?n:[n];u=i.isArray(u)?u:[u];for(var e=r.prototype.config,c=e._f||(e._f={}),o=0,l=n.length;l>o;o++)(e[n[o]]===t||i.isFunction(e[n[o]]))&&(e[n[o]]=f);for(s=0,h=u.length;h>s;s++)c[u[s]]=n[0]}};r.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:n,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:t,afterLoad:t,onError:t,onFinishedAll:t};i(n).on("load",function(){u=!0})}(window)