$(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.breakpoints=a()}),$(function(){function a(){b()}function b(){var a=c.find(".js-enterprise-submit-btn");formUtils.defaultInlineValidation(c),formUtils.regionalFieldDisplay(c,e),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]"]')},e={firstName:d.firstName.parents(".js-field-wrap"),lastName:d.lastName.parents(".js-field-wrap")};a()}),$(function(){function a(){d.on("click",function(a){a.preventDefault();var b=$(this).data("modal-id"),d=$('.js-modal[data-modal-id="'+b+'"');if(0!==d.length){var e=jQuery.Event("modalOpened");c.trigger(e)}}),b()}function b(){var a=c.find(".js-modal-contact-submit-btn");formUtils.defaultInlineValidation(c),formUtils.regionalFieldDisplay(c,f),formUtils.populateHiddenFields(e),formUtils.setMAVs(!1),webutils.paramsForEloqua();var b=function(a){a.preventDefault();var b=formUtils.preflightValidate(c);b&&d()},d=function(){var a={enrich:!1,form:c,trackingParams:{trackingSiteCategory:"RegisterLead",trackingEventName:"ContactModal_Submit",dataLayerEventName:"contact_us"}};c.find(".js-loading").addClass("active"),formUtils.setFullNameField(c),formUtils.submitContactTicket(c).then(function(b){formUtils.createLeadAndHandleDisplay(a)}).catch(function(a){console.error(a)})};c.on("modalOpened",function(a){webutils.track({siteCategory:"RegisterLead",eventName:"ContactModal_View"}),console.log("modal viewed")}),a.on("click",b)}var c=$(".js-form-contact-modal"),d=$(".js-open-modal"),e={company:c.find('input[name="account[name]"]'),department:c.find('select[name="department"]'),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]"]'),jobTitle:c.find('input[name="job"]'),lastName:c.find('input[name="LastName"]'),message:c.find('textarea[name="question"]'),optIn:c.find('input[name="optinToMarketing"]'),phone:c.find('address[name="phone"]'),size:c.find('select[name="account[help_desk_size]"]'),subject:c.find('select[name="subject"]'),referrer:c.find('input[name="referring_url"]'),pageUrl:c.find('input[name="current_page_url"]')},f={firstName:e.firstName.parents(".js-field-wrap"),lastName:e.lastName.parents(".js-field-wrap"),jobTitle:e.jobTitle.parents(".js-field-wrap"),department:e.department.parents(".js-field-wrap")};a()}),$(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"]')},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()}}),$(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,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(){$(this).siblings(".js-dropdown-list").toggleClass("dropdown-open"),$(this).find(".js-dropdown-arrow").toggleClass("selected")}),c.click(function(a){0===$(a.target).closest(".multiselect-container").length&&(d.removeClass("dropdown-open"),$dropdownArrow.removeClass("selected"))}),b.click(function(){var a=$(this).find(".js-field.js-select");a.prop("checked",!a.is(":checked")).change()})}),$(function(){function a(){b.removeClass("hide"),$(window).resize()}var b=$(".js-floating-promo"),c=b.attr("data-cookie-name");$originalLocation=b.parent(),0!==b.length&&"true"!==cookieUtils.searchForCookie(c)&&(b.children(".js-close").on("click",function(){b.addClass("hide"),$.cookie(c,!0,{expires:1})}),$(window).on("resize",function(){b.detach(),window.innerWidth<800?b.prependTo($originalLocation):b.prependTo("body")}),a())}),$(function(){function a(){var a=g.find(".template");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),g.find("ul").append(d)});var b=h.first(),c=h.last(),d=b.offset().top+b.outerHeight()/2,e=c.offset().top+c.outerHeight()/2;return g.css({top:d}).addClass("initialized"),$(window).on("resize",function(){d=b.offset().top+b.outerHeight()/2,e=c.offset().top+c.outerHeight()/2}),$(window).on("scroll",webutils.throttle(function(){var a=$(window).scrollTop()+window.innerHeight/2;a>d&&ae&&g.css({top:e}))},100)),g.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){return window.innerHeight>a.outerHeight()?a.offset().top-(window.innerHeight-a.outerHeight())/2: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),ge)return void(a=$(this))}),a}function f(){a(),i.on("click",c),$(window).on("scroll",webutils.throttle(d,100)),b()}var g=$(".js-inpage-nav-module");if(0!==g.length){g.length>1&&console.warn("Only one In-page nav module is allowed per page.");var h=$("[data-nav-section]"),i=a();f()}});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){b.length>0?b.addClass(a.attr("data-slide")):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)},imageLoaded:function(a,b,c,d){return a&&$(b).hasClass("lazyloaded")}};$(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");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;f.on("click",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)}),g.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=$(".js-close-modal"),h=$(".js-modal");0!==f.length&&0!==h.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("click-to-advance")||!1;a.slick({fade:!0,arrows:!1,autoplay:!0,draggable:!1,swipe:!1,pauseOnFocus:!1,pauseOnHover:!1,autoplaySpeed:b}),c&&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=c.length?c.offset().top:0,e=0,f=($(window).height(),$(document).scrollTop());if(webutils.globalNav.sticky.isSticky&&(d-=webutils.globalNav.sticky.navHeight,e=webutils.globalNav.sticky.navHeight),f>d&&window.isBreakpointUp("small")){var g=b.outerHeight();if(b.addClass("sticky-nav-stuck").css("top",e),c&&c.css("min-height",g),b.hasClass("tall")){var h=a/window.innerWidth*100;b.width(h+"%")}}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"gather":return"/hc/start?gather=true";case"chat":return"/agent/admin/chat";case"talk":return"/voice/admin/onboarding";case"connect":return"/outbound/start";case"explore":return"/explore";case"answer_bot":return"/agent/admin/automatic_answers";case"sell":return"/sell/start";default:return null}}function b(){window.webutils&&c.each(function(){var b=$(this),c=b.children("a"),d=b.data("product"),e=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){var d=a.data("tab"),e=c.filter('[data-tab-content="'+d+'"]');if(window.isBreakpointUp("small")&&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"),e.addClass("active"),e.find("video").length>0){var f=e.find("video")[0];f.currentTime>0&&(f.currentTime=0),e.one("webkitAnimationEnd oAnimationend oAnimationEnd msAnimationEnd animationend",function(){f.play()})}}function b(b,c){b.on("click",function(){a($(this),b,c)}),$(window).on("resize",function(){window.isBreakpointUp("small")&&(b.filter(".active").length>1?b.filter('[data-clicked="true"]').click():0===b.filter(".active").length&&b.first().click())})}function c(){d.each(function(){var a=$(this).children(".tabs-container").children("[data-tab]"),c=$(this).children(".content-container").children("[data-tab-content]");b(a,c),a.first().click()})}var d=$(".js-tabs-module");0!==d.length&&c()}),$(function(){function a(){var a=webutils.getURLParameter(o).split(",");a.forEach(function(a){$('.js-filter-checkbox[value="'+a+'"]').prop("checked",!0)}),c()}function b(){var a=($(".js-filter-checkbox:checked"),[]);$(".js-filter-checkbox:checked").each(function(){a.push($(this).val())}),webutils.setParameterByName(o,a.join(","))}function c(){var a,b,c=$(".js-filter-checkbox:checked"),e=i;c.length>0?(h.hide(),l.show(),m.hide(),k.css("display","flex").find(".js-tile-col").remove(),f.each(function(){c=$(this).find(".js-filter-checkbox:checked"),c.length>0&&(a=[],c.each(function(){a.push($(this).val())}),e=e.filter(function(){return b=$(this).attr("data-tags").split(","),d(a,b).length>0}))}),e.length>0?(e.clone().insertBefore(l),e.lengtha.length&&(c=b,b=a,a=c),a.filter(function(a){return b.indexOf(a)>-1})}function e(){j.click(function(a){a.preventDefault();var b=$("."+$(this).attr("data-tiles-container")),c=$(this).attr("data-load-increment");b.children(".tile-col:hidden").slice(0,c).show(),0===b.children(".tile-col:hidden").length&&$(this).hide()}),g.change(function(){$(this).closest(".js-checkbox-item").toggleClass("checked"),c(),b()}),a()}var f=$(".js-tile-filter"),g=$(".js-filter-checkbox"),h=$(".js-tiles"),i=$(".js-tile-col"),j=$(".js-load-more-tiles-trigger"),k=$(".js-filtered-results"),l=$(".js-filtered-results .js-load-more-container"),m=$(".js-filtered-results .js-none-found-message"),n=6,o="tileFilters";e()}),$(function(){function a(){var a=$(this),b=a.data(),c=a.attr("data-toggle"),d=$('.js-toggler-target[data-toggle="'+c+'"]');a.add(d).toggleClass("active"),b.toggleClass&&a.add(d).toggleClass(b.toggleClass),b.toggleThenHide&&a.hide()}function b(){c.on("click",a)}var c=$(".js-toggler");c.length&&b()});