$(function(){function a(){var a=$("
Scroll trigger
");a.css({top:h+"%",position:"fixed",right:0,border:"1px solid red",width:"100px",height:"0"}),a.appendTo("body")}function b(a,b){var c,d=a+window.innerHeight*(h/100);return b.each(function(){var a=$(this).offset().top,b=a+$(this).outerHeight();if(ad)return c=$(this),!1}),c}function c(a,c){var d=b(a,$(f));c&&(d=c),d&&"undefined"==typeof d.attr("data-skip-activate-page-section")&&(d.addClass("active").trigger("page-section-activated"),g&&$(f).not(d).removeClass("active").trigger("page-section-deactivated"))}function d(){$(window).on("scroll",webutils.throttle(function(){var a=window.scrollY||window.pageYOffset;c(a)},5)),c(0,$(f).first()),$(window).scroll(),"true"===webutils.getURLParameter("debug-page-section-trigger")&&a()}var e=$(".js-activate-page-section");if(0!==e.length){var f=e.attr("data-page-section-selector")||"article section:visible",g=e.attr("data-page-section-deactivate"),h=e.attr("data-page-section-trigger")?parseInt(e.attr("data-page-section-trigger")):50;d()}}),$(function(){var a=function(){var a=window.getComputedStyle(document.querySelector("body"),":before").getPropertyValue("content").replace(/\"/g,"").replace(/\((.+?)\)/g,"{ $1 }").replace(/(\w+?): (.+?)px(,|\ )/g,'"$1": $2$3').replace(/\'/g,"");return JSON.parse(a)};window.isBreakpointUp=function(a){return window.innerWidth>=window.breakpoints[a]},window.isBreakpointDown=function(a){return window.innerWidth0){var h=g.find("video")[0];h.currentTime>0&&(h.currentTime=0),e.playOnAnimationEnd?g.one("webkitAnimationEnd oAnimationend oAnimationEnd msAnimationEnd animationend",function(){h.play()}):b(h)}}function b(a){return $(a).hasClass("lazyloaded")?a.play():void setTimeout(function(){return b(a)},300)}function c(){d.each(function(){var b={isExclusive:!0,isDeepLinkable:$(this).data("enable-deeplinks"),playOnAnimationEnd:!0},c=$(this).children(".tabs-container").find("[data-accordion-tab]"),d=$(this).children(".content-container").find("[data-accordion-tab-content]"),e=window.location.hash.replace("#",""),f=c.filter('[data-accordion-tab="'+e+'"]');c.on("click",function(){a($(this),c,d,b)}),b.playOnAnimationEnd=!1,b.isDeepLinkable&&f.length>0?a(f.first(),c,d,b):a(c.first(),c,d,b)})}var d=$(".js-accordion-media");0!==d.length&&c()}),$(function(){function a(){b.on("click",".accordion-closed",function(a){a.stopPropagation();var b=$(this),c=b.parents(".js-accordion"),d=b.parent(),e=c.data("exclusive");e&&d.siblings(".accordion-item").removeClass("active"),d.toggleClass("active")})}var b=$(".js-accordion");0!==b.length&&a()}),$(function(){function a(){b.on("animationend",c.appearDone)}var b=$(".js-animated-product-logo");if(0!==b.length){var c={appearDone:function(a){$(a.currentTarget).addClass("entrance-done").off("animationend",c.appearDone).on("animationend",c.hoverState),$(a.currentTarget).parent().on("mouseover",c.mouseOver)},hoverState:function(a){$(a.currentTarget).removeClass("hover")},mouseOver:function(a){$(a.currentTarget).children(b).addClass("hover")}};a()}}),$(function(){function a(){$(".js-carousel-container").slick({infinite:!1,lazyLoad:"ondemand",slidesToShow:3,slidesToScroll:1,draggable:!0,swipeToSlide:!0,touchThreshold:100,appendArrows:".js-carousel-arrows",variableWidth:!0,prevArrow:'',nextArrow:'',responsive:[{breakpoint:1115,settings:{infinite:!0,slidesToShow:2}}]})}a()}),$(function(){function a(){var a=$(".js-sticky-table-header"),c=$(".js-sticky-table-header-offset");a.width(),$(window).add(b).scroll(webutils.throttle(function(){var d=c.length?c.offset().top:0,e=($(window).height(),$(document).scrollTop()),f=0,g=b.offset().top+b.outerHeight();if(webutils.globalNav.sticky.isSticky&&(d-=webutils.globalNav.sticky.navHeight,f=webutils.globalNav.sticky.navHeight),$(".js-sticky-nav").length>0&&window.isBreakpointUp("small")&&(d-=$(".js-sticky-nav").outerHeight(),f=$(".js-sticky-nav").outerHeight()),e>d&&eb.width()&&a.filter(".stuck").css({left:-i,width:j+b.outerWidth()+i})},10)),$(window).add(b).scroll()}var b=$(".js-compare-table");0!==b.length&&(b.length>1&&console.warn("Only one Compare table module is allowed per page."),a())}),$(function(){var a=$(".js-dropdown-trigger"),b=$(".js-checkbox-item"),c=($(".js-checkbox-item .js-field.js-select"),$("body")),d=$(".js-dropdown-list");$dropdownArrow=$(".js-dropdown-arrow"),a.click(function(){var b=$(this),c=b.closest(".js-modal"),e=b.siblings(".js-dropdown-list");e.hasClass("dropdown-open")?(d.removeClass("dropdown-open"),a.removeClass("active"),$dropdownArrow.removeClass("selected")):(window.isBreakpointUp("small")&&(d.removeClass("dropdown-open"),a.removeClass("active"),$dropdownArrow.removeClass("selected")),e.addClass("dropdown-open"),b.addClass("active"),b.find(".js-dropdown-arrow").addClass("selected")),c.length&&e.hasClass("dropdown-open")&&c.animate({scrollTop:b.offset().top-c.offset().top},1e3)}),c.click(function(b){0===$(b.target).closest(".multiselect-container").length&&(d.removeClass("dropdown-open"),a.removeClass("active"),$dropdownArrow.removeClass("selected"))}),b.click(function(){var a=$(this).find(".js-field.js-select");a.prop("checked",!a.is(":checked")).change()})}),$(function(){function a(){g.addClass("hide"),$.cookie(h,!0,{expires:1})}function b(){return cookieUtils.searchForCookie(h)===l}function c(){b()&&i.attr("data-state",l).attr("data-state-static","1")}function d(){switch(i.attr("data-state")){case"expanded":i.attr("data-state","collapsed"),j.attr("aria-label","Expand promo");break;case"collapsed":i.attr("data-state","expanded"),j.attr("aria-label","Collapse promo")}b()||$.cookie(h,l,{expires:1})}function e(){g.detach(),window.innerWidth<768?g.prependTo(m):g.prependTo("body")}function f(){c(),g.removeClass("hide"),i.attr("data-collapse-delay")&&(k=parseInt(i.attr("data-collapse-delay"))),g.children(".js-close").on("click",a),i.find(".js-promo-toggle").on("click",d),$(window).on("resize",webutils.throttle(e,300)),$(window).resize(),i.length>0&&"1"!==i.attr("data-state-static")&&setTimeout(d,k)}var g=$(".js-floating-promo"),h=g.attr("data-cookie-name"),i=$(".js-floating-promo[data-state]"),j=$(".js-promo-toggle"),k=5e3,l="collapsed",m=g.parent();0!==g.length&&"true"!==cookieUtils.searchForCookie(h)&&f()}),$(function(){function a(){var a=f.find(".template");return 0===a.length?f.find("a"):(a.remove(),h.each(function(){var b=$(this).attr("id"),c=$(this).attr("data-nav-section")||b,d=a.clone().removeClass("template");d.find("a").attr("href","#"+b).find("span").text(c),f.find("ul").append(d)}),f.find("a"))}function b(){window.location.hash&&0!==$(window.location.hash).length&&(history.scrollRestoration="manual",i.filter('[href="'+window.location.hash+'"]').click())}function c(a){function b(a,b){return window.innerHeight>a.outerHeight()?a.offset().top-(window.innerHeight-a.outerHeight())*b:a.offset().top}function c(a,b,c,d){var a=a||document.documentElement,e=a.scrollTop,f=b-e,g=0,h=20;Math.easeInOutQuint=function(a,b,c,d){var e=(a/=d)*a,f=e*a;return b+c*(6*f*e+-15*e*e+10*f)},Math.easeInOutBounce=function(a,b,c,d){var e=(a/=d)*a,f=e*a;return b+c*(-9*f*e+30*e*e+-35*f+15*e)};var i=function(){g+=h;var a=Math.easeInOutBounce(g,e,f,c);window.scrollTo(0,a),g1&&console.warn("Only one In-page nav module is allowed per page.");var g="undefined"==typeof f.data("inpageNavSectionAlignment")?.5:f.data("inpageNavSectionAlignment"),h=$("[data-nav-section]"),i=a();e()}});var LazyloadSlideshow={play:function(a,b,c,d){var e=document.getElementsByClassName(a),f=0,g=$("."+a+"-container"),h=$(e[f%e.length]);d=d||0,LazyloadSlideshow.showSlide(h,g),setTimeout(function(){var a=setInterval(function(){LazyloadSlideshow.hideSlide(h,g),f++,h=$(e[f%e.length]),LazyloadSlideshow.showSlide(h,g),"infinite"!==c&&f+1===c*e.length&&clearInterval(a)},b)},d)},showSlide:function(a,b){return b.length>0?void b.addClass(a.attr("data-slide")):a.hasClass("fade-to-slide")?void a.fadeTo(750,1):void a.show()},hideSlide:function(a,b){b.length>0?b.removeClass(a.attr("data-slide")):a.hide()},loadAndPlay:function(a,b,c,d){var e,f=document.getElementsByClassName(a);c=c||"infinite",$(f).addClass("hide-while-loading");var g=setInterval(function(){e=[].slice.call(f),e.reduce(LazyloadSlideshow.imageLoaded)&&($(f).hide().removeClass("hide-while-loading"),LazyloadSlideshow.play(a,b,c,d),clearInterval(g))},300)},loadAndPlayOnScroll:function(a,b,c,d){var e,f=document.getElementsByClassName(a),g=$(f).first();c=c||"infinite",$(f).addClass("hide-while-loading"),g.attr("data-scrolled","0");var h=setInterval(function(){e=[].slice.call(f),e.reduce(LazyloadSlideshow.imageLoaded)&&"1"===g.attr("data-scrolled")&&($(f).hide().removeClass("hide-while-loading"),LazyloadSlideshow.play(a,b,c,d),clearInterval(h))},300)},imageLoaded:function(a,b,c,d){return a&&$(b).hasClass("lazyloaded")},updateScrollStatus:function(){$('[data-scrolled="0"]').each(function(){var a=$(this),b=a.offset().top,c=$(window).scrollTop(),d=180,e=b>=c-d;e&&a.attr("data-scrolled","1")})},init:function(){$(window).on("scroll resize",webutils.debounce(LazyloadSlideshow.updateScrollStatus,30))}};$(function(){function a(a,b){return a.match(j)?parseInt(a.match(j)[1]):b}function b(b){if(b.hasClass("js-lazyload-list-paginated")){var c=b.attr("href"),d=a(c,2);webutils.pushStateFragment(document.title+" ("+d+")",d),b.attr("href",c.replace(j,"#"+(d+1).toString()))}}function c(){if(0!==i.length){var b=parseInt(a(window.location.href,1)),c=i.first(),e=$("."+c.attr("data-container-class")),f=c.attr("data-load-increment"),g=d(e),h=b;c.show(),$(".js-lazyload-list-item",e).slice(0,f*h).css("display",g),0===$(".js-lazyload-list-item:hidden",e).length?c.hide():c.attr("href",c.attr("href").replace(j,"#"+(b+1).toString()))}}function d(a){var b="flex";return $(".js-lazyload-list-item:visible",a).length&&(b=$(".js-lazyload-list-item:visible",a).first().css("display")),b}function e(){return null!==window.location.href.match(j)}function f(a){a.preventDefault();var c=$("."+$(this).attr("data-container-class")),e=$(this).attr("data-load-increment"),f=d(c);$(".js-lazyload-list-item:hidden",c).slice(0,e).css("display",f),0===$(".js-lazyload-list-item:hidden",c).length&&$(this).hide(),b($(this))}function g(){h.click(f),e()&&c()}var h=$(".js-lazyload-list-trigger"),i=$(".js-lazyload-list-trigger.js-lazyload-list-paginated"),j=/#(\d+)/;g()}),$(function(){var a=$(".js-localized-image, .js-localized-video");if(0!==a.length){var b={isOfflinedJapanPage:function(){return"ja-jp"===b.getCurrentLanguage()&&$("body").attr("class").indexOf("smartling")===-1},localizePath:function(a,c){var d=new RegExp("(.+)(\\..+?)$| ","gm"),e="$1"+c+"$2";if(a.indexOf(",")===-1)return b.isOfflinedJapanPage()?b.getJapanPath(a):a.replace(d,e);for(var f=a.split(","),g=0;g header, body > article, body > footer").attr("aria-hidden","true")}(a),c(a,d);var f=$(a).find('a[href]:visible, area[href], input:not([disabled]):not([type="hidden"]):visible, select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),g=f[0],h=f[f.length-1];a.focus(),a.on("keydown",e,function(c){function d(){document.activeElement===g&&(c.preventDefault(),h.focus())}function i(){document.activeElement===h&&(c.preventDefault(),g.focus())}e=e||$("body");var j=9,k=27;switch(c.keyCode){case j:if(1===f.length){c.preventDefault();break}c.shiftKey?d():i();break;case k:b(a),e.focus()}})}function b(a){a=a||$(".js-modal.active"),thisModalId=a.attr("data-modal-id"),$thisOverlay=$("body").find("[data-overlay-id='"+thisModalId+"']");var b=a.find("form"),c=a.attr("data-modal-persist-form");c||0===b.length||formUtils.resetForm(b),function(a){$thisOverlay.remove(),a.removeClass("active"),a.attr("aria-hidden","true"),$("body").removeClass("no-overflow"),$("body > header, body > article, body > footer").attr("aria-hidden","false")}(a)}function c(a,c){var d=$('');d.insertBefore(a),d.on("click",function(c){c.preventDefault(),$(this).remove(),b(a)})}function d(b){var c=window.location.hash,d=c.substr(1),e=$('.js-modal[data-modal-id="'+d+'"]');if($(".js-modal[data-modal-id]").length&&e.length){var f=e;a(f,d)}}function e(){var c;$("body").on("click",f,function(b){b.preventDefault(),c=$(this);var d=$(this).data("modal-id"),e=$('.js-modal[data-modal-id="'+d+'"]');0!==e.length&&a(e,d,c)}),h.on("click",function(a){a.preventDefault();var c=$(this).parents(".js-modal");b(c)}),$("body").on("click",".js-page-overlay",function(a){a.preventDefault();var d=$(this).attr("data-overlay-id"),e=$("body").find("[data-modal-id='"+d+"']");b(e),c.focus()}),window.location.hash&&d()}var f=".js-open-modal",g=$(f),h=$(".js-close-modal"),i=$(".js-modal");0!==g.length&&0!==i.length&&e()}),$(function(){function a(a){var b=a.children(),c=Math.floor(Math.random()*Math.floor(b.length));d&&(c=d),b.eq(c).addClass("active")}function b(){c.each(function(){a($(this))})}var c=$(".js-randomized-content"),d=webutils.getParameterByName("random")!==-1?webutils.getParameterByName("random"):null;c.length&&b()}),$(function(){var a={useVideoSource:function(a){a.each(function(){$(this).attr("src",$(this).attr("data-src")).removeAttr("data-src"),$(this).parent()[0].load()})},init:function(){window.devicePixelRatio>1?this.useVideoSource($("source.retina")):this.useVideoSource($("source.default"))}};a.init()}),$(function(){function a(){c.each(function(){var a=$(this),b=a.offset().top,c=b+a.outerHeight(),d=$(window).scrollTop(),e=d+window.innerHeight;ce?a.removeClass("js-play-on-scroll-played"):a.hasClass("js-play-on-scroll-played")||(a[0].currentTime=0,a[0].play(),a.addClass("js-play-on-scroll-played"))})}function b(){$(window).on("scroll resize",webutils.throttle(a,100))}var c=$("video.js-play-on-scroll");0!==c.length&&b()}),$(function(){function a(){b.each(function(){var a=$(this),b=a.data("autoplay-speed")||4e3,c=a.data("autoplay")||!0,d=a.data("arrows")||!1,e=a.data("dots")||!1,f=a.data("click-to-advance")||!1;a.slick({fade:!0,arrows:d,prevArrow:'',nextArrow:'',dots:e,autoplay:c,draggable:!1,swipe:!1,pauseOnFocus:!1,pauseOnHover:!1,autoplaySpeed:b}),f&&a.on("click",function(){a.slick("slickNext")})})}var b=$(".js-slideshow");0!==b.length&&a()}),$(function(){function a(){$(window).scroll(webutils.throttle(function(){var a=b.width(),d=b.attr("data-sticky-breakpoint"),e=c.length?c.offset().top:0,f=0,g=$(document).scrollTop();webutils.globalNav.sticky.isSticky&&(e-=webutils.globalNav.sticky.navHeight,f=webutils.globalNav.sticky.navHeight);var h=window.isBreakpointUp("small");if(d){var i=d.split("-"),j=i[0],k="isBreakpoint"+i[1].charAt(0).toUpperCase()+i[1].slice(1);h=window[k](j)}if(g>e&&h){var l=b.outerHeight();if(b.addClass("sticky-nav-stuck").css("top",f),c&&c.css("min-height",l),b.hasClass("tall")){var m=a/window.innerWidth*100;b.width(m+"%")}}else b.removeClass("sticky-nav-stuck").css("top","auto"),c&&c.css("min-height",0)},10)),$(window).scroll()}var b=$(".js-sticky-nav"),c=$(".js-sticky-nav-offset");0!==b.length&&(b.length>1&&console.warn("Only one Sticky nav module is allowed per page."),a())}),$(function(){function a(a){switch(a){case"support":case"guide":return"/hc/start";case"support_dashboard":return"/agent/dashboard";case"gather":return"/gather/start";case"chat":return"/chat/start";case"talk":return"/talk/start";case"explore":return"/explore";case"answer_bot":return"/agent/admin/automatic_answers";case"sell":return"/sell/start";case"salessuite":return"/sell/status";case"reach":return"/reach/start";default:return null}}function b(){window.webutils&&c.each(function(){var b=$(this),c=b.children("a"),d=b.data("product"),e=b.data("deeplinkuri")||a(d);null!==e&&webutils.showCTA(c,e,{event:"enable_"+d,subdomainListSelector:b.children(".js-subdomainlogin"),truncationLength:b.data("trunc")})})}var c=$(".js-trial-button, .js-buy-now-button");0!==c.length&&b()}),$(function(){function a(a,b,c,d){var e=a.data("tab"),f=c.filter('[data-tab-content="'+e+'"]');if((window.isBreakpointUp("small")||d.isExclusive)&&b.removeClass("active"),a.hasClass("active")?a.removeClass("active"):(a.addClass("active"),b.attr("data-clicked","false"),a.attr("data-clicked","true")),c.removeClass("active"),f.addClass("active"),d.isDeepLinkable&&(window.location.hash=e),f.find("video").length>0){var g=f.find("video")[0];g.currentTime>0&&(g.currentTime=0),f.closest(".js-tabs-module").hasClass("mixed")&&g.play(),f.one("webkitAnimationEnd oAnimationend oAnimationEnd msAnimationEnd animationend",function(){g.play()})}}function b(){c.each(function(){var b={isExclusive:$(this).data("exclusive"),isDeepLinkable:$(this).data("enable-deeplinks")},c=$(this).children(".tabs-container").find("[data-tab]"),d=$(this).children(".content-container").find("[data-tab-content]");c.on("click",function(){a($(this),c,d,b)}),$(window).on("resize",function(){(window.isBreakpointUp("small")||b.isExclusive)&&(c.filter(".active").length>1?c.filter('[data-clicked="true"]').click():0===c.filter(".active").length&&c.first().click())});var e=c.filter('[data-tab="'+window.location.hash.replace("#","")+'"]');if(0!==e.length&&b.isDeepLinkable){e.click();var f=function(){return"complete"!==document.readyState?setTimeout(f):void $([document.documentElement,document.body]).animate({scrollTop:e.offset().top-42},420)};f()}else c.first().click()})}var c=$(".js-tabs-module");0!==c.length&&b()}),$(function(){function a(){window.isBreakpointUp("small")&&$("html, body").animate({scrollTop:o.first().offset().top-200},1e3)}function b(){var a=$(".js-tile-col",t).length;"none"===t.css("display")?(m.addClass("hide-clear-all"),p.addClass("hide-count")):(m.removeClass("hide-clear-all"),p.removeClass("hide-count"),q.text(a))}function c(){k.each(function(){$(this).text($(this).text().replace(/ \(\d+\)$/,""))}),j.each(function(){var a=$(".js-filter-checkbox:checked",$(this)).length,b=$(".dropdown-field",$(this)),c=$(".js-dropdown-text",$(this));return 0===a?void b.removeClass("has-checked-items"):(b.addClass("has-checked-items"),void c.text(c.text()+" ("+a+")"))})}function d(a){a.preventDefault(),l.prop("checked",!1).closest(".js-checkbox-item").removeClass("checked"),c(),g(),f()}function e(){var a=webutils.getURLParameter(y).split(",");a.forEach(function(a){$('.js-filter-checkbox[value="'+a+'"]').prop("checked",!0).closest(".js-checkbox-item").addClass("checked")}),c(),g()}function f(){var a=($(".js-filter-checkbox:checked"),[]);$(".js-filter-checkbox:checked").each(function(){a.push($(this).val())}),a.length>0?webutils.setParameterByName(y,a.join(",")):webutils.removeURLParameter(y)}function g(){var a,c,d=$(".js-filter-checkbox:checked"),e=s;d.length>0?(r.hide(),u.show(),w.hide(),t.css("display","flex").find(".js-tile-col").remove(),j.each(function(){d=$(this).find(".js-filter-checkbox:checked"),d.length>0&&(a=[],d.each(function(){a.push($(this).val())}),e=e.filter(function(){return c=$(this).attr("data-tags").split(","),h(a,c).length>0}))}),e.length>0?(e.clone().insertBefore(u),e.length<=x?v.hide():v.show()):(u.hide(),w.show())):(r.show(),t.hide()),b()}function h(a,b){var c;return b.length>a.length&&(c=b,b=a,a=c),a.filter(function(a){return b.indexOf(a)>-1})}function i(){m.click(d),l.change(function(){$(this).closest(".js-checkbox-item").toggleClass("checked"),c(),g(),f()}),o.length&&n.click(a),e()}var j=$(".js-tile-filter"),k=$(".js-dropdown-text"),l=$(".js-filter-checkbox"),m=$(".js-tile-filters-clear-all"),n=$(".js-tile-refresh-trigger"),o=$(".js-tile-refresh-anchor"),p=$(".js-tiles-count"),q=$(".js-tiles-count-num"),r=$(".js-tiles"),s=$(".js-tile-col"),t=$(".js-filtered-results"),u=$(".js-filtered-results .js-load-more-container"),v=$(".js-lazyload-list-trigger",t),w=$(".js-filtered-results .js-none-found-message"),x=parseInt(v.attr("data-load-increment")),y="tileFilters";i()}),$(function(){function a(a,b){var d=a.data(),e=a.attr("data-toggle"),f=$('.js-toggler-target[data-toggle="'+e+'"]'),g=a.add(f);if(b||(b=f.hasClass("active")?"off":"on"),"on"===b){if(g.addClass("active"),d.toggleClass&&g.addClass(d.toggleClass),d.toggleExclusive===!0){var h=a.parents(".js-toggler-parent"),i=h.find(c).not(a);i&&i.is(".active")&&i.click()}}else g.removeClass("active"),d.toggleClass&&g.removeClass(d.toggleClass);d.toggleThenHide&&a.hide(),g.trigger("toggled-"+b)}function b(){c.on("click",function(){a($(this))})}var c=$(".js-toggler");c.length&&b()}),$(function(){function a(){b()}function b(){var a=c.find(".js-enterprise-submit-btn");formUtils.defaultInlineValidation(c),formUtils.regionalFieldDisplay(c,e),formUtils.populateHiddenFields(d),formUtils.prepopulateCountryField(d.country),formUtils.setMAVs(!1),webutils.paramsForEloqua();var b=function(a){a.preventDefault();var b=formUtils.preflightValidate(c);b&&f()},f=function(){var a={enrich:!1,form:c,trackingParams:{trackingSiteCategory:"RegisterLead",trackingEventName:"EliteContactModal_Submit",dataLayerEventName:"contact_us"}};c.find(".js-loading").addClass("active"),formUtils.setFullNameField(c),formUtils.createLeadAndHandleDisplay(a)};a.on("click",b)}var c=$(".js-enterprise-form"),d={company:c.find('input[name="account[name]"]'),country:c.find('select[name="country"]'),email:c.find('input[name="owner[email]"]'),firstName:c.find('input[name="FirstName"]'),hiddenCountry:c.find('input[name="MailingCountry"]'),hiddenFullName:c.find('input[name="owner[name]"]'),industry:c.find('input[name="industry"]'),lastName:c.find('input[name="LastName"]'),optIn:c.find('input[name="optinToMarketing"]'),phone:c.find('address[name="phone"]'),size:c.find('select[name="account[help_desk_size]"]'),partnerAccount:c.find('input[name="partner_account"]'),partnerContact:c.find('input[name="partner_contact"]')},e={firstName:d.firstName.parents(".js-field-wrap"),lastName:d.lastName.parents(".js-field-wrap")};a()}),$(function(){function a(){var a={company:$(this).find('input[name="account[name]"]'),department:$(this).find('select[name="department"]'),email:$(this).find('input[name="owner[email]"]'),firstName:$(this).find('input[name="FirstName"]'),hiddenCountry:$(this).find('input[name="MailingCountry"]'),hiddenFullName:$(this).find('input[name="owner[name]"]'),jobTitle:$(this).find('input[name="job"]'),lastName:$(this).find('input[name="LastName"]'),message:$(this).find('textarea[name="question"]'),optIn:$(this).find('input[name="optinToMarketing"]'),phone:$(this).find('address[name="phone"]'),size:$(this).find('select[name="account[help_desk_size]"]'),subject:$(this).find('select[name="subject"]'),referrer:$(this).find('input[name="referring_url"]'),pageUrl:$(this).find('input[name="current_page_url"]'),partnerAccount:$(this).find('input[name="partner_account"]'),partnerContact:$(this).find('input[name="partner_contact"]')},b={firstName:a.firstName.parents(".js-field-wrap"),lastName:a.lastName.parents(".js-field-wrap"),jobTitle:a.jobTitle.parents(".js-field-wrap"),department:a.department.parents(".js-field-wrap")};formUtils.defaultInlineValidation($(this)),formUtils.regionalFieldDisplay($(this),b),formUtils.populateHiddenFields(a),formUtils.setMAVs(!1),webutils.paramsForEloqua()}function b(){c.each(a),d.on("click",f),e.on("click",g)}var c=$(".js-form-contact-modal"),d=$(".js-open-modal"),e=$(".js-modal-contact-submit-btn"),f=function(a){a.preventDefault();var b=$(this).data("modal-id"),c=$('.js-modal[data-modal-id="'+b+'"]'),d=$(this).data("prepopulate");if("1"==d&&formUtils.prepopulateFieldsFromLocalStorage(),0!==c.length){var e=jQuery.Event("modalOpened"),f=c.find(".js-form-contact-modal");f.trigger(e),webutils.track({siteCategory:"RegisterLead",eventName:"ContactModal_View"})}},g=function(a){a.preventDefault();var b=$(this).closest(".js-form-contact-modal"),c=formUtils.preflightValidate(b);c&&h(b)},h=function(a){var b=a.hasClass("js-contact-ticket"),c={enrich:!1,form:a,trackingParams:{trackingSiteCategory:"RegisterLead",trackingEventName:"ContactModal_Submit",dataLayerEventName:"contact_us"}};a.find(".js-loading").addClass("active"),formUtils.setFullNameField(a),b?formUtils.submitContactTicket(a).then(function(a){formUtils.createLeadAndHandleDisplay(c)}).catch(function(a){console.error(a)}):formUtils.createLeadAndHandleDisplay(c)};b()}),$(function(){function a(){var a=b.find(".js-submit-btn");formUtils.defaultInlineValidation(b),formUtils.regionalFieldDisplay(b,d),formUtils.prepopulateCountryField(c.country),formUtils.populateHiddenFields(c),formUtils.setMAVs(!1),webutils.paramsForEloqua();var e=function(a){a.preventDefault();var c=formUtils.preflightValidate(b);c&&f()},f=function(){var a={enrich:!1,form:b,trackingParams:{trackingSiteCategory:"RegisterLead",trackingEventName:"NurtureSignup",dataLayerEventName:"Website_RegisterLead_NurtureSignup"}};b.find(".js-loading").addClass("active"),formUtils.setFullNameField(b),formUtils.createLeadAndHandleDisplay(a)};a.on("click",e)}var b=$(".js-form-developer-modal");if(b.length){var c={company:b.find('input[name="account[name]"]'),department:b.find('select[name="department"]'),email:b.find('input[name="owner[email]"]'),firstName:b.find('input[name="FirstName"]'),country:b.find('select[name="country"]'),hiddenFullName:b.find('input[name="owner[name]"]'),jobTitle:b.find('input[name="job"]'),lastName:b.find('input[name="LastName"]'),optIn:b.find('input[name="optinToMarketing"]'),size:b.find('select[name="account[help_desk_size]"]'),referrer:b.find('input[name="referring_url"]'),pageUrl:b.find('input[name="current_page_url"]'),experience:b.find('select[name="experience"]'),interests:b.find('select[name="interests"]'),optInDev:b.find('input[name="optInDev"]'),partnerAccount:b.find('input[name="partner_account"]'),partnerContact:b.find('input[name="partner_contact"]')},d={firstName:c.firstName.parents(".js-field-wrap"),lastName:c.lastName.parents(".js-field-wrap"),jobTitle:c.jobTitle.parents(".js-field-wrap"),department:c.department.parents(".js-field-wrap")};a()}}),$(document).ready(function(){function a(){var a=d.find(".js-submit-btn"),c={container:d.find(".js-extended-fields"),fields:{company:e.company,size:e.size,industry:e.industry}};formUtils.defaultInlineValidation(d,c),formUtils.prepopulateCountryField(e.country),formUtils.regionalFieldDisplay(d,f),formUtils.populateHiddenFields(e),webutils.paramsForEloqua();var g=webutils.getParameterByName("sfdc_owner_id");g!==-1&&$("#ownerId").val(g);var h=webutils.getParameterByName("partners_id");h!==-1&&$("#rvAccountID").val(h);var i=function(a){a.preventDefault();var b=e.email.val(),f=formUtils.preflightValidate(d);f&&formUtils.preflightEnrich(b).then(function(a){a?j():c.container.hasClass("active")?j():(c.container.addClass("active"),c.container.find(".js-field").first().focus())})},j=function(){var a={enrich:!0,form:d,trackingParams:{trackingSiteCategory:d.find('[name="tracking_site_category"]').val(),trackingEventName:d.find('[name="tracking_event_name"]').val(),dataLayerEventName:d.find('[name="data_layer_event_name"]').val()},successCallback:function(){$.cookie("completed-gated-content-form",!0,{path:"/"}),$(window).trigger("completed-gated-content-form")},alwaysCallback:function(){var a=d.find(".js-download-link").attr("href");if(a&&"pdf"===a.substring(a.length-3)){var b=document.createElement("a");b.style.display="none",b.setAttribute("href",a),b.setAttribute("download",a),b.setAttribute("target","_blank"),document.body.appendChild(b),b.click(),document.body.removeChild(b)}}};formUtils.createLeadAndHandleDisplay(a),b()};a.on("click",i)}function b(){var a=c.find(".js-standalone-newsletter-form");a.find('input[name="owner[email]').replaceWith(e.email),a.find(".js-opt-in-field").replaceWith(d.find(".js-opt-in-field")),a.find('button[type="submit"]').click()}var c=$(".js-single-gated-content-forms"),d=$(".js-single-gated-content-form");if(0!==d.length){var e={company:d.find('input[name="account[name]"]'),country:d.find('input[name="country"]'),department:d.find('select[name="department"]'),email:d.find('input[name="owner[email]"]'),firstName:d.find('input[name="FirstName"]'),hiddenFullName:d.find('input[name="owner[name]"]'),industry:d.find('select[name="industry"]'),
lastName:d.find('input[name="LastName"]'),optIn:d.find('input[name="optinToMarketing"]'),phone:d.find('input[name="address[phone]"]'),size:d.find('select[name="account[help_desk_size]"]'),RVaccount:d.find('input[name="rv_account"]'),RVmember:d.find('input[name="rv_member"]'),partnerAccount:d.find('input[name="partner_account"]'),partnerContact:d.find('input[name="partner_contact"]')},f={firstName:e.firstName.parents(".js-field-wrap"),lastName:e.lastName.parents(".js-field-wrap")};formUtils.registerGateHandler(d),a()}});